VTK  9.3.0
vtkExternalOpenGLRenderer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
21#ifndef vtkExternalOpenGLRenderer_h
22#define vtkExternalOpenGLRenderer_h
23
24#include "vtkOpenGLRenderer.h"
25#include "vtkRenderingExternalModule.h" // For export macro
26
27// Forward declarations
28VTK_ABI_NAMESPACE_BEGIN
31
32class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderer : public vtkOpenGLRenderer
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 void Render() override;
43
48 vtkCamera* MakeCamera() override;
49
54
59
64
71 vtkGetMacro(PreserveGLCameraMatrices, vtkTypeBool);
72 vtkSetMacro(PreserveGLCameraMatrices, vtkTypeBool);
73 vtkBooleanMacro(PreserveGLCameraMatrices, vtkTypeBool);
74
80 vtkGetMacro(PreserveGLLights, vtkTypeBool);
81 vtkSetMacro(PreserveGLLights, vtkTypeBool);
82 vtkBooleanMacro(PreserveGLLights, vtkTypeBool);
83
84protected:
87
94
101
104
106
107private:
109 void operator=(const vtkExternalOpenGLRenderer&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#endif // vtkExternalOpenGLRenderer_h
a virtual camera for 3D rendering
Definition vtkCamera.h:41
a virtual light object for tweaking existing lights in an external 3D rendering context
virtual void RemoveExternalLight(vtkExternalLight *)
Remove an external light from the list of external lights.
void SynchronizeGLCameraMatrices()
Copy the current OpenGL GL_MODELVIEW_MATRIX and GL_PROJECTION_MATRIX to the active VTK camera before ...
vtkCamera * MakeCamera() override
Create a new Camera sutible for use with this type of Renderer.
~vtkExternalOpenGLRenderer() override
virtual void AddExternalLight(vtkExternalLight *)
Add an external light to the list of external lights.
static vtkExternalOpenGLRenderer * New()
virtual void RemoveAllExternalLights()
Remove all external lights.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render() override
Synchronize camera and light parameters.
void SynchronizeGLLights()
Query existing GL lights before each render call and tweak them to match the external lights collecti...
a simple class to control print indentation
Definition vtkIndent.h:29
an ordered list of lights
OpenGL renderer.
int vtkTypeBool
Definition vtkABI.h:64