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 =========================================================================*/
22 #ifndef vtkOpenGLProperty_h
23 #define vtkOpenGLProperty_h
24 
25 #include "vtkRenderingOpenGL2Module.h" // For export macro
26 #include "vtkProperty.h"
27 
29 {
30 public:
31  static vtkOpenGLProperty *New();
33  virtual void PrintSelf(ostream& os, vtkIndent indent);
34 
36  void Render(vtkActor *a, vtkRenderer *ren);
37 
39  void BackfaceRender(vtkActor *a, vtkRenderer *ren);
40 
42 
44  virtual void PostRender(vtkActor *a,
45  vtkRenderer *r);
47 
51  virtual void ReleaseGraphicsResources(vtkWindow *win);
52 
53 protected:
56 
59  bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
60 
61 private:
62  vtkOpenGLProperty(const vtkOpenGLProperty&); // Not implemented.
63  void operator=(const vtkOpenGLProperty&); // Not implemented.
64 };
65 
66 #endif
virtual void Render(vtkActor *, vtkRenderer *)
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
static vtkProperty * New()
represent surface properties of a geometric object
Definition: vtkProperty.h:63
#define VTKRENDERINGOPENGL2_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:62
OpenGL property.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void PostRender(vtkActor *, vtkRenderer *)
virtual void BackfaceRender(vtkActor *, vtkRenderer *)
Definition: vtkProperty.h:91
virtual void ReleaseGraphicsResources(vtkWindow *win)