Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

SphericalPoint Class Reference

Special SphericalRegion for a point on the sphere. More...

#include <StelSphereGeometry.hpp>

List of all members.

Public Member Functions

 SphericalPoint (const Vec3d &an)
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 &out) const
 Serialize the region. This method must allow as fast as possible serialization and work with deserialize().
virtual bool contains (const Vec3d &p) const
virtual bool contains (const SphericalPolygon &) const
virtual bool contains (const SphericalConvexPolygon &) const
virtual bool contains (const SphericalCap &) const
virtual bool contains (const SphericalPoint &r) const
virtual bool contains (const AllSkySphericalRegion &) const
virtual bool intersects (const SphericalPolygon &) const
virtual bool intersects (const SphericalConvexPolygon &) const
virtual bool intersects (const SphericalCap &r) const
virtual bool intersects (const SphericalPoint &r) const
virtual bool intersects (const AllSkySphericalRegion &) const

Static Public Member Functions

static SphericalRegionP deserialize (QDataStream &in)
 Deserialize the region. This method must allow as fast as possible deserialization.

Public Attributes

Vec3d n
 The unit vector of the point direction.

Detailed Description

Special SphericalRegion for a point on the sphere.

Definition at line 653 of file StelSphereGeometry.hpp.


Member Function Documentation

static SphericalRegionP SphericalPoint::deserialize ( QDataStream &  in  )  [static]

Deserialize the region. This method must allow as fast as possible deserialization.

virtual double SphericalPoint::getArea (  )  const [inline, virtual]

Return the area of the region in steradians.

Reimplemented from SphericalRegion.

Definition at line 661 of file StelSphereGeometry.hpp.

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.

Definition at line 664 of file StelSphereGeometry.hpp.

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 Vec3d SphericalPoint::getPointInside (  )  const [inline, virtual]

Return a point located inside the region.

Reimplemented from SphericalRegion.

Definition at line 663 of file StelSphereGeometry.hpp.

virtual bool SphericalPoint::isEmpty (  )  const [inline, virtual]

Return true if the region is empty.

Reimplemented from SphericalRegion.

Definition at line 662 of file StelSphereGeometry.hpp.

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.

Definition at line 668 of file StelSphereGeometry.hpp.

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

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

The format is ["POINT", [ra, dec]], with ra dec in degree in ICRS frame.

Implements SphericalRegion.


Member Data Documentation

The unit vector of the point direction.

Definition at line 687 of file StelSphereGeometry.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:44 2013 for Stellarium by  doxygen 1.6.3