#include <Visual.hh>
Public Member Functions | |
Visual () | |
Default constructor. More... | |
void | AddPlugin (const Plugin &_plugin) |
Add a plugin to this object. More... | |
bool | CastShadows () const |
Get whether the visual casts shadows. More... | |
void | ClearPlugins () |
Remove all plugins. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
const Geometry * | Geom () const |
Get a pointer to the visual's geometry. More... | |
bool | HasLaserRetro () const |
Get whether the lidar reflective intensity was set was set. More... | |
double | LaserRetro () const |
Get the flidar reflective intensity. More... | |
Errors | Load (ElementPtr _sdf) |
Load the visual based on a element pointer. More... | |
Errors | Load (ElementPtr _sdf, const ParserConfig &_config) |
Load the visual based on a element pointer. More... | |
const sdf::Material * | Material () const |
Get a pointer to the visual's material properties. More... | |
std::string | Name () const |
Get the name of the visual. More... | |
sdf::Plugins & | Plugins () |
Get a mutable vector of plugins attached to this object. More... | |
const sdf::Plugins & | Plugins () const |
Get the plugins attached to this object. More... | |
const std::string & | PoseRelativeTo () const |
Get the name of the coordinate frame relative to which this object's pose is expressed. More... | |
const gz::math::Pose3d & | RawPose () const |
Get the pose of the visual object. More... | |
sdf::SemanticPose | SemanticPose () const |
Get SemanticPose object of this object to aid in resolving poses. More... | |
void | SetCastShadows (bool _castShadows) |
Set whether the visual casts shadows. More... | |
void | SetGeom (const Geometry &_geom) |
Set the visual's geometry. More... | |
void | SetHasLaserRetro (bool _laserRetro) |
Set whether the lidar reflective intensity has been specified. More... | |
void | SetLaserRetro (double _laserRetro) |
Set the lidar reflective intensity. More... | |
void | SetMaterial (const sdf::Material &_material) |
Set the visual's material. More... | |
void | SetName (const std::string &_name) |
Set the name of the visual. More... | |
void | SetPoseRelativeTo (const std::string &_frame) |
Set the name of the coordinate frame relative to which this object's pose is expressed. More... | |
void | SetRawPose (const gz::math::Pose3d &_pose) |
Set the pose of the visual object. More... | |
void | SetTransparency (float _transparency) |
Set the transparency value for the visual. More... | |
void | SetVisibilityFlags (uint32_t _flags) |
Set the visibility flags of a visual. More... | |
sdf::ElementPtr | ToElement () const |
Create and return an SDF element filled with data from this visual. More... | |
float | Transparency () const |
Get the transparency value of the visual. More... | |
uint32_t | VisibilityFlags () const |
Get the visibility flags of a visual. More... | |
sdf::SDF_VERSION_NAMESPACE::Visual::Visual | ( | ) |
Default constructor.
void sdf::SDF_VERSION_NAMESPACE::Visual::AddPlugin | ( | const Plugin & | _plugin | ) |
Add a plugin to this object.
[in] | _plugin | Plugin to add. |
bool sdf::SDF_VERSION_NAMESPACE::Visual::CastShadows | ( | ) | const |
Get whether the visual casts shadows.
void sdf::SDF_VERSION_NAMESPACE::Visual::ClearPlugins | ( | ) |
Remove all plugins.
sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::Visual::Element | ( | ) | const |
const Geometry* sdf::SDF_VERSION_NAMESPACE::Visual::Geom | ( | ) | const |
Get a pointer to the visual's geometry.
bool sdf::SDF_VERSION_NAMESPACE::Visual::HasLaserRetro | ( | ) | const |
Get whether the lidar reflective intensity was set was set.
double sdf::SDF_VERSION_NAMESPACE::Visual::LaserRetro | ( | ) | const |
Get the flidar reflective intensity.
Errors sdf::SDF_VERSION_NAMESPACE::Visual::Load | ( | ElementPtr | _sdf | ) |
Errors sdf::SDF_VERSION_NAMESPACE::Visual::Load | ( | ElementPtr | _sdf, |
const ParserConfig & | _config | ||
) |
const sdf::Material* sdf::SDF_VERSION_NAMESPACE::Visual::Material | ( | ) | const |
Get a pointer to the visual's material properties.
This can be a nullptr if material properties have not been set.
std::string sdf::SDF_VERSION_NAMESPACE::Visual::Name | ( | ) | const |
Get the name of the visual.
The name of the visual must be unique within the scope of a Link.
sdf::Plugins& sdf::SDF_VERSION_NAMESPACE::Visual::Plugins | ( | ) |
Get a mutable vector of plugins attached to this object.
const sdf::Plugins& sdf::SDF_VERSION_NAMESPACE::Visual::Plugins | ( | ) | const |
Get the plugins attached to this object.
const std::string& sdf::SDF_VERSION_NAMESPACE::Visual::PoseRelativeTo | ( | ) | const |
Get the name of the coordinate frame relative to which this object's pose is expressed.
An empty value indicates that the frame is relative to the parent link.
const gz::math::Pose3d& sdf::SDF_VERSION_NAMESPACE::Visual::RawPose | ( | ) | const |
Get the pose of the visual object.
This is the pose of the visual as specified in SDF (<visual><pose> ... </pose></visual>).
sdf::SemanticPose sdf::SDF_VERSION_NAMESPACE::Visual::SemanticPose | ( | ) | const |
Get SemanticPose object of this object to aid in resolving poses.
void sdf::SDF_VERSION_NAMESPACE::Visual::SetCastShadows | ( | bool | _castShadows | ) |
Set whether the visual casts shadows.
[in] | _castShadows | True to cast shadows, false to not cast shadows |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetGeom | ( | const Geometry & | _geom | ) |
Set the visual's geometry.
[in] | _geom | The geometry of the visual object |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetHasLaserRetro | ( | bool | _laserRetro | ) |
Set whether the lidar reflective intensity has been specified.
[in] | _laserRetro | True if the lidar reflective intensity has been set in the sdf. |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetLaserRetro | ( | double | _laserRetro | ) |
Set the lidar reflective intensity.
[in] | _laserRetro | The lidar reflective intensity. |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetMaterial | ( | const sdf::Material & | _material | ) |
Set the visual's material.
[in] | _material | The material of the visual object |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetName | ( | const std::string & | _name | ) |
Set the name of the visual.
The name of the visual must be unique within the scope of a Link.
[in] | _name | Name of the visual. |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetPoseRelativeTo | ( | const std::string & | _frame | ) |
Set the name of the coordinate frame relative to which this object's pose is expressed.
An empty value indicates that the frame is relative to the parent link.
[in] | _frame | The name of the pose relative-to frame. |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetRawPose | ( | const gz::math::Pose3d & | _pose | ) |
Set the pose of the visual object.
[in] | _pose | The pose of the visual object. |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetTransparency | ( | float | _transparency | ) |
Set the transparency value for the visual.
[in] | _transparency | Transparency value between 0 and 1 |
void sdf::SDF_VERSION_NAMESPACE::Visual::SetVisibilityFlags | ( | uint32_t | _flags | ) |
Set the visibility flags of a visual.
[in] | _flags | visibility flags |
sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::Visual::ToElement | ( | ) | const |
float sdf::SDF_VERSION_NAMESPACE::Visual::Transparency | ( | ) | const |
Get the transparency value of the visual.
uint32_t sdf::SDF_VERSION_NAMESPACE::Visual::VisibilityFlags | ( | ) | const |
Get the visibility flags of a visual.