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

Method InsertTuple

Common/Core/vtkDataArray.cxx:157–173  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155
156//------------------------------------------------------------------------------
157void vtkDataArray::InsertTuple(
158 vtkIdType dstTupleIdx, vtkIdType srcTupleIdx, vtkAbstractArray* source)
159{
160 vtkIdType newSize = (dstTupleIdx + 1) * this->NumberOfComponents;
161 if (this->Size < newSize)
162 {
163 if (!this->Resize(dstTupleIdx + 1))
164 {
165 vtkErrorMacro("Resize failed.");
166 return;
167 }
168 }
169
170 this->MaxId = std::max(this->MaxId, newSize - 1);
171
172 this->SetTuple(dstTupleIdx, srcTupleIdx, source);
173}
174
175//------------------------------------------------------------------------------
176vtkIdType vtkDataArray::InsertNextTuple(vtkIdType srcTupleIdx, vtkAbstractArray* source)

Callers 8

InsertNextTupleMethod · 0.95
InsertComponentMethod · 0.95
InsertTuple1Method · 0.95
InsertTuple2Method · 0.95
InsertTuple3Method · 0.95
InsertTuple4Method · 0.95
InsertTuple6Method · 0.95
InsertTuple9Method · 0.95

Calls 3

SetTupleMethod · 0.95
maxFunction · 0.50
ResizeMethod · 0.45

Tested by

no test coverage detected