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

#include <SceneDrawables.h>

Inheritance diagram for cnoid::SgShape:
cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Member Functions

 SgShape ()
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual void accept (SceneVisitor &visitor)
 
virtual const BoundingBoxboundingBox () const
 
SgMeshmesh ()
 
const SgMeshmesh () const
 
SgMeshsetMesh (SgMesh *mesh)
 
SgMeshgetOrCreateMesh ()
 
SgMaterialmaterial ()
 
const SgMaterialmaterial () const
 
SgMaterialsetMaterial (SgMaterial *material)
 
SgMaterialgetOrCreateMaterial ()
 
SgTexturetexture ()
 
const SgTexturetexture () const
 
SgTexturesetTexture (SgTexture *texture)
 
SgTexturegetOrCreateTexture ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
virtual bool isGroup () 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 Member Functions

 SgShape (const SgShape &org, SgCloneMap &cloneMap)
 
- Protected Member Functions inherited from cnoid::SgObject
 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
 

Additional Inherited Members

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

Constructor & Destructor Documentation

SgShape::SgShape ( )
SgShape::SgShape ( const SgShape org,
SgCloneMap cloneMap 
)
protected

Member Function Documentation

void SgShape::accept ( SceneVisitor visitor)
virtual

Reimplemented from cnoid::SgNode.

const BoundingBox & SgShape::boundingBox ( ) const
virtual

Reimplemented from cnoid::SgNode.

SgObject * SgShape::childObject ( int  index)
virtual

Reimplemented from cnoid::SgObject.

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

Reimplemented from cnoid::SgNode.

SgMaterial * SgShape::getOrCreateMaterial ( )
SgMesh * SgShape::getOrCreateMesh ( )
SgTexture * SgShape::getOrCreateTexture ( )
SgMaterial* cnoid::SgShape::material ( )
inline
const SgMaterial* cnoid::SgShape::material ( ) const
inline
SgMesh* cnoid::SgShape::mesh ( )
inline
const SgMesh* cnoid::SgShape::mesh ( ) const
inline
int SgShape::numChildObjects ( ) const
virtual

Reimplemented from cnoid::SgObject.

SgMaterial * SgShape::setMaterial ( SgMaterial material)
SgMesh * SgShape::setMesh ( SgMesh mesh)
SgTexture * SgShape::setTexture ( SgTexture texture)
SgTexture* cnoid::SgShape::texture ( )
inline
const SgTexture* cnoid::SgShape::texture ( ) const
inline

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