Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/structTextParams.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:26:22 2014 Кодировка: Поисковые слова: carina |
Stellarium 0.12.3
|
Parameters specifying how to draw text. More...
#include <StelRenderer.hpp>
Public Member Functions | |
TextParams (const float x, const float y, const QString &string) | |
Construct TextParams with default parameters. More... | |
template<class F > | |
TextParams (Vector3< F > &position3D, StelProjectorP projector, const QString &string) | |
Construct TextParams to draw text at a 3D position, using specified projector. More... | |
TextParams & | angleDegrees (const float angle) |
Angle of text rotation in degrees. More... | |
TextParams & | shift (const float x, const float y) |
Shift of the text in rotated direction in pixels. More... | |
TextParams & | useGravity () |
Draw the text with gravity. More... | |
TextParams & | projector (StelProjectorP projector) |
Projector to project coordinates of the text with. More... | |
Parameters specifying how to draw text.
These are passed to StelRenderer::drawText().
This is a builder-style struct. Parameters can be specified like this:
Definition at line 146 of file StelRenderer.hpp.
|
inline |
Construct TextParams with default parameters.
Text position and string are required, so they are specified here.
x | = Horizontal position of lower left corner of the text in pixels. |
y | = Vertical position of lower left corner of the text in pixels. |
string | = Text string to draw. |
Default values of other parameters are: rotation of 0.0 degrees, shift in rotated direction of (0.0, 0.0), don't draw with gravity, 2D (NULL) projection.
Definition at line 160 of file StelRenderer.hpp.
|
inline |
Construct TextParams to draw text at a 3D position, using specified projector.
The renderer will project the position to 2D coordinates before drawing. The required string parameter is also set, as is the projector. Other parameters are at default values.
position3D | = 3D position of the text. |
projector | = Projector to project the 3D position to 2D. |
string | = Text string to draw. |
Default values of other parameters are: rotation of 0.0 degrees, shift in rotated direction of (0.0, 0.0), don't draw with gravity.
Definition at line 184 of file StelRenderer.hpp.
|
inline |
Angle of text rotation in degrees.
Definition at line 197 of file StelRenderer.hpp.
|
inline |
Projector to project coordinates of the text with.
Definition at line 219 of file StelRenderer.hpp.
|
inline |
Shift of the text in rotated direction in pixels.
Definition at line 204 of file StelRenderer.hpp.
|
inline |
Draw the text with gravity.
Definition at line 212 of file StelRenderer.hpp.