BIMHome v1.0.0
BIMHome接口文档说明
OffsetHelper.h
浏览该文件的文档.
1/************************************************************************
2* @file OffsetHelper.h
3*
4* @brief 创建偏移工具类
5*
6* @details 创建偏移工具类
7*
8* @author sunpeng
9*
10* @version 版本号 V0.1
11*
12* @date 2025-7-04
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef PLATFORMALGORITHM_INTERFACE_OFFSETHELPER_H
19#define PLATFORMALGORITHM_INTERFACE_OFFSETHELPER_H
20
21#include <BHGlobal.h>
22#include <string>
23#include <vector>
24namespace App {
25 class IDocument;
26 class IDocumentObject;
27}
28
29namespace Base {
30 class PolyLine;
31 class Geometry;
32}
33
34namespace PlatformAlgorithm
35{
36 class PlatformAlgorithmEXPORTS OffsetHelper
37 {
38 public:
47 static Base::PolyLine offset(const Base::PolyLine& polyLine, const int offsetMode, const double offsetValue);
48
57 static Base::Geometry* createOffsetByBaseGeometry(Base::Geometry* pGeo, int offsetMode, double offsetValue);
58
67 static bool offsetObj(App::IDocumentObject* pObj, int offsetMode, double offsetValue);
68
69 };
70}
71
72#endif //PLATFORMALGORITHM_INTERFACE_OFFSETHELPER_H
Definition IDocumentObject.h:35
Definition Geometry.h:81
Definition PolyLine.h:27
static bool offsetObj(App::IDocumentObject *pObj, int offsetMode, double offsetValue)
对文档对象执行偏移操作
static Base::Geometry * createOffsetByBaseGeometry(Base::Geometry *pGeo, int offsetMode, double offsetValue)
根据基础几何创建偏移几何对象
static Base::PolyLine offset(const Base::PolyLine &polyLine, const int offsetMode, const double offsetValue)
根据指定的偏移模式和偏移距离,生成输入多段线的偏移曲线
Definition OffsetHelper.h:37
Definition BaseFigureFactory.h:28
Definition BaseFigureFactory.h:24
Definition BaseFigureFactory.h:33