void* data;
}URL;
-typedef struct vertice_t{
+typedef struct Vertex_t{
float x,y;
float radius1,angle1;
float radius2,angle2;
bool split;
-}Vertice;
+}Vertex;
typedef struct bline_t{
- std::list<Vertice*> *points;
+ std::list<Vertex*> *points;
bool loop;
String* bline_id;
String* offset_id;
ColorStop* newColorStop(String color,float opacity,float pos);
LinearGradient* newLinearGradient(String name,float x1,float y1, float x2,float y2,std::list<ColorStop*> *stops, Matrix* transform);
RadialGradient* newRadialGradient(String name,float cx,float cy,float r,std::list<ColorStop*> *stops, Matrix* transform);
- BLine* newBLine(std::list<Vertice*> *points,bool loop);
+ BLine* newBLine(std::list<Vertex*> *points,bool loop);
/* === BUILDS ===================================== */
void build_transform(xmlpp::Element* root,Matrix* mtx);
void build_gamma(xmlpp::Element* root,float gamma);
void build_rotate(xmlpp::Element* root,float dx,float dy,float angle);
void build_translate(xmlpp::Element* root,float dx,float dy);
- void build_points(xmlpp::Element* root,std::list<Vertice*> p);
- void build_vertice(xmlpp::Element* root , Vertice *p);
- void build_bline(xmlpp::Element* root,std::list<Vertice*> p,bool loop,String blinegui);
+ void build_points(xmlpp::Element* root,std::list<Vertex*> p);
+ void build_vertex(xmlpp::Element* root , Vertex *p);
+ void build_bline(xmlpp::Element* root,std::list<Vertex*> p,bool loop,String blineguid);
void build_param (xmlpp::Element* root,String name,String type,String value);
void build_param (xmlpp::Element* root,String name,String type,float value);
void build_param (xmlpp::Element* root,String name,String type,int value);
void build_vector (xmlpp::Element* root,String name,float x,float y,String guid);
void build_color(xmlpp::Element* root,float r,float g,float b,float a);
xmlpp::Element* nodeStartBasicLayer(xmlpp::Element* root);
+ xmlpp::Element* nodeStartBasicLayer(xmlpp::Element* root, String name);
/* === COORDINATES & TRANSFORMATIONS ============== */
//points,etc
void coor2vect(float *x,float *y);
- void setTg2(Vertice* p,float p1x,float p1y,float p2x,float p2y);
- void setTg1(Vertice *p,float p1x,float p1y,float p2x,float p2y);
- void setSplit(Vertice* p,bool val);
- int isFirst(Vertice* nodo,float a, float b);
- Vertice* newVertice(float x,float y);
+ void setTg2(Vertex* p,float p1x,float p1y,float p2x,float p2y);
+ void setTg1(Vertex *p,float p1x,float p1y,float p2x,float p2y);
+ void setSplit(Vertex* p,bool val);
+ int isFirst(Vertex* nodo,float a, float b);
+ Vertex* newVertex(float x,float y);
//matrix operations
Matrix* parser_transform(const String transform);