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 
74 
78 
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 
116 
121 
122 private:
123  vtkPrimitivePainter(const vtkPrimitivePainter&); // Not implemented.
124  void operator=(const vtkPrimitivePainter&); // Not implemented.
125 };
126 
127 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPrimitivePainter::ProcessInformation
virtual void ProcessInformation(vtkInformation *)
vtkPrimitivePainter::OutputUpdateTime
vtkTimeStamp OutputUpdateTime
Definition: vtkPrimitivePainter.h:118
vtkPrimitivePainter::vtkPrimitivePainter
vtkPrimitivePainter()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkRenderingOpenGLModule.h
vtkgl::flags
GLbitfield flags
Definition: vtkgl.h:13750
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkPolyDataPainter
Abstract class for drawing poly data.
Definition: vtkPolyDataPainter.h:54
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkPrimitivePainter::OutputData
vtkPolyData * OutputData
Definition: vtkPrimitivePainter.h:117
vtkPrimitivePainter::MultiTextureAttributes
bool MultiTextureAttributes
Definition: vtkPrimitivePainter.h:120
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPrimitivePainter::GetOutput
virtual vtkDataObject * GetOutput()
vtkPrimitivePainter::DisableScalarColor
int DisableScalarColor
Definition: vtkPrimitivePainter.h:113
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkPrimitivePainter
superclass for class that handle single privmitives.
Definition: vtkPrimitivePainter.h:39
vtkPrimitivePainter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPrimitivePainter::RenderPrimitive
virtual int RenderPrimitive(unsigned long flags, vtkDataArray *n, vtkUnsignedCharArray *c, vtkDataArray *t, vtkRenderer *ren)=0
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPrimitivePainter::~vtkPrimitivePainter
~vtkPrimitivePainter()
vtkPrimitivePainter::SupportedPrimitive
int SupportedPrimitive
Definition: vtkPrimitivePainter.h:112
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
vtkPrimitivePainter::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *collector)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkPrimitivePainter::GenericVertexAttributes
bool GenericVertexAttributes
Definition: vtkPrimitivePainter.h:119
vtkPrimitivePainter::PrepareForRendering
virtual void PrepareForRendering(vtkRenderer *, vtkActor *)
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkPolyDataPainter.h
vtkPrimitivePainter::RenderInternal
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
VTKRENDERINGOPENGL_EXPORT
#define VTKRENDERINGOPENGL_EXPORT
Definition: vtkRenderingOpenGLModule.h:15