Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/structSphereParams.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:29:47 2014 Кодировка: Поисковые слова: п п п п п п п р п р п |
Stellarium 0.12.3
|
Parameters specifying how to generate a sphere. More...
#include <StelGeometryBuilder.hpp>
Public Member Functions | |
SphereParams (const float radius) | |
Construct SphereParams specifying the required radius parameter with other parameters at default values. More... | |
SphereParams & | oneMinusOblateness (const float rhs) |
Set the oblateness of the sphere. More... | |
SphereParams & | resolution (const int slices, const int stacks) |
Set resolution (detail) of the sphere grid. More... | |
SphereParams & | orientInside () |
If specified, the faces of the sphere will point inside instead of outside. More... | |
SphereParams & | flipTexture () |
If specified, texture coords will be flipped on the (texture, not global) X axis. More... | |
Public Attributes | |
float | radius_ |
Radius of the sphere. More... | |
float | oneMinusOblateness_ |
Determines how oblate the "sphere" is. More... | |
int | slices_ |
Number of slices/columns in the sphere grid. More... | |
int | stacks_ |
Number of stacks/rows in the sphere grid. More... | |
bool | orientInside_ |
Are the faces of the sphere oriented inside? More... | |
bool | flipTexture_ |
Are the the texture coordinates flipped on the X axis? More... | |
Parameters specifying how to generate a sphere.
These are passed to StelGeometryBuilder to build a sphere.
This is a builder-style struct. Parameters can be specified like this:
Definition at line 50 of file StelGeometryBuilder.hpp.
|
inline |
Construct SphereParams specifying the required radius parameter with other parameters at default values.
Default values are no oblateness, 20 stacks, 20 slices, faces oriented outside and texture not flipped.
radius | Radius of the sphere. Must be greater than zero. |
Definition at line 59 of file StelGeometryBuilder.hpp.
|
inline |
If specified, texture coords will be flipped on the (texture, not global) X axis.
Definition at line 103 of file StelGeometryBuilder.hpp.
|
inline |
Set the oblateness of the sphere.
1.0f is a sphere, 0.0f a flat ring.
Must be at least zero and at most one.
Definition at line 74 of file StelGeometryBuilder.hpp.
|
inline |
If specified, the faces of the sphere will point inside instead of outside.
Definition at line 96 of file StelGeometryBuilder.hpp.
|
inline |
Set resolution (detail) of the sphere grid.
Higher values result in more detail, but also higher resource usage.
slices | Number of slices/columns, i.e. horizontal resolution of the sphere. Must be at least 3 and at most 4096. |
stacks | Number of stacks/rows/rings, i.e. vertical resolution of the sphere. Must be at least 3 and at most 4096. |
Definition at line 88 of file StelGeometryBuilder.hpp.
bool SphereParams::flipTexture_ |
Are the the texture coordinates flipped on the X axis?
Definition at line 120 of file StelGeometryBuilder.hpp.
float SphereParams::oneMinusOblateness_ |
Determines how oblate the "sphere" is.
Definition at line 112 of file StelGeometryBuilder.hpp.
bool SphereParams::orientInside_ |
Are the faces of the sphere oriented inside?
Definition at line 118 of file StelGeometryBuilder.hpp.
float SphereParams::radius_ |
Radius of the sphere.
Definition at line 110 of file StelGeometryBuilder.hpp.
int SphereParams::slices_ |
Number of slices/columns in the sphere grid.
Definition at line 114 of file StelGeometryBuilder.hpp.
int SphereParams::stacks_ |
Number of stacks/rows in the sphere grid.
Definition at line 116 of file StelGeometryBuilder.hpp.