layer.h File Reference

Layer Class Header. More...

#include "string_decl.h"
#include <map>
#include <ETL/handle>
#include "real.h"
#include "string.h"
#include <sigc++/signal.h>
#include <sigc++/connection.h>
#include "node.h"
#include "time.h"
#include "guid.h"

Go to the source code of this file.

Namespaces

namespace  synfig

Classes

class  synfig::Layer
struct  synfig::Layer::BookEntry

Defines

#define SYNFIG_LAYER_MODULE_EXT
#define SYNFIG_LAYER_SET_NAME(class, x)   const char class::name__[]=x
 Sets the name of the layer.
#define SYNFIG_LAYER_SET_LOCAL_NAME(class, x)   const char class::local_name__[]=x;
 Sets the local name of the layer.
#define SYNFIG_LAYER_SET_CATEGORY(class, x)   const char class::category__[]=x
 Sets the category of the layer.
#define SYNFIG_LAYER_SET_VERSION(class, x)   const char class::version__[]=x
 Sets the version string for the layer.
#define SYNFIG_LAYER_SET_CVS_ID(class, x)   const char class::cvs_id__[]=x
 Sets the CVS ID string for the layer.
#define SYNFIG_LAYER_INIT(class)
#define IMPORT_PLUS(x, y)
#define IMPORT_AS(x, y)
#define IMPORT(x)   IMPORT_AS(x,#x)
#define EXPORT_AS(x, y)
#define EXPORT(x)   EXPORT_AS(x,#x)
#define EXPORT_NAME()
#define EXPORT_VERSION()
#define CATEGORY_DO_NOT_USE   "Do Not Use"


Detailed Description

Layer Class Header.

$Id$


Define Documentation

#define SYNFIG_LAYER_MODULE_EXT

Value:

public:                                                                             \
    static const char name__[], version__[], cvs_id__[], local_name__[], category__[];  \
    static Layer *create();
Todo:
This needs to be documented further.

#define SYNFIG_LAYER_SET_NAME ( class,
 )     const char class::name__[]=x

Sets the name of the layer.

#define SYNFIG_LAYER_SET_LOCAL_NAME ( class,
 )     const char class::local_name__[]=x;

Sets the local name of the layer.

#define SYNFIG_LAYER_SET_CATEGORY ( class,
 )     const char class::category__[]=x

Sets the category of the layer.

#define SYNFIG_LAYER_SET_VERSION ( class,
 )     const char class::version__[]=x

Sets the version string for the layer.

#define SYNFIG_LAYER_SET_CVS_ID ( class,
 )     const char class::cvs_id__[]=x

Sets the CVS ID string for the layer.

#define SYNFIG_LAYER_INIT ( class   ) 

Value:

synfig::Layer* class::create()                                                      \
    {                                                                                   \
        return new class();                                                             \
    }
Todo:
This needs to be documented further.

#define IMPORT_PLUS ( x,
 ) 

#define IMPORT_AS ( x,
 ) 

#define IMPORT (  )     IMPORT_AS(x,#x)

#define EXPORT_AS ( x,
 ) 

Value:

if (param==y)                                                                       \
        return ValueBase(x);
Todo:
This needs to be documented further.

Referenced by synfig::Layer_SphereDistort::get_param(), and Halftone2::get_param().

#define EXPORT (  )     EXPORT_AS(x,#x)

 
#define EXPORT_NAME (  ) 

Value:

if (param=="Name" || param=="name" || param=="name__")                              \
        return name__;                                                                  \
    else if (param=="local_name__")                                                     \
        return dgettext("synfig",local_name__);
Todo:
This needs to be documented further.

Referenced by Zoom::get_param(), XORPattern::get_param(), Warp::get_param(), Twirl::get_param(), Translate::get_param(), Layer_TimeLoop::get_param(), SuperSample::get_param(), synfig::Layer_Stretch::get_param(), Star::get_param(), SpiralGradient::get_param(), synfig::Layer_SphereDistort::get_param(), SimpleCircle::get_param(), Layer_Shade::get_param(), Rotate::get_param(), Region::get_param(), Rectangle::get_param(), RadialGradient::get_param(), RadialBlur::get_param(), Plant::get_param(), Outline::get_param(), Noise::get_param(), Metaballs::get_param(), Mandelbrot::get_param(), Layer_Freetype::get_param(), LumaKey::get_param(), LinearGradient::get_param(), synfig::Layer_SolidColor::get_param(), synfig::Layer_Shape::get_param(), synfig::Layer_Polygon::get_param(), synfig::Layer_PasteCanvas::get_param(), synfig::Layer_MotionBlur::get_param(), synfig::Layer_Duplicate::get_param(), Julia::get_param(), InsideOut::get_param(), Import::get_param(), Halftone3::get_param(), Halftone2::get_param(), FilledRect::get_param(), NoiseDistort::get_param(), CurveWarp::get_param(), CurveGradient::get_param(), ConicalGradient::get_param(), synfig::Layer_ColorCorrect::get_param(), synfig::Layer_Clamp::get_param(), Circle::get_param(), CheckerBoard::get_param(), synfig::BooleanCurve::get_param(), Blur_Layer::get_param(), and Layer_Bevel::get_param().

 
#define EXPORT_VERSION (  ) 

#define CATEGORY_DO_NOT_USE   "Do Not Use"

This is used as the category for layer book entries which represent aliases of layers. It prevents these layers showing up in the menu.

Referenced by process_global_flags().


Generated on Fri Jul 31 00:01:56 2009 for synfig-core by  doxygen 1.5.6