Public Member Functions | Private Member Functions | Private Attributes
rviz_interaction_tools::MeshObjectSwitcher Class Reference

#include <mesh_object_switcher.h>

List of all members.

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 &)
MeshObjectSwitcheroperator= (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_

Detailed Description

Definition at line 44 of file mesh_object_switcher.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Definition at line 63 of file mesh_object_switcher.cpp.

Returns:
currently visible mesh object

Definition at line 72 of file mesh_object_switcher.h.

Definition at line 75 of file mesh_object_switcher.h.

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]

Definition at line 71 of file mesh_object_switcher.cpp.

Definition at line 77 of file mesh_object_switcher.cpp.

Definition at line 84 of file mesh_object_switcher.cpp.

Returns:
number of meshes being managed

Definition at line 78 of file mesh_object_switcher.h.

Definition at line 110 of file mesh_object_switcher.cpp.


Member Data Documentation

Definition at line 96 of file mesh_object_switcher.h.

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.

Definition at line 92 of file mesh_object_switcher.h.

Definition at line 91 of file mesh_object_switcher.h.

Definition at line 94 of file mesh_object_switcher.h.

Definition at line 95 of file mesh_object_switcher.h.

Definition at line 89 of file mesh_object_switcher.h.


The documentation for this class was generated from the following files:


rviz_interaction_tools
Author(s): David Gossow
autogenerated on Mon Oct 6 2014 03:03:25