VTK-m
2.0
vtkm
filter
entity_extraction
MaskPoints.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
11
#ifndef vtk_m_filter_entity_extraction_MaskPoints_h
12
#define vtk_m_filter_entity_extraction_MaskPoints_h
13
14
#include <
vtkm/filter/FilterField.h
>
15
#include <vtkm/filter/entity_extraction/vtkm_filter_entity_extraction_export.h>
16
17
namespace
vtkm
18
{
19
namespace
filter
20
{
21
namespace
entity_extraction
22
{
26
class
VTKM_FILTER_ENTITY_EXTRACTION_EXPORT
MaskPoints
:
public
vtkm::filter::FilterField
27
{
28
public
:
29
// When CompactPoints is set, instead of copying the points and point fields
30
// from the input, the filter will create new compact fields without the unused elements
31
VTKM_CONT
32
bool
GetCompactPoints
()
const
{
return
this->CompactPoints; }
33
VTKM_CONT
34
void
SetCompactPoints
(
bool
value) { this->CompactPoints = value; }
35
36
VTKM_CONT
37
vtkm::Id
GetStride
()
const
{
return
this->Stride; }
38
VTKM_CONT
39
void
SetStride
(
vtkm::Id
stride) { this->Stride = stride; }
40
41
private
:
42
VTKM_CONT
43
vtkm::cont::DataSet
DoExecute(
const
vtkm::cont::DataSet
& input)
override
;
44
45
vtkm::Id
Stride = 1;
46
bool
CompactPoints =
true
;
47
};
48
}
// namespace eneity_extraction
49
}
// namespace filter
50
}
// namespace vtkm
51
52
#endif // vtk_m_filter_entity_extraction_MaskPoints_h
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::filter::entity_extraction::MaskPoints::GetCompactPoints
VTKM_CONT bool GetCompactPoints() const
Definition:
MaskPoints.h:32
vtkm::filter::entity_extraction::MaskPoints
Subselect points using a stride.
Definition:
MaskPoints.h:26
vtkm::filter::entity_extraction::MaskPoints::SetStride
VTKM_CONT void SetStride(vtkm::Id stride)
Definition:
MaskPoints.h:39
vtkm::cont::DataSet
Definition:
DataSet.h:34
vtkm::filter::entity_extraction::MaskPoints::SetCompactPoints
VTKM_CONT void SetCompactPoints(bool value)
Definition:
MaskPoints.h:34
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition:
Types.h:191
FilterField.h
vtkm::filter::FilterField
Definition:
FilterField.h:21
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
vtkm::filter::entity_extraction::MaskPoints::GetStride
VTKM_CONT vtkm::Id GetStride() const
Definition:
MaskPoints.h:37
Generated by
1.8.17