VTK
vtkStandardPolyDataPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStandardPolyDataPainter.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 
39 #ifndef __vtkStandardPolyDataPainter_h
40 #define __vtkStandardPolyDataPainter_h
41 
42 #include "vtkRenderingCoreModule.h" // For export macro
43 #include "vtkPolyDataPainter.h"
44 
45 class vtkCellArray;
46 class vtkDataArray;
47 class vtkPointData;
48 class vtkPoints;
51 
52 class VTKRENDERINGCORE_EXPORT vtkStandardPolyDataPainter : public vtkPolyDataPainter
53 {
54 public:
56  virtual void PrintSelf(ostream &os, vtkIndent indent);
58 
59  void AddMultiTextureCoordsArray(vtkDataArray * array);
60 //BTX
61 protected:
64 
66 
68  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
69  unsigned long typeflags, bool forceCompileOnly);
71 
72  void DrawCells(int mode, vtkCellArray *connectivity,
73  vtkIdType startCellId,
74  vtkShaderDeviceAdapter *shaderDevice,
75  vtkShaderDeviceAdapter2 *shaderDevice2,
76  vtkRenderer *renderer,
77  int buildnormals, int interpolation);
78 
81  virtual void ProcessInformation(vtkInformation*);
82 
83  void UpdateGenericAttributesCache(vtkShaderDeviceAdapter *shaderDevice,
84  vtkShaderDeviceAdapter2 *shaderDevice2);
85 
87 private:
88  vtkStandardPolyDataPainter(const vtkStandardPolyDataPainter&); // Not implemented.
89  void operator=(const vtkStandardPolyDataPainter&); // Not implemented.
90 
91  class vtkInternal;
92  vtkInternal* Internal;
93 //ETX
94 };
95 
96 #endif //__vtkStandardPolyDataPainter_h