|
Blender V5.0
|
#include <WEdge.h>
Inherited by Freestyle::WXShape.
Public Member Functions | |
| WShape () | |
| WShape (WShape &iBrother) | |
| virtual WShape * | duplicate () |
| virtual | ~WShape () |
| vector< WEdge * > & | getEdgeList () |
| vector< WVertex * > & | getVertexList () |
| vector< WFace * > & | GetFaceList () |
| uint | GetId () |
| const FrsMaterial & | frs_material (uint i) const |
| const vector< FrsMaterial > & | frs_materials () const |
| const string & | getName () const |
| const string & | getLibraryPath () const |
| void | setEdgeList (const vector< WEdge * > &iEdgeList) |
| void | setVertexList (const vector< WVertex * > &iVertexList) |
| void | setFaceList (const vector< WFace * > &iFaceList) |
| void | setId (int id) |
| void | setFrsMaterial (const FrsMaterial &frs_material, uint i) |
| void | setFrsMaterials (const vector< FrsMaterial > &iMaterials) |
| void | setName (const string &name) |
| void | setLibraryPath (const string &path) |
| virtual WFace * | instanciateFace () const |
| virtual WFace * | MakeFace (vector< WVertex * > &iVertexList, vector< bool > &iFaceEdgeMarksList, uint iMaterialIndex) |
| virtual WFace * | MakeFace (vector< WVertex * > &iVertexList, vector< Vec3f > &iNormalsList, vector< Vec2f > &iTexCoordsList, vector< bool > &iFaceEdgeMarksList, uint iMaterialIndex) |
| void | AddEdge (WEdge *iEdge) |
| void | AddFace (WFace *iFace) |
| void | AddVertex (WVertex *iVertex) |
| void | ResetUserData () |
| real | ComputeMeanEdgeSize () const |
Static Public Member Functions | |
| static void | setCurrentId (const uint id) |
Protected Member Functions | |
| virtual WFace * | MakeFace (vector< WVertex * > &iVertexList, vector< bool > &iFaceEdgeMarksList, uint iMaterialIndex, WFace *face) |
Protected Attributes | |
| vector< WVertex * > | _VertexList |
| vector< WEdge * > | _EdgeList |
| vector< WFace * > | _FaceList |
| int | _Id |
| string | _Name |
| string | _LibraryPath |
| vector< FrsMaterial > | _FrsMaterials |
Static Protected Attributes | |
| static uint | _SceneCurrentId = 0 |
|
inline |
Definition at line 993 of file WEdge.h.
References _Id, and _SceneCurrentId.
Referenced by duplicate(), Freestyle::WXShape::duplicate(), WShape(), Freestyle::WXShape::WXShape(), and Freestyle::WXShape::WXShape().
| Freestyle::WShape::WShape | ( | WShape & | iBrother | ) |
copy constructor
Definition at line 466 of file WEdge.cpp.
References Freestyle::edgedata::_copy, Freestyle::oedgedata::_copy, _EdgeList, _FaceList, _FrsMaterials, _Id, _LibraryPath, _Name, _VertexList, Freestyle::WVertex::AddEdge(), AddFace(), AddVertex(), Freestyle::WEdge::duplicate(), Freestyle::WFace::duplicate(), Freestyle::WVertex::duplicate(), e, Freestyle::WOEdge::GetaFace(), Freestyle::WOEdge::GetaVertex(), Freestyle::WOEdge::GetbFace(), Freestyle::WOEdge::GetbVertex(), getEdgeList(), GetFaceList(), GetId(), Freestyle::WOEdge::GetOwner(), getVertexList(), i, Freestyle::WOEdge::setaFace(), Freestyle::WOEdge::setaVertex(), Freestyle::WOEdge::setbFace(), Freestyle::WOEdge::setbVertex(), Freestyle::WOEdge::setOwner(), Freestyle::WVertex::setShape(), Freestyle::WEdge::userdata, Freestyle::WFace::userdata, Freestyle::WOEdge::userdata, Freestyle::WVertex::userdata, v, and WShape().
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 1184 of file WEdge.h.
References _FaceList.
Referenced by MakeFace(), and WShape().
|
inline |
Definition at line 1189 of file WEdge.h.
References _VertexList, and Freestyle::WVertex::setShape().
Referenced by Freestyle::WingedEdgeBuilder::buildWVertices(), Freestyle::WXEdgeBuilder::buildWVertices(), and WShape().
| real Freestyle::WShape::ComputeMeanEdgeSize | ( | ) | const |
Definition at line 714 of file WEdge.cpp.
References _EdgeList.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and Freestyle::FEdgeXDetector::preProcessShape().
|
virtual |
|
inline |
Definition at line 1062 of file WEdge.h.
References _FrsMaterials, and i.
Referenced by setFrsMaterial().
|
inline |
Definition at line 1067 of file WEdge.h.
References _FrsMaterials.
accessors
Definition at line 1034 of file WEdge.h.
References _EdgeList.
Referenced by Freestyle::ViewEdgeXBuilder::BuildViewEdges(), Freestyle::FEdgeXDetector::processBorderShape(), Freestyle::FEdgeXDetector::processCreaseShape(), Freestyle::FEdgeXDetector::processEdgeMarksShape(), Freestyle::FEdgeXDetector::processMaterialBoundaryShape(), Freestyle::FEdgeXDetector::processSilhouetteShape(), Freestyle::WXShape::Reset(), and WShape().
Definition at line 1044 of file WEdge.h.
References _FaceList.
Referenced by Freestyle::WingedEdge::addWShape(), Freestyle::FEdgeXDetector::buildSmoothEdges(), Freestyle::ViewEdgeXBuilder::BuildViewEdges(), Freestyle::WingedEdgeBuilder::buildWShape(), Freestyle::FEdgeXDetector::postProcessSuggestiveContourShape(), Freestyle::FEdgeXDetector::preProcessShape(), Freestyle::FEdgeXDetector::processRidgesAndValleysShape(), Freestyle::FEdgeXDetector::processShapes(), Freestyle::FEdgeXDetector::processSilhouetteShape(), Freestyle::FEdgeXDetector::processSuggestiveContourShape(), Freestyle::WXShape::Reset(), and WShape().
|
inline |
Definition at line 1049 of file WEdge.h.
References _Id.
Referenced by Freestyle::ViewMapBuilder::ComputeFastRayCastingVisibility(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::ViewMapBuilder::ComputeVeryFastRayCastingVisibility(), Freestyle::computeVeryFastVisibility(), Freestyle::computeVisibility(), and WShape().
|
inline |
Definition at line 1084 of file WEdge.h.
References _LibraryPath.
|
inline |
Definition at line 1039 of file WEdge.h.
References _VertexList.
Referenced by Freestyle::FEdgeXDetector::buildSmoothEdges(), Freestyle::WingedEdgeBuilder::buildWShape(), Freestyle::FEdgeXDetector::preProcessShape(), and WShape().
|
inlinevirtual |
designed to build a specialized WFace for use in MakeFace
Reimplemented in Freestyle::WXShape.
Definition at line 1144 of file WEdge.h.
Referenced by MakeFace().
|
virtual |
adds a new face to the shape returns the built face. iVertexList List of face's vertices. These vertices are not added to the WShape vertex list; they are supposed to be already stored when calling MakeFace. The order in which the vertices are stored in the list determines the face's edges orientation and (so) the face orientation. iMaterialIndex The material index for this face
Reimplemented in Freestyle::WXShape.
Definition at line 590 of file WEdge.cpp.
References instanciateFace(), MakeFace(), and result.
Referenced by MakeFace(), MakeFace(), Freestyle::WXShape::MakeFace(), and Freestyle::WXShape::MakeFace().
|
protectedvirtual |
Builds the face passed as argument (which as already been allocated)
Definition at line 625 of file WEdge.cpp.
References _EdgeList, _FaceList, Freestyle::WVertex::AddEdge(), AddFace(), Freestyle::WEdge::GetaOEdge(), Freestyle::WEdge::GetNumberOfOEdges(), Freestyle::WOEdge::GetOwner(), Freestyle::WOEdge::GetVec(), Freestyle::WFace::MakeEdge(), Freestyle::VecMat::Vec< T, N >::norm(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::WFace::setFrsMaterialIndex(), Freestyle::WEdge::setId(), Freestyle::WFace::setId(), Freestyle::WEdge::setMark(), Freestyle::WFace::setMark(), Freestyle::WFace::setNormal(), and v2.
|
virtual |
adds a new face to the shape. The difference with the previous method is that this one is designed to build a WingedEdge structure for which there are per vertex normals, opposed to per face normals. returns the built face. iVertexList List of face's vertices. These vertices are not added to the WShape vertex list; they are supposed to be already stored when calling MakeFace. The order in which the vertices are stored in the list determines the face's edges orientation and (so) the face orientation. iMaterialIndex The materialIndex for this face iNormalsList The list of normals, iNormalsList[i] corresponding to the normal of the vertex iVertexList[i] for that face. iTexCoordsList The list of texture coords, iTexCoordsList[i] corresponding to the normal of the vertex iVertexList[i] for that face.
Reimplemented in Freestyle::WXShape.
Definition at line 604 of file WEdge.cpp.
References MakeFace(), Freestyle::WFace::setNormalList(), and Freestyle::WFace::setTexCoordsList().
|
inline |
Definition at line 1195 of file WEdge.h.
References _EdgeList, _FaceList, _VertexList, e, Freestyle::WOEdge::ResetUserData(), and v.
Referenced by Freestyle::ViewEdgeXBuilder::BuildViewEdges().
|
inlinestatic |
modifiers
Definition at line 1090 of file WEdge.h.
References _SceneCurrentId.
Referenced by Freestyle::Controller::CloseFile().
|
inline |
Definition at line 1123 of file WEdge.h.
References _FrsMaterials, frs_material(), and i.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inline |
Definition at line 1128 of file WEdge.h.
References _FrsMaterials.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inline |
|
inline |
Definition at line 1138 of file WEdge.h.
References _LibraryPath.
|
inline |
Definition at line 1100 of file WEdge.h.
References _VertexList.
Definition at line 977 of file WEdge.h.
Referenced by AddEdge(), ComputeMeanEdgeSize(), getEdgeList(), MakeFace(), ResetUserData(), setEdgeList(), WShape(), and ~WShape().
Definition at line 978 of file WEdge.h.
Referenced by AddFace(), GetFaceList(), MakeFace(), ResetUserData(), setFaceList(), WShape(), and ~WShape().
|
protected |
Definition at line 987 of file WEdge.h.
Referenced by frs_material(), frs_materials(), setFrsMaterial(), setFrsMaterials(), and WShape().
|
protected |
|
protected |
Definition at line 981 of file WEdge.h.
Referenced by getLibraryPath(), setLibraryPath(), and WShape().
|
protected |
|
staticprotected |
Definition at line 982 of file WEdge.h.
Referenced by setCurrentId(), and WShape().
Definition at line 976 of file WEdge.h.
Referenced by AddVertex(), getVertexList(), ResetUserData(), setVertexList(), WShape(), and ~WShape().