a2dVpathSegment Class Reference
[vector path a2dCanvasObject plus segment classes]

Normal straight line segment in a2dVpath. More...

#include <polyver.h>

Inheritance diagram for a2dVpathSegment:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 a2dVpathSegment (double x, double y, a2dPATHSEG type=a2dPATHSEG_LINETO, a2dPATHSEG_END close=a2dPATHSEG_END_OPEN)
 constructor
 a2dVpathSegment (const a2dVpathSegment &other)
 constructor
virtual ~a2dVpathSegment ()
 destructor
virtual a2dVpathSegmentClone ()
 create exact copy
a2dPATHSEG GetType () const
 easy way to test type of segment
bool GetBin () const
 used in processing
void SetBin (bool bin)
 used in processing
a2dPATHSEG_END GetClose () const
 is this segment the closing a part since the last move
void SetClose (a2dPATHSEG_END close)
 set this segment is closing a part since the last move
virtual double Length (const a2dVpathSegment &prev)
 calculate length

Public Attributes

double m_x1
 x endpoint of line
double m_y1
 y endpoint of line
bool m_bin: 1
 Marker for walking over the segments.
a2dPATHSEG m_type: 5
 easy way to test type of segment
a2dPATHSEG_END m_close: 3
 is the path closing here or not


Detailed Description

Normal straight line segment in a2dVpath.

baseclass for segments in a a2dVpath Every segment type in a a2dVpath has this class as Baseclass. It has/maintains the end position of a segment. But for the first point it is a2dVpathSegment to give the begin point too.

Definition at line 871 of file polyver.h.


Constructor & Destructor Documentation

a2dVpathSegment::a2dVpathSegment ( double  x,
double  y,
a2dPATHSEG  type = a2dPATHSEG_LINETO,
a2dPATHSEG_END  close = a2dPATHSEG_END_OPEN 
)

constructor

Parameters:
x endpoint of line
y endpoint of line
type line type ( e.g line to, move to, no stroking )
close endpoint closes the shape.

Definition at line 3518 of file polyver.cpp.


The documentation for this class was generated from the following files:
a2dVpathSegment Class Reference -- Tue Aug 31 18:36:50 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation