An object is either a shape, scene, pick regions or object string. Objects work by manipulate transformation matrices.
There are 3 transformation matrices used:
|
|
Rt2dObjectApplyCTM applies the current CTM to the object MTM.
|
|
||||||||||||
|
Rt2dObjectCopy copies an object to another one. If the object is a scene, the scene should be unlocked before copying.
|
|
|
Rt2dObjectGetColorMultiplier gets the color multiplier of this object (relative to the parent object). The floating point value should be between 0 and 1.
|
|
|
Rt2dObjectGetColorOffset gets the color offset in use (relative to the parent). The floating point value should be between 0 and 1.
|
|
|
Rt2dObjectGetDepth gets the z-order of the object.
|
|
|
Rt2dObjectGetLTM gets the LTM for positioning the object.
|
|
|
Rt2dObjectGetMTM gets the MTM for positioning the object.
|
|
|
Rt2dObjectGetObjectType gets the internal object type.
|
|
|
Rt2dObjectIsObjectString tests if a 2d object is an Object String.
|
|
|
Rt2dObjectIsPickRegion tests if a 2d object is a Pick Region.
|
|
|
Rt2dObjectIsScene tests if a 2d object is a Scene.
|
|
|
Rt2dObjectIsShape tests if 2d object is a Shape.
|
|
|
Rt2dObjectIsVisible checks if the object will be rendered.
|
|
|
Rt2dObjectMTMChanged warns the object that the MTM matrix has been changed (using Rt2dObjectGetMTM) and that the LTM might need to be recalculated.
|
|
||||||||||||
|
Rt2dObjectMTMRotate is used to apply a rotation to the current MTM using the specified angle of rotation. A rotation in an anticlockwise direction are achieved using a positive angle. Note that the rotation is preconcatenated with the MTM.
|
|
||||||||||||||||
|
Rt2dObjectMTMScale is used to apply a scale transformation to the object's MTM using the specified x- and y-scale factors. Note that the scale is preconcatenated with the MTM.
|
|
|
Rt2dObjectMTMSetIdentity is used to set the object MTM equal to the identity matrix. This procedure removes all previously applied transformations.
|
|
||||||||||||||||
|
Rt2dObjectMTMTranslate is used to apply a translation to the MTM using the specified x- and y-components. Note that the translation is preconcatenated with the MTM.
|
|
||||||||||||
|
Rt2dObjectSetColorMultiplier sets the color multiplier of the object (relative to the parent object). The floating point value should be between 0 and 1.
|
|
||||||||||||
|
Rt2dObjectSetColorOffset sets the color offset in use (relative to the parent). The floating point value should be between 0 and 1.
|
|
||||||||||||
|
Rt2dObjectSetDepth sets the z-order of the object.
|
|
||||||||||||
|
Rt2dObjectSetMTM sets the MTM for positioning the object (relative to the parent).
|
|
||||||||||||
|
Rt2dObjectSetVisible sets whether or not the object is rendered.
|
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:47:06 2004.
Send Feedback