MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / renderText_

Method renderText_

src/openms_gui/source/VISUAL/Plot3DOpenGLCanvas.cpp:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void Plot3DOpenGLCanvas::renderText_(double x, double y, double z, const QString & text)
124 {
125 // project to screen coordinates
126 GLdouble textPosX = 0, textPosY = 0;
127 project_(x, y, z, &textPosX, &textPosY);
128 const int height = this->height();
129 textPosY = height - textPosY; // y is inverted
130
131 // cout << x << " " << y << " " << z << " : " << textPosX << " " << textPosY << " " << textPosZ << endl;
132
133 // render text using the current font and color
134 painter_->drawText(textPosX, textPosY, text);
135 }
136
137 void Plot3DOpenGLCanvas::qglColor_(const QColor& color)
138 {

Callers

nothing calls this directly

Calls 2

heightMethod · 0.80
drawTextMethod · 0.80

Tested by

no test coverage detected