SIVIC API
0.9.26
|
#include <svkImageViewer2.h>
Public Member Functions | |
vtkTypeMacro (svkImageViewer2, vtkImageViewer2) | |
void | SetInputData (svkImageData *in) |
virtual void | SetSlice (int slice) |
virtual void | SetSlice (int slice, svkDcmHeader::Orientation sliceOrientation) |
virtual void | SetActiveVolume (int volume) |
void | Render () |
void | ResetCamera () |
void | TurnOrthogonalImagesOn () |
void | TurnOrthogonalImagesOff () |
int | GetSlice () |
int | GetSlice (svkDcmHeader::Orientation orientation) |
virtual void | SetColorLevel (double s) |
virtual void | SetColorWindow (double s) |
virtual void | SetOrientation (svkDcmHeader::Orientation orientation) |
virtual svkDcmHeader::Orientation | GetOrientation () |
virtual svkOrientedImageActor * | GetImageActor (svkDcmHeader::Orientation actorOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual svkImageData * | GetInput () |
virtual bool | AreOrthogonalImagesOn () |
void | SetInteractorStyle (vtkInteractorStyleImage *style) |
void | SetCameraZoom (double zoom) |
void | UpdateInputInformation () |
Static Public Member Functions | |
static svkImageViewer2 * | New () |
Public Attributes | |
int | axialSlice |
int | coronalSlice |
int | sagittalSlice |
Protected Member Functions | |
svkImageViewer2 () | |
Constructor. More... | |
~svkImageViewer2 () | |
Destructor. More... | |
void | InitializeOrthogonalActors () |
void | InstallPipeline () |
|
protected |
Constructor.
References svkDcmHeader::AXIAL, svkImageViewer2::axialImageActor, svkImageViewer2::axialSlice, svkImageViewer2::axialWinLevel, svkImageViewer2::coronalImageActor, svkImageViewer2::coronalSlice, svkImageViewer2::coronalWinLevel, svkImageViewer2::data, svkImageMapToWindowLevelColors::New(), svkImageActor::New(), svkImageViewer2::orientation, svkImageViewer2::sagittalImageActor, svkImageViewer2::sagittalSlice, and svkImageViewer2::sagittalWinLevel.
|
protected |
|
virtual |
References svkImageViewer2::axialImageActor, svkImageViewer2::coronalImageActor, and svkImageViewer2::sagittalImageActor.
Referenced by svkOverlayView::AreOrthogonalImagesOn().
|
virtual |
References svkDcmHeader::AXIAL, svkImageViewer2::axialImageActor, svkDcmHeader::CORONAL, svkImageViewer2::coronalImageActor, svkImageData::GetDcmHeader(), svkImageViewer2::GetInput(), svkDcmHeader::GetOrientationType(), svkDcmHeader::SAGITTAL, svkImageViewer2::sagittalImageActor, and svkDcmHeader::UNKNOWN_ORIENTATION.
Referenced by svkSpectraReferenceView::ResetWindowLevel(), svkOverlayView::ResetWindowLevel(), svkOverlayView::SetLevel(), svkSpectraReferenceView::SetOrientation(), svkOverlayView::SetOrientation(), svkImageViewer2::SetSlice(), svkSpectraReferenceView::SetupMrInput(), svkOverlayView::SetupMrInput(), svkOverlayView::SetWindow(), svkSpectraReferenceView::UpdateImageSlice(), and svkOverlayView::UpdateImageSlice().
|
virtual |
|
virtual |
References svkImageViewer2::orientation.
int GetSlice | ( | ) |
int GetSlice | ( | svkDcmHeader::Orientation | orientation | ) |
|
protected |
References svkDcmHeader::AXIAL, svkImageViewer2::axialImageActor, svkImageViewer2::axialSlice, svkDcmHeader::CORONAL, svkImageViewer2::coronalImageActor, svkImageViewer2::coronalSlice, svkDcmHeader::SAGITTAL, svkImageViewer2::sagittalImageActor, svkImageViewer2::sagittalSlice, and svkImageViewer2::SetSlice().
Referenced by svkImageViewer2::SetInputData().
|
protected |
We are overridding this so we can cast the WindowLevel object to svkImageMapToWindowLevelColors, ensuring its GetOutput gives us svkImageData.
References svkImageViewer2::axialImageActor, svkImageViewer2::axialWinLevel, svkImageViewer2::coronalImageActor, svkImageViewer2::coronalWinLevel, svkImageViewer2::data, svkImageViewer2::sagittalImageActor, svkImageViewer2::sagittalWinLevel, and svkImageViewer2::SetInteractorStyle().
|
static |
Referenced by svkOverlayView::svkOverlayView(), and svkSpectraReferenceView::svkSpectraReferenceView().
void Render | ( | ) |
Renders the actor. The only reason for the overload is to update the image actor. This appears to be necessary for the image to update as you window level, and is likely caused because we had to override the GetOutput method of the WindowLevel class.
References svkImageViewer2::axialImageActor, svkImageViewer2::coronalImageActor, svkImageViewer2::GetInput(), and svkImageViewer2::sagittalImageActor.
Referenced by svkImageViewer2::ResetCamera(), svkSpectraReferenceView::ResetWindowLevel(), svkOverlayView::ResetWindowLevel(), svkImageViewer2::SetActiveVolume(), svkOverlayView::SetLevel(), and svkOverlayView::SetWindow().
void ResetCamera | ( | ) |
Resets the camera to be exactly perpendicular to the image.
References svkDcmHeader::AXIAL, svkDcmHeader::CORONAL, svkImageViewer2::data, svkImageData::GetImageCenter(), svkImageViewer2::GetInput(), svkImageData::GetSliceNormal(), svkImageViewer2::orientation, svkImageViewer2::Render(), and svkDcmHeader::SAGITTAL.
Referenced by svkSpectraReferenceView::AlignCamera(), svkOverlayView::AlignCamera(), and svkOverlayView::SetCameraZoom().
|
virtual |
Sets the active scalars for the image data set.
volume |
References svkImageViewer2::axialWinLevel, svkImageViewer2::coronalWinLevel, svkImageViewer2::data, svkImageViewer2::GetInput(), svkImageViewer2::Render(), and svkImageViewer2::sagittalWinLevel.
Referenced by svkOverlayView::SetActiveImageVolume().
void SetCameraZoom | ( | double | zoom | ) |
Set the camera zoom factor
Referenced by svkOverlayView::SetCameraZoom().
|
virtual |
|
virtual |
void SetInputData | ( | svkImageData * | in | ) |
Sets the input. Was overriden to allow the use of svkImageData object.
References svkDcmHeader::AXIAL, svkImageViewer2::axialSlice, svkImageViewer2::axialWinLevel, svkDcmHeader::CORONAL, svkImageViewer2::coronalSlice, svkImageViewer2::coronalWinLevel, svkImageViewer2::data, svkImageViewer2::GetInput(), svkImageData::GetOrientationIndex(), svkImageViewer2::InitializeOrthogonalActors(), svkDcmHeader::SAGITTAL, svkImageViewer2::sagittalSlice, and svkImageViewer2::sagittalWinLevel.
Referenced by svkOverlayView::SetupMrInput().
void SetInteractorStyle | ( | vtkInteractorStyleImage * | style | ) |
References vtkImageViewer2Callback::HasWindowLevelStarted, vtkImageViewer2Callback::IV, and vtkImageViewer2Callback::New().
Referenced by svkImageViewer2::InstallPipeline().
|
virtual |
References svkImageViewer2::orientation.
Referenced by svkSpectraReferenceView::SetOrientation(), and svkOverlayView::SetOrientation().
|
virtual |
References svkImageViewer2::orientation.
Referenced by svkImageViewer2::InitializeOrthogonalActors(), svkSpectraReferenceView::SetSlice(), svkOverlayView::SetSlice(), svkSpectraReferenceView::SetupMrInput(), svkOverlayView::SetupMrInput(), svkSpectraReferenceView::UpdateImageSlice(), and svkOverlayView::UpdateImageSlice().
|
virtual |
References svkDcmHeader::AXIAL, svkImageViewer2::axialSlice, svkDcmHeader::CORONAL, svkImageViewer2::coronalSlice, svkImageData::GetFirstSlice(), svkImageViewer2::GetImageActor(), svkImageViewer2::GetInput(), svkImageData::GetLastSlice(), svkImageData::GetOrientationIndex(), svkDcmHeader::SAGITTAL, and svkImageViewer2::sagittalSlice.
void TurnOrthogonalImagesOff | ( | ) |
References svkDcmHeader::AXIAL, svkImageViewer2::axialImageActor, svkDcmHeader::CORONAL, svkImageViewer2::coronalImageActor, svkImageViewer2::orientation, svkDcmHeader::SAGITTAL, and svkImageViewer2::sagittalImageActor.
Referenced by svkSpectraReferenceView::TurnOrthogonalImagesOff(), and svkOverlayView::TurnOrthogonalImagesOff().
void TurnOrthogonalImagesOn | ( | ) |
References svkDcmHeader::AXIAL, svkImageViewer2::axialImageActor, svkDcmHeader::CORONAL, svkImageViewer2::coronalImageActor, svkImageViewer2::orientation, svkDcmHeader::SAGITTAL, and svkImageViewer2::sagittalImageActor.
Referenced by svkSpectraReferenceView::TurnOrthogonalImagesOn(), and svkOverlayView::TurnOrthogonalImagesOn().
void UpdateInputInformation | ( | ) |
Referenced by svkOverlayView::ResetWindowLevel().
vtkTypeMacro | ( | svkImageViewer2 | , |
vtkImageViewer2 | |||
) |
|
protected |
Referenced by svkImageViewer2::AreOrthogonalImagesOn(), svkImageViewer2::GetImageActor(), svkImageViewer2::InitializeOrthogonalActors(), svkImageViewer2::InstallPipeline(), svkImageViewer2::Render(), svkImageViewer2::svkImageViewer2(), svkImageViewer2::TurnOrthogonalImagesOff(), svkImageViewer2::TurnOrthogonalImagesOn(), and svkImageViewer2::~svkImageViewer2().
int axialSlice |
|
protected |
|
protected |
Referenced by svkImageViewer2::AreOrthogonalImagesOn(), svkImageViewer2::GetImageActor(), svkImageViewer2::InitializeOrthogonalActors(), svkImageViewer2::InstallPipeline(), svkImageViewer2::Render(), svkImageViewer2::svkImageViewer2(), svkImageViewer2::TurnOrthogonalImagesOff(), svkImageViewer2::TurnOrthogonalImagesOn(), and svkImageViewer2::~svkImageViewer2().
int coronalSlice |
|
protected |
|
protected |
|
protected |
Referenced by svkImageViewer2::GetOrientation(), svkImageViewer2::GetSlice(), svkImageViewer2::ResetCamera(), svkImageViewer2::SetOrientation(), svkImageViewer2::SetSlice(), svkImageViewer2::svkImageViewer2(), svkImageViewer2::TurnOrthogonalImagesOff(), and svkImageViewer2::TurnOrthogonalImagesOn().
|
protected |
|
protected |
|
protected |
Referenced by svkImageViewer2::AreOrthogonalImagesOn(), svkImageViewer2::GetImageActor(), svkImageViewer2::InitializeOrthogonalActors(), svkImageViewer2::InstallPipeline(), svkImageViewer2::Render(), svkImageViewer2::svkImageViewer2(), svkImageViewer2::TurnOrthogonalImagesOff(), svkImageViewer2::TurnOrthogonalImagesOn(), and svkImageViewer2::~svkImageViewer2().
int sagittalSlice |
|
protected |