From: Carlos Lopez Date: Sun, 13 Jun 2010 19:34:23 +0000 (+0200) Subject: Merge branch 'master' into genete_core_review X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4d106ef7cccca26ba8a588a3ae9f722e8ca70df6;hp=93fd70f57db7f3277d3a02f79ba6335173706294;p=synfig.git Merge branch 'master' into genete_core_review --- diff --git a/synfig-core/src/modules/lyr_std/stretch.cpp b/synfig-core/src/modules/lyr_std/stretch.cpp index de0de94..0f1c37d 100644 --- a/synfig-core/src/modules/lyr_std/stretch.cpp +++ b/synfig-core/src/modules/lyr_std/stretch.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_bmp/main.cpp b/synfig-core/src/modules/mod_bmp/main.cpp index 88fbbbd..dbf86b1 100644 --- a/synfig-core/src/modules/mod_bmp/main.cpp +++ b/synfig-core/src/modules/mod_bmp/main.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_bmp/mptr_bmp.cpp b/synfig-core/src/modules/mod_bmp/mptr_bmp.cpp index 9151cfe..d8c07b7 100644 --- a/synfig-core/src/modules/mod_bmp/mptr_bmp.cpp +++ b/synfig-core/src/modules/mod_bmp/mptr_bmp.cpp @@ -24,8 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_bmp/trgt_bmp.cpp b/synfig-core/src/modules/mod_bmp/trgt_bmp.cpp index fe2d433..5a126ff 100644 --- a/synfig-core/src/modules/mod_bmp/trgt_bmp.cpp +++ b/synfig-core/src/modules/mod_bmp/trgt_bmp.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_dv/trgt_dv.cpp b/synfig-core/src/modules/mod_dv/trgt_dv.cpp index 6174af0..896ae6c 100644 --- a/synfig-core/src/modules/mod_dv/trgt_dv.cpp +++ b/synfig-core/src/modules/mod_dv/trgt_dv.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp index d1b9219..528166d 100644 --- a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp +++ b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp @@ -26,8 +26,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_gif/trgt_gif.cpp b/synfig-core/src/modules/mod_gif/trgt_gif.cpp index a520ff3..5c8b49a 100644 --- a/synfig-core/src/modules/mod_gif/trgt_gif.cpp +++ b/synfig-core/src/modules/mod_gif/trgt_gif.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_imagemagick/trgt_imagemagick.cpp b/synfig-core/src/modules/mod_imagemagick/trgt_imagemagick.cpp index dc024ae..c23ef14 100644 --- a/synfig-core/src/modules/mod_imagemagick/trgt_imagemagick.cpp +++ b/synfig-core/src/modules/mod_imagemagick/trgt_imagemagick.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_jpeg/trgt_jpeg.cpp b/synfig-core/src/modules/mod_jpeg/trgt_jpeg.cpp index b0def32..890b533 100644 --- a/synfig-core/src/modules/mod_jpeg/trgt_jpeg.cpp +++ b/synfig-core/src/modules/mod_jpeg/trgt_jpeg.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_libavcodec/main.cpp b/synfig-core/src/modules/mod_libavcodec/main.cpp index 70fa9c5..30aa3c5 100644 --- a/synfig-core/src/modules/mod_libavcodec/main.cpp +++ b/synfig-core/src/modules/mod_libavcodec/main.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_libavcodec/mptr.cpp b/synfig-core/src/modules/mod_libavcodec/mptr.cpp index 667968b..4c9bfb8 100644 --- a/synfig-core/src/modules/mod_libavcodec/mptr.cpp +++ b/synfig-core/src/modules/mod_libavcodec/mptr.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_libavcodec/trgt_av.cpp b/synfig-core/src/modules/mod_libavcodec/trgt_av.cpp index f329081..5f481f6 100644 --- a/synfig-core/src/modules/mod_libavcodec/trgt_av.cpp +++ b/synfig-core/src/modules/mod_libavcodec/trgt_av.cpp @@ -24,8 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_magickpp/trgt_magickpp.cpp b/synfig-core/src/modules/mod_magickpp/trgt_magickpp.cpp index 875f2b5..0570685 100644 --- a/synfig-core/src/modules/mod_magickpp/trgt_magickpp.cpp +++ b/synfig-core/src/modules/mod_magickpp/trgt_magickpp.cpp @@ -24,8 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_mng/trgt_mng.cpp b/synfig-core/src/modules/mod_mng/trgt_mng.cpp index 3540490..23d6e81 100644 --- a/synfig-core/src/modules/mod_mng/trgt_mng.cpp +++ b/synfig-core/src/modules/mod_mng/trgt_mng.cpp @@ -27,8 +27,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_openexr/trgt_openexr.cpp b/synfig-core/src/modules/mod_openexr/trgt_openexr.cpp index 2ad34f5..fd29524 100644 --- a/synfig-core/src/modules/mod_openexr/trgt_openexr.cpp +++ b/synfig-core/src/modules/mod_openexr/trgt_openexr.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_png/trgt_png.cpp b/synfig-core/src/modules/mod_png/trgt_png.cpp index a0a58b1..c4d4df4 100644 --- a/synfig-core/src/modules/mod_png/trgt_png.cpp +++ b/synfig-core/src/modules/mod_png/trgt_png.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_ppm/trgt_mpg.cpp b/synfig-core/src/modules/mod_ppm/trgt_mpg.cpp index c90ebfd..ecdecba 100644 --- a/synfig-core/src/modules/mod_ppm/trgt_mpg.cpp +++ b/synfig-core/src/modules/mod_ppm/trgt_mpg.cpp @@ -24,8 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_ppm/trgt_ppm.cpp b/synfig-core/src/modules/mod_ppm/trgt_ppm.cpp index 0859d84..0012c54 100644 --- a/synfig-core/src/modules/mod_ppm/trgt_ppm.cpp +++ b/synfig-core/src/modules/mod_ppm/trgt_ppm.cpp @@ -25,8 +25,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_svg/main.cpp b/synfig-core/src/modules/mod_svg/main.cpp index 1f5be67..1906b70 100644 --- a/synfig-core/src/modules/mod_svg/main.cpp +++ b/synfig-core/src/modules/mod_svg/main.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/modules/mod_yuv420p/trgt_yuv.cpp b/synfig-core/src/modules/mod_yuv420p/trgt_yuv.cpp index a6d3455..df1e8e2 100644 --- a/synfig-core/src/modules/mod_yuv420p/trgt_yuv.cpp +++ b/synfig-core/src/modules/mod_yuv420p/trgt_yuv.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_TARGET - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/Makefile.am b/synfig-core/src/synfig/Makefile.am index ac0ddca..055b720 100644 --- a/synfig-core/src/synfig/Makefile.am +++ b/synfig-core/src/synfig/Makefile.am @@ -11,7 +11,8 @@ INCLUDES = \ EXTRA_DIST = \ surfacenew.cpp \ pch.h \ - synfig.nsh + synfig.nsh \ + synfig.h LAYERHEADERS = \ @@ -194,7 +195,6 @@ SYNFIGHEADERS = \ string.h \ string_decl.h \ surfacenew.h \ - synfig.h \ types.h \ vector.h \ version.h \ diff --git a/synfig-core/src/synfig/canvas.cpp b/synfig-core/src/synfig/canvas.cpp index 2bbb743..eeecdb0 100644 --- a/synfig-core/src/synfig/canvas.cpp +++ b/synfig-core/src/synfig/canvas.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/color.h b/synfig-core/src/synfig/color.h index d54b0e9..ee5f501 100644 --- a/synfig-core/src/synfig/color.h +++ b/synfig-core/src/synfig/color.h @@ -29,20 +29,16 @@ /* === H E A D E R S ======================================================= */ -//#include #include #include #include "gamma.h" #include +# include "angle.h" #ifdef USE_HALF_TYPE #include #endif -#ifndef SYNFIG_NO_ANGLE -# include "angle.h" -#endif - /* === M A C R O S ========================================================= */ #define use_colorspace_gamma() App::use_colorspace_gamma @@ -386,7 +382,6 @@ public: static Color YUV(const float& y, const float& u, const float& v, const value_type& a=1) { return Color().set_yuv(y,u,v).set_a(a); } -#ifndef SYNFIG_NO_ANGLE //! Returns the hue of the chromanance /*! This is the angle of the U and V components. ** \see set_hue() */ @@ -443,7 +438,6 @@ public: static Color YUV(const float& y, const float& s, const Angle& theta, const value_type& a=1) { return Color().set_yuv(y,s,theta).set_a(a); } -#endif //! Clamps a color so that its values are in range. Ignores attempting to visualize negative colors. Color clamped()const; diff --git a/synfig-core/src/synfig/importer.cpp b/synfig-core/src/synfig/importer.cpp index e271110..1784d3a 100644 --- a/synfig-core/src/synfig/importer.cpp +++ b/synfig-core/src/synfig/importer.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file importer.cpp -** \brief writeme +** \brief It is the base class for all the importers. ** ** $Id$ ** @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/importer.h b/synfig-core/src/synfig/importer.h index 4391c4e..18c53a4 100644 --- a/synfig-core/src/synfig/importer.h +++ b/synfig-core/src/synfig/importer.h @@ -1,7 +1,6 @@ -#include /* === S Y N F I G ========================================================= */ /*! \file importer.h -** \brief writeme +** \brief It is the base class for all the importers. ** ** $Id$ ** @@ -28,34 +27,33 @@ /* === H E A D E R S ======================================================= */ +#include #include -//#include #include #include "string.h" -//#include "surface.h" -//#include "general.h" -//#include "vector.h" #include "time.h" #include "gamma.h" /* === M A C R O S ========================================================= */ -//! \writeme +//! Defines various variables and the create method, common for all importers. +//! To be used in the private part of the importer class definition. #define SYNFIG_IMPORTER_MODULE_EXT public: static const char name__[], version__[], ext__[],cvs_id__[]; static Importer *create(const char *filename); -//! Sets the name of the importer +//! Sets the name of the importer. #define SYNFIG_IMPORTER_SET_NAME(class,x) const char class::name__[]=x -//! \writeme +//! Sets the primary file extension of the importer. #define SYNFIG_IMPORTER_SET_EXT(class,x) const char class::ext__[]=x -//! Sets the version of the importer +//! Sets the version of the importer. #define SYNFIG_IMPORTER_SET_VERSION(class,x) const char class::version__[]=x -//! Sets the CVS ID of the importer +//! Sets the CVS ID of the importer. #define SYNFIG_IMPORTER_SET_CVS_ID(class,x) const char class::cvs_id__[]=x -//! \writeme +//! Defines de implementation of the create method for the importer +//! \param filename The file name to be imported by the importer. #define SYNFIG_IMPORTER_INIT(class) synfig::Importer* class::create(const char *filename) { return new class(filename); } /* === T Y P E D E F S ===================================================== */ @@ -68,8 +66,16 @@ class Surface; class ProgressCallback; /*! \class Importer -** \brief Used for importing bitmaps of various formats, including animations -** \todo Write more detailed description +** \brief Used for importing bitmaps of various formats, including animations. +* +* It is the base class for all the importers. It defines the has a static Book +* pointer class that is a map for the importers factory creators and the strings +* of the extension that the importer can understand. It allows to create the a +* pointer to a particular importer just by using the extension of the name of file +* to import. Also it creates a virtual member get_frame that must be declared in +* the inherited classes. +* \see module.h +** \ */ class Importer : public etl::shared_object { @@ -80,7 +86,11 @@ public: static Book& book(); + //! Initializes the Import module by creating a book of importers names + //! and its creators and the list of open importers static bool subsys_init(); + //! Stops the Import module by deleting the book and the list of open + //! importers static bool subsys_stop(); typedef etl::handle Handle; @@ -88,6 +98,8 @@ public: typedef etl::handle ConstHandle; private: + //! Gamm of the imoporter. + //! \todo Do not hardcode the gamma to 2.2 Gamma gamma_; protected: @@ -111,9 +123,12 @@ public: virtual bool get_frame(Surface &surface,Time time, ProgressCallback *callback=NULL)=0; virtual bool get_frame(Surface &surface,Time time, bool &trimmed __attribute__ ((unused)), - unsigned int &width __attribute__ ((unused)), unsigned int &height __attribute__ ((unused)), - unsigned int &top __attribute__ ((unused)), unsigned int &left __attribute__ ((unused)), - ProgressCallback *callback=NULL) { + unsigned int &width __attribute__ ((unused)), + unsigned int &height __attribute__ ((unused)), + unsigned int &top __attribute__ ((unused)), + unsigned int &left __attribute__ ((unused)), + ProgressCallback *callback=NULL) + { return get_frame(surface,time,callback); } diff --git a/synfig-core/src/synfig/layer.cpp b/synfig-core/src/synfig/layer.cpp index 8fcbfbf..9d1adf3 100644 --- a/synfig-core/src/synfig/layer.cpp +++ b/synfig-core/src/synfig/layer.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/layer.h b/synfig-core/src/synfig/layer.h index 1e321b0..80e50f1 100644 --- a/synfig-core/src/synfig/layer.h +++ b/synfig-core/src/synfig/layer.h @@ -41,7 +41,8 @@ /* === M A C R O S ========================================================= */ -//! \writeme +//! Defines various variables and the create method, common for all importers. +//! To be used in the private part of the importer class definition. #define SYNFIG_LAYER_MODULE_EXT \ public: \ static const char name__[], version__[], cvs_id__[], local_name__[], category__[]; \ @@ -67,14 +68,15 @@ #define SYNFIG_LAYER_SET_CVS_ID(class,x) \ const char class::cvs_id__[]=x -//! \writeme +//! Defines de implementation of the create method for the importer #define SYNFIG_LAYER_INIT(class) \ synfig::Layer* class::create() \ { \ return new class(); \ } -//! \writeme +//! Imports a parameter 'x' and perform an action based usually based on +//! some condition 'y' #define IMPORT_PLUS(x,y) \ if (param==#x && value.same_type_as(x)) \ { \ @@ -85,7 +87,7 @@ return true; \ } -//! \writeme +//! Imports a parameter 'y' if it has the same type than 'x' #define IMPORT_AS(x,y) \ if (param==y && value.same_type_as(x)) \ { \ @@ -93,27 +95,27 @@ return true; \ } -//! \writeme +//! Imports a parameter if it is of the same type as param #define IMPORT(x) \ IMPORT_AS(x,#x) -//! \writeme +//! Exports a parameter 'x' if param is same type as given 'y' #define EXPORT_AS(x,y) \ if (param==y) \ return ValueBase(x); -//! \writeme +//! Exports a parameter if it is the same type as value #define EXPORT(x) \ EXPORT_AS(x,#x) -//! \writeme +//! Exports the name or the local name of the layer #define EXPORT_NAME() \ if (param=="Name" || param=="name" || param=="name__") \ return name__; \ else if (param=="local_name__") \ return dgettext("synfig",local_name__); -//! \writeme +//! Exports the version of the layer #define EXPORT_VERSION() \ if (param=="Version" || param=="version" || param=="version__") \ return version__; @@ -192,7 +194,7 @@ public: //! Book of types of layers indexed by layer type name. /*! While the sifz file is read, each time a new layer entry is found, - ** the factory constructor that the "factory" pointer member of the + ** the factory constructor that the "factory" pointer member of the ** "BookEntry" struct points to, is called, and a new layer of that type ** is created. ** \sa Layer::Factory @@ -203,10 +205,16 @@ public: static Book& book(); + //! Inits the book of layers and inserts in it the basic layers that + //! doesn't depend on modules + /*! \todo motionblur should be in the mod_filter module + */ static bool subsys_init(); + //! Stops the layer system by deleting the book of registered layers static bool subsys_stop(); + //! Map of Value Base parameters indexed by name typedef std::map ParamList; typedef etl::handle Handle; @@ -215,6 +223,7 @@ public: typedef etl::handle ConstHandle; + //! Map of parameters that are animated Value Nodes indexed by the param name typedef std::map > DynamicParamList; //! A list type which describes all the parameters that a layer has. @@ -235,12 +244,13 @@ private: //! Handle to the canvas to which this layer belongs etl::loose_handle canvas_; + //! Map of parameter with animated value nodes DynamicParamList dynamic_param_list_; //! A description of what this layer does String description_; - //! \writeme + //! The depth parameter of the layer in the layer stack float z_depth_; //! \writeme @@ -249,7 +259,10 @@ private: //! Contains the name of the group that this layer belongs to String group_; - //! \writeme + //! Signal to connect to the signal_deleted canvas's member + //! Used to do let a layer with a canvas parent that doesn't exists + //! Instead of that it connects to a zero canvas + //! \see Layer::set_canvas() sigc::connection parent_death_connect_; /* @@ -327,13 +340,14 @@ public: //! Gets the name of the group that this layer belongs to String get_group()const; - //! writeme - //DynamicParamList &dynamic_param_list() { return dynamic_param_list_; } - - //! \todo writeme + //! Retrieves the dynamic param list member + //! \see DynamicParamList const DynamicParamList &dynamic_param_list()const { return dynamic_param_list_; } + //! Connects the parameter to another Value Node bool connect_dynamic_param(const String& param, etl::loose_handle); + + //! Disconnects the parameter from any Value Node bool disconnect_dynamic_param(const String& param); //! Enables the layer for rendering (Making it \em active) @@ -356,13 +370,13 @@ public: /*! Returns negative on error */ int get_depth()const; - //! \writeme + //! Gets the non animated z depth of the layer float get_z_depth()const { return z_depth_; } - //! \writeme + //! Gets the z depth of the layer at a time t float get_z_depth(const synfig::Time& t)const; - //! \writeme + //! Sets the z depth of the layer (non animated) void set_z_depth(float x) { z_depth_=x; } //! Sets the Canvas that this Layer is a part of @@ -371,10 +385,10 @@ public: //! Returns a handle to the Canvas to which this Layer belongs etl::loose_handle get_canvas()const; - //! \writeme + //! Returns the description of the layer const String& get_description()const { return description_; } - //! \writeme + //! Sets the description of the layer void set_description(const String& x); //! Returns the layer's description if it's not empty, else its local name @@ -388,8 +402,12 @@ public: */ public: + //! Returns the rectangle that includes the layer + //! \see synfig::Rect virtual Rect get_bounding_rect()const; + //!Returns the rectangle that includes the context of the layer + //!\see synfig::Rect synfig::Context virtual Rect get_full_bounding_rect(Context context)const; //! Returns a string containing the name of the Layer @@ -404,7 +422,8 @@ public: //! Gets the version string for this layer virtual String get_version()const; - //! \writeme + //! Returns a handle to the Transform class of the layer + //! \see synfig::Transform virtual etl::handle get_transform()const; //! Sets the virtual version to use for backwards-compatibility @@ -443,7 +462,7 @@ public: //! Sets the \a time for the selected Layer and those under it /*! \param context Context iterator referring to next Layer. ** \param time writeme - ** \see Handle::set_time() + ** \see Context::set_time() */ virtual void set_time(Context context, Time time)const; @@ -451,14 +470,14 @@ public: /*! \param context Context iterator referring to next Layer. ** \param time writeme ** \param point writeme - ** \see Handle::set_time() + ** \see Context::set_time() ** \todo \a point should be of the type const Point \& */ virtual void set_time(Context context, Time time, const Point &point)const; //! Gets the color of the Canvas at \a pos /*! \param context Context iterator referring to next Layer. ** \param pos Point which indicates where the Color should come from - ** \see Handle::get_color() + ** \see Context::get_color() */ virtual Color get_color(Context context, const Point &pos)const; @@ -469,7 +488,7 @@ public: ** \param renddesc The associated RendDesc. ** \param cb Pointer to callback object. May be NULL if there is no callback. ** \return \c true on success, \c false on failure - ** \see Handle::accelerated_render() + ** \see Context::accelerated_render() */ virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; @@ -477,7 +496,9 @@ public: /*! \param context Context iterator referring to next Layer. ** \param point The point to check ** \return The handle of the layer under \a point. If there is not - ** a layer under \a point, then returns an empty handle. */ + ** a layer under \a point, then returns an empty handle. + ** \see Context::hit_check + */ virtual Handle hit_check(Context context, const Point &point)const; //! Duplicates the Layer diff --git a/synfig-core/src/synfig/layer_bitmap.cpp b/synfig-core/src/synfig/layer_bitmap.cpp index cda5d09..8443429 100644 --- a/synfig-core/src/synfig/layer_bitmap.cpp +++ b/synfig-core/src/synfig/layer_bitmap.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/main.cpp b/synfig-core/src/synfig/main.cpp index 9e0a56a..31c9afe 100644 --- a/synfig-core/src/synfig/main.cpp +++ b/synfig-core/src/synfig/main.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -//#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/module.cpp b/synfig-core/src/synfig/module.cpp index 5d64003..13523b0 100644 --- a/synfig-core/src/synfig/module.cpp +++ b/synfig-core/src/synfig/module.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/render.cpp b/synfig-core/src/synfig/render.cpp index af58a0e..fffdd6f 100644 --- a/synfig-core/src/synfig/render.cpp +++ b/synfig-core/src/synfig/render.cpp @@ -22,8 +22,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/surface.cpp b/synfig-core/src/synfig/surface.cpp index 91e1663..471b85a 100644 --- a/synfig-core/src/synfig/surface.cpp +++ b/synfig-core/src/synfig/surface.cpp @@ -24,8 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/target.cpp b/synfig-core/src/synfig/target.cpp index b6aa1c4..a74d374 100644 --- a/synfig-core/src/synfig/target.cpp +++ b/synfig-core/src/synfig/target.cpp @@ -23,8 +23,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - #ifdef HAVE_CONFIG_H # include #endif diff --git a/synfig-core/src/synfig/types.h b/synfig-core/src/synfig/types.h index 6c3b7ea..866e388 100644 --- a/synfig-core/src/synfig/types.h +++ b/synfig-core/src/synfig/types.h @@ -28,11 +28,7 @@ /* === H E A D E R S ======================================================= */ #include - -#ifndef SYNFIG_NO_ANGLE #include "angle.h" -#endif - #include "time.h" #include "vector.h" diff --git a/synfig-core/src/synfig/value.h b/synfig-core/src/synfig/value.h index 7079dba..eff65bb 100644 --- a/synfig-core/src/synfig/value.h +++ b/synfig-core/src/synfig/value.h @@ -28,17 +28,14 @@ /* === H E A D E R S ======================================================= */ -//#include "vector.h" -//#include "time.h" +#include "angle.h" #include "segment.h" -//#include "color.h" #include "string.h" #include #include #include #include #include "general.h" -//#include "gradient.h" #include "blinepoint.h" #include "exception.h" @@ -46,9 +43,6 @@ #include #endif -#ifndef SYNFIG_NO_ANGLE -#include "angle.h" -#endif #include @@ -349,10 +343,8 @@ public: operator half()const { return get(Real()); } #endif -#ifndef SYNFIG_NO_ANGLE operator const Angle&()const { return get(Angle()); } static Type get_type(const Angle&) { return TYPE_ANGLE; } -#endif template operator std::list()const diff --git a/synfig-core/src/synfig/valuenode.cpp b/synfig-core/src/synfig/valuenode.cpp index cae9692..c249559 100644 --- a/synfig-core/src/synfig/valuenode.cpp +++ b/synfig-core/src/synfig/valuenode.cpp @@ -24,10 +24,6 @@ /* === H E A D E R S ======================================================= */ -#define SYNFIG_NO_ANGLE - -//#define HAS_HASH_MAP 1 - #ifdef USING_PCH # include "pch.h" #else diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index a7a8f30..e74c679 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -38,10 +38,7 @@ #include #include #include "guid.h" - -#ifndef SYNFIG_NO_ANGLE #include -#endif #include "node.h" @@ -289,7 +286,7 @@ public: //! Type that represents a pointer to a ValueNode's constructor - /*! As a pointer to the constructor, it represents a "factory" of + /*! As a pointer to the constructor, it represents a "factory" of ** objects of this class. */ typedef LinkableValueNode* (*Factory)(const ValueBase&); @@ -305,9 +302,9 @@ public: }; //! Book of types of linkable value nodes indexed by type name. - /*! While the sifz file is read, each time a new LinkableValueNode entry - ** is found, the factory constructor that the "factory" pointer member - ** of the "BookEntry" struct points to, is called, and a new object of + /*! While the sifz file is read, each time a new LinkableValueNode entry + ** is found, the factory constructor that the "factory" pointer member + ** of the "BookEntry" struct points to, is called, and a new object of ** that type is created. ** \sa LinkableValueNode::Factory */