26 #ifndef __GyotoFreeStar_H_ 27 #define __GyotoFreeStar_H_ 30 namespace Astrobj {
class FreeStar; }
39 #ifdef GYOTO_USE_XERCES 87 void
metric(SmartPointer<Metric::Generic>);
88 void initPosition(std::vector<double> const &v);
89 std::vector<double> initPosition() const;
90 void initVelocity(std::vector<double> const &v);
91 std::vector<double> initVelocity() const;
92 void initCoord(std::vector<double> const &v);
93 std::vector<double> initCoord() const;
95 void
getCartesian(double const * const dates, size_t const n_dates,
96 double * const x, double * const y,
97 double * const z, double * const xprime=NULL,
98 double * const yprime=NULL,
99 double * const zprime=NULL);
101 void
getVelocity(double const pos[4], double vel[4]);
103 void normalizeVelocity();
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
UniformShere following a trajectory specified in getVelocity (non-geodesic) with a constant velocity...
Definition: GyotoFreeStar.h:51
void getCartesian(double const *const dates, size_t const n_dates, double *const x, double *const y, double *const z, double *const xprime=NULL, double *const yprime=NULL, double *const zprime=NULL)
Yield the Cartesian coordinates of the center of the sphere.
void getVelocity(double const pos[4], double vel[4])
Yield velocity of the center of the sphere.
Base class for metric description.
virtual FreeStar * clone() const
Cloner.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:46
virtual std::string className() const
"FreeStar"
Pointers performing reference counting.
Definition: GyotoProperty.h:45
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
virtual std::string className_l() const
"free_star"