33 #ifndef CXTRANSFERFUNCTIONCOLORWIDGET_H_ 34 #define CXTRANSFERFUNCTIONCOLORWIDGET_H_ 36 #include "cxGuiExport.h" 69 void activeImageTransferFunctionsChangedSlot();
72 void removeColorSlot();
74 void setColorSlotDelayed();
81 ColorPoint() : intensity(-1000000), value(255, 255, 255) {}
85 value = QColor(255, 255, 255);
89 if(intensity != -1000000)
108 std::pair<int,int> findAllowedMoveRangeAroundColorPoint(
int selectedPointIntensity);
109 void paintColorPointsAndGenerateCache(QPainter& painter);
110 void paintColorBar(QPainter& painter);
111 void updateTooltip(QPoint pos);
118 bool isEndpoint(
int intensity)
const;
120 void contextMenuEvent(QContextMenuEvent *event);
123 QPoint getPlotPoint(
int iScalar);
127 void moveSelectedPointTo(
ColorPoint newPoint);
129 virtual void enterEvent(QEvent* event);
130 virtual void leaveEvent(QEvent* event);
131 virtual void mousePressEvent(QMouseEvent* event);
132 virtual void mouseReleaseEvent(QMouseEvent* event);
133 virtual void mouseMoveEvent(QMouseEvent* event);
134 virtual void keyPressEvent(QKeyEvent* event);
135 virtual void resizeEvent(QResizeEvent* evt);
136 virtual void paintEvent(QPaintEvent* event);
138 virtual QSize
sizeHint ()
const {
return QSize(100, 30);};
140 int screenX2imageIntensity(
int screenX);
141 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
Namespace for all CustusX production code.