casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LatticePADM.h
Go to the documentation of this file.
1 //# LatticePADisplayMethod.h: base for drawing axis-bound lattice elements
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001
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 #ifndef TRIALDISPLAY_LATTICEPADM_H
29 #define TRIALDISPLAY_LATTICEPADM_H
30 
31 //# aips includes:
32 #include <casa/aips.h>
33 
34 //# display library includes:
36 
37 namespace casacore{
38 
39  template <class T> class Array;
40  template <class T> class MaskedLattice;
41  class IPosition;
42 }
43 
44 namespace casa { //# NAMESPACE CASA - BEGIN
45 
46 //# forwards:
47  template <class T> class LatticePADisplayData;
48 
49 // <summary>
50 // Partial implementation of PrincipalAxesDM for casacore::Lattice-based data.
51 // </summary>
52 //
53 // <synopsis>
54 // This class is a partial (ie. base) implementation of PrincipalAxesDM
55 // which adds methods particular to handling casacore::Lattice-based data.
56 // </synopsis>
57 
58  template <class T> class LatticePADisplayMethod : public PrincipalAxesDM {
59 
60  public:
61 
62  // Constructor
63  // do I need the default constructor?
65  LatticePADisplayMethod(const casacore::uInt xAxis, const casacore::uInt yAxis,
66  const casacore::uInt mAxis, const casacore::IPosition fixedPos,
68  // 2d version
69  LatticePADisplayMethod(const casacore::uInt xAxis, const casacore::uInt yAxis,
71 
72  // Destructor
73  virtual ~LatticePADisplayMethod();
74  // Extract data from the lattice: used by draw() in PrincipalAxesDM
75  // this is probably not needed in this class...
81  protected:
82 
83  // Query the shape of the lattice: used by draw() in PrincipalAxesDM
85 
86 
87 
90  const casacore::IPosition& start,
91  const casacore::IPosition& sliceShape,
92  const casacore::IPosition& stride,
94 
95  private:
96 
97  };
98 
99 
100 } //# NAMESPACE CASA - END
101 
102 #ifndef AIPS_NO_TEMPLATE_SRC
103 #include <display/DisplayDatas/LatticePADM.tcc>
104 #endif //# AIPS_NO_TEMPLATE_SRC
105 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
casacore::IPosition sliceShape
virtual casacore::Bool dataGetSlice(casacore::Matrix< T > &datMatrix, casacore::Matrix< casacore::Bool > &mask, const casacore::IPosition &start, const casacore::IPosition &sliceShape, const casacore::IPosition &stride)
Extract data from the lattice: used by draw() in PrincipalAxesDM this is probably not needed in this ...
Partial implementation of PrincipalAxesDM for casacore::Lattice-based data.
Definition: LatticePADM.h:58
casacore::IPosition start
Some data members which all display elements along principal axes will play around with: ...
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
casacore::IPosition stride
A templated, abstract base class for array-like objects with masks.
A 2-D Specialization of the Array class.
virtual casacore::IPosition dataShape()
Query the shape of the lattice: used by draw() in PrincipalAxesDM.
virtual ~LatticePADisplayMethod()
Destructor.
LatticePADisplayMethod()
Constructor do I need the default constructor?
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
Partial implementation of PrincipalAxesDD for casacore::Lattice-based data.
Interface for DisplayMethods which have data arranged in &quot;axes.&quot;.
unsigned int uInt
Definition: aipstype.h:51
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42