33 #ifndef CXTRANSFERFUNCTIONALPHAWIDGET_H_ 34 #define CXTRANSFERFUNCTIONALPHAWIDGET_H_ 36 #include "cxGuiExport.h" 62 void clearBackground(QPainter &painter);
68 void setReadOnly(
bool readOnly);
71 void activeImageTransferFunctionsChangedSlot();
93 if(position != INT_MIN)
99 virtual void enterEvent(QEvent* event);
100 virtual void leaveEvent(QEvent* event);
101 virtual void mousePressEvent(QMouseEvent* event);
102 virtual void mouseReleaseEvent(QMouseEvent* event);
103 virtual void mouseMoveEvent(QMouseEvent* event);
104 virtual void keyPressEvent(QKeyEvent* event);
106 virtual void paintEvent(QPaintEvent* event);
107 virtual void resizeEvent(QResizeEvent* evt);
111 void toggleSelectedPoint(QPoint pos);
112 void moveCurrentAlphaPoint(
AlphaPoint newAlphaPoint);
114 void updateTooltip(QPoint pos);
117 bool isEndpoint(
int intensity)
const;
118 void paintHistogram(QPainter& painter);
119 void paintOpacityGraph(QPainter& painter);
120 std::pair<int,int> findAllowedMoveRangeAroundAlphaPoint(
int selectedPointIntensity);
135 virtual QSize
sizeHint ()
const {
return QSize(200, 100);};
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
boost::shared_ptr< class ImageTFData > ImageTFDataPtr
Namespace for all CustusX production code.