AGXDynamics
2.35.0.2
FunctionValue.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. 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
#ifndef AGX_FUNCTIONVALUE_H
18
#define AGX_FUNCTIONVALUE_H
19
20
#include <
agxData/Value.h
>
21
#include <
agx/Task.h
>
22
#include <
agx/UnresolvedTask.h
>
23
24
namespace
agxData
25
{
26
class
AGXCORE_EXPORT
FunctionValue
:
public
agxData::Value
27
{
28
public
:
29
// FunctionValue(const Name& name, const agxData::Type *type, Task *function);
30
FunctionValue
(
const
agxData::Type
*type,
const
agx::String
& expression);
31
FunctionValue
(
const
agxData::Format
*format,
const
agx::String
& expression);
32
33
void
injectFunctionInstance(
agx::UnresolvedTask
*proxy);
34
35
virtual
void
rebind();
36
37
void
setContext(
agx::Object
*component);
38
39
protected
:
40
virtual
~
FunctionValue
();
41
42
private
:
43
void
parameterUpdateCallback(
agx::Parameter
*parameter);
44
45
private
:
46
agx::TaskRef
m_function;
47
agx::Parameter::Event::CallbackType
m_parameterCallback;
48
agx::ParameterRef
m_result;
49
};
50
}
51
52
#endif
/* _AGX_FUNCTIONVALUE_H_ */
AGXCORE_EXPORT
#define AGXCORE_EXPORT
agx::Parameter
A representation of a task/kernel parameter, which can be bound using a string path or explicitly to ...
Definition:
Parameter.h:61
agxData::Value
Abstract representation of a value.
Definition:
Value.h:42
Task.h
agxData::Format
A format is an implementation of a agxData::Type.
Definition:
Format.h:63
agx::EventT< Callback1< Parameter * > >::CallbackType
Callback1< Parameter * > CallbackType
Definition:
Event.h:37
agxData
Contains classes for low level data storage for AGX.
Definition:
Container.h:23
agx::ref_ptr< Task >
agxData::Type
Abstracted type.
Definition:
Type.h:97
agx::Object
agx::Object is a refcounted object with a name.
Definition:
Object.h:59
agx::UnresolvedTask
Definition:
UnresolvedTask.h:39
agx::AgXString< std::string >
agxData::FunctionValue
Definition:
FunctionValue.h:26
Value.h
UnresolvedTask.h
include
agxData
FunctionValue.h
Generated on Mon Jan 30 2023 15:44:12 for AGXDynamics by
1.8.17