34 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 61 class PanelDockWidget;
76 virtual QVariant getViewData(
int column,
int role )
const;
80 virtual Qt::ItemFlags getViewFlags(
int column )
const;
89 virtual void setClassId(
const QString& class_id ) { class_id_ = class_id; }
103 virtual void save(
Config config )
const;
116 virtual void setTopic(
const QString &topic,
const QString &datatype )
123 bool isEnabled()
const;
126 void setFixedFrame(
const QString& fixed_frame );
131 virtual void update(
float wall_dt,
float ros_dt )
138 virtual void reset();
159 setStatus( level, QString::fromStdString( name ), QString::fromStdString( text ));
163 virtual void deleteStatus(
const QString& name );
166 void deleteStatusStd(
const std::string& name ) { deleteStatus( QString::fromStdString( name )); }
169 void setVisibilityBits( uint32_t bits );
170 void unsetVisibilityBits( uint32_t bits );
189 void setAssociatedWidget( QWidget* widget );
200 void setName(
const QString& name );
214 void setEnabled(
bool enabled );
220 virtual void setIcon(
const QIcon& icon );
241 virtual void clearStatuses();
284 virtual void onEnableChanged();
287 void setStatusInternal(
int level,
const QString& name,
const QString& text );
288 void deleteStatusInternal(
const QString& name );
289 void clearStatusesInternal();
290 void associatedPanelVisibilityChange(
bool visible );
void setStatusStd(StatusProperty::Level level, const std::string &name, const std::string &text)
Show status level and text, using a std::string. Convenience function which converts std::string to Q...
void deleteStatusStd(const std::string &name)
Delete the status entry with the given std::string name. This is thread-safe.
PanelDockWidget * associated_widget_panel_
ROSCONSOLE_DECL void initialize()
DisplayContext * context_
This DisplayContext pointer is the main connection a Display has into the rest of rviz...
Ogre::SceneNode * getSceneNode() const
Return the Ogre::SceneNode holding all 3D scene elements shown by this Display.
ros::NodeHandle update_nh_
A NodeHandle whose CallbackQueue is run from the main GUI thread (the "update" thread).
virtual void setTopic(const QString &topic, const QString &datatype)
Set the ROS topic to listen to for this display.
uint32_t getVisibilityBits()
Q_DECLARE_METATYPE(ros::Time)
uint32_t visibility_bits_
Ogre::SceneNode * scene_node_
The Ogre::SceneNode to hold all 3D scene elements shown by this Display.
PanelDockWidget * getAssociatedWidgetPanel()
Return the panel containing the associated widget, or NULL if there is none.
Configuration data storage class.
QString fixed_frame_
A convenience variable equal to context_->getFixedFrame().
Pure-virtual base class for objects which give Display subclasses context in which to work...
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...
QWidget * associated_widget_
virtual void onEnable()
Derived classes override this to do the actual work of enabling themselves.
Ogre::SceneManager * scene_manager_
A convenience variable equal to context_->getSceneManager().
ros::NodeHandle threaded_nh_
A NodeHandle whose CallbackQueue is run from a different thread than the GUI.
virtual void onDisable()
Derived classes override this to do the actual work of disabling themselves.
virtual void fixedFrameChanged()
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
Property specialized to provide getter for booleans.
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...
virtual void onInitialize()
Override this function to do subclass-specific initialization.
virtual void update(float wall_dt, float ros_dt)
Called periodically by the visualization manager.
bool initialized() const
Returns true if the display has been initialized.
QWidget * getAssociatedWidget() const
Return the current associated widget, or NULL if there is none.