30 #ifndef RVIZ_VIEW_CONTROLLER_H 31 #define RVIZ_VIEW_CONTROLLER_H 54 class ViewportMouseEvent;
72 static QString formatClassId(
const QString& class_id );
76 virtual QVariant getViewData(
int column,
int role )
const;
79 virtual Qt::ItemFlags getViewFlags(
int column )
const;
89 virtual void update(
float dt,
float ros_dt)
104 virtual void handleKeyEvent( QKeyEvent* event,
RenderPanel* panel );
107 void lookAt(
float x,
float y,
float z );
112 virtual void lookAt(
const Ogre::Vector3& point )
119 virtual void reset() = 0;
143 (void) previous_view;
147 void emitConfigChanged();
158 virtual void setClassId(
const QString& class_id ) { class_id_ = class_id; }
161 virtual void save(
Config config )
const;
169 void configChanged();
173 void updateNearClipDistance();
174 void updateStereoProperties();
175 void updateInvertZAxis();
213 void setStatus(
const QString & message );
226 #endif // RVIZ_VIEW_CONTROLLER_H QMap< CursorType, QCursor > standard_cursors_
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...
FloatProperty * stereo_focal_distance_
EnumProperty * type_property_
Property specialized to enforce floating point max/min.
TFSIMD_FORCE_INLINE const tfScalar & y() const
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...
TFSIMD_FORCE_INLINE Vector3()
Ogre::Camera * getCamera() const
FloatProperty * stereo_eye_separation_
BoolProperty * stereo_eye_swap_
TFSIMD_FORCE_INLINE const tfScalar & x() const
virtual void onInitialize()
Do subclass-specific initialization. Called by ViewController::initialize after context_ and camera_ ...
virtual QCursor getCursor()
TFSIMD_FORCE_INLINE const tfScalar & z() const
void setCursor(QCursor cursor)
Property specialized to provide getter for booleans.
virtual void onActivate()
called by activate().
FloatProperty * near_clip_property_
BoolProperty * stereo_enable_
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...