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 SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void updateBoundingBox ()
 
SgIndexArraypolygonVertices ()
 
const SgIndexArraypolygonVertices () const
 
- Public Member Functions inherited from cnoid::SgMeshBase
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual const BoundingBoxboundingBox () const
 
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
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: