Program: bbtk
Module: $RCSfile: bbvtkVolumeRenderer.cxx,v $
Language: C++
- Date: $Date: 2009/05/15 14:58:01 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2009/07/08 14:23:08 $
+ Version: $Revision: 1.3 $
=========================================================================*/
/* ---------------------------------------------------------------------
mMapper->SetInput( bbGetInputIn() );
changed = true;
}
- if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
+
+ if ( ( bbGetInputStatus("ColorFunction") != bbtk::UPTODATE ) &&
( bbGetInputColorFunction() != 0 ) )
{
mVolume->GetProperty()->SetColor( bbGetInputColorFunction() );
changed = true;
}
+
+ if ( ( bbGetInputStatus("ColorFunction1") != bbtk::UPTODATE ) &&
+ ( bbGetInputColorFunction1() != 0 ) )
+ {
+ mVolume->GetProperty()->SetColor( bbGetInputColorFunction1() );
+ changed = true;
+ }
+
if ( ( bbGetInputStatus("OpacityFunction") != bbtk::UPTODATE ) &&
( bbGetInputOpacityFunction() != 0 ) )
{
Program: bbtk
Module: $RCSfile: bbvtkVolumeRenderer.h,v $
Language: C++
- Date: $Date: 2009/05/15 14:58:01 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2009/07/08 14:23:08 $
+ Version: $Revision: 1.3 $
=========================================================================*/
/* ---------------------------------------------------------------------
BBTK_DECLARE_INPUT(In,vtkImageData *);
BBTK_DECLARE_INPUT(ColorFunction,vtkPiecewiseFunction*);
+ BBTK_DECLARE_INPUT(ColorFunction1,vtkColorTransferFunction *);
BBTK_DECLARE_INPUT(OpacityFunction,vtkPiecewiseFunction*);
BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
BBTK_PROCESS(Process);
BBTK_DESCRIPTION("Renders a 3D image. Creates a vtkProp3D object to insert into a 3D scene (e.g. a Viewer3D)");
BBTK_CATEGORY("3D object creator");
BBTK_INPUT(VolumeRenderer,ColorFunction,"Color function",vtkPiecewiseFunction*,"");
+ BBTK_INPUT(VolumeRenderer,ColorFunction1,"Color function1 instead of Color function",vtkColorTransferFunction*,"");
BBTK_INPUT(VolumeRenderer,OpacityFunction,"Opacity function",vtkPiecewiseFunction*,"");
BBTK_INPUT(VolumeRenderer,In,"Input Image",vtkImageData *,"");
BBTK_OUTPUT(VolumeRenderer,Out,"3D object to plug into a 3D viewer",vtkProp3D*,"");