GlobeEngine
geQT::SimpleQTViewerGLWidget Class Referenceabstract

#include <SimpleQTViewerGLWidget.h>

Inheritance diagram for geQT::SimpleQTViewerGLWidget:
at::AtmosphereViewerControlWidget geATS::AvalancheTrainingSimulationGLWidget geClimateViewer::ClimateViewerGLWidget geCoreExample::CoreExampleGLWidget geExoViewer::ExoViewerGLWidget geHikingViewer::HikingViewerGLWidget geMeshExample::MeshExampleGLWidget gePlanetaryViewer::PlanetaryViewerGLWidget gePointCloudExample::PointCloudExampleGLWidget geQT::VRViewerGLWidget geSunExample::SunExampleViewerGLWidget geTerrainExample::TerrainExampleGLWidget geTextureExample::TextureExampleViewerGLWidget geViewer::GlobeEngineGLWidget geVRExample::VRExampleGLWidget

Signals

void objectSelectionEvent ()
 

Public Member Functions

 SimpleQTViewerGLWidget (ge::Engine *_engine, ge::InputControl *_input)
 
 ~SimpleQTViewerGLWidget ()
 
QSize minimumSizeHint () const
 
QSize sizeHint () const
 
void setParentPosition (int _x, int _y)
 
void enableUIPainting (bool _in=true)
 
void disableUIPainting ()
 
void drawText (vmml::Vector2d _pt, std::string _string, QFont _font)
 
bool checkIfOpenGLContextActive ()
 
bool restoreEngineOpenGLContext ()
 
virtual void initialize ()=0
 
virtual void drawGL ()=0
 
virtual void updateScene ()=0
 
virtual void drawUI ()=0
 
virtual void resize (int _width, int _height)=0
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void keyReleaseEvent (QKeyEvent *e)
 

Static Public Member Functions

static void setDefaultSurfaceFormatForConfiguration (int _numberOfSamples=4, int _depthBufferSize=24, int _stencilBufferSize=8, int _alphaChannelSize=0)
 

Protected Member Functions

void initializeGL ()
 
void paintGL ()
 
void resizeGL (int width, int height)
 
virtual void leaveEvent (QEvent *event)
 
virtual void enterEvent (QEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
void paintUI ()
 

Protected Attributes

bool mouseInWidget
 
int posParentX
 
int posParentY
 
QPainter * p
 
QTimer * updateTimer
 
ge::InputControlinputcontrol
 
ge::Engineengine
 
bool paintUIEnabled
 

Constructor & Destructor Documentation

geQT::SimpleQTViewerGLWidget::SimpleQTViewerGLWidget ( ge::Engine _engine,
ge::InputControl _input 
)
geQT::SimpleQTViewerGLWidget::~SimpleQTViewerGLWidget ( )

Member Function Documentation

bool geQT::SimpleQTViewerGLWidget::checkIfOpenGLContextActive ( )
void geQT::SimpleQTViewerGLWidget::disableUIPainting ( )
void geQT::SimpleQTViewerGLWidget::drawText ( vmml::Vector2d  _pt,
std::string  _string,
QFont  _font 
)
void geQT::SimpleQTViewerGLWidget::enableUIPainting ( bool  _in = true)
void geQT::SimpleQTViewerGLWidget::enterEvent ( QEvent *  event)
protectedvirtual
void geQT::SimpleQTViewerGLWidget::initializeGL ( )
protected
void geQT::SimpleQTViewerGLWidget::keyPressEvent ( QKeyEvent *  e)
virtual
void geQT::SimpleQTViewerGLWidget::keyReleaseEvent ( QKeyEvent *  e)
virtual
void geQT::SimpleQTViewerGLWidget::leaveEvent ( QEvent *  event)
protectedvirtual
QSize geQT::SimpleQTViewerGLWidget::minimumSizeHint ( ) const
void geQT::SimpleQTViewerGLWidget::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented in geExoViewer::ExoViewerGLWidget.

void geQT::SimpleQTViewerGLWidget::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual
void geQT::SimpleQTViewerGLWidget::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented in geExoViewer::ExoViewerGLWidget.

void geQT::SimpleQTViewerGLWidget::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual
void geQT::SimpleQTViewerGLWidget::objectSelectionEvent ( )
signal
void geQT::SimpleQTViewerGLWidget::paintGL ( )
protected
void geQT::SimpleQTViewerGLWidget::paintUI ( )
protected
void geQT::SimpleQTViewerGLWidget::resizeGL ( int  width,
int  height 
)
protected
bool geQT::SimpleQTViewerGLWidget::restoreEngineOpenGLContext ( )
void geQT::SimpleQTViewerGLWidget::setDefaultSurfaceFormatForConfiguration ( int  _numberOfSamples = 4,
int  _depthBufferSize = 24,
int  _stencilBufferSize = 8,
int  _alphaChannelSize = 0 
)
static
void geQT::SimpleQTViewerGLWidget::setParentPosition ( int  _x,
int  _y 
)
QSize geQT::SimpleQTViewerGLWidget::sizeHint ( ) const
void geQT::SimpleQTViewerGLWidget::wheelEvent ( QWheelEvent *  event)
protectedvirtual

Member Data Documentation

ge::Engine* geQT::SimpleQTViewerGLWidget::engine
protected
ge::InputControl* geQT::SimpleQTViewerGLWidget::inputcontrol
protected
bool geQT::SimpleQTViewerGLWidget::mouseInWidget
protected
QPainter* geQT::SimpleQTViewerGLWidget::p
protected
bool geQT::SimpleQTViewerGLWidget::paintUIEnabled
protected
int geQT::SimpleQTViewerGLWidget::posParentX
protected
int geQT::SimpleQTViewerGLWidget::posParentY
protected
QTimer* geQT::SimpleQTViewerGLWidget::updateTimer
protected

The documentation for this class was generated from the following files: