![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CTransform (IPMUnknown *boss=nil) | |
| virtual PMReal | GetItemScaleX () const |
| virtual PMReal | GetItemScaleY () const |
| virtual PMReal | GetItemSkewAngle () const |
| virtual PMReal | GetItemRotationAngle () const |
| virtual void | ScaleItemBy (PMReal xScale, PMReal yScale, const PMPoint ¢er) |
| virtual void | ScaleItemTo (PMReal xScale, PMReal yScale, const PMPoint ¢er) |
| virtual void | SkewItemBy (PMReal xSkew, const PMPoint ¢er) |
| virtual void | SkewItemTo (PMReal xSkew, const PMPoint ¢er) |
| virtual void | RotateItemBy (PMReal angle, const PBPMPoint ¢er) |
| virtual void | RotateItemTo (PMReal angle, const PBPMPoint ¢er) |
| virtual void | TranslateItemBy (const PBPMPoint &delta) |
| virtual void | TranslateItemTo (const PBPMPoint &location) |
| virtual void | SetInnerToParentMatrix (const PMMatrix &matrix) |
| virtual const PMMatrix & | GetInnerToParentMatrix () const |
| virtual const PMMatrix & | GetParentToInnerMatrix () const |
| virtual ITransform::MatrixType | GetInnerToRootMatrix (PMMatrix *pMatrix, const ITransform *pRoot=nil) const |
| virtual bool16 | IsTransformParentDependent () const |
| virtual IPMUnknown * | QueryTransformParent () |
| virtual void | ConcatItemTransform (IGraphicsPort *gPort) |
Public Member Functions inherited from CPMUnknown< ITransform > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Protected Member Functions | |
| bool16 | MoveAndPositiveScaleOnly (void) const |
| void | UpdateInverseCTM () const |
Protected Member Functions inherited from CPMUnknown< ITransform > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes | |
| PMMatrix | fCTM |
| PMMatrix | fInverseCTM |
| bool16 | fInverseIsCurrent |
Protected Attributes inherited from CPMUnknown< ITransform > | |
| HelperInterface | fHelperInterface |
Additional Inherited Members | |
Public Types inherited from ITransform | |
| enum | { kDefaultIID = IID_ITRANSFORM } |
| enum | MatrixType { kDynamicMatrix, kStaticMatrix } |
| virtual |
Concatenate this item's transformation, if necessary, into the gPort. Typically this is a simple gPort->concat(CurrentMatrix()), but for some it involves an additional transform as well, and for others (like standoffs), the transform needs to be ignored. Used by TransformUtils::TransformFromRoot().
| gPort | [IN] parameter the graphics port that does the concatenate. |
Implements ITransform.
| virtual |
Get this item's current inner-to-parent matrix. Note even though the matrix is returned by reference, you must use the result immediately or copy the result to another PMMatrix.
Implements ITransform.
| virtual |
| virtual |
| virtual |
| virtual |
Get item's x direction skew angle.
Implements ITransform.
| virtual |
Get this item's current parent-to_inner matrix. Note even though the matrix is returned by reference, you must use the result immediately or copy the result to another PMMatrix.
Implements ITransform.
| virtual |
Check whether the item can be transformed independent of its parent or not.
Implements ITransform.
| virtual |
Return an interface pointer to the "transformational parent" of this item. That is, the item whose transformation is concatenated to the current state before ours. For a typical pageitem, this would use IHierarchy::QueryParent() and return that item, but for some (like inlines and standoffs), it's not so simple. Used by TransformUtils::TransformFromRoot().
Implements ITransform.
Rotate item with certain angle based on the given reference point.
| angle | [IN] parameter the angle the item rotate by. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
Rotate item to certain angle based on the given reference point.
| angle | [IN] parameter the absolute angle the item rotate to. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
Scale item with certain x/y values based on the given reference point.
| xScale | [IN] parameter the x value the item scale by. |
| yScale | [IN] parameter the y value the item scale by. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
Scale item to certain x/y values based on the given reference point.
| xScale | [IN] parameter the absolute x value the item scale by. |
| yScale | [IN] parameter the absolute y value the item scale by. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
| virtual |
Re-orient the item relative to its parent with a new transformation matrix.
| matrix | [IN] parameter the given matrix to be set. |
Implements ITransform.
Skew item with certain angle based on the given reference point. We only directly support xSkew but not ySkew. To perform a skew in the y direction, skew in the x direction by the angle desired, and then rotate by the same angle.
| xSkewAngle | [IN] parameter the angle the item skew by. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
Skew item to certain angle based on the given reference point. We only directly support xSkew but not ySkew. To perform a skew in the y direction, skew in the x direction by the angle desired, and then rotate by the same angle.
| xSkewAngle | [IN] parameter the absolute angle the item skew by. |
| center | [IN] parameter the reference point in parent coordinate. |
Implements ITransform.
| virtual |
Move item with delta amount of distance.
| delta | [IN] parameter the amount of distance in parent coordinate. |
Implements ITransform.
| virtual |
Move item to the specified location.
| location | [IN] parameter the place in parent coordinate where the item will move to. |
Implements ITransform.