Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ZoomFrame.hh
1 #ifndef __ZoomFrame_hh__
2 #define __ZoomFrame_hh__
3 
4 #include <bias_config.h>
5 
6 #ifndef BIAS_HAVE_WXWIDGETS
7 # error BIAS_HAVE_WXWIDGETS not defined but required by ZoomFrame. Please enable BIAS_HAVE_WXWIDGETS in CMake configure step.
8 #endif
9 #include <Base/Common/BIASpragmaStart.hh>
10 #include <wx/wx.h>
11 #include <Base/Common/BIASpragmaEnd.hh>
12 
13 namespace BIAS{
14 
15  // forward declarations
16  class ZoomImageCanvas;
17  class ImageBase;
18  template <class T> class Image;
19 
20  /** @brief used by ImageCanvas and ScaledImageCanvas, should not be used
21  directly
22  @author woelk */
23  class BIASGui_EXPORT ZoomFrame : public wxFrame
24  {
25  enum { MIA_ZoomQuitButton };
26  public:
27  ZoomFrame(wxWindow* parent, const wxString& title);
28  ~ZoomFrame();
29 
30  void NewImage(BIAS::ImageBase& im, BIAS::Image<unsigned char>& ucim,
31  const wxString& name);
32  void NewCoo(unsigned x, unsigned y);
33 
34  void SetZoom(unsigned z);
35 
36  protected:
37  void Setup();
38 
39  void OnQuit(wxCommandEvent & event);
40  void OnClose(wxCloseEvent & event);
41  void OnZoomFactor(wxScrollEvent & event);
42  //void OnKeyPress(wxKeyEvent &event);
43 
44  wxString ImageName_;
45  wxString Title_;
46  wxButton *QuitButton_;
48  wxSlider *SLScale_;
49 
50  DECLARE_EVENT_TABLE()
51  }; // class ZoomFrame
52 
53 } // namespace
54 
55 #endif // __ZoomFrame_hh__
class BIASImageBase_EXPORT Image
Definition: ImageBase.hh:91
wxButton * QuitButton_
Definition: ZoomFrame.hh:46
used by ImageCanvas and ScaledImageCanvas, should not be used directly
Definition: ZoomFrame.hh:23
ZoomImageCanvas * Window_
Definition: ZoomFrame.hh:47
wxString ImageName_
Definition: ZoomFrame.hh:44
wxSlider * SLScale_
Definition: ZoomFrame.hh:48
This is the base class for images in BIAS.
Definition: ImageBase.hh:102
wxString Title_
Definition: ZoomFrame.hh:45