Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::ZoomImageCanvas Class Reference

#include <Gui/ZoomImageCanvas.hh>

+ Inheritance diagram for BIAS::ZoomImageCanvas:
+ Collaboration diagram for BIAS::ZoomImageCanvas:

Public Member Functions

void NewCoo (unsigned x, unsigned y)
 
void NewImage (BIAS::ImageBase &im, BIAS::Image< unsigned char > &ucim)
 
void NewZoom (int zoom)
 
void SetClearDrawingContext (bool clear)
 Canvas now uses double buffering to avoid flickering, so it should be ok to always clear the canvas. More...
 
 ZoomImageCanvas (wxWindow *parent, wxStatusBar *sbar=NULL, int sbarid=0, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(320, 240), long style=wxTAB_TRAVERSAL, const wxString &name=wxT("ZoomImageCanvas"))
 
 ~ZoomImageCanvas ()
 

Protected Member Functions

void GetZoomImage ()
 
void OnKey (wxKeyEvent &event)
 
void OnLeftMouse (wxMouseEvent &event)
 
void OnLeftMouseDoubleClicked (wxMouseEvent &event)
 
void OnMouseLeave (wxMouseEvent &event)
 
void OnMouseMove (wxMouseEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
void OnResize (wxSizeEvent &event)
 
void OnRightMouse (wxMouseEvent &event)
 
void UpdateStatusBar (unsigned x, unsigned y)
 

Protected Attributes

wxBitmap * Bitmap_
 
bool ClearDrawingContext_
 
int mousex_
 
int mousey_
 
BIAS::ImageBase origim_
 
wxMutex origim_mutex_
 
wxStatusBar * SBar_
 
int SBarID_
 
BIAS::Image< unsigned char > ucim_
 
int wheight_
 
int wwidth_
 
wxMutex wxbitmap_mutex_
 
wxImage * wximage_
 
BIAS::Image< unsigned char > zim_
 
unsigned ZoomFactor_
 
unsigned ZoomX_
 
unsigned ZoomXPos_
 
unsigned ZoomY_
 
unsigned ZoomYPos_
 

Detailed Description

Author
woelk

Definition at line 43 of file ZoomImageCanvas.hh.

Constructor & Destructor Documentation

ZoomImageCanvas::ZoomImageCanvas ( wxWindow parent,
wxStatusBar *  sbar = NULL,
int  sbarid = 0,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(320, 240),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("ZoomImageCanvas") 
)
ZoomImageCanvas::~ZoomImageCanvas ( )

Definition at line 31 of file ZoomImageCanvas.cpp.

References Bitmap_, and wximage_.

Member Function Documentation

void ZoomImageCanvas::GetZoomImage ( )
protected
void ZoomImageCanvas::NewCoo ( unsigned  x,
unsigned  y 
)

Definition at line 182 of file ZoomImageCanvas.cpp.

References GetZoomImage(), wheight_, wwidth_, ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.

Referenced by BIAS::ZoomFrame::NewCoo().

void ZoomImageCanvas::NewImage ( BIAS::ImageBase im,
BIAS::Image< unsigned char > &  ucim 
)

Definition at line 165 of file ZoomImageCanvas.cpp.

References GetZoomImage(), origim_, origim_mutex_, and ucim_.

Referenced by BIAS::ZoomFrame::NewImage().

void ZoomImageCanvas::NewZoom ( int  zoom)

Definition at line 201 of file ZoomImageCanvas.cpp.

References GetZoomImage(), and ZoomFactor_.

Referenced by BIAS::ZoomFrame::OnZoomFactor(), and BIAS::ZoomFrame::SetZoom().

void ZoomImageCanvas::OnKey ( wxKeyEvent &  event)
protected

Definition at line 366 of file ZoomImageCanvas.cpp.

References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.

void ZoomImageCanvas::OnLeftMouse ( wxMouseEvent &  event)
protected

Definition at line 305 of file ZoomImageCanvas.cpp.

References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.

void ZoomImageCanvas::OnLeftMouseDoubleClicked ( wxMouseEvent &  event)
protected

Definition at line 335 of file ZoomImageCanvas.cpp.

References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.

void ZoomImageCanvas::OnMouseLeave ( wxMouseEvent &  event)
protected

Definition at line 245 of file ZoomImageCanvas.cpp.

References mousex_, mousey_, SBar_, and SBarID_.

void ZoomImageCanvas::OnMouseMove ( wxMouseEvent &  event)
protected

Definition at line 293 of file ZoomImageCanvas.cpp.

References mousex_, mousey_, and UpdateStatusBar().

void ZoomImageCanvas::OnPaint ( wxPaintEvent &  event)
protected

Definition at line 270 of file ZoomImageCanvas.cpp.

References Bitmap_, ClearDrawingContext_, wxbitmap_mutex_, and wximage_.

void ZoomImageCanvas::OnResize ( wxSizeEvent &  event)
protected

Definition at line 253 of file ZoomImageCanvas.cpp.

References GetZoomImage(), wheight_, wwidth_, ZoomFactor_, ZoomXPos_, and ZoomYPos_.

void ZoomImageCanvas::OnRightMouse ( wxMouseEvent &  event)
protected

Definition at line 229 of file ZoomImageCanvas.cpp.

void BIAS::ZoomImageCanvas::SetClearDrawingContext ( bool  clear)
inline

Canvas now uses double buffering to avoid flickering, so it should be ok to always clear the canvas.

Definition at line 61 of file ZoomImageCanvas.hh.

void ZoomImageCanvas::UpdateStatusBar ( unsigned  x,
unsigned  y 
)
protected

Member Data Documentation

wxBitmap* BIAS::ZoomImageCanvas::Bitmap_
protected

Definition at line 77 of file ZoomImageCanvas.hh.

Referenced by OnPaint(), UpdateStatusBar(), ZoomImageCanvas(), and ~ZoomImageCanvas().

bool BIAS::ZoomImageCanvas::ClearDrawingContext_
protected

Definition at line 86 of file ZoomImageCanvas.hh.

Referenced by OnPaint(), and ZoomImageCanvas().

int BIAS::ZoomImageCanvas::mousex_
protected

Definition at line 92 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), OnMouseLeave(), OnMouseMove(), and ZoomImageCanvas().

int BIAS::ZoomImageCanvas::mousey_
protected

Definition at line 92 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), OnMouseLeave(), OnMouseMove(), and ZoomImageCanvas().

BIAS::ImageBase BIAS::ZoomImageCanvas::origim_
protected

Definition at line 80 of file ZoomImageCanvas.hh.

Referenced by NewImage(), and UpdateStatusBar().

wxMutex BIAS::ZoomImageCanvas::origim_mutex_
protected

Definition at line 94 of file ZoomImageCanvas.hh.

Referenced by NewImage(), and UpdateStatusBar().

wxStatusBar* BIAS::ZoomImageCanvas::SBar_
protected

Definition at line 81 of file ZoomImageCanvas.hh.

Referenced by OnMouseLeave(), UpdateStatusBar(), and ZoomImageCanvas().

int BIAS::ZoomImageCanvas::SBarID_
protected

Definition at line 82 of file ZoomImageCanvas.hh.

Referenced by OnMouseLeave(), UpdateStatusBar(), and ZoomImageCanvas().

BIAS::Image<unsigned char> BIAS::ZoomImageCanvas::ucim_
protected

Definition at line 79 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), and NewImage().

int BIAS::ZoomImageCanvas::wheight_
protected

Definition at line 91 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), NewCoo(), OnResize(), and ZoomImageCanvas().

int BIAS::ZoomImageCanvas::wwidth_
protected

Definition at line 91 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), NewCoo(), OnResize(), and ZoomImageCanvas().

wxMutex BIAS::ZoomImageCanvas::wxbitmap_mutex_
protected

Definition at line 94 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), and OnPaint().

wxImage* BIAS::ZoomImageCanvas::wximage_
protected

Definition at line 78 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage(), OnPaint(), ZoomImageCanvas(), and ~ZoomImageCanvas().

BIAS::Image<unsigned char> BIAS::ZoomImageCanvas::zim_
protected

Definition at line 79 of file ZoomImageCanvas.hh.

Referenced by GetZoomImage().

unsigned BIAS::ZoomImageCanvas::ZoomFactor_
protected
unsigned BIAS::ZoomImageCanvas::ZoomX_
protected
unsigned BIAS::ZoomImageCanvas::ZoomXPos_
protected
unsigned BIAS::ZoomImageCanvas::ZoomY_
protected
unsigned BIAS::ZoomImageCanvas::ZoomYPos_
protected

The documentation for this class was generated from the following files: