00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkShader2Collection.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 =========================================================================*/ 00026 #ifndef __vtkShader2Collection_h 00027 #define __vtkShader2Collection_h 00028 00029 #include "vtkCollection.h" 00030 00031 class vtkShader2; 00032 00033 class VTK_RENDERING_EXPORT vtkShader2Collection : public vtkCollection 00034 { 00035 public: 00036 static vtkShader2Collection *New(); 00037 vtkTypeMacro(vtkShader2Collection,vtkCollection); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 void AddItem(vtkShader2 *pass); 00042 00044 vtkShader2 *GetNextShader(); 00045 00047 vtkShader2 *GetLastShader(); 00048 00049 //BTX 00051 00053 vtkShader2 *GetNextShader(vtkCollectionSimpleIterator &cookie); 00054 //ETX 00056 00061 void AddCollection(vtkShader2Collection *other); 00062 00068 void RemoveCollection(vtkShader2Collection *other); 00069 00073 bool HasVertexShaders(); 00074 00077 bool HasTessellationControlShaders(); 00078 00081 bool HasTessellationEvaluationShaders(); 00082 00084 bool HasGeometryShaders(); 00085 00089 bool HasFragmentShaders(); 00090 00092 void ReleaseGraphicsResources(); 00093 00094 protected: 00095 vtkShader2Collection(); 00096 ~vtkShader2Collection(); 00097 00098 private: 00099 // hide the standard AddItem from the user and the compiler. 00100 void AddItem(vtkObject *o); 00101 00102 private: 00103 vtkShader2Collection(const vtkShader2Collection&); // Not implemented. 00104 void operator=(const vtkShader2Collection&); // Not implemented. 00105 }; 00106 00107 #endif