Blender V4.3
Freestyle::CalligraphicShader Class Reference

#include <AdvancedStrokeShaders.h>

Inherits Freestyle::StrokeShader.

Public Member Functions

 CalligraphicShader (real iMinThickness, real iMaxThickness, const Vec2f &iOrientation, bool clamp)
 
virtual ~CalligraphicShader ()
 
virtual int shade (Stroke &ioStroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 
virtual string getName () const
 

Protected Attributes

real _maxThickness
 
real _minThickness
 
Vec2f _orientation
 
bool _clamp
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
void * py_ss
 

Detailed Description

[ Thickness Shader ]. Assigns thicknesses to the stroke vertices so that the stroke looks like made with a calligraphic tool. i.e. The stroke will be the thickest in a main direction, the thinnest in the direction perpendicular to this one, and an interpolation in between.

Definition at line 21 of file AdvancedStrokeShaders.h.

Constructor & Destructor Documentation

◆ CalligraphicShader()

Freestyle::CalligraphicShader::CalligraphicShader ( real iMinThickness,
real iMaxThickness,
const Vec2f & iOrientation,
bool clamp )

Builds the shader.

Parameters
iMinThicknessThe minimum thickness in the direction perpendicular to the main direction.
iMaxThicknessThe maximum thickness in the main direction.
iOrientationThe 2D vector giving the main direction.
clampTells ???

Definition at line 26 of file AdvancedStrokeShaders.cpp.

References _clamp, _maxThickness, _minThickness, _orientation, clamp(), and Freestyle::VecMat::Vec< T, N >::normalize().

◆ ~CalligraphicShader()

virtual Freestyle::CalligraphicShader::~CalligraphicShader ( )
inlinevirtual

Destructor.

Definition at line 39 of file AdvancedStrokeShaders.h.

Member Function Documentation

◆ shade()

Member Data Documentation

◆ _clamp

bool Freestyle::CalligraphicShader::_clamp
protected

Definition at line 48 of file AdvancedStrokeShaders.h.

Referenced by CalligraphicShader(), and shade().

◆ _maxThickness

real Freestyle::CalligraphicShader::_maxThickness
protected

Definition at line 45 of file AdvancedStrokeShaders.h.

Referenced by CalligraphicShader(), and shade().

◆ _minThickness

real Freestyle::CalligraphicShader::_minThickness
protected

Definition at line 46 of file AdvancedStrokeShaders.h.

Referenced by CalligraphicShader(), and shade().

◆ _orientation

Vec2f Freestyle::CalligraphicShader::_orientation
protected

Definition at line 47 of file AdvancedStrokeShaders.h.

Referenced by CalligraphicShader(), and shade().


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