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