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 "vtkRenderingOpenGLModule.h" // For export macro
31 #include "vtkPolyDataPainter.h"
32 
34 {
35 public:
36  static vtkChooserPainter *New();
38  void PrintSelf(ostream &os, vtkIndent indent);
39 
40  void SetVertPainter(vtkPolyDataPainter*);
41  void SetLinePainter(vtkPolyDataPainter*);
42  void SetPolyPainter(vtkPolyDataPainter*);
43  void SetStripPainter(vtkPolyDataPainter*);
44 
46 
48  vtkSetMacro(UseLinesPainterForWireframes, int);
49  vtkGetMacro(UseLinesPainterForWireframes, int);
50  vtkBooleanMacro(UseLinesPainterForWireframes, int);
52 
54 
58 protected:
62 
67 
68 
69 
75  virtual void PrepareForRendering(vtkRenderer*, vtkActor*);
76 
79  virtual void ChoosePainters(vtkRenderer *renderer, vtkActor*);
80 
82 
84  virtual void SelectPainters(vtkRenderer *renderer, vtkActor* actor,
85  const char *&vertpaintertype,
86  const char *&linepaintertype,
87  const char *&polypaintertype,
88  const char *&strippaintertype);
90 
92  virtual void UpdateChoosenPainters();
93 
95  virtual vtkPolyDataPainter *CreatePainter(const char *paintertype);
96 
98 
103  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
104  unsigned long typeflags, bool forceCompileOnly);
106 
108  virtual void ReportReferences(vtkGarbageCollector *collector);
109 
112 
114 private:
115  vtkChooserPainter(const vtkChooserPainter &); // Not implemented
116  void operator=(const vtkChooserPainter &); // Not implemented
117 };
118 
119 #endif //_vtkChooserPainter_h
vtkTimeStamp PaintersChoiceTime
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
virtual void ReportReferences(vtkGarbageCollector *collector)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void PrepareForRendering(vtkRenderer *, vtkActor *)
Definition: vtkPainter.h:184
abstract specification for renderers
Definition: vtkRenderer.h:63
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPolyDataPainter * PolyPainter
#define VTKRENDERINGOPENGL_EXPORT
vtkPolyDataPainter * StripPainter
vtkPolyDataPainter * VertPainter
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyDataPainter * LinePainter
static vtkObject * New()
Painter that selects painters to render primitives.
Abstract class for drawing poly data.
vtkRenderer * LastRenderer