33 #ifndef CXTRANSFERFUNCTIONCOLORWIDGET_H_
34 #define CXTRANSFERFUNCTIONCOLORWIDGET_H_
36 #include "cxGuiExport.h"
70 void activeImageTransferFunctionsChangedSlot();
73 void removeColorSlot();
75 void setColorSlotDelayed();
82 ColorPoint() : intensity(-1000000), value(255, 255, 255) {}
86 value = QColor(255, 255, 255);
90 if(intensity != -1000000)
109 std::pair<int,int> findAllowedMoveRangeAroundColorPoint(
int selectedPointIntensity);
110 void paintColorPointsAndGenerateCache(QPainter& painter);
111 void paintColorBar(QPainter& painter);
112 void updateTooltip(QPoint pos);
119 bool isEndpoint(
int intensity)
const;
121 void contextMenuEvent(QContextMenuEvent *event);
124 QPoint getPlotPoint(
int iScalar);
128 void moveSelectedPointTo(
ColorPoint newPoint);
130 virtual void enterEvent(QEvent* event);
131 virtual void leaveEvent(QEvent* event);
132 virtual void mousePressEvent(QMouseEvent* event);
133 virtual void mouseReleaseEvent(QMouseEvent* event);
134 virtual void mouseMoveEvent(QMouseEvent* event);
135 virtual void keyPressEvent(QKeyEvent* event);
136 virtual void resizeEvent(QResizeEvent* evt);
137 virtual void paintEvent(QPaintEvent* event);
139 virtual QSize
sizeHint ()
const {
return QSize(100, 30);};
141 int screenX2imageIntensity(
int screenX);
142 int imageIntensity2screenX(
int intensity);
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveImageProxy > ActiveImageProxyPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
boost::shared_ptr< class ImageTFData > ImageTFDataPtr