VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/OpenGL/vtkStandardPolyDataPainter.h
Go to the documentation of this file.
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 "vtkRenderingOpenGLModule.h" // For export macro
00043 #include "vtkPolyDataPainter.h"
00044 
00045 class vtkCellArray;
00046 class vtkDataArray;
00047 class vtkPointData;
00048 class vtkPoints;
00049 class vtkShaderDeviceAdapter2;
00050 
00051 class VTKRENDERINGOPENGL_EXPORT vtkStandardPolyDataPainter : public vtkPolyDataPainter
00052 {
00053 public:
00054   vtkTypeMacro(vtkStandardPolyDataPainter, vtkPolyDataPainter);
00055   virtual void PrintSelf(ostream &os, vtkIndent indent);
00056   static vtkStandardPolyDataPainter *New();
00057 
00058   void AddMultiTextureCoordsArray(vtkDataArray * array);
00059 //BTX
00060 protected:
00061   vtkStandardPolyDataPainter();
00062   ~vtkStandardPolyDataPainter();
00063 
00065 
00067   virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
00068                               unsigned long typeflags, bool forceCompileOnly);
00070 
00071   void DrawCells(int mode, vtkCellArray *connectivity,
00072                  vtkIdType startCellId,
00073                  vtkShaderDeviceAdapter2 *shaderDevice2,
00074                  vtkRenderer *renderer,
00075                  int buildnormals, int interpolation);
00076 
00079   virtual void ProcessInformation(vtkInformation*);
00080 
00081   void UpdateGenericAttributesCache(vtkShaderDeviceAdapter2 *shaderDevice2);
00082 
00083   vtkIdType TotalCells;
00084 private:
00085   vtkStandardPolyDataPainter(const vtkStandardPolyDataPainter&); // Not implemented.
00086   void operator=(const vtkStandardPolyDataPainter&); // Not implemented.
00087 
00088   class vtkInternal;
00089   vtkInternal* Internal;
00090 //ETX
00091 };
00092 
00093 #endif //vtkStandardPolyDataPainter_h