//============================================================================ // 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. //============================================================================ #ifndef vtk_m_source_Source_h #define vtk_m_source_Source_h #include #include #include namespace vtkm { namespace source { class VTKM_SOURCE_EXPORT Source { public: VTKM_CONT virtual ~Source() = default; vtkm::cont::DataSet Execute() const { return this->DoExecute(); } protected: virtual vtkm::cont::DataSet DoExecute() const = 0; vtkm::cont::Invoker Invoke; }; } // namespace source } // namespace vtkm #endif // vtk_m_source_Source_h