54#ifndef vtkRedistributeDataSetFilter_h
55#define vtkRedistributeDataSetFilter_h
58#include "vtkFiltersParallelDIY2Module.h"
67#include VTK_DIY2(diy/assigner.hpp)
70VTK_ABI_NAMESPACE_BEGIN
122 vtkGetMacro(BoundaryMode,
int);
139 vtkBooleanMacro(UseExplicitCuts,
bool);
178 vtkBooleanMacro(ExpandExplicitCuts,
bool);
186 const std::vector<vtkBoundingBox>&
GetCuts()
const;
222 vtkSetMacro(PreservePartitionsInOutput,
bool);
223 vtkGetMacro(PreservePartitionsInOutput,
bool);
224 vtkBooleanMacro(PreservePartitionsInOutput,
bool);
232 vtkSetMacro(GenerateGlobalCellIds,
bool);
233 vtkGetMacro(GenerateGlobalCellIds,
bool);
234 vtkBooleanMacro(GenerateGlobalCellIds,
bool);
245 vtkSetMacro(EnableDebugging,
bool);
246 vtkGetMacro(EnableDebugging,
bool);
247 vtkBooleanMacro(EnableDebugging,
bool);
261 vtkBooleanMacro(LoadBalanceAcrossAllBlocks,
bool);
309 const std::vector<vtkPartitioningStrategy::PartitionInformation>& info,
310 bool preserve_input_hierarchy);
313 const std::vector<vtkPartitioningStrategy::PartitionInformation>&,
unsigned int*,
vtkIdType*);
328 std::shared_ptr<diy::Assigner> Assigner;
332 bool PreservePartitionsInOutput;
333 bool GenerateGlobalCellIds;
334 bool EnableDebugging;
Fast, simple class for representing and operating on 3D bounds.
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
abstract class to specify dataset behavior
a simple class to control print indentation
Composite dataset that organizes datasets into blocks.
composite dataset to encapsulates pieces of dataset.
Multiprocessing communication superclass.
Composite dataset that groups datasets as a collection.
composite dataset to encapsulates a dataset consisting of partitions.
A strategy interface for partitioning meshes.
static vtkRedistributeDataSetFilter * New()
void SetBoundaryModeToAssignToAllIntersectingRegions()
Specify how cells on the boundaries are handled.
const vtkBoundingBox & GetExplicitCut(int index) const
Specify the cuts to use when UseExplicitCuts is true.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetUseExplicitCuts(bool)
Specify whether to compute the load balancing automatically or use explicitly provided cuts.
void AddExplicitCut(const double bbox[6])
Specify the cuts to use when UseExplicitCuts is true.
const std::vector< vtkBoundingBox > & GetExplicitCuts() const
Specify the cuts to use when UseExplicitCuts is true.
vtkIdType GetNumberOfPartitions() const
Specify the number of partitions to split the input dataset into.
bool GetExpandExplicitCuts() const
Specify the DIY assigner used for distributing cuts.
void SetNumberOfPartitions(vtkIdType)
Specify the number of partitions to split the input dataset into.
int GetNumberOfExplicitCuts() const
Specify the cuts to use when UseExplicitCuts is true.
virtual int GetBoundaryModeMaxValue()
Specify how cells on the boundaries are handled.
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
bool GetLoadBalanceAcrossAllBlocks()
When UseExplicitCuts is false, and input is a vtkPartitionedDataSetCollection, set this to true to ge...
void SetExplicitCuts(const std::vector< vtkBoundingBox > &boxes)
Specify the cuts to use when UseExplicitCuts is true.
~vtkRedistributeDataSetFilter() override
virtual int GetBoundaryModeMinValue()
Specify how cells on the boundaries are handled.
void SetExpandExplicitCuts(bool)
When using explicit cuts, it possible that the bounding box defined by all the cuts is smaller than t...
void RemoveAllExplicitCuts()
Specify the cuts to use when UseExplicitCuts is true.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
const std::vector< vtkBoundingBox > & GetCuts() const
Returns the cuts used by the most recent RequestData call.
@ ASSIGN_TO_ALL_INTERSECTING_REGIONS
vtkPartitioningStrategy * GetStrategy()
Setter/Getter for Strategy.
vtkMTimeType GetMTime() override
Necessary to override this in order to take into account modifications to strategy.
void SetBoundaryModeToAssignToOneRegion()
Specify how cells on the boundaries are handled.
std::shared_ptr< const diy::Assigner > GetAssigner() const
Specify the DIY assigner used for distributing cuts.
bool GetUseExplicitCuts() const
Specify whether to compute the load balancing automatically or use explicitly provided cuts.
void AddExplicitCut(const vtkBoundingBox &bbox)
Specify the cuts to use when UseExplicitCuts is true.
void SetLoadBalanceAcrossAllBlocks(bool)
When UseExplicitCuts is false, and input is a vtkPartitionedDataSetCollection, set this to true to ge...
void SetAssigner(std::shared_ptr< diy::Assigner > assigner)
Specify the DIY assigner used for distributing cuts.
vtkRedistributeDataSetFilter()
virtual void SetBoundaryMode(int mode)
Specify how cells on the boundaries are handled.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetBoundaryModeToSplitBoundaryCells()
Specify how cells on the boundaries are handled.
std::shared_ptr< diy::Assigner > GetAssigner()
Specify the DIY assigner used for distributing cuts.
void SetStrategy(vtkPartitioningStrategy *)
Setter/Getter for Strategy.
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType