Program: bbtk
Module: $RCSfile: bbvtkVolumeRenderer.h,v $
Language: C++
- Date: $Date: 2008/12/16 12:48:10 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2009/08/07 15:06:26 $
+ Version: $Revision: 1.5 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include "vtkVolume.h"
#include "vtkPiecewiseFunction.h"
+#include "vtkColorTransferFunction.h"
#include "bbvtk_EXPORT.h"
+#include "vtkVolumeProperty.h"
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);
void Process();
protected:
- virtual void bbUserConstructor();
- virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
- virtual void bbUserDestructor();
- void Init();
+
private:
vtkVolumeProperty * mVolumeProperty;
vtkVolumeRayCastCompositeFunction * mRayCastFunction;
vtkVolumeRayCastMapper* mMapper;
vtkVolume* mVolume;
+ vtkVolumeProperty* _volumeProperty;
};
//=================================================================
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*,"");