OSG implementation of a graphics group.
More...
#include <OsgGroup.h>
OSG implementation of a graphics group.
A Graphics::OsgGroup wraps a osg::Switch to provide group functionality.
§ OsgGroup()
OsgGroup::OsgGroup |
( |
const std::string & |
name | ) |
|
|
explicit |
§ add()
bool OsgGroup::add |
( |
std::shared_ptr< Representation > |
representation | ) |
|
|
overridevirtual |
Adds an representation.
- Parameters
-
- Returns
- True if the representation is added successfully, false if failure Only subclasses of OsgRepresentation will be added successfully.
Reimplemented from SurgSim::Graphics::Group.
§ append()
bool OsgGroup::append |
( |
std::shared_ptr< Group > |
group | ) |
|
|
overridevirtual |
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 Only subclasses of OsgGroup will be appended successfully.
Reimplemented from SurgSim::Graphics::Group.
§ isVisible()
bool OsgGroup::isVisible |
( |
| ) |
const |
|
overridevirtual |
Gets whether this group is currently visible.
- Returns
- True for visible, false for invisible
Implements SurgSim::Graphics::Group.
§ remove()
bool OsgGroup::remove |
( |
std::shared_ptr< Representation > |
representation | ) |
|
|
overridevirtual |
Removes an representation.
- Parameters
-
- Returns
- True if the representation is removed successfully, false if representation is not in this group or other failure
Reimplemented from SurgSim::Graphics::Group.
§ setVisible()
void OsgGroup::setVisible |
( |
bool |
visible | ) |
|
|
overridevirtual |
Sets whether this group is currently visible.
- Parameters
-
visible | True for visible, false for invisible |
Implements SurgSim::Graphics::Group.
The documentation for this class was generated from the following files:
- SurgSim/Graphics/OsgGroup.h
- SurgSim/Graphics/OsgGroup.cpp