Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

Geom::Path Class Reference

Collaboration diagram for Geom::Path:
Collaboration graph
[legend]

List of all members.

Classes

class  ClosingSegment
class  StitchSegment

Public Types

typedef PathInternal::ConstIterator const_iterator
typedef Sequence::difference_type difference_type
typedef PathInternal::Iterator iterator
typedef PathInternal::Sequence Sequence
typedef Sequence::size_type size_type
enum  Stitching { NO_STITCHING = 0, STITCH_DISCONTINUOUS }

Public Member Functions

std::vector< double > allNearestPoints (Point const &_point, double from, double to) const
std::vector< double > allNearestPoints (Point const &_point) const
void append (D2< SBasis > const &curve, Stitching stitching=NO_STITCHING)
void append (Path const &other, Stitching stitching=NO_STITCHING)
void append (Curve const &curve, Stitching stitching=NO_STITCHING)
template<typename CurveType , typename A , typename B , typename C , typename D , typename E >
void appendNew (A a, B b, C c, D d, E e)
template<typename CurveType , typename A , typename B , typename C , typename D , typename E , typename F , typename G , typename H , typename I >
void appendNew (A a, B b, C c, D d, E e, F f, G g, H h, I i)
template<typename CurveType , typename A >
void appendNew (A a)
template<typename CurveType , typename A , typename B >
void appendNew (A a, B b)
template<typename CurveType , typename A , typename B , typename C >
void appendNew (A a, B b, C c)
template<typename CurveType , typename A , typename B , typename C , typename D >
void appendNew (A a, B b, C c, D d)
template<typename CurveType , typename A , typename B , typename C , typename D , typename E , typename F >
void appendNew (A a, B b, C c, D d, E e, F f)
template<typename CurveType , typename A , typename B , typename C , typename D , typename E , typename F , typename G >
void appendNew (A a, B b, C c, D d, E e, F f, G g)
template<typename CurveType , typename A , typename B , typename C , typename D , typename E , typename F , typename G , typename H >
void appendNew (A a, B b, C c, D d, E e, F f, G g, H h)
void appendPortionTo (Path &p, double f, double t) const
Curve const & at_index (unsigned i) const
Curve const & back () const
Curve const & back_closed () const
Curve const & back_default () const
Curve const & back_open () const
const_iterator begin () const
iterator begin ()
OptRect boundsExact () const
OptRect boundsFast () const
void clear ()
void close (bool closed=true)
bool closed () const
bool empty () const
iterator end ()
const_iterator end () const
const_iterator end_closed () const
const_iterator end_default () const
const_iterator end_open () const
void erase (iterator const &pos, Stitching stitching=NO_STITCHING)
void erase (iterator const &first, iterator const &last, Stitching stitching=NO_STITCHING)
void erase_last ()
Point finalPoint () const
Curve const & front () const
boost::shared_ptr< Curve const > get_ref_at_index (unsigned i)
Point initialPoint () const
void insert (iterator const &pos, Curve const &curve, Stitching stitching=NO_STITCHING)
void insert (iterator const &pos, const_iterator const &first, const_iterator const &last, Stitching stitching=NO_STITCHING)
size_type max_size () const
double nearestPoint (Point const &_point, double from, double to, double *distance_squared=NULL) const
double nearestPoint (Point const &_point, double *distance_squared=NULL) const
std::vector< double > nearestPointPerCurve (Point const &_point) const
bool operator!= (Path const &other) const
Point operator() (double t) const
Path operator* (Matrix const &m) const
Pathoperator*= (Matrix const &m)
bool operator== (Path const &other) const
Curve const & operator[] (unsigned i) const
 Path (Point p=Point())
 Path (const_iterator const &first, const_iterator const &last, bool closed=false)
Point pointAt (double t) const
Path portion (double f, double t) const
Path portion (Interval i) const
void replace (iterator const &replaced, Curve const &curve, Stitching stitching=NO_STITCHING)
void replace (iterator const &replaced, const_iterator const &first, const_iterator const &last, Stitching stitching=NO_STITCHING)
void replace (iterator const &first_replaced, iterator const &last_replaced, const_iterator const &first, const_iterator const &last, Stitching stitching=NO_STITCHING)
void replace (iterator const &first_replaced, iterator const &last_replaced, Curve const &curve, Stitching stitching=NO_STITCHING)
Path reverse () const
std::vector< double > roots (double v, Dim2 d) const
void setFinal (Point const &p)
void setInitial (Point const &p)
size_type size () const
size_type size_closed () const
size_type size_default () const
size_type size_open () const
void start (Point p)
void stitchTo (Point const &p)
void swap (Path &other)
Piecewise< D2< SBasis > > toPwSb () const
double valueAt (double t, Dim2 d) const

Private Member Functions

void check_continuity (Sequence::iterator first_replaced, Sequence::iterator last_replaced, Sequence::iterator first, Sequence::iterator last)
void do_append (Curve *curve)
void do_update (Sequence::iterator first_replaced, Sequence::iterator last_replaced, Sequence::iterator first, Sequence::iterator last)
Sequence const & get_curves () const
Sequence & get_curves ()
void stitch (Sequence::iterator first_replaced, Sequence::iterator last_replaced, Sequence &sequence)
void unshare ()

Static Private Member Functions

static Sequence::iterator seq_iter (iterator const &iter)
static Sequence::const_iterator seq_iter (const_iterator const &iter)

Private Attributes

bool closed_
boost::shared_ptr< Sequence > curves_
ClosingSegmentfinal_

Detailed Description

Definition at line 156 of file path.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index