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

Definition at line 552 of file BasicGlCamera.cc.

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

Referenced by BasicGlCamera().

553  {
554  if (!checked) return;
555  ss[0] = 0.f; ss[1] = 0.25f; ss[2] = 0.5f; ss[3] = 0.75f; ss[4] = 1.0f;
556  rr[0] = 0.f; rr[1] = 0.35f; rr[2] = 0.85f; rr[3] = 1.0f; rr[4] = 1.f;
557  gg[0] = 0.f; gg[1] = 0.10f; gg[2] = 0.20f; gg[3] = 0.73f; gg[4] = 1.f;
558  bb[0] = 0.f; bb[1] = 0.03f; bb[2] = 0.06f; bb[3] = 0.00f; bb[4] = 1.f;
559  tooHighValueCoulour[0] = 0.f;
560  tooHighValueCoulour[1] = 1.f;
561  tooHighValueCoulour[2] = 0.f;
562  tooLowValueCoulour[0] = 0.f;
563  tooLowValueCoulour[1] = 0.f;
564  tooLowValueCoulour[2] = 1.f;
565  pixelColorUpToDate = false;
566 
567  emit colorPaletteHasChanged();
568 
569  if (isVisible() && autoRefresh)
570  updateGL();
571  }
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: