Functions | |
void | Move_By_Key (HC_KEY key, const char *newowner) |
void | Move_By_Key_By_Key (HC_KEY key, HC_KEY newowner) |
void Move_By_Key | ( | HC_KEY | key, | |
const char * | newowner | |||
) |
Moves a single geometric primitive or segment from one segment to another.
key | - Key returned by a previous call to one of the "Insert" or "Open" routines. | |
newowner | - Name of the segment which is to become the new container of the piece of geometry. |
The usual way to do this is to put each item into a segment of its own, and then to change the attributes on the segment. If your "items" consist of single geometric primitive, an alternative is to use Move_By_Key() to pull the primitive out of a big group of them all in the same segment, and put it in a segment of its own, which presumably will have a different color attribute or something.
You can also move one segment from one parent to another using this function; however, include segments cannot be moved.
void Move_By_Key_By_Key | ( | HC_KEY | key, | |
HC_KEY | newowner | |||
) |
Moves a single geometric primitive or segment from one segment to another. Locally renumbered keys require the parent segment to be open in order to resolve them.
key | - Key returned by a previous call to one of the "Insert" or "Open" routines. | |
newowner | - Key of the segment which is to become the new container of the piece of geometry. |