Stellarium
0.18.3
|
Provide script API for Stellarium global functions. More...
#include <StelMainScriptAPI.hpp>
Public Slots | |
void | setJDay (double JD) |
Set the current date as Julian Day number. More... | |
double | getJDay () const |
Get the current date as Julian Day number. More... | |
void | setMJDay (double MJD) |
Set the current date as Modified Julian Day. More... | |
double | getMJDay () const |
Get the current date as Modified Julian Day. More... | |
void | setDate (const QString &dateStr, const QString &spec="utc", const bool &dateIsDT=false) |
set the date in ISO format, e.g. More... | |
QString | getDate (const QString &spec="utc") const |
get the simulation date and time as a string in ISO format, e.g. More... | |
QString | getDeltaT () const |
get the DeltaT for the simulation date and time as a string in HMS format, e.g. More... | |
QString | getDeltaTAlgorithm () const |
get the DeltaT equation name for the simulation date and time as a string More... | |
void | setDeltaTAlgorithm (QString algorithmName) |
set equation of the DeltaT for the simulation date and time More... | |
void | setTimeRate (double ts) |
Set time speed in JDay/sec. More... | |
double | getTimeRate () const |
Get simulation time rate. More... | |
bool | isRealTime () const |
Get the simulation time and rate state - is it "real time". More... | |
void | setRealTime () |
Set the simulation time to the current system time, and the time rate to 1. | |
bool | isPlanetocentricCalculations () const |
Get the type of calculations in the simulation - is it "planetocentric calculations" or not. More... | |
void | setPlanetocentricCalculations (bool f) |
Set the flag for use planetocentric calculations. | |
void | selectObjectByName (const QString &name, bool pointer=false) const |
Select an object by name. More... | |
void | selectConstellationByName (const QString &name) const |
Select a constellation by name. More... | |
QVariantMap | getObjectPosition (const QString &name) const |
Fetch a map with data about an object's position, magnitude and so on. More... | |
QVariantMap | getObjectInfo (const QString &name) const |
Fetch a map with data about an object's position, magnitude and so on. More... | |
QVariantMap | getSelectedObjectInfo () const |
Fetch a map with data about the latest selected object's position, magnitude and so on. More... | |
void | clear (const QString &state="natural") |
Clear the display options, setting a "standard" view. More... | |
double | getViewAltitudeAngle () const |
Get the current viewing direction altitude angle at center of view. More... | |
double | getViewAzimuthAngle () const |
Get the current viewing direction azimuth angle at center of view. More... | |
double | getViewRaAngle () const |
Get the current viewing direction Right Ascension at center of view. More... | |
double | getViewDecAngle () const |
Get the current viewing direction Declination angle at center of view. More... | |
double | getViewRaJ2000Angle () const |
Get the current viewing direction Right Ascension in J2000 frame at center of view. More... | |
double | getViewDecJ2000Angle () const |
Get the current viewing direction Declination angle in J2000 frame at center of view. More... | |
void | moveToAltAzi (const QString &alt, const QString &azi, float duration=1.) |
move the current viewing direction to some specified altitude and azimuth. More... | |
void | moveToRaDec (const QString &ra, const QString &dec, float duration=1.) |
move the current viewing direction to some specified right ascension and declination. More... | |
void | moveToRaDecJ2000 (const QString &ra, const QString &dec, float duration=1.) |
move the current viewing direction to some specified right ascension and declination in the J2000 frame angles may be specified in a format recognised by StelUtils::getDecAngle() More... | |
void | moveToGalLongLat (const QString &lon, const QString &lat, float duration) |
move the current viewing direction to some specified galactic coordinates angles may be specified in a format recognised by StelUtils::getDecAngle() More... | |
void | setObserverLocation (double longitude, double latitude, double altitude, double duration=1., const QString &name="", const QString &planet="") |
Set the observer location. More... | |
void | setObserverLocation (const QString id, float duration=1.) |
Set the location by the name of the location. More... | |
QString | getObserverLocation () const |
Get the ID of the current observer location. | |
QVariantMap | getObserverLocationInfo () const |
Get the info of the current observer location. More... | |
void | setTimezone (QString tz) |
set timezone name. More... | |
QStringList | getAllTimezoneNames () const |
Return an array of all timezone names valid for setTimezone(tzName) | |
void | screenshot (const QString &prefix, bool invert=false, const QString &dir="", const bool overwrite=false) |
Save a screenshot. More... | |
void | setGuiVisible (bool b) |
Show or hide the GUI (toolbars). More... | |
void | setMinFps (float m) |
Set the minimum frames per second. More... | |
float | getMinFps () const |
Get the current minimum frames per second. More... | |
void | setMaxFps (float m) |
Set the maximum frames per second. More... | |
float | getMaxFps () const |
Get the current maximum frames per second. More... | |
QString | getMountMode () const |
Get the mount mode as a string. More... | |
void | setMountMode (const QString &mode) |
Set the mount mode. More... | |
bool | getNightMode () const |
Get the current status of Night Mode. More... | |
void | setNightMode (bool b) |
Set the status of Night Mode. More... | |
QString | getProjectionMode () const |
Get the current projection mode ID string. More... | |
void | setProjectionMode (const QString &id) |
Set the current projection mode. More... | |
bool | getDiskViewport () const |
Get the status of the disk viewport. More... | |
void | setDiskViewport (bool b) |
Set the disk viewport. More... | |
void | setSphericMirror (bool b) |
Set the viewport distortion effect. More... | |
void | setViewportOffset (const float x, const float y) |
Set viewport offset This can be used e.g. More... | |
void | setViewportStretch (const float stretch) |
Set a lateral width distortion. More... | |
QStringList | getAllSkyCultureIDs () const |
Get a list of Sky Culture IDs. More... | |
QString | getSkyCulture () const |
Find out the current sky culture. More... | |
void | setSkyCulture (const QString &id) |
Set the current sky culture. More... | |
QString | getSkyCultureName () const |
Find out the current sky culture and get it English name. More... | |
QString | getSkyCultureNameI18n () const |
Find out the current sky culture and get it localized name. More... | |
bool | getFlagGravityLabels () const |
Get the current status of the gravity labels option. More... | |
void | setFlagGravityLabels (bool b) |
Turn on/off gravity labels. More... | |
void | loadSkyImage (const QString &id, const QString &filename, double lon0, double lat0, double lon1, double lat1, double lon2, double lat2, double lon3, double lat3, double minRes=2.5, double maxBright=14, bool visible=true, const QString &frame="EqJ2000") |
Load an image into the sky background at the given sky coordinates and be warped with the sky. More... | |
void | loadSkyImage (const QString &id, const QString &filename, const QString &lon0, const QString &lat0, const QString &lon1, const QString &lat1, const QString &lon2, const QString &lat2, const QString &lon3, const QString &lat3, double minRes=2.5, double maxBright=14, bool visible=true, const QString &frame="EqJ2000") |
Convenience function which allows the user to provide longitudinal and latitudinal angles (RA/Dec or Long/Lat or Az/Alt) as strings (e.g. More... | |
void | loadSkyImage (const QString &id, const QString &filename, double lon, double lat, double angSize, double rotation, double minRes=2.5, double maxBright=14, bool visible=true, const QString &frame="EqJ2000") |
Convenience function which allows loading of a (square) sky image based on a central coordinate, angular size and rotation. More... | |
void | loadSkyImage (const QString &id, const QString &filename, const QString &lon, const QString &lat, double angSize, double rotation, double minRes=2.5, double maxBright=14, bool visible=true, const QString &frame="EqJ2000") |
Convenience function which allows loading of a (square) sky image based on a central coordinate, angular size and rotation. More... | |
void | loadSkyImageAltAz (const QString &id, const QString &filename, double azi0, double alt0, double azi1, double alt1, double azi2, double alt2, double azi3, double alt3, double minRes=2.5, double maxBright=14, bool visible=true) |
Load an image which will have a sky location given in alt-azimuthal coordinates. More... | |
void | loadSkyImageAltAz (const QString &id, const QString &filename, double alt, double azi, double angSize, double rotation, double minRes=2.5, double maxBright=14, bool visible=true) |
Convenience function which allows loading of a sky image based on a central alt-azimuthal coordinate, angular size and rotation. More... | |
void | removeSkyImage (const QString &id) |
Remove a SkyImage. More... | |
QVariantMap | getScreenXYFromAltAzi (const QString &alt, const QString &azi) const |
Get screen coordinates from some specified altitude and azimuth angles may be specified in a format recognised by StelUtils::getDecAngle() More... | |
void | loadSound (const QString &filename, const QString &id) |
Load a sound from a file. More... | |
void | playSound (const QString &id) |
Play a sound which has previously been loaded with loadSound. More... | |
void | pauseSound (const QString &id) |
Pause a sound which is playing. More... | |
void | stopSound (const QString &id) |
Stop a sound from playing. More... | |
void | dropSound (const QString &id) |
Drop a sound from memory. More... | |
qint64 | getSoundPosition (const QString &id) const |
Get position in a playing sound. More... | |
qint64 | getSoundDuration (const QString &id) const |
Get duration of a sound object (if possible). More... | |
void | loadVideo (const QString &filename, const QString &id, float x, float y, bool show=true, float alpha=1.0f) |
Load a video from a file. More... | |
void | playVideo (const QString &id, bool keepVisibleAtEnd=false) |
Play a video which has previously been loaded with loadVideo. More... | |
void | playVideoPopout (const QString &id, float fromX, float fromY, float atCenterX, float atCenterY, float finalSizeX, float finalSizeY, float popupDuration, bool frozenInTransition) |
Play a video which has previously been loaded with loadVideo with a complex effect. More... | |
void | pauseVideo (const QString &id) |
Pause a video which is playing. More... | |
void | stopVideo (const QString &id) |
Stop a video from playing. More... | |
void | dropVideo (const QString &id) |
Drop a video from memory. More... | |
void | seekVideo (const QString &id, qint64 ms, bool pause=false) |
Seeks a video to the requested time and either start playing or freeze there. More... | |
void | setVideoXY (const QString &id, float x, float y, bool relative=false) |
Sets the position of the video widget. More... | |
void | setVideoAlpha (const QString &id, float alpha) |
Set the alpha value of a video when visible. More... | |
void | resizeVideo (const QString &id, float w, float h) |
Resize the video widget to the specified width, height. More... | |
void | showVideo (const QString &id, bool show=true) |
Set the visibility state of a video. More... | |
qint64 | getVideoDuration (const QString &id) const |
Get the duration of a loaded video, or -1. More... | |
qint64 | getVideoPosition (const QString &id) const |
Get the current position of a loaded video, or -1. More... | |
int | getScreenWidth () const |
Get the screen width in pixels. More... | |
int | getScreenHeight () const |
Get the screen height (actually, height of Stellarium main view) in pixels. More... | |
double | getScriptRate () const |
Get the script execution rate as a multiple of normal execution speed. More... | |
void | setScriptRate (double r) |
Set the script execution rate as a multiple of normal execution speed. More... | |
void | pauseScript () |
Pause the currently running script. More... | |
void | setSelectedObjectInfo (const QString &level) |
Set the amount of selected object information to display. More... | |
void | exit () |
Stop the script. | |
void | quitStellarium () |
Close Stellarium. | |
QStringList | getPropertyList () const |
Return a QStringlist of all available properties. Useful for script development... | |
static void | debug (const QString &s) |
print a debugging message to the console More... | |
void | output (const QString &s) const |
print an output message from script More... | |
static QString | mapToString (const QVariantMap &map) |
print contents of a QVariantMap as []-delimited list of [ "key" = ] lists. More... | |
void | resetOutput (void) const |
Reset (clear) output file. | |
void | saveOutputAs (const QString &filename) |
Save output file to new file (in same directory as output.txt). More... | |
QString | getAppLanguage () const |
Get the current application language. More... | |
void | setAppLanguage (QString langCode) |
Set the current application language. More... | |
QString | getSkyLanguage () const |
Get the current sky language. More... | |
void | setSkyLanguage (QString langCode) |
Set the current sky language. More... | |
void | goHome () |
Go to defaults position and direction of view. | |
void | setMilkyWayVisible (bool b) |
Show or hide the Milky Way. More... | |
void | setMilkyWayIntensity (double i) |
Set Milky Way intensity. More... | |
double | getMilkyWayIntensity () const |
Get Milky Way intensity. More... | |
void | setZodiacalLightVisible (bool b) |
Show or hide the Zodiacal Light. More... | |
void | setZodiacalLightIntensity (double i) |
Set Zodiacal Light intensity. More... | |
double | getZodiacalLightIntensity () const |
Get Zodiacal Light intensity. More... | |
int | getBortleScaleIndex () const |
Returns the currently set Bortle scale index, which is used to simulate light pollution. More... | |
void | setBortleScaleIndex (int index) |
Changes the Bortle scale index, which is used to simulate light pollution. More... | |
void | setDSSMode (bool b) |
Show or hide the DSS (photorealistic sky). More... | |
bool | isDSSModeEnabled () const |
Get the current status of DSS mode. More... | |
static double | jdFromDateString (const QString &dt, const QString &spec) |
For use in setDate and waitFor For parameter descriptions see setDate(). More... | |
void | wait (double t) const |
Pauses the script for t seconds. More... | |
void | waitFor (const QString &dt, const QString &spec="utc") const |
Waits until a specified simulation date/time. More... | |
static QString | getEnv (const QString &var) |
Retrieve value of environment variable. More... | |
Signals | |
void | requestLoadSkyImage (const QString &id, const QString &filename, double c1, double c2, double c3, double c4, double c5, double c6, double c7, double c8, double minRes, double maxBright, bool visible, const StelCore::FrameType frameType) |
void | requestLoadSkyImageAltAz (const QString &id, const QString &filename, double c1, double c2, double c3, double c4, double c5, double c6, double c7, double c8, double minRes, double maxBright, bool visible) |
void | requestRemoveSkyImage (const QString &id) |
void | requestLoadSound (const QString &filename, const QString &id) |
void | requestPlaySound (const QString &id) |
void | requestPauseSound (const QString &id) |
void | requestStopSound (const QString &id) |
void | requestDropSound (const QString &id) |
void | requestLoadVideo (const QString &filename, const QString &id, float x, float y, bool show, float alpha) |
void | requestPlayVideo (const QString &id, const bool keepVisibleAtEnd) |
void | requestPlayVideoPopout (const QString &id, float fromX, float fromY, float atCenterX, float atCenterY, float finalSizeX, float finalSizeY, float popupDuration, bool frozenInTransition) |
void | requestPauseVideo (const QString &id) |
void | requestStopVideo (const QString &id) |
void | requestDropVideo (const QString &id) |
void | requestSeekVideo (const QString &id, qint64 ms, bool pause=false) |
void | requestSetVideoXY (const QString &id, float x, float y, bool relative=false) |
void | requestSetVideoAlpha (const QString &id, float alpha) |
void | requestResizeVideo (const QString &id, float w, float h) |
void | requestShowVideo (const QString &id, bool show) |
void | requestSetNightMode (bool b) |
void | requestSetProjectionMode (QString id) |
void | requestSetSkyCulture (QString id) |
void | requestSetDiskViewport (bool b) |
void | requestExit () |
void | requestSetHomePosition () |
Public Member Functions | |
StelMainScriptAPI (QObject *parent=Q_NULLPTR) | |
Properties | |
double | JDay |
double | timeSpeed |
Public slots in this class may be used in Stellarium scripts, and are accessed as member function to the "core" scripting object. Module-specific functions, such as setting and clearing of display flags (e.g. LandscapeMgr::setFlagAtmosphere) can be accessed directly via the scripting object with the class name, e.g. by using the scripting command: LandscapeMgr.setFlagAtmosphere(true);
|
slot |
Preset states:
state | the name of a preset state. |
|
staticslot |
s | the message to be displayed on the console. |
|
slot |
You should do this before the end of your script.
id | the identifier used when loadSound was called |
|
slot |
You should do this before the end of your script.
id | the identifier used when loadVideo() was called |
|
slot |
|
slot |
|
slot |
Wrapper for StelSkyDrawer::getBortleScaleIndex
|
slot |
"2008-03-24T13:21:01"
spec | if "utc", the returned string's timezone is UTC, else it is local time. |
|
slot |
"0h1m68.2s"
|
slot |
|
slot |
|
staticslot |
name. | On desktop Windows and Qt before 5.10, this call may result in data loss if the original string contains Unicode characters not representable in the ANSI encoding. |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
name | is the English name of the object for which data will be returned. |
|
slot |
name | is the English name of the object for which data will be returned. |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
alt | the altitude angle [degrees] |
azi | the azimuth angle [degrees] |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
id | the identifier used when loadSound was called |
|
slot |
id | the identifier used when loadSound was called |
|
slot |
|
slot |
id | the identifier used when loadVideo() was called |
|
slot |
id | the identifier used when loadVideo() was called |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
staticslot |
|
slot |
The image is projected like a deep-sky object, with a notion for surface magnitude of the brightest parts. Transparent sections in the image are possibly rendered white, so make your image just RGB with black background. The black background covers the milky way, but is brightened by the Zodiacal light.
id | a string ID to be used when referring to this image (e.g. when changing the displayed status or deleting it. |
filename | the file name of the image. If a relative path is specified, "scripts/" will be prefixed before the image is searched for using StelFileMgr. |
lon0 | The right ascension/longitude/azimuth of the first corner of the image in degrees (bottom left) |
lat0 | The declination/latitude/altitude of the first corner of the image in degrees (bottom left) |
lon1 | The right ascension/longitude/azimuth of the second corner of the image in degrees (bottom right) |
lat1 | The declination/latitude/altitude of the second corner of the image in degrees (bottom right) |
lon2 | The right ascension/longitude/azimuth of the third corner of the image in degrees (top right) |
lat2 | The declination/latitude/altitude of the third corner of the image in degrees (top right) |
lon3 | The right ascension/longitude/azimuth of the fourth corner of the image in degrees (top left) |
lat3 | The declination/latitude/altitude of the fourth corner of the image in degrees (top left) |
minRes | The minimum resolution setting for the image |
maxBright | The maximum brightness setting for the image |
visible | The initial visibility of the image |
frame | one of EqJ2000|EqDate|EclJ2000|EclDate|Gal(actic)|SuperG(alactic)|AzAlt. |
|
slot |
"12d 14m 8s" or "5h 26m 8s" - formats accepted by StelUtils::getDecAngle()).
|
slot |
Note that the edges will not be aligned with edges at center plus/minus size!
id | a string ID to be used when referring to this image (e.g. when changing the displayed status or deleting it. |
filename | the file name of the image. If a relative path is specified, "scripts/" will be prefixed before the image is searched for using StelFileMgr. |
lon | The right ascension/longitude/azimuth of the center of the image in frame degrees |
lat | The declination/latitude/altitude of the center of the image in frame degrees |
angSize | The angular size of the image in arc minutes |
rotation | The clockwise rotation angle of the image in degrees. Use 0 for an image with top=north. (New from 2017 – This used to be 90!) |
minRes | The minimum resolution setting for the image. UNCLEAR, using 2.5 seems to work well. |
maxBright | The maximum brightness setting for the image, Vmag/arcmin^2. Use this to blend the brightest possible pixels with DSO. mag 15 or brighter seems ok. |
visible | The initial visibility of the image |
frame | one of EqJ2000|EqDate|EclJ2000|EclDate|Gal(actic)|SuperG(alactic)|AzAlt. |
|
slot |
Parameters are the same as the version of this function which takes double values for the lon and lat, except here text expressions of angles may be used.
|
slot |
id | a string ID to be used when referring to this image (e.g. when changing the displayed status or deleting it. |
filename | the file name of the image. If a relative path is specified, "scripts/" will be prefixed before the image is searched for using StelFileMgr. |
alt0 | The altitude angle of the first corner of the image in degrees |
azi0 | The azimuth angle of the first corner of the image in degrees |
alt1 | The altitude angle of the second corner of the image in degrees |
azi1 | The azimuth angle of the second corner of the image in degrees |
alt2 | The altitude angle of the third corner of the image in degrees |
azi2 | The azimuth angle of the third corner of the image in degrees |
alt3 | The altitude angle of the fourth corner of the image in degrees |
azi3 | The azimuth angle of the fourth corner of the image in degrees |
minRes | The minimum resolution setting for the image |
maxBright | The maximum brightness setting for the image |
visible | The initial visibility of the image |
|
slot |
id | a string ID to be used when referring to this image (e.g. when changing the displayed status or deleting it. |
filename | the file name of the image. If a relative path is specified, "scripts/" will be prefixed before the image is searched for using StelFileMgr. |
alt | The altitude angle of the center of the image in degrees |
azi | The azimuth angle of the center of the image in degrees |
angSize | The angular size of the image in arc minutes |
rotation | The clockwise rotation angle of the image in degrees |
minRes | The minimum resolution setting for the image |
maxBright | The maximum brightness setting for the image |
visible | The initial visibility of the image |
|
slot |
filename | the name of the file to load. |
id | the identifier which will be used to refer to the sound when calling playSound, pauseSound, stopSound and dropSound. |
|
slot |
filename | the name of the file to load, relative to the scripts directory. |
id | the identifier which will be used to refer to the video when calling playVideo(), pauseVideo(), stopVideo(), dropVideo() etc. |
x | the x-coordinate (pixels from left) for the video frame. |
y | the y-coordinate (pixels from top) for the video frame. |
show | the visibility state for the video. (Optional since V0.15) You should load a video with show=true (or leave default), to start it immediately in native size. Else set show=false, and then call resizeVideo(), playVideo() or use playVideoPopout(). |
alpha | the initial alpha value of the video, defaults to 1. |
|
staticslot |
map | QVariantMap e.g. from getObjectInfo() or getLocationInfo() |
|
slot |
The move will run in AltAz coordinates. This will look different from moveToRaDec() when timelapse is fast. angles may be specified in a format recognised by StelUtils::getDecAngle()
alt | the altitude angle |
azi | the azimuth angle |
duration | the duration of the movement in seconds |
|
slot |
lon | the galactic longitude |
dec | the galactic latitude |
duration | the duration of the movement in seconds |
|
slot |
The move will run in equatorial coordinates. This will look different from moveToAltAzi() when timelapse is fast. angles may be specified in a format recognised by StelUtils::getDecAngle()
ra | the right ascension angle |
dec | the declination angle |
duration | the duration of the movement in seconds |
|
slot |
ra | the right ascension angle |
dec | the declination angle |
duration | the duration of the movement in seconds |
|
slot |
s | the message to be displayed on the output file. |
|
slot |
Note that you may need to use a key sequence like 'Ctrl-D,R' or the GUI to resume script execution.
|
slot |
Subsequent playSound calls will resume playing from the position in the file when it was paused.
id | the identifier used when loadSound was called |
|
slot |
Subsequent playVideo() calls will resume playing from the position in the file when it was paused.
id | the identifier used when loadVideo() was called |
|
slot |
id | the identifier used when loadSound was called |
|
slot |
id | the identifier used when loadVideo was called |
|
slot |
The video appears out of fromX/fromY, grows within popupDuration to size finalSizeX/finalSizeY, and shrinks back towards fromX/fromY at the end during popdownDuration.
id | the identifier used when loadVideo was called |
fromX | X position of starting point, counted from left of window. May be absolute (if >1) or relative (0<X<1) |
fromY | Y position of starting point, counted from top of window. May be absolute (if >1) or relative (0<Y<1) |
atCenterX | X position of center of final video frame, counted from left of window. May be absolute (if >1) or relative (0<X<1) |
atCenterY | Y position of center of final video frame, counted from top of window. May be absolute (if >1) or relative (0<Y<1) |
finalSizeX | X size of final video frame. May be absolute (if >1) or relative to window size (0<X<1). If -1, scale proportional from finalSizeY. |
finalSizeY | Y size of final video frame. May be absolute (if >1) or relative to window size (0<Y<1). If -1, scale proportional from finalSizeX. |
popupDuration | duration of growing start transition (seconds) |
frozenInTransition | true if video should be paused during growing/shrinking transition. |
|
slot |
id | the ID of the image to remove. |
|
signal |
|
slot |
id | the identifier used when loadVideo() was called |
w | the new width for the widget. (if <1, relative to main view size) |
h | the new height for the widget. (if <1, relative to main view size) |
|
slot |
This is required to allow reading with other program on Windows while output.txt is still open.
|
slot |
prefix | the prefix for the file name to use |
dir | the path of the directory to save the screenshot in. If none is specified, the default screenshot directory will be used. |
invert | whether colors have to be inverted in the output image |
overwrite | true to use exactly the prefix as filename (plus .png), and overwrite any existing file. |
|
slot |
id | the identifier used when loadVideo() was called |
ms | the time in milliseconds from the start of the media. |
pause | true if you want to pause at the requested position, keep it false to play from here. |
|
slot |
name | the name of the constellation to select (english) |
|
slot |
name | the name of the object to select (english) If the name is "", any currently selected objects will be de-selected. |
pointer | whether or not to have the selection pointer enabled |
|
slot |
langCode | two letter language code, e.g. "en", or "de". |
|
slot |
Wrapper for StelSkyDrawer::setBortleScaleIndex Valid values are in the range [1,9]
index | the new Bortle scale index, must be in range [1,9] |
|
slot |
"2008-03-24T13:21:01"
dateStr | the date string to use. Formats:
|
spec | "local" or "utc" - only has an effect when the ISO date type is used. Defaults to "utc". |
enableDeltaT | is true or false - enable Delta-T correction or not. Defaults to "true". |
dateIsTT | true if the given date is formulated in Dynamical Time, i.e. with DeltaT added. |
|
slot |
algorithmName | is name of equation, e.g. "WithoutCorrection" or "EspenakMeeus" |
|
slot |
b | if true, sets the disk viewport on, else sets it off |
|
slot |
b | if true, show the DSS, if false, hide the DSS layer. |
|
slot |
b | if true, turn on gravity labels, else turn them off |
|
slot |
Note this only applies to GUI plugins which provide the public slot "setGuiVisible(bool)".
b | if true, show the GUI, if false, hide the GUI. |
|
slot |
JD | the Julian Day number |
|
slot |
m | the new maximum fps setting. |
|
slot |
i | value of intensity for the Milky Way |
|
slot |
b | if true, show the Milky Way, if false, hide the Milky Way. |
|
slot |
Usually this minimum will be switched to after there are no user events for some seconds to save power. However, if can be useful to set this to a high value to improve playing smoothness in scripts.
m | the new minimum fps setting. |
|
slot |
MJD | the Modified Julian Day |
|
slot |
mode | should be "equatorial" or "azimuthal" |
|
slot |
b | if true, set Night Mode, else set Normal Mode |
|
slot |
longitude | the longitude in degrees. E is +ve. values out of the range -180..180 mean that the longitude will not be set |
latitude | the latitude in degrees. N is +ve. values out of the range -90..90 mean that the latitude will not be set |
altitude | the new altitude in meters. values less than -1000 mean the altitude will not be set. |
duration | the time for the transition from the old to the new location. |
name | A name for the location (which will appear in the status bar. |
planet | the English name of the new planet. If the planet name is not known (e.g. ""), the planet will not be set. |
|
slot |
id | the location ID as it would be found in the database of locations - do a search in the Location window to see what where is. e.g. "York, UnitedKingdom". |
duration | the number of seconds to take to move location. |
|
slot |
id | the name of the projection mode to use, e.g. "ProjectionPerspective" and so on. valid values of id are:
|
|
slot |
r | the multiple of the normal script execution speed, i.e. if 5 is passed the script will execute 5 times faster than it would if the script rate was 1. |
|
slot |
level | can be "AllInfo", "ShortInfo", "None" |
|
slot |
id | the ID of the sky culture to set, e.g. western or inuit etc. |
|
slot |
langCode | two letter language code, e.g. "en", or "de". |
|
slot |
b | if true, sets the spherical mirror distortion effect for viewport on, else sets it off |
|
slot |
ts | the new rate of passage of time as a multiple of real time. For example if ts is 1, time will pass at the normal rate. If ts == 10 then simulation time will pass at 10 times the normal rate. If ts is negative, simulation time will go backwards. |
|
slot |
This only changes the currently used timezone (in StelCore). Location (database) timezone will not be touched. Valid values for tz can be found from the results of getAllTimezoneNames, including: "LMST" = Local Mean Solar Time "LTST" = Local True Solar Time
|
slot |
id | the identifier used when loadVideo() was called |
alpha | the new alpha value to set. |
alpha | does not work properly, only |
alpha=0 | makes it invisible. |
|
slot |
id | the identifier used when loadVideo() was called |
x | the new x-coordinate for the video. (if <1, relative to main view size) |
y | the new y-coordinate for the video. (if <1, relative to main view size) |
relative | true if you want to move in relative coordinates, not set absolutely |
|
slot |
in wide cylindrical panorama screens to push the horizon down and see more of the sky.
x | -0.5...0.5 horizontal offset. This is not available in the GUI, and it is recommended to keep it at 0. |
y | -0.5...0.5 vertical offset. This is available in the GUI. |
|
slot |
Use this e.g. in startup.ssc. Implemented for 0.15 for a setup with 5 projectors with edge blending. The 9600x1200 get squeezed somewhat which looks a bit odd. Use this stretch to compensate. Experimental! To avoid overuse, there is currently no config.ini setting available.
|
slot |
i | value of intensity for the Zodiacal Light |
|
slot |
b | if true, show the Zodiacal Light, if false, hide the Zodiacal Light. |
|
slot |
id | the identifier used when loadVideo() was called |
show | the new visible state of the video. |
show=false,else | video will be played hidden. |
|
slot |
This resets the position in the sound to the start so that subsequent playSound calls will start from the beginning.
id | the identifier used when loadSound was called |
|
slot |
This resets the position in the video to the start so that subsequent playVideo() calls will start from the beginning.
id | the identifier used when loadVideo() was called |
|
slot |
t | the number of seconds to wait |
|
slot |
This function will take into account the rate (and direction) in which simulation time is passing. e.g. if a future date is specified and the time is moving backwards, the function will return immediately. If the time rate is 0, the function will not wait. This is to prevent infinite wait time.
dt | the date string to use, format like "2012-06-06T4:44:00" or "-1428-03-04T22:23:45" |
spec | "local" or "utc" |