vtkLightKit *lightKit=vtkLightKit::New();
//bbGetInputRenderer()->SetTwoSidedLighting(0);
lightKit->SetKeyLightWarmth( bbGetInputKeyLightWarmth() );
- lightKit->SetFillLightWarmth( bbSetInputFillLightWarmth() );
- lightKit->SetBackLightWarmth( bbSetInputBackLightWarmth() );
+ lightKit->SetFillLightWarmth( bbGetInputFillLightWarmth() );
+ lightKit->SetBackLightWarmth( bbGetInputBackLightWarmth() );
lightKit->AddLightsToRenderer( bbGetInputRenderer() );
}
BBTK_DECLARE_INPUT(FillLightWarmth,double);
BBTK_DECLARE_INPUT(BackLightWarmth,double);
BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
-(
+
// BBTK_DECLARE_OUTPUT(Out,double);
BBTK_PROCESS(Process);
void Process();
BBTK_AUTHOR("InfoDev");
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+ BBTK_INPUT(LightKit,KeyLightWarmth,"KeyLightWarmth", double ,"");
+ BBTK_INPUT(LightKit,FillLightWarmth,"FillLightWarmth", double ,"");
+ BBTK_INPUT(LightKit,BackLightWarmth,"BackLightWarmth", double ,"");
BBTK_INPUT(LightKit,Renderer,"3D scene in which to insert the surface",vtkRenderer*,"");
// BBTK_OUTPUT(LightKit,Out,"First output",double,"");
BBTK_END_DESCRIBE_BLACK_BOX(LightKit);
rgba[3]=0;
_colorLookupTable->SetTableValue(0,rgba);
- int i,iMax=200;
+ int i,iMax;
+
+ iMax=(1000/16)*4;
+ for (i=0;i<iMax;i++)
+ {
+
+ _colorLookupTable->GetTableValue(500+i, rgba);
+ rgba[3]=(double)i/(double)iMax;
+ _colorLookupTable->SetTableValue(500+i,rgba);
+ _colorLookupTable->GetTableValue(500-i, rgba);
+ rgba[3]=(double)i/(double)iMax;
+ _colorLookupTable->SetTableValue(500-i,rgba);
+
+ } // for
+
+
+/*
+ iMax=100;
for (i=0;i<iMax;i++)
{
+
_colorLookupTable->GetTableValue(500+100+i, rgba);
rgba[3]=(double)i/(double)iMax;
_colorLookupTable->SetTableValue(500+100+i,rgba);
_colorLookupTable->GetTableValue(500-100-i, rgba);
rgba[3]=(double)i/(double)iMax;
_colorLookupTable->SetTableValue(500-100-i,rgba);
+
} // for
- iMax=100;
+ iMax=200;
for (i=0;i<iMax;i++)
{
_colorLookupTable->GetTableValue(500+i, rgba);
rgba[3]=0;
_colorLookupTable->SetTableValue(500-i,rgba);
} // for
+*/
+
+
} // if Type 0