VTK  9.1.0
vtkOSPRayCameraNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayCameraNode.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 =========================================================================*/
22 #ifndef vtkOSPRayCameraNode_h
23 #define vtkOSPRayCameraNode_h
24 
25 #include "vtkCameraNode.h"
26 #include "vtkRenderingRayTracingModule.h" // For export macro
27 
28 #include "RTWrapper/RTWrapper.h" // for handle types
29 
31 class vtkCamera;
32 
33 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayCameraNode : public vtkCameraNode
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void Render(bool prepass) override;
44 
45  OSPCamera GetOCamera() { return this->oCamera; }
46 
47 protected:
50 
51  OSPCamera oCamera{ nullptr };
52 
53 private:
55  void operator=(const vtkOSPRayCameraNode&) = delete;
56 };
57 
58 #endif
#define OSPCamera
Definition: RTWrapper.h:21
vtkViewNode specialized for vtkCameras
Definition: vtkCameraNode.h:29
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
a simple class to control print indentation
Definition: vtkIndent.h:34
Key for integer values in vtkInformation.
links vtkCamera to OSPRay
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(bool prepass) override
Make ospray calls to render me.
static vtkOSPRayCameraNode * New()
~vtkOSPRayCameraNode() override