20 #ifndef _STELMAINSCRIPTAPI_HPP_
21 #define _STELMAINSCRIPTAPI_HPP_
25 #include <QStringList>
83 void setDate(
const QString& dt,
const QString& spec=
"utc",
const bool& enableDeltaT=
true);
90 QString
getDate(
const QString& spec=
"utc");
197 void clear(
const QString& state=
"natural");
232 void moveToAltAzi(
const QString& alt,
const QString& azi,
float duration=1.);
239 void moveToRaDec(
const QString& ra,
const QString& dec,
float duration=1.);
246 void moveToRaDecJ2000(
const QString& ra,
const QString& dec,
float duration=1.);
265 void setObserverLocation(
double longitude,
double latitude,
double altitude,
double duration=1.,
const QString& name=
"",
const QString& planet=
"");
294 void screenshot(
const QString& prefix,
bool invert=
false,
const QString& dir=
"");
409 void loadSkyImage(
const QString&
id,
const QString& filename,
410 double ra0,
double dec0,
411 double ra1,
double dec1,
412 double ra2,
double dec2,
413 double ra3,
double dec3,
414 double minRes=2.5,
double maxBright=14,
bool visible=
true);
420 void loadSkyImage(
const QString&
id,
const QString& filename,
421 const QString& ra0,
const QString& dec0,
422 const QString& ra1,
const QString& dec1,
423 const QString& ra2,
const QString& dec2,
424 const QString& ra3,
const QString& dec3,
425 double minRes=2.5,
double maxBright=14,
bool visible=
true);
441 void loadSkyImage(
const QString&
id,
const QString& filename,
442 double ra,
double dec,
double angSize,
double rotation,
443 double minRes=2.5,
double maxBright=14,
bool visible=
true);
449 void loadSkyImage(
const QString&
id,
const QString& filename,
450 const QString& ra,
const QString& dec,
double angSize,
double rotation,
451 double minRes=2.5,
double maxBright=14,
bool visible=
true);
472 double alt0,
double azi0,
473 double alt1,
double azi1,
474 double alt2,
double azi2,
475 double alt3,
double azi3,
476 double minRes=2.5,
double maxBright=14,
bool visible=
true);
493 double alt,
double azi,
double angSize,
double rotation,
494 double minRes=2.5,
double maxBright=14,
bool visible=
true);
504 void loadSound(
const QString& filename,
const QString&
id);
534 void loadVideo(
const QString& filename,
const QString&
id,
float x,
float y,
bool show,
float alpha);
559 void seekVideo(
const QString&
id, qint64 ms);
565 void setVideoXY(
const QString&
id,
float x,
float y);
576 void resizeVideo(
const QString&
id,
float w,
float h);
581 void showVideo(
const QString&
id,
bool show);
615 void debug(
const QString& s);
654 void requestLoadSkyImage(
const QString&
id,
const QString& filename,
655 double c1,
double c2,
656 double c3,
double c4,
657 double c5,
double c6,
658 double c7,
double c8,
659 double minRes,
double maxBright,
bool visible);
660 void requestLoadSkyImageAltAz(
const QString&
id,
const QString& filename,
661 double c1,
double c2,
662 double c3,
double c4,
663 double c5,
double c6,
664 double c7,
double c8,
665 double minRes,
double maxBright,
bool visible);
668 void requestRemoveSkyImage(
const QString&
id);
670 void requestLoadSound(
const QString& filename,
const QString&
id);
671 void requestPlaySound(
const QString&
id);
672 void requestPauseSound(
const QString&
id);
673 void requestStopSound(
const QString&
id);
674 void requestDropSound(
const QString&
id);
675 void requestLoadVideo(
const QString& filename,
const QString&
id,
float x,
float y,
bool show,
float alpha);
676 void requestPlayVideo(
const QString&
id);
677 void requestPauseVideo(
const QString&
id);
678 void requestStopVideo(
const QString&
id);
679 void requestDropVideo(
const QString&
id);
680 void requestSeekVideo(
const QString&
id, qint64 ms);
681 void requestSetVideoXY(
const QString&
id,
float x,
float y);
682 void requestSetVideoAlpha(
const QString&
id,
float alpha);
683 void requestResizeVideo(
const QString&
id,
float w,
float h);
684 void requestShowVideo(
const QString&
id,
bool show);
686 void requestSetNightMode(
bool b);
687 void requestSetProjectionMode(QString
id);
688 void requestSetSkyCulture(QString
id);
689 void requestSetDiskViewport(
bool b);
691 void requestSetHomePosition();
694 #endif // _STELMAINSCRIPTAPI_HPP_