forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkmAverageToCells.h
54 lines (47 loc) · 1.85 KB
/
vtkmAverageToCells.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
//=============================================================================
//
// 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 vtkmAverageToPoints
* @brief Accelerated point to cell interpolation filter.
*
* vtkmAverageToPoints is a filter that transforms point data (i.e., data
* specified at cell points) into cell data (i.e., data specified per cell).
* The method of transformation is based on averaging the data
* values of all points used by particular cell. This filter will also
* pass through any existing point and cell arrays.
*
*/
#ifndef vtkmAverageToCells_h
#define vtkmAverageToCells_h
#include "vtkAcceleratorsVTKmModule.h" //required for correct implementation
#include "vtkDataSetAlgorithm.h"
class VTKACCELERATORSVTKM_EXPORT vtkmAverageToCells : public vtkDataSetAlgorithm
{
public:
vtkTypeMacro(vtkmAverageToCells, vtkDataSetAlgorithm)
void PrintSelf(ostream& os, vtkIndent indent) override;
static vtkmAverageToCells* New();
protected:
vtkmAverageToCells();
~vtkmAverageToCells();
virtual int RequestData(vtkInformation*, vtkInformationVector**,
vtkInformationVector*) override;
private:
vtkmAverageToCells(const vtkmAverageToCells&) = delete;
void operator=(const vtkmAverageToCells&) = delete;
};
#endif // vtkmAverageToCells_h
// VTK-HeaderTest-Exclude: vtkmAverageToCells.h