|
VR-Engage
2.2
|
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 |
| VxData::FieldBase * | getField () const |
| virtual std::string | portName () override |
| virtual std::string | getFieldName () 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().
|
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.
|
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.
| VxData::FieldBase * DtVortexInterfaceElement< T >::getField | ( | ) | const |
|
overridevirtual |
Gets the port name.
Implements DtVortexInterfaceBaseElement.
References myPortName.
Referenced by DtVortexInterfaceElement().
|
overridevirtual |
Gets the field name.
Implements DtVortexInterfaceBaseElement.
References myFieldName.
|
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().