28 #ifndef __GyotoPhoton_H_ 29 #define __GyotoPhoton_H_ 35 namespace Astrobj {
class Generic; }
78 double transmission_freqobs_;
92 double * transmission_;
100 virtual std::string className() const ;
101 virtual std::string className_l() const ;
110 Photon(Photon* orig, size_t i0, int dir, double step_max);
114 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
118 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
119 SmartPointer<Screen> screen, double d_alpha, double d_delta);
123 virtual double getMass() const ;
126 void astrobj(SmartPointer<Astrobj::Generic>);
132 void metric(SmartPointer<Metric::Generic>);
136 void spectrometer(SmartPointer<Spectrometer::Generic> spr);
138 SmartPointer<Spectrometer::Generic> spectrometer() const ;
141 void freqObs(double);
143 double freqObs() const;
150 void operator=(const Photon&) ;
163 void setInitialCondition(SmartPointer<Metric::Generic> gg,
164 SmartPointer<Astrobj::Generic> obj,
165 const double coord[8]) ;
177 void setInitialCondition(SmartPointer<Metric::Generic> gg,
178 SmartPointer<Astrobj::Generic> obj,
179 SmartPointer<Screen> screen,
189 int hit(Astrobj::Properties *data=NULL);
209 double findMin(Functor::Double_constDoubleArray* object,
210 double t1, double t2, double &tmin,
211 double threshold = DBL_MIN) ;
226 void findValue(Functor::Double_constDoubleArray* object,
228 double tinside, double &toutside) ;
230 #ifdef GYOTO_USE_XERCES 231 virtual void setParameters(FactoryMessenger *fmp) ;
238 void resetTransmission() ;
248 double getTransmission(size_t i) const ;
257 double getTransmissionMax() const ;
263 double const * getTransmission() const ;
272 virtual void transmit(size_t i, double t);
276 void _allocateTransmission();
310 virtual void transmit(
size_t i,
double t);
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:83
Timelike or null geodesics.
Definition: GyotoWorldline.h:207
A null geodesic transporting light.
Definition: GyotoPhoton.h:52
Classes with an operator() method.
SmartPointer< Astrobj::Generic > Subcontractor(FactoryMessenger *fmp)
A template for Subcontractor_t functions.
Definition: GyotoAstrobj.h:76
Photon * parent_
Parent Photon.
Definition: GyotoPhoton.h:306
SmartPointer< Metric::Generic > metric() const
Get metric.
Refine last step of integration in a Photon.
Definition: GyotoPhoton.h:304
Gyoto ubiquitous macros and typedefs.
Timelike or null geodesics.
Base class for metric description.
#define GYOTO_WORLDLINE
Declare the Worldline interface wrappers.
Definition: GyotoWorldline.h:139
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:41
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:78
Object with properties.
Definition: GyotoObject.h:136
Description of the observer screen.