VTK-m
2.2
vtkm
filter
entity_extraction
ExtractPoints.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 vtkm_filter_entity_extraction_ExtractPoints_h
12
#define vtkm_filter_entity_extraction_ExtractPoints_h
13
14
#include <
vtkm/ImplicitFunction.h
>
15
16
#include <
vtkm/filter/Filter.h
>
17
#include <
vtkm/filter/entity_extraction/vtkm_filter_entity_extraction_export.h
>
18
19
namespace
vtkm
20
{
21
namespace
filter
22
{
23
namespace
entity_extraction
24
{
34
class
VTKM_FILTER_ENTITY_EXTRACTION_EXPORT
ExtractPoints
:
public
vtkm::filter::Filter
35
{
36
public
:
44
VTKM_CONT
45
bool
GetCompactPoints
()
const
{
return
this->CompactPoints; }
47
VTKM_CONT
48
void
SetCompactPoints
(
bool
value) { this->CompactPoints = value; }
49
55
void
SetImplicitFunction
(
const
vtkm::ImplicitFunctionGeneral
& func) { this->Function = func; }
56
57
const
vtkm::ImplicitFunctionGeneral
&
GetImplicitFunction
()
const
{
return
this->Function; }
58
65
VTKM_CONT
66
bool
GetExtractInside
()
const
{
return
this->ExtractInside; }
68
VTKM_CONT
69
void
SetExtractInside
(
bool
value) { this->ExtractInside = value; }
71
VTKM_CONT
72
void
ExtractInsideOn
() { this->ExtractInside =
true
; }
74
VTKM_CONT
75
void
ExtractInsideOff
() { this->ExtractInside =
false
; }
76
77
private
:
78
VTKM_CONT
79
vtkm::cont::DataSet
DoExecute(
const
vtkm::cont::DataSet
& input)
override
;
80
81
bool
ExtractInside =
true
;
82
vtkm::ImplicitFunctionGeneral
Function
;
83
84
bool
CompactPoints =
false
;
85
};
86
}
// namespace entity_extraction
87
}
// namespace filter
88
}
// namespace vtkm
89
90
#endif // vtkm_filter_entity_extraction_ExtractPoints_h
vtkm::ImplicitFunctionGeneral
Implicit function that can switch among known implicit function types.
Definition:
ImplicitFunction.h:965
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::filter::entity_extraction::ExtractPoints::ExtractInsideOff
void ExtractInsideOff()
Specify the region of the implicit function to keep points.
Definition:
ExtractPoints.h:75
VTKM_FILTER_ENTITY_EXTRACTION_EXPORT
#define VTKM_FILTER_ENTITY_EXTRACTION_EXPORT
Definition:
vtkm_filter_entity_extraction_export.h:44
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition:
DataSet.h:57
vtkm::filter::entity_extraction::ExtractPoints::SetCompactPoints
void SetCompactPoints(bool value)
Option to remove unused points and compact result int a smaller array.
Definition:
ExtractPoints.h:48
vtkm::filter::entity_extraction::ExtractPoints::GetImplicitFunction
const vtkm::ImplicitFunctionGeneral & GetImplicitFunction() const
Definition:
ExtractPoints.h:57
vtkm::filter::entity_extraction::ExtractPoints::ExtractInsideOn
void ExtractInsideOn()
Specify the region of the implicit function to keep points.
Definition:
ExtractPoints.h:72
vtkm::filter::Filter
Base class for all filters.
Definition:
Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
ImplicitFunction.h
vtkm::filter::entity_extraction::ExtractPoints::GetCompactPoints
bool GetCompactPoints() const
Option to remove unused points and compact result int a smaller array.
Definition:
ExtractPoints.h:45
vtkm_filter_entity_extraction_export.h
vtkm::filter::entity_extraction::ExtractPoints
Extract only points from a geometry using an implicit function.
Definition:
ExtractPoints.h:34
vtkm::filter::entity_extraction::ExtractPoints::Function
vtkm::ImplicitFunctionGeneral Function
Definition:
ExtractPoints.h:82
vtkm::filter::entity_extraction::ExtractPoints::GetExtractInside
bool GetExtractInside() const
Specify the region of the implicit function to keep points.
Definition:
ExtractPoints.h:66
vtkm::filter::entity_extraction::ExtractPoints::SetExtractInside
void SetExtractInside(bool value)
Specify the region of the implicit function to keep points.
Definition:
ExtractPoints.h:69
vtkm::filter::entity_extraction::ExtractPoints::SetImplicitFunction
void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral &func)
Specifies the implicit function to be used to perform extract points.
Definition:
ExtractPoints.h:55
Filter.h
Generated by
1.8.17