• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | Static Public Member Functions | List of all members
SimpleFovExporter Class Reference

#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

static double SimpleFovExporter::calculatePixelSize ( float  degrees,
double  zoomLevel 
)
inlinestatic

Calculate pixel size of given angular length at given zoom level.

Parameters
degreesangular length.
zoomLevelzoom level.
Returns
size in pixels.

Definition at line 139 of file simplefovexporter.h.

static double SimpleFovExporter::calculateZoomLevel ( int  pixelSize,
float  degrees 
)
inlinestatic

Calculate zoom level at which given angular length will occupy given length in pixels.

Parameters
pixelSizesize in pixels.
degreesangular length.
Returns
zoom level.

Definition at line 131 of file simplefovexporter.h.

void SimpleFovExporter::exportFov ( SkyPoint *  point,
FOV *  fov,
QPaintDevice *  pd 
)

Paint FOV representation on passed QPaintDevice subclass.

Parameters
pointcentral point of the exported FOV.
fovrepresented field-of-view.
pdpaint 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
fovrepresented field-of-view.
pdpaint 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
pdpaint 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
pointslist of central points.
fovslist of fields-of-view.
pdslist 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
pointslist of central points.
fovslist of fields-of-view.
pdslist of paint devices on which the representation of the FOV will be painted.

Definition at line 75 of file simplefovexporter.cpp.

bool SimpleFovExporter::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 93 of file simplefovexporter.h.

bool SimpleFovExporter::isFovShapeOverriden ( )
inline

Check if FOV representation will be always rectangular.

Returns
true if FOV shape is overridden.

Definition at line 99 of file simplefovexporter.h.

bool SimpleFovExporter::isFovSymbolDrawn ( )
inline

Check if FOV symbol will be drawn.

Returns
true if FOV symbol will be drawn.

Definition at line 105 of file simplefovexporter.h.

void SimpleFovExporter::setClockStopping ( bool  stopping)
inline

Enable or disable stopping simulation for FOV export.

Parameters
stoppingshould be true if stopping is to be enabled.

Definition at line 111 of file simplefovexporter.h.

void SimpleFovExporter::setFovShapeOverriden ( bool  override)
inline

Enable or disable FOV shape overriding.

Parameters
overrideshould be true if FOV representation is to be always rectangular.

Definition at line 117 of file simplefovexporter.h.

void SimpleFovExporter::setFovSymbolDrawn ( bool  draw)
inline

Enable or disable FOV symbol drawing.

Parameters
drawshould 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:
  • simplefovexporter.h
  • simplefovexporter.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal