Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-core / trunk / src / modules / mod_geometry / circle.h
index 59f78db..f7cd379 100644 (file)
@@ -1,11 +1,12 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file circle.h
-**     \brief Template Header
+**     \brief Header file for implementation of the "Circle" layer
 **
-**     $Id: circle.h,v 1.2 2005/01/24 03:08:17 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -46,7 +47,7 @@ class Circle : public synfig::Layer_Composite, public synfig::Layer_NoDeform
        SYNFIG_LAYER_MODULE_EXT
 private:
        synfig::Color color;
-       synfig::Point pos;
+       synfig::Point origin;
        synfig::Real radius;
        synfig::Real feather;
        bool invert;
@@ -57,32 +58,32 @@ private:
        {
                Real inner_radius;
                Real outer_radius;
-       
+
                Real inner_radius_sqd;
                Real outer_radius_sqd;
-       
+
                Real diff_sqd;
                Real double_feather;
        };
-       
+
        typedef Real    FALLOFF_FUNC(const CircleDataCache &c, const Real &mag_sqd);
-       
+
        FALLOFF_FUNC    *falloff_func;
        CircleDataCache cache;
 
        void constructcache();
 
        static  Real    SqdFalloff(const CircleDataCache &c, const Real &mag_sqd);
-       static  Real    InvSqdFalloff(const CircleDataCache &c, const Real &mag_sqd);                   
+       static  Real    InvSqdFalloff(const CircleDataCache &c, const Real &mag_sqd);
        static  Real    SqrtFalloff(const CircleDataCache &c, const Real &mag_sqd);
-       static  Real    InvSqrtFalloff(const CircleDataCache &c, const Real &mag_sqd);          
+       static  Real    InvSqrtFalloff(const CircleDataCache &c, const Real &mag_sqd);
        static  Real    LinearFalloff(const CircleDataCache &c, const Real &mag_sqd);
-       static  Real    InvLinearFalloff(const CircleDataCache &c, const Real &mag_sqd);                
+       static  Real    InvLinearFalloff(const CircleDataCache &c, const Real &mag_sqd);
        static  Real    SigmondFalloff(const CircleDataCache &c, const Real &mag_sqd);
        static  Real    InvSigmondFalloff(const CircleDataCache &c, const Real &mag_sqd);
        static  Real    CosineFalloff(const CircleDataCache &c, const Real &mag_sqd);
-       static  Real    InvCosineFalloff(const CircleDataCache &c, const Real &mag_sqd);                
-       
+       static  Real    InvCosineFalloff(const CircleDataCache &c, const Real &mag_sqd);
+
        FALLOFF_FUNC    *GetFalloffFunc()const;
        bool ImportParameters(const String &param, const ValueBase &value);
 
@@ -96,22 +97,22 @@ public:
                FALLOFF_SIGMOND         =3,
                FALLOFF_SQRT            =4
        };
-       
+
        Circle();
-       
+
        virtual bool set_param(const String &param, const ValueBase &value);
-       
+
        virtual ValueBase get_param(const String &param)const;
-       
+
        virtual Color get_color(Context context, const Point &pos)const;
-       
+
        virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
 
        virtual synfig::Rect get_full_bounding_rect(synfig::Context context)const;
        virtual synfig::Rect get_bounding_rect()const;
 
-       synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;      
-       
+       synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;
+
        virtual Vocab get_param_vocab()const;
 };