Blender  V2.93
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 46 of file FEdgeXDetector.h.

Constructor & Destructor Documentation

◆ FEdgeXDetector()

Freestyle::FEdgeXDetector::FEdgeXDetector ( )
inline

Definition at line 48 of file FEdgeXDetector.h.

References NULL.

◆ ~FEdgeXDetector()

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

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

◆ enableFaceSmoothness()

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

Definition at line 173 of file FEdgeXDetector.h.

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

◆ enableMaterialBoundaries()

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

Definition at line 168 of file FEdgeXDetector.h.

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

◆ enableOrthographicProjection()

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

Definition at line 153 of file FEdgeXDetector.h.

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

◆ enableRidgesAndValleysFlag()

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

Definition at line 158 of file FEdgeXDetector.h.

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

◆ enableSuggestiveContours()

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

Definition at line 163 of file FEdgeXDetector.h.

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

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 572 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 96 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 201 of file FEdgeXDetector.h.

◆ setRenderMonitor()

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

Definition at line 206 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 193 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 128 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 148 of file FEdgeXDetector.h.

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

Member Data Documentation

◆ _changes

bool Freestyle::FEdgeXDetector::_changes
protected

Definition at line 235 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _computeMaterialBoundaries

bool Freestyle::FEdgeXDetector::_computeMaterialBoundaries
protected

Definition at line 230 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _computeRidgesAndValleys

bool Freestyle::FEdgeXDetector::_computeRidgesAndValleys
protected

Definition at line 228 of file FEdgeXDetector.h.

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

◆ _computeSuggestiveContours

bool Freestyle::FEdgeXDetector::_computeSuggestiveContours
protected

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

Referenced by ProcessCreaseEdge().

◆ _faceMarks

bool Freestyle::FEdgeXDetector::_faceMarks
protected

Definition at line 232 of file FEdgeXDetector.h.

◆ _faceSmoothness

bool Freestyle::FEdgeXDetector::_faceSmoothness
protected

Definition at line 231 of file FEdgeXDetector.h.

◆ _kr_derivative_epsilon

float Freestyle::FEdgeXDetector::_kr_derivative_epsilon
protected

Definition at line 237 of file FEdgeXDetector.h.

Referenced by postProcessSuggestiveContourFace().

◆ _maxK1

real Freestyle::FEdgeXDetector::_maxK1
protected

Definition at line 222 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _maxKr

real Freestyle::FEdgeXDetector::_maxKr
protected

Definition at line 223 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _meanEdgeSize

real Freestyle::FEdgeXDetector::_meanEdgeSize
protected

Definition at line 225 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _meanK1

real Freestyle::FEdgeXDetector::_meanK1
protected

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

Referenced by computeCurvatures(), and preProcessShape().

◆ _minKr

real Freestyle::FEdgeXDetector::_minKr
protected

Definition at line 221 of file FEdgeXDetector.h.

Referenced by computeCurvatures(), and preProcessShape().

◆ _nPoints

unsigned Freestyle::FEdgeXDetector::_nPoints
protected

Definition at line 224 of file FEdgeXDetector.h.

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

◆ _orthographicProjection

bool Freestyle::FEdgeXDetector::_orthographicProjection
protected

Definition at line 226 of file FEdgeXDetector.h.

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

◆ _pProgressBar

ProgressBar* Freestyle::FEdgeXDetector::_pProgressBar
protected

Definition at line 239 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _pRenderMonitor

RenderMonitor* Freestyle::FEdgeXDetector::_pRenderMonitor
protected

Definition at line 240 of file FEdgeXDetector.h.

Referenced by processShapes().

◆ _sphereRadius

float Freestyle::FEdgeXDetector::_sphereRadius
protected

Definition at line 233 of file FEdgeXDetector.h.

Referenced by computeCurvatures().

◆ _Viewpoint

Vec3f Freestyle::FEdgeXDetector::_Viewpoint
protected

Definition at line 212 of file FEdgeXDetector.h.

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


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