Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-22 01:24:37 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-22 01:24:37 +0400
commit7426a3e35bb6ebc5c08eb307c0f9d30ef51ae570 (patch)
tree20ca168e42005a447ce4a89f37b3a238a92942cb /source/blender/freestyle/intern/stroke/Stroke.h
parentab722884d3684808b17f76ae742ef59dccf4f8e2 (diff)
Added StrokeAttribute class. Beginning of StrokeVertex.
IMPORTANT: The setters functions' names were normalized due to constant confusion regarding capitalization. All the function names start with set... instead of Set.... This convention was changed all throughout Freestyle. To use Freestyle as an external renderer, the SWIG library MUST be regenerated.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Stroke.h')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/Stroke.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h
index a5cf51f8224..8e4e5e24a2c 100755
--- a/source/blender/freestyle/intern/stroke/Stroke.h
+++ b/source/blender/freestyle/intern/stroke/Stroke.h
@@ -152,7 +152,7 @@ public:
bool isAttributeAvailableVec3f(const char *iName) const ;
/* modifiers */
- /*! Sets the attribute's color.
+ /*! sets the attribute's color.
* \param r
* The new R value.
* \param g
@@ -161,31 +161,31 @@ public:
* The new B value.
*/
inline void setColor(float r, float g, float b) { _color[0]=r; _color[1]=g; _color[2]=b; }
- /*! Sets the attribute's color.
+ /*! sets the attribute's color.
* \param iRGB
* The new RGB values.
*/
inline void setColor(const Vec3f& iRGB) { _color[0]=iRGB[0]; _color[1]=iRGB[1]; _color[2]=iRGB[2]; }
- /*! Sets the attribute's alpha value.
+ /*! sets the attribute's alpha value.
* \param alpha
* The new alpha value.
*/
inline void setAlpha(float alpha) { _alpha = alpha; }
- /*! Sets the attribute's thickness.
+ /*! sets the attribute's thickness.
* \param tr
* The thickness on the right of the vertex when following the stroke.
* \param tl
* The thickness on the left of the vertex when following the stroke.
*/
inline void setThickness(float tr, float tl) { _thickness[0]=tr; _thickness[1]=tl; }
- /*! Sets the attribute's thickness.
+ /*! sets the attribute's thickness.
* \param tRL
* The thickness on the right and on the left of the vertex when following the stroke.
*/
inline void setThickness(const Vec2f& tRL) { _thickness[0]=tRL[0]; _thickness[1]=tRL[1]; }
- /*! Sets the visible flag. True means visible. */
- inline void SetVisible(bool iVisible){ _visible = iVisible; }
+ /*! sets the visible flag. True means visible. */
+ inline void setVisible(bool iVisible){ _visible = iVisible; }
/*! Adds a user defined attribute of type real
* If there is no attribute of name iName, it is added.
@@ -295,24 +295,24 @@ public:
inline float u() const {return _CurvilignAbscissa/_StrokeLength;}
/* modifiers */
- /*! Sets the 2D x value */
- inline void SetX(real x) { _Point2d[0]=x; }
- /*! Sets the 2D y value */
- inline void SetY(real y) { _Point2d[1]=y; }
- /*! Sets the 2D x and y values */
- inline void SetPoint(real x, real y) { _Point2d[0]=x; _Point2d[1]=y;}
- /*! Sets the 2D x and y values */
- inline void SetPoint(const Vec2f& p) { _Point2d[0] = p[0];_Point2d[1] = p[1];}
+ /*! sets the 2D x value */
+ inline void setX(real x) { _Point2d[0]=x; }
+ /*! sets the 2D y value */
+ inline void setY(real y) { _Point2d[1]=y; }
+ /*! sets the 2D x and y values */
+ inline void setPoint(real x, real y) { _Point2d[0]=x; _Point2d[1]=y;}
+ /*! sets the 2D x and y values */
+ inline void setPoint(const Vec2f& p) { _Point2d[0] = p[0];_Point2d[1] = p[1];}
/*! Returns a reference to the ith 2D point coordinate (i=0 or 1) */
inline real& operator[](const int i) { return _Point2d[i]; }
- /*! Sets the attribute. */
- inline void SetAttribute(const StrokeAttribute& iAttribute) { _Attribute = iAttribute; }
- /*! Sets the curvilinear abscissa of this StrokeVertex in the Stroke */
- inline void SetCurvilinearAbscissa(float iAbscissa) {_CurvilignAbscissa = iAbscissa;}
- /*! Sets the Stroke's length (it's only a value stored by the Stroke Vertex, it won't
+ /*! sets the attribute. */
+ inline void setAttribute(const StrokeAttribute& iAttribute) { _Attribute = iAttribute; }
+ /*! sets the curvilinear abscissa of this StrokeVertex in the Stroke */
+ inline void setCurvilinearAbscissa(float iAbscissa) {_CurvilignAbscissa = iAbscissa;}
+ /*! sets the Stroke's length (it's only a value stored by the Stroke Vertex, it won't
* change the real Stroke's length.)
*/
- inline void SetStrokeLength(float iLength) {_StrokeLength = iLength;}
+ inline void setStrokeLength(float iLength) {_StrokeLength = iLength;}
/* interface definition */
/* inherited */
@@ -502,26 +502,26 @@ public:
/* modifiers */
- /*! Sets the Id of the Stroke. */
- inline void SetId(const Id& id) {_id = id;}
- /*! Sets the 2D length of the Stroke. */
- void SetLength(float iLength);
- /*! Sets the medium type that must be used for this Stroke. */
- inline void SetMediumType(MediumType iType) {_mediumType = iType;}
- /*! Sets the texture id to be used to simulate the marks system for this Stroke. */
- inline void SetTextureId(unsigned int id) {_textureId = id;}
- /*! Sets the flag telling whether this stroke is using a texture with
+ /*! sets the Id of the Stroke. */
+ inline void setId(const Id& id) {_id = id;}
+ /*! sets the 2D length of the Stroke. */
+ void setLength(float iLength);
+ /*! sets the medium type that must be used for this Stroke. */
+ inline void setMediumType(MediumType iType) {_mediumType = iType;}
+ /*! sets the texture id to be used to simulate the marks system for this Stroke. */
+ inline void setTextureId(unsigned int id) {_textureId = id;}
+ /*! sets the flag telling whether this stroke is using a texture with
* tips or not.
*/
- inline void SetTips(bool iTips) {_tips = iTips;}
+ inline void setTips(bool iTips) {_tips = iTips;}
inline void push_back(StrokeVertex* iVertex) { _Vertices.push_back(iVertex); }
inline void push_front(StrokeVertex* iVertex) { _Vertices.push_front(iVertex); }
inline void AddViewEdge(ViewEdge *iViewEdge) {_ViewEdges.push_back(iViewEdge);}
- inline void SetBeginningOrientation(const Vec2r& iOrientation) {_extremityOrientations[0] = iOrientation;}
- inline void SetBeginningOrientation(real x, real y) {_extremityOrientations[0] = Vec2r(x,y);}
- inline void SetEndingOrientation(const Vec2r& iOrientation) {_extremityOrientations[1] = iOrientation;}
- inline void SetEndingOrientation(real x, real y) {_extremityOrientations[1] = Vec2r(x,y);}
+ inline void setBeginningOrientation(const Vec2r& iOrientation) {_extremityOrientations[0] = iOrientation;}
+ inline void setBeginningOrientation(real x, real y) {_extremityOrientations[0] = Vec2r(x,y);}
+ inline void setEndingOrientation(const Vec2r& iOrientation) {_extremityOrientations[1] = iOrientation;}
+ inline void setEndingOrientation(real x, real y) {_extremityOrientations[1] = Vec2r(x,y);}
/* Information access interface */