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_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)
xmlpp::Element * encode_canvas_toplevel (xmlpp::Element *root, Canvas::ConstHandle canvas)
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.
void synfig::set_file_version (ReleaseVersion version)
ReleaseVersion synfig::get_file_version ()

Variables

ReleaseVersion save_canvas_version = ReleaseVersion(RELEASE_VERSION_END-1)
int valuenode_too_new_count


Detailed Description

Writeme.

$Id$


Define Documentation

#define COLOR_VALUE_TYPE_FORMAT   "%f"

Referenced by encode_color().

#define VECTOR_VALUE_TYPE_FORMAT   "%0.10f"

Referenced by encode_real(), and encode_vector().

#define TIME_TYPE_FORMAT   "%0.3f"

Referenced by encode_canvas().

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

Referenced by encode_canvas().


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 
)

References synfig::Time::get_string().

Referenced by encode_value().

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

Referenced by encode_value().

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

Referenced by encode_value().

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

Referenced by encode_value().

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 
)

Referenced by encode_value().

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 
)

References encode_value().

Referenced by encode_value().

xmlpp::Element* encode_animated ( xmlpp::Element *  root,
ValueNode_Animated::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 
)

References encode_value_node().

Referenced by encode_value_node().

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 
)

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


Variable Documentation


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