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 =========================================================================*/
33 #ifndef vtkExternalOpenGLRenderer_h
34 #define vtkExternalOpenGLRenderer_h
35 
36 #include "vtkOpenGLRenderer.h"
37 #include "vtkRenderingExternalModule.h" // For export macro
38 
39 // Forward declarations
40 class vtkLightCollection;
41 class vtkExternalLight;
42 
43 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderer : public vtkOpenGLRenderer
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
53  void Render(void) override;
54 
59  vtkCamera* MakeCamera() override;
60 
64  virtual void AddExternalLight(vtkExternalLight*);
65 
69  virtual void RemoveExternalLight(vtkExternalLight*);
70 
74  virtual void RemoveAllExternalLights();
75 
82  vtkGetMacro(PreserveGLCameraMatrices, vtkTypeBool);
83  vtkSetMacro(PreserveGLCameraMatrices, vtkTypeBool);
84  vtkBooleanMacro(PreserveGLCameraMatrices, vtkTypeBool);
85 
91  vtkGetMacro(PreserveGLLights, vtkTypeBool);
92  vtkSetMacro(PreserveGLLights, vtkTypeBool);
93  vtkBooleanMacro(PreserveGLLights, vtkTypeBool);
94 
95 protected:
97  ~vtkExternalOpenGLRenderer() override;
98 
104  void SynchronizeGLCameraMatrices();
105 
111  void SynchronizeGLLights();
112 
115 
117 
118 private:
120  void operator=(const vtkExternalOpenGLRenderer&) = delete;
121 };
122 
123 #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.