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/*=============================================================================
17Copyright 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
34class vtkWindow;
35
36template <class T>
38{
39public:
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
65protected:
68
69 std::vector<T*> Tables;
70
71private:
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:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
Internal class that manages multiple lookup tables.
T * GetTable(std::size_t i) const
Get access to the raw table pointer.
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.
static vtkOpenGLVolumeLookupTables< T > * New()
~vtkOpenGLVolumeLookupTables() override
std::size_t GetNumberOfTables() const
Get number of tables.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39