7 #ifndef __FWRENDERVTK_VTK_HELPERS_HPP__ 8 #define __FWRENDERVTK_VTK_HELPERS_HPP__ 11 #include <vtkSmartPointer.h> 13 #include "fwRenderVTK/config.hpp" 18 class vtkAbstractPropPicker;
19 class vtkRenderWindow;
23 #if VTK_MAJOR_VERSION < 7 24 #include <vtkShaderProgram2.h> 25 #include <vtkShader2.h> 26 #include <vtkShader2Collection.h> 28 #include <vtkShaderProgram.h> 29 #include <vtkShader.h> 30 #endif // VTK_MAJOR_VERSION < 7 39 FWRENDERVTK_API vtkIdType getNearestPointId(vtkPoints* pts, vtkRenderer* renderer);
40 FWRENDERVTK_API vtkProp* getNearestPickedProp(vtkAbstractPropPicker* picker, vtkRenderer* renderer);
41 FWRENDERVTK_API
bool getNearestPickedPosition(vtkAbstractPropPicker* picker, vtkRenderer* renderer,
45 #if VTK_MAJOR_VERSION < 7 46 FWRENDERVTK_API vtkSmartPointer<vtkShaderProgram2> buildShader(vtkRenderWindow* pWindow,
47 const char* pcVertexShader,
48 const char* pcFragmentShader );
50 FWRENDERVTK_API vtkSmartPointer<vtkShaderProgram2> buildShaderFromFile( vtkRenderWindow* pWindow,
51 const char* pcVertexName,
52 const char* pcFragmentName );
54 FWRENDERVTK_API vtkSmartPointer<vtkShaderProgram> buildShader(vtkRenderWindow* pWindow,
55 const char* pcVertexShader,
56 const char* pcFragmentShader );
58 FWRENDERVTK_API vtkSmartPointer<vtkShaderProgram> buildShaderFromFile( vtkRenderWindow* pWindow,
59 const char* pcVertexName,
60 const char* pcFragmentName );
61 #endif // VTK_MAJOR_VERSION < 7 67 #endif //__FWRENDERVTK_VTK_HELPERS_HPP__ The namespace fwRenderVTK contains classes for rendering with VTK.