wxArt2D
Public Member Functions | Public Attributes | Friends | List of all members

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

#include <polyver.h>

Inheritance diagram for a2dLineSegment:
Inheritance graph
[legend]

Public Member Functions

 a2dLineSegment (double x=0, double y=0)
 constructor More...
 
 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 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
 

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 163 of file polyver.h.

Constructor & Destructor Documentation

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

constructor

Parameters
xendpoint of line
yendpoint of line

Definition at line 203 of file polyver.cpp.


The documentation for this class was generated from the following files:
a2dLineSegment Class Reference -- Sun Oct 12 2014 17:04:41 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation