Om
1.0.0
A universal framework for multimedia simulation
|
A class that allows the user to select objects within a 3D viewport. More...
#include <omEditorsSpaceViewSelectionTool.h>
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::GUIObject * | getToolbar () 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 Delegate & | getDelegate () |
Return a reference to the delegate which responds to events for this space view tool. More... | |
OM_INLINE const Delegate & | getDelegate () 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... | |
A class that allows the user to select objects within a 3D viewport.
om::editors::views::SelectionTool::SelectionTool | ( | ) |
Create a new transform tool with no context, scene, or camera viewport.
|
virtual |
Return an icon that represents the tool.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Return a GUI object for the tool's parameter toolbar.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Set the graphics context that the tool should use for rendering its own interface.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Set the scene that contains the graphical representations of the objects in the space view.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Set the camera that the space view is currently using to view the scene.
Reimplemented from om::editors::views::SpaceView::Tool.
|
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 |
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 |
A method called by the space view when the current selection is cleared.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Update the state of the tool for the specified time interval in seconds.
Reimplemented from om::editors::views::SpaceView::Tool.
|
virtual |
Draw the visual representation of this tool in the specified viewport on the current framebuffer.
Reimplemented from om::editors::views::SpaceView::Tool.
|
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 |
Process a GUI event received by this tool and return whether or not it was handled.
Reimplemented from om::editors::views::SpaceView::Tool.
|
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 |
Process a key event received by this tool and return whether or not it was handled.
Reimplemented from om::editors::views::SpaceView::Tool.
|
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 |
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 |
Process a mouse wheel event received by this tool and return whether or not it was handled.
Reimplemented from om::editors::views::SpaceView::Tool.