Blender  V2.93
Public Member Functions | Public Attributes | List of all members
Freestyle::WXFaceLayer Class Reference

#include <WXEdge.h>

Public Member Functions

 WXFaceLayer (WXFace *iFace, WXNature iNature, bool viewDependant)
 
 WXFaceLayer (const WXFaceLayer &iBrother)
 
virtual ~WXFaceLayer ()
 
const float dotP (int i) const
 
unsigned nPosDotP () const
 
unsigned nNullDotP () const
 
int closestPointIndex () const
 
WXNature nature () const
 
bool hasSmoothEdge () const
 
WXFacegetFace ()
 
WXSmoothEdgegetSmoothEdge ()
 
bool isViewDependant () const
 
void setClosestPointIndex (int iIndex)
 
void removeSmoothEdge ()
 
unsigned int Get0VertexIndex () const
 
unsigned int GetSmoothEdgeIndex () const
 
void RetrieveCuspEdgesIndices (vector< int > &oCuspEdges)
 
WXSmoothEdgeBuildSmoothEdge ()
 
void setDotP (const vector< float > &iDotP)
 
void PushDotP (float iDotP)
 
void ReplaceDotP (unsigned int index, float newDotP)
 
void updateDotPInfos ()
 

Public Attributes

void * userdata
 
WXFace_pWXFace
 
vector< float_DotP
 
WXSmoothEdge_pSmoothEdge
 
WXNature _Nature
 
unsigned _nPosDotP
 
unsigned _nNullDotP
 
unsigned _ClosestPointIndex
 
bool _viewDependant
 

Detailed Description

Definition at line 322 of file WXEdge.h.

Constructor & Destructor Documentation

◆ WXFaceLayer() [1/2]

Freestyle::WXFaceLayer::WXFaceLayer ( WXFace iFace,
WXNature  iNature,
bool  viewDependant 
)
inline

Definition at line 341 of file WXEdge.h.

References _Nature, _nNullDotP, _nPosDotP, _pSmoothEdge, _pWXFace, _viewDependant, NULL, and userdata.

◆ WXFaceLayer() [2/2]

Freestyle::WXFaceLayer::WXFaceLayer ( const WXFaceLayer iBrother)
inline

Definition at line 352 of file WXEdge.h.

References _DotP, _Nature, _nNullDotP, _nPosDotP, _pSmoothEdge, _pWXFace, _viewDependant, NULL, and userdata.

◆ ~WXFaceLayer()

virtual Freestyle::WXFaceLayer::~WXFaceLayer ( )
inlinevirtual

Definition at line 367 of file WXEdge.h.

References _DotP, _pSmoothEdge, and NULL.

Member Function Documentation

◆ BuildSmoothEdge()

WXSmoothEdge * Freestyle::WXFaceLayer::BuildSmoothEdge ( )

◆ closestPointIndex()

int Freestyle::WXFaceLayer::closestPointIndex ( ) const
inline

Definition at line 393 of file WXEdge.h.

References _ClosestPointIndex.

◆ dotP()

const float Freestyle::WXFaceLayer::dotP ( int  i) const
inline

◆ Get0VertexIndex()

unsigned int Freestyle::WXFaceLayer::Get0VertexIndex ( ) const

If one of the face layer vertex has a DotP equal to 0, this method returns the vertex where it happens

Definition at line 35 of file WXEdge.cpp.

References _DotP, _pWXFace, and Freestyle::WFace::numberOfEdges().

Referenced by BuildSmoothEdge().

◆ getFace()

WXFace* Freestyle::WXFaceLayer::getFace ( )
inline

◆ getSmoothEdge()

WXSmoothEdge* Freestyle::WXFaceLayer::getSmoothEdge ( )
inline

◆ GetSmoothEdgeIndex()

unsigned int Freestyle::WXFaceLayer::GetSmoothEdgeIndex ( ) const

In case one of the edge of the triangle is a smooth edge, this method allows to retrieve the concerned edge

Definition at line 46 of file WXEdge.cpp.

References _DotP, _pWXFace, and Freestyle::WFace::numberOfEdges().

Referenced by BuildSmoothEdge().

◆ hasSmoothEdge()

bool Freestyle::WXFaceLayer::hasSmoothEdge ( ) const
inline

Definition at line 403 of file WXEdge.h.

References _pSmoothEdge.

◆ isViewDependant()

bool Freestyle::WXFaceLayer::isViewDependant ( ) const
inline

Definition at line 421 of file WXEdge.h.

References _viewDependant.

◆ nature()

WXNature Freestyle::WXFaceLayer::nature ( ) const
inline

◆ nNullDotP()

unsigned Freestyle::WXFaceLayer::nNullDotP ( ) const
inline

Definition at line 388 of file WXEdge.h.

References _nNullDotP.

◆ nPosDotP()

unsigned Freestyle::WXFaceLayer::nPosDotP ( ) const
inline

◆ PushDotP()

void Freestyle::WXFaceLayer::PushDotP ( float  iDotP)
inline

◆ removeSmoothEdge()

void Freestyle::WXFaceLayer::removeSmoothEdge ( )
inline

Definition at line 431 of file WXEdge.h.

References _DotP, _pSmoothEdge, and NULL.

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

◆ ReplaceDotP()

void Freestyle::WXFaceLayer::ReplaceDotP ( unsigned int  index,
float  newDotP 
)
inline

◆ RetrieveCuspEdgesIndices()

void Freestyle::WXFaceLayer::RetrieveCuspEdgesIndices ( vector< int > &  oCuspEdges)

retrieves the edges of the triangle for which the signs are different (a null value is not considered) for the dotp values at each edge extremity

Definition at line 58 of file WXEdge.cpp.

References _DotP, _pWXFace, and Freestyle::WFace::numberOfEdges().

Referenced by BuildSmoothEdge().

◆ setClosestPointIndex()

void Freestyle::WXFaceLayer::setClosestPointIndex ( int  iIndex)
inline

Definition at line 426 of file WXEdge.h.

References _ClosestPointIndex.

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

◆ setDotP()

void Freestyle::WXFaceLayer::setDotP ( const vector< float > &  iDotP)
inline

Definition at line 457 of file WXEdge.h.

References _DotP.

◆ updateDotPInfos()

void Freestyle::WXFaceLayer::updateDotPInfos ( )
inline

Definition at line 479 of file WXEdge.h.

References _DotP, _nNullDotP, and _nPosDotP.

Referenced by ReplaceDotP().

Member Data Documentation

◆ _ClosestPointIndex

unsigned Freestyle::WXFaceLayer::_ClosestPointIndex

Definition at line 338 of file WXEdge.h.

Referenced by BuildSmoothEdge(), closestPointIndex(), and setClosestPointIndex().

◆ _DotP

vector<float> Freestyle::WXFaceLayer::_DotP

◆ _Nature

WXNature Freestyle::WXFaceLayer::_Nature

Definition at line 330 of file WXEdge.h.

Referenced by BuildSmoothEdge(), nature(), and WXFaceLayer().

◆ _nNullDotP

unsigned Freestyle::WXFaceLayer::_nNullDotP

Definition at line 337 of file WXEdge.h.

Referenced by BuildSmoothEdge(), nNullDotP(), PushDotP(), updateDotPInfos(), and WXFaceLayer().

◆ _nPosDotP

unsigned Freestyle::WXFaceLayer::_nPosDotP

Definition at line 335 of file WXEdge.h.

Referenced by BuildSmoothEdge(), nPosDotP(), PushDotP(), updateDotPInfos(), and WXFaceLayer().

◆ _pSmoothEdge

WXSmoothEdge* Freestyle::WXFaceLayer::_pSmoothEdge

◆ _pWXFace

WXFace* Freestyle::WXFaceLayer::_pWXFace

◆ _viewDependant

bool Freestyle::WXFaceLayer::_viewDependant

Definition at line 339 of file WXEdge.h.

Referenced by isViewDependant(), and WXFaceLayer().

◆ userdata

void* Freestyle::WXFaceLayer::userdata

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