All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::rendering::Projector Class Reference

Projects a material onto surface, light a light projector. More...

#include <rendering/rendering.hh>

Public Member Functions

 Projector (VisualPtr _parent)
 Constructor. More...
 
virtual ~Projector ()
 Destructor. More...
 
VisualPtr GetParent ()
 Get the parent visual. More...
 
void Load (sdf::ElementPtr _sdf)
 Load from an sdf pointer. More...
 
void Load (const msgs::Projector &_msg)
 Load from a message. More...
 
void Load (const std::string &_name, const math::Pose &_pose=math::Pose(0, 0, 0, 0, 0, 0), const std::string &_textureName="", double _nearClip=0.25, double _farClip=15.0, double _fov=M_PI *0.25)
 Load the projector. More...
 
void SetEnabled (bool _enabled)
 Set whether the projector is enabled or disabled. More...
 
void SetTexture (const std::string &_textureName)
 Load a texture into the projector. More...
 
void Toggle ()
 Toggle the activation of the projector. More...
 

Detailed Description

Projects a material onto surface, light a light projector.

Constructor & Destructor Documentation

gazebo::rendering::Projector::Projector ( VisualPtr  _parent)

Constructor.

Parameters
[in]_parentName of the parent visual.
virtual gazebo::rendering::Projector::~Projector ( )
virtual

Destructor.

Member Function Documentation

VisualPtr gazebo::rendering::Projector::GetParent ( )

Get the parent visual.

Returns
Pointer ot the parent visual.
void gazebo::rendering::Projector::Load ( sdf::ElementPtr  _sdf)

Load from an sdf pointer.

Parameters
[in]_sdfPointer to the SDF element.
void gazebo::rendering::Projector::Load ( const msgs::Projector &  _msg)

Load from a message.

Parameters
[in]_msgLoad from a message.
void gazebo::rendering::Projector::Load ( const std::string &  _name,
const math::Pose _pose = math::Pose(0, 0, 0, 0, 0, 0),
const std::string &  _textureName = "",
double  _nearClip = 0.25,
double  _farClip = 15.0,
double  _fov = M_PI *0.25 
)

Load the projector.

Parameters
[in]_nameName of the projector.
[in]_posPose of the projector.
[in]_textureNameName of the texture to project.
[in]_nearClipNear clip distance.
[in]_farClipFar clip distance.
[in]_fovField of view.
void gazebo::rendering::Projector::SetEnabled ( bool  _enabled)

Set whether the projector is enabled or disabled.

Parameters
[in]_enabledTrue to enable the projector.
void gazebo::rendering::Projector::SetTexture ( const std::string &  _textureName)

Load a texture into the projector.

Parameters
[in]_textureNameName of the texture to project.
void gazebo::rendering::Projector::Toggle ( )

Toggle the activation of the projector.


The documentation for this class was generated from the following file: