LatticePADM.h

Go to the documentation of this file.
00001 //# LatticePADisplayMethod.h: base for drawing axis-bound lattice elements
00002 //# Copyright (C) 1996,1997,1998,1999,2000,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id$
00027 
00028 #ifndef TRIALDISPLAY_LATTICEPADM_H
00029 #define TRIALDISPLAY_LATTICEPADM_H
00030 
00031 //# aips includes:
00032 #include <casa/aips.h>
00033 
00034 //# display library includes:
00035 #include <display/DisplayDatas/PrincipalAxesDM.h>
00036 
00037 namespace casa { //# NAMESPACE CASA - BEGIN
00038 
00039 //# forwards:
00040         template <class T> class Array;
00041         template <class T> class MaskedLattice;
00042         class IPosition;
00043         template <class T> class LatticePADisplayData;
00044 
00045 // <summary>
00046 // Partial implementation of PrincipalAxesDM for Lattice-based data.
00047 // </summary>
00048 //
00049 // <synopsis>
00050 // This class is a partial (ie. base) implementation of PrincipalAxesDM
00051 // which adds methods particular to handling Lattice-based data.
00052 // </synopsis>
00053 
00054         template <class T> class LatticePADisplayMethod : public PrincipalAxesDM {
00055 
00056         public:
00057 
00058                 // Constructor
00059                 // do I need the default constructor?
00060                 LatticePADisplayMethod();
00061                 LatticePADisplayMethod(const uInt xAxis, const uInt yAxis,
00062                                        const uInt mAxis, const IPosition fixedPos,
00063                                        LatticePADisplayData<T> *arDat);
00064                 // 2d version
00065                 LatticePADisplayMethod(const uInt xAxis, const uInt yAxis,
00066                                        LatticePADisplayData<T> *arDat);
00067 
00068                 // Destructor
00069                 virtual ~LatticePADisplayMethod();
00070                 // Extract data from the lattice: used by draw() in PrincipalAxesDM
00071                 // this is probably not needed in this class...
00072                 virtual Bool dataGetSlice(Matrix<T>& datMatrix,
00073                                 Matrix<Bool>& mask,
00074                                 const IPosition& start,
00075                                 const IPosition& sliceShape,
00076                                 const IPosition& stride);
00077         protected:
00078 
00079                 // Query the shape of the lattice: used by draw() in PrincipalAxesDM
00080                 virtual IPosition dataShape();
00081 
00082 
00083 
00084                 virtual Bool dataGetSlice(Matrix<T>& datMatrix,
00085                                           Matrix<Bool>& mask,
00086                                           const IPosition& start,
00087                                           const IPosition& sliceShape,
00088                                           const IPosition& stride,
00089                                           MaskedLattice<T>& latt);
00090 
00091         private:
00092 
00093         };
00094 
00095 
00096 } //# NAMESPACE CASA - END
00097 
00098 #ifndef AIPS_NO_TEMPLATE_SRC
00099 #include <display/DisplayDatas/LatticePADM.tcc>
00100 #endif //# AIPS_NO_TEMPLATE_SRC
00101 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1