11 #ifndef __WXRENDIMG_H__
12 #define __WXRENDIMG_H__
55 inline bool GetYaxis()
const {
return m_drawingPart->GetDrawer2D()->GetYaxis(); }
58 virtual void SetYaxis(
bool up ) { m_drawingPart->GetDrawer2D()->SetYaxis( up ); }
67 void SetGridAtFront(
bool gridatfront ) { m_drawingPart->SetGridAtFront( gridatfront ); }
76 void SetGridSize(
int gridsize ) { m_drawingPart->SetGridSize( gridsize ); };
82 double GetGridX() {
return m_drawingPart->GetGridX();}
85 void SetGridX(
double gridx ) { m_drawingPart->SetGridX( gridx ); }
88 double GetGridY() {
return m_drawingPart->GetGridY(); }
91 void SetGridY(
double gridy ) { m_drawingPart->SetGridY( gridy ); }
94 void SetGrid(
bool grid ) { m_drawingPart->SetGrid( grid ); }
97 bool GetGrid() {
return m_drawingPart->GetGrid(); }
100 void SetGridLines(
bool gridlines ) { m_drawingPart->SetGridLines( gridlines ); }
118 void SetMappingWidthHeight(
double vx1,
double vy1,
double width,
double height );
120 void SetMappingUpp(
double vx1,
double vy1,
double xpp,
double ypp );
123 void SetMappingAbs(
a2dIterC& ic,
double vx1,
double vy1,
double width,
double height );
156 void SetWidth(
double width );
157 double GetWidth() {
return m_width; }
159 void SetHeight(
double height );
160 double GetHeight() {
return m_height; }
Display Part of a a2dDrawing, in which a2dCanvasObjects are shown.
Base class for all types of strokes, understood by a2dDrawer2D classes.
virtual bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
bool GetGridAtFront()
Get grid setting for drawing grid in front or back.
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
class to map references to objects stored in XML, in order to make the connection later on...
void SetBackgroundFill(const a2dFill &backgroundfill)
background fill for the canvas
void SetGridLines(bool gridlines)
Get grid setting for line drawing.
a2dRenderImage is an a2dCanvasObject that is able to display a complete a2dCanvasDocument as a a2dCan...
void SetGridSize(int gridsize)
set size of grid circle
OVERLAP
Result of a a2dBoundingBox intersection or hittest.
bool m_scaleonresize
are scroll bars active?
The base class for all drawable objects in a a2dCanvasDocument.
bool GetYaxis() const
get y axis orientation
a2dCanvasObject is the base class for Canvas Objects.
virtual void DoRender(a2dIterC &ic, OVERLAP clipparent)
render derived object
double GetGridY()
Get grid distance in Y.
void SetGridFill(const a2dFill &gridfill)
set fill used for grid drawing
a2dFill m_backgroundfill
background brush of canvas; and back ground color of background brush in case of mono colour brush ...
void SetGrid(bool grid)
Set grid on/off.
bool GetGridLines()
set grid to draw lines instead of points
while iterating a a2dCanvasDocument, this holds the context.
void SetGridStroke(const a2dStroke &gridstroke)
set stroke used for grid drawing
void SetGridAtFront(bool gridatfront)
Set grid setting for drawing grid in front or back.
void SetGridY(double gridy)
Set grid distance in Y.
void SetShowOrigin(bool show)
Set showorigin on/off.
double GetGridX()
Get grid distance in X.
Each a2dCanvasView needs to have a a2dCanvasDocument set in order to render data. ...
bool GetGrid()
Get grid setting on/off.
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
virtual a2dBoundingBox DoGetUnTransformedBbox(a2dBboxFlags flags=a2dCANOBJ_BBOX_NON) const
In derived object this should be overriden to calculate the boundingbox of the object without its chi...
virtual void SetYaxis(bool up)
set if the Yaxis goes up or down
the a2dDrawingPart is a a2dView specially designed for displaying parts of a a2dDrawing. It uses a a2dDrawer2D to actually redraw things from the document, by giving that a2dDrawer2D as drawing context to the document, and telling the document to redraw a certain rectangular area. At that last is what this class is for. It optimizes the areas to be redrawn after object in the document were changed. To do that it combines redraw areas to a minimal set of redrawing areas. All the administration for this and the way things will be redrawn is from this view.
virtual bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
a2dFill & GetBackgroundFill()
get current background fill for the canvas
virtual bool GetScaleOnResize()
get current setting for ScaleOnResize
void SetGridX(double gridx)
Set grid distance in X.
bool m_showorigin
showorigin?
void SetScaleOnResize(bool val)
set if the drawing should be resclaed on a window resize
CloneOptions
options for cloning
structure to give as parameter to member functions of a2dCanvasObject