X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_geometry%2Fcircle.h;h=27a6c5879c5a44e9719d02affbf9ac8adbc4f587;hb=c99d377aa4707033745107db74afdb83adea9a59;hp=c3a96d8ae6b679fc5d556ffd3267cc5a7713918c;hpb=28f28705612902c15cd0702cc891fba35bf2d2df;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_geometry/circle.h b/synfig-core/trunk/src/modules/mod_geometry/circle.h index c3a96d8..27a6c58 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/circle.h +++ b/synfig-core/trunk/src/modules/mod_geometry/circle.h @@ -2,19 +2,20 @@ /*! \file circle.h ** \brief Template Header ** -** $Id: circle.h,v 1.2 2005/01/24 03:08:17 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -56,32 +57,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 ¶m, const ValueBase &value); @@ -95,22 +96,22 @@ public: FALLOFF_SIGMOND =3, FALLOFF_SQRT =4 }; - + Circle(); - + virtual bool set_param(const String ¶m, const ValueBase &value); - + virtual ValueBase get_param(const String ¶m)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; };