|
Blender V4.3
|
#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 1007 of file WEdge.h.
References _Id, and _SceneCurrentId.
| Freestyle::WShape::WShape | ( | WShape & | iBrother | ) |
copy constructor
Definition at line 466 of file WEdge.cpp.
References Freestyle::edgedata::_copy, Freestyle::oedgedata::_copy, Freestyle::WVertex::_EdgeList, _FrsMaterials, Freestyle::WVertex::_Id, _LibraryPath, _Name, Freestyle::WVertex::AddEdge(), 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(), 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, and v.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
Definition at line 1203 of file WEdge.h.
References _VertexList, and Freestyle::WVertex::setShape().
| real Freestyle::WShape::ComputeMeanEdgeSize | ( | ) | const |
Definition at line 714 of file WEdge.cpp.
References Freestyle::WVertex::_EdgeList.
Referenced by Freestyle::FEdgeXDetector::preProcessShape().
|
virtual |
Reimplemented in Freestyle::WXShape.
|
inline |
|
inline |
Definition at line 1081 of file WEdge.h.
References _FrsMaterials.
accessors
Definition at line 1048 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 1058 of file WEdge.h.
References _FaceList.
Referenced by Freestyle::WingedEdge::addWShape(), Freestyle::FEdgeXDetector::buildSmoothEdges(), Freestyle::ViewEdgeXBuilder::BuildViewEdges(), 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 1063 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 1098 of file WEdge.h.
References _LibraryPath.
|
inline |
Definition at line 1053 of file WEdge.h.
References _VertexList.
Referenced by Freestyle::FEdgeXDetector::buildSmoothEdges(), Freestyle::FEdgeXDetector::preProcessShape(), and WShape().
|
inlinevirtual |
designed to build a specialized WFace for use in MakeFace
Reimplemented in Freestyle::WXShape.
|
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 result.
Referenced by 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 Freestyle::WVertex::_EdgeList, Freestyle::WVertex::AddEdge(), Freestyle::WOEdge::GetOwner(), Freestyle::WFace::setFrsMaterialIndex(), Freestyle::WEdge::setId(), 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.
|
inline |
Definition at line 1209 of file WEdge.h.
References _EdgeList, _FaceList, _VertexList, e, Freestyle::WOEdge::ResetUserData(), and v.
Referenced by Freestyle::ViewEdgeXBuilder::BuildViewEdges().
|
inlinestatic |
modifiers
Definition at line 1104 of file WEdge.h.
References _SceneCurrentId.
Referenced by Freestyle::Controller::CloseFile().
|
inline |
Definition at line 1137 of file WEdge.h.
References _FrsMaterials, and frs_material().
|
inline |
Definition at line 1142 of file WEdge.h.
References _FrsMaterials.
|
inline |
|
inline |
Definition at line 1152 of file WEdge.h.
References _LibraryPath.
|
inline |
Definition at line 1114 of file WEdge.h.
References _VertexList.
Definition at line 991 of file WEdge.h.
Referenced by AddEdge(), getEdgeList(), ResetUserData(), setEdgeList(), and ~WShape().
Definition at line 992 of file WEdge.h.
Referenced by AddFace(), GetFaceList(), ResetUserData(), setFaceList(), and ~WShape().
|
protected |
Definition at line 1001 of file WEdge.h.
Referenced by frs_material(), frs_materials(), setFrsMaterial(), setFrsMaterials(), and WShape().
|
protected |
|
protected |
Definition at line 995 of file WEdge.h.
Referenced by getLibraryPath(), setLibraryPath(), and WShape().
|
protected |
|
staticprotected |
Definition at line 996 of file WEdge.h.
Referenced by setCurrentId(), and WShape().
Definition at line 990 of file WEdge.h.
Referenced by AddVertex(), getVertexList(), ResetUserData(), setVertexList(), and ~WShape().