wxArt2D
Classes | Macros | Typedefs | Functions | Variables
drawing.h File Reference

Contains a2dDrawing Class to hold a drawing. More...

#include "wx/wx.h"
#include "wx/image.h"
#include <wx/numdlg.h>
#include "a2dprivate.h"
#include "wx/canvas/canobj.h"
#include "wx/canvas/vpath.h"
#include "wx/canvas/canprim.h"
#include "wx/canvas/polygon.h"
#include "wx/canvas/objlist.h"
#include "wx/canvas/recur.h"
#include "wx/canvas/canglob.h"
#include "wx/canvas/canprop.h"
#include "wx/canvas/sttool.h"
#include <wx/listimpl.cpp>
Include dependency graph for drawing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wxDoubleNumberEntryDialog
 wxDoubleNumberEntryDialog: a dialog with spin control, [ok] and [cancel] buttons More...
 
class  a2dDrawing
 Contain one drawing as hierarchical tree of a2dCanvasObject's. More...
 
class  a2dDrawingEvent
 see a2dDrawingEvent More...
 
class  a2dCanvasCommandProcessor
 a command processor specially designed to work with a a2dCanvasDocument More...
 
class  a2dCommand_AddObject
 used to add object to a a2dCanvasDocument in the current parent More...
 
class  a2dCommand_ReleaseObject
 used to release object from a a2dCanvasDocument in the current parent More...
 
class  a2dCommand_MoveObject
 move object within a a2dDrawing More...
 
class  a2dCommand_ReplaceObject
 used to replace an object in a a2dCanvasDocument in the current parent More...
 
class  a2dCommand_SetFlags
 for changing boolean values inside a rectangle of the current parent object. More...
 
class  a2dCommand_SetFlag
 for changing boolean values inside canvas objects More...
 
class  a2dCommand_SetPinFlags
 for changing boolean flag values inside pins More...
 
class  a2dCommandMasked
 
class  a2dCommand_SetSelectFlag
 for changing boolean select flag values inside canvas objects More...
 
class  a2dCommand_SetSelect2Flag
 for changing boolean select2 flag values inside canvas objects More...
 
class  a2dCommandMatrixData
 
class  a2dCommand_TransformMask
 for changing only the matrix of objects for which a certain mask was set More...
 
class  a2dCommand_RotateMask
 for changing only the matrix of objects for which a certain mask was set More...
 
class  a2dCommand_AlignMask
 for changing only the alignment of objects for which a certain mask was set More...
 
class  a2dCommand_AddPoint
 used to add points to polygon objects More...
 
class  a2dCommand_MoveSegment
 used to move points in polygon objects More...
 
class  a2dCommand_MoveMidSegment
 used to move points in polygon objects More...
 
class  a2dCommand_RemoveSegment
 used to remove points from polygon objects More...
 
class  a2dCommand_SetSegments
 used to set the complete Segment list/array of polygons More...
 
class  a2dCommand_MovePoint
 used to move start or end point in line objects More...
 
class  a2dCommand_ChangeText
 used to change text and caret of canvas text objects in a a2dCanvasDocument More...
 
class  a2dCommand_ChangeCanvasObjectStyle
 used to change style of canvas objects in a a2dCanvasDocument More...
 
class  a2dCommand_SetCanvasProperty
 used to change a property on objects More...
 
class  a2dCommand_ConnectPins
 used to connect two pins More...
 
class  a2dCommand_DisConnectPins
 used to disconnect two pins More...
 
class  a2dCommand_Select
 command on selected objects More...
 
class  a2dCommand_Select::Args
 
struct  a2dCommand_Select::Args::argValue
 
struct  a2dCommand_Select::Args::argSet
 
class  a2dCommand_GroupAB
 command on selected objects More...
 
class  a2dCommand_GroupAB::Args
 
struct  a2dCommand_GroupAB::Args::argValue
 
struct  a2dCommand_GroupAB::Args::argSet
 
class  a2dCommand_NewGroup
 create new group at x,y More...
 
class  a2dCommand_NewGroup::Args
 
struct  a2dCommand_NewGroup::Args::argValue
 
struct  a2dCommand_NewGroup::Args::argSet
 
class  a2dCommand_NewPin
 create new group at x,y More...
 
class  a2dCommand_NewPin::Args
 
struct  a2dCommand_NewPin::Args::argValue
 
struct  a2dCommand_NewPin::Args::argSet
 
class  a2dCommand_SetLayerMask
 set layer of objects which fit the mask More...
 
class  a2dCommand_DeleteMask
 delete objects which fit the mask More...
 
class  a2dCommand_ToTopMask
 objects which fit the mask to top in parent (rendered last) More...
 
class  a2dCommand_ToBackMask
 objects which fit the mask to bottom in parent (rendered first) More...
 
class  a2dCommand_CopyMask
 objects which fit the mask are copied to target and translated More...
 
class  a2dCommand_MoveMask
 objects which fit the mask are moved to target and translated More...
 
class  a2dCommand_GroupMask
 objects which fit the mask are grouped into a new object More...
 
class  a2dCommand_UnGroupMask
 objects which fit the mask are grouped into a new object More...
 
class  a2dCommand_MergeMask
 objects which fit the mask are merge into one new object More...
 
class  a2dCommand_OffsetMask
 objects which fit the mask are offset corrected More...
 
class  a2dCommand_PolygonToSurfaceMask
 objects which fit the mask are offset corrected More...
 
class  a2dCommand_SurfaceToPolygonMask
 objects which fit the mask are offset corrected More...
 
class  a2dCommand_UrlOnMask
 objects which fit the mask are given an Url property More...
 
class  a2dCommand_SetFillStrokeMask
 objects which fit the mask are given a new fill and stroke style More...
 
class  a2dCommand_SetFillStrokeExtMask
 objects which fit the mask are given a new fill and stroke style More...
 
class  a2dCommand_SetTextChangesMask
 objects which fit the mask are given a new font and other text properties More...
 
class  a2dCommand_ImagesToRectMask
 objects which fit the mask are converted to rectangles More...
 
class  a2dCommand_SetLayersProperty
 set all layers visible or not More...
 
class  a2dCommand_ConvertMask
 objects which fit the mask are converted to polygons or vector paths More...
 
class  a2dCommand_ConvertMask::Args
 
struct  a2dCommand_ConvertMask::Args::argValue
 
struct  a2dCommand_ConvertMask::Args::argSet
 
class  a2dCommand_SetShowObject
 
class  a2dCommand_SetShowObject::Args
 
struct  a2dCommand_SetShowObject::Args::argValue
 
struct  a2dCommand_SetShowObject::Args::argSet
 
class  a2dCommand_PushInto
 
class  a2dCommand_PushInto::Args
 
struct  a2dCommand_PushInto::Args::argValue
 
struct  a2dCommand_PushInto::Args::argSet
 
class  a2dCommand_SetLayerGroup
 layer group A and B commands More...
 
class  a2dCommand_SetLayerGroup::Args
 
struct  a2dCommand_SetLayerGroup::Args::argValue
 
struct  a2dCommand_SetLayerGroup::Args::argSet
 
class  a2dCommand_SetStroke
 set More...
 
class  a2dCommand_SetFill
 set More...
 
class  a2dCommand_SetStrokeColour
 
class  a2dCommand_SetFillColour
 
class  a2dCommand_SetCursor
 set cursor More...
 
class  a2dCommand_SetCursor::Args
 
struct  a2dCommand_SetCursor::Args::argValue
 
struct  a2dCommand_SetCursor::Args::argSet
 
class  a2dCommand_AddObjects
 used to add objects to a a2dCanvasDocument in the current parent More...
 

Macros

#define a2dDrawingEventHandler(func)   (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(a2dDrawingEventFunction, &func)
 
#define EVT_UPDATE_DRAWING(func)   wx__DECLARE_EVT0( wxEVT_UPDATE_DRAWING, a2dDrawingEventHandler( func ))
 event from a drawing when updated
 
#define EVT_CHANGEDMODIFY_DRAWING(func)   wx__DECLARE_EVT0( wxEVT_CHANGEDMODIFY_DRAWING, a2dDrawingEventHandler( func ))
 event from a drawing when changed by commands
 
#define DECLARE_CMH_HABITAT()
 

Typedefs

typedef wxUint16 a2dDrawingId
 
typedef a2dSmrtPtr< a2dDrawinga2dDrawingPtr
 
typedef void(wxEvtHandler::* a2dDrawingEventFunction )(a2dDrawingEvent &)
 
typedef a2dlist
< a2dCommandMatrixData
a2dObjectMatrixList
 

Functions

double wxGetDoubleNumberFromUser (const wxString &message, const wxString &prompt, const wxString &caption, double value=0, double min=0, double max=100, wxWindow *parent=(wxWindow *) NULL, const wxPoint &pos=wxDefaultPosition)
 get Double from user
 

Variables

const a2dPrintWhat a2dPRINT_PrintDrawing
 print a2dDrawing
 
const a2dPrintWhat a2dPRINT_PreviewDrawing
 preview print a2dDrawing
 
const a2dPrintWhat a2dPRINT_PrintDrawingPart
 print a2dDrawing Part
 
const a2dPrintWhat a2dPRINT_PreviewDrawingPart
 preview print a2dDrawing Part
 

Detailed Description

Contains a2dDrawing Class to hold a drawing.

a2dDrawing is the class where a hierarchy of a2dCanvasObject's is stored. Updating pending/changed objects and drawing a2dDrawing and a2dCanvasView is all from this class.

Author
Klaas Holwerda

Copyright: 2000-2004 (c) Klaas Holwerda

Licence: wxWidgets Licence

RCS-ID:

Id:
drawing.h,v 1.31 2009/07/10 19:23:13 titato Exp

Definition in file drawing.h.

Macro Definition Documentation

#define DECLARE_CMH_HABITAT ( )
Value:
\
inline a2dCanvasCommandProcessor* GetCanvasCmp() { return wxStaticCast( m_cmp, a2dCanvasCommandProcessor ); } \
a2dHabitat* GetDrawHabitat() \
{ \
assert( GetCanvasCmp() ); \
assert( GetCanvasCmp()->m_drawing ); \
return GetCanvasCmp()->m_drawing->GetHabitat(); \
} \
a command processor specially designed to work with a a2dCanvasDocument
Definition: drawing.h:1046
#define wxStaticCast(obj, className)
The wxWindows 2.4.2 wxStaticCast is buggy. It evaluates its argument twice.
Definition: gen.h:123

Definition at line 1027 of file drawing.h.

drawing.h File Reference -- Sun Oct 12 2014 17:04:26 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation