32 #ifndef __GyotoStarTrace_H_
33 #define __GyotoStarTrace_H_
36 namespace Astrobj {
class StarTrace; }
92 StarTrace(SmartPointer<Metric::Generic> gg, double radius,
93 double pos[4], double v[3]) ;
107 StarTrace(const Star& o, double tmin, double tmax);
123 virtual void
setInitCoord(const double coord[8], int dir);
126 virtual void
metric(SmartPointer<Metric::Generic> gg);
128 virtual void
xStore(size_t ind, double coord[8]) ;
147 #ifdef GYOTO_USE_XERCES
148 virtual void
fillElement(FactoryMessenger *fmp) const ;
151 virtual double operator()(double const coord[4]) ;
Mass-less, spherical object following a timelike geodesic.
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:51
double tmax_
Maximum date to consider on the underlying Star orbit.
Definition: GyotoStarTrace.h:77
virtual void setInitialCondition(double coord[8])
Same as Worldline::setInitialCondition(gg, coord, sys,1)
size_t xExpand(int)
Expand x0, x1 etc... to hold more elements.
double * y_
Cartesian y.
Definition: GyotoStarTrace.h:79
double tmin_
Minimum date to consider on the underlying Star orbit.
Definition: GyotoStarTrace.h:76
virtual std::string className_l() const
"startrace"
#define size_t
If not defined in .
Definition: GyotoConfig.h:305
Like a Star that would be on all points of its orbit at all time.
Definition: GyotoStarTrace.h:69
virtual StarTrace * clone() const
Cloner.
virtual std::string className() const
"StarTrace"
void computeXYZ()
Compute (and cache) x_, y_ and z_.
double * x_
Cartesian x.
Definition: GyotoStarTrace.h:78
double * z_
Cartesian z.
Definition: GyotoStarTrace.h:80
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:42
virtual void fillElement(FactoryMessenger *fmp) const
called from Factory
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
Mass-less, spherical object following a timelike geodesic.
Definition: GyotoStar.h:93
virtual size_t xExpand(int dir)
Expand x0, x1 etc... to hold more elements.
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
virtual void setInitCoord(const double coord[8], int dir)
Set Initial coordinate.
virtual void setInitCoord(const double coord[8], int dir=0)
Set Initial coordinate.
virtual void xStore(size_t ind, double coord[8])
Store coord at index ind.
virtual int setParameter(std::string name, std::string content, std::string unit)
Set parameter by name.
virtual void xAllocate()
Allocate x0, x1 etc. with default size.
void xAllocateXYZ()
Allocate x_, y_, z_.