VTK  9.0.1
vtkDirectionEncoder.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDirectionEncoder.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 
33 #ifndef vtkDirectionEncoder_h
34 #define vtkDirectionEncoder_h
35 
36 #include "vtkObject.h"
37 #include "vtkRenderingVolumeModule.h" // For export macro
38 
39 class VTKRENDERINGVOLUME_EXPORT vtkDirectionEncoder : public vtkObject
40 {
41 public:
43 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
53  virtual int GetEncodedDirection(float n[3]) = 0;
54 
58  virtual float* GetDecodedGradient(int value) VTK_SIZEHINT(3) = 0;
59 
63  virtual int GetNumberOfEncodedDirections(void) = 0;
64 
71  virtual float* GetDecodedGradientTable(void) = 0;
72 
73 protected:
75  ~vtkDirectionEncoder() override {}
76 
77 private:
79  void operator=(const vtkDirectionEncoder&) = delete;
80 };
81 
82 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
encode a direction into a one or two byte value
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
#define VTK_SIZEHINT(...)