|
VR-Engage
2.3
|
Implements the DtVortexInterfaceBaseElement interface for specific port types. Handles the connection between VR-Forces ports and Vortex fields.
#include <vortexInterface.h>
Public Member Functions | |
| DtVortexInterfaceElement (std::string portName, const std::string &vortexName) | |
| virtual | ~DtVortexInterfaceElement () override |
| virtual void | update () override |
| T * | port () |
| virtual void | setField (VxData::FieldBase *field) override |
| virtual VxData::FieldBase * | getField () const override |
| virtual std::string | portName () override |
| virtual std::string | getFieldName () override |
| virtual VxData::DelegateConnection | addFieldObserver (const DtVortexInterfaceFieldCallback &callback) override |
Public Member Functions inherited from DtVortexInterfaceBaseElement | |
| DtVortexInterfaceBaseElement () | |
| virtual | ~DtVortexInterfaceBaseElement () |
Protected Attributes | |
| T * | myPort |
| VxData::FieldBase * | myVortexField |
| std::string | myPortName |
| std::string | myFieldName |
| DtVortexInterfaceElement< T >::DtVortexInterfaceElement | ( | std::string | portName, |
| const std::string & | vortexName ) |
Constructor.
Creates and initializes the port with the specified names.
| portName | Name of the port |
| vortexName | Name of the Vortex field |
References portName().
Referenced by DtVortexInterfaceVectorElement< T >::DtVortexInterfaceVectorElement().
|
overridevirtual |
Destructor.
Cleans up resources.
|
overridevirtual |
Updates the interface element.
Transfers data between the port and the Vortex field. The implementation of this method is specialized for different port types.
Implements DtVortexInterfaceBaseElement.
Reimplemented in DtVortexInterfaceVectorElement< T >.
|
inline |
Gets the port.
Provides access to the underlying port object.
References myPort.
|
overridevirtual |
Sets the Vortex field.
Associates a Vortex field with this interface element.
| field | Pointer to the Vortex field |
| field | Pointer to the Vortex field |
Implements DtVortexInterfaceBaseElement.
References myVortexField.
|
overridevirtual |
Gets the Vortex field.
Implements DtVortexInterfaceBaseElement.
References myVortexField.
|
overridevirtual |
Gets the port name.
Implements DtVortexInterfaceBaseElement.
References myPortName.
Referenced by DtVortexInterfaceElement(), and DtVortexInterfaceVectorElement< T >::DtVortexInterfaceVectorElement().
|
overridevirtual |
Gets the field name.
Implements DtVortexInterfaceBaseElement.
References myFieldName.
|
overridevirtual |
Adds an observer to this element's Vortex field.
| callback | Function called when the field changes |
Implements DtVortexInterfaceBaseElement.
|
protected |
Pointer to the port.
Referenced by port().
|
protected |
Pointer to the Vortex field.
Referenced by getField(), and setField().
|
protected |
Name of the port.
Referenced by portName().
|
protected |
Name of the field.
Referenced by getFieldName().