Class FrameInfo

Inheritance Relationships

Base Type

  • public QObject

Class Documentation

class FrameInfo : public QObject

Internal class needed only by TFDisplay.

Public Functions

explicit FrameInfo(TFDisplay *display)
void setEnabled(bool enabled)

Set this frame to be visible or invisible.

void updatePositionAndOrientation(const Ogre::Vector3 &position, const Ogre::Quaternion &orientation, float scale)
void setVisible(bool show_frame)
void setNamesVisible(bool show_names)
void setAxesVisible(bool show_axes)
void setParentArrowVisible(bool show_parent_arrow)
void setLastUpdate(const tf2::TimePoint &latest_time)
void updateTreeProperty(rviz_common::properties::Property *parent)
void updateColorForAge(double age, double frame_timeout) const
void updateParentArrow(const Ogre::Vector3 &position, const Ogre::Vector3 &parent_position, float scale)

Public Members

TFDisplay *display_
std::string name_
std::string parent_
rviz_rendering::Axes *axes_
rviz_common::interaction::CollObjectHandle axes_coll_
FrameSelectionHandlerPtr selection_handler_
rviz_rendering::Arrow *parent_arrow_
rviz_rendering::MovableText *name_text_
Ogre::SceneNode *name_node_
float distance_to_parent_
Ogre::Quaternion arrow_orientation_
tf2::TimePoint last_update_
tf2::TimePoint last_time_to_fixed_
rviz_common::properties::VectorProperty *rel_position_property_
rviz_common::properties::QuaternionProperty *rel_orientation_property_
rviz_common::properties::VectorProperty *position_property_
rviz_common::properties::QuaternionProperty *orientation_property_
rviz_common::properties::StringProperty *parent_property_
rviz_common::properties::BoolProperty *enabled_property_
rviz_common::properties::Property *tree_property_

Public Slots

void updateVisibilityFromFrame()

Update whether the frame is visible or not, based on the enabled_property_ in this FrameInfo.

void updateVisibilityFromSelection()

Update whether the frame is visible or not, based on the enabled_property_ in the selection handler.

Public Static Attributes

static const Ogre::ColourValue ARROW_HEAD_COLOR
static const Ogre::ColourValue ARROW_SHAFT_COLOR