scripting.doxygen   scripting.doxygen 
skipping to change at line 66 skipping to change at line 66
scripting engine via an object with the same name as the corresponding cl ass: scripting engine via an object with the same name as the corresponding cl ass:
- ConstellationMgr - ConstellationMgr
- GridLinesMgr - GridLinesMgr
- LabelMgr - LabelMgr
- LandscapeMgr - LandscapeMgr
- SporadicMeteorMgr - SporadicMeteorMgr
- NebulaMgr - NebulaMgr
- ScreenImageMgr - ScreenImageMgr
- SolarSystem - SolarSystem
- StarMgr - StarMgr
- StelActionMgr
- StelAudioMgr - StelAudioMgr
- StelVideoMgr - StelVideoMgr
- StelMovementMgr - StelMovementMgr
- StelSkyCultureMgr
- StelSkyDrawer - StelSkyDrawer
- StelSkyLayerMgr - StelSkyLayerMgr
- MilkyWay
- ZodiacalLight
. .
For example, to access LandscapeMgr::setFlagAtmosphere(), use the scripti ng For example, to access LandscapeMgr::setFlagAtmosphere(), use the scripti ng
command: command:
\code \code
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
\endcode \endcode
Note: All of these except for StelSkyDrawer are StelModule classes. \note All of these except for StelSkyDrawer are StelModule classes.
- The public slots for each of the following classes of the plugins are ava
ilable
in the scripting engine too:
- CompassMarks
- Oculars
- Satellites
- Quasars
- Pulsars
- Exoplanets
- Observability
- EquationOfTime
- NavStars
- MeteorShowersMgr (The public slots in this class are available via an
object named \b MeteorShowers)
- ArchaeoLines
- TelescopeControl
.
@section include_scripts Includes @section include_scripts Includes
Stellarium provides mechanism for splitting scripts on different files. Typ ical functions or Stellarium provides mechanism for splitting scripts on different files. Typ ical functions or
list of variables can be stored in separate \b .inc file and used within sc ript through \b include() list of variables can be stored in separate \b .inc file and used within sc ript through \b include()
command: command:
\code \code
include("common_objects.inc"); include("common_objects.inc");
\endcode \endcode
Note: Detailed example can be found <a href="http://bazaar.launchpad.net/~s tellarium/stellarium/trunk/view/head:/scripts/constellations_tour.ssc">in C onstellations Tour script</a>. \note Detailed example can be found <a href="http://bazaar.launchpad.net/~s tellarium/stellarium/trunk/view/head:/scripts/constellations_tour.ssc">in C onstellations Tour script</a>.
@section script_console Script Console @section script_console Script Console
It is possible to open, edit run and save scripts using the script console window. It is possible to open, edit run and save scripts using the script console window.
To toggle the script console, press F12. The script console also provides To toggle the script console, press F12. The script console also provides
an output window in which script debugging output is visible. an output window in which script debugging output is visible.
Note: The Script Console is a build-time option. It has been enabled by \note The Script Console is a build-time option. It has been enabled by
default since version 0.10.5. To enable or disable this feature, use the default since version 0.10.5. To enable or disable this feature, use the
ENABLE_SCRIPT_CONSOLE=1 or =0 option to cmake. ENABLE_SCRIPT_CONSOLE=1 or =0 option to cmake.
@section example_scripts Examples @section example_scripts Examples
The best source of examples is the \b scripts sub-directory of the main Ste llarium The best source of examples is the \b scripts sub-directory of the main Ste llarium
source tree. This directory contains a sub-directory called \b tests which are not source tree. This directory contains a sub-directory called \b tests which are not
installed with Stellarium, but are nontheless useful sources of example cod e for installed with Stellarium, but are nontheless useful sources of example cod e for
various scripting features. (The directory can be <a href="http://bazaar.la unchpad.net/~stellarium/stellarium/trunk/files/head:/scripts/">browsed onli ne</a>. Script files end in <tt>.ssc</tt> and <tt>.inc</tt>. Download links various scripting features. (The directory can be <a href="http://bazaar.la unchpad.net/~stellarium/stellarium/trunk/files/head:/scripts/">browsed onli ne</a>. Script files end in <tt>.ssc</tt> and <tt>.inc</tt>. Download links
are to the right.) are to the right.)
 End of changes. 6 change blocks. 
3 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/