#ifndef SEEN_SP_MARKER_H
#define SEEN_SP_MARKER_H
/*
* SVG <marker> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2003 Lauris Kaplinski
* Copyright (C) 2008 Johan Engelen
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/*
* This is quite similar in logic to <svg>
* Maybe we should merge them somehow (Lauris)
*/
#include <map>
#include "enums.h"
#include "svg/svg-length.h"
#include "svg/svg-angle.h"
#include "sp-item-group.h"
#include "uri-references.h"
#include "viewbox.h"
enum markerOrient {
};
SPMarker();
/* units */
unsigned int markerUnits_set : 1;
unsigned int markerUnits : 1;
/* reference point */
/* dimensions */
/* orient */
unsigned int orient_set : 1;
/* Private views indexed by key that corresponds to a
* particular marker type (start, mid, end) on a particular
* path. SPMarkerView is a wrapper for a vector of pointers to
* Inkscape::DrawingItem instances, one pointer for each
* rendered marker.
*/
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual Inkscape::DrawingItem* private_show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
};
}
}
};
const char *generate_marker (std::vector<Inkscape::XML::Node*> &reprs, Geom::Rect bounds, SPDocument *document, Geom::Point center, Geom::Affine move);
#endif