28 #ifndef __GyotoFixedStar_H_ 29 #define __GyotoFixedStar_H_ 36 namespace Astrobj {
class FixedStar; }
73 FixedStar(SmartPointer<Gyoto::Metric::Generic> gg, double StPsn[3], double radius);
82 double const *
getPos() const;
83 void
getPos(double* dst) const;
85 std::vector<double>
position() const;
86 void
position(std::vector<double> const&);
90 bool rotating() const ;
94 virtual void
metric(SmartPointer<Metric::Generic> metric) ;
96 virtual void
radius(double radius);
97 void
setPos(const double[3]);
103 virtual void
getCartesian(double const * const dates, size_t const n_dates,
104 double * const x, double * const y,
105 double * const z, double * const xprime=NULL,
106 double * const yprime=NULL, double * const zprime=NULL) ;
107 virtual void
getVelocity(double const pos[4], double vel[4]) ;
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
virtual FixedStar * clone() const
Cloner.
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.
bool rotating_
Whether the blob has a non-zero 3-velocity at Metric::circularVelocity(); note that the star anyway i...
Definition: GyotoFixedStar.h:57
double const * getPos() const
Get const pointer to pos_.
Base class for metric description.
double rMax()
Get maximal distance from center of coordinate system.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
std::vector< double > position() const
Get vector copy of pos_.
Fixed (i.e. non-moving) star (or spherical blob)
Definition: GyotoFixedStar.h:48
virtual void getVelocity(double const pos[4], double vel[4])
Yield velocity of the center of the sphere.