VTK
|
encode a direction into a one or two byte value More...
#include <vtkDirectionEncoder.h>
Public Member Functions | |
virtual int | GetEncodedDirection (float n[3])=0 |
virtual float * | GetDecodedGradient (int value)=0 |
virtual int | GetNumberOfEncodedDirections (void)=0 |
virtual float * | GetDecodedGradientTable (void)=0 |
Protected Member Functions | |
vtkDirectionEncoder () | |
~vtkDirectionEncoder () | |
typedef vtkObject | Superclass |
static int | IsTypeOf (const char *type) |
static vtkDirectionEncoder * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkDirectionEncoder * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
encode a direction into a one or two byte value
Given a direction, encode it into an integer value. This value should be less than 65536, which is the maximum number of encoded directions supported by this superclass. A direction encoded is used to encode normals in a volume for use during volume rendering, and the amount of space that is allocated per normal is 2 bytes. This is an abstract superclass - see the subclasses for specific implementation details.
Definition at line 38 of file vtkDirectionEncoder.h.
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
Definition at line 43 of file vtkDirectionEncoder.h.
vtkDirectionEncoder::vtkDirectionEncoder | ( | ) | [inline, protected] |
Definition at line 63 of file vtkDirectionEncoder.h.
vtkDirectionEncoder::~vtkDirectionEncoder | ( | ) | [inline, protected] |
Definition at line 64 of file vtkDirectionEncoder.h.
static int vtkDirectionEncoder::IsTypeOf | ( | const char * | type | ) | [static] |
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual int vtkDirectionEncoder::IsA | ( | const char * | type | ) | [virtual] |
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
static vtkDirectionEncoder* vtkDirectionEncoder::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual vtkObjectBase* vtkDirectionEncoder::NewInstanceInternal | ( | ) | const [protected, virtual] |
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual void vtkDirectionEncoder::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Get the name of this class
Reimplemented from vtkObject.
Reimplemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual int vtkDirectionEncoder::GetEncodedDirection | ( | float | n[3] | ) | [pure virtual] |
Given a normal vector n, return the encoded direction
Implemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual float* vtkDirectionEncoder::GetDecodedGradient | ( | int | value | ) | [pure virtual] |
/ Given an encoded value, return a pointer to the normal vector
Implemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual int vtkDirectionEncoder::GetNumberOfEncodedDirections | ( | void | ) | [pure virtual] |
Return the number of encoded directions
Implemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.
virtual float* vtkDirectionEncoder::GetDecodedGradientTable | ( | void | ) | [pure virtual] |
Get the decoded gradient table. There are this->GetNumberOfEncodedDirections() entries in the table, each containing a normal (direction) vector. This is a flat structure - 3 times the number of directions floats in an array.
Implemented in vtkRecursiveSphereDirectionEncoder, and vtkSphericalDirectionEncoder.