![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <StelAppGraphicsScene.hpp>
Public Slots | |
void | minFpsChanged () |
Public Member Functions | |
void | init () |
void | startMainLoop () |
void | setViewPortDistorterType (const QString &type) |
QString | getViewPortDistorterType () const |
void | glWindowHasBeenResized (int w, int h) |
bool | getFlagCursorTimeout () |
float | getCursorTimeout () const |
void | setFlagCursorTimeout (bool b) |
void | setCursorTimeout (float t) |
Static Public Member Functions | |
static StelAppGraphicsScene & | getInstance () |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | wheelEvent (QGraphicsSceneWheelEvent *wheelEvent) |
void | drawBackground (QPainter *painter, const QRectF &rect) |
It manages initialization of the program and redirects users inputs to the core and GUI
static StelAppGraphicsScene& StelAppGraphicsScene::getInstance | ( | ) | [inline, static] |
void StelAppGraphicsScene::init | ( | ) |
Initialize the StelAppGraphicsScene.
void StelAppGraphicsScene::startMainLoop | ( | ) |
Start the display loop.
void StelAppGraphicsScene::setViewPortDistorterType | ( | const QString & | type | ) |
Define the type of viewport distorter to use.
type | can be only 'fisheye_to_spheric_mirror' or anything else for no distorter |
QString StelAppGraphicsScene::getViewPortDistorterType | ( | ) | const |
Get the type of viewport distorter currently used.
bool StelAppGraphicsScene::getFlagCursorTimeout | ( | ) | [inline] |
Get the state of the mouse cursor timeout flag.
float StelAppGraphicsScene::getCursorTimeout | ( | ) | const [inline] |
Get the mouse cursor timeout in seconds.
void StelAppGraphicsScene::setFlagCursorTimeout | ( | bool | b | ) | [inline] |
Get the state of the mouse cursor timeout flag.
void StelAppGraphicsScene::setCursorTimeout | ( | float | t | ) | [inline] |
Set the mouse cursor timeout in seconds.
void StelAppGraphicsScene::drawBackground | ( | QPainter * | painter, | |
const QRectF & | rect | |||
) | [protected] |
Paint the whole Core of stellarium.
This method is called automatically by the GraphicsView