VTK
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 
29 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLProperty : public vtkProperty
30 {
31 public:
32  static vtkOpenGLProperty* New();
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 
58  void ReleaseGraphicsResources(vtkWindow* win) override;
59 
60 protected:
62  ~vtkOpenGLProperty() override;
63 
68  bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
69 
70 private:
71  vtkOpenGLProperty(const vtkOpenGLProperty&) = delete;
72  void operator=(const vtkOpenGLProperty&) = delete;
73 };
74 
75 #endif
vtkProperty::New
static vtkProperty * New()
Construct object with object color, ambient color, diffuse color, specular color, and edge color whit...
vtkOpenGLProperty
OpenGL property.
Definition: vtkOpenGLProperty.h:29
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkProperty.h
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkProperty::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *win)
Release any graphics resources that are being consumed by this property.
vtkProperty::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty::BackfaceRender
virtual void BackfaceRender(vtkActor *, vtkRenderer *)
This method renders the property as a backface property.
Definition: vtkProperty.h:95
vtkProperty::PostRender
virtual void PostRender(vtkActor *, vtkRenderer *)
This method is called after the actor has been rendered.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:58
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:61
vtkProperty::Render
virtual void Render(vtkActor *, vtkRenderer *)
This method causes the property to set up whatever is required for its instance variables.