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

Method ToAOSDataArray

Common/Core/vtkDataArray.cxx:711–723  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

709
710//------------------------------------------------------------------------------
711vtkSmartPointer<vtkDataArray> vtkDataArray::ToAOSDataArray()
712{
713 if (this->HasStandardMemoryLayout())
714 {
715 return this;
716 }
717 else
718 {
719 auto aos = vtk::TakeSmartPointer(vtkDataArray::CreateDataArray(this->GetDataType()));
720 aos->DeepCopy(this);
721 return aos;
722 }
723}
724
725//------------------------------------------------------------------------------
726void vtkDataArray::FillComponent(int compIdx, double value)

Callers 15

WriteValuesMethod · 0.80
XdmfToVTKArrayMethod · 0.80
VTKToXdmfArrayMethod · 0.80
WriteArrayContentsMethod · 0.80
GetUIDMethod · 0.80
WriteFileMethod · 0.80
EncodeAndWriteFunction · 0.80
WriteValuesMethod · 0.80
ParseValuesMethod · 0.80
ConvertVToXArrayMethod · 0.80
ToXdmfArrayMethod · 0.80

Calls 4

CreateDataArrayFunction · 0.50
GetDataTypeMethod · 0.45
DeepCopyMethod · 0.45

Tested by

no test coverage detected