|
Blender V4.3
|
#include <IndexedFaceSet.h>
Inherits Freestyle::Rep.
Public Types | |
| enum | TRIANGLES_STYLE { TRIANGLE_STRIP , TRIANGLE_FAN , TRIANGLES } |
| typedef uchar | FaceEdgeMark |
Public Member Functions | |
| IndexedFaceSet () | |
| IndexedFaceSet (float *iVertices, uint iVSize, float *iNormals, uint iNSize, FrsMaterial **iMaterials, uint iMSize, float *iTexCoords, uint iTSize, uint iNumFaces, uint *iNumVertexPerFace, TRIANGLES_STYLE *iFaceStyle, FaceEdgeMark *iFaceEdgeMarks, uint *iVIndices, uint iVISize, uint *iNIndices, uint iNISize, uint *iMIndices, uint iMISize, uint *iTIndices, uint iTISize, uint iCopy=1) | |
| IndexedFaceSet (const IndexedFaceSet &iBrother) | |
| void | swap (IndexedFaceSet &ioOther) |
| IndexedFaceSet & | operator= (const IndexedFaceSet &iBrother) |
| virtual | ~IndexedFaceSet () |
| virtual void | accept (SceneVisitor &v) |
| virtual void | ComputeBBox () |
| virtual const float * | vertices () const |
| virtual const float * | normals () const |
| virtual const FrsMaterial *const * | frs_materials () const |
| virtual const float * | texCoords () const |
| virtual const uint | vsize () const |
| virtual const uint | nsize () const |
| virtual const uint | msize () const |
| virtual const uint | tsize () const |
| virtual const uint | numFaces () const |
| virtual const uint * | numVertexPerFaces () const |
| virtual const TRIANGLES_STYLE * | trianglesStyle () const |
| virtual const uchar * | faceEdgeMarks () const |
| virtual const uint * | vindices () const |
| virtual const uint * | nindices () const |
| virtual const uint * | mindices () const |
| virtual const uint * | tindices () const |
| virtual const uint | visize () const |
| virtual const uint | nisize () const |
| virtual const uint | misize () const |
| virtual const uint | tisize () const |
Public Member Functions inherited from Freestyle::Rep | |
| Rep () | |
| Rep (const Rep &iBrother) | |
| void | swap (Rep &ioOther) |
| Rep & | operator= (const Rep &iBrother) |
| virtual | ~Rep () |
| virtual const BBox< Vec3f > & | bbox () const |
| Id | getId () const |
| const string & | getName () const |
| const string & | getLibraryPath () const |
| const FrsMaterial * | frs_material () const |
| virtual void | setBBox (const BBox< Vec3f > &iBox) |
| void | setId (const Id &id) |
| void | setName (const string &name) |
| void | setLibraryPath (const string &path) |
| void | setFrsMaterial (const FrsMaterial &iMaterial) |
Public Member Functions inherited from Freestyle::BaseObject | |
| BaseObject () | |
| virtual | ~BaseObject () |
| virtual int | destroy () |
| int | addRef () |
| int | release () |
Static Public Attributes | |
| static const FaceEdgeMark | FACE_MARK = 1 << 0 |
| static const FaceEdgeMark | EDGE_MARK_V1V2 = 1 << 1 |
| static const FaceEdgeMark | EDGE_MARK_V2V3 = 1 << 2 |
| static const FaceEdgeMark | EDGE_MARK_V3V1 = 1 << 3 |
Protected Attributes | |
| float * | _Vertices |
| float * | _Normals |
| FrsMaterial ** | _FrsMaterials |
| float * | _TexCoords |
| uint | _VSize |
| uint | _NSize |
| uint | _MSize |
| uint | _TSize |
| uint | _NumFaces |
| uint * | _NumVertexPerFace |
| TRIANGLES_STYLE * | _FaceStyle |
| FaceEdgeMark * | _FaceEdgeMarks |
| uint * | _VIndices |
| uint * | _NIndices |
| uint * | _MIndices |
| uint * | _TIndices |
| uint | _VISize |
| uint | _NISize |
| uint | _MISize |
| uint | _TISize |
Definition at line 22 of file IndexedFaceSet.h.
User-specified face and edge marks for feature edge detection
Definition at line 33 of file IndexedFaceSet.h.
Triangles description style:
| Enumerator | |
|---|---|
| TRIANGLE_STRIP | |
| TRIANGLE_FAN | |
| TRIANGLES | |
Definition at line 25 of file IndexedFaceSet.h.
| Freestyle::IndexedFaceSet::IndexedFaceSet | ( | ) |
Builds an empty indexed face set.
Definition at line 16 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, and _VSize.
| Freestyle::IndexedFaceSet::IndexedFaceSet | ( | float * | iVertices, |
| uint | iVSize, | ||
| float * | iNormals, | ||
| uint | iNSize, | ||
| FrsMaterial ** | iMaterials, | ||
| uint | iMSize, | ||
| float * | iTexCoords, | ||
| uint | iTSize, | ||
| uint | iNumFaces, | ||
| uint * | iNumVertexPerFace, | ||
| TRIANGLES_STYLE * | iFaceStyle, | ||
| FaceEdgeMark * | iFaceEdgeMarks, | ||
| uint * | iVIndices, | ||
| uint | iVISize, | ||
| uint * | iNIndices, | ||
| uint | iNISize, | ||
| uint * | iMIndices, | ||
| uint | iMISize, | ||
| uint * | iTIndices, | ||
| uint | iTISize, | ||
| uint | iCopy = 1 ) |
Builds an indexed face set iVertices The array of object vertices 3D coordinates (for all faces). If iCopy != 0, the array is copied; you must deallocate iVertices. Else you must not. iVSize The size of iVertices (must be a multiple of 3) iNormals The array of object normals 3D coordinates. If iCopy != 0, the array is copied; you must deallocate iNormals. Else you must not. iNSize The size of iNormals iMaterials The array of materials iMSize The size of iMaterials iTexCoords The array of texture coordinates. iTSize The size of iTexCoords (must be multiple of 2) iNumFaces The number of faces iNumVertexPerFace Array containing the number of vertices per face. iFaceStyle Array containing the description style of each faces. The style belongs to:
Definition at line 40 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, and _VSize.
| Freestyle::IndexedFaceSet::IndexedFaceSet | ( | const IndexedFaceSet & | iBrother | ) |
Builds an indexed face set from an other indexed face set
Definition at line 155 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, _VSize, faceEdgeMarks(), mindices(), misize(), msize(), nindices(), nisize(), normals(), nsize(), numFaces(), numVertexPerFaces(), texCoords(), tindices(), tisize(), trianglesStyle(), tsize(), vertices(), vindices(), visize(), and vsize().
|
virtual |
Destructor deallocates all the resources
Definition at line 218 of file IndexedFaceSet.cpp.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MSize, _NIndices, _Normals, _NumVertexPerFace, _TexCoords, _TIndices, _Vertices, and _VIndices.
|
virtual |
Accept the corresponding visitor
Reimplemented from Freestyle::Rep.
Definition at line 278 of file IndexedFaceSet.cpp.
References Freestyle::Rep::accept(), and v.
|
virtual |
Compute the Bounding Box
Implements Freestyle::Rep.
Definition at line 284 of file IndexedFaceSet.cpp.
References _Vertices, _VSize, Freestyle::Rep::setBBox(), and v.
|
inlinevirtual |
Definition at line 224 of file IndexedFaceSet.h.
References _FaceEdgeMarks.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 179 of file IndexedFaceSet.h.
References _FrsMaterials.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inlinevirtual |
Definition at line 239 of file IndexedFaceSet.h.
References _MIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 259 of file IndexedFaceSet.h.
References _MISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 199 of file IndexedFaceSet.h.
References _MSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 234 of file IndexedFaceSet.h.
References _NIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 254 of file IndexedFaceSet.h.
References _NISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 174 of file IndexedFaceSet.h.
References _Normals.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 194 of file IndexedFaceSet.h.
References _NSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 209 of file IndexedFaceSet.h.
References _NumFaces.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 214 of file IndexedFaceSet.h.
References _NumVertexPerFace.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inline |
Definition at line 150 of file IndexedFaceSet.h.
References swap.
|
inline |
Definition at line 120 of file IndexedFaceSet.h.
References _FaceEdgeMarks, _FaceStyle, _FrsMaterials, _MIndices, _MISize, _MSize, _NIndices, _NISize, _Normals, _NSize, _NumFaces, _NumVertexPerFace, _TexCoords, _TIndices, _TISize, _TSize, _Vertices, _VIndices, _VISize, _VSize, and Freestyle::Rep::swap().
|
inlinevirtual |
Definition at line 184 of file IndexedFaceSet.h.
References _TexCoords.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 244 of file IndexedFaceSet.h.
References _TIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 264 of file IndexedFaceSet.h.
References _TISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 219 of file IndexedFaceSet.h.
References _FaceStyle.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 204 of file IndexedFaceSet.h.
References _TSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Accessors
Definition at line 169 of file IndexedFaceSet.h.
References _Vertices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 229 of file IndexedFaceSet.h.
References _VIndices.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
inlinevirtual |
Definition at line 249 of file IndexedFaceSet.h.
References _VISize.
Referenced by IndexedFaceSet().
|
inlinevirtual |
Definition at line 189 of file IndexedFaceSet.h.
References _VSize.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and IndexedFaceSet().
|
protected |
Definition at line 283 of file IndexedFaceSet.h.
Referenced by faceEdgeMarks(), IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 282 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), trianglesStyle(), and ~IndexedFaceSet().
|
protected |
Definition at line 272 of file IndexedFaceSet.h.
Referenced by frs_materials(), IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 287 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), mindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 292 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), misize(), and swap().
|
protected |
Definition at line 277 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), msize(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 286 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), nindices(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 291 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), nisize(), and swap().
|
protected |
Definition at line 271 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), normals(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 276 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), nsize(), and swap().
|
protected |
Definition at line 280 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), numFaces(), and swap().
|
protected |
Definition at line 281 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), numVertexPerFaces(), swap(), and ~IndexedFaceSet().
|
protected |
Definition at line 273 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), texCoords(), and ~IndexedFaceSet().
|
protected |
Definition at line 288 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), tindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 293 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and tisize().
|
protected |
Definition at line 278 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and tsize().
|
protected |
Definition at line 270 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), vertices(), and ~IndexedFaceSet().
|
protected |
Definition at line 285 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), vindices(), and ~IndexedFaceSet().
|
protected |
Definition at line 290 of file IndexedFaceSet.h.
Referenced by IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and visize().
|
protected |
Definition at line 275 of file IndexedFaceSet.h.
Referenced by ComputeBBox(), IndexedFaceSet(), IndexedFaceSet(), IndexedFaceSet(), swap(), and vsize().
|
static |
Definition at line 35 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 36 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 37 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().
|
static |
Definition at line 34 of file IndexedFaceSet.h.
Referenced by Freestyle::BlenderFileLoader::addTriangle().