23 #include <vtkImageData.h> 24 #include <vtkWindowLevelLookupTable.h> 25 #include <vtkColorTransferFunction.h> 26 #include <vtkPiecewiseFunction.h> 27 #include <vtkVolumeProperty.h> 29 #include <QDomDocument> 30 #include <QStringList> 78 this->refreshOpacityTF();
79 this->refreshColorTF();
86 retval->deepCopy(
this);
94 mOpacityTF = vtkPiecewiseFunctionPtr::New();
95 this->refreshOpacityTF();
104 mColorTF = vtkColorTransferFunctionPtr::New();
105 this->refreshColorTF();
113 void ImageTF3D::refreshColorTF()
122 void ImageTF3D::refreshOpacityTF()
132 void ImageTF3D::buildOpacityMapFromLLRAlpha()
136 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
Namespace for all CustusX production code.