Main Page | Modules | Class Hierarchy | Class List | Class Members

IpeSegmentSubPath Class Reference
[Ipe Objects]

Subpath consisting of a sequence of IpePathSegment's. More...

Inherits IpeSubPath.

List of all members.

Public Member Functions


Detailed Description

Subpath consisting of a sequence of IpePathSegment's.


Constructor & Destructor Documentation

IpeSegmentSubPath::IpeSegmentSubPath  ) 
 

Create an empty, open subpath.


Member Function Documentation

IpeSubPath::TType IpeSegmentSubPath::Type  )  const [virtual]
 

Return type of this subpath.

Implements IpeSubPath.

virtual bool IpeSegmentSubPath::Closed  )  const [inline, virtual]
 

Is this subpath closed?

Default implementation returns true.

Reimplemented from IpeSubPath.

const IpeSegmentSubPath * IpeSegmentSubPath::AsSegs  )  const [virtual]
 

Return this object as an IpeSegmentSubPath, or else 0.

Reimplemented from IpeSubPath.

IpeSegmentSubPath * IpeSegmentSubPath::AsSegs  )  [virtual]
 

Return this object as an IpeSegmentSubPath, or else 0.

Reimplemented from IpeSubPath.

IpeSubPath * IpeSegmentSubPath::Clone  )  const [virtual]
 

Return a copy of this subpath.

Implements IpeSubPath.

IpeSubPath * IpeSegmentSubPath::Transform const IpeMatrix m  )  const [virtual]
 

Return a transformed copy of this subpath.

Implements IpeSubPath.

void IpeSegmentSubPath::SaveAsXml IpeStream stream  )  const [virtual]
 

Save subpath to XML stream.

Implements IpeSubPath.

void IpeSegmentSubPath::Draw IpePainter painter  )  const [virtual]
 

Draw subpath (does not call DrawPath()).

Implements IpeSubPath.

void IpeSegmentSubPath::AddToBBox IpeRect box,
const IpeMatrix m
const [virtual]
 

Add subpath to box.

Implements IpeSubPath.

double IpeSegmentSubPath::Distance const IpeVector v,
const IpeMatrix m,
double  bound
const [virtual]
 

Return distance from v to subpath transformed by m.

Implements IpeSubPath.

void IpeSegmentSubPath::SnapVtx const IpeVector mouse,
const IpeMatrix m,
IpeVector pos,
double &  bound
const [virtual]
 

Snap to vertex.

Implements IpeSubPath.

void IpeSegmentSubPath::SnapBnd const IpeVector mouse,
const IpeMatrix m,
IpeVector pos,
double &  bound
const [virtual]
 

Snap to boundary of subpath.

Implements IpeSubPath.

int IpeSegmentSubPath::NumSegments  )  const [inline]
 

Return number of segments.

This does not include the closing segment for a closed path.

IpePathSegment IpeSegmentSubPath::Segment int  i  )  const
 

Return segment.

If i is negative, elements from the end are returned. The closing segment of a closed path is not accessible this way (use ClosingSegment instead)!

IpePathSegment IpeSegmentSubPath::ClosingSegment IpeVector  u[2]  )  const
 

Returns the closing segment of a closed path.

Since the closing segment isn't actually stored inside this object, you have to provide a length-2 vector for the control points.

void IpeSegmentSubPath::Append const IpePathSegment seg  ) 
 

Append a segment (from a different path) to the subpath.