Visual to show a labeled cluster.
More...
#include <ClusterLabelVisual.hpp>
Visual to show a labeled cluster.
Definition at line 80 of file ClusterLabelVisual.hpp.
◆ ClusterLabelVisual() [1/3]
rviz_map_plugin::ClusterLabelVisual::ClusterLabelVisual |
( |
rviz::DisplayContext * |
context, |
|
|
std::string |
labelId |
|
) |
| |
Constructor.
- Parameters
-
context | The context that contains the display information. |
labelId | The label id (that has to be unique) |
Definition at line 62 of file ClusterLabelVisual.cpp.
◆ ClusterLabelVisual() [2/3]
rviz_map_plugin::ClusterLabelVisual::ClusterLabelVisual |
( |
rviz::DisplayContext * |
context, |
|
|
std::string |
labelId, |
|
|
std::shared_ptr< Geometry > |
geometry |
|
) |
| |
Constructor.
- Parameters
-
context | The context that contains the display information. |
labelId | The label id (that has to be unique) |
geometry | A shared pointer to the geometry to which the labels belong |
Definition at line 67 of file ClusterLabelVisual.cpp.
◆ ~ClusterLabelVisual()
rviz_map_plugin::ClusterLabelVisual::~ClusterLabelVisual |
( |
| ) |
|
◆ ClusterLabelVisual() [3/3]
Disabling the copy constructor.
Each cluster label visual has a pointer to a SubMesh with a unique name, when copying and then deleting one of the copies, the SubMesh would be deleted, thus the pointers of the remaining copies would be invalid
◆ getFaces()
std::vector<uint32_t> rviz_map_plugin::ClusterLabelVisual::getFaces |
( |
| ) |
|
|
inline |
◆ initMaterial()
void rviz_map_plugin::ClusterLabelVisual::initMaterial |
( |
| ) |
|
|
private |
◆ operator=()
◆ reset()
void rviz_map_plugin::ClusterLabelVisual::reset |
( |
| ) |
|
◆ setColor()
void rviz_map_plugin::ClusterLabelVisual::setColor |
( |
Ogre::ColourValue |
facesColor, |
|
|
float |
alpha = 1.0f |
|
) |
| |
Sets the color.
- Parameters
-
facesColor | The color for the faces |
alpha | The opacity, defaults to 1.0f (fully opaque) |
Definition at line 256 of file ClusterLabelVisual.cpp.
◆ setFacesInCluster()
void rviz_map_plugin::ClusterLabelVisual::setFacesInCluster |
( |
const std::vector< uint32_t > & |
faces | ) |
|
Sets the faces, that are in the shown cluster.
- Parameters
-
faces | A vector containing the face ids |
Definition at line 198 of file ClusterLabelVisual.cpp.
◆ setGeometry()
void rviz_map_plugin::ClusterLabelVisual::setGeometry |
( |
std::shared_ptr< Geometry > |
geometry | ) |
|
◆ m_color
Ogre::ColourValue rviz_map_plugin::ClusterLabelVisual::m_color |
|
private |
◆ m_displayContext
◆ m_faces
std::vector<uint32_t> rviz_map_plugin::ClusterLabelVisual::m_faces |
|
private |
◆ m_geometry
std::shared_ptr<Geometry> rviz_map_plugin::ClusterLabelVisual::m_geometry |
|
private |
◆ m_labelId
std::string rviz_map_plugin::ClusterLabelVisual::m_labelId |
|
private |
◆ m_material
Ogre::MaterialPtr rviz_map_plugin::ClusterLabelVisual::m_material |
|
private |
◆ m_mesh
◆ m_sceneNode
Ogre::SceneNode* rviz_map_plugin::ClusterLabelVisual::m_sceneNode |
|
private |
◆ m_subMesh
Ogre::SubMesh* rviz_map_plugin::ClusterLabelVisual::m_subMesh |
|
private |
The documentation for this class was generated from the following files: