Choreonoid  1.5
Public Types | Public Member Functions | Protected Attributes | List of all members
cnoid::SgGroup Class Reference

#include <SceneGraph.h>

Inheritance diagram for cnoid::SgGroup:
cnoid::SgNode cnoid::SgObject cnoid::Referenced cnoid::BoundingBoxMarker cnoid::SceneWidgetRoot cnoid::SgCustomGLNode cnoid::SgInvariantGroup cnoid::SgOutlineGroup cnoid::SgOverlay cnoid::SgSwitch cnoid::SgTransform cnoid::SgUnpickableGroup

Public Types

typedef Container::iterator iterator
 
typedef Container::reverse_iterator reverse_iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::const_reverse_iterator const_reverse_iterator
 
- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 

Public Member Functions

 SgGroup ()
 
 SgGroup (const SgGroup &org)
 shallow copy More...
 
 SgGroup (const SgGroup &org, SgCloneMap &cloneMap)
 deep copy More...
 
 ~SgGroup ()
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual void accept (SceneVisitor &visitor)
 
virtual void onUpdated (SgUpdate &update)
 
virtual const BoundingBoxboundingBox () const
 
virtual bool isGroup () const
 
void invalidateBoundingBox ()
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
iterator erase (iterator pos)
 
bool contains (SgNode *node) const
 
bool empty () const
 
int numChildren () const
 
SgNodechild (int index)
 
template<class NodeType >
NodeType * getChild (int index)
 This throws an exeption when the index is invalid or the type is not matched. More...
 
void clearChildren (bool doNotify=false)
 
void addChild (SgNode *node, bool doNotify=false)
 
bool addChildOnce (SgNode *node, bool doNotify=false)
 
void insertChild (SgNode *node, int index=0, bool doNotify=false)
 
bool removeChild (SgNode *node, bool doNotify=false)
 
void removeChildAt (int index, bool doNotify=false)
 
void copyChildrenTo (SgGroup *group, bool doNotify=false)
 
void moveChildrenTo (SgGroup *group, bool doNotify=false)
 
template<class NodeType >
NodeType * findNodeOfType ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
- Public Member Functions inherited from cnoid::SgObject
const std::string & name () const
 
void setName (const std::string &name)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::MODIFIED)
 
void addParent (SgObject *parent, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Protected Attributes

BoundingBox bboxCache
 
bool isBboxCacheValid
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Member Typedef Documentation

◆ const_iterator

typedef Container::const_iterator cnoid::SgGroup::const_iterator

◆ const_reverse_iterator

typedef Container::const_reverse_iterator cnoid::SgGroup::const_reverse_iterator

◆ iterator

typedef Container::iterator cnoid::SgGroup::iterator

◆ reverse_iterator

typedef Container::reverse_iterator cnoid::SgGroup::reverse_iterator

Constructor & Destructor Documentation

◆ SgGroup() [1/3]

SgGroup::SgGroup ( )

◆ SgGroup() [2/3]

SgGroup::SgGroup ( const SgGroup org)

shallow copy

◆ SgGroup() [3/3]

SgGroup::SgGroup ( const SgGroup org,
SgCloneMap cloneMap 
)

deep copy

◆ ~SgGroup()

SgGroup::~SgGroup ( )

Member Function Documentation

◆ accept()

void SgGroup::accept ( SceneVisitor visitor)
virtual

◆ addChild()

void SgGroup::addChild ( SgNode node,
bool  doNotify = false 
)

◆ addChildOnce()

bool SgGroup::addChildOnce ( SgNode node,
bool  doNotify = false 
)

◆ begin() [1/2]

iterator cnoid::SgGroup::begin ( )
inline

◆ begin() [2/2]

const_iterator cnoid::SgGroup::begin ( ) const
inline

◆ boundingBox()

const BoundingBox & SgGroup::boundingBox ( ) const
virtual

Reimplemented from cnoid::SgNode.

Reimplemented in cnoid::SgScaleTransform, and cnoid::SgPosTransform.

◆ child()

SgNode* cnoid::SgGroup::child ( int  index)
inline

◆ childObject()

SgObject * SgGroup::childObject ( int  index)
virtual

Reimplemented from cnoid::SgObject.

◆ clearChildren()

void SgGroup::clearChildren ( bool  doNotify = false)

◆ clone()

SgObject * SgGroup::clone ( SgCloneMap cloneMap) const
virtual

◆ contains()

bool SgGroup::contains ( SgNode node) const

◆ copyChildrenTo()

void SgGroup::copyChildrenTo ( SgGroup group,
bool  doNotify = false 
)

◆ empty()

bool cnoid::SgGroup::empty ( ) const
inline

◆ end() [1/2]

iterator cnoid::SgGroup::end ( )
inline

◆ end() [2/2]

const_iterator cnoid::SgGroup::end ( ) const
inline

◆ erase()

iterator cnoid::SgGroup::erase ( iterator  pos)
inline

◆ findNodeOfType()

template<class NodeType >
NodeType* cnoid::SgGroup::findNodeOfType ( )
inline

◆ getChild()

template<class NodeType >
NodeType* cnoid::SgGroup::getChild ( int  index)
inline

This throws an exeption when the index is invalid or the type is not matched.

◆ insertChild()

void SgGroup::insertChild ( SgNode node,
int  index = 0,
bool  doNotify = false 
)

◆ invalidateBoundingBox()

void cnoid::SgGroup::invalidateBoundingBox ( )
inline

◆ isGroup()

bool SgGroup::isGroup ( ) const
virtual

Reimplemented from cnoid::SgNode.

◆ moveChildrenTo()

void SgGroup::moveChildrenTo ( SgGroup group,
bool  doNotify = false 
)

◆ numChildObjects()

int SgGroup::numChildObjects ( ) const
virtual

Reimplemented from cnoid::SgObject.

◆ numChildren()

int cnoid::SgGroup::numChildren ( ) const
inline

◆ onUpdated()

void SgGroup::onUpdated ( SgUpdate update)
virtual

Reimplemented from cnoid::SgObject.

◆ rbegin() [1/2]

reverse_iterator cnoid::SgGroup::rbegin ( )
inline

◆ rbegin() [2/2]

const_reverse_iterator cnoid::SgGroup::rbegin ( ) const
inline

◆ removeChild()

bool SgGroup::removeChild ( SgNode node,
bool  doNotify = false 
)

◆ removeChildAt()

void SgGroup::removeChildAt ( int  index,
bool  doNotify = false 
)

◆ rend() [1/2]

reverse_iterator cnoid::SgGroup::rend ( )
inline

◆ rend() [2/2]

const_reverse_iterator cnoid::SgGroup::rend ( ) const
inline

Member Data Documentation

◆ bboxCache

BoundingBox cnoid::SgGroup::bboxCache
mutableprotected

◆ isBboxCacheValid

bool cnoid::SgGroup::isBboxCacheValid
mutableprotected

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