Blender V4.3
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
 
uint _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()

◆ ~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()

◆ enableFaceMarks()

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

Definition at line 165 of file FEdgeXDetector.h.

References _changes, _faceMarks, and b.

◆ enableFaceSmoothness()

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

Definition at line 157 of file FEdgeXDetector.h.

References _changes, _faceSmoothness, and b.

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

◆ enableMaterialBoundaries()

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

Definition at line 152 of file FEdgeXDetector.h.

References _computeMaterialBoundaries, and b.

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

◆ enableOrthographicProjection()

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

Definition at line 137 of file FEdgeXDetector.h.

References _orthographicProjection, and b.

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

◆ enableRidgesAndValleysFlag()

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

Definition at line 142 of file FEdgeXDetector.h.

References _computeRidgesAndValleys, and b.

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

◆ enableSuggestiveContours()

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

Definition at line 147 of file FEdgeXDetector.h.

References _computeSuggestiveContours, and b.

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

◆ postProcessSuggestiveContourFace()

◆ postProcessSuggestiveContourShape()

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

◆ preProcessFace()

◆ preProcessShape()

◆ ProcessBorderEdge()

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

◆ processBorderShape()

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

◆ ProcessCreaseEdge()

◆ 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 750 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()

◆ processRidgesAndValleysShape()

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

◆ processShapes()

◆ ProcessSilhouetteEdge()

◆ ProcessSilhouetteFace()

◆ processSilhouetteShape()

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

◆ ProcessSuggestiveContourFace()

◆ processSuggestiveContourShape()

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

Definition at line 568 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 80 of file FEdgeXDetector.h.

References _changes, _creaseAngle, angle(), cos(), and M_PI.

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

◆ setProgressBar()

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

Definition at line 185 of file FEdgeXDetector.h.

References _pProgressBar.

◆ setRenderMonitor()

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

Definition at line 190 of file FEdgeXDetector.h.

References _pRenderMonitor.

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 177 of file FEdgeXDetector.h.

References _changes, and _sphereRadius.

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 112 of file FEdgeXDetector.h.

References _changes, and _kr_derivative_epsilon.

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

◆ setViewpoint()

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

Sets the current viewpoint

Definition at line 132 of file FEdgeXDetector.h.

References _Viewpoint.

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

Member Data Documentation

◆ _changes

bool Freestyle::FEdgeXDetector::_changes
protected

◆ _computeMaterialBoundaries

bool Freestyle::FEdgeXDetector::_computeMaterialBoundaries
protected

Definition at line 214 of file FEdgeXDetector.h.

Referenced by enableMaterialBoundaries(), FEdgeXDetector(), and processShapes().

◆ _computeRidgesAndValleys

bool Freestyle::FEdgeXDetector::_computeRidgesAndValleys
protected

◆ _computeSuggestiveContours

bool Freestyle::FEdgeXDetector::_computeSuggestiveContours
protected

◆ _computeViewIndependent

bool Freestyle::FEdgeXDetector::_computeViewIndependent
protected

◆ _creaseAngle

float Freestyle::FEdgeXDetector::_creaseAngle
protected

Definition at line 218 of file FEdgeXDetector.h.

Referenced by FEdgeXDetector(), ProcessCreaseEdge(), and setCreaseAngle().

◆ _faceMarks

bool Freestyle::FEdgeXDetector::_faceMarks
protected

Definition at line 216 of file FEdgeXDetector.h.

Referenced by enableFaceMarks().

◆ _faceSmoothness

bool Freestyle::FEdgeXDetector::_faceSmoothness
protected

Definition at line 215 of file FEdgeXDetector.h.

Referenced by enableFaceSmoothness(), and FEdgeXDetector().

◆ _kr_derivative_epsilon

float Freestyle::FEdgeXDetector::_kr_derivative_epsilon
protected

◆ _maxK1

real Freestyle::FEdgeXDetector::_maxK1
protected

Definition at line 206 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _maxKr

real Freestyle::FEdgeXDetector::_maxKr
protected

Definition at line 207 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _meanEdgeSize

real Freestyle::FEdgeXDetector::_meanEdgeSize
protected

Definition at line 209 of file FEdgeXDetector.h.

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

◆ _meanK1

real Freestyle::FEdgeXDetector::_meanK1
protected

Definition at line 202 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 204 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _minKr

real Freestyle::FEdgeXDetector::_minKr
protected

Definition at line 205 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _nPoints

uint Freestyle::FEdgeXDetector::_nPoints
protected

Definition at line 208 of file FEdgeXDetector.h.

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

◆ _orthographicProjection

bool Freestyle::FEdgeXDetector::_orthographicProjection
protected

◆ _pProgressBar

ProgressBar* Freestyle::FEdgeXDetector::_pProgressBar
protected

Definition at line 223 of file FEdgeXDetector.h.

Referenced by FEdgeXDetector(), processShapes(), and setProgressBar().

◆ _pRenderMonitor

RenderMonitor* Freestyle::FEdgeXDetector::_pRenderMonitor
protected

Definition at line 224 of file FEdgeXDetector.h.

Referenced by FEdgeXDetector(), processShapes(), and setRenderMonitor().

◆ _sphereRadius

float Freestyle::FEdgeXDetector::_sphereRadius
protected

Definition at line 217 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), FEdgeXDetector(), and setSphereRadius().

◆ _Viewpoint

Vec3f Freestyle::FEdgeXDetector::_Viewpoint
protected

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