#include <mock_context.h>
Public Member Functions | |
virtual DisplayFactory * | getDisplayFactory () const |
Return a factory for creating Display subclasses based on a class id string. | |
virtual QString | getFixedFrame () const |
Return the fixed frame name. | |
virtual uint64_t | getFrameCount () const |
Return the current value of the frame count. | |
virtual FrameManager * | getFrameManager () const |
Return the FrameManager instance. | |
virtual Ogre::SceneManager * | getSceneManager () const |
Returns the Ogre::SceneManager used for the main RenderPanel. | |
virtual SelectionManager * | getSelectionManager () const |
Return a pointer to the SelectionManager. | |
virtual QString | getTargetFrame () const |
Return the target frame name. | |
virtual tf::TransformListener * | getTFClient () const |
Convenience function: returns getFrameManager()->getTFClient(). | |
virtual ros::CallbackQueueInterface * | getThreadedQueue () |
Return a CallbackQueue using a different thread than the main GUI one. | |
virtual ros::CallbackQueueInterface * | getUpdateQueue () |
Return the CallbackQueue using the main GUI thread. | |
virtual WindowManagerInterface * | getWindowManager () const |
Return the window manager, if any. | |
virtual void | handleChar (QKeyEvent *event, RenderPanel *panel) |
Handle a single key event for a given RenderPanel. | |
virtual void | handleMouseEvent (const ViewportMouseEvent &event) |
Handle a mouse event. | |
MockContext () | |
virtual void | queueRender () |
Queues a render. Multiple calls before a render happens will only cause a single render. | |
Private Attributes | |
DisplayFactory * | display_factory_ |
Definition at line 37 of file mock_context.h.
rviz::MockContext::MockContext | ( | ) |
Definition at line 33 of file mock_context.cpp.
virtual DisplayFactory* rviz::MockContext::getDisplayFactory | ( | ) | const [inline, virtual] |
Return a factory for creating Display subclasses based on a class id string.
Implements rviz::DisplayContext.
Definition at line 51 of file mock_context.h.
virtual QString rviz::MockContext::getFixedFrame | ( | ) | const [inline, virtual] |
Return the fixed frame name.
Implements rviz::DisplayContext.
Definition at line 48 of file mock_context.h.
virtual uint64_t rviz::MockContext::getFrameCount | ( | ) | const [inline, virtual] |
Return the current value of the frame count.
The frame count is just a number which increments each time a frame is rendered. This lets clients check if a new frame has been rendered since the last time they did something.
Implements rviz::DisplayContext.
Definition at line 50 of file mock_context.h.
virtual FrameManager* rviz::MockContext::getFrameManager | ( | ) | const [inline, virtual] |
Return the FrameManager instance.
Implements rviz::DisplayContext.
Definition at line 45 of file mock_context.h.
virtual Ogre::SceneManager* rviz::MockContext::getSceneManager | ( | ) | const [inline, virtual] |
Returns the Ogre::SceneManager used for the main RenderPanel.
Implements rviz::DisplayContext.
Definition at line 42 of file mock_context.h.
virtual SelectionManager* rviz::MockContext::getSelectionManager | ( | ) | const [inline, virtual] |
Return a pointer to the SelectionManager.
Implements rviz::DisplayContext.
Definition at line 44 of file mock_context.h.
virtual QString rviz::MockContext::getTargetFrame | ( | ) | const [inline, virtual] |
Return the target frame name.
Implements rviz::DisplayContext.
Definition at line 49 of file mock_context.h.
virtual tf::TransformListener* rviz::MockContext::getTFClient | ( | ) | const [inline, virtual] |
Convenience function: returns getFrameManager()->getTFClient().
Implements rviz::DisplayContext.
Definition at line 46 of file mock_context.h.
virtual ros::CallbackQueueInterface* rviz::MockContext::getThreadedQueue | ( | ) | [inline, virtual] |
Return a CallbackQueue using a different thread than the main GUI one.
Implements rviz::DisplayContext.
Definition at line 53 of file mock_context.h.
virtual ros::CallbackQueueInterface* rviz::MockContext::getUpdateQueue | ( | ) | [inline, virtual] |
Return the CallbackQueue using the main GUI thread.
Implements rviz::DisplayContext.
Definition at line 52 of file mock_context.h.
virtual WindowManagerInterface* rviz::MockContext::getWindowManager | ( | ) | const [inline, virtual] |
Return the window manager, if any.
Implements rviz::DisplayContext.
Definition at line 43 of file mock_context.h.
virtual void rviz::MockContext::handleChar | ( | QKeyEvent * | event, | |
RenderPanel * | panel | |||
) | [inline, virtual] |
Handle a single key event for a given RenderPanel.
Implements rviz::DisplayContext.
Definition at line 54 of file mock_context.h.
virtual void rviz::MockContext::handleMouseEvent | ( | const ViewportMouseEvent & | event | ) | [inline, virtual] |
Handle a mouse event.
Implements rviz::DisplayContext.
Definition at line 55 of file mock_context.h.
virtual void rviz::MockContext::queueRender | ( | ) | [inline, virtual] |
Queues a render. Multiple calls before a render happens will only cause a single render.
Implements rviz::DisplayContext.
Definition at line 47 of file mock_context.h.
Definition at line 55 of file mock_context.h.