#include <SlicerWidget.h>
Definition at line 34 of file SlicerWidget.h.
Public Types | |
enum | AXIS_ID { X_AXIS, Y_AXIS, Z_AXIS } |
Public Slots | |
void | setVolume (VolumeSP vol) |
Set Volume. | |
void | setAxis (int axisId) |
Set Axis. | |
void | setSlice (int slicePos) |
Set Slice. | |
void | setFieldOn (int fieldNum) |
Set Field .... | |
void | setFieldOff (int fieldNum) |
void | setPickPos (int xp, int yp) |
Set Pick Pos. | |
void | setVolPos (int xp, int yp, int zp) |
Set Volume Pos. | |
void | setFilter (int f) |
Set Filter. | |
Signals | |
void | volPickPosChanged (int xp, int yp, int zp) |
Public Member Functions | |
SlicerWidget (QWidget *parent=0, char *name=0, WFlags f=0) | |
construction | |
virtual | ~SlicerWidget () |
destruction | |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *re) |
Slots. | |
virtual void | conf () |
configure | |
Protected Attributes | |
QCanvas * | _sliceCanvas |
SliceView * | _sliceView |
QSlider * | _slider |
QLCDNumber * | _number |
QComboBox * | _axisCombo |
NrroCanvasImg * | _sliceImage |
int | _curAxis |
int | _curSlice |
VolumeSP | _vol |
NrroKernel | _filter |
|
Definition at line 40 of file SlicerWidget.h. |
|
construction slice image created on the canvas!!! Definition at line 37 of file SlicerWidget.cpp. References _axisCombo, _sliceCanvas, _sliceImage, _sliceView, _slider, BoxKernel, conf(), and name. |
|
destruction
Definition at line 72 of file SlicerWidget.cpp. References _axisCombo, _sliceCanvas, _sliceImage, _sliceView, and _slider. |
|
configure top widget connect the slice view to us bottom widget slice slider slice number axis combo box Definition at line 367 of file SlicerWidget.cpp. References _axisCombo, _curAxis, _curSlice, _sliceView, _slider, gutz::connect(), display(), num, setAxis(), setPickPos(), setSlice(), X_AXIS, Y_AXIS, and Z_AXIS. Referenced by SlicerWidget(). |
|
Slots. update the image Definition at line 87 of file SlicerWidget.cpp. References _curSlice, _sliceCanvas, and setSlice(). |
|
Set Axis. check if we have any setup some error checking handle various volume configs, 3D or multi-channel 4D set the max value of the slider to the correct axis size update the slice to reflect new axis figure out what to do with the new axis first update the combo box Definition at line 117 of file SlicerWidget.cpp. References _axisCombo, _curAxis, _curSlice, _slider, _vol, gutz::SmartPtr< Volume >::isNull(), n, setSlice(), X_AXIS, Y_AXIS, and Z_AXIS. Referenced by conf(), SlicerMulti::confSliceView(), and setVolume(). |
|
Definition at line 243 of file SlicerWidget.cpp. |
|
Set Field ....
Definition at line 238 of file SlicerWidget.cpp. |
|
Set Filter.
Definition at line 336 of file SlicerWidget.cpp. References _curSlice, _filter, SlicerBase::BICUBE, SlicerBase::BILIN, BoxKernel, SlicerBase::BSPLINE, BSplineKernel, CatmulRomKernel, SlicerBase::NEAREST, setSlice(), and TentKernel. |
|
Set Pick Pos. volume voxel positions get the nrro handle multi-channel volumes correctly view space to world space Definition at line 251 of file SlicerWidget.cpp. References _curAxis, _curSlice, _sliceView, _vol, SliceView::getAspect(), SliceView::getHeight(), SliceView::getPos(), SliceView::getWidth(), SliceView::getZoom(), gutz::SmartPtr< Volume >::isNull(), n, gutz::vec2f, gutz::vec2f_one, volPickPosChanged(), X_AXIS, Y_AXIS, and Z_AXIS. Referenced by conf(). |
|
Set Slice. no fields respect scalar and multi-channel volumes slice the data size of image we need, exactly the size of the viewport relative dimensions, min & max (0-1) base these depend on the aspect ratio and position of the viewport relative to the image Definition at line 185 of file SlicerWidget.cpp. References _curAxis, _curSlice, _filter, _sliceCanvas, _sliceImage, _sliceView, _slider, _vol, gutz::clamp(), SliceView::getAspect(), SliceView::getHeight(), SliceView::getPos(), SliceView::getWidth(), SliceView::getZoom(), Nrro::IMAGE, gutz::SmartPtr< Nrro >::isNull(), gutz::SmartPtr< Volume >::isNull(), reshapeNrroImageA(), NrroCanvasImg::setNrro(), gutz::vec2f, and gutz::vec2i. Referenced by conf(), resizeEvent(), setAxis(), setFilter(), setVolPos(), and setVolume(). |
|
Set Volume Pos.
Definition at line 317 of file SlicerWidget.cpp. References _curAxis, setSlice(), X_AXIS, Y_AXIS, and Z_AXIS. |
|
Set Volume.
Definition at line 101 of file SlicerWidget.cpp. References _curAxis, _curSlice, _vol, gutz::SmartPtr< Volume >::isNull(), setAxis(), and setSlice(). |
|
Referenced by setPickPos(). |
|
Definition at line 70 of file SlicerWidget.h. Referenced by conf(), setAxis(), SlicerWidget(), and ~SlicerWidget(). |
|
Definition at line 73 of file SlicerWidget.h. Referenced by conf(), setAxis(), setPickPos(), setSlice(), setVolPos(), and setVolume(). |
|
Definition at line 74 of file SlicerWidget.h. Referenced by conf(), resizeEvent(), setAxis(), setFilter(), setPickPos(), setSlice(), and setVolume(). |
|
Definition at line 78 of file SlicerWidget.h. Referenced by setFilter(), and setSlice(). |
|
Definition at line 69 of file SlicerWidget.h. |
|
Definition at line 66 of file SlicerWidget.h. Referenced by resizeEvent(), setSlice(), SlicerWidget(), and ~SlicerWidget(). |
|
Definition at line 71 of file SlicerWidget.h. Referenced by setSlice(), SlicerWidget(), and ~SlicerWidget(). |
|
Definition at line 67 of file SlicerWidget.h. Referenced by conf(), setPickPos(), setSlice(), SlicerWidget(), and ~SlicerWidget(). |
|
Definition at line 68 of file SlicerWidget.h. Referenced by conf(), setAxis(), setSlice(), SlicerWidget(), and ~SlicerWidget(). |
|
Definition at line 76 of file SlicerWidget.h. Referenced by setAxis(), setPickPos(), setSlice(), and setVolume(). |