Blender
V3.3
|
#include <WEdge.h>
Public Member Functions | |
WShape () | |
WShape (WShape &iBrother) | |
virtual WShape * | duplicate () |
virtual | ~WShape () |
vector< WEdge * > & | getEdgeList () |
vector< WVertex * > & | getVertexList () |
vector< WFace * > & | GetFaceList () |
unsigned | GetId () |
const FrsMaterial & | frs_material (unsigned 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, unsigned 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, unsigned iMaterialIndex) |
virtual WFace * | MakeFace (vector< WVertex * > &iVertexList, vector< Vec3f > &iNormalsList, vector< Vec2f > &iTexCoordsList, vector< bool > &iFaceEdgeMarksList, unsigned 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 unsigned id) |
Protected Member Functions | |
virtual WFace * | MakeFace (vector< WVertex * > &iVertexList, vector< bool > &iFaceEdgeMarksList, unsigned 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 unsigned | _SceneCurrentId = 0 |
Freestyle::WShape::WShape | ( | WShape & | iBrother | ) |
copy constructor
Definition at line 462 of file WEdge.cpp.
References Freestyle::oedgedata::_copy, Freestyle::edgedata::_copy, Freestyle::WVertex::_EdgeList, _FrsMaterials, Freestyle::WVertex::_Id, _LibraryPath, _Name, Freestyle::WVertex::AddEdge(), Freestyle::WVertex::duplicate(), Freestyle::WEdge::duplicate(), Freestyle::WFace::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::WVertex::userdata, Freestyle::WOEdge::userdata, Freestyle::WEdge::userdata, Freestyle::WFace::userdata, and v.
|
inlinevirtual |
Definition at line 1200 of file WEdge.h.
References Freestyle::WVertex::setShape().
Referenced by Freestyle::WingedEdgeBuilder::buildWVertices(), and Freestyle::WXEdgeBuilder::buildWVertices().
real Freestyle::WShape::ComputeMeanEdgeSize | ( | ) | const |
Definition at line 709 of file WEdge.cpp.
References Freestyle::WVertex::_EdgeList.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape(), and Freestyle::FEdgeXDetector::preProcessShape().
|
virtual |
Reimplemented in Freestyle::WXShape.
|
inline |
|
inline |
accessors
Definition at line 1045 of file WEdge.h.
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 1055 of file WEdge.h.
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 1060 of file WEdge.h.
Referenced by Freestyle::ViewMapBuilder::ComputeFastRayCastingVisibility(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::ViewMapBuilder::ComputeVeryFastRayCastingVisibility(), Freestyle::computeVeryFastVisibility(), Freestyle::computeVisibility(), and WShape().
|
inline |
Definition at line 1050 of file WEdge.h.
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.
|
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 586 of file WEdge.cpp.
References result.
Referenced by Freestyle::WXShape::MakeFace().
|
protectedvirtual |
Builds the face passed as argument (which as already been allocated)
Definition at line 621 of file WEdge.cpp.
References Freestyle::WVertex::_EdgeList, Freestyle::WVertex::AddEdge(), Freestyle::WOEdge::GetOwner(), Freestyle::WFace::MakeEdge(), normal, Freestyle::WFace::setFrsMaterialIndex(), Freestyle::WFace::setId(), Freestyle::WFace::setMark(), Freestyle::WFace::setNormal(), v1, 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 600 of file WEdge.cpp.
References Freestyle::WFace::setNormalList(), and Freestyle::WFace::setTexCoordsList().
|
inline |
Definition at line 1206 of file WEdge.h.
References e, Freestyle::WOEdge::ResetUserData(), and v.
Referenced by Freestyle::ViewEdgeXBuilder::BuildViewEdges().
|
inlinestatic |
modifiers
Definition at line 1101 of file WEdge.h.
References id.
Referenced by Freestyle::Controller::CloseFile().
|
inline |
Definition at line 1134 of file WEdge.h.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inline |
Definition at line 1139 of file WEdge.h.
Referenced by Freestyle::WingedEdgeBuilder::buildWShape().
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
staticprotected |