#include <Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.h>
|
QScopedPointer< ctkVTKAbstractViewPrivate > | d_ptr |
|
Definition at line 41 of file ctkVTKAbstractView.h.
ctkVTKAbstractView::ctkVTKAbstractView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
virtual ctkVTKAbstractView::~ctkVTKAbstractView |
( |
| ) |
|
|
virtual |
ctkVTKAbstractView::ctkVTKAbstractView |
( |
ctkVTKAbstractViewPrivate * |
pimpl, |
|
|
QWidget * |
parent |
|
) |
| |
|
protected |
virtual QColor ctkVTKAbstractView::backgroundColor |
( |
| ) |
const |
|
virtual |
virtual QColor ctkVTKAbstractView::backgroundColor2 |
( |
| ) |
const |
|
virtual |
Get the second background color.
Q_INVOKABLE vtkCornerAnnotation* ctkVTKAbstractView::cornerAnnotation |
( |
| ) |
const |
QString ctkVTKAbstractView::cornerAnnotationText |
( |
| ) |
const |
Get corner annotation text.
virtual void ctkVTKAbstractView::forceRender |
( |
| ) |
|
|
virtualslot |
Force a render even if a render is already ocurring Be careful when calling forceRender() as it can slow down your application. It is preferable to use scheduleRender() instead.
double ctkVTKAbstractView::fps |
( |
| ) |
const |
virtual bool ctkVTKAbstractView::gradientBackground |
( |
| ) |
const |
|
virtual |
Is the background a gradient.
virtual bool ctkVTKAbstractView::hasHeightForWidth |
( |
| ) |
const |
|
virtual |
virtual int ctkVTKAbstractView::heightForWidth |
( |
int |
width | ) |
const |
|
virtual |
Q_INVOKABLE vtkRenderWindowInteractor* ctkVTKAbstractView::interactor |
( |
| ) |
const |
Set/Get window interactor.
Q_INVOKABLE vtkInteractorObserver* ctkVTKAbstractView::interactorStyle |
( |
| ) |
const |
Get current interactor style.
bool ctkVTKAbstractView::isFPSVisible |
( |
| ) |
const |
Return true if the FPS annotation is visible, false otherwise.
virtual QSize ctkVTKAbstractView::minimumSizeHint |
( |
| ) |
const |
|
virtual |
static int ctkVTKAbstractView::multiSamples |
( |
| ) |
|
|
static |
void ctkVTKAbstractView::onRender |
( |
| ) |
|
|
protectedslot |
bool ctkVTKAbstractView::renderEnabled |
( |
| ) |
const |
Return if rendering is enabled.
Q_INVOKABLE vtkRenderWindow* ctkVTKAbstractView::renderWindow |
( |
| ) |
const |
Get underlying RenderWindow.
virtual void ctkVTKAbstractView::scheduleRender |
( |
| ) |
|
|
virtualslot |
Notify QVTKWidget that the view needs to be rendered. scheduleRender() respects the desired framerate of the render window, it won't render the window more than what the current render window framerate is.
virtual void ctkVTKAbstractView::setBackgroundColor |
( |
const QColor & |
newBackgroundColor | ) |
|
|
virtualslot |
Set the background color of the rendering screen.
Reimplemented in ctkVTKSliceView.
virtual void ctkVTKAbstractView::setBackgroundColor2 |
( |
const QColor & |
newBackgroundColor | ) |
|
|
virtualslot |
Set the second background color of the rendering screen for gradient backgrounds.
virtual void ctkVTKAbstractView::setCornerAnnotationText |
( |
const QString & |
text | ) |
|
|
virtualslot |
Set corner annotation text.
void ctkVTKAbstractView::setFPSVisible |
( |
bool |
show | ) |
|
|
slot |
Show/Hide the FPS annotation.
virtual void ctkVTKAbstractView::setGradientBackground |
( |
bool |
enable | ) |
|
|
virtualslot |
Set/Get whether this view should have a gradient background using the Background (top) and Background2 (bottom) colors. Default is off.
virtual void ctkVTKAbstractView::setInteractor |
( |
vtkRenderWindowInteractor * |
interactor | ) |
|
|
virtual |
QVTKWidget catches all render requests, and ensure the desired framerate is respected. The interactor never calls Render() on the render window. TBD: can we only set a QVTKRenderWindowInteractor ?
Reimplemented in ctkVTKRenderView.
static void ctkVTKAbstractView::setMultiSamples |
( |
int |
| ) |
|
|
static |
Set the default number of multisamples to use. Note that a negative value means "auto", which means the renderer will attempt to select the maximum number (but is not guaranteed to work).
WARNING: Multisampling should be set before creation of the OpenGL context (e.g., initializing the rendering window) in order to have an effect. Consider using setMultisamples before instantiating ctkVTKAbstractView objects.
- See also
- multiSamples
void ctkVTKAbstractView::setRenderEnabled |
( |
bool |
value | ) |
|
|
slot |
Enable/Disable rendering.
void ctkVTKAbstractView::setUseDepthPeeling |
( |
bool |
use | ) |
|
|
slot |
virtual QSize ctkVTKAbstractView::sizeHint |
( |
| ) |
const |
|
virtual |
void ctkVTKAbstractView::updateFPS |
( |
| ) |
|
|
protectedslot |
bool ctkVTKAbstractView::useDepthPeeling |
( |
| ) |
const |
Q_INVOKABLE QVTKWidget* ctkVTKAbstractView::VTKWidget |
( |
| ) |
const |
Get the underlying QVTKWidget.
QScopedPointer<ctkVTKAbstractViewPrivate> ctkVTKAbstractView::d_ptr |
|
protected |
QColor ctkVTKAbstractView::backgroundColor |
|
readwrite |
QColor ctkVTKAbstractView::backgroundColor2 |
|
readwrite |
QString ctkVTKAbstractView::cornerAnnotationText |
|
readwrite |
bool ctkVTKAbstractView::fpsVisible |
|
readwrite |
This property controls whether a corner annotation is visible with the last frames per second (FPS) value. false by default.
Definition at line 53 of file ctkVTKAbstractView.h.
bool ctkVTKAbstractView::gradientBackground |
|
readwrite |
bool ctkVTKAbstractView::renderEnabled |
|
readwrite |
bool ctkVTKAbstractView::useDepthPeeling |
|
readwrite |
This property controls whether the render window uses depth peeling or not. false by default.
Definition at line 57 of file ctkVTKAbstractView.h.
The documentation for this class was generated from the following file: