28 #ifndef __GyotoAstrobj_H_ 29 #define __GyotoAstrobj_H_ 78 ao -> plugins(plugin) ;
79 #ifdef GYOTO_USE_XERCES 80 if (fmp) ao -> setParameters(fmp);
104 std::vector<std::string> &plugin,
224 bool flag_radtransf_;
270 virtual Generic* clone() const = 0 ;
285 virtual void metric(SmartPointer<Metric::Generic>) ;
298 virtual double rMax();
299 virtual double rMax() const;
307 virtual double rMax(std::string const &unit);
308 virtual double rMax(std::string const &unit) const;
315 virtual double deltaMax(double coord[8]);
317 const std::string kind() const;
325 virtual void rMax(double val);
334 virtual void rMax(double val, std::string const &unit);
341 void opticallyThin(bool flag);
346 bool opticallyThin() const ;
349 void radiativeQ(bool flag);
350 bool radiativeQ() const ;
352 void showshadow(bool flag);
353 bool showshadow() const ;
355 void redshift(bool flag);
356 bool redshift() const ;
370 #ifdef GYOTO_USE_XERCES 392 virtual void setParameters(FactoryMessenger *fmp);
431 virtual int Impact(Gyoto::Photon* ph, size_t index,
432 Astrobj::Properties *data=NULL) = 0 ;
447 virtual void processHitQuantities(Photon* ph, double* coord_ph_hit,
448 double* coord_obj_hit, double dt,
449 Astrobj::Properties* data) const;
500 virtual double emission(double nu_em, double dsem, double coord_ph[8],
501 double coord_obj[8]=NULL)
526 virtual void emission(double Inu[], double nu_em[], size_t nbnu,
527 double dsem, double coord_ph[8],
528 double coord_obj[8]=NULL) const ;
531 virtual void radiativeQ(double Inu[], double Taunu[],
532 double nu_em[], size_t nbnu,
533 double dsem, double coord_ph[8],
534 double coord_obj[8]=NULL) const ;
547 virtual double integrateEmission(double nu1, double nu2, double dsem,
548 double c_ph[8], double c_obj[8]=NULL) const;
556 virtual void integrateEmission(double * I, double const * boundaries,
557 size_t const * chaninds, size_t nbnu,
558 double dsem, double *cph, double *co) const;
570 virtual double transmission(double nuem, double dsem, double coord[8]) const ;
626 int first_dmin_found;
655 double * impactcoords;
719 void
init(size_t nbnuobs=0);
740 void intensityConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
742 void intensityConverter(std::string);
744 void spectrumConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
746 void spectrumConverter(std::string);
748 void binSpectrumConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
750 void binSpectrumConverter(std::string);
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
A null geodesic transporting light.
Definition: GyotoPhoton.h:52
Base class for metrics.
Definition: GyotoMetric.h:156
Reference-counting pointers.
void Register(std::string name, Gyoto::Astrobj::Subcontractor_t *scp)
Make an Astrobj kind known to the Factory.
Factory / SmartPointee::Subcontractor_t interface.
Definition: GyotoFactoryMessenger.h:92
void init(char const *pluglist=NULL)
Initialise the various registers.
Gyoto ubiquitous macros and typedefs.
Compile-time configuration.
Gyoto::Register::Entry * Register_
The Astrobj register.
void initRegister()
Empty the Astrobj register.
SmartPointer< Gyoto::Astrobj::Generic > Subcontractor_t(Gyoto::FactoryMessenger *, std::vector< std::string > const &)
A function to build instances of a specific Astrobj::Generic sub-class.
Definition: GyotoAstrobj.h:62
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
unsigned int Quantity_t
Type for observabke quantities.
Definition: GyotoDefs.h:73
Gyoto::Astrobj::Subcontractor_t * getSubcontractor(std::string name, std::vector< std::string > &plugin, int errmode=0)
Query the Astrobj register.
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:80
Base class for astronomical object.
Definition: GyotoAstrobj.h:196
Object with properties.
Definition: GyotoObject.h:151
SmartPointer< Astrobj::Generic > Subcontractor(FactoryMessenger *fmp, std::vector< std::string > const &plugin)
A template for Subcontractor_t functions.
Definition: GyotoAstrobj.h:76
Observable properties of an Astronomical object.
Definition: GyotoAstrobj.h:603
Entry in a register (or a full register)
Definition: GyotoRegister.h:94