Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkDirectionEncoder Class Reference

mitkDirectionEncoder - an abstract class to encode a direction into a one or two byte value More...

#include <mitkDirectionEncoder.h>

Inherits mitkObject.

Inherited by mitkRecursiveSphereDirectionEncoder.

Inheritance diagram for mitkDirectionEncoder:

Inheritance graph
[legend]
Collaboration diagram for mitkDirectionEncoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int GetEncodedDirection (float n[3])=0
virtual float * GetDecodedGradient (int value)=0
virtual int GetNumberOfEncodedDirections ()=0
virtual float * GetDecodedGradientTable ()=0

Detailed Description

mitkDirectionEncoder - an abstract class to encode a direction into a one or two byte value

mitkDirectionEncoder is an abstract class to encode a direction into a one or two byte value. Some codes are borrowed from VTK, and please see the copyright at end.


Member Function Documentation

virtual float* mitkDirectionEncoder::GetDecodedGradient int  value  )  [pure virtual]
 

Given an encoded value, return a pointer to the normal vector

Parameters:
value Represent the encoded value

Implemented in mitkRecursiveSphereDirectionEncoder.

virtual float* mitkDirectionEncoder::GetDecodedGradientTable  )  [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.

Returns:
Return the decoded gradient table

Implemented in mitkRecursiveSphereDirectionEncoder.

virtual int mitkDirectionEncoder::GetEncodedDirection float  n[3]  )  [pure virtual]
 

Given a normal vector n, return the encoded direction

Parameters:
n Represent the normal vector

Implemented in mitkRecursiveSphereDirectionEncoder.

virtual int mitkDirectionEncoder::GetNumberOfEncodedDirections  )  [pure virtual]
 

Get the number of encoded directions

Returns:
Return the number of encoded directions

Implemented in mitkRecursiveSphereDirectionEncoder.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:02:09 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3