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

OctahedronPolygon Class Reference

List of all members.

Public Member Functions

 OctahedronPolygon (const SubContour &subContour)
 Create the OctahedronContour by splitting the passed SubContour on the 8 sides of the octahedron.
 OctahedronPolygon (const QVector< QVector< Vec3d > > &contours)
 OctahedronPolygon (const QVector< Vec3d > &contour)
 OctahedronPolygon (const QList< OctahedronPolygon > &octContours)
double getArea () const
Vec3d getPointInside () const
void getBoundingCap (Vec3d &v, double &d) const
void inPlaceIntersection (const OctahedronPolygon &mpoly)
 Set this OctahedronContourOctahedronPolygonion of itself with the given OctahedronContour.
void inPlaceUnion (const OctahedronPolygon &mpoly)
 Set this OctahedronContour as the union of itself with the given OctahedronContour.
void inPlaceSubtraction (const OctahedronPolygon &mpoly)
 Set this OctahedronContour as the subtraction of itself with the given OctahedronContour.
bool intersects (const OctahedronPolygon &mpoly) const
bool contains (const OctahedronPolygon &mpoly) const
bool contains (const Vec3d &p) const
bool isEmpty () const
QString toJson () const
const QVector< Vec3d > & fillVertices () const
 Get vertices forming triangles filling out the polygon.
const QVector< Vec3d > & outlineVertices () const
 Get vertices forming lines outlining the polygon.

Static Public Member Functions

static const OctahedronPolygongetAllSkyOctahedronPolygon ()
static const OctahedronPolygongetEmptyOctahedronPolygon ()
static double sphericalTriangleArea (const Vec3d &v0, const Vec3d &v1, const Vec3d &v2)

Friends

QDataStream & operator<< (QDataStream &, const OctahedronPolygon &)
QDataStream & operator>> (QDataStream &, OctahedronPolygon &)
OctahedronPolygon createAllSkyOctahedronPolygon ()

Detailed Description

Definition at line 62 of file OctahedronPolygon.hpp.


Constructor & Destructor Documentation

OctahedronPolygon::OctahedronPolygon ( const SubContour subContour  ) 

Create the OctahedronContour by splitting the passed SubContour on the 8 sides of the octahedron.


Member Function Documentation

const QVector<Vec3d>& OctahedronPolygon::fillVertices (  )  const [inline]

Get vertices forming triangles filling out the polygon.

Definition at line 114 of file OctahedronPolygon.hpp.

void OctahedronPolygon::inPlaceIntersection ( const OctahedronPolygon mpoly  ) 

Set this OctahedronContourOctahedronPolygonion of itself with the given OctahedronContour.

void OctahedronPolygon::inPlaceSubtraction ( const OctahedronPolygon mpoly  ) 

Set this OctahedronContour as the subtraction of itself with the given OctahedronContour.

void OctahedronPolygon::inPlaceUnion ( const OctahedronPolygon mpoly  ) 

Set this OctahedronContour as the union of itself with the given OctahedronContour.

const QVector<Vec3d>& OctahedronPolygon::outlineVertices (  )  const [inline]

Get vertices forming lines outlining the polygon.

Definition at line 120 of file OctahedronPolygon.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