Stellarium 0.15.2
List of all members | Public Types | Public Member Functions | Public Attributes
SPolygon Class Reference

Public Types

enum  Order { CCW = 0, CW }
 

Public Member Functions

 SPolygon (const Vec3f &c0, const Vec3f &c1, const Vec3f &c2, const Vec3f &c3)
 Construct a polygon from 4 corner vertices. More...
 
void intersect (const Plane &p, QVector< Vec3f > &intersectionPoints)
 Intersect by specified plane and store the intersection points. More...
 
void reverseOrder ()
 Reverse the vertices order. More...
 
void addUniqueVert (const Vec3f &v)
 Add the vertex v to vertices if it is not already present. More...
 
void render ()
 

Public Attributes

QVector< Vec3fvertices
 Holds all vertices of this polygon. More...
 

Detailed Description

Definition at line 30 of file SPolygon.hpp.

Constructor & Destructor Documentation

SPolygon::SPolygon ( const Vec3f c0,
const Vec3f c1,
const Vec3f c2,
const Vec3f c3 
)

Construct a polygon from 4 corner vertices.

Member Function Documentation

void SPolygon::addUniqueVert ( const Vec3f v)

Add the vertex v to vertices if it is not already present.

void SPolygon::intersect ( const Plane p,
QVector< Vec3f > &  intersectionPoints 
)

Intersect by specified plane and store the intersection points.

void SPolygon::reverseOrder ( )

Reverse the vertices order.

Member Data Documentation

QVector<Vec3f> SPolygon::vertices

Holds all vertices of this polygon.

Definition at line 45 of file SPolygon.hpp.


The documentation for this class was generated from the following file: