33 #ifndef CXTRANSFERFUNCTIONALPHAWIDGET_H_
34 #define CXTRANSFERFUNCTIONALPHAWIDGET_H_
36 #include "cxGuiExport.h"
63 void clearBackground(QPainter &painter);
69 void setReadOnly(
bool readOnly);
72 void activeImageTransferFunctionsChangedSlot();
94 if(position != INT_MIN)
100 virtual void enterEvent(QEvent* event);
101 virtual void leaveEvent(QEvent* event);
102 virtual void mousePressEvent(QMouseEvent* event);
103 virtual void mouseReleaseEvent(QMouseEvent* event);
104 virtual void mouseMoveEvent(QMouseEvent* event);
105 virtual void keyPressEvent(QKeyEvent* event);
107 virtual void paintEvent(QPaintEvent* event);
108 virtual void resizeEvent(QResizeEvent* evt);
110 AlphaPoint selectPoint(QPoint pos);
111 AlphaPoint getCurrentAlphaPoint(QPoint pos);
112 void toggleSelectedPoint(QPoint pos);
113 void moveCurrentAlphaPoint(AlphaPoint newAlphaPoint);
114 QPoint alpha2screen(AlphaPoint pt)
const;
115 void updateTooltip(QPoint pos);
116 void updateTooltip(AlphaPoint point);
118 bool isEndpoint(
int intensity)
const;
119 void paintHistogram(QPainter& painter);
120 void paintOpacityGraph(QPainter& painter);
121 std::pair<int,int> findAllowedMoveRangeAroundAlphaPoint(
int selectedPointIntensity);
136 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