#include <slice_pixel_view.h>
Inherits VolumePixelView.
Inherited by XYSliceView, XZSliceView, and YZSliceView.
Inheritance diagram for SlicePixelView:
Public Member Functions | |
SlicePixelView (view_type type) | |
virtual | ~SlicePixelView () |
virtual void | setDataset (dataset_pointer_type dataset) throw (NullPointerException, InvalidCastException) |
void | setSecondDataset (dataset_pointer_type second_dataset) throw (NullPointerException, InvalidCastException) |
void | unsetSecondDataset () |
virtual void | onDatasetDeletion (dataset_key_type dataset_key) |
virtual void | setParent (QWidget *view_parent) throw (NullPointerException) |
void | updateView () throw (NullPointerException) |
virtual void | onDataChangedEvent (dataset_attribute_type changed_attribute) throw (NullPointerException) |
virtual void | setFocusPoint2D (index_type dim_1, index_type dim_2)=0 |
virtual void | setSliceIndex (index_type slice_index)=0 |
virtual index_type | getSliceIndex () const =0 |
virtual SbVec2s | getSliceResolution () const =0 |
virtual index_type | getNumSlices () const =0 |
virtual SbVec2s | getSecondSliceResolution () const =0 |
ImedgineSliceViewer * | getRenderArea () |
SoSeparator * | getDynamicSceneSeparator () const |
SoMaterial * | getSliceDatasetMaterial () |
SoMaterial * | getSliceSecondDatasetMaterial () |
SoCube * | getSlicePlane () |
Protected Member Functions | |
SlicePixelView (SlicePixelView const &src) | |
virtual void | createSceneGraph () |
virtual void | drawCrosshair ()=0 |
Protected Attributes | |
std::auto_ptr< ImedgineSliceViewer > | render_area_ |
The viewer that displays the slices. | |
SoOrthographicCamera * | dynamic_camera_ |
SoSeparator * | slice_separator_ |
SoCube * | slice_plane_ |
Plane (cube depth = 0) on which the texture is rendered. | |
SoCube * | second_slice_plane_ |
Plane on which the second datasets' texture is rendered. | |
SoTexture2 * | current_image_texture_ |
Slice texture that is extracted from the dataset. | |
SoTexture2 * | current_second_image_texture_ |
Slice texture that is extracted from the second dataset. | |
SoMaterial * | slice_dataset_material_ |
SoMaterial * | slice_second_dataset_material_ |
SoSeparator * | crosshair_sep_ |
SoBaseColor * | crosshair_color_ |
Color of the crosshair. | |
SoCoordinate3 * | crosshair_coords_ |
Point coordinates of the crosshair. | |
SoLineSet * | crosshair_lines_ |
Lines to draw the crosshair. |
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 55 of file slice_pixel_view.h.
|
Constructor Definition at line 23 of file slice_pixel_view.cpp. References SlicePixelView::createSceneGraph(). Here is the call graph for this function: |
|
Destructor Definition at line 39 of file slice_pixel_view.cpp. |
|
Copy constructor Definition at line 31 of file slice_pixel_view.cpp. References SlicePixelView::createSceneGraph(). Here is the call graph for this function: |
|
All scene graph nodes are created here. The method will be called in the constructor and the copy constructor (for view copies). Reimplemented from View. Definition at line 45 of file slice_pixel_view.cpp. References View::createSceneGraph(), SlicePixelView::crosshair_color_, SlicePixelView::crosshair_coords_, SlicePixelView::crosshair_lines_, SlicePixelView::crosshair_sep_, SlicePixelView::current_image_texture_, SlicePixelView::dynamic_camera_, View::dynamic_sep_, SlicePixelView::slice_dataset_material_, SlicePixelView::slice_plane_, and SlicePixelView::slice_separator_. Referenced by SlicePixelView::SlicePixelView(). Here is the call graph for this function: |
|
Draws the crosshair position at current focus position. This method is to be implemented differently by the concrete slice view implemenations in deriving classes. Implemented in XYSliceView, XZSliceView, and YZSliceView. |
|
Return the number of slices. The result depends of the view type.
Implemented in XYSliceView, XZSliceView, and YZSliceView. Referenced by ImedgineSliceViewer::updateSliceSliderPosition(). |
|
Get the viewer that displays the slice images
Definition at line 183 of file slice_pixel_view.h. References SlicePixelView::render_area_. Referenced by ImedgineSliceViewer::convertCoordsFromScreenToTexture(). |
|
Return the 2D resolution of the second dataset (which is used for the hybrid view).
Implemented in XYSliceView, XZSliceView, and YZSliceView. |
|
Return the slice index of the dataset.
Implemented in XYSliceView, XZSliceView, and YZSliceView. |
|
Return the 2D resolution of the dataset.
Implemented in XYSliceView, XZSliceView, and YZSliceView. Referenced by ImedgineSliceViewer::convertCoordsFromScreenToTexture(), and ImedgineSliceViewer::convertCoordsFromTextureToWorld(). |
|
React to a change of dataset. In case of a different focus point redraw the crosshair and load a new slice.
Reimplemented from View. Reimplemented in XYSliceView, XZSliceView, and YZSliceView. Definition at line 211 of file slice_pixel_view.cpp. |
|
React to an upcoming deletion an dataset. If the dataset to delete is the secondary dataset of this view (the view is hybrid) than reset the dataset and update the slice texture not to show the slices of the second dataset anymore
Reimplemented from View. Definition at line 179 of file slice_pixel_view.cpp. References VolumePixelView::second_volume_dataset_. |
|
Set the dataset to display the slices from
Reimplemented from VolumePixelView. Definition at line 99 of file slice_pixel_view.cpp. References VolumePixelView::setDataset(), X_DIMENSION, and Y_DIMENSION. Here is the call graph for this function: |
|
Update the 2D focus point of that slice in the dataset and fire the dataset changed event of type DATASET_ATTRIBUTE_FOCUS_POINT.
Implemented in XYSliceView, XZSliceView, and YZSliceView. |
|
Set the GUI parent element of this view
Reimplemented from View. Definition at line 80 of file slice_pixel_view.cpp. References View::setParent(). Here is the call graph for this function: |
|
Set the second dataset that the hybrid view uses
Reimplemented from VolumePixelView. Definition at line 124 of file slice_pixel_view.cpp. References VolumePixelView::setSecondDataset(), X_DIMENSION, and Y_DIMENSION. Referenced by ImedgineSliceViewer::menuSelection(). Here is the call graph for this function: |
|
Set the slice index in the dataset and fire the dataset changed event of type DATASET_ATTRIBUTE_FOCUS_POINT.
Implemented in XYSliceView, XZSliceView, and YZSliceView. |
|
Unset the second dataset that the hybrid view uses Reimplemented from VolumePixelView. Definition at line 165 of file slice_pixel_view.cpp. References SlicePixelView::current_second_image_texture_, SlicePixelView::second_slice_plane_, SlicePixelView::slice_dataset_material_, SlicePixelView::slice_second_dataset_material_, SlicePixelView::slice_separator_, and VolumePixelView::unsetSecondDataset(). Referenced by ImedgineSliceViewer::menuSelection(). Here is the call graph for this function: |
|
Re-render the current dataset Implements View. Reimplemented in XYSliceView, XZSliceView, and YZSliceView. Definition at line 196 of file slice_pixel_view.cpp. References SlicePixelView::render_area_. Referenced by YZSliceView::updateView(), XZSliceView::updateView(), and XYSliceView::updateView(). |
|
Crosshair separator that cointains all releavant scene graph nodes for the crosshair Definition at line 255 of file slice_pixel_view.h. Referenced by SlicePixelView::createSceneGraph(). |
|
Orthorgraphic camera that views the scene and that is taken by the ImdegineViewer to navigate in the scene. Definition at line 225 of file slice_pixel_view.h. Referenced by SlicePixelView::createSceneGraph(). |
|
Separator that cointains the plane and the texture of the slice Definition at line 230 of file slice_pixel_view.h. Referenced by SlicePixelView::createSceneGraph(), and SlicePixelView::unsetSecondDataset(). |