#include <mesh_object_switcher.h>
Public Member Functions | |
| void | addObject (MeshObject *mesh_object) |
| unsigned | getVisible () |
| unsigned | isSelected () |
| unsigned | isValid () |
| MeshObjectSwitcher (std::string valid_mat_name, std::string valid_sel_mat_name, std::string invalid_mat_name, std::string invalid_sel_mat_name) | |
| the material names must exist and will be used for the different modes | |
| void | next () |
| increment the visible index by one | |
| void | setSelected (bool selected) |
| void | setValid (bool valid) |
| void | setVisible (unsigned index) |
| unsigned | size () |
| virtual | ~MeshObjectSwitcher () |
Private Member Functions | |
| MeshObjectSwitcher (const MeshObjectSwitcher &) | |
| MeshObjectSwitcher & | operator= (const MeshObjectSwitcher &) |
| void | updateMaterials () |
Private Attributes | |
| std::string | invalid_mat_name_ |
| std::string | invalid_sel_mat_name_ |
| std::vector< boost::shared_ptr < MeshObject > > | mesh_objects_ |
| bool | selected_ |
| bool | valid_ |
| std::string | valid_mat_name_ |
| std::string | valid_sel_mat_name_ |
| unsigned | visible_mesh_ |
Definition at line 44 of file mesh_object_switcher.h.
| rviz_interaction_tools::MeshObjectSwitcher::MeshObjectSwitcher | ( | std::string | valid_mat_name, |
| std::string | valid_sel_mat_name, | ||
| std::string | invalid_mat_name, | ||
| std::string | invalid_sel_mat_name | ||
| ) |
the material names must exist and will be used for the different modes
Definition at line 43 of file mesh_object_switcher.cpp.
Definition at line 58 of file mesh_object_switcher.cpp.
| rviz_interaction_tools::MeshObjectSwitcher::MeshObjectSwitcher | ( | const MeshObjectSwitcher & | ) | [private] |
| void rviz_interaction_tools::MeshObjectSwitcher::addObject | ( | MeshObject * | mesh_object | ) |
Definition at line 63 of file mesh_object_switcher.cpp.
| unsigned rviz_interaction_tools::MeshObjectSwitcher::getVisible | ( | ) | [inline] |
Definition at line 72 of file mesh_object_switcher.h.
| unsigned rviz_interaction_tools::MeshObjectSwitcher::isSelected | ( | ) | [inline] |
Definition at line 75 of file mesh_object_switcher.h.
| unsigned rviz_interaction_tools::MeshObjectSwitcher::isValid | ( | ) | [inline] |
Definition at line 74 of file mesh_object_switcher.h.
increment the visible index by one
Definition at line 105 of file mesh_object_switcher.cpp.
| MeshObjectSwitcher& rviz_interaction_tools::MeshObjectSwitcher::operator= | ( | const MeshObjectSwitcher & | ) | [private] |
| void rviz_interaction_tools::MeshObjectSwitcher::setSelected | ( | bool | selected | ) |
Definition at line 71 of file mesh_object_switcher.cpp.
| void rviz_interaction_tools::MeshObjectSwitcher::setValid | ( | bool | valid | ) |
Definition at line 77 of file mesh_object_switcher.cpp.
| void rviz_interaction_tools::MeshObjectSwitcher::setVisible | ( | unsigned | index | ) |
Definition at line 84 of file mesh_object_switcher.cpp.
| unsigned rviz_interaction_tools::MeshObjectSwitcher::size | ( | ) | [inline] |
Definition at line 78 of file mesh_object_switcher.h.
| void rviz_interaction_tools::MeshObjectSwitcher::updateMaterials | ( | ) | [private] |
Definition at line 110 of file mesh_object_switcher.cpp.
std::string rviz_interaction_tools::MeshObjectSwitcher::invalid_mat_name_ [private] |
Definition at line 96 of file mesh_object_switcher.h.
std::string rviz_interaction_tools::MeshObjectSwitcher::invalid_sel_mat_name_ [private] |
Definition at line 97 of file mesh_object_switcher.h.
std::vector< boost::shared_ptr<MeshObject> > rviz_interaction_tools::MeshObjectSwitcher::mesh_objects_ [private] |
Definition at line 87 of file mesh_object_switcher.h.
bool rviz_interaction_tools::MeshObjectSwitcher::selected_ [private] |
Definition at line 92 of file mesh_object_switcher.h.
bool rviz_interaction_tools::MeshObjectSwitcher::valid_ [private] |
Definition at line 91 of file mesh_object_switcher.h.
std::string rviz_interaction_tools::MeshObjectSwitcher::valid_mat_name_ [private] |
Definition at line 94 of file mesh_object_switcher.h.
std::string rviz_interaction_tools::MeshObjectSwitcher::valid_sel_mat_name_ [private] |
Definition at line 95 of file mesh_object_switcher.h.
unsigned rviz_interaction_tools::MeshObjectSwitcher::visible_mesh_ [private] |
Definition at line 89 of file mesh_object_switcher.h.