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 "vtkPolyDataPainter.h"
32 
33 class vtkDataArray;
34 class vtkPoints;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  vtkGetMacro(SupportedPrimitive, int);
48 
49 protected:
52 
53  //BTX
54  enum {
55  VTK_PDM_NORMALS = 0x001,
56  VTK_PDM_COLORS = 0x002,
57  VTK_PDM_TCOORDS = 0x004,
58  VTK_PDM_CELL_COLORS = 0x008,
59  VTK_PDM_CELL_NORMALS = 0x010,
60  VTK_PDM_OPAQUE_COLORS = 0x020,
61  VTK_PDM_FIELD_COLORS = 0x040,
62  VTK_PDM_EDGEFLAGS = 0x080,
63  VTK_PDM_GENERIC_VERTEX_ATTRIBUTES = 0x100
64  };
65  //ETX
66 
72  virtual void PrepareForRendering(vtkRenderer*, vtkActor*);
73 
76  virtual void ProcessInformation(vtkInformation*);
77 
80  virtual vtkDataObject* GetOutput();
81 
83 
92  virtual int RenderPrimitive(unsigned long flags, vtkDataArray* n,
95 
97 
103  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
104  unsigned long typeflags,
105  bool forceCompileOnly);
107 
109  virtual void ReportReferences(vtkGarbageCollector *collector);
110 
111  int SupportedPrimitive; // must be set by subclasses.
112  vtkSetMacro(SupportedPrimitive, int);
113 
114  int DisableScalarColor;
115 
120 
121 private:
122  vtkPrimitivePainter(const vtkPrimitivePainter&); // Not implemented.
123  void operator=(const vtkPrimitivePainter&); // Not implemented.
124 };
125 
126 #endif
superclass for class that handle single privmitives.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
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:33
virtual vtkDataObject * GetOutput()
Definition: vtkPainter.h:155
virtual void PrepareForRendering(vtkRenderer *, vtkActor *)
Definition: vtkPainter.h:183
abstract specification for renderers
Definition: vtkRenderer.h:69
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
Detect and break reference loops.
virtual void ProcessInformation(vtkInformation *)
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
virtual void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of unsigned char
#define VTK_RENDERING_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:70
represent and manipulate 3D points
Definition: vtkPoints.h:38
Abstract class for drawing poly data.