VTK
vtkShader2Collection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShader2Collection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkShader2Collection_h
28 #define vtkShader2Collection_h
29 
30 #include "vtkRenderingOpenGLModule.h" // For export macro
31 #include "vtkCollection.h"
32 
33 class vtkShader2;
34 
35 class VTKRENDERINGOPENGL_EXPORT vtkShader2Collection : public vtkCollection
36 {
37  public:
38  static vtkShader2Collection *New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
47 
51  void AddItem(vtkShader2 *shader);
52 
56  vtkShader2 *GetNextShader();
57 
61  vtkShader2 *GetLastShader();
62 
67  vtkShader2 *GetNextShader(vtkCollectionSimpleIterator &cookie);
68 
75  void AddCollection(vtkShader2Collection *other);
76 
84  void RemoveCollection(vtkShader2Collection *other);
85 
91  bool HasVertexShaders();
92 
96  bool HasTessellationControlShaders();
97 
101  bool HasTessellationEvaluationShaders();
102 
106  bool HasGeometryShaders();
107 
114  bool HasFragmentShaders();
115 
119  void ReleaseGraphicsResources();
120 
121 protected:
124 
125  bool HasShadersOfType(int);
126 
127 private:
128  // hide the standard AddItem from the user and the compiler.
129  void AddItem(vtkObject *o);
130 
131  vtkShader2Collection(const vtkShader2Collection&) VTK_DELETE_FUNCTION;
132  void operator=(const vtkShader2Collection&) VTK_DELETE_FUNCTION;
133 };
134 
135 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
GLSL Shader.
Definition: vtkShader2.h:62
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
a list of Shader2 objects.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCollection * New()
Construct with empty list.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void AddItem(vtkObject *)
Add an object to the list.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51