]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSurfaceTexture.cxx
#3191 BBTK Feature New Normal - HtmlWindow Box
[bbtk.git] / packages / vtk / src / bbvtkSurfaceTexture.cxx
index 12d32b03aeed898588478a3b1bc4693d72755962..3e0f81ac70694ef2f423c9c700611b9aba5b628f 100644 (file)
@@ -57,8 +57,9 @@ printf("EED SurfaceTexture::Process Start\n");
                // Create the color map
                if (bbGetInputColorType()==1)
                {
-                       colorLookupTableWL = vtkWindowLevelLookupTable::New();
-                       colorLookupTable=colorLookupTableWL;
+                       colorLookupTableWL      = vtkWindowLevelLookupTable::New();
+                       colorLookupTableWL->InverseVideoOn();
+                       colorLookupTable        = colorLookupTableWL;
                } else {
                        colorLookupTable = vtkLookupTable::New();
                }
@@ -77,11 +78,6 @@ printf("EED SurfaceTexture::Process Start\n");
 
        }
 
-
-
-       
-
-
        bbGetInputMesh()->GetPointData()->SetScalars(colors);
 
        if (bbGetInputColorType()==1)
@@ -101,7 +97,7 @@ printf("EED SurfaceTexture::Process Start\n");
                bbGetInputTransform()->Update();
        }
        
-       unsigned short gl; 
+       double gl; 
        double p1[3];
        double p2[3];
        double dcolor[3];
@@ -145,9 +141,9 @@ void SurfaceTexture::bbUserSetDefaultValues()
        bbSetInputColorWindow(500);
        bbSetInputTransform(NULL);
   
-       firsttime               = true;
-       colors                  = NULL;
-       colorLookupTable        = NULL;
+       firsttime                               = true;
+       colors                                  = NULL;
+       colorLookupTable                = NULL;
        colorLookupTableWL      = NULL;
 }
 //=====