Stellarium 0.11.2
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Member Functions | Static Public Attributes
AllSkySphericalRegion Class Reference

Special SphericalRegion for the whole sphere. More...

#include <StelSphereGeometry.hpp>

List of all members.

Public Member Functions

virtual SphericalRegionType getType () const
virtual OctahedronPolygon getOctahedronPolygon () const
virtual double getArea () const
virtual bool isEmpty () const
virtual Vec3d getPointInside () const
virtual SphericalCap getBoundingCap () const
virtual QVariantList toQVariant () const
virtual void serialize (QDataStream &) const
virtual bool contains (const Vec3d &) const
virtual bool contains (const SphericalPolygon &) const
virtual bool contains (const SphericalConvexPolygon &) const
virtual bool contains (const SphericalCap &) const
virtual bool contains (const SphericalPoint &) const
virtual bool contains (const AllSkySphericalRegion &) const
virtual bool intersects (const SphericalPolygon &) const
virtual bool intersects (const SphericalConvexPolygon &) const
virtual bool intersects (const SphericalCap &) const
virtual bool intersects (const SphericalPoint &) const
virtual bool intersects (const AllSkySphericalRegion &) const

Static Public Attributes

static const SphericalRegionP staticInstance

Detailed Description

Special SphericalRegion for the whole sphere.

Member Function Documentation

virtual SphericalCap AllSkySphericalRegion::getBoundingCap ( ) const [inline, virtual]

Return a bounding SphericalCap.

This method is heavily used and therefore needs to be very fast. The returned SphericalCap doesn't have to be the smallest one, but smaller is better.

Reimplemented from SphericalRegion.

virtual OctahedronPolygon AllSkySphericalRegion::getOctahedronPolygon ( ) const [inline, virtual]

Return the octahedron contour representation of the polygon.

It can be used for safe computation of intersection/union in the general case.

Implements SphericalRegion.

virtual QVariantList AllSkySphericalRegion::toQVariant ( ) const [virtual]

Serialize the region into a QVariant map matching the JSON format.

The format is ["ALLSKY"]

Implements SphericalRegion.