#include <Visual.hh>
◆ Visual() [1/3]
sdf::v8::Visual::Visual |
( |
| ) |
|
◆ Visual() [2/3]
sdf::v8::Visual::Visual |
( |
const Visual & |
_visual | ) |
|
Copy constructor.
- Parameters
-
◆ Visual() [3/3]
sdf::v8::Visual::Visual |
( |
Visual && |
_visual | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ ~Visual()
sdf::v8::Visual::~Visual |
( |
| ) |
|
◆ Element()
sdf::ElementPtr sdf::v8::Visual::Element |
( |
| ) |
const |
Get a pointer to the SDF element that was used during load.
- Returns
- SDF element pointer. The value will be nullptr if Load has not been called.
◆ Geom()
const Geometry* sdf::v8::Visual::Geom |
( |
| ) |
const |
Get a pointer to the visual's geometry.
- Returns
- The visual's geometry.
◆ Load()
Load the visual based on a element pointer.
This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.
- Parameters
-
- Returns
- Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.
◆ Material()
sdf::Material* sdf::v8::Visual::Material |
( |
| ) |
const |
Get a pointer to the visual's material properties.
This can be a nullptr if material properties have not been set.
- Returns
- Pointer to the visual's material properties. Nullptr indicates that material properties have not been set.
◆ Name()
std::string sdf::v8::Visual::Name |
( |
| ) |
const |
Get the name of the visual.
The name of the visual must be unique within the scope of a Link.
- Returns
- Name of the visual.
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to this.
◆ operator=() [2/2]
Visual& sdf::v8::Visual::operator= |
( |
const Visual & |
_visual | ) |
|
Copy assignment operator.
- Parameters
-
- Returns
- Reference to this.
◆ Pose()
const ignition::math::Pose3d& sdf::v8::Visual::Pose |
( |
| ) |
const |
Get the pose of the visual object.
This is the pose of the visual as specified in SDF (<visual><pose> ... </pose></visual>).
- Returns
- The pose of the visual object.
◆ PoseFrame()
const std::string& sdf::v8::Visual::PoseFrame |
( |
| ) |
const |
Get the name of the coordinate frame in which this visual object's pose is expressed.
A empty value indicates that the frame is the parent link.
- Returns
- The name of the pose frame.
◆ SetGeom()
void sdf::v8::Visual::SetGeom |
( |
const Geometry & |
_geom | ) |
|
Set the visual's geometry.
- Parameters
-
[in] | _geom | The geometry of the visual object |
◆ SetMaterial()
void sdf::v8::Visual::SetMaterial |
( |
const sdf::Material & |
_material | ) |
|
Set the visual's material.
- Parameters
-
[in] | _material | The material of the visual object |
◆ SetName()
void sdf::v8::Visual::SetName |
( |
const std::string & |
_name | ) |
const |
Set the name of the visual.
The name of the visual must be unique within the scope of a Link.
- Parameters
-
[in] | _name | Name of the visual. |
◆ SetPose()
void sdf::v8::Visual::SetPose |
( |
const ignition::math::Pose3d & |
_pose | ) |
|
Set the pose of the visual object.
- See also
- const ignition::math::Pose3d &Pose() const
- Parameters
-
[in] | _pose | The pose of the visual object. |
◆ SetPoseFrame()
void sdf::v8::Visual::SetPoseFrame |
( |
const std::string & |
_pose | ) |
|
Set the name of the coordinate frame in which this visual object's pose is expressed.
A empty value indicates that the frame is the parent link.
- Returns
- The name of the pose frame.
The documentation for this class was generated from the following file: