From 2e8c7cadbf9be911a9621142f95d81807d6c0402 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 10 Jun 2021 09:33:22 +0200 Subject: [PATCH] #3464 Aboce Below Range color in ScalarsToColors box --- bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx index b962c93..50c2cbc 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkScalarsToColors.cxx @@ -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); } -- 2.47.1