------------------------------------------------------------------------------
| 634 | |
| 635 | //------------------------------------------------------------------------------ |
| 636 | int 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 | //------------------------------------------------------------------------------ |
| 680 | int vtkMNIObjectReader::ReadFile(vtkPolyData* output) |
no test coverage detected