#include <BlueprintInstance.h>
Public Member Functions | |
OPAL_DECL | BlueprintInstance () |
virtual OPAL_DECL | ~BlueprintInstance () |
virtual OPAL_DECL Solid *OPAL_CALL | getSolid (const std::string &name) const |
virtual OPAL_DECL Joint *OPAL_CALL | getJoint (const std::string &name) const |
virtual OPAL_DECL Motor *OPAL_CALL | getMotor (const std::string &name) const |
virtual OPAL_DECL Sensor *OPAL_CALL | getSensor (const std::string &name) const |
virtual OPAL_DECL unsigned int OPAL_CALL | getNumSolids () const |
virtual OPAL_DECL unsigned int OPAL_CALL | getNumJoints () const |
virtual OPAL_DECL unsigned int OPAL_CALL | getNumMotors () const |
virtual OPAL_DECL unsigned int OPAL_CALL | getNumSensors () const |
virtual OPAL_DECL Solid *OPAL_CALL | getSolid (unsigned int i) const |
virtual OPAL_DECL Joint *OPAL_CALL | getJoint (unsigned int i) const |
virtual OPAL_DECL Motor *OPAL_CALL | getMotor (unsigned int i) const |
virtual OPAL_DECL Sensor *OPAL_CALL | getSensor (unsigned int i) const |
virtual OPAL_DECL Solid *OPAL_CALL | detachSolid (unsigned int i) |
virtual OPAL_DECL Joint *OPAL_CALL | detachJoint (unsigned int i) |
virtual OPAL_DECL Motor *OPAL_CALL | detachMotor (unsigned int i) |
virtual OPAL_DECL Sensor *OPAL_CALL | detachSensor (unsigned int i) |
virtual OPAL_DECL Solid *OPAL_CALL | detachSolid (const std::string &name) |
virtual OPAL_DECL void OPAL_CALL | internal_addSolid (Solid *s) |
virtual OPAL_DECL void OPAL_CALL | internal_addJoint (Joint *j) |
virtual OPAL_DECL void OPAL_CALL | internal_addMotor (Motor *m) |
virtual OPAL_DECL void OPAL_CALL | internal_addSensor (Sensor *s) |
Private Attributes | |
std::map< std::string, Solid * > | mSolidMap |
std::map< std::string, Joint * > | mJointMap |
std::map< std::string, Motor * > | mMotorMap |
std::map< std::string, Sensor * > | mSensorMap |
std::vector< Solid * > | mSolidList |
std::vector< Joint * > | mJointList |
std::vector< Motor * > | mMotorList |
std::vector< Sensor * > | mSensorList |
Definition at line 45 of file BlueprintInstance.h.
|
Definition at line 45 of file BlueprintInstance.cpp. |
|
Definition at line 50 of file BlueprintInstance.cpp. References mJointList, mJointMap, mMotorList, mMotorMap, mSensorList, mSensorMap, mSolidList, and mSolidMap. |
|
Detachs a Joint by index and returns its pointer.
Definition at line 79 of file BlueprintInstance.cpp. References mJointList, and mJointMap. |
|
Detachs a Motor by index and returns its pointer.
Definition at line 111 of file BlueprintInstance.cpp. References mMotorList, and mMotorMap. |
|
Detachs a Sensor by index and returns its pointer.
Definition at line 95 of file BlueprintInstance.cpp. References mSensorList, and mSensorMap. |
|
Removes but does not delete the solid.
|
|
Removes but does not delete the solid.
Definition at line 63 of file BlueprintInstance.cpp. References mSolidList, and mSolidMap. |
|
Finds a Joint by index and returns its pointer.
Definition at line 233 of file BlueprintInstance.cpp. References mJointList. |
|
Finds a Joint by name and returns its pointer. Returns NULL if the name is not found. |
|
Finds a Motor by index and returns its pointer.
Definition at line 238 of file BlueprintInstance.cpp. References mMotorList. |
|
Finds a Motor by name and returns its pointer. Returns NULL if the name is not found. |
|
Returns the number of Joints in this BlueprintInstance.
Definition at line 213 of file BlueprintInstance.cpp. References mJointList. |
|
Returns the number of Motors in this BlueprintInstance.
Definition at line 218 of file BlueprintInstance.cpp. References mMotorList. |
|
Returns the number of Sensors in this BlueprintInstance.
Definition at line 223 of file BlueprintInstance.cpp. References mSensorList. |
|
Returns the number of Solids in this BlueprintInstance.
Definition at line 208 of file BlueprintInstance.cpp. References mSolidList. |
|
Finds a Sensor by index and returns its pointer.
Definition at line 243 of file BlueprintInstance.cpp. References mSensorList. |
|
Finds a Sensor by name and returns its pointer. Returns NULL if the name is not found. |
|
Finds a Solid by index and returns its pointer.
Definition at line 228 of file BlueprintInstance.cpp. References mSolidList. |
|
Finds a Solid by name and returns its pointer. Returns NULL if the name is not found. |
|
Adds a new Joint pointer. If the pointer is non-NULL and the object's name is not an empty string, this also adds the pointer to the Joint map. Definition at line 267 of file BlueprintInstance.cpp. References opal::Joint::getName(), and mJointList. |
|
Adds a new Motor pointer. If the pointer is non-NULL and the object's name is not an empty string, this also adds the pointer to the Motor map. Definition at line 286 of file BlueprintInstance.cpp. References opal::Motor::getName(), and mMotorList. |
|
Adds a new Sensor pointer. If the pointer is non-NULL and the object's name is not an empty string, this also adds the pointer to the Sensor map. Definition at line 305 of file BlueprintInstance.cpp. References opal::Sensor::getName(), and mSensorList. |
|
Adds a new Solid pointer to the list. If the pointer is non-NULL and the object's name is not an empty string, this also adds the pointer to the Solid map. Definition at line 248 of file BlueprintInstance.cpp. References opal::Solid::getName(), and mSolidList. |
|
List of Joint pointers.
Definition at line 166 of file BlueprintInstance.h. Referenced by detachJoint(), getJoint(), getNumJoints(), internal_addJoint(), and ~BlueprintInstance(). |
|
Map of Joint names to Joint pointers.
Definition at line 154 of file BlueprintInstance.h. Referenced by detachJoint(), and ~BlueprintInstance(). |
|
List of Motor pointers.
Definition at line 169 of file BlueprintInstance.h. Referenced by detachMotor(), getMotor(), getNumMotors(), internal_addMotor(), and ~BlueprintInstance(). |
|
Map of Motor names to Motor pointers.
Definition at line 157 of file BlueprintInstance.h. Referenced by detachMotor(), and ~BlueprintInstance(). |
|
List of Sensor pointers.
Definition at line 172 of file BlueprintInstance.h. Referenced by detachSensor(), getNumSensors(), getSensor(), internal_addSensor(), and ~BlueprintInstance(). |
|
Map of Sensor names to Sensor pointers.
Definition at line 160 of file BlueprintInstance.h. Referenced by detachSensor(), and ~BlueprintInstance(). |
|
List of Solid pointers.
Definition at line 163 of file BlueprintInstance.h. Referenced by detachSolid(), getNumSolids(), getSolid(), internal_addSolid(), and ~BlueprintInstance(). |
|
Map of Solid names to Solid pointers.
Definition at line 151 of file BlueprintInstance.h. Referenced by detachSolid(), and ~BlueprintInstance(). |