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

Method CreateDataArray

Common/Core/vtkDataArray.cxx:698–708  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

696
697//------------------------------------------------------------------------------
698vtkDataArray* vtkDataArray::CreateDataArray(int dataType)
699{
700 vtkAbstractArray* aa = vtkAbstractArray::CreateArray(dataType);
701 vtkDataArray* da = vtkDataArray::FastDownCast(aa);
702 if (!da && aa)
703 {
704 // Requested array is not a vtkDataArray. Delete the allocated array.
705 aa->Delete();
706 }
707 return da;
708}
709
710//------------------------------------------------------------------------------
711vtkSmartPointer<vtkDataArray> vtkDataArray::ToAOSDataArray()

Callers

nothing calls this directly

Calls 3

FastDownCastFunction · 0.70
DeleteMethod · 0.65
CreateArrayFunction · 0.50

Tested by

no test coverage detected