26 static const char NUMBER_PLATFORM_POSITIONS_KW[] =
"platform_positions_count";
57 if ((
_p != NULL) && (
_dp != NULL)) {
58 for (
int j=0; j<3; ++j) {
100 const double JOURCIVIL_LENGTH = 86400.0;
103 _dp =
new double*[3];
105 for (
int j=0; j<3; ++j) {
119 for (
int j = 0; j < 3; j++)
133 const double JOURCIVIL_LENGTH = 86400.0;
164 for (
int j = 0; j < 3; j++)
178 double* speed_ptr = ephemeris->
get_speed();
179 if (position.size() != 3) position.resize(3);
180 if (speed.size() != 3) speed.resize(3);
181 position[0] = position_ptr[0];
182 position[1] = position_ptr[1];
183 position[2] = position_ptr[2];
184 speed[0] = speed_ptr[0];
185 speed[1] = speed_ptr[1];
186 speed[2] = speed_ptr[2];
201 return _data[noData];
213 const char* prefix)
const 215 kwl.
add(prefix, NUMBER_PLATFORM_POSITIONS_KW,
_nbrData);
226 s2 +=
"platform_position[";
243 const char* lookup = 0;
244 lookup = kwl.
find(prefix, NUMBER_PLATFORM_POSITIONS_KW);
264 s2 +=
"platform_position[";
void set_position(double position[3])
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.
double get_julianDate() const
Represents serializable keyword/value map.
const char * find(const char *key) const
static ossimString toString(bool aValue)
Numeric to string methods.
void set_speed(double speed[3])
void set_date(JSDDateTime date)
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
This class represents an ephemeris.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
JulianDate get_day0hTU() const
const char * chars() const
For backward compatibility.
double get_second() const
virtual Ephemeris * Clone()
This function creatse a copy of the current class.
JSDDateTime get_date() const
double get_decimal() const
int Interpolate(double x, double &y, double &dy) const
This function performs the interpolation for the abscissa x.
This class represents a date.