| 78 | } |
| 79 | |
| 80 | void PointcloudDrawer::draw() const{ |
| 81 | if (m_numberPoints == 0) |
| 82 | return; |
| 83 | |
| 84 | glEnable(GL_POINT_SMOOTH); |
| 85 | glEnableClientState(GL_VERTEX_ARRAY); |
| 86 | |
| 87 | // TODO: find a solution for printout-mode (=> separate drawer?) |
| 88 | // if (m_printoutMode){ |
| 89 | // if (!m_drawFree) { |
| 90 | // glClearColor(1.0f, 1.0f, 1.0f, 1.0f); |
| 91 | // } |
| 92 | // glColor4f(0.0, 0.0, 0.0, 1.); |
| 93 | // } else{ |
| 94 | // glColor4f(1.0, 0.0, 0.0, 1.); |
| 95 | // } |
| 96 | |
| 97 | glPointSize(1.0); |
| 98 | glColor4f(1.0, 0.0, 0.0, 1.); |
| 99 | |
| 100 | glVertexPointer(3, GL_FLOAT, 0, m_pointsArray); |
| 101 | glDrawArrays(GL_POINTS, 0, m_numberPoints); |
| 102 | glDisableClientState(GL_VERTEX_ARRAY); |
| 103 | } |
| 104 | |
| 105 | } |
nothing calls this directly
no outgoing calls
no test coverage detected