Adobe.com
Contents Suites Classes Class Index Member Index

IAIDocumentUtils.hpp File Reference

#include "AIBasicTypes.h"
#include "AITypes.h"
#include "AIRealMath.h"
#include "AITransformArt.h"

Go to the source code of this file.

Classes

class  ai::DocumentUtils::ArtScaler

Namespaces

namespace  ai
 

Usage:.


namespace  ai::DocumentUtils

Functions

AIReal ai::DocumentUtils::GetDocumentScale ()
 For each document with document scale factor X, each object's dimension have to multiplied by X to get the correct dimensions of the object in UI For example, if document scale factor is X, then a 10x10 rectangle will actually will be displayed as (10*X)x(10*X) rectangle in UI Geting the scale associated with the current document.
AIRealMatrix ai::DocumentUtils::GetTransFormMatrixForDocumentScale ()
 Getting the transform matrix for converting the user defind artworks to tranform to documents with scale factor greater than 1.
AIRealMatrix ai::DocumentUtils::GetTransformMatrixForDocumentScaleFromReference (const AIRealPoint &referencePoint)
 Getting the transform matrix for converting the user defind artworks to tranform to documents with scale factor greater than 1 from a given reference point.
AIRealMatrix ai::DocumentUtils::GetTransFormMatrixForScaleFactor (const AIReal &scaleFactor)
 Getting the transform matrix for converting the user defind artworks to tranform to documents with specified scale factor.
AIRealMatrix ai::DocumentUtils::GetTransformMatrixForScaleFactorFromReference (const AIReal &scaleFactor, const AIRealPoint &referencePoint)
 Getting the transform matrix for converting the user defind artworks to tranform to documents with specified scale factor from a given reference point.
template<typename Rect >
void ai::DocumentUtils::ApplyScaleToRect (const Rect &inRect, Rect &outRect, const AIReal scale)
 Multiply the coordinates of the AIRealRect with given scale value.
template<typename Rect >
void ai::DocumentUtils::ApplyDocumentScaleToRect (const Rect &inRect, Rect &outRect)
 Converting the coordinates of the AIRealRect to scaled coordinate System.
template<typename Point >
void ai::DocumentUtils::ApplyDocumentScaleToPoint (const Point &inPoint, Point &outPoint)
 Converting the coordinates of the AIPoint to scaled coordinate System.
void ai::DocumentUtils::ApplyDocumentScaleToAIReal (const AIReal &inReal, AIReal &outReal)
 Converting the value of AIReal to scaled coordinate System.
template<typename Rect >
void ai::DocumentUtils::DropDocumentScaleFromRect (const Rect &inRect, Rect &outRect)
 Converting the coordinates of the scaled Rect to unscaled coordinate System.
template<typename Point >
void ai::DocumentUtils::DropDocumentScaleFromPoint (const Point &inPoint, Point &outPoint)
 Converting the coordinates of the AIPoint to scaled coordinate System.
void ai::DocumentUtils::DropDocumentScaleFromAIReal (const AIReal &inReal, AIReal &outReal)
 Converting the value of AIReal to scaled coordinate System.


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks