14#include <VxSim/VxSmartInterface.h>
15#include <VxSim/VxVHLInterface.h>
16#include <VxData/Delegate.h>
27class DtInputPortGroup;
28class DtOutputPortGroup;
29class DtSingleConnectionInputPort;
30class DtSingleConnectionOutputPort;
31class DtVrfObjectStateRepository;
43class VxPluginExtension;
45class VxSimulationState;
82 virtual void setField(VxData::FieldBase* field) = 0;
87 virtual VxData::FieldBase*
getField()
const = 0;
137 virtual void setField(VxData::FieldBase* field)
override;
142 virtual VxData::FieldBase* getField()
const override;
147 virtual std::string portName()
override;
152 virtual std::string getFieldName()
override;
241 const VxSim::VxWeakInterface<VxSim::VxVHLInterface>& iface =
nullptr);
282 virtual void setInterface(VxSim::VxWeakInterface<VxSim::VxVHLInterface> iface);
Base class for Vortex interface elements.
Definition vortexInterface.h:53
virtual void update()=0
Updates the interface element.
virtual void setField(VxData::FieldBase *field)=0
Sets the Vortex field associated with this element.
virtual VxData::DelegateConnection addFieldObserver(const DtVortexInterfaceFieldCallback &callback)=0
Adds an observer to this element's Vortex field.
virtual std::string portName()=0
Gets the port name.
virtual VxData::FieldBase * getField() const =0
Gets the Vortex field associated with this element.
DtVortexInterfaceBaseElement()
Default constructor.
Definition vortexInterface.h:56
virtual ~DtVortexInterfaceBaseElement()
Virtual destructor.
Definition vortexInterface.h:61
virtual std::string getFieldName()=0
Gets the field name.
virtual VxData::FieldBase * getField() const override
Gets the Vortex field.
Definition vortexInterface.h:189
virtual ~DtVortexInterfaceElement() override
Destructor.
VxData::FieldBase * myVortexField
Pointer to the Vortex field.
Definition vortexInterface.h:162
T * myPort
Pointer to the port.
Definition vortexInterface.h:161
virtual std::string getFieldName() override
Gets the field name.
Definition vortexInterface.h:171
std::string myPortName
Name of the port.
Definition vortexInterface.h:163
virtual std::string portName() override
Gets the port name.
Definition vortexInterface.h:180
virtual VxData::DelegateConnection addFieldObserver(const DtVortexInterfaceFieldCallback &callback) override
Adds an observer to this element's Vortex field.
virtual void setField(VxData::FieldBase *field) override
Sets the Vortex field.
Definition vortexInterface.h:198
virtual void update() override
Updates the interface element.
std::string myFieldName
Name of the field.
Definition vortexInterface.h:164
T * port()
Gets the port.
Definition vortexInterface.h:130
DtVortexInterfaceElement(std::string portName, const std::string &vortexName)
Constructor.
DtOutputPortGroup * myOutputPortGroup
Output port group.
Definition vortexInterface.h:333
std::string myInterfaceName
Interface name.
Definition vortexInterface.h:331
virtual VxData::DelegateConnection addOutputElementObserver(const std::string &name, const DtVortexInterfaceFieldCallback &callback)
Adds an observer to an output element's Vortex field.
std::vector< DtVortexInterfaceBaseElement * > myOutputElements
Vector of output elements.
Definition vortexInterface.h:335
virtual DtInputPortGroup * inputPortGroup()
Gets the input port group.
virtual VxData::DelegateConnection addInputElementObserver(const std::string &name, const DtVortexInterfaceFieldCallback &callback)
Adds an observer to an input element's Vortex field.
virtual void connectPortsToInterface()
Connects ports to the Vortex interface.
virtual void setInterface(VxSim::VxWeakInterface< VxSim::VxVHLInterface > iface)
Sets the Vortex interface.
virtual ~DtVortexInterface()
Destructor.
virtual void createPorts(makVre::DtVortexInterfaceDescriptor *desc)
Creates ports based on the descriptor.
std::vector< DtVortexInterfaceBaseElement * > myInputElements
Vector of input elements.
Definition vortexInterface.h:334
DtInputPortGroup * myInputPortGroup
Input port group.
Definition vortexInterface.h:332
virtual std::string getInterfaceName()
Gets the interface name.
virtual DtVortexInterfaceBaseElement * getOutputElement(const std::string &name)
Gets an output element by name.
virtual void updateOutputs()
Updates all output elements.
DtVortexInterface(makVre::DtVortexInterfaceDescriptor *desc, const VxSim::VxWeakInterface< VxSim::VxVHLInterface > &iface=nullptr)
Constructor.
virtual DtVortexInterfaceBaseElement * getInputElement(const std::string &name)
Gets an input element by name.
virtual void updateOutputStateRepository(DtVrfObjectStateRepository *esr)
Updates the object state repository with output values.
VxSim::VxWeakInterface< VxSim::VxVHLInterface > myInterface
Vortex interface.
Definition vortexInterface.h:330
virtual DtOutputPortGroup * outputPortGroup()
Gets the output port group.
virtual void updateInputs()
Updates all input elements.
virtual void setUseWorldCoords(bool on)
Definition vortexInterface.h:215
virtual void update() override
Updates the interface element.
bool myIsOffsetVector
Definition vortexInterface.h:221
DtVortexInterfaceVectorElement(const std::string &portName, const std::string &vortexName)
Definition vortexInterface.h:207
bool myUseWorldCoords
Definition vortexInterface.h:222
virtual void setIsOffsetVector(bool on)
Definition vortexInterface.h:212
virtual bool useWorldCoords() const
Definition vortexInterface.h:216
virtual bool isOffsetVector() const
Definition vortexInterface.h:213
Descriptor for Vortex physics engine interfaces.
Definition vortexInterfaceDescriptor.h:27
Export macros for the VR-Forces Vortex extension library.
#define VREVRFVORTEX_DLL
Export macro for non-Windows platforms.
Definition export.h:30
Definition vortexConfiguration.h:24
Definition vortexConfiguration.h:29
!
Definition glsVreMessageUtil.h:50
std::function< void(const VxData::FieldBase &)> DtVortexInterfaceFieldCallback
Definition vortexInterface.h:38