|
Blender
V2.93
|
#include <StrokeShader.h>
Inherited by Freestyle::CalligraphicShader, Freestyle::OmissionShader, Freestyle::SmoothingShader, Freestyle::SpatialNoiseShader, Freestyle::StrokeShaders::BackboneStretcherShader, Freestyle::StrokeShaders::BezierCurveShader, Freestyle::StrokeShaders::BlenderTextureShader, Freestyle::StrokeShaders::ColorNoiseShader, Freestyle::StrokeShaders::ConstantColorShader, Freestyle::StrokeShaders::ConstantExternThicknessShader, Freestyle::StrokeShaders::ConstantThicknessShader, Freestyle::StrokeShaders::ConstrainedIncreasingThicknessShader, Freestyle::StrokeShaders::ExternalContourStretcherShader, Freestyle::StrokeShaders::GuidingLinesShader, Freestyle::StrokeShaders::IncreasingColorShader, Freestyle::StrokeShaders::IncreasingThicknessShader, Freestyle::StrokeShaders::LengthDependingThicknessShader, Freestyle::StrokeShaders::MaterialColorShader, Freestyle::StrokeShaders::PolygonalizationShader, Freestyle::StrokeShaders::SamplingShader, Freestyle::StrokeShaders::StrokeTextureStepShader, Freestyle::StrokeShaders::ThicknessNoiseShader, and Freestyle::StrokeShaders::TipRemoverShader.
Public Member Functions | |
| StrokeShader () | |
| virtual | ~StrokeShader () |
| virtual string | getName () const |
| virtual int | shade (Stroke &ioStroke) const |
Public Attributes | |
| void * | py_ss |
Base class for Stroke Shaders. Any Stroke Shader must inherit from this class and overload the shade() method. A StrokeShader is designed to modify any Stroke's attribute such as Thickness, Color, Geometry, Texture, Blending mode... The basic way to achieve this operation consists in iterating over the StrokeVertices of the Stroke and to modify each one's StrokeAttribute. Here is a python code example of such an iteration:
Here is a C++ code example of such an iteration:
Definition at line 64 of file StrokeShader.h.
|
inline |
Default constructor.
Definition at line 69 of file StrokeShader.h.
|
inlinevirtual |
Destructor.
Definition at line 75 of file StrokeShader.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented in Freestyle::StrokeShaders::StrokeTextureStepShader, Freestyle::StrokeShaders::BlenderTextureShader, Freestyle::StrokeShaders::TipRemoverShader, Freestyle::StrokeShaders::GuidingLinesShader, Freestyle::StrokeShaders::PolygonalizationShader, Freestyle::StrokeShaders::BezierCurveShader, Freestyle::StrokeShaders::ExternalContourStretcherShader, Freestyle::StrokeShaders::SamplingShader, Freestyle::StrokeShaders::BackboneStretcherShader, Freestyle::StrokeShaders::ColorNoiseShader, Freestyle::StrokeShaders::MaterialColorShader, Freestyle::StrokeShaders::IncreasingColorShader, Freestyle::StrokeShaders::ConstantColorShader, Freestyle::StrokeShaders::ThicknessNoiseShader, Freestyle::StrokeShaders::LengthDependingThicknessShader, Freestyle::StrokeShaders::ConstrainedIncreasingThicknessShader, Freestyle::StrokeShaders::IncreasingThicknessShader, Freestyle::StrokeShaders::ConstantExternThicknessShader, and Freestyle::StrokeShaders::ConstantThicknessShader.
Definition at line 80 of file StrokeShader.h.
|
virtual |
The shading method. This method must be overloaded by inherited classes.
| ioStroke | The 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 in Freestyle::StrokeShaders::StrokeTextureStepShader, Freestyle::StrokeShaders::BlenderTextureShader, Freestyle::StrokeShaders::TipRemoverShader, Freestyle::StrokeShaders::GuidingLinesShader, Freestyle::StrokeShaders::PolygonalizationShader, Freestyle::StrokeShaders::BezierCurveShader, Freestyle::StrokeShaders::ExternalContourStretcherShader, Freestyle::StrokeShaders::SamplingShader, Freestyle::StrokeShaders::BackboneStretcherShader, Freestyle::StrokeShaders::ColorNoiseShader, Freestyle::StrokeShaders::MaterialColorShader, Freestyle::StrokeShaders::IncreasingColorShader, Freestyle::StrokeShaders::ConstantColorShader, Freestyle::StrokeShaders::ThicknessNoiseShader, Freestyle::StrokeShaders::LengthDependingThicknessShader, Freestyle::StrokeShaders::ConstrainedIncreasingThicknessShader, Freestyle::StrokeShaders::IncreasingThicknessShader, Freestyle::StrokeShaders::ConstantExternThicknessShader, Freestyle::StrokeShaders::ConstantThicknessShader, Freestyle::OmissionShader, Freestyle::SmoothingShader, Freestyle::SpatialNoiseShader, and Freestyle::CalligraphicShader.
Definition at line 27 of file StrokeShader.cpp.
References Director_BPy_StrokeShader_shade().
| void* Freestyle::StrokeShader::py_ss |
Definition at line 66 of file StrokeShader.h.
Referenced by Director_BPy_StrokeShader_shade().