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

Method GetTuple

Common/Core/vtkBitArray.cxx:589–605  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Get a pointer to a tuple at the ith location. This is a dangerous method (it is not thread safe since a pointer is returned).

Source from the content-addressed store, hash-verified

587// Get a pointer to a tuple at the ith location. This is a dangerous method
588// (it is not thread safe since a pointer is returned).
589double* vtkBitArray::GetTuple(vtkIdType i)
590{
591 if (this->TupleSize < this->NumberOfComponents)
592 {
593 this->TupleSize = this->NumberOfComponents;
594 delete[] this->Tuple;
595 this->Tuple = new double[this->TupleSize];
596 }
597
598 vtkIdType loc = this->NumberOfComponents * i;
599 for (int j = 0; j < this->NumberOfComponents; j++)
600 {
601 this->Tuple[j] = static_cast<double>(this->GetValue(loc + j));
602 }
603
604 return this->Tuple;
605}
606
607//------------------------------------------------------------------------------
608// Copy the tuple value into a user-provided array.

Callers 15

WriteMCubesMethod · 0.45
operator()Method · 0.45
LoadSkinMatrixDataMethod · 0.45
WritePointsFunction · 0.45
ApplyMorphingToDataArrayFunction · 0.45
WriteDisplacementFileMethod · 0.45
WriteTextureFileMethod · 0.45
CheckOBJGroupsFunction · 0.45
TestOBJPolyDataWriterFunction · 0.45
WriteMeshFunction · 0.45
WritePolygonsMethod · 0.45
WriteStripsMethod · 0.45

Calls 1

GetValueMethod · 0.95

Tested by 15

CheckOBJGroupsFunction · 0.36
TestOBJPolyDataWriterFunction · 0.36
TestNetCDFCAMReaderFunction · 0.36
compareDataSetsFunction · 0.36
CompareGridsFunction · 0.36
TestTRUCHASReaderFunction · 0.36
TestWithArrayHandleFunction · 0.36
IsVorticityCorrectFunction · 0.36
IsQCriterionCorrectFunction · 0.36
IsDivergenceCorrectFunction · 0.36
IsVorticityCorrectFunction · 0.36
IsQCriterionCorrectFunction · 0.36