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

Normal straight line segment in a2dVpath. More...

#include <polyver.h>

Inheritance diagram for a2dVpathSegment:
Inheritance graph
[legend]

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 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 (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
 

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 878 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
xendpoint of line
yendpoint of line
typeline type ( e.g line to, move to, no stroking )
closeendpoint closes the shape.

Definition at line 3531 of file polyver.cpp.


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