Q3Object_IsType
You can use the Q3Object_IsType function 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
The Q3Object_IsType function returns a Boolean value that indicates whether the QuickDraw 3D object specified by the object parameter is of the type specified by the type parameter (kQ3True) or is of some other type (kQ3False). You can pass any valid QuickDraw 3D type identifier in the type parameter (not just those that are returned by the Q3Object_GetType function). For example, you can use Q3Object_IsType like this:
if (Q3Object_IsType(myObject, kQ3ShapeTypeGeometry))
return MyDoGeometry(object);