20 #ifndef _STELMAINSCRIPTAPI_HPP_
21 #define _STELMAINSCRIPTAPI_HPP_
25 #include <QStringList>
79 void setDate(
const QString& dt,
const QString& spec=
"utc",
const bool& enableDeltaT=
false);
86 QString
getDate(
const QString& spec=
"utc");
160 void clear(
const QString& state=
"natural");
195 void moveToAltAzi(
const QString& alt,
const QString& azi,
float duration=1.);
202 void moveToRaDec(
const QString& ra,
const QString& dec,
float duration=1.);
209 void moveToRaDecJ2000(
const QString& ra,
const QString& dec,
float duration=1.);
228 void setObserverLocation(
double longitude,
double latitude,
double altitude,
double duration=1.,
const QString& name=
"",
const QString& planet=
"");
257 void screenshot(
const QString& prefix,
bool invert=
false,
const QString& dir=
"");
372 void loadSkyImage(
const QString&
id,
const QString& filename,
373 double ra0,
double dec0,
374 double ra1,
double dec1,
375 double ra2,
double dec2,
376 double ra3,
double dec3,
377 double minRes=2.5,
double maxBright=14,
bool visible=
true);
383 void loadSkyImage(
const QString&
id,
const QString& filename,
384 const QString& ra0,
const QString& dec0,
385 const QString& ra1,
const QString& dec1,
386 const QString& ra2,
const QString& dec2,
387 const QString& ra3,
const QString& dec3,
388 double minRes=2.5,
double maxBright=14,
bool visible=
true);
404 void loadSkyImage(
const QString&
id,
const QString& filename,
405 double ra,
double dec,
double angSize,
double rotation,
406 double minRes=2.5,
double maxBright=14,
bool visible=
true);
412 void loadSkyImage(
const QString&
id,
const QString& filename,
413 const QString& ra,
const QString& dec,
double angSize,
double rotation,
414 double minRes=2.5,
double maxBright=14,
bool visible=
true);
435 double alt0,
double azi0,
436 double alt1,
double azi1,
437 double alt2,
double azi2,
438 double alt3,
double azi3,
439 double minRes=2.5,
double maxBright=14,
bool visible=
true);
456 double alt,
double azi,
double angSize,
double rotation,
457 double minRes=2.5,
double maxBright=14,
bool visible=
true);
467 void loadSound(
const QString& filename,
const QString&
id);
497 void loadVideo(
const QString& filename,
const QString&
id,
float x,
float y,
bool show,
float alpha);
522 void seekVideo(
const QString&
id, qint64 ms);
528 void setVideoXY(
const QString&
id,
float x,
float y);
539 void resizeVideo(
const QString&
id,
float w,
float h);
544 void showVideo(
const QString&
id,
bool show);
578 void debug(
const QString& s);
617 void requestLoadSkyImage(
const QString&
id,
const QString& filename,
618 double c1,
double c2,
619 double c3,
double c4,
620 double c5,
double c6,
621 double c7,
double c8,
622 double minRes,
double maxBright,
bool visible);
623 void requestLoadSkyImageAltAz(
const QString&
id,
const QString& filename,
624 double c1,
double c2,
625 double c3,
double c4,
626 double c5,
double c6,
627 double c7,
double c8,
628 double minRes,
double maxBright,
bool visible);
631 void requestRemoveSkyImage(
const QString&
id);
633 void requestLoadSound(
const QString& filename,
const QString&
id);
634 void requestPlaySound(
const QString&
id);
635 void requestPauseSound(
const QString&
id);
636 void requestStopSound(
const QString&
id);
637 void requestDropSound(
const QString&
id);
638 void requestLoadVideo(
const QString& filename,
const QString&
id,
float x,
float y,
bool show,
float alpha);
639 void requestPlayVideo(
const QString&
id);
640 void requestPauseVideo(
const QString&
id);
641 void requestStopVideo(
const QString&
id);
642 void requestDropVideo(
const QString&
id);
643 void requestSeekVideo(
const QString&
id, qint64 ms);
644 void requestSetVideoXY(
const QString&
id,
float x,
float y);
645 void requestSetVideoAlpha(
const QString&
id,
float alpha);
646 void requestResizeVideo(
const QString&
id,
float w,
float h);
647 void requestShowVideo(
const QString&
id,
bool show);
649 void requestSetNightMode(
bool b);
650 void requestSetProjectionMode(QString
id);
651 void requestSetSkyCulture(QString
id);
652 void requestSetDiskViewport(
bool b);
654 void requestSetHomePosition();
657 #endif // _STELMAINSCRIPTAPI_HPP_