![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
#include <StelSphereGeometry.hpp>
Inherits SphericalPolygon.
Public Member Functions | |
SphericalTexturedPolygon (const QVector< QVector< TextureVertex > > &contours) | |
SphericalTexturedPolygon (const QVector< TextureVertex > &contour) | |
virtual StelVertexArray | getFillVertexArray () const |
virtual QVariantMap | toQVariant () const |
virtual void | serialize (QDataStream &out) const |
void | setContours (const QVector< QVector< TextureVertex > > &contours) |
void | setContour (const QVector< TextureVertex > &contour) |
Classes | |
struct | TextureVertex |
A container for 3D vertex + associated texture coordinates. More... |
SphericalTexturedPolygon::SphericalTexturedPolygon | ( | const QVector< QVector< TextureVertex > > & | contours | ) | [inline] |
Constructor from a list of contours.
SphericalTexturedPolygon::SphericalTexturedPolygon | ( | const QVector< TextureVertex > & | contour | ) | [inline] |
Constructor from one contour.
virtual StelVertexArray SphericalTexturedPolygon::getFillVertexArray | ( | ) | const [inline, virtual] |
Return an openGL compatible array of texture coords to be used using vertex arrays.
Reimplemented from SphericalRegion.
virtual QVariantMap SphericalTexturedPolygon::toQVariant | ( | ) | const [virtual] |
Serialize the region into a QVariant map matching the JSON format.
The format is:
{"worldCoords": [[[ra,dec], [ra,dec], [ra,dec], [ra,dec]], [[ra,dec], [ra,dec], [ra,dec]],[...]], "textureCoords": [[[u,v],[u,v],[u,v],[u,v]], [[u,v],[u,v],[u,v]], [...]] }
Implements SphericalRegion.
virtual void SphericalTexturedPolygon::serialize | ( | QDataStream & | out | ) | const [inline, virtual] |
Serialize the region. This method must allow as fast as possible serialization and work with deserialize().
Implements SphericalRegion.
void SphericalTexturedPolygon::setContours | ( | const QVector< QVector< TextureVertex > > & | contours | ) | [inline] |
Set the contours defining the SphericalPolygon.
contours | the list of contours defining the polygon area using the WindingPositive winding rule. |
void SphericalTexturedPolygon::setContour | ( | const QVector< TextureVertex > & | contour | ) | [inline] |
Set a single contour defining the SphericalPolygon.
contour | a contour defining the polygon area. |