21 #include <vtkCubeSource.h>
22 #include <vtkPolyDataMapper.h>
24 #include <vtkRenderer.h>
25 #include <vtkProperty.h>
26 #include <vtkMutexLock.h>
28 #include <vtkStructuredPointsReader.h>
29 #include <vtkPiecewiseFunction.h>
30 #include <vtkColorTransferFunction.h>
31 #include <vtkImageClip.h>
32 #include <vtkVolumeProperty.h>
33 #include <vtkFixedPointVolumeRayCastMapper.h>
34 #include <vtkVolume.h>
37 m_vtkRenderWindow(rw),
38 m_neverRendered(true),
39 m_readyToRender(false)
48 QOpenGLFramebufferObjectFormat format;
49 format.setAttachment(QOpenGLFramebufferObject::Depth);
50 format.setTextureTarget(GL_TEXTURE_2D);
51 format.setInternalTextureFormat(GL_RGBA32F_ARB);
52 QOpenGLFramebufferObject *fbo =
new QOpenGLFramebufferObject(size, format);
QVTKFramebufferObjectRenderer * QtParentRenderer
virtual bool prepareForRender()
virtual void synchronize(QQuickFramebufferObject *item)
vtkInternalOpenGLRenderWindow * m_vtkRenderWindow
QOpenGLFramebufferObject * createFramebufferObject(const QSize &size)
~QVTKFramebufferObjectRenderer()
QVTKQuickItem * m_vtkQuickItem
QVTKFramebufferObjectRenderer(vtkInternalOpenGLRenderWindow *rw)
void SetFramebufferObject(QOpenGLFramebufferObject *fbo)