Hi all,
I'm looking for a way to specify the layout of my network, i.e. the node positions. I found SetNodePosition() for JSMILE, but I couldn't find an equivalent function in SMILE. Is it possible to provide coordinates for a node's position with c++?
Thanks!
Wiebke
Setting node positions with c++
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Setting node positions with c++
Follow the code snippet below. Yes, we know this is totally counterintuitiveIs it possible to provide coordinates for a node's position with c++?
Code: Select all
DSL_node *node = net.GetNode(handle);
DSL_rectangle &pos = node->Info().Screen().position;
pos.center_X = xcenter;
pos.center_Y = ycenter;
pos.width = width;
pos.height = height;
Re: Setting node positions and colours with c++
Is there a similar way of setting node colours?
Thanks.
Thanks.