Go to the documentation of this file.
30 #ifndef RVIZ_ORBIT_VIEW_CONTROLLER_H
31 #define RVIZ_ORBIT_VIEW_CONTROLLER_H
78 void zoom(
float amount);
81 void move(
float x,
float y,
float z);
85 void lookAt(
const Ogre::Vector3& point)
override;
87 void reset()
override;
97 void update(
float dt,
float ros_dt)
override;
99 const Ogre::Quaternion& old_reference_orientation)
override;
128 #endif // RVIZ_VIEW_CONTROLLER_H
void zoom(float amount)
Move in/out from the focal point, ie. adjust #distance_ by amount.
void updateFocalShapeSize()
Calculates the focal shape size and update it's geometry.
VectorProperty * focal_point_property_
The point around which the camera "orbits".
TFSIMD_FORCE_INLINE tfScalar angle(const Quaternion &q1, const Quaternion &q2)
FloatProperty * fov_property_
The camera's vertical field of view, in radians.
FloatProperty * distance_property_
The camera's distance from the focal point.
BoolProperty * focal_shape_fixed_size_property_
Whether the focal shape size is fixed or not.
void onTargetFrameChanged(const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation) override
Override to implement the change in properties which nullifies the change in target frame.
Property specialized to provide getter for booleans.
void onInitialize() override
Do subclass-specific initialization. Called by ViewController::initialize after context_,...
FloatProperty * focal_shape_size_property_
The focal shape size.
Property specialized to enforce floating point max/min.
void mimic(ViewController *source_view) override
Configure the settings of this view controller to give, as much as possible, a similar view as that g...
FloatProperty * pitch_property_
The camera's pitch (rotation around the x-axis), in radians.
void calculatePitchYawFromPosition(const Ogre::Vector3 &position)
Calculates pitch and yaw values given a new position and the current focal point.
~OrbitViewController() override
void update(float dt, float ros_dt) override
Called at 30Hz by ViewManager::update() while this view is active. Override with code that needs to r...
virtual void updateCamera()
An orbital camera, controlled by yaw, pitch, distance, and focal point.
FloatProperty * yaw_property_
The camera's yaw (rotation around the y-axis), in radians.
void handleMouseEvent(ViewportMouseEvent &evt) override
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
void move(float x, float y, float z)
void lookAt(const Ogre::Vector3 &point) override
This should be implemented in each subclass to aim the camera at the given point in space (relative t...
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02