AGX Dynamics
2.38.0.2
CallbackDataGenerator.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#pragma once
18
19
#include <
agxPlot/DataGenerator.h
>
20
21
#include <
agxSDK/EventListener.h
>
22
23
namespace
agxPlot
24
{
28
class
AGXPHYSICS_EXPORT
DataListener
:
public
agxSDK::EventListener
29
{
30
public
:
31
DataListener
();
32
33
virtual
DataGenerator::Result
getValue();
34
35
protected
:
37
virtual
~
DataListener
();
38
};
39
AGX_DECLARE_POINTER_TYPES
(
DataListener
);
40
41
45
class
AGXPHYSICS_EXPORT
CallbackDataGenerator
:
public
DataGenerator
46
{
47
public
:
48
CallbackDataGenerator
(
DataListener
* callback);
49
50
virtual
DataGenerator::Result
getValue();
51
52
protected
:
54
virtual
~
CallbackDataGenerator
();
55
56
private
:
57
DataListenerRef
m_callback;
58
};
59
60
64
class
AGXPHYSICS_EXPORT
RealCallbackDataGenerator
:
public
DataGenerator
65
{
66
public
:
67
RealCallbackDataGenerator
();
68
70
virtual
agx::Real
get() = 0;
71
72
protected
:
73
virtual
DataGenerator::Result
getValue();
74
76
virtual
~
RealCallbackDataGenerator
();
77
};
78
79
}
agx::Real
double Real
Definition:
Real.h:42
EventListener.h
agxPlot
Namespace contains functionality related to plotting.
agxSDK::EventListener
An EventListener can be associated to a Simulation and triggered upon various events.
Definition:
EventListener.h:40
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxPlot::DataGenerator
Abstract base class for creating data to be plotted.
Definition:
DataGenerator.h:27
agx::ref_ptr< DataListener >
agxPlot::RealCallbackDataGenerator
Class that produces data in the form of a Real value.
Definition:
CallbackDataGenerator.h:64
agxPlot::DataGenerator::Result
Definition:
DataGenerator.h:33
DataGenerator.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxPlot::DataListener
Event listener that will generate plotting data.
Definition:
CallbackDataGenerator.h:28
agxPlot::CallbackDataGenerator
Callback class for generating data to be plotted.
Definition:
CallbackDataGenerator.h:45
include
agxPlot
CallbackDataGenerator.h
Generated on Sun Sep 1 2024 11:18:26 for AGX Dynamics by
1.8.17