Blender V5.0
Freestyle::WXFaceLayer Class Reference

#include <WXEdge.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 298 of file WXEdge.h.

Constructor & Destructor Documentation

◆ WXFaceLayer() [1/2]

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

Definition at line 317 of file WXEdge.h.

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

Referenced by WXFaceLayer().

◆ WXFaceLayer() [2/2]

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

◆ ~WXFaceLayer()

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

Definition at line 343 of file WXEdge.h.

References _DotP, and _pSmoothEdge.

Member Function Documentation

◆ BuildSmoothEdge()

◆ closestPointIndex()

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

Definition at line 369 of file WXEdge.h.

References _ClosestPointIndex.

◆ dotP()

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

◆ Get0VertexIndex()

uint 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 27 of file WXEdge.cpp.

References _DotP, _pWXFace, and i.

Referenced by BuildSmoothEdge().

◆ getFace()

◆ getSmoothEdge()

◆ GetSmoothEdgeIndex()

uint 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 38 of file WXEdge.cpp.

References _DotP, _pWXFace, and i.

Referenced by BuildSmoothEdge().

◆ hasSmoothEdge()

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

Definition at line 379 of file WXEdge.h.

References _pSmoothEdge.

◆ isViewDependant()

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

Definition at line 397 of file WXEdge.h.

References _viewDependant.

◆ nature()

◆ nNullDotP()

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

Definition at line 364 of file WXEdge.h.

References _nNullDotP.

◆ nPosDotP()

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

◆ PushDotP()

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

◆ removeSmoothEdge()

void Freestyle::WXFaceLayer::removeSmoothEdge ( )
inline

Definition at line 407 of file WXEdge.h.

References _DotP, and _pSmoothEdge.

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

◆ ReplaceDotP()

void Freestyle::WXFaceLayer::ReplaceDotP ( uint 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 50 of file WXEdge.cpp.

References _DotP, _pWXFace, and i.

Referenced by BuildSmoothEdge().

◆ setClosestPointIndex()

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

Definition at line 402 of file WXEdge.h.

References _ClosestPointIndex.

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

◆ setDotP()

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

Definition at line 433 of file WXEdge.h.

References _DotP.

◆ updateDotPInfos()

void Freestyle::WXFaceLayer::updateDotPInfos ( )
inline

Definition at line 455 of file WXEdge.h.

References _DotP, _nNullDotP, and _nPosDotP.

Referenced by ReplaceDotP().

Member Data Documentation

◆ _ClosestPointIndex

uint Freestyle::WXFaceLayer::_ClosestPointIndex

Definition at line 314 of file WXEdge.h.

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

◆ _DotP

◆ _Nature

WXNature Freestyle::WXFaceLayer::_Nature

Definition at line 306 of file WXEdge.h.

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

◆ _nNullDotP

uint Freestyle::WXFaceLayer::_nNullDotP

◆ _nPosDotP

uint Freestyle::WXFaceLayer::_nPosDotP

Definition at line 311 of file WXEdge.h.

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

◆ _pSmoothEdge

WXSmoothEdge* Freestyle::WXFaceLayer::_pSmoothEdge

◆ _pWXFace

WXFace* Freestyle::WXFaceLayer::_pWXFace

◆ _viewDependant

bool Freestyle::WXFaceLayer::_viewDependant

Definition at line 315 of file WXEdge.h.

Referenced by isViewDependant(), WXFaceLayer(), and WXFaceLayer().

◆ userdata


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