gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmGraphics::Group Class Reference

The scenegraph group base. More...

#include <Group.hh>

Inheritance diagram for gramods::gmGraphics::Group:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::Group:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

void addNode (std::shared_ptr< Node > node)
 Adds a child. More...
 
void removeNode (std::shared_ptr< Node > node)
 Removes a child. More...
 
void removeNode (size_t idx)
 Removes a child. More...
 
std::vector< std::shared_ptr< Node > > getNodes ()
 Returns the current list of nodes. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
- Public Member Functions inherited from gramods::gmGraphics::Node
virtual std::vector< float > getIntersections (const IntersectionLine &line)
 Check and return intersections between the provided line and the shape represented by this node. More...
 
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Additional Inherited Members

- Public Types inherited from gramods::gmGraphics::Node
typedef std::vector< std::shared_ptr< Node > > list
 

Detailed Description

The scenegraph group base.

Member Function Documentation

◆ addNode()

void gramods::gmGraphics::Group::addNode ( std::shared_ptr< Node node)

Adds a child.

XML-attribute: node

◆ getNodes()

std::vector< std::shared_ptr< Node > > gramods::gmGraphics::Group::getNodes ( )

Returns the current list of nodes.

◆ removeNode() [1/2]

void gramods::gmGraphics::Group::removeNode ( size_t  idx)

Removes a child.

◆ removeNode() [2/2]

void gramods::gmGraphics::Group::removeNode ( std::shared_ptr< Node node)

Removes a child.

◆ traverse()

void gramods::gmGraphics::Group::traverse ( Visitor visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.


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