27 #ifndef __GyotoScenery_H_
28 #define __GyotoScenery_H_
219 Scenery(SmartPointer<Metric::Generic>, SmartPointer<Screen>, SmartPointer<Astrobj::Generic>);
232 void
metric(SmartPointer<Metric::Generic>);
238 void
screen(SmartPointer<Screen>);
243 void
astrobj(SmartPointer<Astrobj::Generic>);
248 double
delta() const ;
249 double
delta(const std::string &unit) const ;
251 void
delta(double, const std::string &unit);
279 double
tMin() const ;
281 double
tMin(const std::string &unit) const ;
285 void
tMin(double, const std::string &unit);
387 void
rayTrace(size_t imin, size_t imax, size_t jmin, size_t jmax,
388 Astrobj::Properties* data, double * impactcoords = NULL);
399 void operator() (size_t i, size_t j, Astrobj::Properties *data,
400 double * impactcoords = NULL, Photon * ph = NULL);
402 #ifdef GYOTO_USE_XERCES
double deltaMax() const
Passed to ph_.
bool adaptive() const
Get ph_.adaptive_.
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:51
double relTol() const
Passed to ph_.
double deltaMin() const
Passed to ph_.
Astronomical objects (light emitters)
SmartPointer< Astrobj::Generic > astrobj() const
Get ph_.obj_.
double tMin() const
Get ph_.tmin_.
A null geodesic transporting light.
Definition: GyotoPhoton.h:51
Ray-tracing scene.
Definition: GyotoScenery.h:154
Reference-counting pointers.
static SmartPointer< Scenery > Subcontractor(Gyoto::FactoryMessenger *)
Instanciate Scenery from an XML description.
size_t nthreads_
Number of parallel threads to use in rayTrace()
Definition: GyotoScenery.h:194
#define size_t
If not defined in .
Definition: GyotoConfig.h:305
void binSpectrumConverter(std::string unit)
Set Scenery::binspectrum_converter_.
Gyoto::Photon ph_
Template Photon.
Definition: GyotoScenery.h:187
Gyoto::Quantity_t quantities_
Quantities to compute.
Definition: GyotoScenery.h:180
SmartPointer< Photon > clonePhoton() const
Clone the internal Photon.
double absTol() const
Passed to ph_.
std::string getRequestedQuantitiesString() const
Get a string representation of Scenery::quantities_.
size_t nThreads() const
Get nthreads_;.
double delta() const
Get default step in geometrical units.
void rayTrace(size_t imin, size_t imax, size_t jmin, size_t jmax, Astrobj::Properties *data, double *impactcoords=NULL)
Perform ray-tracing for a square area on Screen.
Gyoto::SmartPointer< Gyoto::Units::Converter > binspectrum_converter_
See Astrobj::Properties::intensity_converter_.
Definition: GyotoScenery.h:202
size_t maxiter() const
Get ph_.maxiter_.
Gyoto::SmartPointer< Gyoto::Units::Converter > intensity_converter_
See Astrobj::Properties::intensity_converter_.
Definition: GyotoScenery.h:198
Gyoto ubiquitous macros and typedefs.
Base class for metric description.
size_t maxiter_
Maximum number of iterations when integrating.
Definition: GyotoScenery.h:205
void fillElement(FactoryMessenger *fmp)
Fill XML section.
Quantity_t getRequestedQuantities() const
Get Scenery::quantities_.
Gyoto::SmartPointer< Gyoto::Units::Converter > spectrum_converter_
See Astrobj::Properties::intensity_converter_.
Definition: GyotoScenery.h:200
size_t getScalarQuantitiesCount() const
Get number of requested quantities of scalar nature.
void intensityConverter(std::string unit)
Set Scenery::intensity_converter_.
std::string integrator() const
Passed to ph_.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:42
unsigned int Quantity_t
Type for observabke quantities.
Definition: GyotoDefs.h:73
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:79
void setPropertyConverters(Gyoto::Astrobj::Properties *prop)
Copy converters to Astrobj::Properties instance.
SmartPointer< Screen > screen() const
Get Scenery::screen_.
SmartPointer< Metric::Generic > metric() const
Get ph_.Worldline::metric_.
Scenery * clone() const
Cloner.
Description of the observer screen.
double deltaMaxOverR() const
Passed to ph_.
double delta_
Definition: GyotoScenery.h:171
bool secondary() const
Get ph_.secondary_.
void setRequestedQuantities(Quantity_t quant)
Set Scenery::quantities_.
SmartPointer< Screen > screen_
Definition: GyotoScenery.h:165
void spectrumConverter(std::string unit)
Set Scenery::spectrum_converter_.