Ignore:
Timestamp:
02/21/07 20:14:45 (17 years ago)
Author:
bittner
Message:

rainbow color maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2147 r2148  
    1414#include "Trackball.h" 
    1515#include "QtPreprocessorThread.h" 
     16#include "Material.h" 
    1617 
    1718#define USE_CG 1 
     
    414415                 
    415416                if (mRenderVisibilityEstimates) { 
    416                   float visibility = mTransferFunction*log10(entry.mData.mSumPdf + 1); // /5.0f 
    417                   glColor3f(visibility, 0.0f, 0.0f); 
     417                  //float visibility = mTransferFunction*log10(entry.mData.mSumPdf + 1); // /5.0f 
     418                  //              glColor3f(visibility, 0.0f, 0.0f); 
     419 
     420                  RgbColor color = RainbowMapping(mTransferFunction*log10(entry.mData.mSumPdf + 1)); 
     421                  glColor3f(color.r, color.g, color.b); 
     422                   
    418423                  mUseForcedColors = true; 
    419424                  RenderIntersectable(object); 
     
    10501055          const float importance = 5.0f*mTransferFunction * 
    10511056                ((float)vc->GetPvs().GetSize() / (float)maxPvs); 
    1052           c = RgbColor(importance, 1.0f - importance, 0.0f); 
     1057          //      c = RgbColor(importance, 1.0f - importance, 0.0f); 
     1058          c = RainbowMapping(importance); 
     1059           
    10531060        } 
    10541061        glColor3f(c.r, c.g, c.b); 
     
    11251132  vl->addWidget(slider); 
    11261133  slider->show(); 
    1127   slider->setRange(1, 1000); 
     1134  slider->setRange(1, 10000); 
    11281135  slider->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); 
    11291136  slider->setValue(100); 
Note: See TracChangeset for help on using the changeset viewer.