2018-04-05 21:12:20 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2018-04-05 21:12:20 +00:00
|
|
|
// 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_cont_BoundsGlobalCompute_h
|
|
|
|
#define vtk_m_cont_BoundsGlobalCompute_h
|
|
|
|
|
|
|
|
#include <vtkm/Bounds.h>
|
|
|
|
#include <vtkm/cont/vtkm_cont_export.h>
|
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace cont
|
|
|
|
{
|
|
|
|
|
|
|
|
class DataSet;
|
2019-09-02 14:38:47 +00:00
|
|
|
class PartitionedDataSet;
|
2018-04-05 21:12:20 +00:00
|
|
|
|
|
|
|
//@{
|
2019-09-02 14:38:47 +00:00
|
|
|
/// \brief Functions to compute bounds for a single dataset or partitioned
|
|
|
|
/// dataset globally
|
2018-04-05 21:12:20 +00:00
|
|
|
///
|
2019-09-02 14:38:47 +00:00
|
|
|
/// These are utility functions that compute bounds for a single dataset or
|
|
|
|
/// partitioned dataset globally i.e. across all ranks when operating in a
|
|
|
|
/// distributed environment. When VTK-m not operating in an distributed
|
|
|
|
/// environment, these behave same as `vtkm::cont::BoundsCompute`.
|
2018-04-05 21:12:20 +00:00
|
|
|
///
|
|
|
|
/// Note that if the provided CoordinateSystem does not exists, empty bounds
|
2019-09-02 14:38:47 +00:00
|
|
|
/// are returned. Likewise, for PartitionedDataSet, partitions without the
|
|
|
|
/// chosen CoordinateSystem are skipped.
|
2018-04-05 21:12:20 +00:00
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
VTKM_CONT
|
|
|
|
vtkm::Bounds BoundsGlobalCompute(const vtkm::cont::DataSet& dataset,
|
|
|
|
vtkm::Id coordinate_system_index = 0);
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
VTKM_CONT
|
2019-09-02 14:38:47 +00:00
|
|
|
vtkm::Bounds BoundsGlobalCompute(const vtkm::cont::PartitionedDataSet& pds,
|
2018-04-05 21:12:20 +00:00
|
|
|
vtkm::Id coordinate_system_index = 0);
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
VTKM_CONT
|
|
|
|
vtkm::Bounds BoundsGlobalCompute(const vtkm::cont::DataSet& dataset,
|
|
|
|
const std::string& coordinate_system_name);
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
VTKM_CONT
|
2019-09-02 14:38:47 +00:00
|
|
|
vtkm::Bounds BoundsGlobalCompute(const vtkm::cont::PartitionedDataSet& pds,
|
2018-04-05 21:12:20 +00:00
|
|
|
const std::string& coordinate_system_name);
|
|
|
|
//@}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|