Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/structSphericalRegion_1_1DrawParams.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 08:02:22 2014 Кодировка: Поисковые слова: р п р п р п р п р п р п р п р п р п р п р п р п р п р п |
![]() |
Stellarium 0.12.3
|
Parameters specifying how to draw a SphericalRegion. More...
#include <StelSphereGeometry.hpp>
Public Member Functions | |
DrawParams (class StelProjector *projector) | |
Construct DrawParams with default parameters and specified projector. More... | |
bool | operator!= (const DrawParams &rhs) const |
Only used to determine whether to update cached vertex buffers. More... | |
DrawParams & | clippingCap (const SphericalCap *clippingCap) |
If not NULL, used to clip the part of the region outside the cap. More... | |
DrawParams & | doNotSubdivide () |
Do not subdivide the region to follow projection distortions. More... | |
DrawParams & | maxSqDistortion (const double maxSqDistortion) |
Specify maximum distortion - we try to subdivide to be withil this limit. More... | |
Public Attributes | |
class StelProjector * | projector_ |
Projector to use when drawing. More... | |
const SphericalCap * | clippingCap_ |
If specified, clips the part of the region outside of cap. More... | |
bool | subdivide_ |
Subdivide triangles? More... | |
double | maxSqDistortion_ |
Maximum distortion. More... | |
Parameters specifying how to draw a SphericalRegion.
Passed to e.g. drawFill().
Also used to remember previously used draw parameters, which enables vertex buffer caching.
This is a builder-style struct. Parameters can be specified like this:
Definition at line 169 of file StelSphereGeometry.hpp.
|
inline |
Construct DrawParams with default parameters and specified projector.
projector | Projector to use for drawing. |
The default parameters are: no clipping cap, subdivide the region to follow projection distortions, max distortion 5.0.
Definition at line 177 of file StelSphereGeometry.hpp.
|
inline |
If not NULL, used to clip the part of the region outside the cap.
Definition at line 211 of file StelSphereGeometry.hpp.
|
inline |
Do not subdivide the region to follow projection distortions.
Improves drawing speed.
You can use this if you think that the region is fully contained in the viewport.
Definition at line 222 of file StelSphereGeometry.hpp.
|
inline |
Specify maximum distortion - we try to subdivide to be withil this limit.
Definition at line 229 of file StelSphereGeometry.hpp.
|
inline |
Only used to determine whether to update cached vertex buffers.
Compares parameters given in a previous drawXXX() call with parameters given in the current call.
Projector is ignored - outside code needs to figure out if projector affects vertex buffer generation. Clipping cap is only assumed to be the same if both previos and current is NULL (which is usually the case).
Definition at line 192 of file StelSphereGeometry.hpp.
const SphericalCap* SphericalRegion::DrawParams::clippingCap_ |
If specified, clips the part of the region outside of cap.
Definition at line 239 of file StelSphereGeometry.hpp.
double SphericalRegion::DrawParams::maxSqDistortion_ |
Maximum distortion.
Definition at line 245 of file StelSphereGeometry.hpp.
class StelProjector* SphericalRegion::DrawParams::projector_ |
Projector to use when drawing.
Definition at line 236 of file StelSphereGeometry.hpp.
bool SphericalRegion::DrawParams::subdivide_ |
Subdivide triangles?
Definition at line 242 of file StelSphereGeometry.hpp.