Basic Image AlgorithmS Library
2.8.0
|
#include <Gui/ZoomImageCanvas.hh>
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_ |
Definition at line 43 of file ZoomImageCanvas.hh.
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.
|
protected |
Definition at line 39 of file ZoomImageCanvas.cpp.
References BIAS::Image< StorageType >::FillImageWithConstValue(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), mousex_, mousey_, BIAS::Image< StorageType >::Release(), ucim_, UpdateStatusBar(), wheight_, wwidth_, wxbitmap_mutex_, wximage_, zim_, ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.
Referenced by NewCoo(), NewImage(), NewZoom(), and OnResize().
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().
|
protected |
Definition at line 366 of file ZoomImageCanvas.cpp.
References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.
|
protected |
Definition at line 305 of file ZoomImageCanvas.cpp.
References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.
|
protected |
Definition at line 335 of file ZoomImageCanvas.cpp.
References ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.
|
protected |
|
protected |
Definition at line 293 of file ZoomImageCanvas.cpp.
References mousex_, mousey_, and UpdateStatusBar().
|
protected |
Definition at line 270 of file ZoomImageCanvas.cpp.
References Bitmap_, ClearDrawingContext_, wxbitmap_mutex_, and wximage_.
|
protected |
Definition at line 253 of file ZoomImageCanvas.cpp.
References GetZoomImage(), wheight_, wwidth_, ZoomFactor_, ZoomXPos_, and ZoomYPos_.
|
protected |
Definition at line 229 of file ZoomImageCanvas.cpp.
|
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.
|
protected |
Definition at line 110 of file ZoomImageCanvas.cpp.
References BIAS::AsciiToWx(), Bitmap_, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetWidth(), origim_, origim_mutex_, BIAS::ImageBase::PrintPixelValue(), SBar_, SBarID_, ZoomFactor_, ZoomX_, ZoomXPos_, ZoomY_, and ZoomYPos_.
Referenced by GetZoomImage(), and OnMouseMove().
|
protected |
Definition at line 77 of file ZoomImageCanvas.hh.
Referenced by OnPaint(), UpdateStatusBar(), ZoomImageCanvas(), and ~ZoomImageCanvas().
|
protected |
Definition at line 86 of file ZoomImageCanvas.hh.
Referenced by OnPaint(), and ZoomImageCanvas().
|
protected |
Definition at line 92 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), OnMouseLeave(), OnMouseMove(), and ZoomImageCanvas().
|
protected |
Definition at line 92 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), OnMouseLeave(), OnMouseMove(), and ZoomImageCanvas().
|
protected |
Definition at line 80 of file ZoomImageCanvas.hh.
Referenced by NewImage(), and UpdateStatusBar().
|
protected |
Definition at line 94 of file ZoomImageCanvas.hh.
Referenced by NewImage(), and UpdateStatusBar().
|
protected |
Definition at line 81 of file ZoomImageCanvas.hh.
Referenced by OnMouseLeave(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 82 of file ZoomImageCanvas.hh.
Referenced by OnMouseLeave(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 79 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), and NewImage().
|
protected |
Definition at line 91 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnResize(), and ZoomImageCanvas().
|
protected |
Definition at line 91 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnResize(), and ZoomImageCanvas().
|
protected |
Definition at line 94 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), and OnPaint().
|
protected |
Definition at line 78 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), OnPaint(), ZoomImageCanvas(), and ~ZoomImageCanvas().
|
protected |
Definition at line 79 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage().
|
protected |
Definition at line 88 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), NewZoom(), OnKey(), OnLeftMouse(), OnLeftMouseDoubleClicked(), OnResize(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 88 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnKey(), OnLeftMouse(), OnLeftMouseDoubleClicked(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 90 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnKey(), OnLeftMouse(), OnLeftMouseDoubleClicked(), OnResize(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 88 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnKey(), OnLeftMouse(), OnLeftMouseDoubleClicked(), UpdateStatusBar(), and ZoomImageCanvas().
|
protected |
Definition at line 90 of file ZoomImageCanvas.hh.
Referenced by GetZoomImage(), NewCoo(), OnKey(), OnLeftMouse(), OnLeftMouseDoubleClicked(), OnResize(), UpdateStatusBar(), and ZoomImageCanvas().