casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SlicerGen.qo.h
Go to the documentation of this file.
1 //# SlicerGen.qo.h: GUI which provides a casacore::Slicer object
2 //# Copyright (C) 2013
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 
29 #ifndef DISPLAY_SLICERGEN_H_
30 #define DISPLAY_SLICERGEN_H_
31 
32 #include <display/QtViewer/SlicerGen.ui.h>
33 #include <casa/Arrays/Vector.h>
34 
35 namespace casa {
36  namespace viewer {
37 
38  class SlicerGen : public QObject, private Ui::SlicerGen {
39  Q_OBJECT
40  public:
41  SlicerGen( );
42  void initialize( QFrame * );
43  void disable( );
44  void enable( const std::string &path );
45  bool sliceReady( ) const;
46  std::string getSliceRep( ) const;
47 
48  signals:
49  void stateChange(bool);
50 
51  private:
53  std::vector<QSpinBox*> startgui;
54  void load_startgui( );
55  std::vector<QSpinBox*> sizegui;
56  void load_sizegui( );
57  typedef std::map<QSpinBox*,int> spin_map_t;
59 
60  // when setting up slicer don't generate events...
62 
63  private slots:
64  void adjust_position(int);
65  void adjust_size(int);
66 
67  };
68  }
69 }
70 
71 #endif
std::vector< QSpinBox * > startgui
Definition: SlicerGen.qo.h:53
void enable(const std::string &path)
std::string getSliceRep() const
std::vector< QSpinBox * > sizegui
Definition: SlicerGen.qo.h:55
std::map< QSpinBox *, int > spin_map_t
Definition: SlicerGen.qo.h:57
casacore::Vector< int > shape
Definition: SlicerGen.qo.h:52
std::string path(const std::string &name)
bool sliceReady() const
void initialize(QFrame *)
bool drop_events
when setting up slicer don&#39;t generate events...
Definition: SlicerGen.qo.h:61