Merge branch 'master' into genete_core_review
authorCarlos Lopez <genetita@gmail.com>
Sun, 13 Jun 2010 19:34:23 +0000 (21:34 +0200)
committerCarlos Lopez <genetita@gmail.com>
Sun, 13 Jun 2010 19:34:23 +0000 (21:34 +0200)
37 files changed:
synfig-core/src/modules/lyr_std/stretch.cpp
synfig-core/src/modules/mod_bmp/main.cpp
synfig-core/src/modules/mod_bmp/mptr_bmp.cpp
synfig-core/src/modules/mod_bmp/trgt_bmp.cpp
synfig-core/src/modules/mod_dv/trgt_dv.cpp
synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp
synfig-core/src/modules/mod_gif/trgt_gif.cpp
synfig-core/src/modules/mod_imagemagick/trgt_imagemagick.cpp
synfig-core/src/modules/mod_jpeg/trgt_jpeg.cpp
synfig-core/src/modules/mod_libavcodec/main.cpp
synfig-core/src/modules/mod_libavcodec/mptr.cpp
synfig-core/src/modules/mod_libavcodec/trgt_av.cpp
synfig-core/src/modules/mod_magickpp/trgt_magickpp.cpp
synfig-core/src/modules/mod_mng/trgt_mng.cpp
synfig-core/src/modules/mod_openexr/trgt_openexr.cpp
synfig-core/src/modules/mod_png/trgt_png.cpp
synfig-core/src/modules/mod_ppm/trgt_mpg.cpp
synfig-core/src/modules/mod_ppm/trgt_ppm.cpp
synfig-core/src/modules/mod_svg/main.cpp
synfig-core/src/modules/mod_yuv420p/trgt_yuv.cpp
synfig-core/src/synfig/Makefile.am
synfig-core/src/synfig/canvas.cpp
synfig-core/src/synfig/color.h
synfig-core/src/synfig/importer.cpp
synfig-core/src/synfig/importer.h
synfig-core/src/synfig/layer.cpp
synfig-core/src/synfig/layer.h
synfig-core/src/synfig/layer_bitmap.cpp
synfig-core/src/synfig/main.cpp
synfig-core/src/synfig/module.cpp
synfig-core/src/synfig/render.cpp
synfig-core/src/synfig/surface.cpp
synfig-core/src/synfig/target.cpp
synfig-core/src/synfig/types.h
synfig-core/src/synfig/value.h
synfig-core/src/synfig/valuenode.cpp
synfig-core/src/synfig/valuenode.h

index de0de94..0f1c37d 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 88fbbbd..dbf86b1 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 9151cfe..d8c07b7 100644 (file)
@@ -24,8 +24,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index fe2d433..5a126ff 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 6174af0..896ae6c 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index d1b9219..528166d 100644 (file)
@@ -26,8 +26,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index a520ff3..5c8b49a 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index dc024ae..c23ef14 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index b0def32..890b533 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 70fa9c5..30aa3c5 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 667968b..4c9bfb8 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index f329081..5f481f6 100644 (file)
@@ -24,8 +24,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 875f2b5..0570685 100644 (file)
@@ -24,8 +24,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 3540490..23d6e81 100644 (file)
@@ -27,8 +27,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 2ad34f5..fd29524 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index a0a58b1..c4d4df4 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index c90ebfd..ecdecba 100644 (file)
@@ -24,8 +24,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 0859d84..0012c54 100644 (file)
@@ -25,8 +25,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 1f5be67..1906b70 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index a6d3455..df1e8e2 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_TARGET
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index ac0ddca..055b720 100644 (file)
@@ -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 \
index 2bbb743..eeecdb0 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index d54b0e9..ee5f501 100644 (file)
 /* === H E A D E R S ======================================================= */
 
 
-//#include <cmath>
 #include <math.h>
 #include <cassert>
 #include "gamma.h"
 #include <synfig/string.h>
+# include "angle.h"
 
 #ifdef USE_HALF_TYPE
 #include <OpenEXR/half.h>
 #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;
index e271110..1784d3a 100644 (file)
@@ -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
index 4391c4e..18c53a4 100644 (file)
@@ -1,7 +1,6 @@
-#include <cstdio>
 /* === S Y N F I G ========================================================= */
 /*!    \file importer.h
-**     \brief writeme
+**     \brief It is the base class for all the importers.
 **
 **     $Id$
 **
 
 /* === H E A D E R S ======================================================= */
 
+#include <cstdio>
 #include <map>
-//#include <cmath>
 #include <ETL/handle>
 #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<Importer> Handle;
@@ -88,6 +98,8 @@ public:
        typedef etl::handle<const Importer> 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);
        }
 
index 8fcbfbf..9d1adf3 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 1e321b0..80e50f1 100644 (file)
@@ -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__[];      \
 #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))                                                                                          \
        {                                                                                                                                                                       \
                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<String,ValueBase> ParamList;
 
        typedef etl::handle<Layer> Handle;
@@ -215,6 +223,7 @@ public:
 
        typedef etl::handle<const Layer> ConstHandle;
 
+       //! Map of parameters that are animated Value Nodes indexed by the param name
        typedef std::map<String,etl::rhandle<ValueNode> > 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> 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<ValueNode>);
+
+       //! 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<Canvas> 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<Transform> 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 <tt>const Point \&</tt> */
        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
index cda5d09..8443429 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 9e0a56a..31c9afe 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-//#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 5d64003..13523b0 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index af58a0e..fffdd6f 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index 91e1663..471b85a 100644 (file)
@@ -24,8 +24,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index b6aa1c4..a74d374 100644 (file)
@@ -23,8 +23,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
index 6c3b7ea..866e388 100644 (file)
 /* === H E A D E R S ======================================================= */
 
 #include <cmath>
-
-#ifndef SYNFIG_NO_ANGLE
 #include "angle.h"
-#endif
-
 #include "time.h"
 #include "vector.h"
 
index 7079dba..eff65bb 100644 (file)
 
 /* === 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 <list>
 #include <vector>
 #include <ETL/trivial>
 #include <ETL/handle>
 #include "general.h"
-//#include "gradient.h"
 #include "blinepoint.h"
 #include "exception.h"
 
@@ -46,9 +43,6 @@
 #include <OpenEXR/half.h>
 #endif
 
-#ifndef SYNFIG_NO_ANGLE
-#include "angle.h"
-#endif
 
 #include <ETL/ref_count>
 
@@ -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 <class T>
        operator std::list<T>()const
index cae9692..c249559 100644 (file)
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
-//#define HAS_HASH_MAP 1
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
index a7a8f30..e74c679 100644 (file)
 #include <map>
 #include <sigc++/signal.h>
 #include "guid.h"
-
-#ifndef SYNFIG_NO_ANGLE
 #include <ETL/angle>
-#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
        */