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 39 of file mesh_object_switcher.cpp.

rviz_interaction_tools::MeshObjectSwitcher::~MeshObjectSwitcher (  )  [virtual]

Definition at line 54 of file mesh_object_switcher.cpp.

rviz_interaction_tools::MeshObjectSwitcher::MeshObjectSwitcher ( const MeshObjectSwitcher  )  [private]

Member Function Documentation

void rviz_interaction_tools::MeshObjectSwitcher::addObject ( MeshObject mesh_object  ) 

Definition at line 59 of file mesh_object_switcher.cpp.

unsigned rviz_interaction_tools::MeshObjectSwitcher::getVisible (  )  [inline]
Returns:
currently visible mesh object

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.

void rviz_interaction_tools::MeshObjectSwitcher::next (  ) 

increment the visible index by one

Definition at line 101 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 67 of file mesh_object_switcher.cpp.

void rviz_interaction_tools::MeshObjectSwitcher::setValid ( bool  valid  ) 

Definition at line 73 of file mesh_object_switcher.cpp.

void rviz_interaction_tools::MeshObjectSwitcher::setVisible ( unsigned  index  ) 

Definition at line 80 of file mesh_object_switcher.cpp.

unsigned rviz_interaction_tools::MeshObjectSwitcher::size (  )  [inline]
Returns:
number of meshes being managed

Definition at line 78 of file mesh_object_switcher.h.

void rviz_interaction_tools::MeshObjectSwitcher::updateMaterials (  )  [private]

Definition at line 106 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


rviz_interaction_tools
Author(s): David Gossow
autogenerated on Fri Jan 11 09:34:12 2013