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

#include <SceneGraph.h>

Inheritance diagram for cnoid::SgObject:
cnoid::Referenced cnoid::SgImage cnoid::SgMaterial cnoid::SgMeshBase cnoid::SgNode cnoid::SgTexture cnoid::SgTextureTransform cnoid::SgVectorArray< T, Alloc > cnoid::SgVectorArray< Vector2f, Eigen::aligned_allocator< Vector2f > > cnoid::SgVectorArray< Vector3f >

Public Types

typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 

Public Member Functions

virtual SgObjectclone (SgCloneMap &cloneMap) const
 
const std::string & name () const
 
void setName (const std::string &name)
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
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 Member Functions

 SgObject ()
 
 SgObject (const SgObject &org)
 
virtual void onUpdated (SgUpdate &update)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Member Typedef Documentation

◆ const_parentIter

typedef ParentContainer::const_iterator cnoid::SgObject::const_parentIter

◆ ParentContainer

◆ parentIter

typedef ParentContainer::iterator cnoid::SgObject::parentIter

Constructor & Destructor Documentation

◆ SgObject() [1/2]

SgObject::SgObject ( )
protected

◆ SgObject() [2/2]

SgObject::SgObject ( const SgObject org)
protected

Member Function Documentation

◆ addParent()

void SgObject::addParent ( SgObject parent,
bool  doNotify = false 
)

◆ childObject()

SgObject * SgObject::childObject ( int  index)
virtual

◆ clone()

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

◆ hasParents()

bool cnoid::SgObject::hasParents ( ) const
inline

◆ name()

const std::string& cnoid::SgObject::name ( ) const
inline

◆ notifyUpdate() [1/2]

void cnoid::SgObject::notifyUpdate ( SgUpdate update)
inline

◆ notifyUpdate() [2/2]

void cnoid::SgObject::notifyUpdate ( int  action = SgUpdate::MODIFIED)
inline

◆ numChildObjects()

int SgObject::numChildObjects ( ) const
virtual

◆ numParents()

int cnoid::SgObject::numParents ( ) const
inline

◆ onUpdated()

void SgObject::onUpdated ( SgUpdate update)
protectedvirtual

Reimplemented in cnoid::SgGroup.

◆ parentBegin()

const_parentIter cnoid::SgObject::parentBegin ( ) const
inline

◆ parentEnd()

const_parentIter cnoid::SgObject::parentEnd ( ) const
inline

◆ removeParent()

void SgObject::removeParent ( SgObject parent)

◆ setName()

void cnoid::SgObject::setName ( const std::string &  name)
inline

◆ sigGraphConnection()

SignalProxy<void(bool on)> cnoid::SgObject::sigGraphConnection ( )
inline

This signal is emitted when the object is first attached to an upper node or the object is detached from all the upper node.

◆ sigUpdated()

SignalProxy<void(const SgUpdate& update)> cnoid::SgObject::sigUpdated ( )
inline

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