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

CalligraphicShader Class Reference

#include <AdvancedStrokeShaders.h>

Inheritance diagram for CalligraphicShader:

StrokeShader List of all members.

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 thinest in the direction perpendicular to this one, and an interpolation inbetween.

Public Member Functions

 CalligraphicShader (real iMinThickness, real iMaxThickness, const Vec2f &iOrientation, bool clamp)
virtual ~CalligraphicShader ()
virtual void shade (Stroke &ioStroke) const

Constructor & Destructor Documentation

CalligraphicShader real  iMinThickness,
real  iMaxThickness,
const Vec2f &  iOrientation,
bool  clamp

Builds the shader.

iMinThickness The minimum thickness in the direction perpandicular to the main direction.
iMaxThickness The maximum thickness in the main direction.
iOrientation The 2D vector giving the main direction.
clamp Tells ???

virtual ~CalligraphicShader  )  [inline, virtual]


Member Function Documentation

virtual void shade Stroke ioStroke  )  const [virtual]

The shading method

Reimplemented from StrokeShader.

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