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 SgObject * childObject (int index)
 
virtual const BoundingBox & boundingBox () const
 
virtual void updateBoundingBox ()
 
bool hasVertices () const
 
SgVertexArray * vertices ()
 
const SgVertexArray * vertices () const
 
SgVertexArray * setVertices (SgVertexArray *vertices)
 
SgVertexArray * getOrCreateVertices ()
 
bool hasNormals () const
 
SgNormalArray * normals ()
 
const SgNormalArray * normals () const
 
SgNormalArray * setNormals (SgNormalArray *normals)
 
SgNormalArray * getOrCreateNormals ()
 
bool hasColors () const
 
SgColorArray * colors ()
 
const SgColorArray * colors () const
 
SgColorArray * setColors (SgColorArray *colors)
 
SgColorArray * getOrCreateColors ()
 
bool hasTexCoords () const
 
SgTexCoordArray * texCoords ()
 
const SgTexCoordArray * texCoords () const
 
SgTexCoordArray * setTexCoords (SgTexCoordArray *texCoords)
 
const SgIndexArray & normalIndices () const
 
SgIndexArray & normalIndices ()
 
const SgIndexArray & colorIndices () const
 
SgIndexArray & colorIndices ()
 
const SgIndexArray & texCoordIndices () const
 
SgIndexArray & texCoordIndices ()
 
bool isSolid () const
 
void setSolid (bool on)
 
- Public Member Functions inherited from cnoid::SgObject
virtual SgObject * clone (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() [1/2]

SgMeshBase::SgMeshBase ( )
protected

◆ SgMeshBase() [2/2]

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

Member Function Documentation

◆ boundingBox()

const BoundingBox & SgMeshBase::boundingBox ( ) const
virtual

◆ childObject()

SgObject * SgMeshBase::childObject ( int  index)
virtual

Reimplemented from cnoid::SgObject.

◆ colorIndices() [1/2]

const SgIndexArray& cnoid::SgMeshBase::colorIndices ( ) const
inline

◆ colorIndices() [2/2]

SgIndexArray& cnoid::SgMeshBase::colorIndices ( )
inline

◆ colors() [1/2]

SgColorArray* cnoid::SgMeshBase::colors ( )
inline

◆ colors() [2/2]

const SgColorArray* cnoid::SgMeshBase::colors ( ) const
inline

◆ getOrCreateColors()

SgColorArray * SgMeshBase::getOrCreateColors ( )

◆ getOrCreateNormals()

SgNormalArray * SgMeshBase::getOrCreateNormals ( )

◆ getOrCreateVertices()

SgVertexArray * SgMeshBase::getOrCreateVertices ( )

◆ hasColors()

bool cnoid::SgMeshBase::hasColors ( ) const
inline

◆ hasNormals()

bool cnoid::SgMeshBase::hasNormals ( ) const
inline

◆ hasTexCoords()

bool cnoid::SgMeshBase::hasTexCoords ( ) const
inline

◆ hasVertices()

bool cnoid::SgMeshBase::hasVertices ( ) const
inline

◆ isSolid()

bool cnoid::SgMeshBase::isSolid ( ) const
inline

◆ normalIndices() [1/2]

const SgIndexArray& cnoid::SgMeshBase::normalIndices ( ) const
inline

Normals are assinged for vertices in triangles.

◆ normalIndices() [2/2]

SgIndexArray& cnoid::SgMeshBase::normalIndices ( )
inline

◆ normals() [1/2]

SgNormalArray* cnoid::SgMeshBase::normals ( )
inline

◆ normals() [2/2]

const SgNormalArray* cnoid::SgMeshBase::normals ( ) const
inline

◆ numChildObjects()

int SgMeshBase::numChildObjects ( ) const
virtual

Reimplemented from cnoid::SgObject.

◆ setColors()

SgColorArray * SgMeshBase::setColors ( SgColorArray *  colors)

◆ setNormals()

SgNormalArray * SgMeshBase::setNormals ( SgNormalArray *  normals)

◆ setSolid()

void cnoid::SgMeshBase::setSolid ( bool  on)
inline

◆ setTexCoords()

SgTexCoordArray * SgMeshBase::setTexCoords ( SgTexCoordArray *  texCoords)

◆ setVertices()

SgVertexArray * SgMeshBase::setVertices ( SgVertexArray *  vertices)

◆ texCoordIndices() [1/2]

const SgIndexArray& cnoid::SgMeshBase::texCoordIndices ( ) const
inline

◆ texCoordIndices() [2/2]

SgIndexArray& cnoid::SgMeshBase::texCoordIndices ( )
inline

◆ texCoords() [1/2]

SgTexCoordArray* cnoid::SgMeshBase::texCoords ( )
inline

◆ texCoords() [2/2]

const SgTexCoordArray* cnoid::SgMeshBase::texCoords ( ) const
inline

◆ updateBoundingBox()

void SgMeshBase::updateBoundingBox ( )
virtual

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

◆ vertices() [1/2]

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

◆ vertices() [2/2]

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

Member Data Documentation

◆ bbox

BoundingBox cnoid::SgMeshBase::bbox
protected

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