34 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 40 #include "rviz/rviz_export.h" 61 class PanelDockWidget;
76 QVariant getViewData(
int column,
int role)
const override;
80 Qt::ItemFlags getViewFlags(
int column)
const override;
109 void save(
Config config)
const override;
122 virtual void setTopic(
const QString& topic,
const QString& datatype)
129 bool isEnabled()
const;
132 void setFixedFrame(
const QString& fixed_frame);
137 virtual void update(
float wall_dt,
float ros_dt)
144 virtual void reset();
165 setStatus(level, QString::fromStdString(name), QString::fromStdString(text));
169 virtual void deleteStatus(
const QString& name);
174 deleteStatus(QString::fromStdString(name));
178 void setVisibilityBits(uint32_t bits);
179 void unsetVisibilityBits(uint32_t bits);
182 return visibility_bits_;
204 void setAssociatedWidget(QWidget* widget);
210 return associated_widget_;
217 return associated_widget_panel_;
221 void setName(
const QString& name)
override;
228 void timeSignal(
ros::Time time, QPrivateSignal);
235 void setEnabled(
bool enabled);
241 void setIcon(
const QIcon& icon)
override;
267 virtual void clearStatuses();
315 virtual void onEnableChanged();
318 void setStatusInternal(
int level,
const QString& name,
const QString& text);
319 void deleteStatusInternal(
const QString& name);
320 void clearStatusesInternal();
321 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...
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)
QWidget * getAssociatedWidget() const
Return the current associated widget, or NULL if there is none.
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...
Ogre::SceneNode * getSceneNode() const
Return the Ogre::SceneNode holding all 3D scene elements shown by this Display.
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.
virtual QString getClassId() const
Return the class identifier which was used to create this instance. This version just returns whateve...