VTK  9.0.1
vtkExternalOpenGLRenderer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExternalOpenGLRenderer.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 =========================================================================*/
36 #ifndef vtkExternalOpenGLRenderer_h
37 #define vtkExternalOpenGLRenderer_h
38 
39 #include "vtkOpenGLRenderer.h"
40 #include "vtkRenderingExternalModule.h" // For export macro
41 
42 // Forward declarations
43 class vtkLightCollection;
44 class vtkExternalLight;
45 
46 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderer : public vtkOpenGLRenderer
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  void Render(void) override;
57 
62  vtkCamera* MakeCamera() override;
63 
67  virtual void AddExternalLight(vtkExternalLight*);
68 
72  virtual void RemoveExternalLight(vtkExternalLight*);
73 
77  virtual void RemoveAllExternalLights();
78 
85  vtkGetMacro(PreserveGLCameraMatrices, vtkTypeBool);
86  vtkSetMacro(PreserveGLCameraMatrices, vtkTypeBool);
87  vtkBooleanMacro(PreserveGLCameraMatrices, vtkTypeBool);
88 
94  vtkGetMacro(PreserveGLLights, vtkTypeBool);
95  vtkSetMacro(PreserveGLLights, vtkTypeBool);
96  vtkBooleanMacro(PreserveGLLights, vtkTypeBool);
97 
98 protected:
100  ~vtkExternalOpenGLRenderer() override;
101 
107  void SynchronizeGLCameraMatrices();
108 
114  void SynchronizeGLLights();
115 
118 
120 
121 private:
123  void operator=(const vtkExternalOpenGLRenderer&) = delete;
124 };
125 
126 #endif // vtkExternalOpenGLRenderer_h
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
a virtual light object for tweaking existing lights in an external 3D rendering context ...
an ordered list of lights
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOpenGLRenderer * New()
OpenGL renderer.
virtual void Render()
CALLED BY vtkRenderWindow ONLY.