Blender V4.3
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
 
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 306 of file WXEdge.h.

Constructor & Destructor Documentation

◆ WXFaceLayer() [1/2]

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

Definition at line 325 of file WXEdge.h.

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

◆ WXFaceLayer() [2/2]

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

Definition at line 336 of file WXEdge.h.

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

◆ ~WXFaceLayer()

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

Definition at line 351 of file WXEdge.h.

References _DotP, and _pSmoothEdge.

Member Function Documentation

◆ BuildSmoothEdge()

◆ closestPointIndex()

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

Definition at line 377 of file WXEdge.h.

References _ClosestPointIndex.

◆ dotP()

const 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 26 of file WXEdge.cpp.

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

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

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

Referenced by BuildSmoothEdge().

◆ hasSmoothEdge()

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

Definition at line 387 of file WXEdge.h.

References _pSmoothEdge.

◆ isViewDependant()

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

Definition at line 405 of file WXEdge.h.

References _viewDependant.

◆ nature()

◆ nNullDotP()

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

Definition at line 372 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 415 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 49 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 410 of file WXEdge.h.

References _ClosestPointIndex.

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

◆ setDotP()

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

Definition at line 441 of file WXEdge.h.

References _DotP.

◆ updateDotPInfos()

void Freestyle::WXFaceLayer::updateDotPInfos ( )
inline

Definition at line 463 of file WXEdge.h.

References _DotP, _nNullDotP, and _nPosDotP.

Referenced by ReplaceDotP().

Member Data Documentation

◆ _ClosestPointIndex

uint Freestyle::WXFaceLayer::_ClosestPointIndex

Definition at line 322 of file WXEdge.h.

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

◆ _DotP

◆ _Nature

WXNature Freestyle::WXFaceLayer::_Nature

Definition at line 314 of file WXEdge.h.

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

◆ _nNullDotP

uint Freestyle::WXFaceLayer::_nNullDotP

◆ _nPosDotP

uint Freestyle::WXFaceLayer::_nPosDotP

Definition at line 319 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 323 of file WXEdge.h.

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

◆ userdata


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