1 /*=========================================================================
2 
3   Program:   Visualization Toolkit
4   Module:    vtkLogLookupTable.cxx
5 
6   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7   All rights reserved.
8   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10      This software is distributed WITHOUT ANY WARRANTY; without even
11      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12      PURPOSE.  See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #include "vtkLogLookupTable.h"
16 #include "vtkObjectFactory.h"
17 
18 #include <cmath>
19 
20 vtkStandardNewMacro(vtkLogLookupTable);
21 
22 // Construct with (minimum,maximum) range 1 to 10 (based on
23 // logarithmic values).
vtkLogLookupTable(int sze,int ext)24 vtkLogLookupTable::vtkLogLookupTable(int sze, int ext)
25   : vtkLookupTable(sze, ext)
26 {
27   this->Scale = VTK_SCALE_LOG10;
28 
29   this->TableRange[0] = 1;
30   this->TableRange[1] = 10;
31 }
32 
PrintSelf(ostream & os,vtkIndent indent)33 void vtkLogLookupTable::PrintSelf(ostream& os, vtkIndent indent)
34 {
35   this->Superclass::PrintSelf(os, indent);
36 }
37