SimpleFovExporter
#include <simplefovexporter.h>
Public Member Functions | |
SimpleFovExporter () | |
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) |
void | exportFov (FOV *fov, QPaintDevice *pd) |
void | exportFov (QPaintDevice *pd) |
void | exportFov (SkyPoint *point, FOV *fov, QPaintDevice *pd) |
bool | isClockStopping () const |
bool | isFovShapeOverriden () const |
bool | isFovSymbolDrawn () const |
void | setClockStopping (bool stopping) |
void | setFovShapeOverriden (bool overrideFovShape) |
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 30 of file simplefovexporter.h.
Constructor & Destructor Documentation
◆ SimpleFovExporter()
SimpleFovExporter::SimpleFovExporter | ( | ) |
Constructor.
Definition at line 17 of file simplefovexporter.cpp.
Member Function Documentation
◆ calculatePixelSize()
|
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 126 of file simplefovexporter.h.
◆ calculateZoomLevel()
|
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 118 of file simplefovexporter.h.
◆ exportFov() [1/5]
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 51 of file simplefovexporter.cpp.
◆ exportFov() [2/5]
void SimpleFovExporter::exportFov | ( | const QList< SkyPoint * > & | points, |
FOV * | fov, | ||
const QList< QPaintDevice * > & | pds ) |
Export multiple FOV representations.
- Parameters
-
points list of central points. fov list of fields-of-view. pds list of paint devices on which the representation of the FOV will be painted.
Definition at line 66 of file simplefovexporter.cpp.
◆ exportFov() [3/5]
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 30 of file simplefovexporter.cpp.
◆ exportFov() [4/5]
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 35 of file simplefovexporter.cpp.
◆ exportFov() [5/5]
void SimpleFovExporter::exportFov | ( | SkyPoint * | point, |
FOV * | fov, | ||
QPaintDevice * | pd ) |
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 23 of file simplefovexporter.cpp.
◆ isClockStopping()
|
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 80 of file simplefovexporter.h.
◆ isFovShapeOverriden()
|
inline |
Check if FOV representation will be always rectangular.
- Returns
- true if FOV shape is overridden.
Definition at line 86 of file simplefovexporter.h.
◆ isFovSymbolDrawn()
|
inline |
Check if FOV symbol will be drawn.
- Returns
- true if FOV symbol will be drawn.
Definition at line 92 of file simplefovexporter.h.
◆ setClockStopping()
|
inline |
Enable or disable stopping simulation for FOV export.
- Parameters
-
stopping should be true if stopping is to be enabled.
Definition at line 98 of file simplefovexporter.h.
◆ setFovShapeOverriden()
|
inline |
Enable or disable FOV shape overriding.
- Parameters
-
overrideFovShape should be true if FOV representation is to be always rectangular.
Definition at line 104 of file simplefovexporter.h.
◆ setFovSymbolDrawn()
|
inline |
Enable or disable FOV symbol drawing.
- Parameters
-
draw should be true if FOV symbol is to be drawn.
Definition at line 110 of file simplefovexporter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.