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

Method GetVariantValue

Common/Core/vtkAbstractArray.cxx:528–539  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

526
527//------------------------------------------------------------------------------
528vtkVariant vtkAbstractArray::GetVariantValue(vtkIdType valueIdx)
529{
530 vtkVariant val;
531 switch (this->GetDataType())
532 {
533 vtkExtraExtendedTemplateMacro(val = vtkAbstractArrayGetVariantValue(
534 static_cast<VTK_TT*>(this->GetVoidPointer(0)), valueIdx));
535 vtkTemplateMacroCase(
536 VTK_BIT, int, val = static_cast<VTK_TT>(static_cast<vtkBitArray*>(this)->GetValue(valueIdx)));
537 }
538 return val;
539}
540
541//------------------------------------------------------------------------------
542void vtkAbstractArray::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

PrintValuesMethod · 0.95

Calls 4

GetDataTypeMethod · 0.45
GetVoidPointerMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected