PDF Toolbox
Loading...
Searching...
No Matches
PdfToolbox_PtxGeomReal.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfToolbox_PtxGeomReal.h
4 *
5 * Description: Sub Header file for PDF Toolbox API
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2015 - 2024 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 *****************************************************************************/
13
14#ifndef PDFTOOLBOX_PTXGEOMREAL_H__
15#define PDFTOOLBOX_PTXGEOMREAL_H__
16
17#ifndef PDFTOOLBOX_CALL
18#if defined(WIN32)
19#define PDFTOOLBOX_CALL __stdcall
20#else
21#define PDFTOOLBOX_CALL
22#endif
23#endif
24
25#include "PdfToolbox_Types.h"
26#include "PdfToolbox_PtxSys.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33#ifdef _UNICODE
34#else
35#endif
36
37/******************************************************************************
38 * QuadrilateralList
39 *****************************************************************************/
51
83 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, int iIndex, TPtxGeomReal_Quadrilateral* pQuadrilateral);
101 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, const TPtxGeomReal_Quadrilateral* pQuadrilateral);
150 TPtxGeomReal_QuadrilateralList* pQuadrilateralList, int iIndex, const TPtxGeomReal_Quadrilateral* pValue);
151
152/******************************************************************************
153 * AffineTransform Methods
154 *****************************************************************************/
205 double sx, double sy);
239 TPtxGeomReal_AffineTransform* pAffineTransform, double dAngle, const TPtxGeomReal_Point* pCenter);
266 double dAlpha, double dBeta);
291 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_AffineTransform* pOther);
332 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Point* pOriginal, TPtxGeomReal_Point* pPoint);
355 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Rectangle* pOriginal,
356 TPtxGeomReal_Quadrilateral* pQuadrilateral);
380 TPtxGeomReal_AffineTransform* pAffineTransform, const TPtxGeomReal_Quadrilateral* pOriginal,
381 TPtxGeomReal_Quadrilateral* pQuadrilateral);
382
383/******************************************************************************
384 * AffineTransform Properties
385 *****************************************************************************/
397
398#ifdef __cplusplus
399}
400#endif
401
402#endif /* PDFTOOLBOX_PTXGEOMREAL_H__ */
#define PDFTOOLBOX_EXPORT
Definition PdfToolbox_Platform.h:138
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_Clear(TPtxGeomReal_QuadrilateralList *pQuadrilateralList)
Clear list.
#define PDFTOOLBOX_CALL
Definition PdfToolbox_PtxGeomReal.h:21
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_Get(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex, TPtxGeomReal_Quadrilateral *pQuadrilateral)
Returns the element at the specified position in the given list.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_AffineTransform_GetIdentity(TPtxGeomReal_AffineTransform *pIdentity)
The identity transform.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_Set(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex, const TPtxGeomReal_Quadrilateral *pValue)
Update certain element in list.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_AffineTransform_TransformPoint(TPtxGeomReal_AffineTransform *pAffineTransform, const TPtxGeomReal_Point *pOriginal, TPtxGeomReal_Point *pPoint)
Transforms the given point.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_Add(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, const TPtxGeomReal_Quadrilateral *pQuadrilateral)
Add an element to the end of the list.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_Remove(TPtxGeomReal_QuadrilateralList *pQuadrilateralList, int iIndex)
Remove certain element from list.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_AffineTransform_Rotate(TPtxGeomReal_AffineTransform *pAffineTransform, double dAngle, const TPtxGeomReal_Point *pCenter)
Rotate.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_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...
PDFTOOLBOX_EXPORT TPtxGeomReal_QuadrilateralList *PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_New(void)
PDFTOOLBOX_EXPORT int PDFTOOLBOX_CALL PtxGeomReal_QuadrilateralList_GetCount(TPtxGeomReal_QuadrilateralList *pQuadrilateralList)
Get the number of elements in the list.
PDFTOOLBOX_EXPORT BOOL PDFTOOLBOX_CALL PtxGeomReal_AffineTransform_Invert(TPtxGeomReal_AffineTransform *pAffineTransform)
Invert the transform A transform usually maps from the transformed coordinate system to the untransfo...
#define BOOL
Definition PdfToolbox_Types.h:18
Definition PdfToolbox_Types.h:2042
Definition PdfToolbox_Types.h:1970
Definition PdfToolbox_Types.h:2024
Definition PdfToolbox_Types.h:1998