VTK
vtkThresholdTable.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkThresholdTable.h
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 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
35 #ifndef vtkThresholdTable_h
36 #define vtkThresholdTable_h
37 
38 #include "vtkInfovisCoreModule.h" // For export macro
39 #include "vtkTableAlgorithm.h"
40 #include "vtkVariant.h" // For vtkVariant arguments
41 
43 {
44 public:
45  static vtkThresholdTable* New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
49  //BTX
50  enum {
51  ACCEPT_LESS_THAN = 0,
52  ACCEPT_GREATER_THAN = 1,
53  ACCEPT_BETWEEN = 2,
54  ACCEPT_OUTSIDE = 3
55  };
56  //ETX
57 
59 
64  vtkSetClampMacro(Mode, int, 0, 3);
65  vtkGetMacro(Mode, int);
67 
69 
71  virtual void SetMinValue(vtkVariant v)
72  {
73  this->MinValue = v;
74  this->Modified();
75  }
77  {
78  return this->MinValue;
79  }
81 
83 
85  virtual void SetMaxValue(vtkVariant v)
86  {
87  this->MaxValue = v;
88  this->Modified();
89  }
91  {
92  return this->MaxValue;
93  }
95 
98  void ThresholdBetween(vtkVariant lower, vtkVariant upper);
99 
101 
102  void SetMinValue(double v)
103  {
104  this->SetMinValue(vtkVariant(v));
105  }
107 
109 
110  void SetMaxValue(double v)
111  {
112  this->SetMaxValue(vtkVariant(v));
113  }
115 
117 
119  void ThresholdBetween(double lower, double upper)
120  {
121  this->ThresholdBetween(vtkVariant(lower),vtkVariant(upper));
122  }
124 
125 protected:
128 
129  int RequestData(
133 
136  int Mode;
137 
138 private:
139  vtkThresholdTable(const vtkThresholdTable&); // Not implemented
140  void operator=(const vtkThresholdTable&); // Not implemented
141 };
142 
143 #endif
144 
void PrintSelf(ostream &os, vtkIndent indent)
Thresholds table rows.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
void ThresholdBetween(double lower, double upper)
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
void SetMaxValue(double v)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual vtkVariant GetMaxValue()
virtual void Modified()
#define VTKINFOVISCORE_EXPORT
virtual vtkVariant GetMinValue()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
virtual void SetMaxValue(vtkVariant v)
Store zero or more vtkInformation instances.
void SetMinValue(double v)
virtual void SetMinValue(vtkVariant v)