VTK
vtkOptiXPtxLoader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOptiXPtxLoader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkOptiXPtxLoader_h
24 #define vtkOptiXPtxLoader_h
25 
26 #include "vtkRenderingOptiXModule.h" // For export macro
27 
28 #include "vtkObject.h"
29 
30 namespace optix
31 {
32  class ProgramObj;
33  class ContextObj;
34 }
35 
36 struct vtkOptiXPtxLoaderInternals;
37 
38 class VTKRENDERINGOPTIX_EXPORT vtkOptiXPtxLoader : public vtkObject
39 {
40 public:
41 
42  static vtkOptiXPtxLoader* New();
43  vtkTypeMacro(vtkOptiXPtxLoader, vtkObject);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
49  static std::string GetFullPathToFile(const char* filename);
50 
54  void LoadPrograms(optix::ContextObj* ctx);
55 
57 
60  optix::ProgramObj* SphereIsectProgram;
61  optix::ProgramObj* SphereBoundsProgram;
62  optix::ProgramObj* CylinderIsectProgram;
63  optix::ProgramObj* CylinderBoundsProgram;
64  optix::ProgramObj* TriangleIsectProgram;
65  optix::ProgramObj* TriangleBoundsProgram;
66  optix::ProgramObj* ClosestHitProgram;
67  optix::ProgramObj* AnyHitProgram;
68  optix::ProgramObj* MissProgram;
69  optix::ProgramObj* RayGenProgram;
71 
72 protected:
73 
76 
77  vtkOptiXPtxLoaderInternals* Internals;
78 
79  optix::ProgramObj* LoadProgram(const char* filename, const char* entrypoint,
80  optix::ContextObj* ctx);
81 
82 private:
83 
84  vtkOptiXPtxLoader(const vtkOptiXPtxLoader&) = delete;
85  void operator=(const vtkOptiXPtxLoader&) = delete;
86 };
87 #endif
vtkOptiXPtxLoaderInternals * Internals
optix::ProgramObj * TriangleIsectProgram
Convenience program handles.
abstract base class for most VTK objects
Definition: vtkObject.h:59
for loading of OptiX .ptx files
optix::ProgramObj * SphereBoundsProgram
Convenience program handles.
optix::ProgramObj * RayGenProgram
Convenience program handles.
optix::ProgramObj * CylinderBoundsProgram
Convenience program handles.
optix::ProgramObj * ClosestHitProgram
Convenience program handles.
a simple class to control print indentation
Definition: vtkIndent.h:39
optix::ProgramObj * AnyHitProgram
Convenience program handles.
optix::ProgramObj * MissProgram
Convenience program handles.
optix::ProgramObj * SphereIsectProgram
Convenience program handles.
optix::ProgramObj * CylinderIsectProgram
Convenience program handles.
optix::ProgramObj * TriangleBoundsProgram
Convenience program handles.