MCPcopy Create free account
hub / github.com/Gecode/gecode / setShape

Method setShape

gecode/gist/visualnode.cpp:390–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 }
389
390 void
391 VisualNode::setShape(Shape* s) {
392 if (shape != s)
393 Shape::deallocate(shape);
394 shape = s;
395 shape->computeBoundingBox();
396 }
397
398 void
399 VisualNode::computeShape(const NodeAllocator& na) {

Callers 1

processCurrentNodeMethod · 0.80

Calls 1

computeBoundingBoxMethod · 0.80

Tested by

no test coverage detected