Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkLogLookupTable Class Reference

map scalar values into colors using logarithmic (base 10) color table. More...

#include <vtkLogLookupTable.h>

Inheritance diagram for vtkLogLookupTable:

Inheritance graph
[legend]
Collaboration diagram for vtkLogLookupTable:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetTableRange (float min, float max)
void SetTableRange (float r[2])
unsigned char * MapValue (float v)
void MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement)

Static Public Methods

vtkLogLookupTable * New ()
int IsTypeOf (const char *type)
vtkLogLookupTable * SafeDownCast (vtkObject *o)

Protected Methods

 vtkLogLookupTable (int sze=256, int ext=256)
 ~vtkLogLookupTable ()
 vtkLogLookupTable (const vtkLogLookupTable &)
void operator= (const vtkLogLookupTable &)

Protected Attributes

float LogMinRange
float LogMaxRange
float UseAbsoluteValue

Detailed Description

map scalar values into colors using logarithmic (base 10) color table.

Date:
2000/12/10 20:08:12
Revision:
1.29

vtkLogLookupTable is an object that is used by mapper objects to map scalar values into rgba (red-green-blue-alpha transparency) color specification, or rgba into scalar values. The difference between this class and its superclass vtkLookupTable is that this class performs scalar mapping based on a logarithmic lookup process. (Uses log base 10.)

If non-positive ranges are encountered, then they are converted to positive values using absolute value.

See also:
vtkLookupTable
Examples:
vtkLogLookupTable (examples)

Definition at line 66 of file vtkLogLookupTable.h.


Constructor & Destructor Documentation

vtkLogLookupTable::vtkLogLookupTable int    sze = 256,
int    ext = 256
[protected]
 

vtkLogLookupTable::~vtkLogLookupTable   [inline, protected]
 

Definition at line 93 of file vtkLogLookupTable.h.

vtkLogLookupTable::vtkLogLookupTable const vtkLogLookupTable &    [inline, protected]
 

Definition at line 94 of file vtkLogLookupTable.h.


Member Function Documentation

vtkLogLookupTable* vtkLogLookupTable::New   [static]
 

Construct with range=(0,1); and hsv ranges set up for rainbow color table (from red to blue).

Reimplemented from vtkLookupTable.

virtual const char* vtkLogLookupTable::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

int vtkLogLookupTable::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

virtual int vtkLogLookupTable::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

vtkLogLookupTable* vtkLogLookupTable::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

void vtkLogLookupTable::PrintSelf ostream &    os,
vtkIndent    indent
[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 vtkLookupTable.

void vtkLogLookupTable::SetTableRange float    min,
float    max
[virtual]
 

Set the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value. (The log base 10 of these values is taken and mapping is performed in logarithmic space.)

Reimplemented from vtkLookupTable.

void vtkLogLookupTable::SetTableRange float    r[2] [inline]
 

Set/Get the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value.

Reimplemented from vtkLookupTable.

Definition at line 80 of file vtkLogLookupTable.h.

unsigned char* vtkLogLookupTable::MapValue float    v [virtual]
 

Given a scalar value v, return an rgba color value from lookup table. Mapping performed log base 10 (negative ranges are converted into positive values).

Reimplemented from vtkLookupTable.

void vtkLogLookupTable::MapScalarsThroughTable2 void *    input,
unsigned char *    output,
int    inputDataType,
int    numberOfValues,
int    inputIncrement,
int    outputIncrement
[virtual]
 

map a set of scalars through the lookup table

Reimplemented from vtkLookupTable.

void vtkLogLookupTable::operator= const vtkLogLookupTable &    [inline, protected]
 

Definition at line 95 of file vtkLogLookupTable.h.


Member Data Documentation

float vtkLogLookupTable::LogMinRange [protected]
 

Definition at line 97 of file vtkLogLookupTable.h.

float vtkLogLookupTable::LogMaxRange [protected]
 

Definition at line 98 of file vtkLogLookupTable.h.

float vtkLogLookupTable::UseAbsoluteValue [protected]
 

Definition at line 99 of file vtkLogLookupTable.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:52:50 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001