|
|
| a2dDrawLineTool (a2dStToolContr *controller, a2dSLine *templateObject=NULL) |
| |
| bool | ZoomSave () |
| | Is Zooming while the tool is busy Save. More...
|
| |
|
void | SetLineBegin (a2dCanvasObject *begin) |
| | defines line begin object for line and polyline drawing tools
|
| |
|
void | SetLineEnd (a2dCanvasObject *end) |
| | defines line end object for line and polyline drawing tools
|
| |
| a2dCanvasObject * | GetLineBegin () |
| | get current line begin object for line and polyline drawing tools. More...
|
| |
| a2dCanvasObject * | GetLineEnd () |
| | get current line end object for line and polyline drawing tools More...
|
| |
|
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 () |
| | get scaling in X for begin and end objects of lines and polylines
|
| |
|
double | GetEndScaleY () |
| | get scaling in Y for begin and end objects of lines and polylines
|
| |
|
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.
|
| |
|
a2dSLine * | GetTemplateObject () |
| | set template for line object
|
| |
|
void | SetTemplateObject (a2dSLine *templateobject) |
| | get template for line object
|
| |
| | a2dStDrawTool (a2dStToolContr *controller) |
| |
|
virtual | ~a2dStDrawTool () |
| | destructor
|
| |
|
void | SetAllowModifyTemplate (bool allowModifyTemplate) |
| | template adepts to style change from outside or not
|
| |
|
bool | GetAllowModifyTemplate () |
| | template adepts to style change from outside or not
|
| |
| | a2dStTool (a2dStToolContr *controller) |
| |
|
| a2dStTool (const a2dStTool &other, CloneOptions options, a2dRefMap *refs) |
| | constructor
|
| |
|
virtual | ~a2dStTool () |
| | destructor
|
| |
|
virtual bool | OnPushNewTool (a2dBaseTool *newtool) |
| | halts the tool is busy
|
| |
| virtual void | SetActive (bool active=true) |
| | set the tool active or inactive. More...
|
| |
| void | AddCurrent (a2dCanvasObject *objectToAdd) |
| | add the current canvas object to parent as child More...
|
| |
| virtual void | Render () |
| | implement rendering More...
|
| |
| void | RenderAnotation () |
| | to render the tools its anotation text. More...
|
| |
| a2dStToolContr * | GetStToolContr () |
| | return the staacked tool controller More...
|
| |
|
a2dObjectEditTool * | StartEditTool (a2dCanvasObject *objecttoedit) |
| | to start editing tool when wanted
|
| |
| void | SetEditAtEnd (bool editatend) |
| | flag for setting editing tool after drawing a primitive. More...
|
| |
|
bool | GetEditAtEnd () |
| | see SetEditAtEnd
|
| |
| void | SetOpacityFactorEditcopy (wxUint8 editOpacity) |
| | when enabling m_useEditOpaque, this is how transparent the editcopy will be made. More...
|
| |
| void | SetUseOpaqueEditcopy (a2dOpaqueMode editOpaque) |
| | When set true, instead of using a special style for editcopies, a clone of the. More...
|
| |
|
void | SetConnectionGenerator (a2dConnectionGenerator *connectionGenerator) |
| | Set class for generating new connection objects between object and pins.
|
| |
|
a2dConnectionGenerator * | GetConnectionGenerator () const |
| | Get class for generating new connection objects between object and pins.
|
| |
|
a2dCanvasObject * | GetOriginal () |
| | object to draw or edit
|
| |
| bool | SetContext (a2dIterC &ic, a2dCanvasObject *startObject=NULL) |
| | defines the context, relative to which this tools works. More...
|
| |
|
void | SetStateString (const wxString &message=wxEmptyString, size_t field=0) |
| |
| void | SetSnapSourceFeatures (wxUint32 snapSourceFeatures) |
| |
|
void | SetSnapSourceFeature (a2dRestrictionEngine::a2dSnapToWhat snapSourceFeature, bool value=true) |
| | set one of the snapping features for the source to true or false, leaf others as is
|
| |
| a2dSnapToWhatMask | GetSnapSourceFeatures () const |
| |
| void | SetSnapTargetFeatures (wxUint32 snapTargetFeatures) |
| |
|
void | SetSnapTargetFeature (a2dRestrictionEngine::a2dSnapToWhat snapTargetFeature, bool value=true) |
| | set one of the snapping features for targets to true or false, leaf others as is
|
| |
|
bool | GetSnapTargetFeature (a2dRestrictionEngine::a2dSnapToWhat snapTargetFeature) const |
| | return the setting of a specific snapping feature
|
| |
| a2dSnapToWhatMask | GetSnapTargetFeatures () const |
| |
|
a2dCanvasObject * | GetCanvasObject () const |
| |
|
a2dCanvasObject * | GetOriginalObject () const |
| |
| bool | ProcessEvent (wxEvent &event) |
| | events recieved from controller processed here More...
|
| |
|
void | SetEvtHandler (a2dObject *handler) |
| | to reroute events to this event handler
|
| |
|
a2dObject * | GetEventHandler () |
| |
|
| a2dBaseTool (a2dToolContr *controller, const a2dMenuIdItem &initiatingMenuId=CmdMenu_NoMenu()) |
| | construct a new tool for the given controller.
|
| |
|
| a2dBaseTool (const a2dBaseTool &other, CloneOptions options, a2dRefMap *refs) |
| | constructor initializing partly from other tool
|
| |
|
virtual | ~a2dBaseTool () |
| | destructor
|
| |
|
a2dBaseTool * | TClone (CloneOptions options, a2dRefMap *refs=NULL) |
| |
|
virtual wxString | GetToolString () const |
| |
| virtual bool | StartTool (a2dBaseTool *currenttool) |
| | called to initiate while pushing tool to toolcontroller More...
|
| |
|
void | SetOneShot () |
| | Only one action of the tool, after that it will ask the controller to stop this tool.
|
| |
| virtual bool | AllowPop () |
| | tells if a tool can be poped from the stack. More...
|
| |
| void | StopTool (bool abort=false) |
| | call to stop a tool, internal and external. More...
|
| |
| bool | GetStopTool () |
| | checked by controller to see if the tool needs to be stopped e.g. after a oneshot. More...
|
| |
| bool | GetActive () |
| | is the tool active? More...
|
| |
| bool | GetBusy () |
| | Check if the tool is busy editing a distinct object */. More...
|
| |
|
virtual bool | EnterBusyModeNoGroup () |
| |
|
void | SetFill (const a2dFill &fill) |
| | set fill if used inside a tool
|
| |
| const a2dFill & | GetFill () const |
| | get the current fill More...
|
| |
|
void | SetStroke (const a2dStroke &stroke) |
| | set stroke if used inside a tool
|
| |
| const a2dStroke & | GetStroke () const |
| | get the current stroke More...
|
| |
|
void | SetLayer (wxUint16 layer) |
| | layer set for the object that is drawn using a tool
|
| |
|
wxUint16 | GetLayer () |
| | layer set for new objects.
|
| |
| void | SetShowAnotation (bool show) |
| | when true anotation will be shown, if used inside a tool More...
|
| |
|
void | SetAnotationFont (const wxFont &font) |
| | font to use for anotation
|
| |
| void | SetCursorType (const wxCursor &cursor) |
| | Sets cursor which the tool should use when started. More...
|
| |
| void | SetBusyCursorType (const wxCursor &cursor) |
| | Sets cursor which the tool should use when busy. More...
|
| |
|
wxCursor | GetCursorType () |
| | what cursor is used when tool is started
|
| |
|
wxCursor | GetBusyCursorType () |
| | what cursor is used when tool is busy
|
| |
| virtual void | SetMode (int mode) |
| | general integer to set operation modes for a tool (e.g the way it draws) More...
|
| |
| int | GetMode () |
| | can be used to modify the behaviour of the derived tool. More...
|
| |
|
void | SetPending (bool pending=true) |
| | a tool is set pending when it needs to be redrawn.
|
| |
|
bool | GetPending () |
| | return if the tool is set pending for redraw.
|
| |
|
a2dToolContr * | GetToolController () |
| | to get the tool controller to which this tool is attached.
|
| |
|
a2dDrawingPart * | GetDrawingPart () |
| | Access to the tool controllers drawer.
|
| |
|
a2dDrawer2D * | GetDrawer2D () |
| | Access to the tool controllers drawers drawer2d.
|
| |
|
wxWindow * | GetDisplayWindow () |
| | Access to the tool controllers drawers canvas.
|
| |
|
a2dDrawing * | GetDrawing () |
| | Returns a pointer to the drawing.
|
| |
|
a2dCanvasCommandProcessor * | GetCanvasCommandProcessor () |
| | Returns a pointer to the command processor associated with this document.
|
| |
| double | GetHitMargin () |
| |
| virtual void | OpenCommandGroup (bool restart) |
| | called when starting an editing operation (e.g. on mouse down) More...
|
| |
|
virtual void | OpenCommandGroupNamed (const wxString &name) |
| | called when starting an editing operation with another than the default name
|
| |
|
virtual void | CloseCommandGroup () |
| | called when ending an editing operation (e.g. mouse up)
|
| |
| virtual wxString | GetCommandGroupName () |
| | return the command group name for commands of a derived class More...
|
| |
|
a2dCommandGroup * | GetCommandgroup () |
| | return the command group that is open else NULL.
|
| |
| wxMenu * | GetMousePopupMenu () |
| | to get the current mouse menu of the tool More...
|
| |
| void | SetMousePopupMenu (wxMenu *mousemenu) |
| | to set the current mouse menu of the tool More...
|
| |
| a2dCanvasObject * | GetParentObject () |
| | parent object relative to which the actions take place. More...
|
| |
|
void | AddEditobject (a2dCanvasObject *object) |
| | Add an editcopy object to the tool/document.
|
| |
|
void | RemoveEditobject (a2dCanvasObject *object) |
| | Remove an editcopy object to the tool/document.
|
| |
| void | AddDecorationObject (a2dCanvasObject *object) |
| | Add a decoration object to be rendered by the tool. More...
|
| |
|
void | RemoveAllDecorations () |
| | remove all object that were added as decorations.
|
| |
| void | SetIgnorePendingObjects (bool onoff) |
| | Switches ignorance of pending objects on and off. More...
|
| |
|
bool | GetIgnorePendingObjects () |
| | get setting of ignore pending objects /sa GetUpdatesPending()
|
| |
|
a2dCorridor & | GetCorridor () |
| | get reference to the corridor list
|
| |
|
void | SetCorridor (const a2dCorridor &corridor) |
| | set a corridor from a list of objects
|
| |
|
void | SetContourWidth (double width) |
| |
|
double | GetContourWidth () const |
| | get the Contour width of the shape
|
| |
|
void | ResetContext () |
| | context like corridor and parentobject are reset
|
| |
|
virtual bool | RotateObject90LeftRight (bool right) |
| | rotate object of first tool on the stack, when appropriate.
|
| |
|
void | SetIsEditTool (bool isEditTool) |
| |
|
bool | GetIsEditTool () |
| |
|
void | SetInitiatingMenuId (const a2dMenuIdItem &initiatingMenuId) |
| |
|
const a2dMenuIdItem & | GetInitiatingMenuId () |
| |
|
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 a2dObject * | SetNonDynamic () |
| | 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...
|
| |
|
a2dObject * | Clone (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 () |
| |
| a2dNamedProperty * | GetProperty (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 a2dNamedProperty * | FindProperty (const a2dPropertyId *id, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) |
| | Find a dynamic property with given id in the property list. More...
|
| |
| virtual const a2dNamedProperty * | FindProperty (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 a2dNamedPropertyList & | GetPropertyList () 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...
|
| |
|
|
void | OnChar (wxKeyEvent &event) |
| |
|
void | OnMouseEvent (wxMouseEvent &event) |
| |
|
void | OnDoEvent (a2dCommandProcessorEvent &event) |
| |
|
virtual void | GenerateAnotation () |
| | to display a string along with a tool drawing.
|
| |
| bool | EnterBusyMode () |
| | starts a new action (e.g drawing something ) in a tool that is already pushed. More...
|
| |
| virtual void | FinishBusyMode (bool closeCommandGroup=true) |
| | Called when the user finishes editing a distinct object */. More...
|
| |
| void | AbortBusyMode () |
| | Called when the user aborts editing a distinct object */. More...
|
| |
|
void | OnKeyDown (wxKeyEvent &event) |
| | called on key down events
|
| |
|
void | OnKeyUp (wxKeyEvent &event) |
| | called on key up events
|
| |
|
void | OnChar (wxKeyEvent &event) |
| | called on key events
|
| |
| virtual bool | CreateToolObjects () |
| | Create the editcopy and other tool objects (e.g. decorations) More...
|
| |
|
void | AdjustRenderOptions () |
| | Adjust the rendering options to the needs of this tool.
|
| |
|
void | PrepareForRewire (a2dCanvasObjectList &dragList, bool walkWires=true, bool selected=false, bool stopAtSelectedWire=false, bool CreateExtraWires=true, a2dRefMap *=NULL) |
| |
|
void | DeselectAll () |
| |
|
void | MouseToToolWorld (int x, int y, double &xWorldLocal, double &yWorldLocal) |
| | calculate world coordinates from devide coordinates
|
| |
|
wxRect | GetAbsoluteArea (a2dCanvasObject *object) |
| | area occupied by this object
|
| |
|
void | GetTextExtent (const wxString &string, wxCoord *w, wxCoord *h, wxCoord *descent=NULL, wxCoord *externalLeading=NULL) |
| | return text extends of string
|
| |
|
void | OnPaint (wxPaintEvent &event) |
| | handler for paint event
|
| |
|
void | OnIdle (wxIdleEvent &event) |
| | handler for idle events
|
| |
|
void | OnUndoEvent (a2dCommandProcessorEvent &event) |
| | handler for Undo event
|
| |
|
void | OnDoEvent (a2dCommandProcessorEvent &event) |
| | handler for Do event
|
| |
|
void | OnComEvent (a2dComEvent &event) |
| | called when a tool has changed (fill stroke layer spline )
|
| |
|
void | AddAnotationToPendingUpdateArea () |
| | after calculating anotation position and string, extend the boundingbox of the tools with it.
|
| |
|
void | GetKeyIncrement (double *xIncr, double *yIncr) |
| | get the increments used when moving is done with cursor keys
|
| |
|
void | OnKeyDown (wxKeyEvent &event) |
| | called on key down events
|
| |
|
void | OnKeyUp (wxKeyEvent &event) |
| | called on key up events
|
| |
|
void | OnChar (wxKeyEvent &event) |
| | called on key events
|
| |
|
void | OnMouseEvent (wxMouseEvent &event) |
| | called on mouse events
|
| |
|
virtual void | CleanupToolObjects () |
| | Cleanup the editcopy other tool objects (e.g. decorations)
|
| |
|
a2dCanvasObject * | FindTaggedObject () |
| |
| void | OnComEvent (a2dComEvent &event) |
| | default handler for a2dComEvent event More...
|
| |
|
void | OnDoEvent (a2dCommandProcessorEvent &event) |
| |
|
void | OnUndoEvent (a2dCommandProcessorEvent &event) |
| |
|
void | OnRedoEvent (a2dCommandProcessorEvent &event) |
| |
|
void | OnMouseEvent (wxMouseEvent &event) |
| | called on mouse events
|
| |
|
void | OnChar (wxKeyEvent &event) |
| | called on key events
|
| |
|
void | OnKeyDown (wxKeyEvent &event) |
| | called on keydown events
|
| |
|
void | OnKeyUp (wxKeyEvent &event) |
| | called on keyup events
|
| |
|
virtual void | DoStopTool (bool abort) |
| | to do tool specific stuff to stop a tool. Called from StopTool().
|
| |
| 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.
|
| |