scl::CGraphicsBase::CGraphicsBase |
( |
| ) |
|
|
inline |
Default constructor sets initialization state to false
virtual scl::CGraphicsBase::~CGraphicsBase |
( |
| ) |
|
|
inlinevirtual |
Default destructor does nothing.
virtual sBool scl::CGraphicsBase::addMeshToRender |
( |
const std::string & |
arg_mesh_name, |
|
|
const std::string & |
arg_mesh_file, |
|
|
const Eigen::Vector3d & |
arg_pos, |
|
|
const Eigen::Matrix3d & |
arg_rot |
|
) |
| |
|
pure virtual |
Adds a static mesh to render. Indexed by its name.
A mesh is defined as anything that DOESN"T obey the laws of physics. It is merely rendered (possibly with collision etc).
Implemented in scl::CGraphicsChai.
Adds a muscle system to the graphics rendering environment
A muscle system is defined as:
- A set of line segments, with connection points on a robot links certain links.
- A parent robot to whose links the muscles attach.
- Parameters
-
arg_robot | The robot to which the muscles will be attached |
arg_mset | The set of muscles to be attached |
Implemented in scl::CGraphicsChai.
Adds a robot's meshes to the graphics rendering environment.
A robot is defined as:
- Anything whose dynamics are integrated by the physics simulator
- Any real world entity subject to the laws of physics
- Parameters
-
arg_rob_parsed | The static robot specification |
arg_rob_io | The generalized coordinates etc. |
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::destroyGraphics |
( |
| ) |
|
|
pure virtual |
Deallocates the graphics and resets all associated variables..
Implemented in scl::CGraphicsChai.
virtual const std::string& scl::SObject::getName |
( |
| ) |
const |
|
inlinevirtualinherited |
virtual const std::string& scl::SObject::getType |
( |
| ) |
const |
|
inlinevirtualinherited |
virtual bool scl::SObject::hasBeenInit |
( |
| ) |
const |
|
inlinevirtualinherited |
virtual sBool scl::CGraphicsBase::hasBeenInit |
( |
| ) |
|
|
inlinevirtual |
Initializes a graphics world using the camera information in the passed data structure.
Returns, true : Successfully created a world false : Failed (or the data structure was invalid).
- Parameters
-
arg_gr_ds | The graphics data structure loaded from the xml file. Specifies camera etc. information. |
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::removeMeshFromRender |
( |
const std::string & |
arg_mesh_name | ) |
|
|
pure virtual |
Removes a static mesh from the rendered scene. Indexed by its name.
A mesh is defined as anything that DOESN"T obey the laws of physics. It is merely rendered (possibly with collision etc).
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::removeMusclesFromRender |
( |
const std::string & |
arg_robot, |
|
|
const std::string & |
arg_mset |
|
) |
| |
|
pure virtual |
Removes a muscle system from the graphics rendering environment
A muscle system is defined as:
- A set of line segments, with connection points on a robot links certain links.
- A parent robot to whose links the muscles attach.
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::removeRobotFromRender |
( |
const std::string & |
arg_robot | ) |
|
|
pure virtual |
Removes a robot's meshes from the graphics rendering environment.
A robot is defined as:
- Anything whose dynamics are integrated by the physics simulator
- Any real world entity subject to the laws of physics
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::updateGraphics |
( |
| ) |
|
|
pure virtual |
Updates the rotation and translation transformations for all the robots' associated CGenerericObject branching representations.
Implemented in scl::CGraphicsChai.
virtual bool scl::CGraphicsBase::updateGraphicsForMeshes |
( |
| ) |
|
|
pure virtual |
Updates the rotation and translation transformations for all meshes.
Implemented in scl::CGraphicsChai.
virtual bool scl::CGraphicsBase::updateGraphicsForMuscles |
( |
| ) |
|
|
pure virtual |
Updates the rotation and translation transformations for all muscles systems.
Implemented in scl::CGraphicsChai.
virtual sBool scl::CGraphicsBase::updateGraphicsForRobots |
( |
| ) |
|
|
pure virtual |
Updates the rotation and translation transformations for all associated robots
Implemented in scl::CGraphicsChai.
sBool scl::SObject::has_been_init_ |
|
inherited |
Whether the object is ready for use
std::string scl::SObject::name_ |
|
inherited |
std::string scl::SObject::type_ |
|
protectedinherited |
The object's type. Should only be set by the constructor
The documentation for this class was generated from the following file: