![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h>
Public Types | |
enum | RenderWindowLayoutType { LeftRightTopBottom = 0 , LeftRightBottomTop } |
typedef ctkVTKAbstractView | Superclass |
Constructors. More... | |
![]() | |
typedef QWidget | Superclass |
Public Slots | |
void | resetCamera () |
void | setColorLevel (double newColorLevel) |
void | setColorWindow (double newColorWindow) |
void | setHighlightedBoxColor (const QColor &newHighlightedBoxColor) |
void | setImageData (vtkImageData *newImageData) |
void | setLightBoxRendererManagerColumnCount (int newColumnCount) |
void | setLightBoxRendererManagerRowCount (int newRowCount) |
void | setRenderWindowLayoutType (RenderWindowLayoutType layoutType) |
![]() | |
virtual void | forceRender () |
virtual bool | isRenderPaused () const |
virtual int | pauseRender () |
virtual int | resumeRender () |
virtual void | scheduleRender () |
virtual void | setBackgroundColor2 (const QColor &newBackgroundColor) |
virtual void | setCornerAnnotationText (const QString &text) |
Set corner annotation text. More... | |
void | setFPSVisible (bool show) |
Show/Hide the FPS annotation. More... | |
virtual void | setGradientBackground (bool enable) |
void | setMaximumUpdateRate (double fps) |
void | setRenderEnabled (bool value) |
Enable/Disable rendering. More... | |
virtual int | setRenderPaused (bool pause) |
void | setUseDepthPeeling (bool use) |
Signals | |
void | resized (const QSize &size) |
Public Member Functions | |
virtual QColor | backgroundColor () const |
double | colorLevel () const |
double | colorWindow () const |
ctkVTKSliceView (QWidget *parent=0) | |
QColor | highlightedBoxColor () const |
Q_INVOKABLE vtkLightBoxRendererManager * | lightBoxRendererManager () const |
Get lightBoxRendererManager. More... | |
vtkCornerAnnotation * | overlayCornerAnnotation () const |
vtkRenderer * | overlayRenderer () const |
Get overlay renderer. More... | |
RenderWindowLayoutType | renderWindowLayoutType () const |
void | setActiveCamera (vtkCamera *newActiveCamera) |
Set active camera. More... | |
virtual void | setBackgroundColor (const QColor &newBackgroundColor) |
virtual | ~ctkVTKSliceView () |
![]() | |
virtual QColor | backgroundColor2 () const |
Get the second background color. More... | |
Q_INVOKABLE vtkCornerAnnotation * | cornerAnnotation () const |
QString | cornerAnnotationText () const |
Get corner annotation text. More... | |
ctkVTKAbstractView (QWidget *parent=0) | |
double | fps () const |
Return the current FPS. More... | |
virtual bool | gradientBackground () const |
Is the background a gradient. More... | |
virtual bool | hasHeightForWidth () const |
virtual int | heightForWidth (int width) const |
Q_INVOKABLE vtkRenderWindowInteractor * | interactor () const |
Set/Get window interactor. More... | |
Q_INVOKABLE vtkInteractorObserver * | interactorStyle () const |
Get current interactor style. More... | |
bool | isFPSVisible () const |
Return true if the FPS annotation is visible, false otherwise. More... | |
double | maximumUpdateRate () const |
virtual QSize | minimumSizeHint () const |
bool | renderEnabled () const |
Return if rendering is enabled. More... | |
Q_INVOKABLE vtkRenderWindow * | renderWindow () const |
Get underlying RenderWindow. More... | |
virtual void | setInteractor (vtkRenderWindowInteractor *interactor) |
virtual QSize | sizeHint () const |
bool | useDepthPeeling () const |
Q_INVOKABLE ctkVTKOpenGLNativeWidget * | VTKWidget () const |
Get the underlying QVTKWidget. More... | |
virtual | ~ctkVTKAbstractView () |
Protected Member Functions | |
virtual bool | eventFilter (QObject *object, QEvent *event) |
![]() | |
ctkVTKAbstractView (ctkVTKAbstractViewPrivate *pimpl, QWidget *parent) | |
Properties | |
double | colorLevel |
double | colorWindow |
QColor | highlightedBoxColor |
RenderWindowLayoutType | renderWindowLayoutType |
![]() | |
QColor | backgroundColor |
QColor | backgroundColor2 |
QVTK_OBJECTQString | cornerAnnotationText |
bool | fpsVisible |
bool | gradientBackground |
double | maximumUpdateRate |
Set a maximum rate (in frames per second) for rendering. More... | |
bool | renderEnabled |
bool | useDepthPeeling |
Additional Inherited Members | |
![]() | |
static int | multiSamples () |
static void | setMultiSamples (int) |
![]() | |
void | onRender () |
virtual void | requestRender () |
void | updateFPS () |
![]() | |
QScopedPointer< ctkVTKAbstractViewPrivate > | d_ptr |
Specific implementation for a 2D view that supports lightbox display.
Definition at line 38 of file ctkVTKSliceView.h.
Constructors.
Definition at line 50 of file ctkVTKSliceView.h.
The layout type determines how the image slices should be displayed within the different render view items.
Enumerator | |
---|---|
LeftRightTopBottom | |
LeftRightBottomTop |
Definition at line 57 of file ctkVTKSliceView.h.
|
explicit |
|
virtual |
|
virtual |
double ctkVTKSliceView::colorLevel | ( | ) | const |
Get color level
double ctkVTKSliceView::colorWindow | ( | ) | const |
Get color window
|
protectedvirtual |
QColor ctkVTKSliceView::highlightedBoxColor | ( | ) | const |
Get highlightedBox color
Q_INVOKABLE vtkLightBoxRendererManager* ctkVTKSliceView::lightBoxRendererManager | ( | ) | const |
Get lightBoxRendererManager.
vtkCornerAnnotation* ctkVTKSliceView::overlayCornerAnnotation | ( | ) | const |
Get overlay corner annotation actor This corresponds to the cornerAnnotation associated added in the single overlay renderer
vtkRenderer* ctkVTKSliceView::overlayRenderer | ( | ) | const |
Get overlay renderer.
RenderWindowLayoutType ctkVTKSliceView::renderWindowLayoutType | ( | ) | const |
Get renderWindow layout type
|
slot |
Reset cameras associated with all renderWindowItem
|
signal |
void ctkVTKSliceView::setActiveCamera | ( | vtkCamera * | newActiveCamera | ) |
Set active camera.
|
virtual |
Set background color
Reimplemented from ctkVTKAbstractView.
|
slot |
Set color level
|
slot |
Set color window
|
slot |
Set highlightedBox color
|
slot |
Set image data
|
slot |
Change the number of column of the associated lightBox
|
slot |
Change the number of row of the associated lightBox
|
slot |
Set RenderWindow layout type
|
readwrite |
Definition at line 1 of file ctkVTKSliceView.h.
|
readwrite |
Definition at line 1 of file ctkVTKSliceView.h.
|
readwrite |
Definition at line 1 of file ctkVTKSliceView.h.
|
readwrite |
Definition at line 1 of file ctkVTKSliceView.h.