VTK: Rendering/OpenGL2/vtkOpenGLProperty.h Source File

| VTK 9.3.1

vtkOpenGLProperty.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
11 #ifndef vtkOpenGLProperty_h
12 #define vtkOpenGLProperty_h
13
14 #include "vtkProperty.h"
15 #include "vtkRenderingOpenGL2Module.h" // For export macro
16
17 VTK_ABI_NAMESPACE_BEGIN
18 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLProperty : public vtkProperty
19 {
20 public:
21 static vtkOpenGLProperty* New();
22 vtkTypeMacro(vtkOpenGLProperty, vtkProperty);
23 void PrintSelf(ostream& os, vtkIndent indent) override;
24
28 void Render(vtkActor* a, vtkRenderer* ren) override;
29
33 void BackfaceRender(vtkActor* a, vtkRenderer* ren) override;
34
40 void PostRender(vtkActor* a, vtkRenderer* r) override;
41
47 void ReleaseGraphicsResources(vtkWindow* win) override;
48
49 protected:
50 vtkOpenGLProperty();
51 ~vtkOpenGLProperty() override;
52
57 bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
58
59 private:
60 vtkOpenGLProperty(const vtkOpenGLProperty&) = delete;
61 void operator=(const vtkOpenGLProperty&) = delete;
62 };
63
64 VTK_ABI_NAMESPACE_END
65 #endif
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkOpenGLProperty
OpenGL property.
Definition: vtkOpenGLProperty.h:19
vtkOpenGLProperty::BackfaceRender
void BackfaceRender(vtkActor *a, vtkRenderer *ren) override
Implement base class method.
vtkOpenGLProperty::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLProperty::PostRender
void PostRender(vtkActor *a, vtkRenderer *r) override
This method is called after the actor has been rendered.
vtkOpenGLProperty::New
static vtkOpenGLProperty * New()
vtkOpenGLProperty::~vtkOpenGLProperty
~vtkOpenGLProperty() override
vtkOpenGLProperty::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this property.
vtkOpenGLProperty::Render
void Render(vtkActor *a, vtkRenderer *ren) override
Implement base class method.
vtkOpenGLProperty::RenderTextures
bool RenderTextures(vtkActor *actor, vtkRenderer *renderer)
Method called in vtkOpenGLProperty::Render() to render textures.
vtkOpenGLProperty::vtkOpenGLProperty
vtkOpenGLProperty()
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:66
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkProperty.h