casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointingDirectionProjector.h
Go to the documentation of this file.
1 #ifndef _SYNTHESYS_POINTING_DIRECTION_PROJECTOR_H_
2 #define _SYNTHESYS_POINTING_DIRECTION_PROJECTOR_H_
3 
7 
8 namespace casa {
9 // Partially projection code from ASAP GenericEdgeDetector
10 class Projector {
11 public:
12  Projector();
13  virtual ~Projector() {
14  }
16  void setReferenceCoordinate(casacore::Double const lat, casacore::Double const lon);
17  void setReferencePixel(casacore::Double const refx, casacore::Double const refy);
19  void unsetReferencePixel();
23  lat = cenx_user_;
24  lon = ceny_user_;
25  }
27  refx = pcenx_user_;
28  refy = pceny_user_;
29  }
30  virtual const casacore::Matrix<casacore::Double>& project() = 0;
31 protected:
32  // From asap/src/MathUtils
34  // casacore::Input data
36 
37  // logging
39 
40 private:
41  // private attributes
48 };
49 
51 public:
52  OrthographicProjector(casacore::Float pixel_scale = 0.5);
53  virtual ~OrthographicProjector();
56  return p_center_;
57  }
59  return p_size_;
60  }
62  return dy_;
63  }
64 
65 private:
66  void scale_and_center();
67  // options
69  // pixel info
78 
79  // storage for projection
81 
82  // projection parameters computed from input directions
85 };
86 
87 } // end of namespace casa
88 
89 #endif /* _SYNTHESYS_POINTING_DIRECTION_PROJECTOR_H_ */
const casacore::Vector< casacore::Double > & p_size() const
casacore::Bool user_defined_center_
casacore::Matrix< casacore::Double > pdir_
storage for projection
casacore::LogIO os_
logging
casacore::Double cenx_
pixel info
casacore::Matrix< casacore::Double > dir_
casacore::Input data
casacore::Double pixel_size() const
casacore::Vector< casacore::Double > p_center_
projection parameters computed from input directions
casacore::Double cenx_user_
private attributes
casacore::Vector< casacore::Double > p_size_
casacore::Bool isReferencePixelSet() const
ostream-like interface to creating log messages.
Definition: LogIO.h:167
void rotateRA(casacore::Vector< casacore::Double > &v)
From asap/src/MathUtils.
void unsetReferencePixel()
casacore::Double pceny_user_
double Double
Definition: aipstype.h:55
void getUserDefinedReferenceCoordinate(casacore::Double &lat, casacore::Double &lon)
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Float pixel_scale_
options
virtual const casacore::Matrix< casacore::Double > & project()=0
float Float
Definition: aipstype.h:54
const casacore::Vector< casacore::Double > & p_center() const
void getUserDefinedReferencePixel(casacore::Double &refx, casacore::Double &refy)
OrthographicProjector(casacore::Float pixel_scale=0.5)
casacore::Bool user_defined_pcenter_
void setDirection(const casacore::Matrix< casacore::Double > &dir)
casacore::Double ceny_user_
casacore::Double pcenx_user_
Partially projection code from ASAP GenericEdgeDetector.
void unsetReferenceCoordinate()
void setReferencePixel(casacore::Double const refx, casacore::Double const refy)
casacore::Bool isReferenceCoordinateSet() const
const casacore::Matrix< casacore::Double > & project()
unsigned int uInt
Definition: aipstype.h:51
void setReferenceCoordinate(casacore::Double const lat, casacore::Double const lon)