display_context.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2012, Willow Garage, Inc.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions are met:
00007  *
00008  *     * Redistributions of source code must retain the above copyright
00009  *       notice, this list of conditions and the following disclaimer.
00010  *     * Redistributions in binary form must reproduce the above copyright
00011  *       notice, this list of conditions and the following disclaimer in the
00012  *       documentation and/or other materials provided with the distribution.
00013  *     * Neither the name of the Willow Garage, Inc. nor the names of its
00014  *       contributors may be used to endorse or promote products derived from
00015  *       this software without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00018  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00021  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00022  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00023  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00024  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00025  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00026  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00027  * POSSIBILITY OF SUCH DAMAGE.
00028  */
00029 #ifndef DISPLAY_CONTEXT_H
00030 #define DISPLAY_CONTEXT_H
00031 
00032 #include <stdint.h> // for uint64_t
00033 
00034 #include <QObject>
00035 #include <QString>
00036 
00037 class QKeyEvent;
00038 
00039 namespace Ogre
00040 {
00041 class SceneManager;
00042 }
00043 
00044 namespace ros
00045 {
00046 class CallbackQueueInterface;
00047 }
00048 
00049 namespace tf
00050 {
00051 class TransformListener;
00052 }
00053 
00054 namespace rviz
00055 {
00056 
00057 class BitAllocator;
00058 class DisplayFactory;
00059 class DisplayGroup;
00060 class FrameManager;
00061 class RenderPanel;
00062 class SelectionManager;
00063 class ToolManager;
00064 class ViewController;
00065 class ViewportMouseEvent;
00066 class ViewManager;
00067 class WindowManagerInterface;
00068 
00076 class DisplayContext: public QObject
00077 {
00078 Q_OBJECT
00079 public:
00081   virtual Ogre::SceneManager* getSceneManager() const = 0;
00082 
00084   virtual WindowManagerInterface* getWindowManager() const = 0;
00085 
00087   virtual SelectionManager* getSelectionManager() const = 0;
00088 
00090   virtual FrameManager* getFrameManager() const = 0;
00091 
00093   virtual tf::TransformListener* getTFClient() const = 0;
00094 
00096   virtual QString getFixedFrame() const = 0;
00097 
00103   virtual uint64_t getFrameCount() const = 0;
00104 
00106   virtual DisplayFactory* getDisplayFactory() const = 0;
00107 
00109   virtual ros::CallbackQueueInterface* getUpdateQueue() = 0;
00110 
00112   virtual ros::CallbackQueueInterface* getThreadedQueue() = 0;
00113 
00115   virtual void handleChar( QKeyEvent* event, RenderPanel* panel ) = 0;
00116 
00118   virtual void handleMouseEvent( const ViewportMouseEvent& event ) = 0;
00119 
00121   virtual ToolManager* getToolManager() const = 0;
00122 
00124   virtual ViewManager* getViewManager() const = 0;
00125 
00126   virtual DisplayGroup* getRootDisplayGroup() const = 0;
00127 
00128   virtual uint32_t getDefaultVisibilityBit() const = 0;
00129 
00130   virtual BitAllocator* visibilityBits() = 0;
00131 
00133   virtual void setStatus( const QString & message ) = 0;
00134 
00135 public Q_SLOTS:
00138   virtual void queueRender() = 0;
00139 };
00140 
00141 } // end namespace rviz
00142 
00143 #endif // DISPLAY_CONTEXT_H


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Thu Aug 27 2015 15:02:27