VTK  9.0.1
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 // STL includes
32 #include <vector>
33 
34 // Forward declarations
35 class vtkWindow;
36 
37 template <class T>
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
49  virtual void Create(std::size_t numberOfTables);
50 
54  T* GetTable(std::size_t i) const;
55 
59  std::size_t GetNumberOfTables() const;
60 
65 
66 protected:
68  virtual ~vtkOpenGLVolumeLookupTables() override;
69 
70  std::vector<T*> Tables;
71 
72 private:
74  void operator=(const vtkOpenGLVolumeLookupTables&) = delete;
75 };
76 
77 #include "vtkOpenGLVolumeLookupTables.txx"
78 
79 #endif // __VTK_WRAP__
80 #endif // vtkOpenGLVolumeLookupTables_h
81 // 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.
virtual ~vtkOpenGLVolumeLookupTables() override
static vtkOpenGLVolumeLookupTables< T > * New()
std::size_t GetNumberOfTables() const
Get number of tables.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38