28 #ifndef __GyotoPhoton_H_ 29 #define __GyotoPhoton_H_ 35 namespace Astrobj {
class Generic; }
78 double transmission_freqobs_;
92 double * transmission_;
101 virtual std::string className() const ;
102 virtual std::string className_l() const ;
111 Photon(Photon* orig, size_t i0, int dir, double step_max);
115 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
119 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
120 SmartPointer<Screen> screen, double d_alpha, double d_delta);
124 virtual double getMass() const ;
127 void astrobj(SmartPointer<Astrobj::Generic>);
133 void metric(SmartPointer<Metric::Generic>);
137 void spectrometer(SmartPointer<Spectrometer::Generic> spr);
139 SmartPointer<Spectrometer::Generic> spectrometer() const ;
142 void freqObs(double);
144 double freqObs() const;
162 void setInitialCondition(SmartPointer<Metric::Generic> gg,
163 SmartPointer<Astrobj::Generic> obj,
164 const double coord[8]) ;
176 void setInitialCondition(SmartPointer<Metric::Generic> gg,
177 SmartPointer<Astrobj::Generic> obj,
178 SmartPointer<Screen> screen,
188 int hit(Astrobj::Properties *data=NULL);
208 double findMin(Functor::Double_constDoubleArray* object,
209 double t1, double t2, double &tmin,
210 double threshold = DBL_MIN) ;
225 void findValue(Functor::Double_constDoubleArray* object,
227 double tinside, double &toutside) ;
229 #ifdef GYOTO_USE_XERCES 230 virtual void setParameters(FactoryMessenger *fmp) ;
237 void resetTransmission() ;
247 double getTransmission(size_t i) const ;
256 double getTransmissionMax() const ;
262 double const * getTransmission() const ;
271 virtual void transmit(size_t i, double t);
275 void _allocateTransmission();
309 virtual void transmit(
size_t i,
double t);
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Timelike or null geodesics.
Definition: GyotoWorldline.h:219
A null geodesic transporting light.
Definition: GyotoPhoton.h:52
Classes with an operator() method.
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition: GyotoObject.h:99
Photon * parent_
Parent Photon.
Definition: GyotoPhoton.h:305
Refine last step of integration in a Photon.
Definition: GyotoPhoton.h:303
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:151
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:80
Object with properties.
Definition: GyotoObject.h:151
Description of the observer screen.
SmartPointer< Metric::Generic > metric() const
Get metric.
SmartPointer< Astrobj::Generic > Subcontractor(FactoryMessenger *fmp, std::vector< std::string > const &plugin)
A template for Subcontractor_t functions.
Definition: GyotoAstrobj.h:76