30 #ifndef RVIZ_FIXED_ORIENTATION_ORTHO_VIEW_CONTROLLER_H 31 #define RVIZ_FIXED_ORIENTATION_ORTHO_VIEW_CONTROLLER_H 35 #include <OgreQuaternion.h> 54 virtual void lookAt(
const Ogre::Vector3& point_rel_world );
65 virtual void update(
float dt,
float ros_dt);
68 virtual void onTargetFrameChanged(
const Ogre::Vector3& old_reference_position,
const Ogre::Quaternion& old_reference_orientation);
73 void setPosition(
const Ogre::Vector3& pos_rel_target );
74 void move(
float x,
float y );
86 #endif // RVIZ_VIEW_CONTROLLER_H FloatProperty * y_property_
FloatProperty * scale_property_
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
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 lookAt(const Ogre::Vector3 &point_rel_world)
This should be implemented in each subclass to aim the camera at the given point in space (relative t...
Property specialized to enforce floating point max/min.
TFSIMD_FORCE_INLINE const tfScalar & y() const
FloatProperty * angle_property_
virtual ~FixedOrientationOrthoViewController()
void setPosition(const Ogre::Vector3 &pos_rel_target)
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...
TFSIMD_FORCE_INLINE const tfScalar & x() const
virtual void handleMouseEvent(ViewportMouseEvent &evt)
FloatProperty * x_property_
virtual void onInitialize()
Do subclass-specific initialization. Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set. This version calls updateTargetSceneNode().
virtual void onTargetFrameChanged(const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)
Override to implement the change in properties which nullifies the change in target frame...
FixedOrientationOrthoViewController()
void move(float x, float y)