diff --git a/src/display/curve.h b/src/display/curve.h
index 7dee3dbf10316c62020759f67dcc47e52c6a13d7..6697987cafe9fd2cc48a7e41486f8a66cad05bf7 100644 (file)
--- a/src/display/curve.h
+++ b/src/display/curve.h
#include <glib/gslist.h>
#include <2geom/forward.h>
-#include <2geom/point.h>
#include "libnr/nr-forward.h"
#include "libnr/nr-rect.h"
SPCurve(Geom::PathVector const& pathv);
static SPCurve * new_from_bpath(NArtBpath *bpath);
static SPCurve * new_from_foreign_bpath(NArtBpath const *bpath);
- static SPCurve * new_from_rect(NR::Maybe<NR::Rect> const &rect);
+ static SPCurve * new_from_rect(Geom::Rect const &rect);
virtual ~SPCurve();
SPCurve * copy() const;
GSList * split() const;
+ void transform(NR::Matrix const &m);
void transform(Geom::Matrix const &m);
- void transform(NR::Matrix const &);
- void transform(NR::translate const &);
void stretch_endpoints(NR::Point const &, NR::Point const &);
void move_endpoints(NR::Point const &, NR::Point const &);
void last_point_additive_move(Geom::Point const & p);
//friends:
friend double sp_curve_distance_including_space(SPCurve const *const curve, double seg2len[]);
friend double sp_curve_nonzero_distance_including_space(SPCurve const *const curve, double seg2len[]);
- template<class M> friend void tmpl_curve_transform(SPCurve *const curve, M const &m);
- // this function is the only one who needs read access to _movePos and _posSet
- friend void sp_polygon_set(SPObject *object, unsigned int key, const gchar *value);
-
- static void debug_check( char const * text, SPCurve const * curve);
- static void debug_check( char const * text, bool a);
+ template<class M> friend void tmpl_curve_transform(SPCurve * curve, M const &m);
};
#define SP_CURVE_LENGTH(c) (((SPCurve const *)(c))->get_length())
#define SP_CURVE_BPATH(c) (((SPCurve const *)(c))->get_bpath())
-#define SP_CURVE_SEGMENT(c,i) (((SPCurve const *)(c))->get_bpath() + (i))
+
#endif /* !SEEN_DISPLAY_CURVE_H */