#include <image_pixel_view.h>
Inherits PixelView.
Inheritance diagram for ImagePixelView:
Public Member Functions | |
ImagePixelView () | |
virtual | ~ImagePixelView () |
view_pointer_type | clone () const |
virtual void | setDataset (dataset_pointer_type dataset) throw (NullPointerException, InvalidCastException) |
virtual double | getMinPixelValue () const |
virtual double | getMaxPixelValue () const |
virtual void | setIntensity (double window, double level) throw (NullPointerException) |
virtual double | getIntensityWindow () const |
virtual double | getIntensityLevel () const |
dataset_key_type | getDatasetKey () const |
dataset_position_type const & | getSize () const |
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) throw (NullPointerException) |
ImedgineImageViewer * | getRenderArea () |
SoSeparator * | getDynamicSceneSeparator () const |
SoMaterial * | getSliceDatasetMaterial () |
SoMaterial * | getSliceSecondDatasetMaterial () |
Protected Member Functions | |
ImagePixelView (ImagePixelView const &src) | |
virtual void | createSceneGraph () |
virtual void | drawCrosshair () |
Protected Attributes | |
image_pixel_dataset_pointer_type | image_dataset_ |
The dataset of this view. | |
std::auto_ptr< ImedgineImageViewer > | render_area_ |
The viewer that displays the slices. | |
SoOrthographicCamera * | dynamic_camera_ |
SoSeparator * | slice_separator_ |
SoMaterial * | slice_dataset_material_ |
SoTexture2 * | current_image_texture_ |
Slice texture that is extracted from the dataset. | |
SoCube * | slice_plane_ |
SoMaterial * | slice_second_dataset_material_ |
SoTexture2 * | current_second_image_texture_ |
SoCube * | second_slice_plane_ |
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 54 of file image_pixel_view.h.
|
Constructor Definition at line 24 of file image_pixel_view.cpp. References ImagePixelView::createSceneGraph(). Referenced by ImagePixelView::clone(). Here is the call graph for this function: ![]() |
|
Destructor Definition at line 40 of file image_pixel_view.cpp. |
|
Copy constructor Definition at line 32 of file image_pixel_view.cpp. References ImagePixelView::createSceneGraph(). Here is the call graph for this function: ![]() |
|
Virtual Copy Constructor Implements View. Definition at line 46 of file image_pixel_view.cpp. References ImagePixelView::ImagePixelView(). 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 67 of file image_pixel_view.cpp. References View::createSceneGraph(), ImagePixelView::crosshair_color_, ImagePixelView::crosshair_coords_, ImagePixelView::crosshair_lines_, ImagePixelView::crosshair_sep_, ImagePixelView::current_image_texture_, ImagePixelView::dynamic_camera_, View::dynamic_sep_, ImagePixelView::slice_dataset_material_, ImagePixelView::slice_plane_, and ImagePixelView::slice_separator_. Referenced by ImagePixelView::ImagePixelView(). 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. Definition at line 314 of file image_pixel_view.cpp. References ImagePixelView::crosshair_coords_, ImagePixelView::crosshair_lines_, ImagePixelView::image_dataset_, ImagePixelView::render_area_, X_DIMENSION, and Y_DIMENSION. |
|
Get the key of the image or an empty string if it is not set.
Implements PixelView. Definition at line 53 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. Referenced by ImedgineImageViewer::updateDatasetStatusInfo(). |
|
Returns the intensity level of the dataset displayed
Implements PixelView. Definition at line 270 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. |
|
Returns the intensity window of the dataset displayed
Implements PixelView. Definition at line 259 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. |
|
Return the maximum pixel value of the dataset.
Implements PixelView. Definition at line 233 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. Referenced by ImedgineImageViewer::ImedgineImageViewer(). |
|
Return the mimimum pixel value of the dataset.
Implements PixelView. Definition at line 222 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. Referenced by ImedgineImageViewer::ImedgineImageViewer(). |
|
Get the viewer that displays the slice images
Definition at line 177 of file image_pixel_view.h. References ImagePixelView::render_area_. Referenced by ImedgineImageViewer::convertCoordsFromScreenToTexture(). |
|
Returns a vector storing the number of pixels in the two dimensions of the image
Definition at line 164 of file image_pixel_view.cpp. References ImagePixelView::image_dataset_. Referenced by ImedgineImageViewer::convertCoordsFromScreenToTexture(), and ImedgineImageViewer::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. Definition at line 197 of file image_pixel_view.cpp. |
|
Set the dataset to display the slices from
Reimplemented from View. Definition at line 121 of file image_pixel_view.cpp. |
|
Update the 2D focus point of the image and fire the dataset changed event of type DATASET_ATTRIBUTE_FOCUS_POINT.
Definition at line 281 of file image_pixel_view.cpp. References X_DIMENSION, and Y_DIMENSION. |
|
Set the intensity within the dataset by specifying the pixel value level and window
Implements PixelView. Definition at line 244 of file image_pixel_view.cpp. |
|
Set the GUI parent element of this view
Reimplemented from View. Definition at line 102 of file image_pixel_view.cpp. References View::setParent(). Here is the call graph for this function: ![]() |
|
Re-render the current dataset Implements View. Definition at line 171 of file image_pixel_view.cpp. References ImagePixelView::render_area_. |
|
Crosshair separator that cointains all releavant scene graph nodes for the crosshair Definition at line 253 of file image_pixel_view.h. Referenced by ImagePixelView::createSceneGraph(). |
|
Orthorgraphic camera that views the scene and that is taken by the ImdegineViewer to navigate in the scene. Definition at line 224 of file image_pixel_view.h. Referenced by ImagePixelView::createSceneGraph(). |
|
Separator that cointains the plane and the texture of the slice Definition at line 230 of file image_pixel_view.h. Referenced by ImagePixelView::createSceneGraph(). |