VTK
vtkChooserPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkChooserPainter.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 =========================================================================*/
27 #ifndef __vtkChooserPainter_h
28 #define __vtkChooserPainter_h
29 
30 #include "vtkPolyDataPainter.h"
31 
33 {
34 public:
35  static vtkChooserPainter *New();
37  void PrintSelf(ostream &os, vtkIndent indent);
38 
39  void SetVertPainter(vtkPolyDataPainter*);
40  void SetLinePainter(vtkPolyDataPainter*);
41  void SetPolyPainter(vtkPolyDataPainter*);
42  void SetStripPainter(vtkPolyDataPainter*);
43 
45 
47  vtkSetMacro(UseLinesPainterForWireframes, int);
48  vtkGetMacro(UseLinesPainterForWireframes, int);
49  vtkBooleanMacro(UseLinesPainterForWireframes, int);
51 
53 
57 protected:
61 
66 
67 
68 
74  virtual void PrepareForRendering(vtkRenderer*, vtkActor*);
75 
78  virtual void ChoosePainters(vtkRenderer *renderer, vtkActor*);
79 
81 
83  virtual void SelectPainters(vtkRenderer *renderer, vtkActor* actor,
84  const char *&vertpaintertype,
85  const char *&linepaintertype,
86  const char *&polypaintertype,
87  const char *&strippaintertype);
89 
91  virtual void UpdateChoosenPainters();
92 
94  virtual vtkPolyDataPainter *CreatePainter(const char *paintertype);
95 
97 
102  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
103  unsigned long typeflags, bool forceCompileOnly);
105 
107  virtual void ReportReferences(vtkGarbageCollector *collector);
108 
111 
113 private:
114  vtkChooserPainter(const vtkChooserPainter &); // Not implemented
115  void operator=(const vtkChooserPainter &); // Not implemented
116 };
117 
118 #endif //_vtkChooserPainter_h
119