28#ifndef __GyotoComplexAstrobj_H_
29#define __GyotoComplexAstrobj_H_
124 void
append(Gyoto::SmartPointer<Gyoto::Astrobj::Generic> element);
131 void
metric(SmartPointer<Metric::Generic> gg);
135#ifdef GYOTO_USE_XERCES
160 virtual int
Impact(Gyoto::Photon* ph, size_t index,
161 Astrobj::Properties *data=NULL) ;
Astronomical objects (light emitters)
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition: GyotoObject.h:99
Complex astronomical object.
Definition: GyotoComplexAstrobj.h:73
virtual int Impact(Gyoto::Photon *ph, size_t index, Astrobj::Properties *data=NULL)
Call Impact() for each of the elements.
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
virtual void setParameters(FactoryMessenger *fmp)
Main loop in Subcontractor_t function.
virtual void fillElement(FactoryMessenger *fmp) const
Fill the XML element for this Object.
void append(Gyoto::SmartPointer< Gyoto::Astrobj::Generic > element)
Add element at the end of the array.
void remove(size_t i)
Remove i-th element from the array.
size_t cardinal_
Number of objects.
Definition: GyotoComplexAstrobj.h:83
double step_max_
Maximum δ step inside the Astrobj.
Definition: GyotoComplexAstrobj.h:93
virtual double deltaMax(double coord[8])
Get max step constraint for adaptive integration.
virtual Complex * clone() const
"Virtual" copy constructor
Gyoto::SmartPointer< Gyoto::Astrobj::Generic > * elements_
Array of Astrobj::Generic.
Definition: GyotoComplexAstrobj.h:88
size_t getCardinal() const
Get the number of elements in the array.
Base class for astronomical object.
Definition: GyotoAstrobj.h:199
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43