![]() |
Stellarium 0.12.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure |
Special SphericalRegion for the whole sphere. More...
#include <StelSphereGeometry.hpp>
Public Member Functions | |
| virtual SphericalRegionType | getType () const |
| virtual OctahedronPolygon | getOctahedronPolygon () const |
| Return the octahedron contour representation of the polygon. | |
| virtual double | getArea () const |
| Return the area of the region in steradians. | |
| virtual bool | isEmpty () const |
| Return true if the region is empty. | |
| virtual Vec3d | getPointInside () const |
| Return a point located inside the region. | |
| virtual SphericalCap | getBoundingCap () const |
| Return a bounding SphericalCap. | |
| virtual QVariantList | toQVariant () const |
| Serialize the region into a QVariant map matching the JSON format. | |
| virtual void | serialize (QDataStream &) const |
| Serialize the region. This method must allow as fast as possible serialization and work with deserialize(). | |
| 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 |
Special SphericalRegion for the whole sphere.
Definition at line 692 of file StelSphereGeometry.hpp.
| virtual double AllSkySphericalRegion::getArea | ( | ) | const [inline, virtual] |
Return the area of the region in steradians.
Reimplemented from SphericalRegion.
Definition at line 702 of file StelSphereGeometry.hpp.
| 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.
Definition at line 705 of file StelSphereGeometry.hpp.
| 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.
Definition at line 698 of file StelSphereGeometry.hpp.
| virtual Vec3d AllSkySphericalRegion::getPointInside | ( | ) | const [inline, virtual] |
Return a point located inside the region.
Reimplemented from SphericalRegion.
Definition at line 704 of file StelSphereGeometry.hpp.
| virtual bool AllSkySphericalRegion::isEmpty | ( | ) | const [inline, virtual] |
Return true if the region is empty.
Reimplemented from SphericalRegion.
Definition at line 703 of file StelSphereGeometry.hpp.
| virtual void AllSkySphericalRegion::serialize | ( | QDataStream & | out | ) | const [inline, virtual] |
Serialize the region. This method must allow as fast as possible serialization and work with deserialize().
Implements SphericalRegion.
Definition at line 709 of file StelSphereGeometry.hpp.
| virtual QVariantList AllSkySphericalRegion::toQVariant | ( | ) | const [virtual] |
Serialize the region into a QVariant map matching the JSON format.
The format is ["ALLSKY"]
Implements SphericalRegion.
1.6.3