DGtalTools
1.5.beta
|
#include <visualisation/sliceViewer.h>
Inherits QMainWindow.
Data Structures | |
struct | ColorMapFunctor |
Public Types | |
enum | ColorMapType { Id , GradientMapHot , GradientMapCool , HueshadeCM } |
typedef DGtal::ImageContainerBySTLVector< DGtal::Z3i::Domain, unsigned char > | Image3D |
typedef DGtal::ImageContainerBySTLVector< DGtal::Z2i::Domain, unsigned char > | Image2D |
typedef DGtal::ConstImageAdapter< Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space >, Image3D::Value, DGtal::functors::Identity > | SliceImageAdapter |
typedef DGtal::ConstImageAdapter< Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space >, Image3D::Value, ColorMapFunctor > | SliceImageAdapterFct |
Public Slots | |
void | updateSliceImageX () |
void | updateSliceImageY () |
void | updateSliceImageZ () |
void | updateZoomImageX () |
void | updateZoomImageY () |
void | updateZoomImageZ () |
void | setScale1_1_ImageX () |
void | setScale1_1_ImageY () |
void | setScale1_1_ImageZ () |
void | changeNormalColorMap () |
void | changeCoolColorMap () |
void | changeHueColorMap () |
void | changeHotColorMap () |
Public Member Functions | |
MainWindow (DGtal::Viewer3D<> *viewer, DGtal::ImageContainerBySTLVector< DGtal::Z3i::Domain, unsigned char > *myImage3D, const ColorMapFunctor &aFunctor, QWidget *parent=0, Qt::WindowFlags flags=0) | |
~MainWindow () | |
void | setImageProjX (const QPixmap &aPixMap) |
void | setImageProjY (const QPixmap &aPixMap) |
void | setImageProjZ (const QPixmap &aPixMap) |
void | updateSliceImageX (int sliceNumber, bool init) |
void | updateSliceImageY (int sliceNumber, bool init) |
void | updateSliceImageZ (int sliceNumber, bool init) |
void | updateZoomImageX (int sliceNumber, double gridSize) |
void | updateZoomImageY (int sliceNumber, double gridSize) |
void | updateZoomImageZ (int sliceNumber, double gridSize) |
void | updateAllDisplayedImages () |
Private Attributes | |
Ui::MainWindow * | ui |
DGtal::Viewer3D * | myViewer |
Image3D * | myImage3D |
ColorMapFunctor | myColorMap |
Definition at line 48 of file sliceViewer.h.
typedef DGtal::ImageContainerBySTLVector< DGtal::Z2i::Domain, unsigned char > MainWindow::Image2D |
Definition at line 96 of file sliceViewer.h.
typedef DGtal::ImageContainerBySTLVector< DGtal::Z3i::Domain, unsigned char > MainWindow::Image3D |
Definition at line 95 of file sliceViewer.h.
typedef DGtal::ConstImageAdapter<Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space>, Image3D::Value, DGtal::functors::Identity > MainWindow::SliceImageAdapter |
Definition at line 98 of file sliceViewer.h.
typedef DGtal::ConstImageAdapter<Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space>, Image3D::Value, ColorMapFunctor > MainWindow::SliceImageAdapterFct |
Definition at line 100 of file sliceViewer.h.
|
explicit |
Definition at line 133 of file sliceViewer.cpp.
References changeCoolColorMap(), changeHotColorMap(), changeHueColorMap(), changeNormalColorMap(), DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), setScale1_1_ImageX(), setScale1_1_ImageY(), setScale1_1_ImageZ(), ui, updateSliceImageX(), updateSliceImageY(), updateSliceImageZ(), updateZoomImageX(), updateZoomImageY(), and updateZoomImageZ().
MainWindow::~MainWindow | ( | ) |
|
slot |
Definition at line 205 of file sliceViewer.cpp.
References GradientMapCool, myColorMap, and updateAllDisplayedImages().
Referenced by MainWindow().
|
slot |
Definition at line 213 of file sliceViewer.cpp.
References GradientMapHot, myColorMap, and updateAllDisplayedImages().
Referenced by MainWindow().
|
slot |
Definition at line 209 of file sliceViewer.cpp.
References HueshadeCM, myColorMap, and updateAllDisplayedImages().
Referenced by MainWindow().
|
slot |
Definition at line 200 of file sliceViewer.cpp.
References Id, myColorMap, and updateAllDisplayedImages().
Referenced by MainWindow().
void MainWindow::setImageProjX | ( | const QPixmap & | aPixMap | ) |
Definition at line 219 of file sliceViewer.cpp.
References ui.
Referenced by updateSliceImageX(), and updateZoomImageX().
void MainWindow::setImageProjY | ( | const QPixmap & | aPixMap | ) |
Definition at line 222 of file sliceViewer.cpp.
References ui.
Referenced by updateSliceImageY(), and updateZoomImageY().
void MainWindow::setImageProjZ | ( | const QPixmap & | aPixMap | ) |
Definition at line 225 of file sliceViewer.cpp.
References ui.
Referenced by updateSliceImageZ(), and updateZoomImageZ().
|
slot |
Definition at line 243 of file sliceViewer.cpp.
References ui, and updateZoomImageX().
Referenced by MainWindow().
|
slot |
Definition at line 248 of file sliceViewer.cpp.
References ui, and updateZoomImageY().
Referenced by MainWindow().
|
slot |
Definition at line 253 of file sliceViewer.cpp.
References ui, and updateZoomImageZ().
Referenced by MainWindow().
void MainWindow::updateAllDisplayedImages | ( | ) |
Definition at line 195 of file sliceViewer.cpp.
References updateSliceImageX(), updateSliceImageY(), and updateSliceImageZ().
Referenced by changeCoolColorMap(), changeHotColorMap(), changeHueColorMap(), and changeNormalColorMap().
|
slot |
Definition at line 230 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and updateAllDisplayedImages().
void MainWindow::updateSliceImageX | ( | int | sliceNumber, |
bool | init | ||
) |
Definition at line 324 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, setImageProjX(), and ui.
|
slot |
Definition at line 234 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and updateAllDisplayedImages().
void MainWindow::updateSliceImageY | ( | int | sliceNumber, |
bool | init | ||
) |
Definition at line 354 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, setImageProjY(), and ui.
|
slot |
Definition at line 238 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and updateAllDisplayedImages().
void MainWindow::updateSliceImageZ | ( | int | sliceNumber, |
bool | init | ||
) |
Definition at line 383 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, setImageProjZ(), and ui.
|
slot |
Definition at line 260 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and setScale1_1_ImageX().
void MainWindow::updateZoomImageX | ( | int | sliceNumber, |
double | gridSize | ||
) |
Definition at line 288 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, and setImageProjX().
|
slot |
Definition at line 268 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and setScale1_1_ImageY().
void MainWindow::updateZoomImageY | ( | int | sliceNumber, |
double | gridSize | ||
) |
Definition at line 299 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, and setImageProjY().
|
slot |
Definition at line 277 of file sliceViewer.cpp.
References ui.
Referenced by MainWindow(), and setScale1_1_ImageZ().
void MainWindow::updateZoomImageZ | ( | int | sliceNumber, |
double | gridSize | ||
) |
Definition at line 312 of file sliceViewer.cpp.
References DGtal::ImageContainerBySTLVector< TDomain, TValue >::domain(), DGtal::functors::Projector< S >::initAddOneDim(), DGtal::functors::Projector< S >::initRemoveOneDim(), myColorMap, myImage3D, and setImageProjZ().
|
private |
Definition at line 145 of file sliceViewer.h.
Referenced by changeCoolColorMap(), changeHotColorMap(), changeHueColorMap(), changeNormalColorMap(), updateSliceImageX(), updateSliceImageY(), updateSliceImageZ(), updateZoomImageX(), updateZoomImageY(), and updateZoomImageZ().
|
private |
Definition at line 144 of file sliceViewer.h.
Referenced by updateSliceImageX(), updateSliceImageY(), updateSliceImageZ(), updateZoomImageX(), updateZoomImageY(), and updateZoomImageZ().
|
private |
Definition at line 143 of file sliceViewer.h.
|
private |
Definition at line 142 of file sliceViewer.h.
Referenced by MainWindow(), setImageProjX(), setImageProjY(), setImageProjZ(), setScale1_1_ImageX(), setScale1_1_ImageY(), setScale1_1_ImageZ(), updateSliceImageX(), updateSliceImageY(), updateSliceImageZ(), updateZoomImageX(), updateZoomImageY(), updateZoomImageZ(), and ~MainWindow().