Q3Set_Get
You can use theQ3Set_Getfunction to get the data associated with an element in a set.
TQ3Status Q3Set_Get ( TQ3SetObject set, TQ3ElementType type, void *data);
set- A set object.
type- An element type.
data- On entry, a pointer to a structure large enough to hold the data associated with elements of the specified type. On exit, a pointer to the data of the element having the specified type.
DESCRIPTION
TheQ3Set_Getfunction returns, in thedataparameter, the data currently associated with the element whose type is specified by thetypeparameter in the set specified by thesetparameter. If no element of that type is in the set,Q3Set_GetreturnskQ3Failure.If you pass the value
NULLin thedataparameter, no data is copied back to your application. (PassingNULLmight be useful simply to determine whether a set contains a specific type of element.)If the specified element type is a custom element type,
Q3Set_Getuses the custom type'skQ3MethodTypeElementCopyGetcustom method. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.