30 #ifndef RVIZ_VIEW_CONTROLLER_H 31 #define RVIZ_VIEW_CONTROLLER_H 38 #include "rviz/rviz_export.h" 55 class ViewportMouseEvent;
73 static QString formatClassId(
const QString& class_id);
77 QVariant getViewData(
int column,
int role)
const override;
80 Qt::ItemFlags getViewFlags(
int column)
const override;
90 virtual void update(
float dt,
float ros_dt)
105 virtual void handleKeyEvent(QKeyEvent* event,
RenderPanel* panel);
108 void lookAt(
float x,
float y,
float z);
113 virtual void lookAt(
const Ogre::Vector3& point)
120 virtual void reset() = 0;
149 void emitConfigChanged();
168 class_id_ = class_id;
172 void save(
Config config)
const override;
186 void configChanged();
190 void updateNearClipDistance();
191 void updateStereoProperties();
192 void updateInvertZAxis();
246 void setStatus(
const QString& message);
258 #endif // RVIZ_VIEW_CONTROLLER_H
virtual void transitionFrom(ViewController *previous_view)
Called by ViewManager when this ViewController is being made current.
ROSCONSOLE_DECL void initialize()
A single element of a property tree, with a name, value, description, and possibly children...
Ogre::Camera * getCamera() const
FloatProperty * stereo_focal_distance_
EnumProperty * type_property_
Property specialized to enforce floating point max/min.
virtual void update(float dt, float ros_dt)
Called at 30Hz by ViewManager::update() while this view is active. Override with code that needs to r...
virtual void mimic(ViewController *source_view)
Configure the settings of this view controller to give, as much as possible, a similar view as that g...
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...
Configuration data storage class.
Pure-virtual base class for objects which give Display subclasses context in which to work...
virtual void lookAt(const Ogre::Vector3 &point)
This should be implemented in each subclass to aim the camera at the given point in space (relative t...
FloatProperty * stereo_eye_separation_
BoolProperty * stereo_eye_swap_
virtual void onInitialize()
Do subclass-specific initialization. Called by ViewController::initialize after context_ and camera_ ...
virtual QCursor getCursor()
void setCursor(QCursor cursor)
Property specialized to provide getter for booleans.
virtual void onActivate()
called by activate().
FloatProperty * near_clip_property_
BoolProperty * stereo_enable_
QMap< CursorType, QCursor > standard_cursors_
DisplayContext * context_
virtual void handleMouseEvent(ViewportMouseEvent &evt)
virtual void setClassId(const QString &class_id)
Set the class identifier used to create this instance. Typically this will be set by the factory obje...