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 |
#include <Stroke.h>
Public Member Functions | |
StrokeAttribute () | |
StrokeAttribute (const StrokeAttribute &iBrother) | |
StrokeAttribute (float iRColor, float iGColor, float iBColor, float iAlpha, float iRThickness, float iLThickness) | |
StrokeAttribute (const StrokeAttribute &a1, const StrokeAttribute &a2, float t) | |
virtual | ~StrokeAttribute () |
StrokeAttribute & | operator= (const StrokeAttribute &iBrother) |
const float * | getColor () const |
const float | getColorR () const |
const float | getColorG () const |
const float | getColorB () const |
Vec3f | getColorRGB () const |
float | getAlpha () const |
const float * | getThickness () const |
const float | getThicknessR () const |
const float | getThicknessL () const |
Vec2f | getThicknessRL () const |
bool | isVisible () const |
float | getAttributeReal (const char *iName) const |
Vec2f | getAttributeVec2f (const char *iName) const |
Vec3f | getAttributeVec3f (const char *iName) const |
bool | isAttributeAvailableReal (const char *iName) const |
bool | isAttributeAvailableVec2f (const char *iName) const |
bool | isAttributeAvailableVec3f (const char *iName) const |
void | setColor (float r, float g, float b) |
void | setColor (const Vec3f &iRGB) |
void | setAlpha (float alpha) |
void | setThickness (float tr, float tl) |
void | setThickness (const Vec2f &tRL) |
void | SetVisible (bool iVisible) |
void | setAttributeReal (const char *iName, float att) |
void | setAttributeVec2f (const char *iName, const Vec2f &att) |
void | setAttributeVec3f (const char *iName, const Vec3f &att) |
|
default constructor |
|
Copy constructor |
|
Builds a stroke vertex attribute from a set of parameters.
|
|
Interpolation constructor. Builds a StrokeAttribute from two StrokeAttributes and an interpolation parameter.
|
|
destructor |
|
Returns the alpha color component. |
|
Returns an attribute of type real
|
|
Returns an attribute of type Vec2f
|
|
Returns an attribute of type Vec3f
|
|
Returns the attribute's color.
|
|
Returns the B color component. |
|
Returns the G color component. |
|
Returns the R color component. |
|
Returns the RGB color components. |
|
Returns the attribute's thickness.
|
|
Returns the thickness on the left of the vertex when following the stroke. |
|
Returns the thickness on the right of the vertex when following the stroke. |
|
Returns the thickness on the right and on the left of the vertex when following the stroke. |
|
Checks whether the attribute iName is availbale |
|
Checks whether the attribute iName is availbale |
|
Checks whether the attribute iName is availbale |
|
Returns true if the strokevertex is visible, false otherwise |
|
operator = |
|
Sets the attribute's alpha value.
|
|
Adds a user defined attribute of type real If there is no attribute of name iName, it is added. Otherwise, the new value replaces the old one.
|
|
Adds a user defined attribute of type Vec2f If there is no attribute of name iName, it is added. Otherwise, the new value replaces the old one.
|
|
Adds a user defined attribute of type Vec3f If there is no attribute of name iName, it is added. Otherwise, the new value replaces the old one.
|
|
Sets the attribute's color.
|
|
Sets the attribute's color.
|
|
Sets the attribute's thickness.
|
|
Sets the attribute's thickness.
|
|
Sets the visible flag. True means visible. |