VTK
vtkPrimitivePainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPrimitivePainter.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 =========================================================================*/
28 #ifndef vtkPrimitivePainter_h
29 #define vtkPrimitivePainter_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkPolyDataPainter.h"
33 
34 class vtkDataArray;
35 class vtkPoints;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  vtkGetMacro(SupportedPrimitive, int);
49 
50 protected:
53 
54  //BTX
55  enum {
56  VTK_PDM_NORMALS = 0x001,
57  VTK_PDM_COLORS = 0x002,
58  VTK_PDM_TCOORDS = 0x004,
59  VTK_PDM_CELL_COLORS = 0x008,
60  VTK_PDM_CELL_NORMALS = 0x010,
61  VTK_PDM_OPAQUE_COLORS = 0x020,
62  VTK_PDM_FIELD_COLORS = 0x040,
63  VTK_PDM_EDGEFLAGS = 0x080,
64  VTK_PDM_GENERIC_VERTEX_ATTRIBUTES = 0x100
65  };
66  //ETX
67 
73  virtual void PrepareForRendering(vtkRenderer*, vtkActor*);
74 
77  virtual void ProcessInformation(vtkInformation*);
78 
81  virtual vtkDataObject* GetOutput();
82 
84 
93  virtual int RenderPrimitive(unsigned long flags, vtkDataArray* n,
96 
98 
104  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
105  unsigned long typeflags,
106  bool forceCompileOnly);
108 
110  virtual void ReportReferences(vtkGarbageCollector *collector);
111 
112  int SupportedPrimitive; // must be set by subclasses.
113  vtkSetMacro(SupportedPrimitive, int);
114 
115  int DisableScalarColor;
116 
121 
122 private:
123  vtkPrimitivePainter(const vtkPrimitivePainter&); // Not implemented.
124  void operator=(const vtkPrimitivePainter&); // Not implemented.
125 };
126 
127 #endif
superclass for class that handle single privmitives.
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)
Store vtkAlgorithm input/output information.
virtual void ReportReferences(vtkGarbageCollector *collector)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual vtkDataObject * GetOutput()
Definition: vtkPainter.h:156
virtual void PrepareForRendering(vtkRenderer *, vtkActor *)
Definition: vtkPainter.h:184
abstract specification for renderers
Definition: vtkRenderer.h:63
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
Detect and break reference loops.
virtual void ProcessInformation(vtkInformation *)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of unsigned char
general representation of visualization data
Definition: vtkDataObject.h:64
represent and manipulate 3D points
Definition: vtkPoints.h:38
Abstract class for drawing poly data.