Viskores
1.0
viskores
filter
density_estimate
ContinuousScatterPlot.h
Go to the documentation of this file.
1
//============================================================================
2
// The contents of this file are covered by the Viskores license. See
3
// LICENSE.txt for details.
4
//
5
// By contributing to this file, all contributors agree to the Developer
6
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7
//============================================================================
8
9
//============================================================================
10
// Copyright (c) Kitware, Inc.
11
// All rights reserved.
12
// See LICENSE.txt for details.
13
//
14
// This software is distributed WITHOUT ANY WARRANTY; without even
15
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16
// PURPOSE. See the above copyright notice for more information.
17
//============================================================================
18
#ifndef viskores_filter_density_estimate_ContinuousScatterPlot_h
19
#define viskores_filter_density_estimate_ContinuousScatterPlot_h
20
21
#include <
viskores/filter/Filter.h
>
22
#include <
viskores/filter/density_estimate/viskores_filter_density_estimate_export.h
>
23
24
namespace
viskores
25
{
26
namespace
filter
27
{
28
namespace
density_estimate
29
{
46
47
class
VISKORES_FILTER_DENSITY_ESTIMATE_EXPORT
ContinuousScatterPlot
48
:
public
viskores::filter::Filter
49
{
50
public
:
51
VISKORES_CONT
ContinuousScatterPlot
() { this->SetOutputFieldName(
"density"
); }
52
55
VISKORES_CONT
56
void
SetActiveFieldsPair
(
const
std::string& fieldName1,
const
std::string& fieldName2)
57
{
58
SetActiveField(0, fieldName1,
viskores::cont::Field::Association::Points
);
59
SetActiveField(1, fieldName2,
viskores::cont::Field::Association::Points
);
60
};
61
62
private
:
63
VISKORES_CONT
viskores::cont::DataSet
DoExecute(
const
viskores::cont::DataSet
& input)
override
;
64
};
65
}
// namespace density_estimate
66
}
// namespace filter
67
}
// namespace vtm
68
69
#endif //viskores_filter_density_estimate_ContinuousScatterPlot_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition:
DataSet.h:66
viskores::filter::density_estimate::ContinuousScatterPlot::SetActiveFieldsPair
void SetActiveFieldsPair(const std::string &fieldName1, const std::string &fieldName2)
Select both point fields to use when running the filter.
Definition:
ContinuousScatterPlot.h:56
viskores::filter::Filter
Base class for all filters.
Definition:
Filter.h:171
viskores_filter_density_estimate_export.h
viskores::filter::density_estimate::ContinuousScatterPlot::ContinuousScatterPlot
ContinuousScatterPlot()
Definition:
ContinuousScatterPlot.h:51
VISKORES_CONT
#define VISKORES_CONT
Definition:
ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::filter::density_estimate::ContinuousScatterPlot
Constructs the continuous scatterplot for two given scalar point fields of a mesh.
Definition:
ContinuousScatterPlot.h:47
viskores::cont::Field::Association::Points
@ Points
A field that applies to points.
Filter.h
Generated by
1.8.17