Viskores  1.0
MergeDataSets.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_multi_block_MergeDataSets_h
19 #define viskores_filter_multi_block_MergeDataSets_h
20 
22 #include <viskores/filter/Filter.h>
24 
25 namespace viskores
26 {
27 namespace filter
28 {
29 namespace multi_block
30 {
42 class VISKORES_FILTER_MULTI_BLOCK_EXPORT MergeDataSets : public viskores::filter::Filter
43 {
44 public:
52  void SetInvalidValue(viskores::Float64 invalidValue) { this->InvalidValue = invalidValue; };
54  viskores::Float64 GetInvalidValue() { return this->InvalidValue; }
55 
56 private:
57  viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& inputDataSet) override;
58 
59  viskores::cont::PartitionedDataSet DoExecutePartitions(
60  const viskores::cont::PartitionedDataSet& input) override;
61 
62  viskores::Float64 InvalidValue = viskores::Nan64();
63 };
64 } // namespace multi_block
65 } // namesapce filter
66 } // namespace viskores
67 
68 #endif //viskores_filter_multi_block_MergeDataSets_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
ErrorFilterExecution.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores_filter_multi_block_export.h
viskores::filter::multi_block::MergeDataSets::GetInvalidValue
viskores::Float64 GetInvalidValue()
Specify the value to use where field values are missing.
Definition: MergeDataSets.h:54
viskores::cont::PartitionedDataSet
Comprises a set of viskores::cont::DataSet objects.
Definition: PartitionedDataSet.h:34
viskores::filter::multi_block::MergeDataSets
Merging multiple data sets into one data set.
Definition: MergeDataSets.h:42
viskores::filter::multi_block::MergeDataSets::SetInvalidValue
void SetInvalidValue(viskores::Float64 invalidValue)
Specify the value to use where field values are missing.
Definition: MergeDataSets.h:52
viskores::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:169
Filter.h