Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Slots | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TYRenderWindow Class Reference

Combine QGLWidget de Qt pour Tympan. More...

#include <TYRenderWindow.h>

Inheritance diagram for TYRenderWindow:
Inheritance graph
[legend]
Collaboration diagram for TYRenderWindow:
Collaboration graph
[legend]

Public Slots

virtual void updateGL ()
 
void showInfos (bool state)
 

Public Member Functions

 TYRenderWindow (QGLFormat glf, QWidget *pParent=0, const char *name=0)
 
 TYRenderWindow (QWidget *pParent=0, const char *name=0)
 
 ~TYRenderWindow ()
 
TYOpenGLRenderergetRenderer ()
 
bool getShowInfos ()
 

Protected Member Functions

virtual void initializeGL ()
 
virtual void resizeGL (int w, int h)
 
virtual void paintGL ()
 
QSizePolicy sizePolicy () const
 
QSize sizeHint () const
 
QSize minimumSizeHint () const
 

Private Member Functions

void initRenderWindow ()
 

Private Attributes

bool _initNeeded
 
bool _showInfos
 
TYOpenGLRenderer_pRenderer
 
OGLTextElement_pOGLTextInfoLabel
 

Detailed Description

Combine QGLWidget de Qt pour Tympan.

Definition at line 41 of file TYRenderWindow.h.

Constructor & Destructor Documentation

◆ TYRenderWindow() [1/2]

TYRenderWindow::TYRenderWindow ( QGLFormat  glf,
QWidget *  pParent = 0,
const char *  name = 0 
)

Constructeur.

Parameters
glfLe QGLFormat, qui va directement etre passe au QGLWidget herite.
pParentDirectement passe au QGLWidget herite.
nameDirectement passe au QGLWidget herite.

Definition at line 32 of file TYRenderWindow.cpp.

Here is the call graph for this function:

◆ TYRenderWindow() [2/2]

TYRenderWindow::TYRenderWindow ( QWidget *  pParent = 0,
const char *  name = 0 
)

Constructeur.

Parameters
pParentDirectement passe au QGLWidget herite.
nameDirectement passe au QGLWidget herite.

Definition at line 39 of file TYRenderWindow.cpp.

Here is the call graph for this function:

◆ ~TYRenderWindow()

TYRenderWindow::~TYRenderWindow ( )

Destructeur.

Definition at line 78 of file TYRenderWindow.cpp.

Member Function Documentation

◆ getRenderer()

TYOpenGLRenderer * TYRenderWindow::getRenderer ( )

Retourne un pointeur sur le OpenGLRenderer utilise.

Returns
Un pointeur sur le OpenGLRenderer utilise.

Definition at line 85 of file TYRenderWindow.cpp.

Here is the caller graph for this function:

◆ getShowInfos()

bool TYRenderWindow::getShowInfos ( )
inline

Indique si les informations de rendu sont affichees.

Definition at line 79 of file TYRenderWindow.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeGL()

void TYRenderWindow::initializeGL ( )
protectedvirtual

Initialise la fenetre OpenGL.

Definition at line 102 of file TYRenderWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initRenderWindow()

void TYRenderWindow::initRenderWindow ( )
private

Initialise ce TYRenderWindow. Cette methode est appelee par les constructeurs.

Definition at line 46 of file TYRenderWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ minimumSizeHint()

QSize TYRenderWindow::minimumSizeHint ( ) const
inlineprotected

Definition at line 111 of file TYRenderWindow.h.

Here is the call graph for this function:

◆ paintGL()

void TYRenderWindow::paintGL ( )
protectedvirtual

Lance le rendu de la scene.

Definition at line 120 of file TYRenderWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeGL()

void TYRenderWindow::resizeGL ( int  w,
int  h 
)
protectedvirtual

Redimensionne la fenetre OpenGL.

Definition at line 107 of file TYRenderWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showInfos

void TYRenderWindow::showInfos ( bool  state)
slot

Affiche des informations de rendu en overlay.

Definition at line 90 of file TYRenderWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeHint()

QSize TYRenderWindow::sizeHint ( ) const
inlineprotected

Definition at line 110 of file TYRenderWindow.h.

◆ sizePolicy()

QSizePolicy TYRenderWindow::sizePolicy ( ) const
inlineprotected

Definition at line 106 of file TYRenderWindow.h.

◆ updateGL

void TYRenderWindow::updateGL ( )
virtualslot

Met a jour OpenGL.

Definition at line 114 of file TYRenderWindow.cpp.

Member Data Documentation

◆ _initNeeded

bool TYRenderWindow::_initNeeded
private

Definition at line 122 of file TYRenderWindow.h.

◆ _pOGLTextInfoLabel

OGLTextElement* TYRenderWindow::_pOGLTextInfoLabel
private

Definition at line 125 of file TYRenderWindow.h.

◆ _pRenderer

TYOpenGLRenderer* TYRenderWindow::_pRenderer
private

Definition at line 124 of file TYRenderWindow.h.

◆ _showInfos

bool TYRenderWindow::_showInfos
private

Definition at line 123 of file TYRenderWindow.h.


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