layer_shape.cpp File Reference

Template Header. More...

#include "layer_shape.h"
#include "string.h"
#include "time.h"
#include "context.h"
#include "paramdesc.h"
#include "renddesc.h"
#include "surface.h"
#include "value.h"
#include "valuenode.h"
#include "float.h"
#include "blur.h"
#include "curve_helper.h"
#include <vector>
#include <deque>

Defines

#define EPSILON   1e-12
#define GAUSSIAN_ADJUSTMENT   (0.05)

Typedefs

typedef rect< int > ContextRect

Functions

 SYNFIG_LAYER_INIT (Layer_Shape)
 SYNFIG_LAYER_SET_NAME (Layer_Shape,"shape")
 SYNFIG_LAYER_SET_LOCAL_NAME (Layer_Shape, _("Shape"))
 SYNFIG_LAYER_SET_CATEGORY (Layer_Shape, _("Internal"))
 SYNFIG_LAYER_SET_VERSION (Layer_Shape,"0.1")
 SYNFIG_LAYER_SET_CVS_ID (Layer_Shape,"$Id: layer_shape.cpp,v 1.2 2005/01/24 03:08:18 darco Exp $")
template<class T>
bool IsZero (const T &n)
static void Subd_Conic_Stack (Point *arc)
static void Subd_Cubic_Stack (Point *arc)
 Layer_Shape::Layer_Shape (const Real &a, const Color::BlendMethod m)
 Layer_Shape::~Layer_Shape ()
void Layer_Shape::clear ()
bool Layer_Shape::set_param (const String &param, const ValueBase &value)
ValueBase Layer_Shape::get_param (const String &param) const
Layer::Vocab Layer_Shape::get_param_vocab () const
synfig::Layer::Handle Layer_Shape::hit_check (synfig::Context context, const synfig::Point &p) const
Color Layer_Shape::get_color (Context context, const Point &p) const
static bool clip_conic (const Point *const p, const ContextRect &r)
static bool clip_cubic (const Point *const p, const ContextRect &r)
static Real max_edges_cubic (const Point *const p)
static Real max_edges_conic (const Point *const p)
void Layer_Shape::move_to (Real x, Real y)
void Layer_Shape::close ()
void Layer_Shape::endpath ()
void Layer_Shape::line_to (Real x, Real y)
void Layer_Shape::conic_to (Real x1, Real y1, Real x, Real y)
void Layer_Shape::conic_to_smooth (Real x, Real y)
void Layer_Shape::curve_to (Real x1, Real y1, Real x2, Real y2, Real x, Real y)
void Layer_Shape::curve_to_smooth (Real x2, Real y2, Real x, Real y)
bool Layer_Shape::render_polyspan (Surface *surface, PolySpan &polyspan, Color::BlendMethod got_blend_method, Color::value_type got_amount) const
bool Layer_Shape::render_polyspan (etl::surface< float > *surface, PolySpan &polyspan) const
bool Layer_Shape::accelerated_render (Context context, Surface *surface, int quality, const RendDesc &renddesc, ProgressCallback *cb) const
bool Layer_Shape::render_shape (Surface *surface, bool useblend, int quality, const RendDesc &renddesc, ProgressCallback *cb) const
bool Layer_Shape::render_shape (surface< float > *surface, int quality, const RendDesc &renddesc, ProgressCallback *cb) const
Rect Layer_Shape::get_bounding_rect () const

Variables

const int MAX_SUBDIVISION_SIZE = 64
const int MIN_SUBDIVISION_DRAW_LEVELS = 4


Detailed Description

Template Header.

Id
layer_shape.cpp,v 1.2 2005/01/24 03:08:18 darco Exp

Define Documentation

#define EPSILON   1e-12
 

#define GAUSSIAN_ADJUSTMENT   (0.05)
 


Typedef Documentation

typedef rect<int> ContextRect
 


Function Documentation

SYNFIG_LAYER_INIT Layer_Shape   ) 
 

SYNFIG_LAYER_SET_NAME Layer_Shape  ,
"shape" 
 

SYNFIG_LAYER_SET_LOCAL_NAME Layer_Shape  ,
_("Shape") 
 

SYNFIG_LAYER_SET_CATEGORY Layer_Shape  ,
_("Internal") 
 

SYNFIG_LAYER_SET_VERSION Layer_Shape  ,
"0.1" 
 

SYNFIG_LAYER_SET_CVS_ID Layer_Shape  ,
"$Id: layer_shape.  cpp,
v 1.2 2005/01/24 03:08:18 darco Exp $" 
 

template<class T>
bool IsZero const T &  n  )  [inline]
 

static void Subd_Conic_Stack Point arc  )  [static]
 

static void Subd_Cubic_Stack Point arc  )  [static]
 

static bool clip_conic const Point *const   p,
const ContextRect r
[inline, static]
 

static bool clip_cubic const Point *const   p,
const ContextRect r
[inline, static]
 

static Real max_edges_cubic const Point *const   p  )  [inline, static]
 

static Real max_edges_conic const Point *const   p  )  [inline, static]
 


Variable Documentation

const int MAX_SUBDIVISION_SIZE = 64
 

const int MIN_SUBDIVISION_DRAW_LEVELS = 4
 


Generated on Fri Jun 23 15:20:50 2006 for synfig by  doxygen 1.4.6