NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Used to draw a 2D image into the background of a VTK Render Window. More...
Public Member Functions | |
mitkClassMacroItkParent (BitmapOverlay, itk::Object) static Pointer New() | |
void | SetDataStorage (mitk::DataStorage::Pointer) |
Set a pointer to the mitk::DataStorage containing the image data for the overlay. More... | |
virtual vtkRenderer * | GetVtkRenderer () |
Returns the vtkRenderer responsible for rendering the image into the vtkRenderWindow. More... | |
virtual void | SetRenderWindow (vtkRenderWindow *renderWindow) |
Sets the vtkRenderWindow in which the image will be shown. Make sure, you have called this function before calling Enable() More... | |
virtual vtkRenderWindow * | GetRenderWindow () |
Returns the vtkRenderWindow, which is used for displaying the image. More... | |
void | SetOpacity (const double &opacity) |
Setter and Getter for Opacity. More... | |
virtual double | GetOpacity () |
virtual void | SetFlipViewUp (bool _arg) |
Setter and Getter for whether to flip the view up vector of the VTK camera. More... | |
virtual bool | GetFlipViewUp () |
virtual bool | IsEnabled () |
Checks if the image is currently enabled (visible) More... | |
virtual void | Enable () |
Enables drawing of the image. If you want to disable it, call the Disable() function. More... | |
virtual void | Disable () |
Disables drawing of the image. If you want to enable it, call the Enable() function. More... | |
virtual void | SetEnabled (const bool &enable) |
if enable is true, calls Enable(), otherwise calls Disable(). More... | |
virtual bool | SetNode (const mitk::DataNode *node) |
Set the current data node to display as an overlay. This method will check that the input is indeed an image. More... | |
void | SetupCamera () |
For both foreground and background vtkRenderers, sets the vtkCamera position so that the whole of the image is visible. More... | |
void | NodeChanged (const mitk::DataNode *node) |
Called from niftk::Single3DViewWidget when a DataStorage Change Event was emitted. More... | |
void | NodeAdded (const mitk::DataNode *node) |
Called from niftk::Single3DViewWidget when a DataStorage Node Added Event was emitted. More... | |
void | NodeRemoved (const mitk::DataNode *node) |
Called from niftk::Single3DViewWidget when a DataStorage Node Removed Event was emitted. More... | |
void | SetClippingRange (const double &nearZ, const double &farZ) |
void | GetClippingRange (double &nearZ, double &farZ) |
Protected Member Functions | |
BitmapOverlay () | |
virtual | ~BitmapOverlay () |
BitmapOverlay (const BitmapOverlay &) | |
BitmapOverlay & | operator= (const BitmapOverlay &) |
Used to draw a 2D image into the background of a VTK Render Window.
|
protected |
|
protectedvirtual |
|
protected |
|
virtual |
Disables drawing of the image. If you want to enable it, call the Enable() function.
|
virtual |
Enables drawing of the image. If you want to disable it, call the Disable() function.
void niftk::BitmapOverlay::GetClippingRange | ( | double & | nearZ, |
double & | farZ | ||
) |
|
virtual |
|
virtual |
|
virtual |
Returns the vtkRenderWindow, which is used for displaying the image.
|
virtual |
Returns the vtkRenderer responsible for rendering the image into the vtkRenderWindow.
|
virtual |
Checks if the image is currently enabled (visible)
niftk::BitmapOverlay::mitkClassMacroItkParent | ( | BitmapOverlay | , |
itk::Object | |||
) |
void niftk::BitmapOverlay::NodeAdded | ( | const mitk::DataNode * | node | ) |
Called from niftk::Single3DViewWidget when a DataStorage Node Added Event was emitted.
void niftk::BitmapOverlay::NodeChanged | ( | const mitk::DataNode * | node | ) |
Called from niftk::Single3DViewWidget when a DataStorage Change Event was emitted.
void niftk::BitmapOverlay::NodeRemoved | ( | const mitk::DataNode * | node | ) |
Called from niftk::Single3DViewWidget when a DataStorage Node Removed Event was emitted.
|
protected |
void niftk::BitmapOverlay::SetClippingRange | ( | const double & | nearZ, |
const double & | farZ | ||
) |
void niftk::BitmapOverlay::SetDataStorage | ( | mitk::DataStorage::Pointer | dataStorage | ) |
Set a pointer to the mitk::DataStorage containing the image data for the overlay.
|
virtual |
|
virtual |
Setter and Getter for whether to flip the view up vector of the VTK camera.
|
virtual |
Set the current data node to display as an overlay. This method will check that the input is indeed an image.
void niftk::BitmapOverlay::SetOpacity | ( | const double & | opacity | ) |
Setter and Getter for Opacity.
|
virtual |
Sets the vtkRenderWindow in which the image will be shown. Make sure, you have called this function before calling Enable()
void niftk::BitmapOverlay::SetupCamera | ( | ) |
For both foreground and background vtkRenderers, sets the vtkCamera position so that the whole of the image is visible.