wxArt2D
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
a2dHabitat Class Reference

defines common settinsg for a habitat for a set of a2dCameleons. More...

#include <canglob.h>

Inheritance diagram for a2dHabitat:
Inheritance graph
[legend]
Collaboration diagram for a2dHabitat:
Collaboration graph
[legend]

Public Member Functions

 a2dHabitat (wxUint16 maximumLayers=wxDEFAULTMAXLAYER)
 
void Init (a2dLayers *layers=NULL)
 
void SetDefaultUnitsScale (double scale)
 
double GetDefaultUnitsScale ()
 
double USERUNITS ()
 how accurate is the drawing
 
double PHYSUNITS ()
 how many meters is 1 unit in the database
 
void USERUNITS (double userunit)
 how accurate is the drawing
 
void PHYSUNITS (double physicalunit)
 how many meters is 1 unit in the database
 
double ENTRYUNITS ()
 entry of data
 
double POLYTOARCRMIN ()
 
double POLYTOARCRMAX ()
 
double POLYTOARCABER ()
 
double ARCTOPOLYABER ()
 
double ACCUR ()
 
a2dLayersGetLayerSetup ()
 Get the central layersettings for the canvas library. More...
 
void SetLayerSetup (a2dLayers *layersetup)
 set the layersettings for the canvas library. More...
 
void SetSymbolLayer (wxUint16 layerId)
 
wxUint16 GetSymbolLayer ()
 
void SetMaxLayer (wxUint16 nrLayers)
 
wxUint16 GetMaxLayer ()
 
bool LoadLayers (const wxString &filename)
 
void SetPinSize (double size)
 
double GetPinSize ()
 
void SetHandleSize (double size)
 
double GetHandleSize ()
 
void SetPin (a2dPin *newpin)
 set default pin for graph like structure
 
a2dPinGetPin ()
 get default pin for graph like structure
 
void SetPinCanConnect (a2dPin *newpin)
 
a2dPinGetPinCanConnect ()
 represents the pin styles for pins that can connect right now More...
 
void SetPinCannotConnect (a2dPin *newpin)
 
a2dPinGetPinCannotConnect ()
 represnts the pin styles for pins that cannot connect right now More...
 
void SetHandle (a2dHandle *newhandle)
 set default handle for editing
 
a2dHandleGetHandle ()
 get default handle for editing
 
a2dTextGetPropertyText ()
 default text for displaying properties.
 
a2dStrokeGetHighLightStroke ()
 Get Stroke to use for Highlighted a2dCanvasObject's.
 
a2dFillGetHighLightFill ()
 Get Fill to use for Highlighted a2dCanvasObject's.
 
void SetHighLightStroke (const a2dStroke &stroke)
 Set Stroke to use for Highlighted a2dCanvasObject's.
 
void SetHighLightFill (const a2dFill &fill)
 Set Fill to use for Highlighted a2dCanvasObject's.
 
a2dStrokeGetSelectStroke ()
 Get Stroke to use for Selected a2dCanvasObject's.
 
a2dFillGetSelectFill ()
 Get Fill to use for Selected a2dCanvasObject's.
 
a2dStrokeGetSelect2Stroke ()
 Get Stroke to use for Selected2 a2dCanvasObject's.
 
a2dFillGetSelect2Fill ()
 Get Fill to use for Selected2 a2dCanvasObject's.
 
void SetSelectStroke (const a2dStroke &stroke)
 Set Stroke to use for Selected a2dCanvasObject's.
 
void SetSelectFill (const a2dFill &fill)
 Set Fill to use for Selected a2dCanvasObject's.
 
void SetSelect2Stroke (const a2dStroke &stroke)
 Set Stroke to use for Selected2 a2dCanvasObject's.
 
void SetSelect2Fill (const a2dFill &fill)
 Set Fill to use for Selected2 a2dCanvasObject's.
 
void SetSelectDrawStyle (a2dDocumentRenderStyle drawstyle)
 sets draw style to be used for selected object
 
a2dDocumentRenderStyle GetSelectDrawStyle () const
 returns draw style to be used for selected object
 
void SetDrawStyle (wxUint32 drawstyle)
 
wxUint32 GetDrawStyle ()
 get drawstyles used for drawing the document
 
a2dStrokeGetDefaultStroke ()
 Get Stroke to use for non layered a2dCanvasObject's.
 
a2dFillGetDefaultFill ()
 Get Fill to use for non layered a2dCanvasObject's.
 
void SetDefaultStroke (const a2dStroke &stroke)
 Set Stroke to use for non layered a2dCanvasObject's.
 
void SetDefaultFill (const a2dFill &fill)
 Set Fill to use for non layered a2dCanvasObject's.
 
void SetRestrictionEngine (a2dRestrictionEngine *restrict)
 Set restriction engine (grid snapping) used normally.
 
a2dRestrictionEngineGetRestrictionEngine ()
 Get restriction engine (grid snapping)
 
void SetConnectionGenerator (a2dConnectionGenerator *connectionGenerator)
 Set class for generating new connection objects between object and pins.
 
a2dConnectionGeneratorGetConnectionGenerator () const
 Get class for generating new connection objects between object and pins.
 
wxUint16 GetHitMarginDevice () const
 hit marging in pixels. More...
 
void SetHitMarginDevice (wxUint16 val)
 hit marging in pixels. More...
 
double GetHitMarginWorld () const
 hit marging in world units. More...
 
void SetHitMarginWorld (double val)
 hit marging in world units. More...
 
double GetCopyMinDistance () const
 get minimum distance of copied object from original
 
void SetCopyMinDistance (double val)
 set minimum distance of copied object from original
 
double GetCoordinateEpsilon () const
 coordinates below this distance will be trated as equal More...
 
void SetCoordinateEpsilon (double val)
 
void SetReverseOrder (bool reverse_order)
 Set to draw layers in reverse order.
 
bool GetReverseOrder () const
 Get Setting for draw layers in reverse order.
 
void SetRouteOneLine (bool oneLine)
 set true result in having straight lines rerouted between begin and end pin
 
bool GetRouteOneLine () const
 see SetRouteOneLine()
 
void SetGroupA (const a2dLayerGroup &groupA)
 sets operand A in layer operation
 
void SetGroupB (const a2dLayerGroup &groupB)
 sets operand B in layer operation
 
a2dLayerGroupGetGroupA ()
 return group A layers
 
a2dLayerGroupGetGroupB ()
 return group B layers
 
void AddGroupA (wxUint16 layer)
 add layer to group A layers
 
void AddGroupB (wxUint16 layer)
 add layer to group B layers
 
void SetTarget (wxUint16 target)
 set target layer in operation
 
wxUint16 GetTarget ()
 get target layer in operation
 
void SetSelectedOnlyA (bool selectedOnlyA)
 set selectedOnlyA in group operations
 
bool GetSelectedOnlyA () const
 get selectedOnlyA in group operations
 
void SetSelectedOnlyB (bool selectedOnlyB)
 set selectedOnlyB in group operations
 
bool GetSelectedOnlyB () const
 get selectedOnlyB in group operations
 
void SetBooleanEngineMarge (const a2dDoMu &marge)
 boolean engine setting
 
void SetBooleanEngineGrid (long grid)
 boolean engine setting
 
void SetBooleanEngineDGrid (double dgrid)
 boolean engine setting
 
void SetBooleanEngineCorrectionAber (const a2dDoMu &aber)
 boolean engine setting
 
void SetBooleanEngineCorrectionFactor (const a2dDoMu &aber)
 boolean engine setting
 
void SetBooleanEngineMaxlinemerge (const a2dDoMu &maxline)
 boolean engine setting
 
void SetBooleanEngineWindingRule (bool rule)
 boolean engine setting
 
void SetBooleanEngineRoundfactor (double roundfac)
 boolean engine setting
 
void SetBooleanEngineSmoothAber (const a2dDoMu &aber)
 
void SetBooleanEngineLinkHoles (bool doLinkHoles)
 
void SetRadiusMin (const a2dDoMu &radiusMin)
 Polygon/polyline to Arc Minimum radius to test.
 
void SetRadiusMax (const a2dDoMu &radiusMax)
 Polygon/polyline to Arc Maximum radius to test.
 
void SetAberPolyToArc (const a2dDoMu &aber)
 Polygon/polyline to Arc Maximum abberation. More...
 
void SetAberArcToPoly (const a2dDoMu &aber)
 Arc to Polygon/polyline Maximum abberation. More...
 
void SetSmall (const a2dDoMu &smallest)
 detection of small object, smaller than this
 
bool GdsIoSaveTextAsPolygon (bool onOff)
 
bool KeyIoSaveTextAsPolygon (bool onOff)
 
bool GetGdsIoSaveTextAsPolygon () const
 
bool GetKeyIoSaveTextAsPolygon () const
 
const a2dDoMuGetRadiusMin () const
 Polygon/polyline to Arc Minimum radius to test.
 
const a2dDoMuGetRadiusMax () const
 Polygon/polyline to Arc Maximum radius to test.
 
const a2dDoMuGetAberPolyToArc () const
 Polygon/polyline to Arc Maximum abberation.
 
const a2dDoMuGetAberArcToPoly () const
 Arc to Polygon/polyline Maximum abberation.
 
const a2dDoMuGetSmall () const
 detection of small object, smaller than this
 
void SetGridX (const a2dDoMu &gridX)
 grid setting X
 
void SetGridY (const a2dDoMu &gridY)
 grid setting Y
 
const a2dDoMuGetBooleanEngineMarge () const
 boolean engine setting
 
long GetBooleanEngineGrid () const
 boolean engine setting
 
double GetBooleanEngineDGrid () const
 boolean engine setting
 
const a2dDoMuGetBooleanEngineCorrectionAber () const
 boolean engine setting
 
const a2dDoMuGetBooleanEngineCorrectionFactor () const
 boolean engine setting
 
const a2dDoMuGetBooleanEngineMaxlinemerge () const
 boolean engine setting
 
bool GetBooleanEngineWindingRule () const
 boolean engine setting
 
double GetBooleanEngineRoundfactor () const
 boolean engine setting
 
const a2dDoMuGetBooleanEngineSmoothAber () const
 boolean engine setting
 
bool GetBooleanEngineLinkHoles () const
 boolean engine setting
 
void SetClearTarget (bool clearTarget)
 set clear of target in group operations More...
 
bool GetClearTarget () const
 get clear of target in group operations
 
void SetLastXyEntry (double x, double y)
 set last mouse X position in world coordinates, as set by tools. More...
 
double GetLastXEntry () const
 holds last mouse X position in world coordinates, as set by tools.
 
double GetLastYEntry () const
 holds last mouse Y position in world coordinates, as set by tools.
 
void SetRelativeStart (double x, double y)
 set RelativeStart measurement X and Y position in world coordinates More...
 
double GetRelativeStartX () const
 holds last RelativeStart measurement X position in world coordinates
 
double GetRelativeStartY () const
 holds last RelativeStart measurement Y position in world coordinates
 
const a2dStrokeGetStroke () const
 get the current stroke More...
 
const a2dFillGetFill () const
 get the current fill More...
 
void SetStroke (const a2dStroke &stroke)
 used for new objects etc. to set the stroke
 
void SetStroke (const unsigned char red, const unsigned char green, const unsigned char blue)
 used for new objects etc. to set the stroke
 
void SetFill (const a2dFill &fill)
 used for new objects etc. to set the fill More...
 
void SetFill (const unsigned char red, const unsigned char green, const unsigned char blue)
 used for new objects etc. to set the fill
 
bool GetSpline () const
 certain drawing tools like polygon drawing use this setting
 
void SetSpline (bool spline)
 
a2dCanvasObjectGetLineBegin () const
 get current line begin object for line and polyline. More...
 
a2dCanvasObjectGetLineEnd () const
 get current line end object for line and polyline. More...
 
void SetLineBegin (a2dCanvasObject *begin)
 set current line begin object for line and polyline.
 
void SetLineEnd (a2dCanvasObject *end)
 set current line end object for line and polyline.
 
void SetEndScaleX (double xs)
 scaling in X for begin and end objects of lines and polylines
 
void SetEndScaleY (double ys)
 scaling in Y for begin and end objects of lines and polylines
 
double GetEndScaleX () const
 get scaling in X for begin and end objects of lines and polylines
 
double GetEndScaleY () const
 get scaling in Y for begin and end objects of lines and polylines
 
void SetContourWidthInDataBaseUnits (double width)
 set the Contour width of shapes defined in database units
 
void SetContourWidth (const a2dDoMu &currentContourWidth)
 set the Contour width of shapes
 
double GetContourWidthInDataBaseUnits () const
 get the Contour width of shapes in the document its units More...
 
const a2dDoMuGetContourWidth () const
 get the Contour width of shapes in meters
 
void SetPathType (a2dPATH_END_TYPE pathtype)
 Set when m_contourwidth != 0 what is the end of the line should be.
 
a2dPATH_END_TYPE GetPathType ()
 get when m_contourwidth != 0 what is the end of the line looks like.
 
void SetFont (const a2dFont &font)
 used for to set the font for non Text objects
 
const a2dFontGetFont () const
 get current font active font.
 
void SetTextOwnStyle (bool ownStyle)
 If set, the text objects will use their own style ( GetTextStroke() etc. )
 
bool GetTextOwnStyle () const
 get the current text stroke
 
void SetTextStroke (const a2dStroke &stroke)
 used for new text objects etc. to set the stroke
 
a2dStroke GetTextStroke () const
 get the current text stroke More...
 
void SetTextFill (const a2dFill &fill)
 used for new text objects etc. to set the fill More...
 
a2dFill GetTextFill () const
 get the current text fill More...
 
void SetTextFont (const a2dFont &font)
 used for new text objects etc. to set the font
 
a2dFont GetTextFont () const
 get current font active text font ( like used in text tool ).
 
a2dTextGetTextTemplateObject ()
 set template for line object
 
void SetTextTemplateObject (a2dText *textTemplateobject)
 get template for text objects
 
void SetLayer (wxUint16 layer, bool setStyleOfLayer=false)
 
wxUint16 GetLayer () const
 layer set for new objects.
 
void SetObjectGridSize (double objectGridSize)
 used for objects which depend in size on this grid More...
 
double GetObjectGridSize ()
 used for objects which depend in size on this grid
 
void SetDrawingTemplate (a2dDrawing *drawingTemplate)
 
a2dDrawingGetDrawingTemplate () const
 
void SetSymbolDrawingTemplate (a2dDrawing *drawingTemplate)
 
a2dDrawingGetSymbolDrawingTemplate () const
 
void SetBuildInDrawingTemplate (a2dDrawing *drawingTemplate)
 
a2dDrawingGetBuildInDrawingTemplate () const
 
void SetDiagramDrawingTemplate (a2dDrawing *drawingTemplate)
 
a2dDrawingGetDiagramDrawingTemplate () const
 
void SetGuiDrawingTemplate (a2dDrawing *drawingTemplate)
 
a2dDrawingGetGuiDrawingTemplate () const
 
a2dNextSeg GetEndSegmentMode ()
 a2dDrawWirePolylineLTool segment mode initilization
 
void SetEndSegmentMode (a2dNextSeg mode)
 a2dDrawWirePolylineLTool segment mode initilization
 
- Public Member Functions inherited from a2dObject
virtual bool ProcessEvent (wxEvent &event)
 
bool SearchDynamicEventTable (wxEvent &event)
 
void Connect (int winid, int lastId, int eventType, wxObjectEventFunction func, wxObject *userData=(wxObject *) NULL, wxEvtHandler *eventSink=(wxEvtHandler *) NULL)
 
bool Disconnect (int winid, int lastId, wxEventType eventType, wxObjectEventFunction func=NULL, wxObject *userData=(wxObject *) NULL, wxEvtHandler *eventSink=(wxEvtHandler *) NULL)
 
void ProcessConnectedEvent (wxEvent &event)
 wxCHECK_VERSION(2,9,0) More...
 
void ConnectEvent (wxEventType type, wxEvtHandler *eventSink)
 
bool DisconnectEvent (wxEventType type, wxEvtHandler *eventSink)
 
bool DisconnectEventAll (wxEvtHandler *eventSink)
 Remove all dynamic events in classA, going to classB (eventSink) More...
 
 a2dObject ()
 constructor
 
virtual ~a2dObject ()
 destructor
 
void operator= (const a2dObject &other)
 assignment operator
 
int GetOwnedBy ()
 like it to be protected, but this does not work with wxList macros More...
 
virtual a2dObjectSetNonDynamic ()
 Call to mark this object as non-dynamic (static/local/auto) More...
 
void CheckReferences ()
 Check zero reference count and delete if count is 0. More...
 
a2dObjectClone (CloneOptions options, a2dRefMap *refs=NULL) const
 create an exact copy of this property
 
 a2dObject (const a2dObject &other, CloneOptions options, a2dRefMap *refs)
 
virtual wxString GetName () const
 Returns the name of this object, if no name is given the internal id will be returned. More...
 
virtual void SetName (const wxString &name)
 Creates the a2dStringProperty PROPID_Name. More...
 
virtual bool IsTemporary_DontSave () const
 Check if this is a temporary object, which should not be saved.
 
void SaveAsDocument (a2dIOHandlerXmlSerOut &out)
 Save this object and all below as an XML document. More...
 
virtual void Save (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dObjectList *towrite)
 write all needed to an XML type of file called the CVG format More...
 
void LoadFromDocument (a2dIOHandlerXmlSerIn &parser)
 Load this object and all below from an XML document. More...
 
virtual void Load (wxObject *parent, a2dIOHandlerXmlSerIn &parser)
 load object from CVG file More...
 
wxInt64 GetUniqueSerializationId () const
 return a unique id for this object More...
 
virtual bool AlwaysWriteSerializationId () const
 If true, always write an id. More...
 
virtual bool LinkReference (a2dObject *other)
 link a reference in the object to the given value More...
 
virtual void ResolveInform ()
 inform an object that reference resolution was done More...
 
void Walker (wxObject *parent, a2dWalkerIOHandler &handler)
 This is used to recursively walk through an object tree.
 
void SetCheck (bool check)
 general flag use at will. More...
 
bool GetCheck () const
 general flag use at will.
 
void SetRelease (bool value)
 set release flag More...
 
bool GetRelease () const
 get release flag More...
 
a2dAutoZeroPtr< a2dObject > ** GetAutoZeroPtrList ()
 return the list head pointer for autozero pointers to this object More...
 
 DECLARE_PROPERTIES ()
 
a2dNamedPropertyGetProperty (const a2dPropertyId *propertyId, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) const
 get property on this object More...
 
void SetProperty (a2dNamedProperty *propertyHolder, a2dPropertyId::SetFlags flags=a2dPropertyId::set_none)
 Set the property to the this object. More...
 
void SetProperty (const a2dNamedProperty &propertyHolder, a2dPropertyId::SetFlags flags=a2dPropertyId::set_none)
 Set the property to the this object and if enabled, to all childs and object members. More...
 
virtual a2dNamedPropertyFindProperty (const a2dPropertyId *id, a2dPropertyId::Flags flags=a2dPropertyId::flag_none)
 Find a dynamic property with given id in the property list. More...
 
virtual const a2dNamedPropertyFindProperty (const a2dPropertyId *id, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) const
 Find a dynamic property with given id in the property list. More...
 
virtual bool HasProperty (const a2dPropertyId *id, const wxString &stringvalue=wxEmptyString) const
 Check if the object has a property with given id and string representation. More...
 
virtual void OnPropertyChanged (const a2dPropertyId *id)
 This function is called after a property changed. More...
 
virtual bool EditProperties (const a2dPropertyId *id, bool withUndo=true)
 edit properties of the object More...
 
void TakeOverProperties (a2dObject *from, a2dPropertyIdList *listOfIds)
 Properties in the id list are taken from the given object, en set to this. More...
 
wxURI GetURI () const
 quick way to get to PROPID_URI property More...
 
void SetURI (const wxURI &url)
 quickly set a property PROPID_URI More...
 
const a2dNamedPropertyListGetPropertyList () const
 Get the Property List. More...
 
bool HasDynamicProperties () const
 test if there are dynamic properties in the m_propertylist
 
virtual bool RemoveProperty (const a2dPropertyId *id, bool all=true)
 This function is called by a2dPropertyId to remove a property from the list. More...
 
void RemoveTemporaryProperties ()
 remove all temporary properties
 
virtual bool AddProperty (a2dNamedProperty *property)
 This function is called by a2dPropertyId to add a property to the list. More...
 

Public Attributes

a2dLayerGroup m_groupA
 for operation on groups of layers
 
a2dLayerGroup m_groupB
 for operation on groups of layers
 
wxUint16 m_target
 target layer in operations
 
bool m_selectedOnlyA
 operations on m_groupA but only selected objects
 
bool m_selectedOnlyB
 operations on m_groupB but only selected objects
 
bool m_clearTarget
 clear target layer before adding results of an operation
 
a2dDoMu m_MARGE
 boolean operation setting
 
long m_GRID
 boolean operation setting
 
double m_DGRID
 boolean operation setting
 
a2dDoMu m_CORRECTIONABER
 boolean operation setting
 
a2dDoMu m_CORRECTIONFACTOR
 boolean operation setting
 
a2dDoMu m_SMOOTHABER
 boolean operation setting
 
a2dDoMu m_MAXLINEMERGE
 boolean operation setting
 
bool m_WINDINGRULE
 boolean operation setting
 
double m_ROUNDFACTOR
 boolean operation setting
 
a2dDoMu m_SmoothAber
 boolean operation setting
 
bool m_LinkHoles
 boolean operation setting
 
a2dDoMu m_radiusMin
 Polygon/polyline to Arc Minimum radius to test.
 
a2dDoMu m_radiusMax
 Polygon/polyline to Arc Maximum radius to test.
 
a2dDoMu m_AberPolyToArc
 Polygon/polyline to Arc Maximum abberation.
 
a2dDoMu m_AberArcToPoly
 Arc to Polygon/polyline Maximum abberation.
 
a2dDoMu m_small
 detect samll objects
 
a2dDoMu m_gridX
 canvas default grid in X
 
a2dDoMu m_gridY
 canvas default grid in Y
 
bool m_spline
 spline polygons
 
double m_currentXscale
 begin point scaling
 
double m_currentYscale
 end point scaling
 
a2dDoMu m_currentContourWidth
 current contour width e.g for polyline with width.
 
a2dPATH_END_TYPE m_pathtype
 when m_contourwidth != 0 what is the end of the line/polyline.
 
wxUint16 m_layer
 layer to be set for new objects
 
a2dFont m_font
 current font set
 
double m_lastX
 holds last mouse X position in world coordinates, as set by tools.
 
double m_lastY
 holds last mouse Y position in world coordinates, as set by tools.
 
double m_RelativeStartX
 The RelativeStart start is used when mesuring using a tool, or from the commandline.
 
double m_RelativeStartY
 The RelativeStart start is used when mesuring using a tool, or from the commandline.
 
bool m_keySaveTextAsPolygon
 
bool m_gdsiiSaveTextAsPolygon
 
bool m_keySaveFromView
 
bool m_gdsiiSaveFromView
 
a2dFill m_currentfill
 fill to be set for new objects
 
a2dStroke m_currentstroke
 stroke to be set for new objects
 
a2dCanvasObjectPtr m_currentBegin
 current beginobject for lines and polylines
 
a2dCanvasObjectPtr m_currentEnd
 current endobject for lines and polylines
 

Static Public Attributes

static wxUint16 m_maximumLayers = wxDEFAULTMAXLAYER
 
static const a2dSignal sig_changedFill = wxNewId()
 when active drawing is set, this signal is send to the drawing.
 
static const a2dSignal sig_changedStroke = wxNewId()
 
static const a2dSignal sig_changedFont = wxNewId()
 
static const a2dSignal sig_changedLayer = wxNewId()
 
static const a2dSignal sig_changedTarget = wxNewId()
 
static const a2dSignal sig_SetPathType = wxNewId()
 
static const a2dSignal sig_SetContourWidth = wxNewId()
 
static const a2dSignal sig_changedTextFill = wxNewId()
 
static const a2dSignal sig_changedTextStroke = wxNewId()
 
static const a2dSignal sig_changedTextFont = wxNewId()
 
- Static Public Attributes inherited from a2dObject
static a2dPropertyIdBoolPROPID_Check = NULL
 used for linking multiple referenced objects when serializing
 
static a2dPropertyIdUriPROPID_URI = NULL
 attach an URL to the object
 
static a2dPropertyIdStringPROPID_Name = NULL
 Name property, to return name of this object.
 
static a2dPropertyIdVoidPtrPROPID_autozeroptrlist = NULL
 
static const a2dSignal sm_Edit_properties = wxNewId()
 edit properties event, see EditProperties()
 

Protected Member Functions

virtual a2dObjectDoClone (CloneOptions options, a2dRefMap *refs) const
 
- Protected Member Functions inherited from a2dObject
virtual bool DoIgnoreIfNotMember (const a2dPropertyId *id) const
 used to decide if a property shall be ignored, if it is not a member More...
 
virtual void DoWalker (wxObject *parent, a2dWalkerIOHandler &handler)
 iterate over this object and its children More...
 
virtual void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
 
virtual void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.
 

Protected Attributes

a2dSmrtPtr< a2dLayersm_layersetup
 default setup for layers in a2dCanvasDocument's
 
a2dSmrtPtr< a2dDrawingm_drawingTemplate
 
a2dSmrtPtr< a2dDrawingm_drawingTemplateSymbol
 
a2dSmrtPtr< a2dDrawingm_drawingTemplateDiagram
 
a2dSmrtPtr< a2dDrawingm_drawingTemplateBuildIn
 
a2dSmrtPtr< a2dDrawingm_drawingTemplateGui
 
a2dNextSeg m_endSegmentMode
 
a2dSmrtPtr< a2dTextm_textTemplateObject
 object to clone to use as start
 
bool m_textOwnStyle
 
double m_defPinSize
 
double m_defHandleSize
 
a2dPinPtr m_defPin
 
a2dPinPtr m_defCanConnectPin
 
a2dPinPtr m_defCannotConnectPin
 
a2dHandlePtr m_defHandle
 
a2dSmrtPtr< a2dTextm_propertytext
 
double m_userunits
 
double m_physicalunits
 
double m_default_acc
 
double m_displayaberration
 
double m_arc2polyaber
 
double m_poly2arcMin
 
double m_poly2arcMax
 
double m_poly2arcAber
 
double m_defaultUnitsScale
 
a2dStroke m_HighLightStroke
 Stroke to use for Highlighted a2dCanvasObject's.
 
a2dFill m_HighLightFill
 Fill to use for Highlighted a2dCanvasObject's.
 
a2dStroke m_SelectStroke
 Stroke to use for selected a2dCanvasObject's.
 
a2dFill m_SelectFill
 Fill to use for selected a2dCanvasObject's.
 
a2dStroke m_Select2Stroke
 Stroke to use for selected2 a2dCanvasObject's.
 
a2dFill m_Select2Fill
 Fill to use for selected2 a2dCanvasObject's.
 
a2dStroke m_DefaultStroke
 Stroke to use for non layered a2dCanvasObject's.
 
a2dFill m_DefaultFill
 Fill to use for non layered a2dCanvasObject's.
 
a2dDocumentRenderStyle m_SelectDrawStyle
 draw style to be used for selected object
 
a2dDocumentRenderStyle m_documentDrawStyle
 draw style to be used for drawing with e.g. a2dDrawingPart.
 
a2dRestrictionEnginePtr m_restrictionEngine
 restriction engine to be used usually (if zero don't restrict)
 
a2dConnectionGeneratorPtr m_connectionGenerator
 generator for new connections
 
wxUint16 m_hitmargin_device
 hit marging in pixels. More...
 
double m_hitmargin_world
 hit marging in world units. More...
 
double m_copymindistance
 the minimum distance in world units of a copied object from the original
 
double m_coordinateepsilon
 
bool m_reverse_order
 draw document in reverse order if set, used as default value for a2dCanvasDocument.
 
bool m_oneLine
 used in routing wires to be straight or manhatten
 
wxUint16 m_symbolLayer
 
double m_objectGridSize
 used for objects which depend in size on this grid
 
- Protected Attributes inherited from a2dObject
a2dNamedPropertyList m_propertylist
 properties
 
int m_refcount
 how many references to this object do exist
 
bool m_check: 1
 used for linking multiple referenced objects when serializing
 
bool m_release: 1
 when set object is treated as being deleted, and wil be deleted in idle time.
 
bool m_recursion_active: 1
 this is used as a recursion stopper
 
bool m_pendingDisconnects: 1
 
unsigned int m_iteratorCount
 
a2dAutoZeroPtr< a2dObject > * m_autozeroptrlist
 this is a list of all a2dAutoZeroPtr object pointing to this object
 

Additional Inherited Members

- Public Types inherited from a2dObject
enum  CloneOptions {
  clone_members = 0x00000001, clone_properties = 0x00000002, clone_childs = 0x00000004, clone_unused = 0x00000008,
  clone_setoriginal = 0x00000010, clone_seteditcopy = 0x00000020, clone_noReference = 0x00000040, clone_noCameleonRef = 0x00000080,
  clone_toDrag = 0x00000100, clone_flat = 0x00000000, clone_deep = clone_members | clone_properties | clone_childs
}
 options for cloning More...
 
typedef a2dAutoZeroPtr< a2dObjectTAutoZeroPtrListClass
 this is needed inside the smart pointer template code
 
- Protected Types inherited from a2dObject
enum  { refcount_nondynamic = 0x76543210 }
 special refcount value for non-dynamic objects
 

Detailed Description

defines common settinsg for a habitat for a set of a2dCameleons.

To centralize common settings to be used by all a2dCameleons and nested objects, which are contained in the same habitat. This last is at least the a2dDrawing in which they are placed.

Definition at line 439 of file canglob.h.

Member Function Documentation

double a2dHabitat::GetContourWidthInDataBaseUnits ( ) const

get the Contour width of shapes in the document its units

doc->GetUnitsScale();

Definition at line 1052 of file canglob.cpp.

double a2dHabitat::GetCoordinateEpsilon ( ) const
inline

coordinates below this distance will be trated as equal

This is used e.g. to check if two pins have the same location. This should be the machine presition with the used coordinate resolution

Definition at line 634 of file canglob.h.

const a2dFill& a2dHabitat::GetFill ( ) const
inline

get the current fill

Return the current fill of the current document, if there is no document, return a2dBLACK_FILL

Definition at line 804 of file canglob.h.

wxUint16 a2dHabitat::GetHitMarginDevice ( ) const
inline

hit marging in pixels.

This is used in editing, where a drawer is known and conversion from pixels to world units is possible. a2dCanvasView copies this value in its constructor and it can be changes in a2dCanvasView as well

Definition at line 609 of file canglob.h.

double a2dHabitat::GetHitMarginWorld ( ) const
inline

hit marging in world units.

This is used during command processing, where a drawer is not known.

Definition at line 618 of file canglob.h.

a2dLayers* a2dHabitat::GetLayerSetup ( )
inline

Get the central layersettings for the canvas library.

New a2dCanvasDocument's are initialized with this layer settings. A default Layer Setting is created in the constructor, but this one can be changed.

Definition at line 478 of file canglob.h.

a2dCanvasObject* a2dHabitat::GetLineBegin ( ) const
inline

get current line begin object for line and polyline.

Returns
NULL if not set.

Definition at line 828 of file canglob.h.

a2dCanvasObject* a2dHabitat::GetLineEnd ( ) const
inline

get current line end object for line and polyline.

Returns
NULL if not set.

Definition at line 832 of file canglob.h.

a2dPin * a2dHabitat::GetPinCanConnect ( )

represents the pin styles for pins that can connect right now

This pin is usually bigger than the default pin and green

Definition at line 724 of file canglob.cpp.

a2dPin * a2dHabitat::GetPinCannotConnect ( )

represnts the pin styles for pins that cannot connect right now

This pin is usually smaller than the default pin and red

Definition at line 708 of file canglob.cpp.

const a2dStroke& a2dHabitat::GetStroke ( ) const
inline

get the current stroke

Return the current stroke of the current document, if there is no document, return a2dBLACK_STROKE

Definition at line 797 of file canglob.h.

a2dFill a2dHabitat::GetTextFill ( ) const

get the current text fill

Return the current text fill.

Definition at line 1032 of file canglob.cpp.

a2dStroke a2dHabitat::GetTextStroke ( ) const

get the current text stroke

Return the current text stroke.

Definition at line 1025 of file canglob.cpp.

bool a2dHabitat::LoadLayers ( const wxString &  filename)

load a layer set in CVG format from a file, which will be used as a template for a2dCanvasDocument's its layer settings

Definition at line 665 of file canglob.cpp.

void a2dHabitat::SetAberArcToPoly ( const a2dDoMu aber)

Arc to Polygon/polyline Maximum abberation.

doc->GetUnitsScale() );

Definition at line 821 of file canglob.cpp.

void a2dHabitat::SetAberPolyToArc ( const a2dDoMu aber)

Polygon/polyline to Arc Maximum abberation.

doc->GetUnitsScale() );

Definition at line 815 of file canglob.cpp.

void a2dHabitat::SetClearTarget ( bool  clearTarget)
inline

set clear of target in group operations

if set, in boolean operation the target layer will be cleared before adding results ot it.

Definition at line 763 of file canglob.h.

void a2dHabitat::SetCoordinateEpsilon ( double  val)
inline
See Also
GetCoordinateEpsilon

Definition at line 637 of file canglob.h.

void a2dHabitat::SetFill ( const a2dFill fill)

used for new objects etc. to set the fill

Parameters
fillto set, if NULL a2dNullFILL will be used

Definition at line 955 of file canglob.cpp.

void a2dHabitat::SetHitMarginDevice ( wxUint16  val)
inline

hit marging in pixels.

See Also
GetHitMarginDevice

Definition at line 613 of file canglob.h.

void a2dHabitat::SetHitMarginWorld ( double  val)
inline

hit marging in world units.

See Also
GetHitMarginWorld

Definition at line 622 of file canglob.h.

void a2dHabitat::SetLastXyEntry ( double  x,
double  y 
)
inline

set last mouse X position in world coordinates, as set by tools.

This position is used to set cursor position relative to the last entered position. The position can be set by drawing tools, when it makes sence to draw a next coordinates relative to the current/last entered coordinate.

Definition at line 774 of file canglob.h.

void a2dHabitat::SetLayer ( wxUint16  layer,
bool  setStyleOfLayer = false 
)

layer to be set for new objects. Default is layer wxLAYER_DEFAULT (colours etc taken from layer list)

Definition at line 1076 of file canglob.cpp.

void a2dHabitat::SetLayerSetup ( a2dLayers layersetup)

set the layersettings for the canvas library.

old layer setting will be deleted, and new one is owned.

Definition at line 1071 of file canglob.cpp.

void a2dHabitat::SetObjectGridSize ( double  objectGridSize)
inline

used for objects which depend in size on this grid

The size of such object can be modified

Definition at line 936 of file canglob.h.

void a2dHabitat::SetPinCanConnect ( a2dPin newpin)
See Also
GetPinCanConnect()

Definition at line 719 of file canglob.cpp.

void a2dHabitat::SetPinCannotConnect ( a2dPin newpin)
See Also
GetPinCannotConnect()

Definition at line 703 of file canglob.cpp.

void a2dHabitat::SetRelativeStart ( double  x,
double  y 
)
inline

set RelativeStart measurement X and Y position in world coordinates

The RelativeStart start is used when mesuring using a tool, or from the commandline.

Definition at line 785 of file canglob.h.

void a2dHabitat::SetTextFill ( const a2dFill fill)

used for new text objects etc. to set the fill

Parameters
fillto set, if NULL a2dNullFILL will be used

Definition at line 994 of file canglob.cpp.

Member Data Documentation

double a2dHabitat::m_coordinateepsilon
protected
See Also
GetCoordinateEpsilon

Definition at line 1064 of file canglob.h.

wxUint16 a2dHabitat::m_hitmargin_device
protected

hit marging in pixels.

This is used in editing, where a drawer is known and conversion from pixels to world units is possible. a2dCanvasView copies this value in its constructor and it can be changes in a2dCanvasView as well

Definition at line 1053 of file canglob.h.

double a2dHabitat::m_hitmargin_world
protected

hit marging in world units.

This is used during command processing, where a drawer is not known.

Definition at line 1058 of file canglob.h.


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