VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkStandardPolyDataPainter.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /* 00016 * Copyright 2004 Sandia Corporation. 00017 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00018 * license for use of this work by or on behalf of the 00019 * U.S. Government. Redistribution and use in source and binary forms, with 00020 * or without modification, are permitted provided that this Notice and any 00021 * statement of authorship are reproduced on all copies. 00022 */ 00023 00039 #ifndef __vtkStandardPolyDataPainter_h 00040 #define __vtkStandardPolyDataPainter_h 00041 00042 #include "vtkRenderingCoreModule.h" // For export macro 00043 #include "vtkPolyDataPainter.h" 00044 00045 class vtkCellArray; 00046 class vtkDataArray; 00047 class vtkPointData; 00048 class vtkPoints; 00049 class vtkShaderDeviceAdapter; 00050 class vtkShaderDeviceAdapter2; 00051 00052 class VTKRENDERINGCORE_EXPORT vtkStandardPolyDataPainter : public vtkPolyDataPainter 00053 { 00054 public: 00055 vtkTypeMacro(vtkStandardPolyDataPainter, vtkPolyDataPainter); 00056 virtual void PrintSelf(ostream &os, vtkIndent indent); 00057 static vtkStandardPolyDataPainter *New(); 00058 00059 void AddMultiTextureCoordsArray(vtkDataArray * array); 00060 //BTX 00061 protected: 00062 vtkStandardPolyDataPainter(); 00063 ~vtkStandardPolyDataPainter(); 00064 00066 00068 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00069 unsigned long typeflags, bool forceCompileOnly); 00071 00072 void DrawCells(int mode, vtkCellArray *connectivity, 00073 vtkIdType startCellId, 00074 vtkShaderDeviceAdapter *shaderDevice, 00075 vtkShaderDeviceAdapter2 *shaderDevice2, 00076 vtkRenderer *renderer, 00077 int buildnormals, int interpolation); 00078 00081 virtual void ProcessInformation(vtkInformation*); 00082 00083 void UpdateGenericAttributesCache(vtkShaderDeviceAdapter *shaderDevice, 00084 vtkShaderDeviceAdapter2 *shaderDevice2); 00085 00086 vtkIdType TotalCells; 00087 private: 00088 vtkStandardPolyDataPainter(const vtkStandardPolyDataPainter&); // Not implemented. 00089 void operator=(const vtkStandardPolyDataPainter&); // Not implemented. 00090 00091 class vtkInternal; 00092 vtkInternal* Internal; 00093 //ETX 00094 }; 00095 00096 #endif //__vtkStandardPolyDataPainter_h