Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gazebo::gui::LightMaker Class Reference

#include <LightMaker.hh>

Inheritance diagram for gazebo::gui::LightMaker:
Inheritance graph
[legend]

Public Member Functions

 LightMaker ()
 
bool InitFromLight (const std::string &_lightName)
 Initialize the light maker from an existing light in the scene. More...
 
virtual bool IsActive () const
 Checks if entity is active. More...
 
virtual void OnMouseDrag (const common::MouseEvent &)
 Callback for dragging with mouse. More...
 
virtual void OnMouseMove (const common::MouseEvent &_event)
 Callback when moving mouse. More...
 
void OnMousePush (const common::MouseEvent &_event)
 Callback for pushing entity with mouse. More...
 
virtual void OnMouseRelease (const common::MouseEvent &_event)
 Callback for releasing mouse button. More...
 
void Start (const rendering::UserCameraPtr _camera)
 
void Stop ()
 
- Public Member Functions inherited from gazebo::gui::EntityMaker
 EntityMaker ()
 Constructor. More...
 
virtual ~EntityMaker ()
 Destructor. More...
 

Protected Member Functions

virtual void CreateTheEntity ()
 Creates the entity. More...
 
virtual bool Init ()
 Initialize the light maker. More...
 
- Protected Member Functions inherited from gazebo::gui::EntityMaker
math::Vector3 GetSnappedPoint (math::Vector3 _p)
 Get a point snapped to a grid. More...
 

Protected Attributes

transport::PublisherPtr lightPub
 
std::string lightTypename
 
msgs::Light msg
 
int state
 
- Protected Attributes inherited from gazebo::gui::EntityMaker
rendering::UserCameraPtr camera
 
CreateCallback createCB
 
transport::PublisherPtr makerPub
 
transport::NodePtr node
 
transport::PublisherPtr requestPub
 
transport::PublisherPtr visPub
 

Additional Inherited Members

- Public Types inherited from gazebo::gui::EntityMaker
typedef boost::function< void(const
math::Vector3 &pos, const
math::Vector3 &scale)> 
CreateCallback
 
- Static Public Member Functions inherited from gazebo::gui::EntityMaker
static void SetSnapToGrid (bool _snap)
 Set whether to snap to grid. More...
 

Constructor & Destructor Documentation

gazebo::gui::LightMaker::LightMaker ( )

Member Function Documentation

virtual void gazebo::gui::LightMaker::CreateTheEntity ( )
protectedvirtual

Creates the entity.

Implements gazebo::gui::EntityMaker.

virtual bool gazebo::gui::LightMaker::Init ( )
protectedvirtual

Initialize the light maker.

Returns
True if the light maker is initialized successfully.
bool gazebo::gui::LightMaker::InitFromLight ( const std::string &  _lightName)

Initialize the light maker from an existing light in the scene.

Parameters
[in]_lightNameName of existing light in the scene.
Returns
True if initialization is successful.
virtual bool gazebo::gui::LightMaker::IsActive ( ) const
virtual

Checks if entity is active.

Implements gazebo::gui::EntityMaker.

virtual void gazebo::gui::LightMaker::OnMouseDrag ( const common::MouseEvent _event)
inlinevirtual

Callback for dragging with mouse.

Parameters
[in]_eventMouseEvent object

Reimplemented from gazebo::gui::EntityMaker.

virtual void gazebo::gui::LightMaker::OnMouseMove ( const common::MouseEvent _event)
virtual

Callback when moving mouse.

Parameters
[in]_eventMouseEvent object

Reimplemented from gazebo::gui::EntityMaker.

void gazebo::gui::LightMaker::OnMousePush ( const common::MouseEvent _event)
virtual

Callback for pushing entity with mouse.

Parameters
[in]_eventMouseEvent object

Reimplemented from gazebo::gui::EntityMaker.

virtual void gazebo::gui::LightMaker::OnMouseRelease ( const common::MouseEvent _event)
virtual

Callback for releasing mouse button.

Parameters
[in]_eventMouseEvent object

Reimplemented from gazebo::gui::EntityMaker.

void gazebo::gui::LightMaker::Start ( const rendering::UserCameraPtr  _camera)
virtual
Parameters
[in]_cameraPointer to the user camera

Implements gazebo::gui::EntityMaker.

void gazebo::gui::LightMaker::Stop ( )
virtual

Member Data Documentation

transport::PublisherPtr gazebo::gui::LightMaker::lightPub
protected
std::string gazebo::gui::LightMaker::lightTypename
protected
msgs::Light gazebo::gui::LightMaker::msg
protected
int gazebo::gui::LightMaker::state
protected

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