|
VR-Engage
2.2
|
Provides functionality for creating and managing the connection between VR-Forces ports and Vortex interfaces. Handles both input and output ports.
#include <vortexInterface.h>
Public Member Functions | |
| DtVortexInterface (makVre::DtVortexInterfaceDescriptor *desc, const VxSim::VxWeakInterface< VxSim::VxVHLInterface > &iface=nullptr) | |
| virtual | ~DtVortexInterface () |
| virtual DtInputPortGroup * | inputPortGroup () |
| virtual DtOutputPortGroup * | outputPortGroup () |
| virtual void | updateInputs () |
| virtual void | updateOutputs () |
| virtual void | updateOutputStateRepository (DtVrfObjectStateRepository *esr) |
| virtual void | setInterface (VxSim::VxWeakInterface< VxSim::VxVHLInterface > iface) |
| virtual void | connectPortsToInterface () |
| virtual DtVortexInterfaceBaseElement * | getInputElement (const std::string &name) |
| virtual DtVortexInterfaceBaseElement * | getOutputElement (const std::string &name) |
| virtual std::string | getInterfaceName () |
Protected Member Functions | |
| virtual void | createPorts (makVre::DtVortexInterfaceDescriptor *desc) |
Protected Attributes | |
| VxSim::VxWeakInterface< VxSim::VxVHLInterface > | myInterface |
| std::string | myInterfaceName |
| DtInputPortGroup * | myInputPortGroup |
| DtOutputPortGroup * | myOutputPortGroup |
| std::vector< DtVortexInterfaceBaseElement * > | myInputElements |
| std::vector< DtVortexInterfaceBaseElement * > | myOutputElements |
| DtVortexInterface::DtVortexInterface | ( | makVre::DtVortexInterfaceDescriptor * | desc, |
| const VxSim::VxWeakInterface< VxSim::VxVHLInterface > & | iface = nullptr ) |
Constructor.
Creates ports based on the descriptor and optionally connects them to the Vortex interface.
| desc | Descriptor containing interface configuration |
| iface | Optional Vortex interface to connect to |
|
virtual |
Destructor.
Cleans up resources.
|
virtual |
Gets the input port group.
Provides access to all input ports.
|
virtual |
Gets the output port group.
Provides access to all output ports.
|
virtual |
Updates all input elements.
Transfers data from input ports to Vortex fields.
|
virtual |
Updates all output elements.
Transfers data from Vortex fields to output ports.
|
virtual |
Updates the object state repository with output values.
Transfers data from output ports to the state repository.
| esr | Pointer to the object state repository |
|
virtual |
Sets the Vortex interface.
| iface | Vortex interface to connect to |
|
virtual |
Connects ports to the Vortex interface.
Associates each port with the corresponding Vortex field.
|
virtual |
Gets an input element by name.
| name | Name of the input element |
|
virtual |
Gets an output element by name.
| name | Name of the output element |
|
virtual |
Gets the interface name.
|
protectedvirtual |
Creates ports based on the descriptor.
Creates input and output ports of appropriate types according to the descriptor.
| desc | Descriptor containing interface configuration |
|
protected |
Vortex interface.
|
protected |
Interface name.
|
protected |
Input port group.
|
protected |
Output port group.
|
protected |
Vector of input elements.
|
protected |
Vector of output elements.