kstars
#include <simplefovexporter.h>
Public Member Functions | |
SimpleFovExporter () | |
void | exportFov (SkyPoint *point, FOV *fov, QPaintDevice *pd) |
void | exportFov (FOV *fov, QPaintDevice *pd) |
void | exportFov (QPaintDevice *pd) |
void | exportFov (const QList< SkyPoint * > &points, const QList< FOV * > &fovs, const QList< QPaintDevice * > &pds) |
void | exportFov (const QList< SkyPoint * > &points, FOV *fov, const QList< QPaintDevice * > &pds) |
bool | isClockStopping () |
bool | isFovShapeOverriden () |
bool | isFovSymbolDrawn () |
void | setClockStopping (bool stopping) |
void | setFovShapeOverriden (bool override) |
void | setFovSymbolDrawn (bool draw) |
Static Public Member Functions | |
static double | calculatePixelSize (float degrees, double zoomLevel) |
static double | calculateZoomLevel (int pixelSize, float degrees) |
Detailed Description
SimpleFovExporter class is used for FOV representation exporting.
Central point is defined by passed pointer to SkyPoint instance and field-of-view parameters are defined by FOV class instance. Fragment of sky is painted on passed QPaintDevice subclass. SimpleFovExporter class can be used for export of FOV representations in user-interactive mode as well as for export of multiple FOVs at once, without user interaction.
- Note
- Please note that SimpleFovExporter class instances may pause simulation clock if they're configured to do so (via setClockStopping() method).
- FOV representation's shape can be overridden (i.e. FOV image will be always rectangular) using setFovShapeOverriden() method.
Definition at line 43 of file simplefovexporter.h.
Constructor & Destructor Documentation
SimpleFovExporter::SimpleFovExporter | ( | ) |
Constructor.
Definition at line 26 of file simplefovexporter.cpp.
Member Function Documentation
|
inlinestatic |
Calculate pixel size of given angular length at given zoom level.
- Parameters
-
degrees angular length. zoomLevel zoom level.
- Returns
- size in pixels.
Definition at line 139 of file simplefovexporter.h.
|
inlinestatic |
Calculate zoom level at which given angular length will occupy given length in pixels.
- Parameters
-
pixelSize size in pixels. degrees angular length.
- Returns
- zoom level.
Definition at line 131 of file simplefovexporter.h.
Paint FOV representation on passed QPaintDevice subclass.
- Parameters
-
point central point of the exported FOV. fov represented field-of-view. pd paint device on which the representation of the FOV will be painted.
Definition at line 33 of file simplefovexporter.cpp.
void SimpleFovExporter::exportFov | ( | FOV * | fov, |
QPaintDevice * | pd | ||
) |
Paint FOV representation on passed QPaintDevice subclass.
- Parameters
-
fov represented field-of-view. pd paint device on which the representation of the FOV will be painted.
Definition at line 40 of file simplefovexporter.cpp.
void SimpleFovExporter::exportFov | ( | QPaintDevice * | pd | ) |
Paint FOV representation on passed QPaintDevice subclass.
- Parameters
-
pd paint device on which the representation of the FOV will be painted.
Definition at line 45 of file simplefovexporter.cpp.
void SimpleFovExporter::exportFov | ( | const QList< SkyPoint * > & | points, |
const QList< FOV * > & | fovs, | ||
const QList< QPaintDevice * > & | pds | ||
) |
Export multiple FOV representations.
- Parameters
-
points list of central points. fovs list of fields-of-view. pds list of paint devices on which the representation of the FOV will be painted.
Definition at line 61 of file simplefovexporter.cpp.
void SimpleFovExporter::exportFov | ( | const QList< SkyPoint * > & | points, |
FOV * | fov, | ||
const QList< QPaintDevice * > & | pds | ||
) |
Export multiple FOV representations.
- Parameters
-
points list of central points. fovs list of fields-of-view. pds list of paint devices on which the representation of the FOV will be painted.
Definition at line 75 of file simplefovexporter.cpp.
|
inline |
Check if FOV export will cause simulation clock to be stopped.
- Returns
- true if clock will be stopped for FOV export.
- Note
- If changed, previous clock state will be restored after FOV export is done.
Definition at line 93 of file simplefovexporter.h.
|
inline |
Check if FOV representation will be always rectangular.
- Returns
- true if FOV shape is overridden.
Definition at line 99 of file simplefovexporter.h.
|
inline |
Check if FOV symbol will be drawn.
- Returns
- true if FOV symbol will be drawn.
Definition at line 105 of file simplefovexporter.h.
|
inline |
Enable or disable stopping simulation for FOV export.
- Parameters
-
stopping should be true if stopping is to be enabled.
Definition at line 111 of file simplefovexporter.h.
|
inline |
Enable or disable FOV shape overriding.
- Parameters
-
override should be true if FOV representation is to be always rectangular.
Definition at line 117 of file simplefovexporter.h.
|
inline |
Enable or disable FOV symbol drawing.
- Parameters
-
draw should be true if FOV symbol is to be drawn.
Definition at line 123 of file simplefovexporter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.