- Inside Macintosh: OpenDoc Class Reference /
- Part 1 - Classes and Methods / ODTransform
HasMatrix
The HasMatrix method returns a Boolean value that indicates whether this transform uses a matrix to describe its transformation.
ODBoolean HasMatrix ();
- return value
-
kODTrue if the transform object uses a matrix, otherwise kODFalse.
DISCUSSION
Every object of the ODTransform class uses a matrix; hence this method returns true. However, if you use transforms of the class ODTransform and you have also created a subclass of ODTransform that applies complex transformation effects that cannot be represented by matrices, you can call this method to test whether a particular transform belongs to a class that uses a transform matrix.
OVERRIDING
If you subclass ODTransform to create a nonlinear transform class, you must override this method. Your override method must not call its inherited method. Instead, it should return kODFalse.
SEE ALSO
"Custom Transform Objects" on page 450 in OpenDoc Programmer's Guide.
© Apple Computer, Inc.
17 JUL 1996