General information:Author: klaas holwerda Version: 1.0 Date: Wed Oct 20 9:18:53 MET 1999 |
Header files:
|
Code files:
|
low level drawing function for primitives to draw to the screen it is derived from wxWindow as well as the drawdriver. And therefore the mediator between the internal database and the screen device Because the inheretance from wxWindow, all mouse input and keyboard input to the window is also intercepted here, depending on the tool in action those events will be redirected to the right tool using the toolcontroller
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
WindowsDriver(GDSMainWindow* parent, int , int , int , int , long , char*)
Description:
constructor
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
~WindowsDriver(void)
Description:
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void GetClientWindowSize(int* dx, int* dy)
Description:
get size of client window in pixels
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL WindowsDriver::Pending()
Description:
are there events in the queue
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnChar(wxKeyEvent& event)
Description:
character events
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnKeyDown(wxKeyEvent& event)
Description:
keydown events
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnKeyUp(wxKeyEvent& event)
Description:
keyup events
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnMouseEvent(wxMouseEvent& event)
Description:
mouse events
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnPaint(void)
Description:
called by onpaint event
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void UpdateSize(void)
Description:
for updating size of window, reallocates buffer for dubbel buffering
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void SetBackGroundColor(long color)
Description:
set the background color of the window
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: wxBitmap* |
Declaration:
wxBitmap* GetCanvasBitmap()
Description:
to write bitmap data to files
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void Init(Setup* setup)
Description:
initialize colors patterns etc.
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void ClearScreen()
Description:
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawGrid(double,long,int)
Description:
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void GDSCanDrawLine(double x1, double y1, double x2, double y2)
Description:
draw directly on the window, without using a buffer
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawRectCan(int x1, int y1, int x2, int y2)
Description:
draw a rectangle to the window, without using a buffer
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: double |
Declaration:
double Check_int(double getal)
Description:
| scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
DECLARE_EVENT_TABLE()
Description:
| scope: private | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnEraseBackground(wxEraseEvent& event)
Description:
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawTransparentBitmap(wxDC* dc,long xStart,long yStart,long width,long displacement)
Description:
used to draw transparant pattern fill lines in polygons
| scope: protected | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void SetLayer(int layer)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void UnSetLayer(int layer)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void GDSDrawText(char* text, double x, double y, double x2, double y2, Presentation*, Matrix<double>*)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void GDSDrawLine(double x1, double y1, double x2, double y2)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawLineSelected(double x1, double y1, double x2, double y2)
Description:
see base class
| scope: protected | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void GDSDrawPoint(double x, double y)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void WindowsPolygon(void)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void WindowsPolyline(void)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawFillLine(double x1, double y1, double x2, double y2)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void ltowxc(long l,wxColour& color)
Description:
convert color to wxWindows color
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawRect(int x1, int y1, int x2, int y2)
Description:
see base class
| scope: protected | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void DrawOriginLine(double x1, double y1, double x2, double y2)
Description:
see base class
| scope: private | type: basic | typename: GDSMainWindow* |
Declaration:
GDSMainWindow* _parent
Description:
holds a pointer to mainwindow
| scope: private | type: basic | typename: wxDC* |
Declaration:
wxDC* _dc
Description:
the device context for drawing to screen buffer or screen
| scope: private | type: basic | typename: wxMemoryDC* |
Declaration:
wxMemoryDC* _memDC
Description:
the device context for drawing to screen buffer
| scope: private | type: basic | typename: wxBitmap* |
Declaration:
wxBitmap* _backup
Description:
screen buffer
| scope: private | type: basic | typename: int |
Declaration:
int _w, _h
Description:
size of window
| scope: protected | type: basic | typename: int |
Declaration:
int _visible
Description:
if true then draw only
| scope: protected | type: basic | typename: wxColour* |
Declaration:
wxColour* _textColor
Description:
holds the drawing color for text
| scope: protected | type: basic | typename: wxColour* |
Declaration:
wxColour* _textSelectedColor
Description:
holds the drawing color selected text
| scope: protected | type: basic | typename: wxColour* |
Declaration:
wxColour* _fillcolor
Description:
holds the fill color
| scope: protected | type: basic | typename: wxPen* |
Declaration:
wxPen* _penSelected
Description:
the pen used for drawing a border around selected elements
| scope: protected | type: basic | typename: wxPen* |
Declaration:
wxPen* _pen
Description:
the pen used for drawing
| scope: protected | type: basic | typename: wxPen* |
Declaration:
wxPen* _pengrid
Description:
the pen used for grid drawing
| scope: protected | type: basic | typename: wxPen* |
Declaration:
wxPen* _penorigin
Description:
the pen used for origin drawing
| scope: protected | type: basic | typename: wxPen* |
Declaration:
wxPen* _fillpen
Description:
the pen used for filling
| scope: protected | type: basic | typename: wxBrush* |
Declaration:
wxBrush* _brush
Description:
| scope: protected | type: basic | typename: wxBrush* |
Declaration:
wxBrush* _brushbitm
Description:
| scope: protected | type: basic | typename: wxBrush* |
Declaration:
wxBrush* _brushnorm
Description:
| scope: protected | type: basic | typename: wxColour |
Declaration:
wxColour _backgroundcolor
Description:
| scope: protected | type: basic | typename: wxFont* |
Declaration:
wxFont* _font
Description:
| scope: protected | type: basic | typename: wxBitmap* |
Declaration:
wxBitmap* _bitmap
Description:
| scope: protected | type: basic | typename: wxPoint* |
Declaration:
wxPoint* todraw
Description:
array for points to draw as polygon or polyline
| scope: protected | type: basic | typename: wxMemoryDC |
Declaration:
wxMemoryDC pat_dc
Description:
XPoint* todraw; POINT * todraw;dc for monogrome pattern
| scope: protected | type: basic | typename: wxBitmap* |
Declaration:
wxBitmap* srcbitm
Description:
the pattern in color
| scope: protected | type: basic | typename: wxMemoryDC |
Declaration:
wxMemoryDC src_dc
Description:
| scope: protected | type: basic | typename: wxBitmap* |
Declaration:
wxBitmap* buffer
Description:
buffer for blitting fill lines
| scope: protected | type: basic | typename: wxMemoryDC |
Declaration:
wxMemoryDC buf_dc
Description:
dc for the buffer
| scope: protected | type: basic | typename: Patterns* |
Declaration:
Patterns* _patterns
Description:
fill patterns for primitives
| scope: protected | type: basic | typename: int |
Declaration:
int _layer
Description:
active layer to optimize drawing