44 #include <vtkImageData.h>
45 #include <vtkWindowLevelLookupTable.h>
46 #include <vtkColorTransferFunction.h>
47 #include <vtkPiecewiseFunction.h>
48 #include <vtkVolumeProperty.h>
50 #include <QDomDocument>
51 #include <QStringList>
99 this->refreshOpacityTF();
100 this->refreshColorTF();
107 retval->deepCopy(
this);
115 mOpacityTF = vtkPiecewiseFunctionPtr::New();
116 this->refreshOpacityTF();
125 mColorTF = vtkColorTransferFunctionPtr::New();
126 this->refreshColorTF();
134 void ImageTF3D::refreshColorTF()
143 void ImageTF3D::refreshOpacityTF()
153 void ImageTF3D::buildOpacityMapFromLLRAlpha()
157 int smooth = (int) (0.1 * range);
void transferFunctionsChanged()
vtkColorTransferFunctionPtr getColorTF()
void fillOpacityTFFromMap(vtkPiecewiseFunctionPtr tf) const
vtkSmartPointer< class vtkPiecewiseFunction > vtkPiecewiseFunctionPtr
vtkSmartPointer< class vtkColorTransferFunction > vtkColorTransferFunctionPtr
virtual void internalsHaveChanged()
void addAlphaPoint(int alphaPosition, int alphaValue)
Add point to the opacity transfer function.
ImageTF3DPtr createCopy()
vtkPiecewiseFunctionPtr getOpacityTF()
boost::shared_ptr< class ImageTF3D > ImageTF3DPtr
void fillColorTFFromMap(vtkColorTransferFunctionPtr tf) const