18 #ifndef CXIMAGETFDATA_H_ 19 #define CXIMAGETFDATA_H_ 21 #include "cxResourceExport.h" 25 #include <boost/shared_ptr.hpp> 34 typedef std::map<int, QColor>
ColorMap;
83 void setAlpha(
double val);
84 double getAlpha()
const;
85 void setLLR(
double val);
86 double getLLR()
const;
87 void setWindow(
double val);
88 double getWindow()
const;
89 void setLevel(
double val);
90 double getLevel()
const;
92 IntIntMap getOpacityMap();
93 ColorMap getColorMap();
95 void resetAlpha(IntIntMap val);
96 void addAlphaPoint(
int alphaPosition,
int alphaValue);
97 void removeAlphaPoint(
int alphaPosition);
98 void moveAlphaPoint(
int oldpos,
int newpos,
int alphaValue);
100 void resetColor(ColorMap val);
101 void addColorPoint(
int colorPosition, QColor colorValue);
102 void removeColorPoint(
int colorPosition);
103 void moveColorPoint(
int oldpos,
int newpos, QColor colorValue);
105 virtual void addXml(QDomNode dataNode);
106 virtual void parseXml(QDomNode dataNode);
108 void unsignedCT(
bool onLoad);
115 void transferFunctionsChanged();
123 void shiftColor(
int shift,
double center,
double scale);
124 void shiftOpacity(
int shift);
boost::shared_ptr< ColorMap > ColorMapPtr
vtkSmartPointer< class vtkPiecewiseFunction > vtkPiecewiseFunctionPtr
vtkSmartPointer< class vtkColorTransferFunction > vtkColorTransferFunctionPtr
boost::shared_ptr< IntIntMap > OpacityMapPtr
std::map< int, QColor > ColorMap
virtual void internalsHaveChanged()
std::map< int, int > IntIntMap
Data class for Transfer Function info, either 2D or 3D.
boost::shared_ptr< class ImageTFData > ImageTFDataPtr
Namespace for all CustusX production code.