VTK  9.1.0
vtkOpenGLVolumeLookupTables.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLVolumeLookupTables.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 =========================================================================*/
15 
16 /*=============================================================================
17 Copyright and License information
18 =============================================================================*/
25 #ifndef vtkOpenGLVolumeLookupTables_h
26 #define vtkOpenGLVolumeLookupTables_h
27 #ifndef __VTK_WRAP__
28 
29 #include "vtkObject.h"
30 
31 #include <vector> // for std::vector
32 
33 // Forward declarations
34 class vtkWindow;
35 
36 template <class T>
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  virtual void Create(std::size_t numberOfTables);
49 
53  T* GetTable(std::size_t i) const;
54 
58  std::size_t GetNumberOfTables() const;
59 
64 
65 protected:
68 
69  std::vector<T*> Tables;
70 
71 private:
73  void operator=(const vtkOpenGLVolumeLookupTables&) = delete;
74 };
75 
76 #include "vtkOpenGLVolumeLookupTables.txx" // template implementations
77 
78 #endif // __VTK_WRAP__
79 #endif // vtkOpenGLVolumeLookupTables_h
80 // VTK-HeaderTest-Exclude: vtkOpenGLVolumeLookupTables.h
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObject.h:63
Internal class that manages multiple lookup tables.
void ReleaseGraphicsResources(vtkWindow *win)
Release graphics resources.
virtual void Create(std::size_t numberOfTables)
Create internal lookup tables.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
T * GetTable(std::size_t i) const
Get access to the raw table pointer.
static vtkOpenGLVolumeLookupTables< T > * New()
~vtkOpenGLVolumeLookupTables() override
std::size_t GetNumberOfTables() const
Get number of tables.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39