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