X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkVolumeRenderer.h;h=296f955d6110aaeae03d6fc44a0242f7f1fc46b7;hb=e5759b9960326cfbe5f585fd296a355706f5fd01;hp=fc46e6559c8dd3659bdeb4c35732e7dda2bb109f;hpb=17ac9460f5ea5600d1065fbe3ee4ad826d7bb4fc;p=bbtk.git diff --git a/packages/vtk/src/bbvtkVolumeRenderer.h b/packages/vtk/src/bbvtkVolumeRenderer.h index fc46e65..296f955 100644 --- a/packages/vtk/src/bbvtkVolumeRenderer.h +++ b/packages/vtk/src/bbvtkVolumeRenderer.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbvtkVolumeRenderer.h,v $ Language: C++ - Date: $Date: 2009/05/15 14:58:01 $ - Version: $Revision: 1.2 $ + Date: $Date: 2009/08/07 15:06:26 $ + Version: $Revision: 1.5 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -64,8 +64,10 @@ #include "vtkVolume.h" #include "vtkPiecewiseFunction.h" +#include "vtkColorTransferFunction.h" #include "bbvtk_EXPORT.h" +#include "vtkVolumeProperty.h" namespace bbvtk { @@ -79,6 +81,7 @@ namespace bbvtk 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); @@ -91,6 +94,7 @@ namespace bbvtk vtkVolumeRayCastCompositeFunction * mRayCastFunction; vtkVolumeRayCastMapper* mMapper; vtkVolume* mVolume; + vtkVolumeProperty* _volumeProperty; }; //================================================================= @@ -101,6 +105,7 @@ namespace bbvtk 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*,"");