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 "vtkRenderingOpenGLModule.h" // For export macro
47 #include "vtkPainter.h"
48 
51 class vtkPolyData;
52 
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  static vtkInformationObjectBaseKey* SHADER_DEVICE_ADAPTOR();
80 
82 
84  virtual void Render(vtkRenderer* renderer, vtkActor* actor,
85  unsigned long typeflags, bool forceCompileOnly);
87 
88 protected:
91 
92  int BuildNormals; // ivar synchornized with this->Information before
93  // RenderInternal() is called. The ivar are purposefully protected,
94  // the only way to affecting these from outside should be using
95  // the information object.
96  vtkSetMacro(BuildNormals, int);
97 
100  virtual void ProcessInformation(vtkInformation*);
101 
102 private:
103  vtkPolyDataPainter(const vtkPolyDataPainter &); // Not implemented.
104  void operator=(const vtkPolyDataPainter &); // Not implemented.
105 };
106 
107 #endif //_vtkPolyDataPainter_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
Store vtkAlgorithm input/output information.
virtual void ProcessInformation(vtkInformation *)
Definition: vtkPainter.h:202
abstract specification for renderers
Definition: vtkRenderer.h:63
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
Key for integer values in vtkInformation.
Key for vtkObjectBase values.
Abstract class for drawing poly data.
Definition: vtkPainter.h:63
virtual void Render(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Abstract class for drawing poly data.
virtual void PrintSelf(ostream &os, vtkIndent indent)