Gyoto
GyotoFocalPlane.h
Go to the documentation of this file.
1 
7 /*
8  Copyright 2011 Thibaut Paumard, Frederic Vincent
9 
10  This file is part of Gyoto.
11 
12  Gyoto is free software: you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  Gyoto is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #ifndef __GyotoFocalPlane_H_
27 #define __GyotoFocalPlane_H_
28 
29 namespace Gyoto {
30  class FocalPlane;
31 }
32 
33 #include <GyotoMetric.h>
34 #include <GyotoPhoton.h>
35 #include <GyotoAstrobj.h>
36 
44  protected:
47  size_t nx_;
48  size_t ny_;
49  double dx_;
50  double dy_;
51  double xmin_;
52  double ymin_;
53  public:
55  double xmin, double ymin,
56  size_t nx, size_t ny, double dx, double dy);
58  double xmin, double ymin, double xmax, double ymax,
59  size_t nx, size_t ny);
60  ~FocalPlane();
61 
65  void hitMap(double *dest);
66  size_t getNx() const;
67  size_t getNy() const;
68  double getDx() const;
69  double getDy() const;
70  double getXmin() const;
71  double getYmin() const;
72  double getXmax() const;
73  double getYmax() const;
74 
79  void getX(double * dest) const;
80 
85  void getY(double * dest) const;
86 
87  // void hitMap(double tobs, double *dest, double deltatau=0.1) ;
88 
89 };
90 
91 #endif