#include <view.h>
Inherited by PixelView.
Inheritance diagram for View:
Public Member Functions | |
View (view_type type) | |
virtual | ~View () |
virtual view_pointer_type | clone () const =0 |
unsigned int | getViewID () const |
view_type | getType () const |
virtual void | setParent (QWidget *view_parent) |
virtual void | setDataset (dataset_pointer_type dataset) throw (NullPointerException, InvalidCastException) |
virtual void | onDataChangedEvent (dataset_attribute_type changed_attribute) |
virtual void | onDatasetDeletion (dataset_key_type) |
virtual void | updateView ()=0 throw (NullPointerException) |
void | registerDataViewMediator (DataViewMediator *data_view_mediator) |
void | deregisterDataViewMediator () |
SoSeparator * | getSceneGraph () const |
SoSeparator * | getStaticSceneSeparator () const |
SoCamera * | getStaticCamera () const |
Protected Member Functions | |
View (View const &src) | |
virtual void | createSceneGraph () |
virtual void | notifyDataChangedEvent (dataset_attribute_type changed_attribute) |
Protected Attributes | |
QWidget * | view_parent_ |
DataViewMediator * | data_view_mediator_ |
SoSeparator * | root_ |
SoSeparator * | dynamic_sep_ |
SoSeparator * | static_sep_ |
SoOrthographicCamera * | static_camera_ |
dataset_key_type | dataset_key_ |
This class is the base class for all views. It holds basic properties such as the view type and the parent GUI widget. Furthermore it holds a reference to the data.
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 52 of file view.h.
|
Constructor Definition at line 23 of file view.cpp. References View::root_. |
|
Destructor Definition at line 53 of file view.cpp. References View::root_. |
|
Copy constructor Definition at line 42 of file view.cpp. References View::root_. |
|
Virtual copy constructor Implemented in ImagePixelView, MetaVolumePixelView, SpatialPixelView, XYSliceView, XZSliceView, and YZSliceView. |
|
Creates the scene part that is independent of the viewing camera Reimplemented in ImagePixelView, SlicePixelView, and SpatialPixelView. Definition at line 112 of file view.cpp. References View::dynamic_sep_, View::root_, View::static_camera_, and View::static_sep_. Referenced by SlicePixelView::createSceneGraph(), and ImagePixelView::createSceneGraph(). |
|
Degister the data-view mediator from receiving change events from this view Definition at line 105 of file view.cpp. References View::data_view_mediator_. |
|
Get the type of the View. The type is set in the constructor of the inherited views.
|
|
Get the ID of the View. Each view owns an unique ID
|
|
Notify that the data the view depends on has changed. The default notification of the data view mediator may overridden in derived classes.
Definition at line 129 of file view.cpp. References View::data_view_mediator_, View::dataset_key_, and DataViewMediator::updateDataChanged(). Referenced by MetaVolumePixelView::setFocusPointXDimension(), MetaVolumePixelView::setFocusPointYDimension(), and MetaVolumePixelView::setFocusPointZDimension(). Here is the call graph for this function: ![]() |
|
React to change of the displayed dataset. The default is to do nothing. Deriving classes may override this behaviour.
Reimplemented in ImagePixelView, MetaVolumePixelView, SlicePixelView, SpatialPixelView, XYSliceView, XZSliceView, and YZSliceView. |
|
React to an upcoming deletion an dataset Reimplemented in SlicePixelView. |
|
Register the data-view mediator to receive change events from this view
Definition at line 98 of file view.cpp. References View::data_view_mediator_. |
|
Set the datasets that the view shows
Reimplemented in ImagePixelView, SlicePixelView, SpatialPixelView, and VolumePixelView. |
|
Set the GUI parent element of this view
Reimplemented in ImagePixelView, MetaVolumePixelView, SlicePixelView, and SpatialPixelView. Definition at line 77 of file view.cpp. References View::view_parent_. Referenced by SpatialPixelView::setParent(), SlicePixelView::setParent(), and ImagePixelView::setParent(). |
|
Redraw the contents of the view.
Implemented in ImagePixelView, MetaVolumePixelView, SlicePixelView, SpatialPixelView, XYSliceView, XZSliceView, and YZSliceView. Referenced by VolumePixelView::unsetSecondDataset(). |
|
The mediator between datasets and dependent views Definition at line 183 of file view.h. Referenced by View::deregisterDataViewMediator(), VolumePixelView::isLockedWithDataset(), VolumePixelView::lockWithDataset(), View::notifyDataChangedEvent(), View::registerDataViewMediator(), and VolumePixelView::unlockFromDataset(). |
|
The unique key of the dataset that this view shows Definition at line 216 of file view.h. Referenced by View::notifyDataChangedEvent(). |
|
Separator that cointains all scene graph nodes that should be dynamic in the scene. That means the viewer can rotate, pan, etc. them. Definition at line 196 of file view.h. Referenced by View::createSceneGraph(), SlicePixelView::createSceneGraph(), ImagePixelView::createSceneGraph(), SlicePixelView::getDynamicSceneSeparator(), and ImagePixelView::getDynamicSceneSeparator(). |
|
The root node of the scene graph Definition at line 189 of file view.h. Referenced by View::createSceneGraph(), SpatialPixelView::createSceneGraph(), View::getSceneGraph(), View::View(), and View::~View(). |
|
Static camera that is not influenced by the viewer The camera is not needed at the moment - but could been very useful. Definition at line 210 of file view.h. Referenced by View::createSceneGraph(), and View::getStaticCamera(). |
|
Separator that cointains all scene graph nodes that should be static in the scene (independet from the camera) Definition at line 203 of file view.h. Referenced by View::createSceneGraph(), and View::getStaticSceneSeparator(). |
|
The GUI parent element of the view Definition at line 177 of file view.h. Referenced by View::setParent(). |