Q3Object_IsType
You can use theQ3Object_IsTypefunction to determine whether a QuickDraw 3D object is of a specific type.
TQ3Boolean Q3Object_IsType ( TQ3Object object, TQ3ObjectType type);
object- A QuickDraw 3D object.
type- A type identifier.
DESCRIPTION
TheQ3Object_IsTypefunction returns a Boolean value that indicates whether the QuickDraw 3D object specified by theobjectparameter is of the type specified by thetypeparameter (kQ3True) or is of some other type (kQ3False). You can pass any valid QuickDraw 3D type identifier in thetypeparameter (not just those that are returned by theQ3Object_GetTypefunction). For example, you can useQ3Object_IsTypelike this:
if (Q3Object_IsType(myObject, kQ3ShapeTypeGeometry)) return MyDoGeometry(object);
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help