28 #ifndef __GyotoFixedStar_H_
29 #define __GyotoFixedStar_H_
36 namespace Astrobj {
class FixedStar; }
71 FixedStar(SmartPointer<Gyoto::Metric::Generic> gg, double StPsn[3], double radius);
80 double const *
getPos() const;
81 void
getPos(double* dst) const;
82 virtual void
setMetric(SmartPointer<Metric::Generic> metric) ;
85 void
setPos(const double[3]);
93 #ifdef GYOTO_USE_XERCES
94 virtual void
fillElement(FactoryMessenger *fmp) const ;
100 virtual void
getCartesian(double const * const dates, size_t const n_dates,
101 double * const x, double * const y,
102 double * const z, double * const xprime=NULL,
103 double * const yprime=NULL, double * const zprime=NULL) ;
104 virtual void
getVelocity(double const pos[4], double vel[4]) ;
virtual void setMetric(SmartPointer< Metric::Generic > metric)
Set the Metric Generic::gg_.
double pos_[3]
x, y, z or r, theta, phi
Definition: GyotoFixedStar.h:56
void setPos(const double[3])
Set pos_ array.
virtual 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.
Base class for metric description.
virtual FixedStar * clone() const
Cloner.
double const * getPos() const
Get const pointer to pos_.
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:51
virtual int setParameter(std::string name, std::string content, std::string unit)
Set parameter by name.
Fixed (i.e. non-moving) star (or spherical blob)
Definition: GyotoFixedStar.h:48
virtual void setRadius(double radius)
Set radius.
virtual void fillElement(FactoryMessenger *fmp) const
Fill the generic XML bits.
virtual void getVelocity(double const pos[4], double vel[4])
Yield velocity of the center of the sphere.