1. Uncompiled error
These errors are not caused by you using the VTK class incorrectly or by logic problems, but by missing some initialized header files
We need to add the initialization header file in main:
#include <vtkAutoInit.h>
VTK Error: No Override found for ‘VTKVolumetTextureMapper2D ‘.
Error: no override found for ‘vtkRayCastImageDisplayHelper’.
In the main function add:
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL)
Error: No Override found for ‘VTKImageMapper ‘.
In the main function add:
VTK_MODULE_INIT(vtkRenderingOpenGL)
Error:Could not locate vtkTextRenderer object.
In the main function add:
VTK_MODULE_INIT(vtkRenderingFreeType)
Error: Link to vtkinteractionstyle
In the main function add:
VTK_MODULE_INIT(vtkInteractionStyle)
VTK6.3.0:Error: No Override found for ‘VTKContextDevice2D’
Add to the main function
VTK_MODULE_INIT(vtkRenderingContextOpenGL)
Incorrect use of VTK classes
1, the ERROR: In D: \ VTK, VTK – 6.3.0, Rendering, OpenGL \ vtkOpenGLDisplayListPainter CXX, line 188
vtkOpenGLDisplayListPainter (000001AC0C582AE0): failed after RenderInternal 1 OpenGL errors detected
0 : (1282) Invalid operation
Test resolved: remove vtkRender ->; Render () function. The unexplained guess is that the render function is called repeatedly
The VTK documentation describes this function: