Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ColorTable< TPixel > Class Template Reference
[Data Representation Objects]

#include <itkColorTable.h>

Inheritance diagram for itk::ColorTable< TPixel >:

Inheritance graph
[legend]
Collaboration diagram for itk::ColorTable< TPixel >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ColorTable Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer

Public Member Functions

virtual const char * GetNameOfClass () const
void UseDiscreteColors (void)
virtual unsigned int GetNumberOfColors ()
unsigned int size (void)
RGBPixel< TPixel > * GetColor (unsigned int colorId)
RGBPixel< TPixel > * color (unsigned int c)
bool SetColor (unsigned int c, TPixel r, TPixel g, TPixel b, const char *name="UserDefined")
unsigned int GetClosestColorTableId (TPixel r, TPixel g, TPixel b)
void UseGrayColors (unsigned int n=256)
void UseHeatColors (unsigned int n=256)
void UseRandomColors (unsigned int n=256)
void useDiscrete (void)
void useGray (unsigned int n=256)
void useHeat (unsigned int n=256)
TPixel GetColorComponent (unsigned int colorId, char rgb)
TPixel color (unsigned int c, char rgb)
char * GetColorName (unsigned int colorId)
char * colorName (unsigned int c)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 ColorTable ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~ColorTable ()

Protected Attributes

unsigned int m_NumberOfColors
RGBPixel< TPixel > * m_Color
char ** m_ColorName

Detailed Description

template<class TPixel>
class itk::ColorTable< TPixel >

itkColorTable Class define a Color table for image visualisation

Definition at line 33 of file itkColorTable.h.


Member Typedef Documentation

template<class TPixel>
typedef SmartPointer<const Self> itk::ColorTable< TPixel >::ConstPointer
 

Reimplemented from itk::Object.

Definition at line 40 of file itkColorTable.h.

template<class TPixel>
typedef SmartPointer<Self> itk::ColorTable< TPixel >::Pointer
 

Reimplemented from itk::Object.

Definition at line 39 of file itkColorTable.h.

template<class TPixel>
typedef ColorTable itk::ColorTable< TPixel >::Self
 

Standard class typedefs.

Reimplemented from itk::Object.

Definition at line 37 of file itkColorTable.h.

template<class TPixel>
typedef Object itk::ColorTable< TPixel >::Superclass
 

Reimplemented from itk::Object.

Definition at line 38 of file itkColorTable.h.


Constructor & Destructor Documentation

template<class TPixel>
itk::ColorTable< TPixel >::ColorTable  )  [protected]
 

template<class TPixel>
virtual itk::ColorTable< TPixel >::~ColorTable  )  [protected, virtual]
 


Member Function Documentation

template<class TPixel>
TPixel itk::ColorTable< TPixel >::color unsigned int  c,
char  rgb
 

Given the position in the table and the color returns the value.

Todo:
Needs renaming.

template<class TPixel>
RGBPixel<TPixel>* itk::ColorTable< TPixel >::color unsigned int  c  ) 
 

template<class TPixel>
char* itk::ColorTable< TPixel >::colorName unsigned int  c  ) 
 

Given the position in the table and the color returns the value.

Todo:
Needs renaming.

template<class TPixel>
unsigned int itk::ColorTable< TPixel >::GetClosestColorTableId TPixel  r,
TPixel  g,
TPixel  b
 

template<class TPixel>
RGBPixel<TPixel>* itk::ColorTable< TPixel >::GetColor unsigned int  colorId  ) 
 

template<class TPixel>
TPixel itk::ColorTable< TPixel >::GetColorComponent unsigned int  colorId,
char  rgb
 

Given the position in the table and the color returns the value.

Todo:
Needs renaming.

template<class TPixel>
char* itk::ColorTable< TPixel >::GetColorName unsigned int  colorId  ) 
 

Given the position in the table and the color returns the value.

Todo:
Needs renaming.

template<class TPixel>
virtual const char* itk::ColorTable< TPixel >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

template<class TPixel>
virtual unsigned int itk::ColorTable< TPixel >::GetNumberOfColors  )  [virtual]
 

template<class TPixel>
Pointer itk::ColorTable< TPixel >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TPixel>
void itk::ColorTable< TPixel >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.

template<class TPixel>
bool itk::ColorTable< TPixel >::SetColor unsigned int  c,
TPixel  r,
TPixel  g,
TPixel  b,
const char *  name = "UserDefined"
 

template<class TPixel>
unsigned int itk::ColorTable< TPixel >::size void   ) 
 

template<class TPixel>
void itk::ColorTable< TPixel >::useDiscrete void   )  [inline]
 

Badly named methods that require renaming and documentation.

Definition at line 62 of file itkColorTable.h.

template<class TPixel>
void itk::ColorTable< TPixel >::UseDiscreteColors void   ) 
 

Generate a lookup table of 8 discrete colors. The colors are Red, Purple, Aqua, Yellow, Green, Blue, Grey0.70, White.

template<class TPixel>
void itk::ColorTable< TPixel >::useGray unsigned int  n = 256  )  [inline]
 

Badly named methods that require renaming and documentation.

Definition at line 63 of file itkColorTable.h.

template<class TPixel>
void itk::ColorTable< TPixel >::UseGrayColors unsigned int  n = 256  ) 
 

Generate a lookuptable of n grayscale values. A ramp is generated from NonpositiveMin() to max() of the pixel type.

template<class TPixel>
void itk::ColorTable< TPixel >::useHeat unsigned int  n = 256  )  [inline]
 

Badly named methods that require renaming and documentation.

Definition at line 64 of file itkColorTable.h.

template<class TPixel>
void itk::ColorTable< TPixel >::UseHeatColors unsigned int  n = 256  ) 
 

Generate a lookuptable of n grayscale values. A ramp is generated from NonpositiveMin() to max() of the pixel type.

template<class TPixel>
void itk::ColorTable< TPixel >::UseRandomColors unsigned int  n = 256  ) 
 

Generate a lookuptable of n grayscale values. A ramp is generated from NonpositiveMin() to max() of the pixel type.


Member Data Documentation

template<class TPixel>
RGBPixel<TPixel>* itk::ColorTable< TPixel >::m_Color [protected]
 

Definition at line 92 of file itkColorTable.h.

template<class TPixel>
char** itk::ColorTable< TPixel >::m_ColorName [protected]
 

Definition at line 93 of file itkColorTable.h.

template<class TPixel>
unsigned int itk::ColorTable< TPixel >::m_NumberOfColors [protected]
 

Definition at line 91 of file itkColorTable.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 00:37:11 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000