Functions | |
HC_KEY | Show_Include_Segment (HC_KEY key, char *pathname) |
HC_KEY Show_Include_Segment | ( | HC_KEY | key, | |
char * | pathname | |||
) |
Returns the segment that is referenced by an inclusion.
key | - Unique numeric identifier pointing to a previously defined include reference. | |
pathname | - Full pathname of the segment that is referenced by key. |
Show_Include_Segment() returns the key of the segment instead of the pathname.
Suppose there is an include segment with a pathname such as:
/include/a/bwherein "a" contains a matrix, and "b" contains geometry. This segment is used in a scene as follows:
Open_Segment ("?picture") Include_Segment ("/include/a") Include_Segment ("/include/a/b") Close_Segment()The HOOPS picture in this case would show two versions of the geometry, as one would expect. However, prior to HOOPS 6.2 a selection on either instance of the geometry would have returned the same path:
/include/a/b < /driver/msw/window0From this construct, there was no way to distinguish which version of the object was hit. HOOPS 6.2 added additional arrows to indicate that the selected instance was to a containing segment. Thus, a selection of the direct instance of "b" will be the same as the old version, but a selection of the geometry instanced by an include of the "a" segment will return:
/include/a/b << /driver/msw/window0Some programs may directly parse the path string and so depend on the old behavior. To accommodate those there is a new System_Option "old style pathnames" which will cause Hoops to generate the old form only.