MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / drawPoint

Method drawPoint

SRC/renderer/OpenGlRenderer.cpp:432–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432int
433OpenGLRenderer::drawPoint(const Vector &pos1, float V1, int tag, int mode, int numPixels)
434{
435 glPointSize(numPixels);
436
437 glBegin(GL_POINTS);
438 float r, g, b;
439
440 theMap->getRGB(V1, r, g, b);
441 glColor3f(r,g,b);
442 glVertex3f(pos1(0),pos1(1),pos1(2));
443
444 if (theOutputFileName != 0) {
445 theFile << "Point\n" << pos1(0) << " " << pos1(1) << " " << pos1(2)
446 << " " << r << " " << g << " " << b << " " << endln;
447 }
448
449 glEnd();
450
451 return 0;
452}
453
454
455int

Callers

nothing calls this directly

Calls 1

getRGBMethod · 0.80

Tested by

no test coverage detected