• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Rendering/vtkShader2Collection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkShader2Collection.h,v $
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   vtkTypeRevisionMacro(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   
00078   bool HasFragmentShaders();
00079   
00081   bool HasGeometryShaders();
00082   
00084   void ReleaseGraphicsResources();
00085   
00086 protected:
00087   vtkShader2Collection();
00088   ~vtkShader2Collection();
00089 
00090 private:
00091   // hide the standard AddItem from the user and the compiler.
00092   void AddItem(vtkObject *o);
00093 
00094 private:
00095   vtkShader2Collection(const vtkShader2Collection&);  // Not implemented.
00096   void operator=(const vtkShader2Collection&);  // Not implemented.
00097 };
00098 
00099 #endif

Generated by  doxygen 1.7.1