VTK  9.1.0
vtkOpenGLProperty.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLProperty.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=========================================================================*/
23#ifndef vtkOpenGLProperty_h
24#define vtkOpenGLProperty_h
25
26#include "vtkProperty.h"
27#include "vtkRenderingOpenGL2Module.h" // For export macro
28
29class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLProperty : public vtkProperty
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
39 void Render(vtkActor* a, vtkRenderer* ren) override;
40
44 void BackfaceRender(vtkActor* a, vtkRenderer* ren) override;
45
51 void PostRender(vtkActor* a, vtkRenderer* r) override;
52
59
60protected:
63
68 bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
69
70private:
71 vtkOpenGLProperty(const vtkOpenGLProperty&) = delete;
72 void operator=(const vtkOpenGLProperty&) = delete;
73};
74
75#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
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
Definition: vtkProperty.h:171
abstract specification for renderers
Definition: vtkRenderer.h:182
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39