h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

ThicknessVariationPatternShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for ThicknessVariationPatternShader:

StrokeShader List of all members.

Detailed Description

[ Thickness Shader ]. Applys a pattern (texture) to vary thickness. The new thicknesses are the result of the multiplication of the pattern and the original thickness

Public Member Functions

 ThicknessVariationPatternShader (const string pattern_name, float iMinThickness=1.f, float iMaxThickness=5.f, bool stretch=true)
virtual ~ThicknessVariationPatternShader ()
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

ThicknessVariationPatternShader const string  pattern_name,
float  iMinThickness = 1.f,
float  iMaxThickness = 5.f,
bool  stretch = true

Builds the shader.

pattern_name The texture file name.
iMinThickness The minimum thickness we don't want to exceed.
iMaxThickness The maximum thickness we don't want to exceed.
stretch Tells whether the pattern texture must be stretched or repeted to fit the stroke.

virtual ~ThicknessVariationPatternShader  )  [inline, virtual]


Member Function Documentation

virtual void shade Stroke stroke  )  const [virtual]

The shading method.

Reimplemented from StrokeShader.

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