Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelMainGraphicsView.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:45:14 2014 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п р п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п п р п |
Stellarium 0.12.3
|
Reimplement a QGraphicsView for Stellarium. More...
#include <StelMainGraphicsView.hpp>
Public Slots | |
void | saveScreenShot (const QString &filePrefix="stellarium-", const QString &saveDir="") |
Save a screen shot. More... | |
bool | getFlagInvertScreenShotColors () const |
Get whether colors are inverted when saving screenshot. More... | |
void | setFlagInvertScreenShotColors (bool b) |
Set whether colors should be inverted when saving screenshot. More... | |
bool | getFlagCursorTimeout () |
Get the state of the mouse cursor timeout flag. More... | |
float | getCursorTimeout () const |
Get the mouse cursor timeout in seconds. More... | |
void | setFlagCursorTimeout (bool b) |
Get the state of the mouse cursor timeout flag. More... | |
void | setCursorTimeout (float t) |
Set the mouse cursor timeout in seconds. More... | |
void | setMinFps (float m) |
Set the minimum frames per second. More... | |
float | getMinFps () |
Get the current minimum frames per second. More... | |
void | setMaxFps (float m) |
Set the maximum frames per second. More... | |
float | getMaxFps () |
Get the current maximum frames per second. More... | |
void | updateScene () |
Updates the scene and process all events. More... | |
Signals | |
void | screenshotRequested (void) |
emitted when saveScreenShot is requested with saveScreenShot(). More... | |
Public Member Functions | |
StelMainGraphicsView (QWidget *parent) | |
void | init (class QSettings *conf) |
Start the main initialization of Stellarium. More... | |
void | deinit () |
Delete textures (to call before the renderer disappears) More... | |
class StelAppGraphicsWidget * | getStelAppGraphicsWidget () |
Return the QGraphicsWidget encapsulating the Stellarium main sky view. More... | |
QGraphicsWidget * | getTopLevelGraphicsWidget () |
Return the top level QGraphicsWidget which contains the layout containing the Stellarium main sky view. More... | |
StelMainScriptAPIProxy * | getMainScriptAPIProxy () |
Get the script API proxy (for signal handling) More... | |
StelScriptMgr & | getScriptMgr () |
Get the script manager. More... | |
Static Public Member Functions | |
static StelMainGraphicsView & | getInstance () |
Get the StelMainGraphicsView singleton instance. More... | |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | wheelEvent (QWheelEvent *wheelEvent) |
virtual void | drawBackground (QPainter *painter, const QRectF &rect) |
Update the mouse pointer state and schedule next redraw. More... | |
Reimplement a QGraphicsView for Stellarium.
It is the class creating the main StelApp instance as well as the main GUI.
Definition at line 37 of file StelMainGraphicsView.hpp.
void StelMainGraphicsView::deinit | ( | ) |
Delete textures (to call before the renderer disappears)
|
protectedvirtual |
Update the mouse pointer state and schedule next redraw.
This method is called automatically by Qt.
|
inlineslot |
Get the mouse cursor timeout in seconds.
Definition at line 88 of file StelMainGraphicsView.hpp.
|
inlineslot |
Get the state of the mouse cursor timeout flag.
Definition at line 86 of file StelMainGraphicsView.hpp.
|
inlineslot |
Get whether colors are inverted when saving screenshot.
Definition at line 81 of file StelMainGraphicsView.hpp.
|
inlinestatic |
Get the StelMainGraphicsView singleton instance.
Definition at line 48 of file StelMainGraphicsView.hpp.
|
inline |
Get the script API proxy (for signal handling)
Definition at line 63 of file StelMainGraphicsView.hpp.
|
inlineslot |
Get the current maximum frames per second.
Definition at line 105 of file StelMainGraphicsView.hpp.
|
inlineslot |
Get t