VTK
vtkPolyDataPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataPainter.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 =========================================================================*/
15 /*
16  * Copyright 2004 Sandia Corporation.
17  * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
18  * license for use of this work by or on behalf of the
19  * U.S. Government. Redistribution and use in source and binary forms, with
20  * or without modification, are permitted provided that this Notice and any
21  * statement of authorship are reproduced on all copies.
22  */
23 
44 #ifndef vtkPolyDataPainter_h
45 #define vtkPolyDataPainter_h
46 
47 #include "vtkRenderingOpenGLModule.h" // For export macro
48 #include "vtkPainter.h"
49 
52 class vtkPolyData;
53 
54 class VTKRENDERINGOPENGL_EXPORT vtkPolyDataPainter : public vtkPainter
55 {
56 public:
58  virtual void PrintSelf(ostream &os, vtkIndent indent);
59 
63  vtkPolyData* GetInputAsPolyData();
64 
69  vtkPolyData* GetOutputAsPolyData();
70 
76  static vtkInformationIntegerKey* BUILD_NORMALS();
77 
81  static vtkInformationIntegerKey* DISABLE_SCALAR_COLOR();
82 
83  // Set the mapping between vtkPointData (vtkCellData) arrays and
84  // generic vertex attributes.
85  static vtkInformationObjectBaseKey* DATA_ARRAY_TO_VERTEX_ATTRIBUTE();
86 
90  static vtkInformationObjectBaseKey* SHADER_DEVICE_ADAPTOR();
91 
96  virtual void Render(vtkRenderer* renderer, vtkActor* actor,
97  unsigned long typeflags, bool forceCompileOnly);
98 
99 protected:
102 
103  int BuildNormals; // ivar synchornized with this->Information before
104  // RenderInternal() is called. The ivar are purposefully protected,
105  // the only way to affecting these from outside should be using
106  // the information object.
107  vtkSetMacro(BuildNormals, int);
108 
113  virtual void ProcessInformation(vtkInformation*);
114 
115 private:
116  vtkPolyDataPainter(const vtkPolyDataPainter &) VTK_DELETE_FUNCTION;
117  void operator=(const vtkPolyDataPainter &) VTK_DELETE_FUNCTION;
118 };
119 
120 #endif //_vtkPolyDataPainter_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Store vtkAlgorithm input/output information.
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
Definition: vtkPainter.h:233
abstract specification for renderers
Definition: vtkRenderer.h:63
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
a simple class to control print indentation
Definition: vtkIndent.h:39
Key for integer values in vtkInformation.
Key for vtkObjectBase values.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Abstract class for drawing poly data.
Definition: vtkPainter.h:61
virtual void Render(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Generates rendering primitives of appropriate type(s).
Abstract class for drawing poly data.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.