YZSliceView Class Reference
[Views]

The interface for YZ slice views of three dimensional voxel datasets. More...

#include <yz_slice_view.h>

Inherits SlicePixelView.

Inheritance diagram for YZSliceView:

Inheritance graph
[legend]
Collaboration diagram for YZSliceView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 YZSliceView ()
virtual ~YZSliceView ()
view_pointer_type clone () const
virtual void onDataChangedEvent (dataset_attribute_type changed_attribute) throw (NullPointerException)
virtual void updateView () throw (NullPointerException)
virtual void setFocusPoint2D (index_type y, index_type z) throw (NullPointerException)
virtual void setSliceIndex (index_type slice_index) throw (NullPointerException)
virtual index_type getSliceIndex () const
virtual index_type getNumSlices () const
virtual SbVec2s getSliceResolution () const
virtual SbVec2s getSecondSliceResolution () const
virtual void drawCrosshair ()

Protected Member Functions

 YZSliceView (view_type type)
 YZSliceView (YZSliceView const &src)

Detailed Description

The interface for YZ slice views of three dimensional voxel 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 35 of file yz_slice_view.h.


Constructor & Destructor Documentation

YZSliceView  ) 
 

Constructor

Definition at line 19 of file yz_slice_view.cpp.

Referenced by YZSliceView::clone().

~YZSliceView  )  [virtual]
 

Destructor

Definition at line 40 of file yz_slice_view.cpp.

YZSliceView view_type  type  )  [protected]
 

Constructor

Definition at line 26 of file yz_slice_view.cpp.

YZSliceView YZSliceView const &  src  )  [protected]
 

Copy constructor

Definition at line 33 of file yz_slice_view.cpp.


Member Function Documentation

view_pointer_type clone  )  const [virtual]
 

Virtual copy constructor

Implements View.

Definition at line 49 of file yz_slice_view.cpp.

References YZSliceView::YZSliceView().

Here is the call graph for this function:

void drawCrosshair  )  [virtual]
 

Draws the crosshair position at current focus position.

Implements SlicePixelView.

Definition at line 240 of file yz_slice_view.cpp.

References SlicePixelView::crosshair_coords_, SlicePixelView::crosshair_lines_, VolumePixelView::current_focus_point_, SlicePixelView::render_area_, X_DIMENSION, Y_DIMENSION, and Z_DIMENSION.

Referenced by YZSliceView::updateView().

index_type getNumSlices  )  const [virtual]
 

Return the number of slices.

Returns:
The total number of slices.

Implements SlicePixelView.

Definition at line 208 of file yz_slice_view.cpp.

References VolumePixelView::volume_dataset_, and X_DIMENSION.

SbVec2s getSecondSliceResolution  )  const [virtual]
 

Return the y/z resolution of the second dataset (which is used for the hybrid view).

Returns:
2D vector that contains the y/z resolution

Implements SlicePixelView.

Definition at line 227 of file yz_slice_view.cpp.

References VolumePixelView::second_volume_dataset_, Y_DIMENSION, and Z_DIMENSION.

index_type getSliceIndex  )  const [virtual]
 

Get the slice index of the dataset.

Returns:
Index of the slice in the dataset

Implements SlicePixelView.

Definition at line 201 of file yz_slice_view.cpp.

References VolumePixelView::current_focus_point_, and X_DIMENSION.

Referenced by YZSliceView::updateView().

SbVec2s getSliceResolution  )  const [virtual]
 

Return the y/z resolution of the dataset.

Returns:
2D vector that contains the y/z resolution

Implements SlicePixelView.

Definition at line 215 of file yz_slice_view.cpp.

References VolumePixelView::volume_dataset_, Y_DIMENSION, and Z_DIMENSION.

void onDataChangedEvent dataset_attribute_type  changed_attribute  )  throw (NullPointerException) [virtual]
 

React to a change to the dataset

Parameters:
changed_attribute The specification of the the dataset attribute that has been changed.

Reimplemented from SlicePixelView.

Definition at line 115 of file yz_slice_view.cpp.

References X_DIMENSION.

void setFocusPoint2D index_type  y,
index_type  z
throw (NullPointerException) [virtual]
 

Set the 2D focus point of that slice in the dataset and fire the dataset changed event of type DATASET_ATTRIBUTE_FOCUS_POINT.

Parameters:
dim_1 First dimension of the 2D focus point
dim_2 Second dimension of the 2D focus point

Implements SlicePixelView.

Definition at line 145 of file yz_slice_view.cpp.

References Y_DIMENSION, and Z_DIMENSION.

void setSliceIndex index_type  slice_index  )  throw (NullPointerException) [virtual]
 

Set the slice index in the dataset and fire the dataset changed event of type DATASET_ATTRIBUTE_FOCUS_POINT.

Parameters:
slice_index Index of the slice in the dataset

Implements SlicePixelView.

Definition at line 178 of file yz_slice_view.cpp.

References X_DIMENSION.

void updateView  )  throw (NullPointerException) [virtual]
 

Redraw the the YZ slice at the current focus position

Reimplemented from SlicePixelView.

Definition at line 56 of file yz_slice_view.cpp.

References SlicePixelView::current_image_texture_, SlicePixelView::current_second_image_texture_, YZSliceView::drawCrosshair(), YZSliceView::getSliceIndex(), SlicePixelView::render_area_, VolumePixelView::second_volume_dataset_, SlicePixelView::slice_dataset_material_, SlicePixelView::slice_second_dataset_material_, SlicePixelView::updateView(), VolumePixelView::volume_dataset_, X_DIMENSION, Y_DIMENSION, and Z_DIMENSION.

Here is the call graph for this function:


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