API Reference¶
wwt_data_formats Package¶
Functions¶
|
A dumb XML indenter. |
|
Stringify some XML elements, indenting them by default. |
|
Write out some XML elements, indenting them by default |
Classes¶
|
A base class for HasTraits objects where we do not allow callers to add additional attributes to class instances. |
|
A base class for LockedDownTraits objects that can also be serialized to and from XML. |
|
A metaclass to help with the LockedDownTraits class. |
|
Ways that a traitlet can get serialized to XML in this framework. |
wwt_data_formats.abcs Module¶
Some abstract base classes (ABCs).
Classes¶
A data object that may contain URLs. |
wwt_data_formats.cli Module¶
Entrypoint for the “wwtdatatool” command-line interface.
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
The entrypoint for the “wwtdatatool” command-line interface. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wwt_data_formats.enums Module¶
Various enumerations
Classes¶
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
A helper for enumerations that are serialized and deserialized from text. |
wwt_data_formats.filecabinet Module¶
Classes¶
|
Reader for a simple container format for other files. |
Writer for a simple container format for other files. |
wwt_data_formats.folder Module¶
Functions¶
|
|
|
Return a function that makes relative URLs absolute. |
|
wwt_data_formats.imageset Module¶
An image, possibly tiled, for display in WWT.
wwt_data_formats.layers Module¶
Serialized information about graphical “layers” in the WWT engine.
Not implemented:
GreatCircleRouteLayer
GroundOverlayLayer
KmlLayer
Object3d
OrbitLayer
SpreadSheetLayer
TimeSeriesLayer
VoTableLayer
WmsLayer
Classes¶
|
|
|
Generic parent class for serializable WWT layers. |
|
A collection of layers and reference frames. |
|
The XML serialization of the layer collection information. |
wwt_data_formats.place Module¶
A place that a WWT user can visit.
wwt_data_formats.server Module¶
A basic HTTP server for local testing of WTML files and other WWT data products.
The key motivation for the existence of this server is that WWT WTML “collection” files must contain absolute URLs. This means that if you’re locally testing a file, you need to include one set of (localhost) URLs, while the production file must be different. Keeping these in sync is tedious and error-prone.
This server is basically a generic local static-file server. But, if
specially-marked WTML files are requested, any relative URLs are rewritten
on-the-fly to be absolute relative to the server’s address. That way, you can do
all of your development with the relative-URL files, and you only need to do one
substitution at the very end when the files are ready for upload to the
production server. (You can do this with wwtdatatool wtml rewrite-urls
.)
Functions¶
|
Settings are defined in |