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

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::SamplingShader:
Freestyle::StrokeShader

Public Member Functions

 SamplingShader (float sampling)
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
voidpy_ss
 

Detailed Description

[ Geometry Shader. ] Resamples the stroke.

See also
Stroke::Resample(float).

Definition at line 418 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ SamplingShader()

Freestyle::StrokeShaders::SamplingShader::SamplingShader ( float  sampling)
inline

Builds the shader.

Parameters
samplingThe sampling to use for the stroke resampling

Definition at line 427 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

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

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 432 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::SamplingShader::shade ( Stroke stroke) const
virtual

The shading method

Reimplemented from Freestyle::StrokeShader.

Definition at line 335 of file BasicStrokeShaders.cpp.

References Freestyle::Stroke::Resample(), and Freestyle::Stroke::UpdateLength().


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