diff --git a/src/display/curve.h b/src/display/curve.h
index 0ac5d069e8a08d045af7266d35db895216fa9bb1..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();
Geom::PathVector const & get_pathvector() const;
guint get_length() const;
+ guint get_segment_count() const;
SPCurve * ref();
SPCurve * unref();
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);
NArtBpath const * last_bpath() const;
Geom::Curve const * last_segment() const;
Geom::Path const * last_path() const;
- NArtBpath const * first_bpath() const;
Geom::Curve const * first_segment() const;
Geom::Path const * first_path() const;
NR::Point first_point() const;
//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 */