27 #define IMG(id) OLocalizator::getPicture("TYRenderWindow", (id))
52 oColor.
r = oColor.
g = oColor.
b = 0.5;
70 setFocusProxy(parentWidget());
112 QGLWidget::updateGL();
121 clock_t timeBefore = clock();
123 clock_t timeAfter = clock();
125 double timeElaspedInSec = ((double)(timeAfter - timeBefore)) / (
double)CLOCKS_PER_SEC;
129 writeOutputMsg(QString(
"FPS = %1").arg(1.0 / timeElaspedInSec, 0,
'f', 2));
void writeOutputMsg(QString msg)
Affiche un message dans la fenetre de sortie.
pour l'application Tympan (fichier header)
association du graphic (OpenGL) au modeleur (fichier header)
void setVisibility(bool bVisible)
void setDisplayPosition(double displayPositionX, double displayPositionY)
void setColor(const OColor &oColor)
void setTextToDisplay(const QString &qsText)
void setFont(const QString &qsFontPath)
static LPOSizeManager get()
Realise le rendu VTK et le rendu OpenGL.
void addOGLElement(OGLElement *pOGLElement)
void OpenGLRender(GLenum mode=GL_RENDER, int x=0, int y=0)
void init(int width, int height)
virtual void initializeGL()
TYRenderWindow(QGLFormat glf, QWidget *pParent=0, const char *name=0)
virtual void resizeGL(int w, int h)
TYOpenGLRenderer * _pRenderer
void showInfos(bool state)
TYOpenGLRenderer * getRenderer()
OGLTextElement * _pOGLTextInfoLabel