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

Definition at line 532 of file BasicGlCamera.cc.

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

Referenced by BasicGlCamera().

533  {
534  if (!checked) return;
535  ss[0] = 0; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f;
536  rr[0] = 0; rr[1] = 0; rr[2] = 0; rr[3] = 1.0f; rr[4] = 1;
537  gg[0] = 0; gg[1] = 1; gg[2] = 1; gg[3] = 1; gg[4] = 0;
538  bb[0] = 0.5f; bb[1] = 1; bb[2] = 0; bb[3] = 0; bb[4] = 0;
539  tooHighValueCoulour[0] = 1.f;
540  tooHighValueCoulour[1] = 1.f;
541  tooHighValueCoulour[2] = 1.f;
542  tooLowValueCoulour[0] = 0.f;
543  tooLowValueCoulour[1] = 0.f;
544  tooLowValueCoulour[2] = 0.f;
545  pixelColorUpToDate = false;
546 
547  emit colorPaletteHasChanged();
548 
549  if (isVisible() && autoRefresh)
550  updateGL();
551  }
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: