{
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->GetTableValue(0,rgba);
rgba[3]=0;
colorLookupTable->SetTableValue(0,rgba);
+
+ colorLookupTable->UseBelowRangeColorOn();
+ colorLookupTable->UseAboveRangeColorOn();
+ if (bbGetInputBelowAboveRangeTransparence()==true)
+ {
+ colorLookupTable->SetBelowRangeColor(1,1,1,0); // White transparent
+ colorLookupTable->SetAboveRangeColor(1,1,1,0); // White transparent
+ } else {
+ colorLookupTable->SetBelowRangeColor(1,1,1,1); // White transparent
+ colorLookupTable->SetAboveRangeColor(1,1,1,1); // White transparent
+ }
// Middle range
int i,iMax=(NumberOfColors/16)*4;
if (bbGetInputRange().size()==2)
{
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->SetTableRange( bbGetInputRange()[0],bbGetInputRange()[1]); ????????
+// colorLookupTable->SetBelowRangeColor(1,1,1,1); // White transparent
+// colorLookupTable->SetAboveRangeColor(1,1,1,1); // White transparent
colorLookupTable->UseBelowRangeColorOn();
colorLookupTable->UseAboveRangeColorOn();
-
+ if (bbGetInputBelowAboveRangeTransparence()==true)
+ {
+ colorLookupTable->SetBelowRangeColor(1,1,1,0); // White transparent
+ colorLookupTable->SetAboveRangeColor(1,1,1,0); // White transparent
+ } else {
+ colorLookupTable->SetBelowRangeColor(1,1,1,1); // White transparent
+ colorLookupTable->SetAboveRangeColor(1,1,1,1); // White transparent
+ }
} else {
colorLookupTable->SetRange(0,255);
}
range.push_back( 1 );
bbSetInputRange(range);
bbSetInputScalarValue(0);
+ bbSetInputBelowAboveRangeTransparence(true);
// firsttime = true;
_scalarstocolors = NULL;
}
//=====
BBTK_DECLARE_INPUT(Type,int);
BBTK_DECLARE_INPUT(ScalarValue,double);
+ BBTK_DECLARE_INPUT(BelowAboveRangeTransparence,bool);
BBTK_DECLARE_INPUT(Range,std::vector<double> );
BBTK_DECLARE_OUTPUT(Color, std::vector<double> );
BBTK_DECLARE_OUTPUT(LookupTable,vtkScalarsToColors*);
BBTK_CATEGORY("empty");
BBTK_INPUT(ScalarsToColors,Type,"(0 default) 0=JET(transparent for first element and middle range); 100=As 0 without transparace; 1=RangeTable (transparent for first element); 101=As 1 without transparace; 2=DirectionColorRGB; 3=ComponentColorRGB[0-255]",int,"");
BBTK_INPUT(ScalarsToColors,ScalarValue,"Scalar value -> Color OUT",double,"");
+ BBTK_INPUT(ScalarsToColors,BelowAboveRangeTransparence,"(default true) Transparence for Before and After range true/false",bool,"");
BBTK_INPUT(ScalarsToColors,Range,"Min Max range",std::vector<double>,"");
BBTK_OUTPUT(ScalarsToColors,Color,"Color",std::vector<double>,"");
BBTK_OUTPUT(ScalarsToColors,LookupTable,"LookupTable",vtkScalarsToColors*,"");