![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
#include <StelSphereGeometry.hpp>
Inherits SphericalRegion.
Public Member Functions | |
SphericalPoint (const Vec3d &an) | |
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 QVariantMap | toQVariant () const |
virtual void | serialize (QDataStream &out) const |
virtual bool | contains (const Vec3d &p) const |
virtual bool | contains (const SphericalPolygon &r) const |
virtual bool | contains (const SphericalConvexPolygon &r) const |
virtual bool | contains (const SphericalCap &c) const |
virtual bool | contains (const SphericalPoint &r) const |
virtual bool | contains (const AllSkySphericalRegion &r) const |
virtual bool | intersects (const SphericalPolygon &r) const |
virtual bool | intersects (const SphericalConvexPolygon &r) const |
virtual bool | intersects (const SphericalCap &r) const |
virtual bool | intersects (const SphericalPoint &r) const |
virtual bool | intersects (const AllSkySphericalRegion &r) const |
Static Public Member Functions | |
static SphericalRegionP | deserialize (QDataStream &in) |
Public Attributes | |
Vec3d | n |
virtual OctahedronPolygon SphericalPoint::getOctahedronPolygon | ( | ) | const [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 double SphericalPoint::getArea | ( | ) | const [inline, virtual] |
virtual bool SphericalPoint::isEmpty | ( | ) | const [inline, virtual] |
virtual Vec3d SphericalPoint::getPointInside | ( | ) | const [inline, virtual] |
virtual SphericalCap SphericalPoint::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 QVariantMap SphericalPoint::toQVariant | ( | ) | const [virtual] |
Serialize the region into a QVariant map matching the JSON format.
The format is {"type": "POINT", "pos": [ra, dec]}, with ra dec in degree in ICRS frame.
Implements SphericalRegion.
virtual void SphericalPoint::serialize | ( | QDataStream & | out | ) | const [inline, virtual] |
Serialize the region. This method must allow as fast as possible serialization and work with deserialize().
Implements SphericalRegion.
static SphericalRegionP SphericalPoint::deserialize | ( | QDataStream & | in | ) | [static] |
Deserialize the region. This method must allow as fast as possible deserialization.
The unit vector of the point direction.