VTK
vtkDefaultPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDefaultPainter.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 =========================================================================*/
32 #ifndef __vtkDefaultPainter_h
33 #define __vtkDefaultPainter_h
34 
35 #include "vtkPainter.h"
36 
41 class vtkLightingPainter;
44 
46 {
47 public:
48  static vtkDefaultPainter *New();
49  vtkTypeMacro(vtkDefaultPainter, vtkPainter);
50  virtual void PrintSelf(ostream &os, vtkIndent indent);
51 
53 
54  void SetScalarsToColorsPainter(vtkScalarsToColorsPainter*);
55  vtkGetObjectMacro(ScalarsToColorsPainter, vtkScalarsToColorsPainter);
57 
59 
60  void SetClipPlanesPainter(vtkClipPlanesPainter*);
61  vtkGetObjectMacro(ClipPlanesPainter, vtkClipPlanesPainter);
63 
65 
66  void SetDisplayListPainter(vtkDisplayListPainter*);
67  vtkGetObjectMacro(DisplayListPainter, vtkDisplayListPainter);
69 
71 
72  void SetCompositePainter(vtkCompositePainter*);
73  vtkGetObjectMacro(CompositePainter, vtkCompositePainter);
75 
77 
78  void SetCoincidentTopologyResolutionPainter(
80  vtkGetObjectMacro(CoincidentTopologyResolutionPainter,
83 
85 
86  void SetLightingPainter(vtkLightingPainter*);
87  vtkGetObjectMacro(LightingPainter, vtkLightingPainter);
89 
91 
92  void SetRepresentationPainter(vtkRepresentationPainter*);
93  vtkGetObjectMacro(RepresentationPainter, vtkRepresentationPainter);
95 
97 
100  virtual void SetDelegatePainter(vtkPainter*);
101  virtual vtkPainter* GetDelegatePainter() { return this->DefaultPainterDelegate; }
103 
105 
110  virtual void Render(vtkRenderer* renderer, vtkActor* actor,
111  unsigned long typeflags, bool forceCompileOnly);
113 
118  virtual void ReleaseGraphicsResources(vtkWindow *);
119 
123  void UpdateBounds(double bounds[6]);
124 
125 protected:
128 
130  virtual void BuildPainterChain();
131 
133  virtual void ReportReferences(vtkGarbageCollector *collector);
134 
143 
145  void SetDefaultPainterDelegate(vtkPainter*);
146 
147 private:
148  vtkDefaultPainter(const vtkDefaultPainter &); // Not implemented
149  void operator=(const vtkDefaultPainter &); // Not implemented
150 };
151 
152 #endif //_vtkDefaultPainter_h
153