29
#define SP_HATCH_PATH(obj) (dynamic_cast<SPHatchPath*>((SPObject*)obj))
30
#define SP_IS_HATCH_PATH(obj) (dynamic_cast<const SPHatchPath*>((SPObject*)obj) != NULL)
32
32
class SPHatchPath : public SPObject {
35
virtual ~SPHatchPath();
39
void setCurve(SPCurve *curve, bool owner);
35
virtual ~SPHatchPath();
39
void setCurve(SPCurve *curve, bool owner);
41
41
bool isValid() const;
43
43
Inkscape::DrawingItem *show(Inkscape::Drawing &drawing, unsigned int key, Geom::OptInterval extents);
44
44
void hide(unsigned int key);
46
void setStripExtents(unsigned int key, Geom::OptInterval const &extents);
47
Geom::Interval bounds() const;
46
void setStripExtents(unsigned int key, Geom::OptInterval const &extents);
47
Geom::Interval bounds() const;
49
SPCurve *calculateRenderCurve(unsigned key) const;
49
SPCurve *calculateRenderCurve(unsigned key) const;
52
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
53
virtual void release();
54
virtual void set(unsigned int key, const gchar* value);
55
virtual void update(SPCtx* ctx, unsigned int flags);
52
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
53
virtual void release();
54
virtual void set(unsigned int key, const gchar* value);
55
virtual void update(SPCtx* ctx, unsigned int flags);
59
60
View(Inkscape::DrawingShape *arenaitem, int key);
60
61
//Do not delete arenaitem in destructor.
62
65
Inkscape::DrawingShape *arenaitem;
63
66
Geom::OptInterval extents;
66
70
typedef std::list<SPHatchPath::View>::iterator ViewIterator;
67
71
typedef std::list<SPHatchPath::View>::const_iterator ConstViewIterator;
68
72
std::list<View> _display;