21 #ifndef __ctkQImageView_h 22 #define __ctkQImageView_h 30 #include "ctkWidgetsExport.h" 32 class ctkQImageViewPrivate;
53 double xSpacing(
void );
54 double ySpacing(
void );
55 double sliceSpacing(
void );
56 double sliceThickness(
void );
58 double xPosition(
void );
59 double yPosition(
void );
60 double slicePosition(
void );
61 double positionValue(
void );
63 double xCenter(
void );
64 double yCenter(
void );
66 int sliceNumber(
void )
const;
67 int numberOfSlices(
void )
const;
69 double intensityWindow(
void )
const;
70 double intensityLevel(
void )
const;
72 bool invertImage(
void )
const;
74 bool flipXAxis(
void )
const;
75 bool flipYAxis(
void )
const;
76 bool transposeXY(
void )
const;
82 void addImage(
const QImage & image );
83 void clearImages(
void );
85 void setSliceNumber(
int slicenum );
87 void setIntensityWindowLevel(
double iwWindow,
double iwLevel );
89 void setInvertImage(
bool invert );
90 void setFlipXAxis(
bool flip );
91 void setFlipYAxis(
bool flip );
92 void setTransposeXY(
bool transpose );
94 virtual void keyPressEvent( QKeyEvent * event );
95 virtual void mousePressEvent( QMouseEvent * event );
96 virtual void mouseReleaseEvent( QMouseEvent * event );
97 virtual void mouseMoveEvent( QMouseEvent * event );
98 virtual void enterEvent( QEvent * event );
99 virtual void leaveEvent( QEvent * event );
101 void setCenter(
double x,
double y );
102 void setPosition(
double x,
double y );
104 void setZoom(
double factor );
108 virtual void update(
bool zoomChanged=
false,
bool sizeChanged=
false );
112 void xSpacingChanged(
double xSpacing );
113 void ySpacingChanged(
double ySpacing );
114 void sliceThicknessChanged(
double sliceThickness );
116 void xPositionChanged(
double xPosition );
117 void yPositionChanged(
double yPosition );
118 void slicePositionChanged(
double slicePosition );
119 void positionValueChanged(
double positionValue );
121 void sliceNumberChanged(
int sliceNum );
123 void zoomChanged(
double factor );
124 void xCenterChanged(
double x );
125 void yCenterChanged(
double y );
127 void numberOfSlicesChanged(
int numberOfSlices );
129 void invertImageChanged(
bool invert );
131 void flipXAxisChanged(
bool flipXAxis );
132 void flipYAxisChanged(
bool flipYAxis );
133 void transposeXYChanged(
bool transposeXY );
135 void intensityWindowChanged(
double intensityWindow );
136 void intensityLevelChanged(
double intensityLevel );
140 virtual void resizeEvent( QResizeEvent* event );
148 QScopedPointer< ctkQImageViewPrivate > d_ptr;
QWidget Superclass
Superclass typedef.