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

Method GetDataSetAsCartesianGrid

Common/DataModel/vtkAMRDataObject.cxx:38–53  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36
37//------------------------------------------------------------------------------
38vtkCartesianGrid* vtkAMRDataObject::GetDataSetAsCartesianGrid(unsigned int level, unsigned int idx)
39{
40 if (!this->AMRMetaData)
41 {
42 vtkErrorMacro("AMR is not initialized");
43 return nullptr;
44 }
45
46 if (level >= this->GetNumberOfLevels() || idx >= this->GetNumberOfBlocks(level))
47 {
48 vtkErrorMacro("Invalid data set index: " << level << " " << idx);
49 return nullptr;
50 }
51
52 return vtkCartesianGrid::SafeDownCast(this->GetPartition(level, idx));
53}
54
55//------------------------------------------------------------------------------
56vtkImageData* vtkAMRDataObject::GetDataSetAsImageData(unsigned int level, unsigned int idx)

Callers 15

GetDataSetAsImageDataMethod · 0.95
GetDataSetMethod · 0.95
WriteCompositeMethod · 0.80
WriteCompositeDataMethod · 0.80
StripGhostLayersMethod · 0.80
BlankGridsAtLevelMethod · 0.80
SetDataSetMethod · 0.80
TestOverlappingAMRFunction · 0.80
TestNonOverlappingAMRFunction · 0.80

Calls 3

GetNumberOfLevelsMethod · 0.95
GetNumberOfBlocksMethod · 0.95
GetPartitionMethod · 0.45

Tested by 9

TestOverlappingAMRFunction · 0.64
TestNonOverlappingAMRFunction · 0.64
RequestDataMethod · 0.64
GetGhostArrayFunction · 0.64
GetGhostedDataSetFunction · 0.64
ComputeNumCellsFunction · 0.64
TestAMRRefinedGhostFlagFunction · 0.64
TestAMRVisibilityFunction · 0.64