Om
1.0.0
A universal framework for multimedia simulation
|
An interface for connectors that interface between arbitrary object types and known connector types. More...
#include <omEngineConnector.h>
Public Member Functions | |
Connector () | |
Create a new connector with the default state. More... | |
virtual | ~Connector () |
Destroy this connector and release all internal resources. More... | |
virtual void | read ()=0 |
Read the data that is stored in the connector subclass and write it to the object. More... | |
virtual void | write ()=0 |
Write the object's data to the data in the Connection subclass. More... | |
virtual Connection * | getConnection () const =0 |
Return an opaque pointer to the connector that this connector is a part of. More... | |
virtual void * | getObject () const |
Return an opaque pointer to the object that is connected to this connector. More... | |
virtual const ResourceType & | getObjectType () const |
Return the resource type of the object that the connector is connected to. More... | |
virtual const ResourceType & | getType () const =0 |
Return the resource type of this connector's concrete subclass type. More... | |
ConnectorFlags & | getFlags () |
Return a reference to an object that contains boolean parameters of the connector. More... | |
const ConnectorFlags & | getFlags () const |
Return an object that contains boolean parameters of the connector. More... | |
void | setFlags (const ConnectorFlags &newFlags) |
Set an object that contains boolean parameters of the connector. More... | |
Bool | flagIsSet (ConnectorFlags::Flag flag) const |
Return whether or not the specified boolan flag is set for this connector. More... | |
Bool | flagsAreSet (const ConnectorFlags &otherFlags) const |
Return whether or not all of the specified boolan flags are set for this connector. More... | |
void | setFlag (ConnectorFlags::Flag flag, Bool newIsSet=true) |
Set whether or not the specified boolan flag is set for this connector. More... | |
Bool | isDisabled () const |
Return whether or not this connector is currently disabled. More... | |
Bool | getIsEnabled () const |
Return whether or not this connector is currently enabled. More... | |
void | setIsEnabled (Bool newIsEnabled) |
Set whether or not this connector should be enabled. More... | |
const SystemType & | getSystemType () const |
Return an enum indicating the system type that determines when this connector should update. More... | |
void | setSystemType (const SystemType &newSystemType) |
Set an enum indicating the system type that determines when this connector should update. More... | |
An interface for connectors that interface between arbitrary object types and known connector types.
The connector's purpose is to hide the identity of the object so that the number of connector types can be manageable. Otherwise there would be an O(N^2) number of connector types that would be needed. With this design the overhead is O(N) types, where N is the number of possible connectors.
|
inline |
Create a new connector with the default state.
|
inlinevirtual |
Destroy this connector and release all internal resources.
|
pure virtual |
Read the data that is stored in the connector subclass and write it to the object.
Implemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
pure virtual |
Write the object's data to the data in the Connection subclass.
Implemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
pure virtual |
Return an opaque pointer to the connector that this connector is a part of.
Implemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
inlinevirtual |
Return an opaque pointer to the object that is connected to this connector.
Reimplemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
inlinevirtual |
Return the resource type of the object that the connector is connected to.
Reimplemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
pure virtual |
Return the resource type of this connector's concrete subclass type.
Implemented in om::engine::graphics::BoneTensor, om::engine::acoustics::SoundSourceTensor, om::engine::graphics::BoneTrajectory, om::engine::acoustics::SoundSourceTrajectory, om::engine::graphics::CameraTensor, om::engine::acoustics::SoundListenerTensor, om::engine::graphics::CameraTrajectory, om::engine::acoustics::SoundListenerTrajectory, om::engine::acoustics::SoundObjectTensor, om::engine::graphics::GraphicsObjectTensor, om::engine::physics::RigidObjectTensor, om::engine::acoustics::SoundObjectTrajectory, om::engine::graphics::GraphicsObjectTrajectory, om::engine::physics::RigidObjectTrajectory, and om::engine::animation::AnimationSequencerTrackTensor.
|
inline |
Return a reference to an object that contains boolean parameters of the connector.
|
inline |
Return an object that contains boolean parameters of the connector.
|
inline |
Set an object that contains boolean parameters of the connector.
|
inline |
Return whether or not the specified boolan flag is set for this connector.
|
inline |
Return whether or not all of the specified boolan flags are set for this connector.
|
inline |
Set whether or not the specified boolan flag is set for this connector.
|
inline |
Return whether or not this connector is currently disabled.
|
inline |
Return whether or not this connector is currently enabled.
|
inline |
Set whether or not this connector should be enabled.
|
inline |
Return an enum indicating the system type that determines when this connector should update.
|
inline |
Set an enum indicating the system type that determines when this connector should update.