SetMatrix
TheSetMatrixmethod replaces this transform's matrix with the specified matrix.
ODTransform SetMatrix (in ODMatrix matrix);
matrix- The new transform matrix for this transform.
- return value
- A reference to this transform with it matrix replaced.
DISCUSSION
If you specify an identity matrix, the effect of this method is the same as calling theResetmethod.If you use transforms of the class
ODTransformand you have also created a subclass ofODTransformthat applies complex transformation effects that cannot be represented by matrices, your part needs to check whether a given transform has a matrix before calling this method. To do so, you should call the transform'sHasMatrixmethod; only if that method returns true should you call the transform'sSetMatrixmethod.OVERRIDING
If you subclassODTransformto create a nonlinear transform class, you must override this method. Your override method must not call its inherited method. Instead, it should raise akODErrTransformErrexception. You can detect that a transform of your class has no matrix by calling itsHasMatrixmethod.EXCEPTION
kODErrTransformErr- This transform object does not use a matrix.
SEE ALSO
TheODMatrixtype (page 888).
TheODTransform::GetMatrixmethod (page 768).
TheODTransform::HasMatrixmethod (page 772).
TheODTransform::Resetmethod (page 781).