OSG implementation of a graphics group.
More...
#include <SurgSim/Graphics/OsgGroup.h>
|
bool | m_isVisible |
| Whether the group is currently visible or not Newly added representations or groups will have this visibility. More...
|
|
osg::ref_ptr< osg::Switch > | m_switch |
| OSG group node A switch is used to provide visibility functionality. More...
|
|
OSG implementation of a graphics group.
A Graphics::OsgGroup wraps a osg::Switch to provide group functionality.
OsgGroup::OsgGroup |
( |
const std::string & |
name | ) |
|
|
explicit |
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.
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.
osg::ref_ptr< osg::Group > OsgGroup::getOsgGroup |
( |
| ) |
const |
Returns the root OSG group node.
bool OsgGroup::isVisible |
( |
| ) |
const |
|
overridevirtual |
Gets whether this group is currently visible.
- Returns
- True for visible, false for invisible
Implements SurgSim::Graphics::Group.
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.
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.
bool SurgSim::Graphics::OsgGroup::m_isVisible |
|
private |
Whether the group is currently visible or not Newly added representations or groups will have this visibility.
osg::ref_ptr<osg::Switch> SurgSim::Graphics::OsgGroup::m_switch |
|
private |
OSG group node A switch is used to provide visibility functionality.
The documentation for this class was generated from the following files: