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

Method SetArray

Common/Core/vtkIdList.cxx:114–137  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

112
113//------------------------------------------------------------------------------
114void vtkIdList::SetArray(vtkIdType* array, vtkIdType size, bool save)
115{
116 if (this->ManageMemory)
117 {
118 delete[] this->Ids;
119 }
120 if (!array)
121 {
122 if (size)
123 {
124 vtkWarningMacro(<< "Passed a nullptr with a non-zero size... Setting size to 0.");
125 size = 0;
126 }
127 if (!save)
128 {
129 vtkWarningMacro(<< "Passed a nullptr while setting save to false... Setting save to true.");
130 save = true;
131 }
132 }
133 this->ManageMemory = save;
134 this->Ids = array;
135 this->NumberOfIds = size;
136 this->Size = size;
137}
138
139//------------------------------------------------------------------------------
140void vtkIdList::DeleteId(vtkIdType vtkid)

Callers 15

MakeSOAArrayMethod · 0.45
AddArrayToVTKDataFunction · 0.45
AddArrayToVTKDataFunction · 0.45
FftMethod · 0.45
RFftMethod · 0.45
ShuffleIdListMethod · 0.45
GetBlobMethod · 0.45
SetVoidArrayFunction · 0.45
operator()Method · 0.45
~vtkBitArrayIteratorMethod · 0.45

Calls

no outgoing calls

Tested by 15

AddArrayToVTKDataFunction · 0.36
AddArrayToVTKDataFunction · 0.36
doTestSMPFunction · 0.36
TestSOADataArrayFunction · 0.36
assign_void_arrayFunction · 0.36
TestDataArrayIteratorsFunction · 0.36
TestFieldDataExchangeFunction · 0.36
Process1Function · 0.36
InitializeTableInputFunction · 0.36