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_;
269 virtual Generic* clone() const = 0 ;
284 virtual void metric(SmartPointer<Metric::Generic>) ;
297 virtual double rMax();
298 virtual double rMax() const;
306 virtual double rMax(std::string const &unit);
307 virtual double rMax(std::string const &unit) const;
314 virtual double deltaMax(double coord[8]);
316 const std::string kind() const;
324 virtual void rMax(double val);
333 virtual void rMax(double val, std::string const &unit);
340 void opticallyThin(bool flag);
345 bool opticallyThin() const ;
348 void showshadow(bool flag);
349 bool showshadow() const ;
351 void redshift(bool flag);
352 bool redshift() const ;
366 #ifdef GYOTO_USE_XERCES 388 virtual void setParameters(FactoryMessenger *fmp);
430 virtual int Impact(Gyoto::Photon* ph, size_t index,
431 Astrobj::Properties *data=NULL) = 0 ;
446 virtual void processHitQuantities(Photon* ph, double* coord_ph_hit,
447 double* coord_obj_hit, double dt,
448 Astrobj::Properties* data) const;
499 virtual double emission(double nu_em, double dsem, double coord_ph[8],
500 double coord_obj[8]=NULL)
525 virtual void emission(double Inu[], double nu_em[], size_t nbnu,
526 double dsem, double coord_ph[8],
527 double coord_obj[8]=NULL) const ;
532 virtual void radiativeQ(double Inu[], double Taunu[],
533 double nu_em[], size_t nbnu,
534 double dsem, double coord_ph[8],
535 double coord_obj[8]=NULL) const ;
548 virtual double integrateEmission(double nu1, double nu2, double dsem,
549 double c_ph[8], double c_obj[8]=NULL) const;
557 virtual void integrateEmission(double * I, double const * boundaries,
558 size_t const * chaninds, size_t nbnu,
559 double dsem, double *cph, double *co) const;
571 virtual double transmission(double nuem, double dsem, double coord[8]) const ;
627 int first_dmin_found;
656 double * impactcoords;
720 void
init(size_t nbnuobs=0);
741 void intensityConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
743 void intensityConverter(std::string);
745 void spectrumConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
747 void spectrumConverter(std::string);
749 void binSpectrumConverter(Gyoto::SmartPointer<Gyoto::Units::Converter>);
751 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:604
Entry in a register (or a full register)
Definition: GyotoRegister.h:94