Stellarium 0.12.1
List of all members | Public Member Functions | Static Public Member Functions | Friends
OctahedronPolygon Class Reference

Public Member Functions

 OctahedronPolygon (const SubContour &subContour)
 Create the OctahedronContour by splitting the passed SubContour on the 8 sides of the octahedron. More...
 
 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. More...
 
void inPlaceUnion (const OctahedronPolygon &mpoly)
 Set this OctahedronContour as the union of itself with the given OctahedronContour. More...
 
void inPlaceSubtraction (const OctahedronPolygon &mpoly)
 Set this OctahedronContour as the subtraction of itself with the given OctahedronContour. More...
 
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. More...
 
const QVector< Vec3d > & outlineVertices () const
 Get vertices forming lines outlining the polygon. More...
 

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: