Go to the documentation of this file. 1 #ifndef ENTITY_VISUAL_H
2 #define ENTITY_VISUAL_H
4 #include <boost/shared_ptr.hpp>
6 #include <rviz/ogre_helpers/mesh_shape.h>
7 #include <rviz/ogre_helpers/billboard_line.h>
8 #include <rviz/ogre_helpers/movable_text.h>
10 #include <ed_gui_server_msgs/EntityMeshAndVolumes.h>
11 #include <ed_gui_server_msgs/Polygon.h>
27 EntityVisual(Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node);
34 void setConvexHull (
const ed_gui_server_msgs::Polygon& polygon);
37 void setColor (Ogre::ColourValue c,
double entity_label_opacity,
double area_opacity,
double area_label_opacity);
49 boost::shared_ptr<rviz::MeshShape>
mesh_;
57 boost::shared_ptr<rviz::MovableText>
label_;
68 #endif // ENTITY_VISUAL_H
void setColor(Ogre::ColourValue c, double entity_label_opacity, double area_opacity, double area_label_opacity)
std::vector< boost::shared_ptr< rviz::MeshShape > > volume_meshes_
boost::shared_ptr< rviz::MovableText > label_
Ogre::SceneManager * scene_manager_
void setFrameOrientation(const Ogre::Quaternion &orientation)
std::vector< boost::shared_ptr< rviz::MovableText > > volume_labels_
boost::shared_ptr< rviz::MeshShape > mesh_
EntityVisual(Ogre::SceneManager *scene_manager, Ogre::SceneNode *parent_node)
void setLabel(const std::string &label)
void setEntityMeshAndVolumes(const ed_gui_server_msgs::EntityMeshAndVolumes &mesh_and_areas)
void setConvexHull(const ed_gui_server_msgs::Polygon &polygon)
Ogre::SceneNode * frame_node_
unsigned long volumesRevision() const
void setFramePosition(const Ogre::Vector3 &position)
unsigned long volumes_revision_
unsigned long visual_revision_
unsigned long visualRevision() const
boost::shared_ptr< rviz::BillboardLine > convex_hull_