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 
43 #ifndef __vtkPolyDataPainter_h
44 #define __vtkPolyDataPainter_h
45 
46 #include "vtkRenderingCoreModule.h" // For export macro
47 #include "vtkPainter.h"
48 
51 class vtkPolyData;
52 
53 class VTKRENDERINGCORE_EXPORT vtkPolyDataPainter : public vtkPainter
54 {
55 public:
57  virtual void PrintSelf(ostream &os, vtkIndent indent);
58 
60  vtkPolyData* GetInputAsPolyData();
61 
64  vtkPolyData* GetOutputAsPolyData();
65 
69  static vtkInformationIntegerKey* BUILD_NORMALS();
70 
72  static vtkInformationIntegerKey* DISABLE_SCALAR_COLOR();
73 
74  // Set the mapping between vtkPointData (vtkCellData) arrays and
75  // generic vertex attributes.
76  static vtkInformationObjectBaseKey* DATA_ARRAY_TO_VERTEX_ATTRIBUTE();
77 
79 
81  virtual void Render(vtkRenderer* renderer, vtkActor* actor,
82  unsigned long typeflags, bool forceCompileOnly);
84 
85 protected:
88 
89  int BuildNormals; // ivar synchornized with this->Information before
90  // RenderInternal() is called. The ivar are purposefully protected,
91  // the only way to affecting these from outside should be using
92  // the information object.
93  vtkSetMacro(BuildNormals, int);
94 
97  virtual void ProcessInformation(vtkInformation*);
98 
99 private:
100  vtkPolyDataPainter(const vtkPolyDataPainter &); // Not implemented.
101  void operator=(const vtkPolyDataPainter &); // Not implemented.
102 };
103 
104 #endif //_vtkPolyDataPainter_h