savecanvas.cpp File Reference

Writeme. More...

#include "savecanvas.h"
#include "general.h"
#include "valuenode.h"
#include "valuenode_subtract.h"
#include "valuenode_animated.h"
#include "valuenode_composite.h"
#include "valuenode_const.h"
#include "valuenode_linear.h"
#include "valuenode_dynamiclist.h"
#include "valuenode_reference.h"
#include "valuenode_segcalctangent.h"
#include "valuenode_segcalcvertex.h"
#include "valuenode_bline.h"
#include "time.h"
#include "keyframe.h"
#include "layer.h"
#include "string.h"
#include "paramdesc.h"
#include <libxml++/libxml++.h>
#include <ETL/stringf>
#include "gradient.h"
#include <errno.h>
#include <libxml/tree.h>

Defines

#define COLOR_VALUE_TYPE_FORMAT   "%f"
#define VECTOR_VALUE_TYPE_FORMAT   "%0.10f"
#define TIME_TYPE_FORMAT   "%0.3f"
#define VIEW_BOX_FORMAT   "%f %f %f %f"

Functions

xmlpp::Element * encode_canvas (xmlpp::Element *root, Canvas::ConstHandle canvas)
xmlpp::Element * encode_value_node (xmlpp::Element *root, ValueNode::ConstHandle value_node, Canvas::ConstHandle canvas)
xmlpp::Element * encode_keyframe (xmlpp::Element *root, const Keyframe &kf, float fps)
xmlpp::Element * encode_real (xmlpp::Element *root, Real v)
xmlpp::Element * encode_time (xmlpp::Element *root, Time t, float=0)
xmlpp::Element * encode_integer (xmlpp::Element *root, int i)
xmlpp::Element * encode_bool (xmlpp::Element *root, bool b)
xmlpp::Element * encode_string (xmlpp::Element *root, const String &str)
xmlpp::Element * encode_vector (xmlpp::Element *root, Vector vect)
xmlpp::Element * encode_color (xmlpp::Element *root, Color color)
xmlpp::Element * encode_angle (xmlpp::Element *root, Angle theta)
xmlpp::Element * encode_segment (xmlpp::Element *root, Segment seg)
xmlpp::Element * encode_bline_point (xmlpp::Element *root, BLinePoint bline_point)
xmlpp::Element * encode_gradient (xmlpp::Element *root, Gradient x)
xmlpp::Element * encode_value (xmlpp::Element *root, const ValueBase &data, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_list (xmlpp::Element *root, std::list< ValueBase > list, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_animated (xmlpp::Element *root, ValueNode_Animated::ConstHandle value_node, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_composite (xmlpp::Element *root, ValueNode_Composite::ConstHandle value_node, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_subtract (xmlpp::Element *root, ValueNode_Subtract::ConstHandle value_node, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_dynamic_list (xmlpp::Element *root, ValueNode_DynamicList::ConstHandle value_node, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_linkable_value_node (xmlpp::Element *root, LinkableValueNode::ConstHandle value_node, Canvas::ConstHandle canvas=0)
xmlpp::Element * encode_layer (xmlpp::Element *root, Layer::ConstHandle layer)
bool synfig::save_canvas (const String &filename, Canvas::ConstHandle canvas)
 Saves a canvas to filename.
String synfig::canvas_to_string (Canvas::ConstHandle canvas)
 Stores a Canvas in a string in XML format.


Detailed Description

Writeme.

Id
savecanvas.cpp 848 2007-10-06 02:25:36Z dooglus

Define Documentation

#define COLOR_VALUE_TYPE_FORMAT   "%f"

#define VECTOR_VALUE_TYPE_FORMAT   "%0.10f"

#define TIME_TYPE_FORMAT   "%0.3f"

#define VIEW_BOX_FORMAT   "%f %f %f %f"


Function Documentation

xmlpp::Element * encode_canvas ( xmlpp::Element *  root,
Canvas::ConstHandle  canvas 
)

xmlpp::Element * encode_value_node ( xmlpp::Element *  root,
ValueNode::ConstHandle  value_node,
Canvas::ConstHandle  canvas 
)

xmlpp::Element* encode_keyframe ( xmlpp::Element *  root,
const Keyframe kf,
float  fps 
)

xmlpp::Element* encode_real ( xmlpp::Element *  root,
Real  v 
)

xmlpp::Element* encode_time ( xmlpp::Element *  root,
Time  t,
float  = 0 
)

xmlpp::Element* encode_integer ( xmlpp::Element *  root,
int  i 
)

xmlpp::Element* encode_bool ( xmlpp::Element *  root,
bool  b 
)

xmlpp::Element* encode_string ( xmlpp::Element *  root,
const String &  str 
)

xmlpp::Element* encode_vector ( xmlpp::Element *  root,
Vector  vect 
)

xmlpp::Element* encode_color ( xmlpp::Element *  root,
Color  color 
)

xmlpp::Element* encode_angle ( xmlpp::Element *  root,
Angle  theta 
)

xmlpp::Element* encode_segment ( xmlpp::Element *  root,
Segment  seg 
)

xmlpp::Element* encode_bline_point ( xmlpp::Element *  root,
BLinePoint  bline_point 
)

xmlpp::Element* encode_gradient ( xmlpp::Element *  root,
Gradient  x 
)

xmlpp::Element * encode_value ( xmlpp::Element *  root,
const ValueBase data,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_list ( xmlpp::Element *  root,
std::list< ValueBase list,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_animated ( xmlpp::Element *  root,
ValueNode_Animated::ConstHandle  value_node,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_composite ( xmlpp::Element *  root,
ValueNode_Composite::ConstHandle  value_node,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_subtract ( xmlpp::Element *  root,
ValueNode_Subtract::ConstHandle  value_node,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_dynamic_list ( xmlpp::Element *  root,
ValueNode_DynamicList::ConstHandle  value_node,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_linkable_value_node ( xmlpp::Element *  root,
LinkableValueNode::ConstHandle  value_node,
Canvas::ConstHandle  canvas = 0 
)

xmlpp::Element* encode_layer ( xmlpp::Element *  root,
Layer::ConstHandle  layer 
)


Generated on Wed Dec 12 03:11:41 2007 for synfig by  doxygen 1.5.4