mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 02:55:47 +00:00
reviewed version 1
This commit is contained in:
parent
ff4ce72d4e
commit
1d80d5b69c
@ -36,15 +36,16 @@ namespace cont
|
|||||||
class VTKM_CONT_EXPORT MultiBlock
|
class VTKM_CONT_EXPORT MultiBlock
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// creat a new MultiBlcok containng a single DataSet "ds"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
MultiBlock(const vtkm::cont::DataSet& ds);
|
MultiBlock(const vtkm::cont::DataSet& ds);
|
||||||
|
/// creat a new MultiBlcok with the exisiting one "src"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
MultiBlock(const vtkm::cont::MultiBlock& src);
|
MultiBlock(const vtkm::cont::MultiBlock& src);
|
||||||
|
/// creat a new MultiBlcok with a DataSet vector "mblocks"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
MultiBlock(const std::vector<vtkm::cont::DataSet>& mblocks);
|
MultiBlock(const std::vector<vtkm::cont::DataSet>& mblocks);
|
||||||
|
/// creat a new MultiBlcok with the capacity set to be "size"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
MultiBlock(vtkm::Id size);
|
MultiBlock(vtkm::Id size);
|
||||||
|
|
||||||
@ -56,9 +57,9 @@ public:
|
|||||||
|
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
~MultiBlock();
|
~MultiBlock();
|
||||||
|
/// get the field "field_name" from blcok "block_index"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
vtkm::cont::Field GetField(const std::string& field_name, const int& domain_index);
|
vtkm::cont::Field GetField(const std::string& field_name, const int& block_index);
|
||||||
|
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
vtkm::Id GetNumberOfBlocks() const;
|
vtkm::Id GetNumberOfBlocks() const;
|
||||||
@ -74,19 +75,19 @@ public:
|
|||||||
|
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
const std::vector<vtkm::cont::DataSet>& GetBlocks() const;
|
const std::vector<vtkm::cont::DataSet>& GetBlocks() const;
|
||||||
|
/// add DataSet "ds" to the end of the contained DataSet vector
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
void AddBlock(vtkm::cont::DataSet& ds);
|
void AddBlock(vtkm::cont::DataSet& ds);
|
||||||
|
/// add DataSet "ds" to position "index" of the contained DataSet vector
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
void InsertBlock(vtkm::Id index, vtkm::cont::DataSet& ds);
|
void InsertBlock(vtkm::Id index, vtkm::cont::DataSet& ds);
|
||||||
|
/// replace the "index" positioned element of the contained DataSet vector with "ds"
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
void OverWriteBlock(vtkm::Id index, vtkm::cont::DataSet& ds);
|
void OverWriteBlock(vtkm::Id index, vtkm::cont::DataSet& ds);
|
||||||
|
/// append the DataSet vector "mblocks" to the end of the contained one
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
void AddBlocks(std::vector<vtkm::cont::DataSet>& mblocks);
|
void AddBlocks(std::vector<vtkm::cont::DataSet>& mblocks);
|
||||||
|
/// get the unified bounds of the same indexed coordinate system within all contained DataSet
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
vtkm::Bounds GetBounds(vtkm::Id coordinate_system_index = 0) const;
|
vtkm::Bounds GetBounds(vtkm::Id coordinate_system_index = 0) const;
|
||||||
|
|
||||||
@ -95,7 +96,7 @@ public:
|
|||||||
|
|
||||||
template <typename TypeList, typename StorageList>
|
template <typename TypeList, typename StorageList>
|
||||||
VTKM_CONT vtkm::Bounds GetBounds(vtkm::Id coordinate_system_index, TypeList, StorageList) const;
|
VTKM_CONT vtkm::Bounds GetBounds(vtkm::Id coordinate_system_index, TypeList, StorageList) const;
|
||||||
|
/// get the bounds of a coordinate system within a given DataSet
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
vtkm::Bounds GetBlockBounds(const std::size_t& block_index,
|
vtkm::Bounds GetBlockBounds(const std::size_t& block_index,
|
||||||
vtkm::Id coordinate_system_index = 0) const;
|
vtkm::Id coordinate_system_index = 0) const;
|
||||||
@ -110,7 +111,7 @@ public:
|
|||||||
vtkm::Id coordinate_system_index,
|
vtkm::Id coordinate_system_index,
|
||||||
TypeList,
|
TypeList,
|
||||||
StorageList) const;
|
StorageList) const;
|
||||||
|
/// get the unified range of the same feild within all contained DataSet
|
||||||
VTKM_CONT
|
VTKM_CONT
|
||||||
vtkm::cont::ArrayHandle<vtkm::Range> GetGlobalRange(const std::string& field_name) const;
|
vtkm::cont::ArrayHandle<vtkm::Range> GetGlobalRange(const std::string& field_name) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user