Base graphics group class, which defines the interface that all graphics groups must implement.
More...
#include <Group.h>
Base graphics group class, which defines the interface that all graphics groups must implement.
Graphics::Group allows the organization of Graphics::Representation objects so that different algorithms can operate on specific sub-sets rather than the entire scene.
§ Group()
SurgSim::Graphics::Group::Group |
( |
const std::string & |
name | ) |
|
|
explicit |
Constructor.
The group is initially empty.
- Parameters
-
name | Name of the group, this has to be unique over the whole system, otherwise adding the group will fail |
§ add()
bool SurgSim::Graphics::Group::add |
( |
std::shared_ptr< Representation > |
representation | ) |
|
|
virtual |
Adds an representation.
- Parameters
-
- Returns
- True if the representation is added successfully, false if failure
Reimplemented in SurgSim::Graphics::OsgGroup.
§ append()
bool SurgSim::Graphics::Group::append |
( |
std::shared_ptr< Group > |
group | ) |
|
|
virtual |
Adds all representations in another group to this group.
- Parameters
-
group | Group of representations to add |
- Returns
- True if all representations are added successfully, false if failure
Reimplemented in SurgSim::Graphics::OsgGroup.
§ getMembers()
const std::vector< std::shared_ptr< Representation > > & SurgSim::Graphics::Group::getMembers |
( |
| ) |
const |
- Returns
- a container with all the representations in this group.
§ getName()
std::string SurgSim::Graphics::Group::getName |
( |
| ) |
const |
- Returns
- The name of this group.
§ isVisible()
virtual bool SurgSim::Graphics::Group::isVisible |
( |
| ) |
const |
|
pure virtual |
§ remove()
bool SurgSim::Graphics::Group::remove |
( |
std::shared_ptr< Representation > |
representation | ) |
|
|
virtual |
Removes an representation.
- Parameters
-
- Returns
- True if the representation is removed successfully, false if representation is not in this group or other failure.
Reimplemented in SurgSim::Graphics::OsgGroup.
§ setVisible()
virtual void SurgSim::Graphics::Group::setVisible |
( |
bool |
visible | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- SurgSim/Graphics/Group.h
- SurgSim/Graphics/Group.cpp