VTK
dox/Rendering/vtkShader2Collection.h
Go to the documentation of this file.
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   
00042   unsigned long GetMTime();
00043 
00045   void AddItem(vtkShader2 *shader);
00046 
00048   vtkShader2 *GetNextShader();
00049 
00051   vtkShader2 *GetLastShader();
00052     
00053   //BTX
00055 
00057   vtkShader2 *GetNextShader(vtkCollectionSimpleIterator &cookie);
00058   //ETX
00060 
00065   void AddCollection(vtkShader2Collection *other);
00066   
00072   void RemoveCollection(vtkShader2Collection *other);
00073   
00077   bool HasVertexShaders();
00078   
00081   bool HasTessellationControlShaders();
00082   
00085   bool HasTessellationEvaluationShaders();
00086   
00088   bool HasGeometryShaders();
00089   
00093   bool HasFragmentShaders();
00094   
00096   void ReleaseGraphicsResources();
00097   
00098 protected:
00099   vtkShader2Collection();
00100   ~vtkShader2Collection();
00101 
00102 private:
00103   // hide the standard AddItem from the user and the compiler.
00104   void AddItem(vtkObject *o);
00105 
00106 private:
00107   vtkShader2Collection(const vtkShader2Collection&);  // Not implemented.
00108   void operator=(const vtkShader2Collection&);  // Not implemented.
00109 };
00110 
00111 #endif