wxArt2D
|
Normal straight line segment in a2dVertexList and a2dVertexArray. More...
#include <polyver.h>
Public Member Functions | |
a2dLineSegment (double x=0, double y=0) | |
constructor More... | |
a2dLineSegment (const a2dPoint2D &point) | |
a2dLineSegment (const a2dLineSegment &other) | |
virtual a2dLineSegment * | Clone () |
create exact copy | |
bool | GetArc () const |
int | GetPointCount () const |
bool | GetBin () const |
void | SetBin (bool bin) |
virtual double | Length (const a2dLineSegment &prev) |
calculate length | |
a2dPoint2D | GetPoint () |
void | SetPoint (a2dPoint2D pos) |
void | SetSegType (a2dSegType type) |
Set the type of the segment. | |
a2dSegType | GetSegType () |
get the type of the segment | |
virtual a2dBoundingBox | GetBbox (const a2dLineSegment &prev, const a2dAffineMatrix &lworld=a2dIDENTITY_MATRIX) |
Public Attributes | |
double | m_x |
x endpoint of line | |
double | m_y |
y endpoint of line | |
bool | m_bin: 1 |
Marker for walking over the segments. | |
bool | m_arc: 1 |
arc segment | |
unsigned int | m_pntCnt: 2 |
a2dSegType | m_segtype: 3 |
type of segment | |
Friends | |
class | a2dSmrtPtrBase |
Normal straight line segment in a2dVertexList and a2dVertexArray.
baseclass for segments in a a2dVertexList and a2dVertexArray
Every segment type in a a2dVertexList and a2dVertexArray has this class as Baseclass. It has/maintains the end position of a segment. But for the first point it is a2dVertexList and a2dVertexArray to give the begin point too.
a2dLineSegment::a2dLineSegment | ( | double | x = 0 , |
double | y = 0 |
||
) |
constructor
x | endpoint of line |
y | endpoint of line |
Definition at line 203 of file polyver.cpp.