VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkBoostLogWeighting.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostLogWeighting.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
39 #ifndef __vtkBoostLogWeighting_h
40 #define __vtkBoostLogWeighting_h
41 
42 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
43 #include "vtkArrayDataAlgorithm.h"
44 
45 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostLogWeighting : public vtkArrayDataAlgorithm
46 {
47 public:
48  static vtkBoostLogWeighting* New();
49  vtkTypeMacro(vtkBoostLogWeighting, vtkArrayDataAlgorithm);
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52 //BTX
53  enum
54  {
55  BASE_E = 0,
56  BASE_2 = 1
57  };
58 //ETX
59 
61 
62  vtkSetMacro(Base, int);
63  vtkGetMacro(Base, int);
65 
67 
68  vtkSetMacro(EmitProgress, bool);
69  vtkGetMacro(EmitProgress, bool);
70  vtkBooleanMacro(EmitProgress, bool);
72 
73 //BTX
74 protected:
77 
78  int RequestData(
79  vtkInformation*,
80  vtkInformationVector**,
81  vtkInformationVector*);
82 
83 private:
84  vtkBoostLogWeighting(const vtkBoostLogWeighting&); // Not implemented
85  void operator=(const vtkBoostLogWeighting&); // Not implemented
86 
87  int Base;
88  bool EmitProgress;
89 //ETX
90 };
91 
92 #endif
93 
Given an arbitrary-dimension array of doubles, replaces each value x with one of: ...