PDF Toolbox
Loading...
Searching...
No Matches
PdfTools_Toolbox_PtxGeomReal.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfTools_Toolbox_PtxGeomReal.h
4 *
5 * Description: Sub Header file for Toolbox SDK
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2024 - 2024 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 * Notice: By downloading and using this artifact, you accept PDF Tools AG's
13 * [license agreement](https://www.pdf-tools.com/license-agreement/),
14 * [privacy policy](https://www.pdf-tools.com/privacy-policy/),
15 * and allow PDF Tools AG to track your usage data.
16 *
17 *****************************************************************************/
18
19#ifndef PDFTOOLS_TOOLBOX_PTXGEOMREAL_H__
20#define PDFTOOLS_TOOLBOX_PTXGEOMREAL_H__
21
22#ifndef PDFTOOLS_TOOLBOX_CALL
23#if defined(WIN32)
24#define PDFTOOLS_TOOLBOX_CALL __stdcall
25#else
26#define PDFTOOLS_TOOLBOX_CALL
27#endif
28#endif
29
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38#ifdef _UNICODE
39#else
40#endif
41
42/******************************************************************************
43 * QuadrilateralList
44 *****************************************************************************/
56
88 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, int iIndex, TPtxGeomReal_Quadrilateral* pQuadrilateral);
106 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, const TPtxGeomReal_Quadrilateral* pQuadrilateral);
155 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, int iIndex, const TPtxGeomReal_Quadrilateral* pValue);
156
157/******************************************************************************
158 * AffineTransform Methods
159 *****************************************************************************/
244 TPtxGeomReal_AffineTransform* pAffineTransform, double dAngle, const TPtxGeomReal_Point* pCenter);
271PtxGeomReal_AffineTransform_Skew(TPtxGeomReal_AffineTransform* pAffineTransform, double dAlpha, double dBeta);
296 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_AffineTransform* pOther);
337 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Point* pOriginal, TPtxGeomReal_Point* pPoint);
360 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Rectangle* pOriginal,
361 TPtxGeomReal_Quadrilateral* pQuadrilateral);
385 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Quadrilateral* pOriginal,
386 TPtxGeomReal_Quadrilateral* pQuadrilateral);
387
388/******************************************************************************
389 * AffineTransform Properties
390 *****************************************************************************/
403
404#ifdef __cplusplus
405}
406#endif
407
408#endif /* PDFTOOLS_TOOLBOX_PTXGEOMREAL_H__ */
#define PDFTOOLS_TOOLBOX_EXPORT
Definition PdfTools_Toolbox_Platform.h:143
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_Remove(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex)
Remove certain element from list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_TransformQuadrilateral(TPtxGeomReal_AffineTransform *pAffineTransform, const TPtxGeomReal_Quadrilateral *pOriginal, TPtxGeomReal_Quadrilateral *pQuadrilateral)
Transform a given quadrilateral If the input quadrilateral is a parallelogram, then the output is als...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_GetIdentity(TPtxGeomReal_AffineTransform *pIdentity)
The identity transform.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_TransformPoint(TPtxGeomReal_AffineTransform *pAffineTransform, const TPtxGeomReal_Point *pOriginal, TPtxGeomReal_Point *pPoint)
Transforms the given point.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_Get(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex, TPtxGeomReal_Quadrilateral *pQuadrilateral)
Returns the element at the specified position in the given list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Rotate(TPtxGeomReal_AffineTransform *pAffineTransform, double dAngle, const TPtxGeomReal_Point *pCenter)
Rotate.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_TransformRectangle(TPtxGeomReal_AffineTransform *pAffineTransform, const TPtxGeomReal_Rectangle *pOriginal, TPtxGeomReal_Quadrilateral *pQuadrilateral)
Transform the given rectangle For a general affine transformation, the returned TPtxGeomReal_Quadrila...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Translate(TPtxGeomReal_AffineTransform *pAffineTransform, double tx, double ty)
Translate. Translations are specified as [1 0 0 1 tx ty], where tx and ty are the distances to transl...
#define PDFTOOLS_TOOLBOX_CALL
Definition PdfTools_Toolbox_PtxGeomReal.h:26
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Skew(TPtxGeomReal_AffineTransform *pAffineTransform, double dAlpha, double dBeta)
Skew. Skew is specified by [1 tan a tan b 1 0 0], which skews the x axis by an angle a and the y axis...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_Add(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, const TPtxGeomReal_Quadrilateral *pQuadrilateral)
Add an element to the end of the list.
PDFTOOLS_TOOLBOX_EXPORT TPtxGeomReal_QuadrilateralList *PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_New(void)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_Clear(TPtxGeomReal_QuadrilateralList *pQuadrilateralList)
Clear list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Scale(TPtxGeomReal_AffineTransform *pAffineTransform, double sx, double sy)
Scale. Scaling is obtained by [sx 0 0 sy 0 0]. This scales the coordinates so that 1 unit in the hori...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_Set(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex, const TPtxGeomReal_Quadrilateral *pValue)
Update certain element in list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Invert(TPtxGeomReal_AffineTransform *pAffineTransform)
Invert the transform A transform usually maps from the transformed coordinate system to the untransfo...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxGeomReal_AffineTransform_Concatenate(TPtxGeomReal_AffineTransform *pAffineTransform, const TPtxGeomReal_AffineTransform *pOther)
Concatenate transform with other transform. Concatenating a transform with an other transform is equi...
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxGeomReal_QuadrilateralList_GetCount(TPtxGeomReal_QuadrilateralList *pQuadrilateralList)
Get the number of elements in the list.
#define BOOL
Definition PdfTools_Toolbox_Types.h:23
Definition PdfTools_Toolbox_Types.h:2183
Definition PdfTools_Toolbox_Types.h:2111
Definition PdfTools_Toolbox_Types.h:2165
Definition PdfTools_Toolbox_Types.h:2139