File: goto.ssc

package info (click to toggle)
stellarium 25.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,307,224 kB
  • sloc: ansic: 317,377; cpp: 214,435; xml: 48,592; javascript: 26,073; python: 2,113; perl: 734; sh: 247; makefile: 192; pascal: 169
file content (49 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Name: Goto Demo
// License: Public Domain
// Author: Matthew Gates
// Description: An example script for checking that the core.moveToRaDec and core.moveToRaDecJ2000
//              functions are working OK.
//

include("status_label.inc");

function cycleGrids()
{
	status("equ of date grid on");
	GridLinesMgr.setFlagEquatorGrid(true);
	GridLinesMgr.setFlagEquatorJ2000Grid(false);
	core.wait(2);
	status("J2000 grid on");
	GridLinesMgr.setFlagEquatorGrid(false);
	GridLinesMgr.setFlagEquatorJ2000Grid(true);
	core.wait(2);
	status("both grids on");
	GridLinesMgr.setFlagEquatorGrid(true);
	core.wait(2);
}

core.clear("starchart");
core.setTimeRate(0);
StelMovementMgr.zoomTo(2, 2);
useStatusLabel("Goto test: ", 50, 50, 16, "#ff0000");
status("at 0,0 equ of date...");
core.moveToRaDec(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 J2000...");
core.moveToRaDecJ2000(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 equ of date...");
core.moveToRaDec(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 J2000...");
core.moveToRaDecJ2000(0,0);
core.wait(2);
cycleGrids();

core.moveToRaDec()
LabelMgr.deleteAllLabels();