Stellarium
0.17.0
|
A shared pointer on a SphericalRegion. More...
#include <StelSphereGeometry.hpp>
Public Member Functions | |
SphericalRegionP (SphericalRegion *ptr) | |
template<class Deleter > | |
SphericalRegionP (SphericalRegion *ptr, Deleter deleter) | |
SphericalRegionP (const SphericalRegionP &other) | |
SphericalRegionP (const QWeakPointer< SphericalRegion > &other) | |
Static Public Member Functions | |
static SphericalRegionP | loadFromJson (QIODevice *in) |
Create a SphericalRegion from the given input JSON stream. More... | |
static SphericalRegionP | loadFromJson (const QByteArray &a) |
Create a SphericalRegion from the given QByteArray containing the JSON data. More... | |
static SphericalRegionP | loadFromQVariant (const QVariantMap &map) |
Create a SphericalRegion from the given QVariantMap with a format matching the JSON file parsed in loadFromJson(). More... | |
static SphericalRegionP | loadFromQVariant (const QVariantList &list) |
static void | serializeToJson (const QVariant &jsonObject, QIODevice *output, int indentLevel=0) |
Method registered to JSON serializer. | |
Static Public Attributes | |
static int | metaTypeId |
The meta type ID associated to a SphericalRegionP. | |
|
static |
The type of the region is automatically recognized from the input format. The currently recognized format are:
in | an open QIODevice ready for read. |
std::runtime_error | when there was an error while parsing the file. |
|
static |
|
static |
map | a valid QVariantMap which can be created e.g. from parsing a JSON file with the StelJsonParser class. |