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

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::TipRemoverShader:
Freestyle::StrokeShader

Public Member Functions

 TipRemoverShader (real tipLength)
 
virtual ~TipRemoverShader ()
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Protected Attributes

real _tipLength
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
voidpy_ss
 

Detailed Description

[ Geometry Shader ]. Removes the stroke's extremities.

Definition at line 554 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ TipRemoverShader()

Freestyle::StrokeShaders::TipRemoverShader::TipRemoverShader ( real  tipLength)

Builds the shader.

Parameters
tipLengthThe length of the piece of stroke we want to remove at each extremity.

Definition at line 633 of file BasicStrokeShaders.cpp.

References _tipLength.

◆ ~TipRemoverShader()

virtual Freestyle::StrokeShaders::TipRemoverShader::~TipRemoverShader ( )
inlinevirtual

Destructor.

Definition at line 563 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::StrokeShaders::TipRemoverShader::getName ( ) const
inlinevirtual

The shading method

Reimplemented from Freestyle::StrokeShader.

Definition at line 568 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::TipRemoverShader::shade ( Stroke ioStroke) const
virtual

The shading method. This method must be overloaded by inherited classes.

Parameters
ioStrokeThe stroke we wish to shade. this Stroke is modified by the Shader (which typically modifies the Stroke's attribute's values such as Color, Thickness, Geometry...)

Reimplemented from Freestyle::StrokeShader.

Definition at line 638 of file BasicStrokeShaders.cpp.

References _tipLength, Freestyle::a, Freestyle::Stroke::RemoveVertex(), Freestyle::Stroke::Resample(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), and v.

Member Data Documentation

◆ _tipLength

real Freestyle::StrokeShaders::TipRemoverShader::_tipLength
protected

Definition at line 576 of file BasicStrokeShaders.h.

Referenced by shade(), and TipRemoverShader().


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