Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

StelAppGraphicsScene Class Reference

A special QGraphicsScene for use in Stellarium. More...

#include <StelAppGraphicsScene.hpp>

List of all members.

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 StelAppGraphicsScenegetInstance ()

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)

Detailed Description

A special QGraphicsScene for use in Stellarium.

It manages initialization of the program and redirects users inputs to the core and GUI

Member Function Documentation

static StelAppGraphicsScene& StelAppGraphicsScene::getInstance (  )  [inline, static]

Get the StelMainWindow singleton instance.

the StelMainWindow singleton instance

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

Generated on Mon Feb 2 17:23:48 2009 for Stellarium by  doxygen 1.5.5