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:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
47 
51  void AddItem(vtkShader2 *shader);
52 
57 
62 
68 
76 
85 
92 
97 
102 
107 
115 
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
vtkShader2Collection::~vtkShader2Collection
~vtkShader2Collection()
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkCollection.h
vtkShader2Collection::vtkShader2Collection
vtkShader2Collection()
vtkShader2Collection
a list of Shader2 objects.
Definition: vtkShader2Collection.h:36
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkShader2Collection::HasGeometryShaders
bool HasGeometryShaders()
Tells if at least one of the shaders is a geometry shader.
vtkShader2Collection::GetNextShader
vtkShader2 * GetNextShader(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
vtkShader2Collection::HasVertexShaders
bool HasVertexShaders()
Tells if at least one of the shaders is a vertex shader.
vtkShader2Collection::GetNextShader
vtkShader2 * GetNextShader()
Get the next shader in the list.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkShader2Collection::AddCollection
void AddCollection(vtkShader2Collection *other)
Add the elements of ‘other’ to the end of ‘this’.
vtkShader2Collection::GetLastShader
vtkShader2 * GetLastShader()
Get the last shader in the list.
vtkShader2Collection::HasTessellationEvaluationShaders
bool HasTessellationEvaluationShaders()
Tells if at least one of the shaders is a tessellation evaluation shader.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkShader2Collection::AddItem
void AddItem(vtkShader2 *shader)
Add a shader to the list.
vtkShader2Collection::HasShadersOfType
bool HasShadersOfType(int)
vtkShader2Collection::GetMTime
vtkMTimeType GetMTime()
Modified GetMTime because the collection time depends on the content of the shaders.
vtkShader2Collection::HasFragmentShaders
bool HasFragmentShaders()
Tells if at least one of the shaders is a fragment shader.
vtkShader2
GLSL Shader.
Definition: vtkShader2.h:63
vtkCollection::AddItem
void AddItem(vtkObject *)
Add an object to the list.
vtkShader2Collection::ReleaseGraphicsResources
void ReleaseGraphicsResources()
Release OpenGL resources (shader id of each item).
vtkShader2Collection::HasTessellationControlShaders
bool HasTessellationControlShaders()
Tells if at least one of the shaders is a tessellation control shader.
vtkShader2Collection::New
static vtkShader2Collection * New()
vtkShader2Collection::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkShader2Collection::RemoveCollection
void RemoveCollection(vtkShader2Collection *other)
Remove the elements of ‘other’ from ‘this’.