VTK
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 "vtkRenderingVolumeModule.h" // For export macro
37#include "vtkObject.h"
38
39class VTKRENDERINGVOLUME_EXPORT vtkDirectionEncoder : public vtkObject
40{
41public:
43
47 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49
53 virtual int GetEncodedDirection( float n[3] )=0;
54
58 virtual float *GetDecodedGradient( int value )=0;
59
63 virtual int GetNumberOfEncodedDirections( void )=0;
64
71 virtual float *GetDecodedGradientTable( void )=0;
72
73protected:
76private:
77 vtkDirectionEncoder(const vtkDirectionEncoder&) VTK_DELETE_FUNCTION;
78 void operator=(const vtkDirectionEncoder&) VTK_DELETE_FUNCTION;
79};
80
81
82#endif
83
84
85
86
87
88
89
encode a direction into a one or two byte value
virtual int GetNumberOfEncodedDirections(void)=0
Return the number of encoded directions.
virtual int GetEncodedDirection(float n[3])=0
Given a normal vector n, return the encoded direction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual float * GetDecodedGradientTable(void)=0
Get the decoded gradient table.
virtual float * GetDecodedGradient(int value)=0
/ Given an encoded value, return a pointer to the normal vector
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ value
Definition: vtkX3D.h:220