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

Method AllocateTreeGhostArray

Common/DataModel/vtkHyperTreeGrid.cxx:1795–1808  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1793
1794//------------------------------------------------------------------------------
1795vtkUnsignedCharArray* vtkHyperTreeGrid::AllocateTreeGhostArray()
1796{
1797 if (!this->GetTreeGhostArray())
1798 {
1799 this->TreeGhostArray = vtkSmartPointer<vtkUnsignedCharArray>::New();
1800 this->TreeGhostArray->SetName(vtkDataSetAttributes::GhostArrayName());
1801 this->TreeGhostArray->SetNumberOfComponents(1);
1802 this->TreeGhostArray->SetNumberOfTuples(this->GetNumberOfCells());
1803 this->TreeGhostArray->Fill(0);
1804 this->GetCellData()->AddArray(this->TreeGhostArray);
1805 this->TreeGhostArrayCached = true;
1806 }
1807 return this->TreeGhostArray;
1808}
1809
1810//------------------------------------------------------------------------------
1811vtkUnsignedCharArray* vtkHyperTreeGrid::GetGhostCells()

Callers 1

GenerateGhostArrayMethod · 0.95

Calls 10

GetTreeGhostArrayMethod · 0.95
GetNumberOfCellsMethod · 0.95
GetCellDataMethod · 0.95
GhostArrayNameFunction · 0.85
NewFunction · 0.50
SetNameMethod · 0.45
SetNumberOfComponentsMethod · 0.45
SetNumberOfTuplesMethod · 0.45
FillMethod · 0.45
AddArrayMethod · 0.45

Tested by

no test coverage detected