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
31class vtkWindow;
32
33class VTKRENDERINGOPENGL_EXPORT vtkOpenGLLightingPainter : public vtkLightingPainter
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
47 virtual double GetTimeToDraw()
48 { return this->TimeToDraw; }
49
50protected:
53
58 virtual void RenderInternal(vtkRenderer *renderer,
59 vtkActor *actor,
60 unsigned long typeflags,
61 bool forceCompileOnly);
62
63private:
64 vtkOpenGLLightingPainter(const vtkOpenGLLightingPainter&) VTK_DELETE_FUNCTION;
65 void operator=(const vtkOpenGLLightingPainter&) VTK_DELETE_FUNCTION;
66};
67
68#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class defining interface for painter that can handle lightin.
painter that manages lighting.
virtual double GetTimeToDraw()
This painter overrides GetTimeToDraw() to never pass the request to the delegate.
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Setups lighting state before calling render on delegate painter.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkOpenGLLightingPainter * New()
double TimeToDraw
Definition: vtkPainter.h:273
abstract specification for renderers
Definition: vtkRenderer.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35