14#include <VxSim/VxSmartInterface.h>
15#include <VxSim/VxVHLInterface.h>
24class DtInputPortGroup;
25class DtOutputPortGroup;
26class DtSingleConnectionInputPort;
27class DtSingleConnectionOutputPort;
28class DtVrfObjectStateRepository;
38class VxPluginExtension;
40class VxSimulationState;
77 virtual void setField(VxData::FieldBase* field) = 0;
121 virtual void setField(VxData::FieldBase* field)
override;
126 VxData::FieldBase* getField()
const;
131 virtual std::string portName()
override;
136 virtual std::string getFieldName()
override;
238 virtual void setInterface(VxSim::VxWeakInterface<VxSim::VxVHLInterface> iface);
Base class for Vortex interface elements.
Definition vortexInterface.h:48
virtual void update()=0
Updates the interface element.
virtual void setField(VxData::FieldBase *field)=0
Sets the Vortex field associated with this element.
virtual std::string portName()=0
Gets the port name.
DtVortexInterfaceBaseElement()
Default constructor.
Definition vortexInterface.h:51
virtual ~DtVortexInterfaceBaseElement()
Virtual destructor.
Definition vortexInterface.h:56
virtual std::string getFieldName()=0
Gets the field name.
virtual ~DtVortexInterfaceElement() override
Destructor.
VxData::FieldBase * myVortexField
Pointer to the Vortex field.
Definition vortexInterface.h:140
VxData::FieldBase * getField() const
Gets the Vortex field.
Definition vortexInterface.h:167
T * myPort
Pointer to the port.
Definition vortexInterface.h:139
virtual std::string getFieldName() override
Gets the field name.
Definition vortexInterface.h:149
std::string myPortName
Name of the port.
Definition vortexInterface.h:141
virtual std::string portName() override
Gets the port name.
Definition vortexInterface.h:158
virtual void setField(VxData::FieldBase *field) override
Sets the Vortex field.
Definition vortexInterface.h:176
virtual void update() override
Updates the interface element.
std::string myFieldName
Name of the field.
Definition vortexInterface.h:142
T * port()
Gets the port.
Definition vortexInterface.h:114
DtVortexInterfaceElement(std::string portName, const std::string &vortexName)
Constructor.
DtOutputPortGroup * myOutputPortGroup
Output port group.
Definition vortexInterface.h:273
std::string myInterfaceName
Interface name.
Definition vortexInterface.h:271
std::vector< DtVortexInterfaceBaseElement * > myOutputElements
Vector of output elements.
Definition vortexInterface.h:275
virtual DtInputPortGroup * inputPortGroup()
Gets the input port group.
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:274
DtInputPortGroup * myInputPortGroup
Input port group.
Definition vortexInterface.h:272
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:270
virtual DtOutputPortGroup * outputPortGroup()
Gets the output port group.
virtual void updateInputs()
Updates all input elements.
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49