wxArt2D
|
Normal straight line segment in a2dVpath. More...
#include <polyver.h>
Public Member Functions | |
a2dVpathSegment (double x, double y, a2dPATHSEG type=a2dPATHSEG_LINETO, a2dPATHSEG_END close=a2dPATHSEG_END_OPEN) | |
constructor More... | |
a2dVpathSegment (const a2dVpathSegment &other) | |
constructor | |
virtual | ~a2dVpathSegment () |
destructor | |
virtual a2dVpathSegment * | Clone () |
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 (a2dSmrtPtr< 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 | |
Friends | |
class | a2dSmrtPtrBase |
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.
a2dVpathSegment::a2dVpathSegment | ( | double | x, |
double | y, | ||
a2dPATHSEG | type = a2dPATHSEG_LINETO , |
||
a2dPATHSEG_END | close = a2dPATHSEG_END_OPEN |
||
) |
constructor
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 3531 of file polyver.cpp.