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

Method PrintValues

Common/Core/vtkAbstractArray.cxx:945–963  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

943
944//------------------------------------------------------------------------------
945void vtkAbstractArray::PrintValues(ostream& os)
946{
947 if (auto* dataArray = vtkDataArray::SafeDownCast(this))
948 {
949 using Dispatcher = vtkArrayDispatch::DispatchByValueType<vtkArrayDispatch::AllTypes>;
950 ::PrintDataArrayWorker worker;
951 if (!Dispatcher::Execute(dataArray, worker, os))
952 {
953 worker(dataArray, os);
954 }
955 }
956 else
957 {
958 for (vtkIdType ii = 0; ii < this->GetNumberOfValues(); ++ii)
959 {
960 os << this->GetVariantValue(ii).ToString() << ' ';
961 }
962 }
963}
964VTK_ABI_NAMESPACE_END

Callers 3

TestPrintArrayValuesFunction · 0.80
TestHardwareSelectorFunction · 0.80
SourceClass · 0.80

Calls 4

GetVariantValueMethod · 0.95
ExecuteFunction · 0.50
GetNumberOfValuesMethod · 0.45
ToStringMethod · 0.45

Tested by 2

TestPrintArrayValuesFunction · 0.64
TestHardwareSelectorFunction · 0.64