Class to display mesh data in the main panel of rviz.
More...
#include <trianglemesh_visual.h>
|
| void | reset () |
| | Clears whole stored data. More...
|
| |
| void | setFrameOrientation (const Ogre::Quaternion &orientation) |
| | Sets the orientation of the coordinate frame the message refers to. More...
|
| |
| void | setFramePosition (const Ogre::Vector3 &position) |
| | Sets the pose of the coordinate frame the message refers to. More...
|
| |
| void | setMessage (const mesh_msgs::TriangleMeshStamped::ConstPtr &meshMsg) |
| | Extracts data from the ros-messages and creates meshes. More...
|
| |
| | TriangleMeshVisual (rviz::DisplayContext *context, size_t displayID, size_t meshID, size_t randomID) |
| | Constructor. More...
|
| |
| void | updateMaterial (bool showWireframe, Ogre::ColourValue wireframeColor, float wireframeAlpha, bool showFaces, Ogre::ColourValue facesColor, float facesAlpha, bool useVertexColors, bool useTriangleColors, bool showTextures, bool showNormals, Ogre::ColourValue normalsColor, float normalsAlpha, float normalsScallingFactor) |
| | Updates the visible parts of the mesh depending on input from the rviz display. More...
|
| |
| void | updateNormals (float scallingFactor) |
| | Updates the size of the normals dynamically. More...
|
| |
| virtual | ~TriangleMeshVisual () |
| | Destructor. More...
|
| |
Class to display mesh data in the main panel of rviz.
Definition at line 81 of file trianglemesh_visual.h.
◆ TriangleMeshVisual()
| rviz_mesh_plugin::TriangleMeshVisual::TriangleMeshVisual |
( |
rviz::DisplayContext * |
context, |
|
|
size_t |
displayID, |
|
|
size_t |
meshID, |
|
|
size_t |
randomID |
|
) |
| |
Constructor.
- Parameters
-
| context | The context that contains the display information. |
| displayID | The display id |
| meshID | The mesh id |
| randomID | random number that will be used as part of the meshes UID |
Definition at line 17 of file trianglemesh_visual.cpp.
◆ ~TriangleMeshVisual()
| rviz_mesh_plugin::TriangleMeshVisual::~TriangleMeshVisual |
( |
| ) |
|
|
virtual |
◆ enteringColoredTriangleMesh()
| void rviz_mesh_plugin::TriangleMeshVisual::enteringColoredTriangleMesh |
( |
const mesh_msgs::TriangleMesh & |
mesh | ) |
|
|
private |
◆ enteringGeneralTriangleMesh()
| void rviz_mesh_plugin::TriangleMeshVisual::enteringGeneralTriangleMesh |
( |
const mesh_msgs::TriangleMesh & |
mesh | ) |
|
|
private |
◆ enteringNormals()
| void rviz_mesh_plugin::TriangleMeshVisual::enteringNormals |
( |
const mesh_msgs::TriangleMesh & |
mesh | ) |
|
|
private |
◆ reset()
| void rviz_mesh_plugin::TriangleMeshVisual::reset |
( |
| ) |
|
◆ setFrameOrientation()
| void rviz_mesh_plugin::TriangleMeshVisual::setFrameOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
Sets the orientation of the coordinate frame the message refers to.
- Parameters
-
| orientation | The orientation of the coordinate frame |
Definition at line 596 of file trianglemesh_visual.cpp.
◆ setFramePosition()
| void rviz_mesh_plugin::TriangleMeshVisual::setFramePosition |
( |
const Ogre::Vector3 & |
position | ) |
|
Sets the pose of the coordinate frame the message refers to.
- Parameters
-
| position | The pose of the coordinate frame |
Definition at line 591 of file trianglemesh_visual.cpp.
◆ setMessage()
| void rviz_mesh_plugin::TriangleMeshVisual::setMessage |
( |
const mesh_msgs::TriangleMeshStamped::ConstPtr & |
meshMsg | ) |
|
Extracts data from the ros-messages and creates meshes.
- Parameters
-
| meshMsg | Message containing the mesh |
Definition at line 496 of file trianglemesh_visual.cpp.
◆ showFaces()
| void rviz_mesh_plugin::TriangleMeshVisual::showFaces |
( |
Ogre::Pass * |
pass, |
|
|
Ogre::ColourValue |
facesColor, |
|
|
float |
facesAlpha, |
|
|
bool |
useVertexColors |
|
) |
| |
|
private |
◆ showNormals()
| void rviz_mesh_plugin::TriangleMeshVisual::showNormals |
( |
Ogre::Pass * |
pass, |
|
|
Ogre::ColourValue |
normalsColor, |
|
|
float |
normalsAlpha |
|
) |
| |
|
private |
◆ showTextures()
| void rviz_mesh_plugin::TriangleMeshVisual::showTextures |
( |
Ogre::Pass * |
pass | ) |
|
|
private |
◆ showWireframe()
| void rviz_mesh_plugin::TriangleMeshVisual::showWireframe |
( |
Ogre::Pass * |
pass, |
|
|
Ogre::ColourValue |
wireframeColor, |
|
|
float |
wireframeAlpha |
|
) |
| |
|
private |
◆ updateMaterial()
| void rviz_mesh_plugin::TriangleMeshVisual::updateMaterial |
( |
bool |
showWireframe, |
|
|
Ogre::ColourValue |
wireframeColor, |
|
|
float |
wireframeAlpha, |
|
|
bool |
showFaces, |
|
|
Ogre::ColourValue |
facesColor, |
|
|
float |
facesAlpha, |
|
|
bool |
useVertexColors, |
|
|
bool |
useTriangleColors, |
|
|
bool |
showTextures, |
|
|
bool |
showNormals, |
|
|
Ogre::ColourValue |
normalsColor, |
|
|
float |
normalsAlpha, |
|
|
float |
normalsScallingFactor |
|
) |
| |
Updates the visible parts of the mesh depending on input from the rviz display.
- Parameters
-
| showWireframe | When TRUE wireframe is visible |
| wireframeColor | The color of the wireframe |
| wireframeAlpha | The transparency of the wireframe |
| showFaces | When TRUE faces are visible |
| facesColor | The color of the faces |
| facesAlpha | The transparency of the faces |
| useVertexColors | When TRUE vertex colors are used |
| useTriangleColors | When TRUE triangle colors are used |
| showTextures | When TRUE textures are visible |
| showNormals | When TRUE normals are visible |
| normalsColor | The color of the normals |
| normalsAlpha | The transparency of the normals |
| normalsScallingFactor | The size of the normals |
Definition at line 208 of file trianglemesh_visual.cpp.
◆ updateNormals()
| void rviz_mesh_plugin::TriangleMeshVisual::updateNormals |
( |
float |
scallingFactor | ) |
|
Updates the size of the normals dynamically.
- Parameters
-
| scallingFactor | The factor the normals have to be scaled with |
Definition at line 284 of file trianglemesh_visual.cpp.
◆ m_displayContext
◆ m_fakeTextures
| std::map<size_t, Ogre::ColourValue> rviz_mesh_plugin::TriangleMeshVisual::m_fakeTextures |
|
private |
◆ m_hasTextures
| bool rviz_mesh_plugin::TriangleMeshVisual::m_hasTextures |
|
private |
◆ m_mesh
| Ogre::ManualObject* rviz_mesh_plugin::TriangleMeshVisual::m_mesh |
|
private |
◆ m_meshColoredTrianglesMaterial
| Ogre::MaterialPtr rviz_mesh_plugin::TriangleMeshVisual::m_meshColoredTrianglesMaterial |
|
private |
◆ m_meshGeneralMaterial
| Ogre::MaterialPtr rviz_mesh_plugin::TriangleMeshVisual::m_meshGeneralMaterial |
|
private |
◆ m_normalMaterial
| Ogre::MaterialPtr rviz_mesh_plugin::TriangleMeshVisual::m_normalMaterial |
|
private |
◆ m_normalsScalingFactor
| float rviz_mesh_plugin::TriangleMeshVisual::m_normalsScalingFactor |
|
private |
◆ m_postfix
| size_t rviz_mesh_plugin::TriangleMeshVisual::m_postfix |
|
private |
◆ m_prefix
| size_t rviz_mesh_plugin::TriangleMeshVisual::m_prefix |
|
private |
◆ m_random
| size_t rviz_mesh_plugin::TriangleMeshVisual::m_random |
|
private |
◆ m_sceneNode
| Ogre::SceneNode* rviz_mesh_plugin::TriangleMeshVisual::m_sceneNode |
|
private |
◆ m_texture_coords_enabled
| bool rviz_mesh_plugin::TriangleMeshVisual::m_texture_coords_enabled |
|
private |
◆ m_textureCounter
| size_t rviz_mesh_plugin::TriangleMeshVisual::m_textureCounter |
|
private |
◆ m_triangle_colors_enabled
| bool rviz_mesh_plugin::TriangleMeshVisual::m_triangle_colors_enabled |
|
private |
◆ m_vertex_colors_enabled
| bool rviz_mesh_plugin::TriangleMeshVisual::m_vertex_colors_enabled |
|
private |
◆ m_vertex_normals_enabled
| bool rviz_mesh_plugin::TriangleMeshVisual::m_vertex_normals_enabled |
|
private |
The documentation for this class was generated from the following files: