Stellarium 0.15.2
|
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. More... | |
Static Public Attributes | |
static int | metaTypeId |
The meta type ID associated to a SphericalRegionP. More... | |
A shared pointer on a SphericalRegion.
Definition at line 49 of file StelSphereGeometry.hpp.
|
static |
Create a SphericalRegion from the given input JSON stream.
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 |
Create a SphericalRegion from the given QByteArray containing the JSON data.
|
static |
Create a SphericalRegion from the given QVariantMap with a format matching the JSON file parsed in loadFromJson().
map | a valid QVariantMap which can be created e.g. from parsing a JSON file with the StelJsonParser class. |
|
static |
Method registered to JSON serializer.
|
static |
The meta type ID associated to a SphericalRegionP.
Definition at line 113 of file StelSphereGeometry.hpp.