a2dWalker_LayerCanvasObjects Class Reference
[Algorithms on hierarchy in a2dDocument]

algorithm to delete a2dCanvasObjects on layers or to move, copy to other layers More...

#include <algos.h>

Inheritance diagram for a2dWalker_LayerCanvasObjects:

Inheritance graph
[legend]
Collaboration diagram for a2dWalker_LayerCanvasObjects:

Collaboration graph
[legend]

List of all members.

Public Types

typedef long Operation

Public Member Functions

 a2dWalker_LayerCanvasObjects (a2dCanvasObjectFlagsMask mask=a2dCanvasOFlags::ALL)
 constructor with no a2dPropertyId added yet. For that use AddPropertyId()
 a2dWalker_LayerCanvasObjects (const a2dPropertyId *id, a2dCanvasObjectFlagsMask mask=a2dCanvasOFlags::ALL)
 constructor with a2dPropertyId added to the propertyIsList to search for.
 a2dWalker_LayerCanvasObjects (const a2dPropertyIdList &idList, a2dCanvasObjectFlagsMask mask=a2dCanvasOFlags::ALL)
 constructor with the propertyIdList to search for as input
 ~a2dWalker_LayerCanvasObjects ()
 destructor
void Initialize ()
 used from constructor
virtual bool WalkTask (wxObject *parent, wxObject *object, a2dWalkEvent event)
 called from within a2dCanvasDocument
void SetOperation (Operation operation)
 set type of operation
void SetRadiusMin (double radiusMin)
 Polygon/polyline to Arc Minimum radius to test.
void SetRadiusMax (double radiusMax)
 Polygon/polyline to Arc Maximum radius to test.
void SetAberPolyToArc (double aber)
 Polygon/polyline to Arc Maximum abberation.
void SetDetectCircle (bool detectCircle)
bool GetDetectCircle ()
 see SetDetectCircle
double GetCalculatedArea ()
 in areaLayers returns calculated area sofar.

Static Public Attributes

static const long moveLayers = wxGenNewId()
 move layers to target
static const long copyLayers = wxGenNewId()
 copy layers to target
static const long deleteLayers = wxGenNewId()
 delete layers
static const long ConvertToArcs = wxGenNewId()
 convert segments in polygon/polyline objects in group A to Arcs where possible
static const long ConvertToPolygonPolylinesWithArcs = wxGenNewId()
 convert to simple polygons and polylines preserve arcs
static const long ConvertToPolygonPolylinesWithoutArcs = wxGenNewId()
 convert to simple polygons and polylines
static const long ConvertPolygonToArcs = wxGenNewId()
 convert segments in polygon/polyline with width objects in group A to Arcs where possible
static const long ConvertPolylineToArcs = wxGenNewId()
 convert segments in polyline objects in group A to Arcs where possible
static const long ConvertToVPaths = wxGenNewId()
 convert shapes to vector paths
static const long ConvertLinesArcs = wxGenNewId()
 convert shapes to seperate lines and arcs
static const long ConvertToPolylines = wxGenNewId()
 convert shapes to polylines even if polygons
static const long RemoveRedundant = wxGenNewId()
 remove redundant segment
static const long areaLayers = wxGenNewId()
 calculate area of objects

Protected Member Functions

void AddArea (a2dCanvasObject *getAsPolyObject)

Protected Attributes

double m_radiusMin
 Polygon/polyline to Arc Minimum radius to test.
double m_radiusMax
 Polygon/polyline to Arc Maximum radius to test.
double m_AberPolyToArc
 Polygon/polyline to Arc Maximum abberation.
bool m_detectCircle
double m_calculatedArea
Operation m_operation
 id for operation


Detailed Description

algorithm to delete a2dCanvasObjects on layers or to move, copy to other layers

groupA and groupB are filled with layer numbers. Next one calls a valid operation, which is can be:

a2dCanvasObjects with the flag a2dCanvasOFlags::m_ignoreLayer set, will be ignored here.

Definition at line 797 of file algos.h.


Member Function Documentation

void a2dWalker_LayerCanvasObjects::SetDetectCircle ( bool  detectCircle  )  [inline]

if after polygon conversion to arcs end up as one arc segment forming a circle, add a circle object to target and not a polygon.

Definition at line 860 of file algos.h.


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