a2dLineSegment Class Reference
[vector path a2dCanvasObject plus segment classes]

Normal straight line segment in a2dVertexList and a2dVertexArray. More...

#include <polyver.h>

Inheritance diagram for a2dLineSegment:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 a2dLineSegment (double x=0, double y=0)
 constructor
 a2dLineSegment (const a2dPoint2D &point)
 a2dLineSegment (const a2dLineSegment &other)
virtual a2dLineSegmentClone ()
 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 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


Detailed Description

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.

Definition at line 160 of file polyver.h.


Constructor & Destructor Documentation

a2dLineSegment::a2dLineSegment ( double  x = 0,
double  y = 0 
)

constructor

Parameters:
x endpoint of line
y endpoint of line

Definition at line 203 of file polyver.cpp.


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