Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelMainGraphicsView.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:45:14 2014 Кодировка: Поисковые слова: ngc 5128 |
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 the current minimum frames per second.
Definition at line 100 of file StelMainGraphicsView.hpp.
|
inline |
Get the script manager.
Definition at line 65 of file StelMainGraphicsView.hpp.
|
inline |
Return the QGraphicsWidget encapsulating the Stellarium main sky view.
Use its layout if you want to add widget on the top of the main sky view.
Definition at line 55 of file StelMainGraphicsView.hpp.
|
inline |
Return the top level QGraphicsWidget which contains the layout containing the Stellarium main sky view.
Use its layout if you want to add widget on the side of the main sky view.
Definition at line 59 of file StelMainGraphicsView.hpp.
void StelMainGraphicsView::init | ( | class QSettings * | conf | ) |
Start the main initialization of Stellarium.
|
slot |
Save a screen shot.
The format of the file, and hence the filename extension depends on the architecture and build type.
|
signal |
emitted when saveScreenShot is requested with saveScreenShot().
doScreenshot() does the actual work (it has to do it in the main thread, where as saveScreenShot() might get called from another one.
|
inlineslot |
Set the mouse cursor timeout in seconds.
Definition at line 92 of file StelMainGraphicsView.hpp.
|
inlineslot |
Get the state of the mouse cursor timeout flag.
Definition at line 90 of file StelMainGraphicsView.hpp.
|
inlineslot |
Set whether colors should be inverted when saving screenshot.
Definition at line 83 of file StelMainGraphicsView.hpp.
|
inlineslot |
Set the maximum frames per second.
m | the new maximum fps setting. |
Definition at line 103 of file StelMainGraphicsView.hpp.
|
inlineslot |
Set the minimum frames per second.
Usually this minimum will be switched to after there are no user events for some seconds to save power. However, if can be useful to set this to a high value to improve playing smoothness in scripts.
m | the new minimum fps setting. |
Definition at line 98 of file StelMainGraphicsView.hpp.
|
inlineslot |
Updates the scene and process all events.
Definition at line 108 of file StelMainGraphicsView.hpp.