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

Method GetPieceInputAsPointSet

IO/XML/vtkXMLPUnstructuredDataReader.cxx:40–52  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39//------------------------------------------------------------------------------
40vtkPointSet* vtkXMLPUnstructuredDataReader::GetPieceInputAsPointSet(int piece)
41{
42 vtkXMLDataReader* reader = this->PieceReaders[piece];
43 if (!reader)
44 {
45 return nullptr;
46 }
47 if (reader->GetNumberOfOutputPorts() < 1)
48 {
49 return nullptr;
50 }
51 return static_cast<vtkPointSet*>(reader->GetExecutive()->GetOutputData(0));
52}
53
54//------------------------------------------------------------------------------
55void vtkXMLPUnstructuredDataReader::SetupOutputTotals()

Callers 3

ReadPieceDataMethod · 0.95
ReadPieceDataMethod · 0.80
ReadPieceDataMethod · 0.80

Calls 3

GetOutputDataMethod · 0.45
GetExecutiveMethod · 0.45

Tested by

no test coverage detected