/** * @brief drawStimulus */ void drawStimulus() { double radiusX = util::str2num<double>(parameters.find("RadiusX")); glPushMatrix(); glLoadIdentity(); glTranslated(0,0,focalDistance); //if (horizontal) glRotated(90,0,0,1); glScaled(radiusX,radiusX,radiusX); //glRotated(90,0,1,0); //for lateral debug mode if ( parameters.find("UsePolkaDots")=="1") surface.draw(); glPopMatrix(); glPushAttrib(GL_ALL_ATTRIB_BITS); glDisable(GL_TEXTURE_3D); glPushMatrix(); glLoadIdentity(); glTranslated(0,0,focalDistance+0.02); // if ( horizontal ) glRotated(90,0,0,1); glScaled(radiusX,radiusX,radiusX); //glRotated(90,0,1,0); //for lateral debug mode if (parameters.find("AddRandomNoise")=="1") { stimDrawerRed.draw(); //stimDrawerBlack.draw(); } glPopMatrix(); glPopAttrib(); }
/** * @brief drawThings */ void drawThings() { GLText text(width,height,glWhite); text.init(width,height,glWhite); text.enterTextInputMode(); text.draw("C= "+util::stringify(surface.parabolaSurface.curvature)); text.leaveTextInputMode(); glPushMatrix(); glLoadIdentity(); glTranslated(0,0,eyeDistance); glScaled(10,10,10); arcball.applyRotationMatrix(); surface.draw(); glPopMatrix(); getGLerrors(); }