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

#include <SceneDrawables.h>

Inheritance diagram for cnoid::SgMeshBase:
cnoid::SgObject cnoid::Referenced cnoid::SgMesh cnoid::SgPolygonMesh

Public Member Functions

virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual const BoundingBoxboundingBox () const
 
virtual void updateBoundingBox ()
 
bool hasVertices () const
 
SgVertexArrayvertices ()
 
const SgVertexArrayvertices () const
 
SgVertexArraysetVertices (SgVertexArray *vertices)
 
SgVertexArraygetOrCreateVertices ()
 
bool hasNormals () const
 
SgNormalArraynormals ()
 
const SgNormalArraynormals () const
 
SgNormalArraysetNormals (SgNormalArray *normals)
 
SgNormalArraygetOrCreateNormals ()
 
bool hasColors () const
 
SgColorArraycolors ()
 
const SgColorArraycolors () const
 
SgColorArraysetColors (SgColorArray *colors)
 
SgColorArraygetOrCreateColors ()
 
bool hasTexCoords () const
 
SgTexCoordArraytexCoords ()
 
const SgTexCoordArraytexCoords () const
 
SgTexCoordArraysetTexCoords (SgTexCoordArray *texCoords)
 
const SgIndexArraynormalIndices () const
 
SgIndexArraynormalIndices ()
 
const SgIndexArraycolorIndices () const
 
SgIndexArraycolorIndices ()
 
const SgIndexArraytexCoordIndices () const
 
SgIndexArraytexCoordIndices ()
 
bool isSolid () const
 
void setSolid (bool on)
 
- Public Member Functions inherited from cnoid::SgObject
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
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

 SgMeshBase ()
 
 SgMeshBase (const SgMeshBase &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
 

Protected Attributes

BoundingBox bbox
 

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

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

Member Function Documentation

const BoundingBox & SgMeshBase::boundingBox ( ) const
virtual
SgObject * SgMeshBase::childObject ( int  index)
virtual

Reimplemented from cnoid::SgObject.

const SgIndexArray& cnoid::SgMeshBase::colorIndices ( ) const
inline
SgIndexArray& cnoid::SgMeshBase::colorIndices ( )
inline
SgColorArray* cnoid::SgMeshBase::colors ( )
inline
const SgColorArray* cnoid::SgMeshBase::colors ( ) const
inline
SgColorArray * SgMeshBase::getOrCreateColors ( )
SgNormalArray * SgMeshBase::getOrCreateNormals ( )
SgVertexArray * SgMeshBase::getOrCreateVertices ( )
bool cnoid::SgMeshBase::hasColors ( ) const
inline
bool cnoid::SgMeshBase::hasNormals ( ) const
inline
bool cnoid::SgMeshBase::hasTexCoords ( ) const
inline
bool cnoid::SgMeshBase::hasVertices ( ) const
inline
bool cnoid::SgMeshBase::isSolid ( ) const
inline
const SgIndexArray& cnoid::SgMeshBase::normalIndices ( ) const
inline

Normals are assinged for vertices in triangles.

SgIndexArray& cnoid::SgMeshBase::normalIndices ( )
inline
SgNormalArray* cnoid::SgMeshBase::normals ( )
inline
const SgNormalArray* cnoid::SgMeshBase::normals ( ) const
inline
int SgMeshBase::numChildObjects ( ) const
virtual

Reimplemented from cnoid::SgObject.

SgColorArray * SgMeshBase::setColors ( SgColorArray colors)
SgNormalArray * SgMeshBase::setNormals ( SgNormalArray normals)
void cnoid::SgMeshBase::setSolid ( bool  on)
inline
SgTexCoordArray * SgMeshBase::setTexCoords ( SgTexCoordArray texCoords)
SgVertexArray * SgMeshBase::setVertices ( SgVertexArray vertices)
const SgIndexArray& cnoid::SgMeshBase::texCoordIndices ( ) const
inline
SgIndexArray& cnoid::SgMeshBase::texCoordIndices ( )
inline
SgTexCoordArray* cnoid::SgMeshBase::texCoords ( )
inline
const SgTexCoordArray* cnoid::SgMeshBase::texCoords ( ) const
inline
void SgMeshBase::updateBoundingBox ( )
virtual

Reimplemented in cnoid::SgPolygonMesh, and cnoid::SgMesh.

SgVertexArray* cnoid::SgMeshBase::vertices ( )
inline
const SgVertexArray* cnoid::SgMeshBase::vertices ( ) const
inline

Member Data Documentation

BoundingBox cnoid::SgMeshBase::bbox
protected

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