VTK  9.2.6
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:
36  static vtkOSPRayCameraNode* New();
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:
49  ~vtkOSPRayCameraNode() override;
50 
51  OSPCamera oCamera{ nullptr };
52 
53 private:
55  void operator=(const vtkOSPRayCameraNode&) = delete;
56 };
57 
58 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
links vtkCamera to OSPRay
#define OSPCamera
Definition: RTWrapper.h:21
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
static vtkCameraNode * New()
Key for integer values in vtkInformation.
vtkViewNode specialized for vtkCameras
Definition: vtkCameraNode.h:31
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:67