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 * GetClassName () const
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 useDiscrete (void)
void useGray (int n=256)
void useHeat (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>
virtual const char* itk::ColorTable< TPixel >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

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 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   ) 
 

Badly named methods that require renaming and documentation.

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

Badly named methods that require renaming and documentation.

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

Badly named methods that require renaming and documentation.


Member Data Documentation

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

Definition at line 79 of file itkColorTable.h.

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

Definition at line 80 of file itkColorTable.h.

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

Definition at line 78 of file itkColorTable.h.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 02:59:39 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000