Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
Freestyle::WXFace Class Reference

#include <WXEdge.h>

Inheritance diagram for Freestyle::WXFace:
Freestyle::WFace

Public Member Functions

 WXFace ()
 
 WXFace (WXFace &iBrother)
 
virtual WFaceduplicate ()
 
virtual ~WXFace ()
 
virtual WEdgeinstanciateEdge () const
 
Vec3fcenter ()
 
float Z ()
 
bool front ()
 
float dotp ()
 
bool hasSmoothEdges () const
 
vector< WXFaceLayer * > & getSmoothLayers ()
 
void retrieveSmoothEdges (WXNature iNature, vector< WXSmoothEdge * > &oSmoothEdges)
 
void retrieveSmoothEdgesLayers (WXNature iNature, vector< WXFaceLayer * > &oSmoothEdgesLayers)
 
void retrieveSmoothLayers (WXNature iNature, vector< WXFaceLayer * > &oSmoothLayers)
 
void setCenter (const Vec3f &iCenter)
 
void ComputeCenter ()
 
void setZ (float z)
 
void setFront (bool iFront)
 
void setDotP (float iDotP)
 
void AddSmoothLayer (WXFaceLayer *iLayer)
 
void Reset ()
 
void Clear ()
 
virtual void ResetUserData ()
 
- Public Member Functions inherited from Freestyle::WFace
 WFace ()
 
 WFace (WFace &iBrother)
 
virtual ~WFace ()
 
const vector< WOEdge * > & getEdgeList ()
 
WOEdgeGetOEdge (int i)
 
Vec3fGetNormal ()
 
int GetId ()
 
unsigned frs_materialIndex () const
 
bool GetMark () const
 
const FrsMaterialfrs_material ()
 
WVertexGetVertex (unsigned int index)
 
int GetIndex (WVertex *iVertex)
 
void RetrieveVertexList (vector< WVertex * > &oVertices)
 
void RetrieveBorderFaces (vector< const WFace * > &oWFaces)
 
WFaceGetBordingFace (int index)
 
WFaceGetBordingFace (WOEdge *iOEdge)
 
vector< Vec3f > & GetPerVertexNormals ()
 
vector< Vec2f > & GetPerVertexTexCoords ()
 
Vec3fGetVertexNormal (int index)
 
Vec2fGetVertexTexCoords (int index)
 
Vec3fGetVertexNormal (WVertex *iVertex)
 
WOEdgeGetNextOEdge (WOEdge *iOEdge)
 
WOEdgeGetPrevOEdge (WOEdge *iOEdge)
 
int numberOfEdges () const
 
int numberOfVertices () const
 
bool isBorder () const
 
void setEdgeList (const vector< WOEdge * > &iEdgeList)
 
void setNormal (const Vec3f &iNormal)
 
void setNormalList (const vector< Vec3f > &iNormalsList)
 
void setTexCoordsList (const vector< Vec2f > &iTexCoordsList)
 
void setId (int id)
 
void setFrsMaterialIndex (unsigned iMaterialIndex)
 
void setMark (bool iMark)
 
virtual WOEdgeMakeEdge (WVertex *v1, WVertex *v2)
 
void AddEdge (WOEdge *iEdge)
 
bool getOppositeEdge (const WVertex *v, WOEdge *&e)
 
float getArea ()
 
WShapegetShape ()
 

Protected Attributes

Vec3f _center
 
float _Z
 
bool _front
 
float _dotp
 
vector< WXFaceLayer * > _SmoothLayers
 
- Protected Attributes inherited from Freestyle::WFace
vector< WOEdge * > _OEdgeList
 
Vec3f _Normal
 
vector< Vec3f_VerticesNormals
 
vector< Vec2f_VerticesTexCoords
 
int _Id
 
unsigned _FrsMaterialIndex
 
bool _Mark
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::WFace
voiduserdata
 

Detailed Description

Definition at line 484 of file WXEdge.h.

Constructor & Destructor Documentation

◆ WXFace() [1/2]

Freestyle::WXFace::WXFace ( )
inline

Definition at line 495 of file WXEdge.h.

References _front, and _Z.

Referenced by duplicate().

◆ WXFace() [2/2]

Freestyle::WXFace::WXFace ( WXFace iBrother)
inline

Copy constructor

Definition at line 502 of file WXEdge.h.

References _center, _front, _SmoothLayers, _Z, center(), front(), and Z().

◆ ~WXFace()

virtual Freestyle::WXFace::~WXFace ( )
inlinevirtual

Definition at line 521 of file WXEdge.h.

References _SmoothLayers.

Member Function Documentation

◆ AddSmoothLayer()

void Freestyle::WXFace::AddSmoothLayer ( WXFaceLayer iLayer)
inline

◆ center()

Vec3f& Freestyle::WXFace::center ( )
inline

accessors

Definition at line 541 of file WXEdge.h.

References _center.

Referenced by ComputeCenter(), Freestyle::FEdgeXDetector::preProcessFace(), and WXFace().

◆ Clear()

void Freestyle::WXFace::Clear ( )
inline

Clears everything

Definition at line 664 of file WXEdge.h.

References _SmoothLayers.

Referenced by Freestyle::FEdgeXDetector::processShapes().

◆ ComputeCenter()

void Freestyle::WXFace::ComputeCenter ( )

Definition at line 236 of file WXEdge.cpp.

References center(), float(), Freestyle::WFace::RetrieveVertexList(), and setCenter().

◆ dotp()

float Freestyle::WXFace::dotp ( )
inline

Definition at line 556 of file WXEdge.h.

References _dotp.

◆ duplicate()

virtual WFace* Freestyle::WXFace::duplicate ( )
inlinevirtual

Reimplemented from Freestyle::WFace.

Definition at line 515 of file WXEdge.h.

References WXFace().

◆ front()

bool Freestyle::WXFace::front ( )
inline

◆ getSmoothLayers()

vector<WXFaceLayer *>& Freestyle::WXFace::getSmoothLayers ( )
inline

Definition at line 574 of file WXEdge.h.

References _SmoothLayers.

Referenced by Freestyle::ViewEdgeXBuilder::BuildViewEdges().

◆ hasSmoothEdges()

bool Freestyle::WXFace::hasSmoothEdges ( ) const
inline

◆ instanciateEdge()

virtual WEdge* Freestyle::WXFace::instanciateEdge ( ) const
inlinevirtual

designed to build a specialized WEdge for use in MakeEdge

Reimplemented from Freestyle::WFace.

Definition at line 535 of file WXEdge.h.

◆ Reset()

void Freestyle::WXFace::Reset ( )
inline

Definition at line 647 of file WXEdge.h.

References _SmoothLayers.

◆ ResetUserData()

virtual void Freestyle::WXFace::ResetUserData ( )
inlinevirtual

Reimplemented from Freestyle::WFace.

Definition at line 674 of file WXEdge.h.

References _SmoothLayers, NULL, and Freestyle::WFace::ResetUserData().

◆ retrieveSmoothEdges()

void Freestyle::WXFace::retrieveSmoothEdges ( WXNature  iNature,
vector< WXSmoothEdge * > &  oSmoothEdges 
)
inline

retrieve the smooth edges that match the Nature given as argument

Definition at line 580 of file WXEdge.h.

References _SmoothLayers.

◆ retrieveSmoothEdgesLayers()

void Freestyle::WXFace::retrieveSmoothEdgesLayers ( WXNature  iNature,
vector< WXFaceLayer * > &  oSmoothEdgesLayers 
)
inline

◆ retrieveSmoothLayers()

void Freestyle::WXFace::retrieveSmoothLayers ( WXNature  iNature,
vector< WXFaceLayer * > &  oSmoothLayers 
)
inline

Definition at line 602 of file WXEdge.h.

References _SmoothLayers.

◆ setCenter()

void Freestyle::WXFace::setCenter ( const Vec3f iCenter)
inline

modifiers

Definition at line 614 of file WXEdge.h.

References _center.

Referenced by ComputeCenter().

◆ setDotP()

void Freestyle::WXFace::setDotP ( float  iDotP)
inline

Definition at line 631 of file WXEdge.h.

References _dotp, and _front.

Referenced by Freestyle::FEdgeXDetector::preProcessFace().

◆ setFront()

void Freestyle::WXFace::setFront ( bool  iFront)
inline

Definition at line 626 of file WXEdge.h.

References _front.

◆ setZ()

void Freestyle::WXFace::setZ ( float  z)
inline

Definition at line 621 of file WXEdge.h.

References _Z, and z.

Referenced by Freestyle::FEdgeXDetector::preProcessFace().

◆ Z()

float Freestyle::WXFace::Z ( )
inline

Definition at line 546 of file WXEdge.h.

References _Z.

Referenced by WXFace().

Member Data Documentation

◆ _center

Vec3f Freestyle::WXFace::_center
protected

Definition at line 486 of file WXEdge.h.

Referenced by center(), setCenter(), and WXFace().

◆ _dotp

float Freestyle::WXFace::_dotp
protected

Definition at line 489 of file WXEdge.h.

Referenced by dotp(), and setDotP().

◆ _front

bool Freestyle::WXFace::_front
protected

Definition at line 488 of file WXEdge.h.

Referenced by front(), setDotP(), setFront(), and WXFace().

◆ _SmoothLayers

vector<WXFaceLayer *> Freestyle::WXFace::_SmoothLayers
protected

◆ _Z

float Freestyle::WXFace::_Z
protected

Definition at line 487 of file WXEdge.h.

Referenced by setZ(), WXFace(), and Z().


The documentation for this class was generated from the following files: