32#ifndef __GyotoStarTrace_H_
33#define __GyotoStarTrace_H_
36 namespace Astrobj {
class StarTrace; }
95 StarTrace(SmartPointer<Metric::Generic> gg, double radius,
96 double const pos[4], double const v[3]) ;
129 virtual void
metric(SmartPointer<Metric::Generic> gg);
131 virtual void
xStore(size_t ind, state_t const &coord, double tau) ;
147 virtual double operator()(double const coord[4]) ;
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Mass-less, spherical object following a timelike geodesic.
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
Mass-less, spherical object following a timelike geodesic.
Definition: GyotoStar.h:95
virtual void setInitialCondition(double const coord[8])
Same as Worldline::setInitialCondition(gg, coord, sys,1)
Like a Star that would be on all points of its orbit at all time.
Definition: GyotoStarTrace.h:70
size_t xExpand(int)
Expand x0, x1 etc... to hold more elements.
virtual void setInitialCondition(double const coord[8])
Same as Worldline::setInitialCondition(gg, coord, sys,1)
double tmin_
Minimum date to consider on the underlying Star orbit.
Definition: GyotoStarTrace.h:76
virtual void setInitCoord(const double coord[8], int dir=0)
Set Initial coordinate.
virtual std::string className() const
"StarTrace"
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
double TMin() const
Get tmin_.
void computeXYZ()
Compute (and cache) x_, y_ and z_.
double TMax() const
Get tmax_.
double tmax_
Maximum date to consider on the underlying Star orbit.
Definition: GyotoStarTrace.h:77
double * x_
Cartesian x.
Definition: GyotoStarTrace.h:78
virtual StarTrace * clone() const
Cloner.
double * z_
Cartesian z.
Definition: GyotoStarTrace.h:80
virtual std::string className_l() const
"startrace"
double * y_
Cartesian y.
Definition: GyotoStarTrace.h:79
void xAllocateXYZ()
Allocate x_, y_, z_.
virtual void xStore(size_t ind, state_t const &coord, double tau)
Store coord at index ind.
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
virtual void xAllocate()
Allocate x0, x1 etc. with default size.
virtual size_t xExpand(int dir)
Expand x0, x1 etc... to hold more elements.
virtual void setInitCoord(const double coord[8], int dir, double const Ephi[4], double const Etheta[4])
Set Initial coordinate.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43