visualnode.hh
Go to the documentation of this file.
Extent representing shape of a tree at one depth level
Definition visualnode.hh:63
static const int minimalSeparation
Definition visualnode.hh:48
NodeAllocatorBase< VisualNode > NodeAllocator
Definition node.hh:143
bool getExtentAtDepth(int depth, Extent &extent)
Return if extent exists at depth, if yes return it in extent.
Definition visualnode.hpp:97
void setDepth(int d)
Set depth of the shape to d (must be smaller than original depth).
Definition visualnode.hpp:63
void unstopAll(const NodeAllocator &na)
Do not stop at any stop node in the subtree of this node.
int getPathAlternative(const NodeAllocator &na)
Return the alternative of the child that is on the path (-1 if none).
void unPathUp(const NodeAllocator &na)
Set all nodes from the node to the root not to be on the path.
void unhideAll(const NodeAllocator &na)
Unhide all nodes in the subtree of this node.
void toggleStop(const NodeAllocator &na)
Do not stop at this node.
void labelBranches(NodeAllocator &na, BestNode *curBest, int c_d, int a_d)
Create or clear branch labels in subtree.
void computeShape(const NodeAllocator &na)
Compute the shape according to the shapes of the children.
void toggleHidden(const NodeAllocator &na)
Toggle whether this node is hidden.
std::string getBranchLabel(NodeAllocator &na, VisualNode *p, const Choice *c, BestNode *curBest, int c_d, int a_d, int alt)
Return string that describes the branch.
VisualNode(Space *root)
Constructor for root node from root and b.
void labelPath(NodeAllocator &na, BestNode *curBest, int c_d, int a_d)
Create or clear branch labels on path to root.
void pathUp(const NodeAllocator &na)
Set all nodes from the node to the root to be on the path.
void dirtyUp(const NodeAllocator &na)
Mark all nodes up the path to the parent as dirty.
void changedStatus(const NodeAllocator &na)
Signal that the status has changed.
void layout(const NodeAllocator &na)
Compute layout for the subtree of this node.
std::string toolTip(NodeAllocator &na, BestNode *curBest, int c_d, int a_d)
Return string that is used as a tool tip.
void hideFailed(const NodeAllocator &na, bool onlyDirty=false)
Hide all failed subtrees of this node.
bool childrenLayoutIsDone(void)
Return whether the layout of the node's children has been completed.
Definition visualnode.hpp:163
VisualNode * findNode(const NodeAllocator &na, int x, int y)
Find a node in this subtree at coordinates x, y.
bool containsCoordinateAtDepth(int x, int depth)
Check if the x at depth depth lies in this subtree.
void setChildrenLayoutDone(bool d)
Mark node whether the layout of the node's children has been completed.
Definition visualnode.hpp:168
The Gecode Interactive Search Tool.
Gecode toplevel namespace
