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

Method UseFixedSize64BitStorage

Common/DataModel/vtkCellArray.cxx:1093–1107  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1091
1092//------------------------------------------------------------------------------
1093void vtkCellArray::UseFixedSize64BitStorage(vtkIdType cellSize)
1094{
1095 if (this->IsStorageFixedSize64Bit() &&
1096 this->GetOffsetsAffineArray64()->GetBackend()->Slope == cellSize)
1097 {
1098 this->Initialize();
1099 return;
1100 }
1101 this->Offsets = vtkSmartPointer<AffineArray64>::New();
1102 this->GetOffsetsAffineArray64()->ConstructBackend(cellSize, 0);
1103 this->Connectivity = vtkSmartPointer<AOSArray64>::New();
1104 this->GetOffsetsAffineArray64()->InsertNextValue(0);
1105 this->StorageType = StorageTypes::FixedSizeInt64;
1106 this->Modified();
1107}
1108
1109//------------------------------------------------------------------------------
1110void vtkCellArray::UseFixedSizeDefaultStorage(vtkIdType cellSize)

Callers 9

DeepCopyMethod · 0.95
CombineTopologiesMethod · 0.80
SetExtentMethod · 0.80
CropMethod · 0.80
NewMethod · 0.80
RequestDataMethod · 0.80

Calls 5

InitializeMethod · 0.95
NewFunction · 0.50
GetBackendMethod · 0.45
InsertNextValueMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

NewMethod · 0.64