FilterCell.h 1.51 KB
Newer Older
1 2 3 4 5 6 7 8
//============================================================================
//  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.
//
9
//  Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
10 11 12
//  Copyright 2014 UT-Battelle, LLC.
//  Copyright 2014 Los Alamos National Security.
//
13
//  Under the terms of Contract DE-NA0003525 with NTESS,
14 15 16 17 18 19 20 21 22 23
//  the U.S. Government retains certain rights in this software.
//
//  Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
//  Laboratory (LANL), the U.S. Government retains certain rights in
//  this software.
//============================================================================

#ifndef vtk_m_filter_CellFilter_h
#define vtk_m_filter_CellFilter_h

24
#include <vtkm/filter/FilterField.h>
25

26 27 28 29
namespace vtkm
{
namespace filter
{
30

31 32
template <class Derived>
class FilterCell : public vtkm::filter::FilterField<Derived>
33 34
{
public:
35
  VTKM_CONT
36
  FilterCell();
37

38 39 40
  VTKM_CONT
  ~FilterCell();

41
  VTKM_CONT
42
  void SetActiveCellSetIndex(vtkm::Id index) { this->CellSetIndex = index; }
43

44
  VTKM_CONT
45
  vtkm::Id GetActiveCellSetIndex() const { return this->CellSetIndex; }
46 47 48 49 50 51 52

protected:
  vtkm::Id CellSetIndex;
};
}
} // namespace vtkm::filter

53
#include <vtkm/filter/FilterCell.hxx>
54

55
#endif // vtk_m_filter_CellFilter_h