#include <OSGFaceIterator.h>
Collaboration diagram for osg::FaceIterator:

Public Methods | |
Construction | |
| FaceIterator (void) | |
| FaceIterator (const FaceIterator &source) | |
| FaceIterator (const GeometryPtr &geo) | |
| FaceIterator (const NodePtr &geo) | |
Destructors | |
| virtual | ~FaceIterator (void) |
Access | |
| Int32 | getIndex (void) const |
| UInt32 | getType (void) const |
| UInt32 | getLength (void) const |
| Int32 | getPositionIndex (Int32 which) const |
| Pnt3f | getPosition (Int32 which) const |
| Int32 | getNormalIndex (Int32 which) const |
| Vec3f | getNormal (Int32 which) const |
| Int32 | getColorIndex (Int32 which) const |
| Color3f | getColor (Int32 which) const |
| Int32 | getTexCoordsIndex (Int32 which) const |
| Vec2f | getTexCoords (Int32 which) const |
| Int32 | getIndexIndex (Int32 which) const |
| GeometryPtr | getGeometry (void) const |
Your operators | |
| void | seek (Int32 index) |
| void | operator++ (void) |
| FaceIterator & | operator= (const FaceIterator &source) |
| bool | operator< (const FaceIterator &other) const |
| bool | operator== (const FaceIterator &other) const |
| bool | operator!= (const FaceIterator &other) const |
Field Set | |
| void | setToBegin (void) |
| void | setToEnd (void) |
Static Public Methods | |
Class Get | |
| const char * | getClassname (void) |
Private Methods | |
| void | startPrim (void) |
Private Attributes | |
| PrimitiveIterator | _primIt |
| GeometryPtr | _geo |
| Int32 | _faceIndex |
| UInt32 | _actPrimIndex |
| Int32 | _facePntIndex [4] |
Static Private Attributes | |
| char | cvsid [] = "@(#)$Id: OSGFaceIterator.cpp,v 1.14 2002/02/04 20:14:09 dirk Exp $" |
tris and/or quads.
|
|
|
|
|
|
|
|
|
|
|
These constructors create an iterator for the given geometry/node. They are useful to create an iterator to be used to seek() to a specific indexed face. Otherwise, use Geometry::beginFaces() resp. Geometry::endFaces() to create an iterator. |
|
|
|
|
|
|
|
|
Return the index of the current face. The index runs from 0 to the number of faces in the geometry. Its main use is as an input to seek(). |
|
|
Return the type of the current primitive. Mainly useful to be able to treat e.g. polygons differently than other triangle-generating primitives. |
|
|
Return the length of the current face. 3 or 4, depending on the current primitive. |
|
|
Return the position index of a point in the current face.
|
|
|
Return the position of a point in the current face.
|
|
|
Return the normal index of a point in the current face.
|
|
|
Return the normal of a point in the current face.
|
|
|
Return the color index of a point in the current face.
|
|
|
Return the color of a point in the current face.
|
|
|
Return the texture coordinate index of a point in the current face.
|
|
|
Return the texture coordinate of a point in the current face.
|
|
|
Return the index index of a point in the current face.
|
|
|
Return the index of the current face. The index runs from 0 to the number of faces in the geometry. Its main use is as an input to seek(). |
|
|
|
|
|
The increment operator steps the iterator to the next face. If it is already beyond the last face it does not change. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Helper function to reset all state to the beginning of a new primitive. Also skips non-polygonal primitives (lines, points). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.16