DrawingCanvas Class Reference

#include <drawing_canvas.h>

List of all members.

Public Member Functions

 DrawingCanvas ()
 Constructors.
 DrawingCanvas (wxWindow *parent, wxWindowID id=SYMBOL_DRAWINGCANVAS_IDNAME, const wxPoint &pos=SYMBOL_DRAWINGCANVAS_POSITION, const wxSize &size=SYMBOL_DRAWINGCANVAS_SIZE, long style=SYMBOL_DRAWINGCANVAS_STYLE)
 ~DrawingCanvas ()
bool Create (wxWindow *parent, wxWindowID id=SYMBOL_DRAWINGCANVAS_IDNAME, const wxPoint &pos=SYMBOL_DRAWINGCANVAS_POSITION, const wxSize &size=SYMBOL_DRAWINGCANVAS_SIZE, long style=SYMBOL_DRAWINGCANVAS_STYLE)
 Creation.
void CreateControls ()
 Creates the controls and sizers.
void OnSize (wxSizeEvent &event)
 wxEVT_SIZE event handler for ID_DRAWING_CANVAS_DIALOG
void OnPaint (wxPaintEvent &event)
 wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG
void OnEraseBackground (wxEraseEvent &event)
 wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources.
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources.
void RefreshBackBitmap (void)
void RefreshSampleBitmap (wxBitmap *p_sample_bitmap)

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips?

Static Public Attributes

static const int NUM_DIV_PER_SCREEN = 10

Protected Member Functions

void DrawGrid (wxDC &dc)
void DrawBackground (wxDC &dc)
void DrawCursor (wxDC &dc)
void DrawTrigger (wxDC &dc)
void DrawSamples (wxDC &dc)

Protected Attributes

wxBitmap * m_p_back_bitmap
wxBitmap * m_p_buffer_bitmap
DrawingPanelm_parent
int m_pix_X
int m_pix_Y
bool m_first_time


Detailed Description

DrawingCanvas class declaration


Constructor & Destructor Documentation

DrawingCanvas::DrawingCanvas  ) 
 

Constructors.

DrawingCanvas constructors

DrawingCanvas::DrawingCanvas wxWindow *  parent,
wxWindowID  id = SYMBOL_DRAWINGCANVAS_IDNAME,
const wxPoint &  pos = SYMBOL_DRAWINGCANVAS_POSITION,
const wxSize &  size = SYMBOL_DRAWINGCANVAS_SIZE,
long  style = SYMBOL_DRAWINGCANVAS_STYLE
 

DrawingCanvas::~DrawingCanvas  ) 
 


Member Function Documentation

bool DrawingCanvas::Create wxWindow *  parent,
wxWindowID  id = SYMBOL_DRAWINGCANVAS_IDNAME,
const wxPoint &  pos = SYMBOL_DRAWINGCANVAS_POSITION,
const wxSize &  size = SYMBOL_DRAWINGCANVAS_SIZE,
long  style = SYMBOL_DRAWINGCANVAS_STYLE
 

Creation.

DrawingCanvas creator

void DrawingCanvas::CreateControls  ) 
 

Creates the controls and sizers.

Control creation for DrawingCanvas

void DrawingCanvas::DrawBackground wxDC &  dc  )  [protected]
 

void DrawingCanvas::DrawCursor wxDC &  dc  )  [protected]
 

void DrawingCanvas::DrawGrid wxDC &  dc  )  [protected]
 

void DrawingCanvas::DrawSamples wxDC &  dc  )  [protected]
 

void DrawingCanvas::DrawTrigger wxDC &  dc  )  [protected]
 

wxBitmap DrawingCanvas::GetBitmapResource const wxString &  name  ) 
 

Retrieves bitmap resources.

DrawingCanvas member function declarations

wxIcon DrawingCanvas::GetIconResource const wxString &  name  ) 
 

Retrieves icon resources.

Get icon resources

void DrawingCanvas::OnEraseBackground wxEraseEvent &  event  ) 
 

wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG

wxEVT_ERASE_BACKGROUND event handler for ID_DRAWING_CANVAS_DIALOG

void DrawingCanvas::OnPaint wxPaintEvent &  event  ) 
 

wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG

wxEVT_PAINT event handler for ID_DRAWING_CANVAS_DIALOG

void DrawingCanvas::OnSize wxSizeEvent &  event  ) 
 

wxEVT_SIZE event handler for ID_DRAWING_CANVAS_DIALOG

DrawingCanvas event handler declarations

void DrawingCanvas::RefreshBackBitmap void   ) 
 

void DrawingCanvas::RefreshSampleBitmap wxBitmap *  p_sample_bitmap  ) 
 

bool DrawingCanvas::ShowToolTips  )  [static]
 

Should we show tooltips?

Should we show tooltips?


Member Data Documentation

bool DrawingCanvas::m_first_time [protected]
 

wxBitmap* DrawingCanvas::m_p_back_bitmap [protected]
 

wxBitmap * DrawingCanvas::m_p_buffer_bitmap [protected]
 

DrawingPanel* DrawingCanvas::m_parent [protected]
 

int DrawingCanvas::m_pix_X [protected]
 

int DrawingCanvas::m_pix_Y [protected]
 

const int DrawingCanvas::NUM_DIV_PER_SCREEN = 10 [static]
 


The documentation for this class was generated from the following files:
Generated on Mon Nov 6 14:16:00 2006 for CAENScope by  doxygen 1.4.6-NO