Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classSphericalTexturedPolygon.html
Дата изменения: Unknown Дата индексирования: Tue Oct 2 05:17:57 2012 Кодировка: Поисковые слова: holographic principle |
Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
An extension of SphericalPolygon with addition of texture coordinates. More...
#include <StelSphereGeometry.hpp>
Classes | |
struct | TextureVertex |
A container for 3D vertex + associated texture coordinates. More... | |
Public Member Functions | |
SphericalTexturedPolygon (const QVector< QVector< TextureVertex > > &contours) | |
Constructor from a list of contours. | |
SphericalTexturedPolygon (const QVector< TextureVertex > &contour) | |
Constructor from one contour. | |
virtual StelVertexArray | getFillVertexArray () const |
Return an openGL compatible array of texture coords to be used using vertex arrays. | |
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(). | |
void | setContours (const QVector< QVector< TextureVertex > > &contours) |
Set the contours defining the SphericalPolygon. | |
void | setContour (const QVector< TextureVertex > &contour) |
Set a single contour defining the SphericalPolygon. |
An extension of SphericalPolygon with addition of texture coordinates.
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 void SphericalTexturedPolygon::serialize | ( | QDataStream & | out | ) | const [inline, virtual] |
Serialize the region. This method must allow as fast as possible serialization and work with deserialize().
Reimplemented from SphericalPolygon.
void SphericalTexturedPolygon::setContour | ( | const QVector< TextureVertex > & | contour | ) | [inline] |
Set a single contour defining the SphericalPolygon.
contour | a contour defining the polygon area. |
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. |
virtual QVariantList SphericalTexturedPolygon::toQVariant | ( | ) | const [virtual] |
Serialize the region into a QVariant map matching the JSON format.
The format is:
["TEXTURED_POLYGON", [[[ra,dec], [ra,dec], [ra,dec], [ra,dec]], [[ra,dec], [ra,dec], [ra,dec]],[...]],
[[[u,v],[u,v],[u,v],[u,v]], [[u,v],[u,v],[u,v]], [...]]]
where the two lists are a list of closed contours, with each points defined by ra dec in degree in the ICRS frame followed by a list of texture coordinates in the u,v texture space (between 0 and 1). There must be one texture coordinate for each vertex.
Reimplemented from SphericalPolygon.