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 "vtkPainter.h"
47 
50 class vtkPolyData;
51 
53 {
54 public:
56  virtual void PrintSelf(ostream &os, vtkIndent indent);
57 
59  vtkPolyData* GetInputAsPolyData();
60 
63  vtkPolyData* GetOutputAsPolyData();
64 
68  static vtkInformationIntegerKey* BUILD_NORMALS();
69 
71  static vtkInformationIntegerKey* DISABLE_SCALAR_COLOR();
72 
73  // Set the mapping between vtkPointData (vtkCellData) arrays and
74  // generic vertex attributes.
75  static vtkInformationObjectBaseKey* DATA_ARRAY_TO_VERTEX_ATTRIBUTE();
76 
78 
80  virtual void Render(vtkRenderer* renderer, vtkActor* actor,
81  unsigned long typeflags, bool forceCompileOnly);
83 
84 protected:
87 
88  int BuildNormals; // ivar synchornized with this->Information before
89  // RenderInternal() is called. The ivar are purposefully protected,
90  // the only way to affecting these from outside should be using
91  // the information object.
92  vtkSetMacro(BuildNormals, int);
93 
96  virtual void ProcessInformation(vtkInformation*);
97 
98 private:
99  vtkPolyDataPainter(const vtkPolyDataPainter &); // Not implemented.
100  void operator=(const vtkPolyDataPainter &); // Not implemented.
101 };
102 
103 #endif //_vtkPolyDataPainter_h