FLImaging 7.10.21.1
FLImagingFoundation/FigureUtilities.h
1#pragma once
2
8
9#include "DefinitionsFigure.h"
10
11
13namespace FLImaging
14{
16 namespace Foundation
17 {
23
24 class FL_EXPORT CFigureUtilities : public Base::CFLBase
25 {
26 public:
32
38
39 public:
40
54 static CFLFigure* LoadFigure(const wchar_t* pWcsFileName);
55
73 static const CResult SaveFigure(const wchar_t* pWcsFileName, const CFLFigure* pFigure);
74
76
94
96
114
116
138 static const CResult ConvertFigureStringToObject(const Base::CFLString<wchar_t>& wstrFigure, CFLFigureArray* pFlfaResult);
140 static const CResult ConvertFigureStringToObject(const Base::CFLString<wchar_t>* pStrFigure, CFLFigureArray* pFlfaResult);
142
144
171 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage& fliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
172 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage* pFliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
173 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage& fliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
174 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage* pFliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
176
178
203 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage& fliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
204 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage* pFliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
205 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage& fliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
206 static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage* pFliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
208
210
247 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImage& fliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
248 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImage& fliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
249 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImage* pFliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
250 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImage* pFliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
251 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImage& fliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
252 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImage& fliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
253 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImage* pFliSource, CFLFigureArray& flfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
254 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImage* pFliSource, CFLFigureArray* pFlfaTarget, bool bAppend = false, int32_t i32SourcePageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
256
258
293 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImagePage& fliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
294 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImagePage& fliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
295 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImagePage* pFliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
296 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>& strExpression, const Base::CFLImagePage* pFliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
297 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImagePage& fliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
298 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImagePage& fliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
299 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImagePage* pFliSourcePage, CFLFigureArray& flfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
300 static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const Base::CFLImagePage* pFliSourcePage, CFLFigureArray* pFlfaTarget, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
302
304
331 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray& flfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
332 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray* pFlfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
333 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray& flfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
334 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray* pFlfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
336
338
363 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray& flfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
364 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray* pFlfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
365 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray& flfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
366 static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray* pFlfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, const Base::CProcessingUnitBase* pPu = nullptr);
368
370
407 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray& flfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
408 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray& flfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
409 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray* pFlfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
410 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray* pFlfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
411 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray& flfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
412 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray& flfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
413 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray* pFlfaSource, Base::CFLImage& fliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
414 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray* pFlfaSource, Base::CFLImage* pFliTarget, bool bAppend = false, int32_t i32TargetPageNumber = -1, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
416
418
453 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray& flfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
454 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray& flfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
455 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray* pFlfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
456 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, const CFLFigureArray* pFlfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
457 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray& flfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
458 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray& flfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
459 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray* pFlfaSource, Base::CFLImagePage& fliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
460 static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, const CFLFigureArray* pFlfaSource, Base::CFLImagePage* pFliTargetPage, bool bAppend = false, CFLFigureArray* pFlfaResultIndices = nullptr, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
462
464
493 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, Base::CFLImage& fliSource, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
494 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, Base::CFLImage* pFliSource, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
495 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, Base::CFLImage& fliSource, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
496 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, Base::CFLImage* pFliSource, int32_t i32SourcePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
498
500
527 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, Base::CFLImagePage& fliSourcePage, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
528 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>& strExpression, Base::CFLImagePage* pFliSourcePage, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
529 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, Base::CFLImagePage& fliSourcePage, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
530 static const CResult RemoveImageFiguresWithExpression(const Base::CFLString<wchar_t>* pStrExpression, Base::CFLImagePage* pFliSourcePage, const Base::CProcessingUnitBase* pPu = nullptr, bool bFigureArrayAsShape = false);
532
534
551 static CFLFigure* ConvertDeclType(const CFLFigure& flfFigure, EFigureDeclType eConvertType);
552 static CFLFigure* ConvertDeclType(const CFLFigure* pFlfFigure, EFigureDeclType eConvertType);
554
556
573 static CFLFigure* ConvertTemplateType(const CFLFigure& flfFigure, EFigureTemplateType eConvertType);
574 static CFLFigure* ConvertTemplateType(const CFLFigure* pFlfFigure, EFigureTemplateType eConvertType);
576
596 static const CResult GetConvexHull(const CFLFigure* pFlf, CFLRegion* pFlrgConvex);
597
617 static const CResult GetConvexHull(const CFLFigure* pFlf, CFLComplexRegion* pFlcrConvex);
618
620
637 static Base::CFLString<wchar_t> ExtractFigureName(const Base::CFLString<wchar_t>& wstrFigure, bool bValidationCheck = false);
638 static Base::CFLString<wchar_t> ExtractFigureName(const Base::CFLString<wchar_t>* pStrFigure, bool bValidationCheck = false);
640
662 static const CResult SetNameFigureString(const Base::CFLString<wchar_t>& strFigureString, const Base::CFLString<wchar_t>& strFigureName, Base::CFLString<wchar_t>& strResultFigureString, bool bRecursive = false);
663
683 static const CResult SetNameFigureString(Base::CFLString<wchar_t>& strFigureString, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false);
684
704 static const CResult SetNameFigureString(wchar_t*& pWcsFigureString, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false);
705
707
734 static const CResult SetNameImageFigures(Base::CFLImage& fliImage, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false, int32_t i32ImagePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
735 static const CResult SetNameImageFigures(Base::CFLImage* pFliImage, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false, int32_t i32ImagePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
737
739
764 static const CResult SetNameImageFigures(Base::CFLImagePage& fliImagePage, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false, const Base::CProcessingUnitBase* pPu = nullptr);
765 static const CResult SetNameImageFigures(Base::CFLImagePage* pFliImagePage, const Base::CFLString<wchar_t>& strFigureName, bool bRecursive = false, const Base::CProcessingUnitBase* pPu = nullptr);
767
791 static const CResult ReplaceNameFigureString(const Base::CFLString<wchar_t>& strFigureString, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, Base::CFLString<wchar_t>& strResultFigureString, bool bRecursive = false);
792
814 static const CResult ReplaceNameFigureString(Base::CFLString<wchar_t>& strFigureString, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false);
815
837 static const CResult ReplaceNameFigureString(wchar_t*& pWcsFigureString, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false);
838
840
869 static const CResult ReplaceNameImageFigures(Base::CFLImage& fliImage, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false, int32_t i32ImagePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
870 static const CResult ReplaceNameImageFigures(Base::CFLImage* pFliImage, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false, int32_t i32ImagePageNumber = -1, const Base::CProcessingUnitBase* pPu = nullptr);
872
900 static const CResult ReplaceNameImageFigures(Base::CFLImagePage& fliImagePage, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false, const Base::CProcessingUnitBase* pPu = nullptr);
901 static const CResult ReplaceNameImageFigures(Base::CFLImagePage* pFliImagePage, const Base::CFLString<wchar_t>& strOrgName, const Base::CFLString<wchar_t>& strReplaceName, bool bRecursive = false, const Base::CProcessingUnitBase* pPu = nullptr);
902
903 private:
904
905 static const CResult GetRegionOfIntersectionWithRaster(const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaSource, const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaOperand, Base::CFLArray<Base::TPoint3<int32_t>>* pFlaResult);
906
907 static const CResult GetRegionOfUnionWithRaster(const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaSource, const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaOperand, Base::CFLArray<Base::TPoint3<int32_t>>* pFlaResult);
908
909 static const CResult GetRegionOfSubtractionWithRaster(const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaSource, const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaOperand, Base::CFLArray<Base::TPoint3<int32_t>>* pFlaResult);
910
911 static const CResult GetRegionOfExclusiveOrWithRaster(const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaSource, const Base::CFLArray<Base::TPoint3<int32_t>>* pFlaOperand, Base::CFLArray<Base::TPoint3<int32_t>>* pFlaResult);
912
913
914 DeclareGetClassType();
915 };
916 }
917}
918
Template type array class.
Definition FLArray.h:71
Top-level base class of FLImaging.
Definition FLImagingBase/FLBase.h:36
FLIMaging's image class.
Definition FLImagingBase/FLImage.h:35
CFLImage's page class.
Definition FLImagingBase/FLImagePage.h:37
Template type string class.
Definition FLString.h:34
Processing unit base class.
Definition FLImagingBase/ProcessingUnitBase.h:27
Simplified class representing a 3-D point.
Definition FLImagingBase/TPoint3.h:37
FLImaging module execution result object.
Definition FLImagingBase/ResultsDef.h:1712
A class representing a polygon.
Definition FLImagingFoundation/FLComplexRegion.h:28
A base class representing array of figure.
Definition FLImagingFoundation/FLFigureArray.h:27
A base class of classes representing figures.
Definition FLImagingFoundation/FLFigure.h:27
A class representing region.
Definition FLImagingFoundation/FLRegion.h:26
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray &flfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray *pFlfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, Base::CFLImage *pFliSource, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray *pFlfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult SetNameImageFigures(Base::CFLImagePage *pFliImagePage, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false, const Base::CProcessingUnitBase *pPu=nullptr)
Sets a name for figures in the image page.
static const CResult SetNameImageFigures(Base::CFLImage *pFliImage, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false, int32_t i32ImagePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Sets a name for figures in the image.
static const CResult SetNameFigureString(const Base::CFLString< wchar_t > &strFigureString, const Base::CFLString< wchar_t > &strFigureName, Base::CFLString< wchar_t > &strResultFigureString, bool bRecursive=false)
Set the name of the figure from a string.
static const CResult ReplaceNameImageFigures(Base::CFLImage *pFliImage, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, bool bRecursive=false, int32_t i32ImagePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Replaces the names of figures in the image.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray *pFlfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray *pFlfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static CFLFigure * ConvertTemplateType(const CFLFigure *pFlfFigure, EFigureTemplateType eConvertType)
Converts the input figure to the specified data type and returns it. The returned CFLFigure object re...
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImage *pFliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static CFLFigure * ConvertDeclType(const CFLFigure *pFlfFigure, EFigureDeclType eConvertType)
Converts the input figure to the specified figure type and returns it. The returned CFLFigure object ...
static const CResult ReplaceNameImageFigures(Base::CFLImagePage &fliImagePage, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, bool bRecursive=false, const Base::CProcessingUnitBase *pPu=nullptr)
Replaces the name for the Figure in the image.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray &flfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static CFLFigure * ConvertFigureStringToObject(const Base::CFLString< wchar_t > &wstrFigure)
Converts a string into a CFLFigure object and returns it. The memory of the returned CFLFigure object...
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray *pFlfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image page.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray &flfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray *pFlfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray &flfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult ReplaceNameFigureString(Base::CFLString< wchar_t > &strFigureString, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, bool bRecursive=false)
Replaces the name of a Figure in the given string.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImagePage *pFliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult SetNameImageFigures(Base::CFLImage &fliImage, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false, int32_t i32ImagePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Sets a name for figures in the image.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, Base::CFLImage &fliSource, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, Base::CFLImagePage &fliSourcePage, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image page.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray &flfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static Base::CFLString< wchar_t > ConvertFigureObjectToString(const CFLFigure *pFlfFigure)
Converts a CFLFigure object to a string and returns it.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray *pFlfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image page.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage &fliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image page to a CFLFigureArray.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray *pFlfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImage *pFliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImage &fliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray *pFlfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult GetConvexHull(const CFLFigure *pFlf, CFLComplexRegion *pFlcrConvex)
Calculate the convex hull of the input figure.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImagePage *pFliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertFigureStringToObject(const Base::CFLString< wchar_t > *pStrFigure, CFLFigureArray *pFlfaResult)
Converts a string to CFLFigure objects and stores the result in a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImage *pFliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImagePage &fliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, Base::CFLImage &fliSource, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImagePage *pFliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static CFLFigure * LoadFigure(const wchar_t *pWcsFileName)
Load a figure file saved as .fig, create a figure object, and return it. The user must release the ob...
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage *pFliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image to a CFLFigureArray.
static Base::CFLString< wchar_t > ExtractFigureName(const Base::CFLString< wchar_t > *pStrFigure, bool bValidationCheck=false)
Extracts and returns the name of the figure from a string.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage *pFliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image page to a CFLFigureArray.
static const CResult ReplaceNameFigureString(const Base::CFLString< wchar_t > &strFigureString, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, Base::CFLString< wchar_t > &strResultFigureString, bool bRecursive=false)
Replaces the name of a Figure in the given string.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray &flfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image page.
static const CResult ConvertFigureStringToObject(const Base::CFLString< wchar_t > &wstrFigure, CFLFigureArray *pFlfaResult)
Converts a string to CFLFigure objects and stores the result in a CFLFigureArray.
static const CResult ConvertFigureStringToObject(const Base::CFLString< wchar_t > *pStrFigure, CFLFigureArray &flfaResult)
Converts a string to CFLFigure objects and stores the result in a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImagePage &fliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImagePage *pFliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult SetNameFigureString(wchar_t *&pWcsFigureString, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false)
Set the name of the figure from a string.
static CFLFigure * ConvertDeclType(const CFLFigure &flfFigure, EFigureDeclType eConvertType)
Converts the input figure to the specified figure type and returns it. The returned CFLFigure object ...
static const CResult GetConvexHull(const CFLFigure *pFlf, CFLRegion *pFlrgConvex)
Calculate the convex hull of the input figure.
static CFLFigure * ConvertFigureStringToObject(const Base::CFLString< wchar_t > *pStrFigure)
Converts a string into a CFLFigure object and returns it. The memory of the returned CFLFigure object...
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImagePage &fliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertFigureStringToObject(const Base::CFLString< wchar_t > &wstrFigure, CFLFigureArray &flfaResult)
Converts a string to CFLFigure objects and stores the result in a CFLFigureArray.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray &flfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, Base::CFLImage *pFliSource, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImage *pFliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static Base::CFLString< wchar_t > ConvertFigureObjectToString(const CFLFigure &flfFigure)
Converts a CFLFigure object to a string and returns it.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, Base::CFLImagePage *pFliSourcePage, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image page.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImagePage &fliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image page that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImage &fliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, Base::CFLImagePage &fliSourcePage, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image page.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage &fliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image to a CFLFigureArray.
static const CResult ReplaceNameImageFigures(Base::CFLImage &fliImage, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, bool bRecursive=false, int32_t i32ImagePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Replaces the names of figures in the image.
static const CResult SetNameFigureString(Base::CFLString< wchar_t > &strFigureString, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false)
Set the name of the figure from a string.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray &flfaSource, Base::CFLImagePage &fliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage *pFliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image to a CFLFigureArray.
static Base::CFLString< wchar_t > ExtractFigureName(const Base::CFLString< wchar_t > &wstrFigure, bool bValidationCheck=false)
Extracts and returns the name of the figure from a string.
static CFLFigure * ConvertTemplateType(const CFLFigure &flfFigure, EFigureTemplateType eConvertType)
Converts the input figure to the specified data type and returns it. The returned CFLFigure object re...
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray *pFlfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > &strExpression, const CFLFigureArray *pFlfaSource, Base::CFLImage &fliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static const CResult RemoveImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, Base::CFLImagePage *pFliSourcePage, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Removes figures that satisfy a conditional expression from an image page.
static const CResult SetNameImageFigures(Base::CFLImagePage &fliImagePage, const Base::CFLString< wchar_t > &strFigureName, bool bRecursive=false, const Base::CProcessingUnitBase *pPu=nullptr)
Sets a name for figures in the image page.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const Base::CFLImage &fliSource, CFLFigureArray &flfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage *pFliSourcePage, CFLFigureArray &flfaTarget, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image page to a CFLFigureArray.
static const CResult ReplaceNameFigureString(wchar_t *&pWcsFigureString, const Base::CFLString< wchar_t > &strOrgName, const Base::CFLString< wchar_t > &strReplaceName, bool bRecursive=false)
Replaces the name of a Figure in the given string.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray &flfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image.
static const CResult SaveFigure(const wchar_t *pWcsFileName, const CFLFigure *pFigure)
Save the figure object as .fig.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray *pFlfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImage &fliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image to a CFLFigureArray.
static const CResult ConvertFigureArrayToImageFigures(const CFLFigureArray &flfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in a CFLFigureArray to figures in an image page.
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray &flfaSource, Base::CFLImagePage *pFliTargetPage, bool bAppend=false, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image p...
static const CResult ConvertFigureArrayToImageFiguresWithExpression(const Base::CFLString< wchar_t > *pStrExpression, const CFLFigureArray &flfaSource, Base::CFLImage *pFliTarget, bool bAppend=false, int32_t i32TargetPageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in a CFLFigureArray that satisfy a conditional expression into figures in an image.
static const CResult ConvertImageFiguresToFigureArrayWithExpression(const Base::CFLString< wchar_t > &strExpression, const Base::CFLImage &fliSource, CFLFigureArray *pFlfaTarget, bool bAppend=false, int32_t i32SourcePageNumber=-1, CFLFigureArray *pFlfaResultIndices=nullptr, const Base::CProcessingUnitBase *pPu=nullptr, bool bFigureArrayAsShape=false)
Converts figures in the image that satisfy a conditional expression into a CFLFigureArray.
static const CResult ConvertImageFiguresToFigureArray(const Base::CFLImagePage &fliSourcePage, CFLFigureArray *pFlfaTarget, bool bAppend=false, const Base::CProcessingUnitBase *pPu=nullptr)
Converts figures in the image page to a CFLFigureArray.
Definition FLImagingFoundation/AlgorithmBase.h:16
EFigureDeclType
Declare type of figure.
Definition FLImagingFoundation/DefinitionsFigure.h:33
EFigureTemplateType
Template type of figure.
Definition FLImagingFoundation/DefinitionsFigure.h:434