#include <imedgine_slice_viewer.h>
Inherits ImedgineViewer.
Inheritance diagram for ImedgineSliceViewer:
Christian Koerner (christian.koerner@imedgine.org)
Alexander Lex (alexander.lex@imedgine.org)
Marc Streit (marc.streit@imedgine.org)
Martin Reininger (martin.reininger@imedgine.org)
Definition at line 71 of file imedgine_slice_viewer.h.
|
|
Destructor Definition at line 177 of file imedgine_slice_viewer.cpp. |
|
Implements the buildPopupMenu method of the examiner viewer. All entries are set here. In addition the dataset names are loaded too. Reimplemented from ImedgineViewer. Definition at line 517 of file imedgine_slice_viewer.cpp. References VolumePixelView::getDatasetKey(), Controller::getInstance(), Controller::getLoadedDatasetKeys(), VolumePixelView::getSecondDatasetKey(), ImedgineSliceViewer::popup_menu, and ImedgineSliceViewer::slice_view_. Here is the call graph for this function: ![]() |
|
Convert the screen coordinates (which are pixel coordinates) to texture coordinatens (of the current slice). The method uses ray picking for getting the texture coordinates which are hit by the ray.
Definition at line 467 of file imedgine_slice_viewer.cpp. References SlicePixelView::getRenderArea(), SlicePixelView::getSlicePlane(), SlicePixelView::getSliceResolution(), ImedgineSliceViewer::slice_view_, X_DIMENSION, and Y_DIMENSION. Here is the call graph for this function: ![]() |
|
Convert texture coordinates (of the current slice) to world space coordinates.
Definition at line 498 of file imedgine_slice_viewer.cpp. References SlicePixelView::getSlicePlane(), SlicePixelView::getSliceResolution(), ImedgineSliceViewer::slice_view_, X_DIMENSION, and Y_DIMENSION. Here is the call graph for this function: ![]() |
|
Converts screen coordinates (in pixel) to world space coordinates.
Definition at line 675 of file imedgine_slice_viewer.cpp. References X_DIMENSION, and Y_DIMENSION. |
|
Overload the menu selection method of the examiner viewer. The method is called by the menu selection callback method. If a dataset is selected in the hybrid view submenu the proper actions are executed (add second dataset, remove second dataset, change second dataset).
Reimplemented from ImedgineViewer. Definition at line 579 of file imedgine_slice_viewer.cpp. References Controller::getInstance(), Controller::getLoadedDatasetKeys(), VolumePixelView::getSecondDatasetKey(), ImedgineSliceViewer::is_hybrid_view_, ImedgineSliceViewer::popup_menu, SlicePixelView::setSecondDataset(), ImedgineSliceViewer::slice_view_, ImedgineSliceViewer::transparency_slider_switch_, and SlicePixelView::unsetSecondDataset(). Here is the call graph for this function: ![]() |
|
Overload the event handling of the examiner viewer. All the event handling for the 2D slice views happens here.
Reimplemented from ImedgineViewer. Definition at line 186 of file imedgine_slice_viewer.cpp. References ImedgineSliceViewer::last_button_click_event_, ImedgineSliceViewer::last_position_, ImedgineViewer::processSoEvent(), ImedgineSliceViewer::view_mode_, and Y_DIMENSION. Here is the call graph for this function: ![]() |
|
Hide the texture of the second dataset. Definition at line 667 of file imedgine_slice_viewer.cpp. References ImedgineSliceViewer::transparency_slider_switch_. |
|
Update the status information of the dataset that is currently represented in the render area. This status information consists of the dataset keys (names) of the loaded dataset. In case of a hybrid view (this means two dataset are rendered at the same time) both dataset keys are shown. Definition at line 650 of file imedgine_slice_viewer.cpp. References VolumePixelView::getDatasetKey(), VolumePixelView::getSecondDatasetKey(), and ImedgineSliceViewer::slice_view_. Here is the call graph for this function: ![]() |
|
Updates the slice slider position if the current slice changed.. Definition at line 695 of file imedgine_slice_viewer.cpp. References SlicePixelView::getNumSlices(), ImedgineSliceViewer::ignore_next_slice_slider_update_, ImedgineSliceViewer::slice_slider_dragger_, and ImedgineSliceViewer::slice_view_. Here is the call graph for this function: ![]() |
|
Update the slice status information that is represented as text in the render area. The slice status info is of the format "current slice index / number of slices".
Definition at line 637 of file imedgine_slice_viewer.cpp. References ImedgineSliceViewer::slice_status_info_text_. |
|
The text that contains the dataset status information (i.e. the names). In case of a second dataset loaded two dataset names are held. Definition at line 242 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
Transformation of the dataset status information to the desired position. At the moment the upper right corner of the render area. Definition at line 235 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
Time stamp of the last mouse click. The time is important for recognizing double clicks. Definition at line 314 of file imedgine_slice_viewer.h. |
|
Flag prevents field sensor to update the slice position in the view and therefore avoids an endless update loop. Maybe this is not optimal -> find a better solution! Definition at line 342 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::getIgnoreNextSliceSliderUpdate(), ImedgineSliceViewer::setIgnoreNextSliceSliderUpdate(), and ImedgineSliceViewer::updateSliceSliderPosition(). |
|
Flag that indicates if a second dataset is loaded Definition at line 326 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::menuSelection(). |
|
Event of the last button click. This is used for the user interaction handling. Definition at line 295 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::processSoEvent(). |
|
Pixel coordinates of the last event that is caught. Definition at line 301 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::processSoEvent(). |
|
The pixel coordinates of the last left mouse button click. Definition at line 320 of file imedgine_slice_viewer.h. |
|
The scaling factor used to compensate resolution differences between different datasets. Using this factor e.g. with intensity/level changes will result in the same amount of change independent of the pixel stride of the dataset Definition at line 334 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
The cube on that the popup button texture is rendered. Definition at line 209 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
Seperator that contains all popup relevant scene graph nodes. Definition at line 203 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
A pointer to the popup menu Definition at line 307 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::buildPopupMenu(), and ImedgineSliceViewer::menuSelection(). |
|
A pointer to the ROI. Definition at line 288 of file imedgine_slice_viewer.h. |
|
Separator node that cointains the region of interests. Definition at line 282 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
The dragger of the slice slider. Definition at line 254 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::getSliceSliderDragger(), ImedgineSliceViewer::ImedgineSliceViewer(), and ImedgineSliceViewer::updateSliceSliderPosition(). |
|
Separator node that cointains the slider for changing the slice. Definition at line 248 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
The text that contains the slice number status information. Definition at line 228 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(), and ImedgineSliceViewer::updateSliceStatusInfo(). |
|
Transformation of the slice status information to the desired position. At the moment the lower left corner of the render area. Definition at line 222 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
A pointer to the slice view that is rendered in the viewer (render area). Definition at line 191 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::buildPopupMenu(), ImedgineSliceViewer::convertCoordsFromScreenToTexture(), ImedgineSliceViewer::convertCoordsFromTextureToWorld(), ImedgineSliceViewer::getSlicePixelView(), ImedgineSliceViewer::ImedgineSliceViewer(), ImedgineSliceViewer::menuSelection(), ImedgineSliceViewer::updateDatasetStatusInfo(), and ImedgineSliceViewer::updateSliceSliderPosition(). |
|
Seperator that contains all status information nodes. Definition at line 215 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
The dragger of the transparency slider. Definition at line 276 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::getTransparencySliderDragger(), and ImedgineSliceViewer::ImedgineSliceViewer(). |
|
Separator node that cointains the slider for changing the transparency of the two loaded datasets. The transparency value of the first dataset is always the complement of the transparency value of the second dataset (e.g. 1st dataset 0.2, 2nd dataset 0.8) Definition at line 270 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(). |
|
A switch node that makes the hiding of the second dataset texture possible. Definition at line 261 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::ImedgineSliceViewer(), ImedgineSliceViewer::menuSelection(), and ImedgineSliceViewer::unsetHybridView(). |
|
Holds the current view mode that controls the user interaction. Definition at line 197 of file imedgine_slice_viewer.h. Referenced by ImedgineSliceViewer::processSoEvent(). |