Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HistoFrame.hh
1 /*
2 This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4 Copyright (C) 2003-2009 (see file CONTACT for details)
5 Multimediale Systeme der Informationsverarbeitung
6 Institut fuer Informatik
7 Christian-Albrechts-Universitaet Kiel
8 
9 
10 BIAS is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14 
15 BIAS is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Lesser General Public License for more details.
19 
20 You should have received a copy of the GNU Lesser General Public License
21 along with BIAS; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 
26 #ifndef __HistoFrame_hh__
27 #define __HistoFrame_hh__
28 
29 #include <bias_config.h>
30 
31 #ifndef BIAS_HAVE_WXWIDGETS
32 # error BIAS_HAVE_WXWIDGETS not defined but required by HistoFrame. Please enable BIAS_HAVE_WXWIDGETS in CMake configure step.
33 #endif
34 #include <Base/Common/BIASpragmaStart.hh>
35 #include <wx/wx.h>
36 #include <Base/Common/BIASpragmaEnd.hh>
37 
38 namespace BIAS{
39 
40  class HistoImageCanvas;
41  class ImageBase;
42 
43  /** @class HistoFrame
44  @brief It's a Frame used to have a Histogramm Canvas, which
45  describes a histogramm of current image
46  @author amattal 03/2007 */
47  class BIASGui_EXPORT HistoFrame : public wxFrame
48  {
49  enum { MIA_HistoQuitButton };
50  public:
51  HistoFrame(wxWindow* parent, const wxString& title,
52  wxPoint pos = wxPoint(10,10),
53  wxSize size = wxSize(300, 250));
54  ~HistoFrame();
55 
56  void NewImage(BIAS::ImageBase& im,
57  const wxString& name);
58 
59  protected:
60  void Setup(wxSize size = wxSize(300, 250));
61  void OnSize(wxSizeEvent& event);
62 
63  void OnQuit(wxCommandEvent & event);
64  void OnClose(wxCloseEvent & event);
65 
66  wxString ImageName_;
67  wxString Title_;
68  wxButton *QuitButton_;
70 
71  DECLARE_EVENT_TABLE()
72  }; // class HistoFrame
73 
74 } // namespace
75 
76 #endif // __HistoFrame_hh__
wxString Title_
Definition: HistoFrame.hh:67
HistoImageCanvas * Window_
Definition: HistoFrame.hh:69
It&#39;s a Frame used to have a Histogramm Canvas, which describes a histogramm of current image...
Definition: HistoFrame.hh:47
It&#39;s a Canvas used to compute Histogram for current image working.
wxString ImageName_
Definition: HistoFrame.hh:66
This is the base class for images in BIAS.
Definition: ImageBase.hh:102
wxButton * QuitButton_
Definition: HistoFrame.hh:68