VTK
vtkOpenGLLightingPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLLightingPainter.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 =========================================================================*/
25 #ifndef vtkOpenGLLightingPainter_h
26 #define vtkOpenGLLightingPainter_h
27 
28 #include "vtkRenderingOpenGLModule.h" // For export macro
29 #include "vtkLightingPainter.h"
30 
31 class vtkWindow;
32 
33 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLLightingPainter : public vtkLightingPainter
34 {
35 public:
36  static vtkOpenGLLightingPainter* New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
47  virtual double GetTimeToDraw()
48  { return this->TimeToDraw; }
49 
50 protected:
53 
58  virtual void RenderInternal(vtkRenderer *renderer,
59  vtkActor *actor,
60  unsigned long typeflags,
61  bool forceCompileOnly);
62 
63 private:
64  vtkOpenGLLightingPainter(const vtkOpenGLLightingPainter&) VTK_DELETE_FUNCTION;
65  void operator=(const vtkOpenGLLightingPainter&) VTK_DELETE_FUNCTION;
66 };
67 
68 #endif
painter that manages lighting.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Performs the actual rendering.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:63
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class defining interface for painter that can handle lightin.
virtual double GetTimeToDraw()
This painter overrides GetTimeToDraw() to never pass the request to the delegate. ...
static vtkLightingPainter * New()
double TimeToDraw
Definition: vtkPainter.h:273