SpatialPixelView Class Reference
[Views]

The view that displays renderings of 3 dimensional pixel datasets. More...

#include <spatial_pixel_view.h>

Inherits VolumePixelView.

Inheritance diagram for SpatialPixelView:

Inheritance graph
[legend]
Collaboration diagram for SpatialPixelView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SpatialPixelView ()
virtual ~SpatialPixelView ()
virtual view_pointer_type clone () const
virtual void setDataset (dataset_pointer_type dataset) throw (NullPointerException, InvalidCastException)
virtual void setParent (QWidget *view_parent) throw (NullPointerException)
virtual void onDataChangedEvent (dataset_attribute_type changed_attribute)
void updateView () throw (NullPointerException)
ImedgineSpatialViewergetRenderArea ()

Protected Member Functions

 SpatialPixelView (SpatialPixelView const &src)
virtual void createSceneGraph ()
void createColorMap ()

Protected Attributes

std::auto_ptr< ImedgineSpatialViewerrender_area_
 The viewer that renders the dataset.
SoVolumeData * current_volume_
 Volume data that will be rendered in the scene.
SoTransferFunction * transfunc_
 Transfer function that is needed for the color coding.
SoVolumeRender * volrend_
 The volume renderer (currently SimVoleon).
int render_view_mode_
 The render mode (standard or alpha blending).
int render_color_
 The rendering color (grey, red, green, blue).

Detailed Description

The view that displays renderings of 3 dimensional pixel datasets.

Author:
Tobias Gross (tobias.gross@imedgine.org)

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 47 of file spatial_pixel_view.h.


Constructor & Destructor Documentation

SpatialPixelView  ) 
 

Constructor

Definition at line 19 of file spatial_pixel_view.cpp.

References SpatialPixelView::createSceneGraph().

Referenced by SpatialPixelView::clone().

Here is the call graph for this function:

~SpatialPixelView  )  [virtual]
 

Destructor

Definition at line 39 of file spatial_pixel_view.cpp.

SpatialPixelView SpatialPixelView const &  src  )  [protected]
 

Copy constructor

Definition at line 29 of file spatial_pixel_view.cpp.

References SpatialPixelView::createSceneGraph().

Here is the call graph for this function:


Member Function Documentation

view_pointer_type clone  )  const [virtual]
 

Virtual copy constructor

Implements View.

Definition at line 48 of file spatial_pixel_view.cpp.

References SpatialPixelView::SpatialPixelView().

Here is the call graph for this function:

void createSceneGraph  )  [protected, virtual]
 

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 55 of file spatial_pixel_view.cpp.

References SpatialPixelView::createColorMap(), SpatialPixelView::current_volume_, View::root_, SpatialPixelView::transfunc_, and SpatialPixelView::volrend_.

Referenced by SpatialPixelView::SpatialPixelView().

Here is the call graph for this function:

ImedgineSpatialViewer* getRenderArea  )  [inline]
 

Get the viewer that handles the rendering of the volume data

Returns:
The render area of this view

Definition at line 102 of file spatial_pixel_view.h.

References SpatialPixelView::render_area_.

void onDataChangedEvent dataset_attribute_type  changed_attribute  )  [virtual]
 

React to change of the displayed dataset.

Parameters:
changed_attribute The type of dataset attribute that has changed

Reimplemented from View.

Definition at line 106 of file spatial_pixel_view.cpp.

References SpatialPixelView::updateView().

Here is the call graph for this function:

void setDataset dataset_pointer_type  dataset  )  throw (NullPointerException, InvalidCastException) [virtual]
 

Set the dataset that the view shows

Parameters:
dataset A pointer to the dataset to set

Reimplemented from VolumePixelView.

Definition at line 91 of file spatial_pixel_view.cpp.

References VolumePixelView::setDataset(), X_DIMENSION, Y_DIMENSION, and Z_DIMENSION.

Here is the call graph for this function:

void setParent QWidget *  view_parent  )  throw (NullPointerException) [virtual]
 

Set the GUI parent element of this view

Parameters:
view_parent The GUI view parent

Reimplemented from View.

Definition at line 75 of file spatial_pixel_view.cpp.

References View::setParent().

Here is the call graph for this function:

void updateView  )  throw (NullPointerException) [virtual]
 

Re-render the current dataset

Implements View.

Definition at line 128 of file spatial_pixel_view.cpp.

References SpatialPixelView::render_area_, and VolumePixelView::volume_dataset_.

Referenced by SpatialPixelView::onDataChangedEvent().


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:06 2006 for iMEDgine by  doxygen 1.4.6