]> Creatis software - creaVtk.git/commitdiff
#3464 Aboce Below Range color in ScalarsToColors box
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Jun 2021 07:33:22 +0000 (09:33 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Jun 2021 07:33:22 +0000 (09:33 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx

index b962c93f1af9b32d576210ae758929577df3fe48..50c2cbc2e8532df3618d09af7bf6955a5390e5ec 100644 (file)
@@ -238,6 +238,10 @@ void ScalarsToColors::Process()
                        {
                                colorLookupTable->SetRange( bbGetInputRange()[0],bbGetInputRange()[1]);
 //                             colorLookupTable->SetTableRange( bbGetInputRange()[0],bbGetInputRange()[1]);
+                               colorLookupTable->SetBelowRangeColor(1,1,1,0);  // White transparent 
+                               colorLookupTable->SetAboveRangeColor(1,1,1,0);  // White transparent 
+                               colorLookupTable->UseBelowRangeColorOn();
+                               colorLookupTable->UseAboveRangeColorOn();
                        } else {
                                colorLookupTable->SetRange(0,255);
                        }
@@ -290,6 +294,11 @@ void ScalarsToColors::Process()
                        {
                                colorLookupTable->SetRange( bbGetInputRange()[0],bbGetInputRange()[1]);
 //                             colorLookupTable->SetTableRange( bbGetInputRange()[0],bbGetInputRange()[1]);
+                               colorLookupTable->SetBelowRangeColor(1,1,1,0);  // White transparent 
+                               colorLookupTable->SetAboveRangeColor(1,1,1,0);  // White transparent 
+                               colorLookupTable->UseBelowRangeColorOn();
+                               colorLookupTable->UseAboveRangeColorOn();
+
                        } else {
                                colorLookupTable->SetRange(0,255);
                        }