VR-Engage  2.3
Loading...
Searching...
No Matches
DtVortexInterfaceBaseElement Class Referenceabstract

Detailed Description

Provides a common interface for all Vortex interface elements, allowing for type-agnostic handling of different port types.

#include <vortexInterface.h>

Inheritance diagram for DtVortexInterfaceBaseElement:
[legend]

Public Member Functions

 DtVortexInterfaceBaseElement ()
 
virtual ~DtVortexInterfaceBaseElement ()
 
virtual void update ()=0
 
virtual std::string portName ()=0
 
virtual std::string getFieldName ()=0
 
virtual void setField (VxData::FieldBase *field)=0
 
virtual VxData::FieldBase * getField () const =0
 
virtual VxData::DelegateConnection addFieldObserver (const DtVortexInterfaceFieldCallback &callback)=0
 

Constructor & Destructor Documentation

◆ DtVortexInterfaceBaseElement()

DtVortexInterfaceBaseElement::DtVortexInterfaceBaseElement ( )
inline

Default constructor.

◆ ~DtVortexInterfaceBaseElement()

virtual DtVortexInterfaceBaseElement::~DtVortexInterfaceBaseElement ( )
inlinevirtual

Virtual destructor.

Ensures proper cleanup of derived classes.

Member Function Documentation

◆ update()

virtual void DtVortexInterfaceBaseElement::update ( )
pure virtual

Updates the interface element.

Pure virtual function that must be implemented by derived classes to handle data transfer between ports and Vortex fields.

Implemented in DtVortexInterfaceElement< T >, and DtVortexInterfaceVectorElement< T >.

◆ portName()

virtual std::string DtVortexInterfaceBaseElement::portName ( )
pure virtual

Gets the port name.

Returns
The name of the port

Implemented in DtVortexInterfaceElement< T >.

◆ getFieldName()

virtual std::string DtVortexInterfaceBaseElement::getFieldName ( )
pure virtual

Gets the field name.

Returns
The name of the field

Implemented in DtVortexInterfaceElement< T >.

◆ setField()

virtual void DtVortexInterfaceBaseElement::setField ( VxData::FieldBase * field)
pure virtual

Sets the Vortex field associated with this element.

Parameters
fieldPointer to the Vortex field

Implemented in DtVortexInterfaceElement< T >.

◆ getField()

virtual VxData::FieldBase * DtVortexInterfaceBaseElement::getField ( ) const
pure virtual

Gets the Vortex field associated with this element.

Returns
Pointer to the Vortex field

Implemented in DtVortexInterfaceElement< T >.

◆ addFieldObserver()

virtual VxData::DelegateConnection DtVortexInterfaceBaseElement::addFieldObserver ( const DtVortexInterfaceFieldCallback & callback)
pure virtual

Adds an observer to this element's Vortex field.

Parameters
callbackFunction called when the field changes
Returns
Delegate connection that can disconnect or destroy the observer

Implemented in DtVortexInterfaceElement< T >.


The documentation for this class was generated from the following file: