30 #ifndef RVIZ_FRAME_VIEW_CONTROLLER_H 31 #define RVIZ_FRAME_VIEW_CONTROLLER_H 51 void reset()
override;
53 void lookAt(
const Ogre::Vector3& point)
override;
56 void move(
float x,
float y,
float z);
57 void rotate(
float yaw,
float pitch,
float roll);
61 const Ogre::Quaternion& )
override;
64 Ogre::Quaternion
getOrientation(
float yaw,
float pitch,
float roll);
91 #endif // RVIZ_FRAME_VIEW_CONTROLLER_H
~FrameViewController() override=default
int actualCameraAxisOption(double precision=0.001) const
find enum ID from camera's current pose
BoolProperty * locked_property_
Lock camera, i.e. disable mouse interaction?
void move(float x, float y, float z)
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
void rotate(float yaw, float pitch, float roll)
FloatProperty * pitch_property_
The camera's pitch (rotation around the y-axis), in radians.
Property specialized to enforce floating point max/min.
Ogre::Quaternion getOrientation(float yaw, float pitch, float roll)
void changedOrientation()
VectorProperty * position_property_
The camera's position.
void updateTargetSceneNode() override
Update the position of the target_scene_node_ from the TF frame specified in the Target Frame propert...
FloatProperty * roll_property_
The camera's roll (rotation around the x-axis), in radians.
FloatProperty * yaw_property_
The camera's yaw (rotation around the z-axis), in radians.
void handleMouseEvent(ViewportMouseEvent &event) override
void rememberAxis(int current)
void setPropertiesFromCamera()
set yaw, pitch, roll, position properties from camera
EnumProperty * axis_property_
The axis that the camera aligns to.
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...
void onInitialize() override
Do subclass-specific initialization. Called by ViewController::initialize after context_ and camera_ ...
A camera tied to a given frame.
Property specialized to provide getter for booleans.
void onTargetFrameChanged(const Ogre::Vector3 &, const Ogre::Quaternion &) override
Override to implement the change in properties which nullifies the change in target frame...
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...
void setAxisFromCamera()
set axis_property_ from camera