Public Member Functions | Private Attributes | List of all members
rviz::MockContext Class Reference

#include <mock_context.h>

Inheritance diagram for rviz::MockContext:
Inheritance graph
[legend]

Public Member Functions

virtual uint32_t getDefaultVisibilityBit () const
 
virtual DisplayFactorygetDisplayFactory () const
 Return a factory for creating Display subclasses based on a class id string. More...
 
virtual QString getFixedFrame () const
 Return the fixed frame name. More...
 
virtual uint64_t getFrameCount () const
 Return the current value of the frame count. More...
 
virtual FrameManagergetFrameManager () const
 Return the FrameManager instance. More...
 
virtual DisplayGroupgetRootDisplayGroup () const
 
virtual Ogre::SceneManager * getSceneManager () const
 Returns the Ogre::SceneManager used for the main RenderPanel. More...
 
virtual SelectionManagergetSelectionManager () const
 Return a pointer to the SelectionManager. More...
 
virtual tf::TransformListenergetTFClient () const
 Convenience function: returns getFrameManager()->getTFClient(). More...
 
virtual ros::CallbackQueueInterfacegetThreadedQueue ()
 Return a CallbackQueue using a different thread than the main GUI one. More...
 
virtual ToolManagergetToolManager () const
 Return the ToolManager. More...
 
virtual ros::CallbackQueueInterfacegetUpdateQueue ()
 Return the CallbackQueue using the main GUI thread. More...
 
virtual ViewManagergetViewManager () const
 Return the ViewManager. More...
 
virtual WindowManagerInterfacegetWindowManager () const
 Return the window manager, if any. More...
 
virtual void handleChar (QKeyEvent *event, RenderPanel *panel)
 Handle a single key event for a given RenderPanel. More...
 
virtual void handleMouseEvent (const ViewportMouseEvent &event)
 Handle a mouse event. More...
 
 MockContext ()
 
virtual void queueRender ()
 Queues a render. Multiple calls before a render happens will only cause a single render. More...
 
virtual void setStatus (const QString &message)
 
virtual BitAllocatorvisibilityBits ()
 
- Public Member Functions inherited from rviz::DisplayContext
virtual std::shared_ptr< tf2_ros::BuffergetTF2BufferPtr () const =0
 Convenience function: returns getFrameManager()->getTF2BufferPtr(). More...
 

Private Attributes

DisplayFactorydisplay_factory_
 

Additional Inherited Members

- Public Slots inherited from rviz::DisplayContext

Detailed Description

Definition at line 36 of file mock_context.h.

Constructor & Destructor Documentation

◆ MockContext()

rviz::MockContext::MockContext ( )

Definition at line 36 of file mock_context.cpp.

Member Function Documentation

◆ getDefaultVisibilityBit()

virtual uint32_t rviz::MockContext::getDefaultVisibilityBit ( ) const
inlinevirtual

Implements rviz::DisplayContext.

Definition at line 99 of file mock_context.h.

◆ getDisplayFactory()

virtual DisplayFactory* rviz::MockContext::getDisplayFactory ( ) const
inlinevirtual

Return a factory for creating Display subclasses based on a class id string.

Implements rviz::DisplayContext.

Definition at line 69 of file mock_context.h.

◆ getFixedFrame()

virtual QString rviz::MockContext::getFixedFrame ( ) const
inlinevirtual

Return the fixed frame name.

Implements rviz::DisplayContext.

Definition at line 61 of file mock_context.h.

◆ getFrameCount()

virtual uint64_t rviz::MockContext::getFrameCount ( ) const
inlinevirtual

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 65 of file mock_context.h.

◆ getFrameManager()

virtual FrameManager* rviz::MockContext::getFrameManager ( ) const
inlinevirtual

Return the FrameManager instance.

Implements rviz::DisplayContext.

Definition at line 53 of file mock_context.h.

◆ getRootDisplayGroup()

virtual DisplayGroup* rviz::MockContext::getRootDisplayGroup ( ) const
inlinevirtual

Implements rviz::DisplayContext.

Definition at line 95 of file mock_context.h.

◆ getSceneManager()

virtual Ogre::SceneManager* rviz::MockContext::getSceneManager ( ) const
inlinevirtual

Returns the Ogre::SceneManager used for the main RenderPanel.

Implements rviz::DisplayContext.

Definition at line 41 of file mock_context.h.

◆ getSelectionManager()

virtual SelectionManager* rviz::MockContext::getSelectionManager ( ) const
inlinevirtual

Return a pointer to the SelectionManager.

Implements rviz::DisplayContext.

Definition at line 49 of file mock_context.h.

◆ getTFClient()

virtual tf::TransformListener* rviz::MockContext::getTFClient ( ) const
inlinevirtual

Convenience function: returns getFrameManager()->getTFClient().

Implements rviz::DisplayContext.

Definition at line 57 of file mock_context.h.

◆ getThreadedQueue()

virtual ros::CallbackQueueInterface* rviz::MockContext::getThreadedQueue ( )
inlinevirtual

Return a CallbackQueue using a different thread than the main GUI one.

Implements rviz::DisplayContext.

Definition at line 77 of file mock_context.h.

◆ getToolManager()

virtual ToolManager* rviz::MockContext::getToolManager ( ) const
inlinevirtual

Return the ToolManager.

Implements rviz::DisplayContext.

Definition at line 87 of file mock_context.h.

◆ getUpdateQueue()

virtual ros::CallbackQueueInterface* rviz::MockContext::getUpdateQueue ( )
inlinevirtual

Return the CallbackQueue using the main GUI thread.

Implements rviz::DisplayContext.

Definition at line 73 of file mock_context.h.

◆ getViewManager()

virtual ViewManager* rviz::MockContext::getViewManager ( ) const
inlinevirtual

Return the ViewManager.

Implements rviz::DisplayContext.

Definition at line 91 of file mock_context.h.

◆ getWindowManager()

virtual WindowManagerInterface* rviz::MockContext::getWindowManager ( ) const
inlinevirtual

Return the window manager, if any.

Implements rviz::DisplayContext.

Definition at line 45 of file mock_context.h.

◆ handleChar()

virtual void rviz::MockContext::handleChar ( QKeyEvent *  event,
RenderPanel panel 
)
inlinevirtual

Handle a single key event for a given RenderPanel.

Implements rviz::DisplayContext.

Definition at line 81 of file mock_context.h.

◆ handleMouseEvent()

virtual void rviz::MockContext::handleMouseEvent ( const ViewportMouseEvent event)
inlinevirtual

Handle a mouse event.

Implements rviz::DisplayContext.

Definition at line 84 of file mock_context.h.

◆ queueRender()

virtual void rviz::MockContext::queueRender ( )
inlinevirtual

Queues a render. Multiple calls before a render happens will only cause a single render.

Note
This function can be called from any thread.

Implements rviz::DisplayContext.

Definition at line 111 of file mock_context.h.

◆ setStatus()

virtual void rviz::MockContext::setStatus ( const QString &  message)
inlinevirtual

Set the message displayed in the status bar

Implements rviz::DisplayContext.

Definition at line 107 of file mock_context.h.

◆ visibilityBits()

virtual BitAllocator* rviz::MockContext::visibilityBits ( )
inlinevirtual

Implements rviz::DisplayContext.

Definition at line 103 of file mock_context.h.

Member Data Documentation

◆ display_factory_

DisplayFactory* rviz::MockContext::display_factory_
private

Definition at line 116 of file mock_context.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat May 27 2023 02:06:26