Moka Ihm Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
GLWindow Class Reference

#include <gl-window.qt.hh>

Inheritance diagram for GLWindow:
GLMultiWindow

Public Member Functions

 GLWindow (TView AViewType, QWorkspace *parent, Window *owner, SelectBar *selection)
 Constructeur pour une vue non partagee.
 
 GLWindow (TView AViewType, QWorkspace *parent, Window *owner, GLWindow *share, SelectBar *selection)
 Constructeur pour une vue partagee.
 
virtual ~GLWindow ()
 
virtual TView getViewType () const
 
virtual TViewId getViewId () const
 
virtual string getViewTypeString () const
 
virtual void closeEvent (QCloseEvent *e)
 
virtual TViewId getCliquedViewId () const
 
virtual TViewId getDoubleCliquedViewId () const
 
virtual void paintGL ()
 

Protected Member Functions

virtual void initializeGL ()
 
virtual void creation ()
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void resizeGL (int W, int H)
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 

Protected Attributes

TViewId FViewId
 
TView FViewType
 
GLWindowFShared
 
bool isShared
 
WindowFOwner
 
SelectBarFSelection
 
int FStartX
 
int FStartY
 
int FCurX
 
int FCurY
 
bool FDragMode
 

Detailed Description

Definition at line 42 of file gl-window.qt.hh.

Constructor & Destructor Documentation

GLWindow::GLWindow ( TView  AViewType,
QWorkspace *  parent,
Window owner,
SelectBar selection 
)

Constructeur pour une vue non partagee.

Parameters
AViewTypeType de vue a creer
parentWidget parent
ownerFenetre mere
selectionPointeur sur la barre de selection

Definition at line 37 of file gl-window.qt.cc.

GLWindow::GLWindow ( TView  AViewType,
QWorkspace *  parent,
Window owner,
GLWindow share,
SelectBar selection 
)

Constructeur pour une vue partagee.

Parameters
AViewTypeType de vue a creer
parentWidget parent
ownerFenetre mere
shareVue avec laquelle elle partage le contexte OpenGL
selectionPointeur sur la barre de selection

Definition at line 53 of file gl-window.qt.cc.

GLWindow::~GLWindow ( )
virtual

Destructeur

Definition at line 72 of file gl-window.qt.cc.

Member Function Documentation

void GLWindow::closeEvent ( QCloseEvent *  e)
virtual

Recuperation de l'evenement fermeture

Parameters
eEvenement

Reimplemented in GLMultiWindow.

Definition at line 107 of file gl-window.qt.cc.

void GLWindow::creation ( )
protectedvirtual

Initialisation de la vue dans le controleur

Reimplemented in GLMultiWindow.

Definition at line 224 of file gl-window.qt.cc.

TViewId GLWindow::getCliquedViewId ( ) const
virtual

Accesseur sur l'identifiant de la vue cliquee

Returns
L'identifiant de la vue

Reimplemented in GLMultiWindow.

Definition at line 99 of file gl-window.qt.cc.

TViewId GLWindow::getDoubleCliquedViewId ( ) const
virtual

Accesseur sur l'identifiant de la vue double-cliquee

Returns
L'identifiant de la vue

Reimplemented in GLMultiWindow.

Definition at line 102 of file gl-window.qt.cc.

TViewId GLWindow::getViewId ( ) const
virtual

Accesseur sur l'identifiant de la vue

Returns
L'identifiant de la vue

Reimplemented in GLMultiWindow.

Definition at line 81 of file gl-window.qt.cc.

TView GLWindow::getViewType ( ) const
virtual

Accesseur sur le type de vue

Returns
Le type de la vue

Definition at line 76 of file gl-window.qt.cc.

string GLWindow::getViewTypeString ( ) const
virtual

Accesseur sur le nom du type de la vue

Returns
La chaine caracterisant la vue

Reimplemented in GLMultiWindow.

Definition at line 86 of file gl-window.qt.cc.

void GLWindow::initializeGL ( )
protectedvirtual

Initialisation d'OpenGL

Reimplemented in GLMultiWindow.

Definition at line 183 of file gl-window.qt.cc.

void GLWindow::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Gestion du double clicage

Parameters
eEvenementdouble clic

Reimplemented in GLMultiWindow.

Definition at line 397 of file gl-window.qt.cc.

void GLWindow::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Gestion des mouvements de souris

Parameters
eEvenement souris bougee

Reimplemented in GLMultiWindow.

Definition at line 359 of file gl-window.qt.cc.

void GLWindow::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Gestion de l'appui d'un des boutons de la souris

Parameters
eEvenement bouton enfonce

Reimplemented in GLMultiWindow.

Definition at line 271 of file gl-window.qt.cc.

void GLWindow::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Gestion de relachement d'un des boutons de la souris

Parameters
eEvenement bouton lache

Reimplemented in GLMultiWindow.

Definition at line 379 of file gl-window.qt.cc.

void GLWindow::paintGL ( )
virtual

Dessin de la scene

Reimplemented in GLMultiWindow.

Definition at line 128 of file gl-window.qt.cc.

void GLWindow::resizeGL ( int  W,
int  H 
)
protectedvirtual

Gestion du reajustement de la taille de la fenetre

Parameters
Wwidth
Hheight

Definition at line 171 of file gl-window.qt.cc.

Member Data Documentation

int GLWindow::FCurX
protected

Definition at line 175 of file gl-window.qt.hh.

int GLWindow::FCurY
protected

Definition at line 175 of file gl-window.qt.hh.

bool GLWindow::FDragMode
protected

Definition at line 176 of file gl-window.qt.hh.

Window* GLWindow::FOwner
protected

Definition at line 169 of file gl-window.qt.hh.

SelectBar* GLWindow::FSelection
protected

Definition at line 172 of file gl-window.qt.hh.

GLWindow* GLWindow::FShared
protected

Definition at line 163 of file gl-window.qt.hh.

int GLWindow::FStartX
protected

Definition at line 175 of file gl-window.qt.hh.

int GLWindow::FStartY
protected

Definition at line 175 of file gl-window.qt.hh.

TViewId GLWindow::FViewId
protected

Definition at line 159 of file gl-window.qt.hh.

TView GLWindow::FViewType
protected

Definition at line 160 of file gl-window.qt.hh.

bool GLWindow::isShared
protected

Definition at line 166 of file gl-window.qt.hh.


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