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) override;
39 
47  double GetTimeToDraw() override
48  { return this->TimeToDraw; }
49 
50 protected:
52  ~vtkOpenGLLightingPainter() override;
53 
58  void RenderInternal(vtkRenderer *renderer,
59  vtkActor *actor,
60  unsigned long typeflags,
61  bool forceCompileOnly) override;
62 
63 private:
65  void operator=(const vtkOpenGLLightingPainter&) = delete;
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.
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
double GetTimeToDraw() override
This painter overrides GetTimeToDraw() to never pass the request to the delegate.
abstract class defining interface for painter that can handle lightin.
static vtkLightingPainter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double TimeToDraw
Definition: vtkPainter.h:273