FACT++  1.0
void BasicGlCamera::greyScalePalettePlease ( bool  checked)
slot

Definition at line 572 of file BasicGlCamera.cc.

References autoRefresh, bb, colorPaletteHasChanged(), gg, pixelColorUpToDate, rr, ss, tooHighValueCoulour, and tooLowValueCoulour.

Referenced by BasicGlCamera().

573  {
574  if (!checked) return;
575  ss[0] = 0; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f;
576  rr[0] = 0; rr[1] = 0.25f; rr[2] = 0.5f; rr[3] = 0.75f; rr[4] = 1.0f;
577  gg[0] = 0; gg[1] = 0.25f; gg[2] = 0.5f; gg[3] = 0.75f; gg[4] = 1.0f;
578  bb[0] = 0; bb[1] = 0.25f; bb[2] = 0.5f; bb[3] = 0.75f; bb[4] = 1.0f;
579  tooHighValueCoulour[0] = 0.f;
580  tooHighValueCoulour[1] = 1.f;
581  tooHighValueCoulour[2] = 0.f;
582  tooLowValueCoulour[0] = 0.f;
583  tooLowValueCoulour[1] = 0.f;
584  tooLowValueCoulour[2] = 1.f;
585  pixelColorUpToDate = false;
586 
587  emit colorPaletteHasChanged();
588 
589  if (isVisible() && autoRefresh)
590  updateGL();
591  }
GLfloat tooLowValueCoulour[3]
Definition: BasicGlCamera.h:71
void colorPaletteHasChanged()
GLfloat tooHighValueCoulour[3]
Definition: BasicGlCamera.h:70
bool pixelColorUpToDate
Definition: BasicGlCamera.h:63

+ Here is the caller graph for this function: