MCPcopy Create free account
hub / github.com/GollyGang/ready / Rectangle

Method Rectangle

src/readybase/overlays.cpp:562–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected