|
Blender V4.3
|
#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) |
Class to define an attribute associated to a Stroke Vertex. This attribute stores the color, alpha and thickness values for a Stroke Vertex.
| Freestyle::StrokeAttribute::StrokeAttribute | ( | ) |
default constructor
Definition at line 28 of file Stroke.cpp.
| Freestyle::StrokeAttribute::StrokeAttribute | ( | const StrokeAttribute & | iBrother | ) |
Copy constructor
Definition at line 44 of file Stroke.cpp.
| Freestyle::StrokeAttribute::StrokeAttribute | ( | float | iRColor, |
| float | iGColor, | ||
| float | iBColor, | ||
| float | iAlpha, | ||
| float | iRThickness, | ||
| float | iLThickness ) |
Builds a stroke vertex attribute from a set of parameters.
| iRColor | The Red Component value. |
| iGColor | The Green Component value. |
| iBColor | The Blue Component value. |
| iAlpha | The transparency value |
| iRThickness | The thickness of the stroke on the right |
| iLThickness | The Thickness of the stroke on the left |
Definition at line 73 of file Stroke.cpp.
| Freestyle::StrokeAttribute::StrokeAttribute | ( | const StrokeAttribute & | a1, |
| const StrokeAttribute & | a2, | ||
| float | t ) |
Interpolation constructor. Builds a StrokeAttribute from two StrokeAttributes and an interpolation parameter.
| a1 | The first Attribute. |
| a2 | The second parameter. |
| t | The interpolation parameter. |
Definition at line 96 of file Stroke.cpp.
References isVisible().
|
virtual |
destructor
Definition at line 152 of file Stroke.cpp.
|
inline |
Returns the alpha color component.
Definition at line 127 of file Stroke.h.
Referenced by Freestyle::Strip::computeTexCoordWithTips(), Freestyle::operator<<(), and Freestyle::Strip::setVertexColor().
| float Freestyle::StrokeAttribute::getAttributeReal | ( | const char * | iName | ) | const |
Returns an attribute of type real
| iName | The name of the attribute |
Definition at line 208 of file Stroke.cpp.
References G, and G_DEBUG_FREESTYLE.
| Vec2f Freestyle::StrokeAttribute::getAttributeVec2f | ( | const char * | iName | ) | const |
Returns an attribute of type Vec2f
| iName | The name of the attribute |
Definition at line 227 of file Stroke.cpp.
References G, and G_DEBUG_FREESTYLE.
Referenced by Freestyle::Strip::createStrip().
| Vec3f Freestyle::StrokeAttribute::getAttributeVec3f | ( | const char * | iName | ) | const |
Returns an attribute of type Vec3f
| iName | The name of the attribute |
Definition at line 246 of file Stroke.cpp.
References G, and G_DEBUG_FREESTYLE.
|
inline |
Returns the attribute's color.
Definition at line 97 of file Stroke.h.
Referenced by Freestyle::Strip::setVertexColor().
|
inline |
Returns the B color component.
Definition at line 115 of file Stroke.h.
Referenced by Freestyle::operator<<(), and Freestyle::TextStrokeRenderer::RenderStrokeRepBasic().
|
inline |
Returns the G color component.
Definition at line 109 of file Stroke.h.
Referenced by Freestyle::operator<<(), and Freestyle::TextStrokeRenderer::RenderStrokeRepBasic().
|
inline |
Returns the R color component.
Definition at line 103 of file Stroke.h.
Referenced by Freestyle::operator<<(), and Freestyle::TextStrokeRenderer::RenderStrokeRepBasic().
|
inline |
Returns the RGB color components.
Definition at line 121 of file Stroke.h.
Referenced by Freestyle::Strip::computeTexCoordWithTips(), and Freestyle::Strip::setVertexColor().
|
inline |
Returns the attribute's thickness.
Definition at line 136 of file Stroke.h.
Referenced by Freestyle::Strip::createStrip().
|
inline |
Returns the thickness on the left of the vertex when following the stroke.
Definition at line 148 of file Stroke.h.
Referenced by Freestyle::operator<<(), Freestyle::TextStrokeRenderer::RenderStrokeRepBasic(), and Freestyle::Stroke::ScaleThickness().
|
inline |
Returns the thickness on the right of the vertex when following the stroke.
Definition at line 142 of file Stroke.h.
Referenced by Freestyle::operator<<(), Freestyle::TextStrokeRenderer::RenderStrokeRepBasic(), and Freestyle::Stroke::ScaleThickness().
|
inline |
| bool Freestyle::StrokeAttribute::isAttributeAvailableReal | ( | const char * | iName | ) | const |
Checks whether the attribute iName is available
Definition at line 265 of file Stroke.cpp.
| bool Freestyle::StrokeAttribute::isAttributeAvailableVec2f | ( | const char * | iName | ) | const |
Checks whether the attribute iName is available
Definition at line 277 of file Stroke.cpp.
Referenced by Freestyle::Strip::createStrip().
| bool Freestyle::StrokeAttribute::isAttributeAvailableVec3f | ( | const char * | iName | ) | const |
Checks whether the attribute iName is available
Definition at line 289 of file Stroke.cpp.
|
inline |
Returns true if the strokevertex is visible, false otherwise
Definition at line 161 of file Stroke.h.
Referenced by Freestyle::operator<<(), and StrokeAttribute().
| StrokeAttribute & Freestyle::StrokeAttribute::operator= | ( | const StrokeAttribute & | iBrother | ) |
operator =
Definition at line 168 of file Stroke.cpp.
|
inline |
sets the attribute's alpha value.
| alpha | The new alpha value. |
Definition at line 224 of file Stroke.h.
Referenced by Freestyle::StrokeShaders::MaterialColorShader::shade().
| void Freestyle::StrokeAttribute::setAttributeReal | ( | const char * | iName, |
| float | att ) |
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.
| iName | The name of the attribute |
| att | The attribute's value |
Definition at line 301 of file Stroke.cpp.
| void Freestyle::StrokeAttribute::setAttributeVec2f | ( | const char * | iName, |
| const Vec2f & | att ) |
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.
| iName | The name of the attribute |
| att | The attribute's value |
Definition at line 309 of file Stroke.cpp.
| void Freestyle::StrokeAttribute::setAttributeVec3f | ( | const char * | iName, |
| const Vec3f & | att ) |
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.
| iName | The name of the attribute |
| att | The attribute's value |
Definition at line 317 of file Stroke.cpp.
|
inline |
sets the attribute's color.
| r | The new R value. |
| g | The new G value. |
| b | The new B value. |
Definition at line 202 of file Stroke.h.
References b.
Referenced by Freestyle::CalligraphicShader::shade(), and Freestyle::StrokeShaders::MaterialColorShader::shade().
|
inline |
sets the attribute's thickness.
| tr | The thickness on the right of the vertex when following the stroke. |
| tl | The thickness on the left of the vertex when following the stroke. |
Definition at line 235 of file Stroke.h.
Referenced by Freestyle::Stroke::ScaleThickness(), and Freestyle::CalligraphicShader::shade().
|
inline |