MCPcopy Create free account
hub / github.com/Kitware/VTK / Prune

Method Prune

Filters/Extraction/vtkExtractBlock.cxx:151–167  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

149
150//------------------------------------------------------------------------------
151bool vtkExtractBlock::Prune(vtkDataObject* branch)
152{
153 if (auto mb = vtkMultiBlockDataSet::SafeDownCast(branch))
154 {
155 return this->Prune(mb);
156 }
157 else if (auto mpc = vtkPartitionedDataSetCollection::SafeDownCast(branch))
158 {
159 return this->Prune(mpc);
160 }
161 else if (auto mp = vtkPartitionedDataSet::SafeDownCast(branch))
162 {
163 return this->Prune(mp);
164 }
165
166 return true;
167}
168
169//------------------------------------------------------------------------------
170bool vtkExtractBlock::Prune(vtkPartitionedDataSet* mpartition)

Callers 2

RequestDataMethod · 0.95
CopyAllocateMethod · 0.80

Calls 15

GetBlockMethod · 0.80
SetBlockMethod · 0.80
SetNumberOfBlocksMethod · 0.80
assertFunction · 0.50
GetNumberOfPartitionsMethod · 0.45
HasMetaDataMethod · 0.45
GetMetaDataMethod · 0.45
HasMethod · 0.45
RemoveMethod · 0.45
SetPartitionMethod · 0.45
GetPartitionMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected