25 #ifndef ORTHOVIEWWIDGET_HH 26 #define ORTHOVIEWWIDGET_HH 34 #include <blitz/array.h> 45 class QXmlStreamWriter;
58 Qt::WindowFlags f = 0);
87 blitz::TinyVector<float,3>
um2Px(
114 double um2Px(
double positionUm,
int dimension);
127 blitz::TinyVector<float,3>
px2Um(
128 blitz::TinyVector<float,3>
const &positionPx);
153 double px2Um(
double positionPx,
int dimension);
155 void paint(QPainter &painter);
157 QXmlStreamWriter &svgStream,
158 blitz::TinyVector<double,3>
const &shapePx,
double marginPx,
159 blitz::TinyVector<double,3>
const &lowerBoundUm,
160 blitz::TinyVector<double,3>
const &upperBoundUm,
161 double scaleBarLengthUm, std::string
const &font,
double fontSizePt,
182 void updateZoomFromComboBox();
183 void updateZoomFromComboBox(QString
const &str);
184 void setZoomInComboBox(
double zoom);
185 void updatePositionUmFromControl();
186 void setPositionUmControlRangeFromModel();
187 void setPositionUmInControl(blitz::TinyVector<double,3>
const &positionUm);
188 void synchronizeSplitters(
int pos,
int);
189 void updateCacheFontSize();
193 blitz::TinyVector<double,3> _cachedPosition;
197 QSplitter* p_vSplitter;
198 QSplitter* p_uhSplitter;
199 QSplitter* p_lhSplitter;
200 QScrollArea* p_xyScrollArea;
202 QScrollArea* p_xzScrollArea;
204 QScrollArea* p_zyScrollArea;
207 QAction *p_resetZoomAction;
208 QAction *p_zoomInAction;
209 QAction *p_zoomOutAction;
210 QComboBox *p_zoomControl;