| 560 | public: |
| 561 | |
| 562 | Rectangle(vtkXMLDataElement* node) : BaseShape(node) |
| 563 | { |
| 564 | if(node->GetNumberOfNestedElements()!=2) |
| 565 | throw runtime_error("rectangle: expected two nested elements (point3D,point3D)"); |
| 566 | this->a = make_unique<Point3D>(node->GetNestedElement(0)); |
| 567 | this->b = make_unique<Point3D>(node->GetNestedElement(1)); |
| 568 | } |
| 569 | |
| 570 | static const char* GetTypeName() { return "rectangle"; } |
| 571 |
nothing calls this directly
no outgoing calls
no test coverage detected