Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::editors::views::SelectionTool Class Reference

A class that allows the user to select objects within a 3D viewport. More...

#include <omEditorsSpaceViewSelectionTool.h>

Inheritance diagram for om::editors::views::SelectionTool:
om::editors::views::SpaceView::Tool

Public Member Functions

 SelectionTool ()
 Create a new transform tool with no context, scene, or camera viewport. More...
 
virtual GUIImage getIcon (const Vector2f &size) const
 Return an icon that represents the tool. More...
 
virtual om::graphics::gui::GUIObjectgetToolbar () const
 Return a GUI object for the tool's parameter toolbar. More...
 
virtual void setContext (GraphicsContext *context)
 Set the graphics context that the tool should use for rendering its own interface. More...
 
virtual void setScene (GraphicsScene *scene)
 Set the scene that contains the graphical representations of the objects in the space view. More...
 
virtual void setCamera (Camera *camera)
 Set the camera that the space view is currently using to view the scene. More...
 
virtual void addSelection (SpatialObject *object)
 A method called by the space view when a new spatial object is added to the current selection. More...
 
virtual void removeSelection (SpatialObject *object)
 A method called by the space view when a spatial object is removed from the current selection. More...
 
virtual void clearSelection ()
 A method called by the space view when the current selection is cleared. More...
 
virtual void update (const Time &dt)
 Update the state of the tool for the specified time interval in seconds. More...
 
virtual void draw (const SceneRenderer &renderer, const Viewport &viewport)
 Draw the visual representation of this tool in the specified viewport on the current framebuffer. More...
 
virtual void getRenderables (const SceneRenderRequest &sceneRequest, const om::graphics::RenderRequest &renderRequest, RenderQueue &renderQueue)
 A method which allows the tool to provide graphics data for the space view's main render pass. More...
 
virtual Bool guiEvent (const GUIEvent &event)
 Process a GUI event received by this tool and return whether or not it was handled. More...
 
virtual Bool textEvent (const TextEvent &event)
 Process a text event received by this tool and return whether or not it was handled. More...
 
virtual Bool keyEvent (const KeyEvent &event)
 Process a key event received by this tool and return whether or not it was handled. More...
 
virtual Bool mouseButtonEvent (const MouseButtonEvent &event)
 Process a mouse button event received by this tool and return whether or not it was handled. More...
 
virtual Bool mouseMotionEvent (const MouseMotionEvent &event)
 Process a mouse motion event received by this tool and return whether or not it was handled. More...
 
virtual Bool mouseWheelEvent (const MouseWheelEvent &event)
 Process a mouse wheel event received by this tool and return whether or not it was handled. More...
 
- Public Member Functions inherited from om::editors::views::SpaceView::Tool
 Tool ()
 Create a new space view tool with no context, scene, or camera viewport. More...
 
OM_INLINE DelegategetDelegate ()
 Return a reference to the delegate which responds to events for this space view tool. More...
 
OM_INLINE const DelegategetDelegate () const
 Return a reference to the delegate which responds to events for this space view tool. More...
 
OM_INLINE void setDelegate (const Delegate &newDelegate)
 Return a reference to the delegate which responds to events for this space view tool. More...
 
OM_INLINE GraphicsContext * getContext () const
 Return a pointer to the graphics context that the tool uses for rendering its own interface. More...
 

Additional Inherited Members

- Protected Attributes inherited from om::editors::views::SpaceView::Tool
GraphicsContext * context
 A pointer to the graphics context that the tool uses for rendering its own interface. More...
 
GraphicsScene * scene
 The scene that contains the graphical representations of the objects in the space view. More...
 
Camera * camera
 The camera that the space view is currently using to view the scene. More...
 
Delegate delegate
 An object that receieves callback events for the tool. More...
 

Detailed Description

A class that allows the user to select objects within a 3D viewport.

Constructor & Destructor Documentation

om::editors::views::SelectionTool::SelectionTool ( )

Create a new transform tool with no context, scene, or camera viewport.

Member Function Documentation

virtual GUIImage om::editors::views::SelectionTool::getIcon ( const Vector2f &  size) const
virtual

Return an icon that represents the tool.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual om::graphics::gui::GUIObject* om::editors::views::SelectionTool::getToolbar ( ) const
virtual

Return a GUI object for the tool's parameter toolbar.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::setContext ( GraphicsContext *  context)
virtual

Set the graphics context that the tool should use for rendering its own interface.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::setScene ( GraphicsScene *  scene)
virtual

Set the scene that contains the graphical representations of the objects in the space view.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::setCamera ( Camera *  camera)
virtual

Set the camera that the space view is currently using to view the scene.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::addSelection ( SpatialObject object)
virtual

A method called by the space view when a new spatial object is added to the current selection.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::removeSelection ( SpatialObject object)
virtual

A method called by the space view when a spatial object is removed from the current selection.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::clearSelection ( )
virtual

A method called by the space view when the current selection is cleared.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::update ( const Time dt)
virtual

Update the state of the tool for the specified time interval in seconds.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::draw ( const SceneRenderer &  renderer,
const Viewport &  viewport 
)
virtual

Draw the visual representation of this tool in the specified viewport on the current framebuffer.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual void om::editors::views::SelectionTool::getRenderables ( const SceneRenderRequest &  sceneRequest,
const om::graphics::RenderRequest renderRequest,
RenderQueue &  renderQueue 
)
virtual

A method which allows the tool to provide graphics data for the space view's main render pass.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::guiEvent ( const GUIEvent &  event)
virtual

Process a GUI event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::textEvent ( const TextEvent &  event)
virtual

Process a text event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::keyEvent ( const KeyEvent &  event)
virtual

Process a key event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::mouseButtonEvent ( const MouseButtonEvent &  event)
virtual

Process a mouse button event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::mouseMotionEvent ( const MouseMotionEvent &  event)
virtual

Process a mouse motion event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.

virtual Bool om::editors::views::SelectionTool::mouseWheelEvent ( const MouseWheelEvent &  event)
virtual

Process a mouse wheel event received by this tool and return whether or not it was handled.

Reimplemented from om::editors::views::SpaceView::Tool.


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