Differences between revisions 17 and 18
Revision 17 as of 2016-04-30 08:50:39
Size: 29
Editor: ip5657d226
Comment:
Revision 18 as of 2016-04-30 08:51:10
Size: 2232
Editor: ip5657d226
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe CanvasModule here. ## page was renamed from EditorModule
= Editor Module =

The editor module is build on top of the canvas module. It is implementing editing and drawing of <<Dox(a2dCanvasObject)>>s via <<Dox(a2dStTool)>> and <<Dox(a2dStToolContr)>>.
Using those tools one can create editing application, and a general one is <<Dox(a2dEditorFrame)>> from which you can derive and adept your own. But in the a2dEditorFrame is no more then a bunch of menu to start tools or showing dialogs for several actions. In many cases you just want your own editing frames, with just a few tools to start. And wxArt2D is setup to make this as easy as possible. The goal is to create highly interactive application with ease.

Several standard dialogs special for editing purposes are part of this module, to make it easy to the more general actions one often like to do. Think of settings layer style and rendering order <<Dox(LayerPropertiesDialog)>>.

Editor is the tools and toolcontroller module. A controller can be plugged into a a2dCanvasView. A a2dDrawer2D is an abstract drawing context class, each a2dCanvasView has one, which it uses to draw a a2dCanvasDocument on to the canvas.

The controller intercepts all events, from the a2dCanvas window, before they are handled by the a2dCanvasView class. The controller, has a stack of tools. When a tool is active, it will receive the events, and based on that, manipulate the contents of the document, which is displayed on the a2dCanvas.

The a2dCanvasView on its turn redirect events to the a2dCanvasObjects which are part of the a2dCanvasDocument, that is displayed by that a2dCanvasView.

The editor module contains a stack oriented controller class, with a large set of tools used to draw object, and edit those objects. Other tools are there to copy, drag, delete object. A zoom tool, can be used at all times to zoom into a drawing, even when one is already busy drawing etc. with a tool at that moment.

All tools are pushed on a stack, and when a tool is popped from the stack, the first tools on the stack will become active again. This is also the reason that one can push a zoom tool while busy drawing a polygon. This feature makes it easy to do extremely accurate drawing.

Editor Module

The editor module is build on top of the canvas module. It is implementing editing and drawing of a2dCanvasObjects via a2dStTool and a2dStToolContr. Using those tools one can create editing application, and a general one is a2dEditorFrame from which you can derive and adept your own. But in the a2dEditorFrame is no more then a bunch of menu to start tools or showing dialogs for several actions. In many cases you just want your own editing frames, with just a few tools to start. And wxArt2D is setup to make this as easy as possible. The goal is to create highly interactive application with ease.

Several standard dialogs special for editing purposes are part of this module, to make it easy to the more general actions one often like to do. Think of settings layer style and rendering order LayerPropertiesDialog.

Editor is the tools and toolcontroller module. A controller can be plugged into a a2dCanvasView. A a2dDrawer2D is an abstract drawing context class, each a2dCanvasView has one, which it uses to draw a a2dCanvasDocument on to the canvas.

The controller intercepts all events, from the a2dCanvas window, before they are handled by the a2dCanvasView class. The controller, has a stack of tools. When a tool is active, it will receive the events, and based on that, manipulate the contents of the document, which is displayed on the a2dCanvas.

The a2dCanvasView on its turn redirect events to the a2dCanvasObjects which are part of the a2dCanvasDocument, that is displayed by that a2dCanvasView.

The editor module contains a stack oriented controller class, with a large set of tools used to draw object, and edit those objects. Other tools are there to copy, drag, delete object. A zoom tool, can be used at all times to zoom into a drawing, even when one is already busy drawing etc. with a tool at that moment.

All tools are pushed on a stack, and when a tool is popped from the stack, the first tools on the stack will become active again. This is also the reason that one can push a zoom tool while busy drawing a polygon. This feature makes it easy to do extremely accurate drawing.

wxArt2D: CanvasModule (last edited 2016-05-03 09:29:36 by inetproxy-p)