StelMainScriptAPI.hpp   StelMainScriptAPI.hpp 
skipping to change at line 54 skipping to change at line 54
// These functions will be available in scripts // These functions will be available in scripts
public slots: public slots:
//! Set the current date in Julian Day //! Set the current date in Julian Day
//! @param JD the Julian Date //! @param JD the Julian Date
void setJDay(double JD); void setJDay(double JD);
//! Get the current date in Julian Day //! Get the current date in Julian Day
//! @return the Julian Date //! @return the Julian Date
double getJDay() const; double getJDay() const;
//! Set the current date in Modified Julian Day
//! @param MJD the Modified Julian Date
void setMJDay(double MJD);
//! Get the current date in Modified Julian Day
//! @return the Modified Julian Date
double getMJDay() const;
//! set the date in ISO format, e.g. "2008-03-24T13:21:01" //! set the date in ISO format, e.g. "2008-03-24T13:21:01"
//! @param dt the date string to use. Formats: //! @param dt the date string to use. Formats:
//! - ISO, e.g. "2008-03-24T13:21:01" //! - ISO, e.g. "2008-03-24T13:21:01"
//! - "now" (set sim time to real time) //! - "now" (set sim time to real time)
//! - relative, e.g. "+ 4 days", "-2 weeks". can use these //! - relative, e.g. "+ 4 days", "-2 weeks". can use these
//! units: seconds, minutes, hours, days, weeks, months, years. //! units: seconds, minutes, hours, days, weeks, months, years.
//! You may also append " sidereal" to use sidereal days and so on . //! You may also append " sidereal" to use sidereal days and so on .
//! You can also use "now" at the start. For example: //! You can also use "now" at the start. For example:
//! "now + 3 hours sidereal" //! "now + 3 hours sidereal"
//! Note: you must use the plural all the time, even when the numb er //! Note: you must use the plural all the time, even when the numb er
//! of the unit is 1. i.e. use "+ 1 days" not "+1 day". //! of the unit is 1. i.e. use "+ 1 days" not "+1 day".
//! Note: when sidereal time is used, the length of time for //! Note: when sidereal time is used, the length of time for
//! each unit is dependent on the current planet. By contrast //! each unit is dependent on the current planet. By contrast
//! when sidereal timeis not specified (i.e. solar time is used) //! when sidereal timeis not specified (i.e. solar time is used)
//! the value is conventional - i.e. 1 day means 1 Earth Solar day. //! the value is conventional - i.e. 1 day means 1 Earth Solar day.
//! @param spec "local" or "utc" - only has an effect when //! @param spec "local" or "utc" - only has an effect when
//! the ISO date type is used. //! the ISO date type is used.
void setDate(const QString& dt, const QString& spec="utc"); //! @param enableDeltaT true or false - enable Delta-T correction or
not
void setDate(const QString& dt, const QString& spec="utc", const boo
l& enableDeltaT=false);
//! get the simulation date and time as a string in ISO format, //! get the simulation date and time as a string in ISO format,
//! e.g. "2008-03-24T13:21:01" //! e.g. "2008-03-24T13:21:01"
//! @param spec if "utc", the returned string's timezone is UTC, //! @param spec if "utc", the returned string's timezone is UTC,
//! else it is local time. //! else it is local time.
//! @return the current simulation time. //! @return the current simulation time.
QString getDate(const QString& spec="utc"); QString getDate(const QString& spec="utc");
//! get the DeltaT for the simulation date and time as a string //! get the DeltaT for the simulation date and time as a string
//! in HMS format, e.g. "0h1m68.2s" //! in HMS format, e.g. "0h1m68.2s"
skipping to change at line 330 skipping to change at line 338
//! Find out the current sky culture //! Find out the current sky culture
//! @return the ID of the current sky culture (i.e. the name of the directory in //! @return the ID of the current sky culture (i.e. the name of the directory in
//! which the curret sky cultures files are found, e.g. "western") //! which the curret sky cultures files are found, e.g. "western")
QString getSkyCulture(); QString getSkyCulture();
//! Set the current sky culture //! Set the current sky culture
//! @param id the ID of the sky culture to set, e.g. western or inui t etc. //! @param id the ID of the sky culture to set, e.g. western or inui t etc.
void setSkyCulture(const QString& id); void setSkyCulture(const QString& id);
//! Find out the current sky culture and get it English name
//! @return the English name of the current sky culture
QString getSkyCultureName();
//! Find out the current sky culture and get it localized name
//! @return the translated name of the current sky culture
QString getSkyCultureNameI18n();
//! Get the current status of the gravity labels option //! Get the current status of the gravity labels option
//! @return true if gravity labels are enabled, else false //! @return true if gravity labels are enabled, else false
bool getFlagGravityLabels(); bool getFlagGravityLabels();
//! Turn on/off gravity labels //! Turn on/off gravity labels
//! @param b if true, turn on gravity labels, else turn them off //! @param b if true, turn on gravity labels, else turn them off
void setFlagGravityLabels(bool b); void setFlagGravityLabels(bool b);
//! Load an image which will have sky coordinates. //! Load an image which will have sky coordinates.
//! @param id a string ID to be used when referring to this //! @param id a string ID to be used when referring to this
//! image (e.g. when changing the displayed status or deleting //! image (e.g. when changing the displayed status or deleting
//! it. //! it.
//! @param filename the file name of the image. If a relative //! @param filename the file name of the image. If a relative
//! path is specified, "scripts/" will be prefixed before the //! path is specified, "scripts/" will be prefixed before the
//! image is searched for using StelFileMgr. //! image is searched for using StelFileMgr.
//! @param ra0 The right ascension of the first corner of the image in degrees //! @param ra0 The right ascension of the first corner of the image in degrees
//! @param dec0 The declenation of the first corner of the image in degrees //! @param dec0 The declination of the first corner of the image in degrees
//! @param ra1 The right ascension of the second corner of the image in degrees //! @param ra1 The right ascension of the second corner of the image in degrees
//! @param dec1 The declenation of the second corner of the image in degrees //! @param dec1 The declination of the second corner of the image in degrees
//! @param ra2 The right ascension of the third corner of the image in degrees //! @param ra2 The right ascension of the third corner of the image in degrees
//! @param dec2 The declenation of the third corner of the image in degrees //! @param dec2 The declination of the third corner of the image in degrees
//! @param ra3 The right ascension of the fourth corner of the image in degrees //! @param ra3 The right ascension of the fourth corner of the image in degrees
//! @param dec3 The declenation of the fourth corner of the image in degrees //! @param dec3 The declination of the fourth corner of the image in degrees
//! @param minRes The minimum resolution setting for the image //! @param minRes The minimum resolution setting for the image
//! @param maxBright The maximum brightness setting for the image //! @param maxBright The maximum brightness setting for the image
//! @param visible The initial visibility of the image //! @param visible The initial visibility of the image
void loadSkyImage(const QString& id, const QString& filename, void loadSkyImage(const QString& id, const QString& filename,
double ra0, double dec0, double ra0, double dec0,
double ra1, double dec1, double ra1, double dec1,
double ra2, double dec2, double ra2, double dec2,
double ra3, double dec3, double ra3, double dec3,
double minRes=2.5, double maxBrigh t=14, bool visible=true); double minRes=2.5, double maxBrigh t=14, bool visible=true);
skipping to change at line 588 skipping to change at line 604
//! Go to defaults position and direction of view //! Go to defaults position and direction of view
void goHome(); void goHome();
//! Show or hide the Milky Way. //! Show or hide the Milky Way.
//! @param b if true, show the Milky Way, if false, hide the Milky W ay. //! @param b if true, show the Milky Way, if false, hide the Milky W ay.
void setMilkyWayVisible(bool b); void setMilkyWayVisible(bool b);
//! Set Milky Way intensity. //! Set Milky Way intensity.
//! @param i value of intensity for the Milky Way //! @param i value of intensity for the Milky Way
void setMilkyWayIntensity(float i); void setMilkyWayIntensity(double i);
//! Get Milky Way intensity. //! Get Milky Way intensity.
//! @return value of Milky Way intensity, e.g. "1.2" //! @return value of Milky Way intensity, e.g. "1.2"
float getMilkyWayIntensity(); double getMilkyWayIntensity();
//! For use in setDate and waitFor //! For use in setDate and waitFor
//! For parameter descriptions see setDate(). //! For parameter descriptions see setDate().
//! @returns Julian day. //! @returns Julian day.
double jdFromDateString(const QString& dt, const QString& spec); double jdFromDateString(const QString& dt, const QString& spec);
signals: signals:
void requestLoadSkyImage(const QString& id, const QString& filename, void requestLoadSkyImage(const QString& id, const QString& filename,
double c1, double c 2, double c1, double c 2,
double c3, double c 4, double c3, double c 4,
 End of changes. 9 change blocks. 
7 lines changed or deleted 25 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/