AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
FunctionValue.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
24namespace agxData
25{
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
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_ */
#define AGXCORE_EXPORT
A format is an implementation of a agxData::Type.
Definition: Format.h:64
virtual void rebind()
Rebind with the current auto-bind path.
void setContext(agx::Object *component)
FunctionValue(const agxData::Type *type, const agx::String &expression)
void injectFunctionInstance(agx::UnresolvedTask *proxy)
FunctionValue(const agxData::Format *format, const agx::String &expression)
Abstracted type.
Definition: Type.h:98
Abstract representation of a value.
Definition: Value.h:49
T CallbackType
Definition: Event.h:37
agx::Object is a refcounted object with a name.
Definition: Object.h:59
A representation of a task/kernel parameter, which can be bound using a string path or explicitly to ...
Definition: Parameter.h:62
Contains classes for low level data storage for AGX.
Definition: Container.h:23