-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
vtkmThreshold.h
58 lines (51 loc) · 1.98 KB
/
vtkmThreshold.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
// Copyright 2012 Sandia Corporation.
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this software.
//
//=============================================================================
/**
* @class vtkmThreshold
* @brief extracts cells where scalar value in cell satisfies threshold criterion
*
* vtkmThreshold is a filter that extracts cells from any dataset type that
* satisfy a threshold criterion. A cell satisfies the criterion if the
* scalar value of every point or cell satisfies the criterion. The
* criterion takes the form of between two values. The output of this
* filter is an unstructured grid.
*
* Note that scalar values are available from the point and cell attribute
* data. By default, point data is used to obtain scalars, but you can
* control this behavior. See the AttributeMode ivar below.
*
*/
#ifndef vtkmThreshold_h
#define vtkmThreshold_h
#include "vtkThreshold.h"
#include "vtkAcceleratorsVTKmModule.h" //required for correct implementation
class VTKACCELERATORSVTKM_EXPORT vtkmThreshold : public vtkThreshold
{
public:
vtkTypeMacro(vtkmThreshold,vtkThreshold)
void PrintSelf(ostream& os, vtkIndent indent) override;
static vtkmThreshold* New();
protected:
vtkmThreshold();
~vtkmThreshold();
virtual int RequestData(vtkInformation*, vtkInformationVector**,
vtkInformationVector*) override;
private:
vtkmThreshold(const vtkmThreshold&) = delete;
void operator=(const vtkmThreshold&) = delete;
};
#endif // vtkmThreshold_h
// VTK-HeaderTest-Exclude: vtkmThreshold.h