AGX Dynamics  2.35.0.1
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 {
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:43
T CallbackType
Definition: Event.h:37
agx::Object is a refcounted object with a name.
Definition: Object.h:60
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