Purpose
Use Retrieve Paths to Descendants to retrieve the descendant paths of the specified structure from the specified open archive file.
A path of descendants of a structure S is a list of ordered pairs ((S,E0), (D1,E1), (D2,E2),..., (Dn,0)) where each ordered pair consists of an identifier of a structure (Dx) that is a descendant of the specified structure (S) and the position of an execute structure-type element (Ex) that references the next structure in the path The specified structure S is the top of the path and descendant structure Dn is the bottom of the path (e.g., it does not reference any other structure).
The path order and path depth determine the portion of each path that the graPHIGS API returns. Your application can specify the path order as TOP_FIRST or BOTTOM_FIRST. The path depth determines the maximum number of ordered pairs returned in any one path. Specifying a path depth of zero returns each path in its entirety. When truncation occurs, the path order determines whether the graPHIGS API returns the head or tail portion of the path. This truncation can result in two or more portions of paths having the same set of element references. The graPHIGS API returns only one such portion so that all the returned path portions are distinct.
Language Bindings
pret_paths_descs (ar_id, struct_id, order, depth, store, paths) |
PREPDE (afid, strid, pthord, pthdep, ipthsz, n, ol, apthsz, paths) |
Errors
Related Subroutines