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

Method ReadLineObject

IO/MINC/vtkMNIObjectReader.cxx:636–677  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

634
635//------------------------------------------------------------------------------
636int vtkMNIObjectReader::ReadLineObject(vtkPolyData* output)
637{
638 // Read the line thickness
639 if (this->ReadLineThickness(this->Property) == 0)
640 {
641 return 0;
642 }
643
644 // Read the number of points
645 vtkIdType numPoints = 0;
646 if (this->ReadNumberOfPoints(&numPoints) == 0)
647 {
648 return 0;
649 }
650
651 // Read the points
652 if (this->ReadPoints(output, numPoints) == 0)
653 {
654 return 0;
655 }
656
657 // Read the number of items
658 vtkIdType numCells = 0;
659 if (this->ReadNumberOfCells(&numCells) == 0)
660 {
661 return 0;
662 }
663
664 // Read the colors
665 if (this->ReadColors(this->Property, output, numPoints, numCells) == 0)
666 {
667 return 0;
668 }
669
670 // Read the cells
671 if (this->ReadCells(output, numCells, VTK_POLY_LINE) == 0)
672 {
673 return 0;
674 }
675
676 return 1;
677}
678
679//------------------------------------------------------------------------------
680int vtkMNIObjectReader::ReadFile(vtkPolyData* output)

Callers 1

ReadFileMethod · 0.95

Calls 6

ReadLineThicknessMethod · 0.95
ReadNumberOfPointsMethod · 0.95
ReadPointsMethod · 0.95
ReadNumberOfCellsMethod · 0.95
ReadColorsMethod · 0.95
ReadCellsMethod · 0.95

Tested by

no test coverage detected