Q3ViewerGetState
You can use theQ3ViewerGetStatefunction to get the current state of a viewer object.
unsigned long Q3ViewerGetState (TQ3ViewerObject theViewer);
theViewer- A viewer object.
DESCRIPTION
TheQ3ViewerGetStatefunction returns a long integer that encodes information about the current state of the viewer object specified by thetheViewerparameter. Bits of the returned long integer are addressed using these constants, which define the viewer state flags:
enum { kQ3ViewerEmpty = 0, kQ3ViewerHasModel = 1 };IfQ3ViewerGetStatereturns the valuekQ3ViewerEmpty, there is no image currently displayed by the specified viewer object. IfQ3ViewerGetStatereturns the valuekQ3ViewerHasModel, there is an image currently displayed by the specified viewer object. You can use this information to determine whether Edit menu commands such as Cut, Clear, and Copy should be enabled or disabled.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help