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:
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 
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 
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 
VTKINFOVISCORE_EXPORT
#define VTKINFOVISCORE_EXPORT
Definition: vtkInfovisCoreModule.h:15
vtkThresholdTable::New
static vtkThresholdTable * New()
vtkVariant.h
vtkThresholdTable::SetMinValue
virtual void SetMinValue(vtkVariant v)
Definition: vtkThresholdTable.h:71
vtkThresholdTable::vtkThresholdTable
vtkThresholdTable()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject::Modified
virtual void Modified()
vtkThresholdTable
Thresholds table rows.
Definition: vtkThresholdTable.h:43
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkThresholdTable::SetMaxValue
void SetMaxValue(double v)
Definition: vtkThresholdTable.h:110
vtkThresholdTable::ThresholdBetween
void ThresholdBetween(double lower, double upper)
Definition: vtkThresholdTable.h:119
vtkThresholdTable::MinValue
vtkVariant MinValue
Definition: vtkThresholdTable.h:134
vtkThresholdTable::~vtkThresholdTable
~vtkThresholdTable()
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkThresholdTable::GetMaxValue
virtual vtkVariant GetMaxValue()
Definition: vtkThresholdTable.h:90
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkThresholdTable::GetMinValue
virtual vtkVariant GetMinValue()
Definition: vtkThresholdTable.h:76
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInfovisCoreModule.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkThresholdTable::Mode
int Mode
Definition: vtkThresholdTable.h:136
vtkThresholdTable::SetMinValue
void SetMinValue(double v)
Definition: vtkThresholdTable.h:102
vtkThresholdTable::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTableAlgorithm.h
vtkThresholdTable::SetMaxValue
virtual void SetMaxValue(vtkVariant v)
Definition: vtkThresholdTable.h:85
vtkThresholdTable::MaxValue
vtkVariant MaxValue
Definition: vtkThresholdTable.h:135
vtkThresholdTable::ThresholdBetween
void ThresholdBetween(vtkVariant lower, vtkVariant upper)
vtkThresholdTable::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)