Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
wxVectorPanel.hh
1 /* This file is part of the BIAS library (Basic ImageAlgorithmS).
2 
3  Copyright (C) 2003-2009 (see file CONTACT for details)
4  Multimediale Systeme der Informationsverarbeitung
5  Institut fuer Informatik
6  Christian-Albrechts-Universitaet Kiel
7 
8  BIAS is free software; you can redistribute it and/or modify
9  it under the terms of the GNU Lesser General Public License as published by
10  the Free Software Foundation; either version 2.1 of the License, or
11  (at your option) any later version.
12 
13  BIAS is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with BIAS; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
21 
22 /*
23  * wxVectorPanel.hh
24  *
25  * Created on: Jun 25, 2010
26  * Author: ischiller
27  */
28 
29 #ifndef WXVECTORPANEL_HH_
30 #define WXVECTORPANEL_HH_
31 
32 #include <bias_config.h>
33 #include <vector>
34 #include <Base/Math/Vector.hh>
35 
36 #ifndef BIAS_HAVE_WXWIDGETS
37 # error BIAS_HAVE_WXWIDGETS not defined but required by ProjectionGUI. Please enable BIAS_HAVE_WXWIDGETS in CMake configure step.
38 #endif
39 
40 #include <wx/wx.h>
41 
42 namespace BIAS {
43 
44 /** @brief Panel for displaying and editing vectors.
45  @author jkollmann */
46 class BIASGui_EXPORT wxVectorPanel : public wxPanel
47 {
48 public:
49  wxVectorPanel(wxWindow* parent, wxWindowID id, bool editable);
50  void SetVector(const BIAS::Vector<double>& vector);
51  BIAS::Vector<double> GetVector() const;
52 
53 private:
54  bool editable_;
55  std::vector<wxTextCtrl*> controls_;
56 };
57 
58 }
59 
60 #endif /* WXVECTORPANEL_HH_ */
Panel for displaying and editing vectors.