88 GLdouble polygonMode[2];
89 glGetDoublev(GL_POLYGON_MODE, polygonMode);
90 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
95 glMatrixMode(GL_MODELVIEW);
114 glGetIntegerv(GL_VIEWPORT, viewport);
115 unsigned int width = viewport[2];
116 unsigned int height = viewport[3];
119 glMatrixMode(GL_PROJECTION);
122 glOrtho(0, width, 0.0, height, 0.0, 1.0);
125 glMatrixMode(GL_MODELVIEW);
142 glMatrixMode(GL_PROJECTION);
146 glMatrixMode(GL_MODELVIEW);
151 glPolygonMode(GL_FRONT_AND_BACK, polygonMode[0]);
static const OColor BLACK
static const OColor WHITE
bool load(const char *filename)
void drawText(const std::string &msg, const OColor &color, double x, double y) const
void drawRectangle(const QVector3D &point0, const QVector3D &point1, const QVector3D &point2, const QVector3D &point3, const OColor &oColor, bool bFalse=false) const
OGLRectangle * m_pOGLRectangleRightToDisplay
OGLRectangle * m_pOGLRectangleLeftToDisplay
OGLFont * m_pOGLFont0ToDisplay
virtual ~OGLScalarBarElement()