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

#include <FEdgeXDetector.h>

Public Member Functions

 FEdgeXDetector ()
 
virtual ~FEdgeXDetector ()
 
virtual void processShapes (WingedEdge &)
 
virtual void preProcessShape (WXShape *iWShape)
 
virtual void preProcessFace (WXFace *iFace)
 
virtual void computeCurvatures (WXVertex *iVertex)
 
virtual void processSilhouetteShape (WXShape *iWShape)
 
virtual void ProcessSilhouetteFace (WXFace *iFace)
 
virtual void ProcessSilhouetteEdge (WXEdge *iEdge)
 
virtual void processCreaseShape (WXShape *iWShape)
 
virtual void ProcessCreaseEdge (WXEdge *iEdge)
 
void setCreaseAngle (float angle)
 
virtual void processBorderShape (WXShape *iWShape)
 
virtual void ProcessBorderEdge (WXEdge *iEdge)
 
virtual void processRidgesAndValleysShape (WXShape *iWShape)
 
virtual void ProcessRidgeFace (WXFace *iFace)
 
virtual void processSuggestiveContourShape (WXShape *iWShape)
 
virtual void ProcessSuggestiveContourFace (WXFace *iFace)
 
virtual void postProcessSuggestiveContourShape (WXShape *iShape)
 
virtual void postProcessSuggestiveContourFace (WXFace *iFace)
 
void setSuggestiveContourKrDerivativeEpsilon (float dkr)
 
virtual void processMaterialBoundaryShape (WXShape *iWShape)
 
virtual void ProcessMaterialBoundaryEdge (WXEdge *iEdge)
 
virtual void processEdgeMarksShape (WXShape *iShape)
 
virtual void ProcessEdgeMarks (WXEdge *iEdge)
 
virtual void buildSmoothEdges (WXShape *iShape)
 
void setViewpoint (const Vec3f &ivp)
 
void enableOrthographicProjection (bool b)
 
void enableRidgesAndValleysFlag (bool b)
 
void enableSuggestiveContours (bool b)
 
void enableMaterialBoundaries (bool b)
 
void enableFaceSmoothness (bool b)
 
void enableFaceMarks (bool b)
 
void setSphereRadius (float r)
 
void setProgressBar (ProgressBar *iProgressBar)
 
void setRenderMonitor (RenderMonitor *iRenderMonitor)
 

Protected Attributes

Vec3f _Viewpoint
 
bool _computeViewIndependent
 
real _meanK1
 
real _meanKr
 
real _minK1
 
real _minKr
 
real _maxK1
 
real _maxKr
 
unsigned _nPoints
 
real _meanEdgeSize
 
bool _orthographicProjection
 
bool _computeRidgesAndValleys
 
bool _computeSuggestiveContours
 
bool _computeMaterialBoundaries
 
bool _faceSmoothness
 
bool _faceMarks
 
float _sphereRadius
 
float _creaseAngle
 
bool _changes
 
float _kr_derivative_epsilon
 
ProgressBar_pProgressBar
 
RenderMonitor_pRenderMonitor
 

Detailed Description

This class takes as input a WXEdge structure and fills it

Definition at line 32 of file FEdgeXDetector.h.

Constructor & Destructor Documentation

◆ FEdgeXDetector()

Freestyle::FEdgeXDetector::FEdgeXDetector ( )
inline

Definition at line 34 of file FEdgeXDetector.h.

References NULL.

◆ ~FEdgeXDetector()

virtual Freestyle::FEdgeXDetector::~FEdgeXDetector ( )
inlinevirtual

Definition at line 54 of file FEdgeXDetector.h.

Member Function Documentation

◆ buildSmoothEdges()

void Freestyle::FEdgeXDetector::buildSmoothEdges ( WXShape iShape)
virtual

◆ computeCurvatures()

void Freestyle::FEdgeXDetector::computeCurvatures ( WXVertex iVertex)
virtual

◆ enableFaceMarks()

void Freestyle::FEdgeXDetector::enableFaceMarks ( bool  b)
inline

Definition at line 167 of file FEdgeXDetector.h.

References usdtokens::b().

◆ enableFaceSmoothness()

void Freestyle::FEdgeXDetector::enableFaceSmoothness ( bool  b)
inline

Definition at line 159 of file FEdgeXDetector.h.

References usdtokens::b().

Referenced by Freestyle::Controller::ComputeViewMap().

◆ enableMaterialBoundaries()

void Freestyle::FEdgeXDetector::enableMaterialBoundaries ( bool  b)
inline

Definition at line 154 of file FEdgeXDetector.h.

References usdtokens::b().

Referenced by Freestyle::Controller::ComputeViewMap().

◆ enableOrthographicProjection()

void Freestyle::FEdgeXDetector::enableOrthographicProjection ( bool  b)
inline

Definition at line 139 of file FEdgeXDetector.h.

References usdtokens::b().

Referenced by Freestyle::Controller::ComputeViewMap().

◆ enableRidgesAndValleysFlag()

void Freestyle::FEdgeXDetector::enableRidgesAndValleysFlag ( bool  b)
inline

Definition at line 144 of file FEdgeXDetector.h.

References usdtokens::b().

Referenced by Freestyle::Controller::ComputeViewMap().

◆ enableSuggestiveContours()

void Freestyle::FEdgeXDetector::enableSuggestiveContours ( bool  b)
inline

Definition at line 149 of file FEdgeXDetector.h.

References usdtokens::b().

Referenced by Freestyle::Controller::ComputeViewMap().

◆ postProcessSuggestiveContourFace()

void Freestyle::FEdgeXDetector::postProcessSuggestiveContourFace ( WXFace iFace)
virtual

◆ postProcessSuggestiveContourShape()

void Freestyle::FEdgeXDetector::postProcessSuggestiveContourShape ( WXShape iShape)
virtual

◆ preProcessFace()

void Freestyle::FEdgeXDetector::preProcessFace ( WXFace iFace)
virtual

◆ preProcessShape()

void Freestyle::FEdgeXDetector::preProcessShape ( WXShape iWShape)
virtual

◆ ProcessBorderEdge()

void Freestyle::FEdgeXDetector::ProcessBorderEdge ( WXEdge iEdge)
virtual

◆ processBorderShape()

void Freestyle::FEdgeXDetector::processBorderShape ( WXShape iWShape)
virtual

◆ ProcessCreaseEdge()

void Freestyle::FEdgeXDetector::ProcessCreaseEdge ( WXEdge iEdge)
virtual

◆ processCreaseShape()

void Freestyle::FEdgeXDetector::processCreaseShape ( WXShape iWShape)
virtual

◆ ProcessEdgeMarks()

void Freestyle::FEdgeXDetector::ProcessEdgeMarks ( WXEdge iEdge)
virtual

◆ processEdgeMarksShape()

void Freestyle::FEdgeXDetector::processEdgeMarksShape ( WXShape iShape)
virtual

Definition at line 736 of file FEdgeXDetector.cpp.

References Freestyle::WShape::getEdgeList(), and ProcessEdgeMarks().

Referenced by processShapes().

◆ ProcessMaterialBoundaryEdge()

void Freestyle::FEdgeXDetector::ProcessMaterialBoundaryEdge ( WXEdge iEdge)
virtual

◆ processMaterialBoundaryShape()

void Freestyle::FEdgeXDetector::processMaterialBoundaryShape ( WXShape iWShape)
virtual

◆ ProcessRidgeFace()

void Freestyle::FEdgeXDetector::ProcessRidgeFace ( WXFace iFace)
virtual

◆ processRidgesAndValleysShape()

void Freestyle::FEdgeXDetector::processRidgesAndValleysShape ( WXShape iWShape)
virtual

◆ processShapes()

void Freestyle::FEdgeXDetector::processShapes ( WingedEdge we)
virtual

◆ ProcessSilhouetteEdge()

void Freestyle::FEdgeXDetector::ProcessSilhouetteEdge ( WXEdge iEdge)
virtual

◆ ProcessSilhouetteFace()

void Freestyle::FEdgeXDetector::ProcessSilhouetteFace ( WXFace iFace)
virtual

◆ processSilhouetteShape()

void Freestyle::FEdgeXDetector::processSilhouetteShape ( WXShape iWShape)
virtual

◆ ProcessSuggestiveContourFace()

void Freestyle::FEdgeXDetector::ProcessSuggestiveContourFace ( WXFace iFace)
virtual

◆ processSuggestiveContourShape()

void Freestyle::FEdgeXDetector::processSuggestiveContourShape ( WXShape iWShape)
virtual

Definition at line 558 of file FEdgeXDetector.cpp.

References Freestyle::WShape::GetFaceList(), and ProcessSuggestiveContourFace().

Referenced by processShapes().

◆ setCreaseAngle()

void Freestyle::FEdgeXDetector::setCreaseAngle ( float  angle)
inline

Sets the minimum angle for detecting crease edges

Parameters
angleThe angular threshold in degrees (between 0 and 180) for detecting crease edges. An edge is considered a crease edge if the angle between two faces sharing the edge is smaller than the given threshold.

Definition at line 82 of file FEdgeXDetector.h.

References angle(), KDL::cos(), and M_PI.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ setProgressBar()

void Freestyle::FEdgeXDetector::setProgressBar ( ProgressBar iProgressBar)
inline

Definition at line 187 of file FEdgeXDetector.h.

◆ setRenderMonitor()

void Freestyle::FEdgeXDetector::setRenderMonitor ( RenderMonitor iRenderMonitor)
inline

Definition at line 192 of file FEdgeXDetector.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ setSphereRadius()

void Freestyle::FEdgeXDetector::setSphereRadius ( float  r)
inline

Sets the radius of the geodesic sphere around each vertex (for the curvature computation)

Parameters
rThe radius of the sphere expressed as a ratio of the mean edge size

Definition at line 179 of file FEdgeXDetector.h.

References r.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ setSuggestiveContourKrDerivativeEpsilon()

void Freestyle::FEdgeXDetector::setSuggestiveContourKrDerivativeEpsilon ( float  dkr)
inline

Sets the minimal derivative of the radial curvature for suggestive contours

Parameters
dkrThe minimal derivative of the radial curvature

Definition at line 114 of file FEdgeXDetector.h.

Referenced by Freestyle::Controller::ComputeViewMap().

◆ setViewpoint()

void Freestyle::FEdgeXDetector::setViewpoint ( const Vec3f ivp)
inline

Sets the current viewpoint

Definition at line 134 of file FEdgeXDetector.h.

Referenced by Freestyle::Controller::ComputeViewMap().

Member Data Documentation

◆ _changes

bool Freestyle::FEdgeXDetector::_changes
protected

Definition at line 221 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _computeMaterialBoundaries

bool Freestyle::FEdgeXDetector::_computeMaterialBoundaries
protected

Definition at line 216 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _computeRidgesAndValleys

bool Freestyle::FEdgeXDetector::_computeRidgesAndValleys
protected

Definition at line 214 of file FEdgeXDetector.h.

Referenced by buildSmoothEdges(), preProcessShape(), and processShapes().

◆ _computeSuggestiveContours

bool Freestyle::FEdgeXDetector::_computeSuggestiveContours
protected

Definition at line 215 of file FEdgeXDetector.h.

Referenced by buildSmoothEdges(), preProcessShape(), and processShapes().

◆ _computeViewIndependent

bool Freestyle::FEdgeXDetector::_computeViewIndependent
protected

◆ _creaseAngle

float Freestyle::FEdgeXDetector::_creaseAngle
protected

Definition at line 220 of file FEdgeXDetector.h.

Referenced by ProcessCreaseEdge().

◆ _faceMarks

bool Freestyle::FEdgeXDetector::_faceMarks
protected

Definition at line 218 of file FEdgeXDetector.h.

◆ _faceSmoothness

bool Freestyle::FEdgeXDetector::_faceSmoothness
protected

Definition at line 217 of file FEdgeXDetector.h.

◆ _kr_derivative_epsilon

float Freestyle::FEdgeXDetector::_kr_derivative_epsilon
protected

Definition at line 223 of file FEdgeXDetector.h.

Referenced by postProcessSuggestiveContourFace().

◆ _maxK1

real Freestyle::FEdgeXDetector::_maxK1
protected

Definition at line 208 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _maxKr

real Freestyle::FEdgeXDetector::_maxKr
protected

Definition at line 209 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _meanEdgeSize

real Freestyle::FEdgeXDetector::_meanEdgeSize
protected

Definition at line 211 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _meanK1

real Freestyle::FEdgeXDetector::_meanK1
protected

Definition at line 204 of file FEdgeXDetector.h.

Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().

◆ _meanKr

real Freestyle::FEdgeXDetector::_meanKr
protected

◆ _minK1

real Freestyle::FEdgeXDetector::_minK1
protected

Definition at line 206 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _minKr

real Freestyle::FEdgeXDetector::_minKr
protected

Definition at line 207 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _nPoints

unsigned Freestyle::FEdgeXDetector::_nPoints
protected

Definition at line 210 of file FEdgeXDetector.h.

Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().

◆ _orthographicProjection

bool Freestyle::FEdgeXDetector::_orthographicProjection
protected

Definition at line 212 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), preProcessFace(), and ProcessSilhouetteFace().

◆ _pProgressBar

ProgressBar* Freestyle::FEdgeXDetector::_pProgressBar
protected

Definition at line 225 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _pRenderMonitor

RenderMonitor* Freestyle::FEdgeXDetector::_pRenderMonitor
protected

Definition at line 226 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _sphereRadius

float Freestyle::FEdgeXDetector::_sphereRadius
protected

Definition at line 219 of file FEdgeXDetector.h.

Referenced by computeCurvatures().

◆ _Viewpoint

Vec3f Freestyle::FEdgeXDetector::_Viewpoint
protected

Definition at line 198 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), preProcessFace(), and ProcessSilhouetteFace().


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