VTK
9.0.1
Filters
Extraction
vtkExtractSelectedThresholds.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractSelectedThresholds.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
=========================================================================*/
34
#ifndef vtkExtractSelectedThresholds_h
35
#define vtkExtractSelectedThresholds_h
36
37
#include "
vtkExtractSelectionBase.h
"
38
#include "vtkFiltersExtractionModule.h"
// For export macro
39
40
class
vtkDataArray
;
41
class
vtkSelection
;
42
class
vtkSelectionNode
;
43
class
vtkTable
;
44
45
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractSelectedThresholds
:
public
vtkExtractSelectionBase
46
{
47
public
:
48
vtkTypeMacro(
vtkExtractSelectedThresholds
,
vtkExtractSelectionBase
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
54
static
vtkExtractSelectedThresholds
*
New
();
55
62
static
int
EvaluateValue
(
vtkDataArray
* scalars,
vtkIdType
id
,
vtkDataArray
* lims)
63
{
64
return
vtkExtractSelectedThresholds::EvaluateValue
(scalars, 0,
id
, lims);
65
}
66
72
static
int
EvaluateValue(
73
vtkDataArray
* array,
int
array_component_no,
vtkIdType
id
,
vtkDataArray
* lims);
74
83
static
int
EvaluateValue
(
vtkDataArray
* scalars,
vtkIdType
id
,
vtkDataArray
* lims,
int
* AboveCount,
84
int
* BelowCount,
int
* InsideCount)
85
{
86
return
vtkExtractSelectedThresholds::EvaluateValue
(
87
scalars, 0,
id
, lims, AboveCount, BelowCount, InsideCount);
88
}
89
95
static
int
EvaluateValue(
vtkDataArray
* scalars,
int
array_component_no,
vtkIdType
id
,
96
vtkDataArray
* lims,
int
* AboveCount,
int
* BelowCount,
int
* InsideCount);
97
98
protected
:
99
vtkExtractSelectedThresholds
();
100
~
vtkExtractSelectedThresholds
()
override
;
101
102
// Usual data generation method
103
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
104
105
int
ExtractCells(
106
vtkSelectionNode
* sel,
vtkDataSet
* input,
vtkDataSet
* output,
int
usePointScalars);
107
int
ExtractPoints(
vtkSelectionNode
* sel,
vtkDataSet
* input,
vtkDataSet
* output);
108
109
int
ExtractRows(
vtkSelectionNode
* sel,
vtkTable
* input,
vtkTable
* output);
110
111
private
:
112
vtkExtractSelectedThresholds
(
const
vtkExtractSelectedThresholds
&) =
delete
;
113
void
operator=(
const
vtkExtractSelectedThresholds
&) =
delete
;
114
};
115
116
#endif
vtkExtractSelectionBase.h
vtkSelectionNode
A node in a selection tree. Used to store selection results.
Definition:
vtkSelectionNode.h:61
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:62
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
Function for determining whether a value in a data array passes the threshold test(s) provided in lim...
Definition:
vtkExtractSelectedThresholds.h:83
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:49
vtkSelection
data object that represents a "selection" in VTK.
Definition:
vtkSelection.h:57
vtkExtractSelectedThresholds
extract a cells or points from a dataset that have values within a set of thresholds.
Definition:
vtkExtractSelectedThresholds.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims)
Function for determining whether a value in a data array passes the threshold test(s) provided in lim...
Definition:
vtkExtractSelectedThresholds.h:62
vtkDataSet
abstract class to specify dataset behavior
Definition:
vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:73
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition:
vtkExtractSelectionBase.h:30
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition:
vtkDataObjectAlgorithm.h:116
vtkExtractSelectionBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17