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

#include <SceneDrawables.h>

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

Public Member Functions

 SgPolygonMesh ()
 
virtual SgObject * clone (SgCloneMap &cloneMap) const
 
virtual void updateBoundingBox ()
 
SgIndexArray & polygonVertices ()
 
const SgIndexArray & polygonVertices () const
 
- Public Member Functions inherited from cnoid::SgMeshBase
virtual int numChildObjects () const
 
virtual SgObject * childObject (int index)
 
virtual const BoundingBox & boundingBox () const
 
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
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

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

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Protected Attributes inherited from cnoid::SgMeshBase
BoundingBox bbox
 

Constructor & Destructor Documentation

§ SgPolygonMesh() [1/2]

SgPolygonMesh::SgPolygonMesh ( )

§ SgPolygonMesh() [2/2]

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

Member Function Documentation

§ clone()

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

Reimplemented from cnoid::SgObject.

§ polygonVertices() [1/2]

SgIndexArray& cnoid::SgPolygonMesh::polygonVertices ( )
inline

The array of vertex indices corresponding to polygons. Indices are delimited by index value '-1'. When the actual instance type is SgPolygonMesh, the other index arrays defined in the SgMesh class also have to contain indices in the same way.

§ polygonVertices() [2/2]

const SgIndexArray& cnoid::SgPolygonMesh::polygonVertices ( ) const
inline

§ updateBoundingBox()

void SgPolygonMesh::updateBoundingBox ( )
virtual

Reimplemented from cnoid::SgMeshBase.


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