casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageTracker.h
Go to the documentation of this file.
1 //# Copyright (C) 2005
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 
26 #ifndef IMAGETRACKER_H_
27 #define IMAGETRACKER_H_
28 
29 namespace casa {
30 
31  class QtDisplayData;
32 
39  class ImageTracker {
40  public:
41  virtual void imageAdded( QtDisplayData* image, int position,
42  bool autoRegister, bool masterCoordinate,
43  bool masterSaturation, bool masterHue) = 0;
44  virtual void masterImageSelected( QtDisplayData* image ) =0;
46  virtual ~ImageTracker() {}
47 
48  };
49 
58  public:
60  virtual ~ImageDisplayer() {}
61  virtual void setControllingDD( QtDisplayData* controlDD ) = 0;
62  virtual bool isCoordinateMaster( QtDisplayData* dd ) const = 0;
63  virtual void registerDD( QtDisplayData* dd, int position = -1) = 0;
64  virtual void unregisterDD( QtDisplayData* dd ) = 0;
65  virtual void registrationOrderChanged() = 0;
66  };
67 
68 
69 
70 }
71 #endif /* IMAGETRACKER_H_ */
virtual void masterImageSelected(QtDisplayData *image)=0
virtual void registerDD(QtDisplayData *dd, int position=-1)=0
virtual ~ImageDisplayer()
Definition: ImageTracker.h:60
Interface implemented by QtDisplayPanel that can add/remove registered DDs and set the controlling Qt...
Definition: ImageTracker.h:57
virtual ~ImageTracker()
Definition: ImageTracker.h:46
Interface class designed to reduce the coupling between the GUI class, ImageManager and the DisplayDa...
Definition: ImageTracker.h:39
virtual void registrationOrderChanged()=0
virtual void imageAdded(QtDisplayData *image, int position, bool autoRegister, bool masterCoordinate, bool masterSaturation, bool masterHue)=0
virtual void unregisterDD(QtDisplayData *dd)=0
virtual void setControllingDD(QtDisplayData *controlDD)=0
virtual bool isCoordinateMaster(QtDisplayData *dd) const =0