to make an entity base class More...
#include <gui/gui.hh>

Public Types | |
| typedef boost::function< void(const math::Vector3 &pos, const math::Vector3 &scale)> | CreateCallback |
Public Member Functions | |
| EntityMaker () | |
| Constructor. More... | |
| virtual | ~EntityMaker () |
| Destructor. More... | |
| virtual bool | IsActive () const =0 |
| Checks if entity is active. More... | |
| virtual void | OnMouseDrag (const common::MouseEvent &_event) |
| Callback for dragging with mouse. More... | |
| virtual void | OnMouseMove (const common::MouseEvent &_event) |
| Callback when moving mouse. More... | |
| virtual 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... | |
| virtual void | Start (const rendering::UserCameraPtr _camera)=0 |
| virtual void | Stop ()=0 |
Static Public Member Functions | |
| static void | SetSnapToGrid (bool _snap) |
| Set whether to snap to grid. More... | |
Protected Member Functions | |
| virtual void | CreateTheEntity ()=0 |
| Creates the entity. More... | |
| math::Vector3 | GetSnappedPoint (math::Vector3 _p) |
| Get a point snapped to a grid. More... | |
Protected Attributes | |
| rendering::UserCameraPtr | camera |
| CreateCallback | createCB |
| transport::PublisherPtr | makerPub |
| transport::NodePtr | node |
| transport::PublisherPtr | requestPub |
| transport::PublisherPtr | visPub |
to make an entity base class