BIMHome
v1.0.0
BIMHome接口文档说明
首页
相关页面
Topics
包
类
文件
文件列表
文件成员
BIMHome
Algorithm
Interface
OperationAndEditing
Offset
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>
24
namespace
App
{
25
class
IDocument;
26
class
IDocumentObject;
27
}
28
29
namespace
Base
{
30
class
PolyLine
;
31
class
Geometry;
32
}
33
34
namespace
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
App::IDocumentObject
Definition
IDocumentObject.h:35
Base::Geometry
Definition
Geometry.h:81
Base::PolyLine
Definition
PolyLine.h:27
PlatformAlgorithm::OffsetHelper::offsetObj
static bool offsetObj(App::IDocumentObject *pObj, int offsetMode, double offsetValue)
对文档对象执行偏移操作
PlatformAlgorithm::OffsetHelper::createOffsetByBaseGeometry
static Base::Geometry * createOffsetByBaseGeometry(Base::Geometry *pGeo, int offsetMode, double offsetValue)
根据基础几何创建偏移几何对象
PlatformAlgorithm::OffsetHelper::offset
static Base::PolyLine offset(const Base::PolyLine &polyLine, const int offsetMode, const double offsetValue)
根据指定的偏移模式和偏移距离,生成输入多段线的偏移曲线
PlatformAlgorithm::OffsetHelper
Definition
OffsetHelper.h:37
App
Definition
BaseFigureFactory.h:28
Base::Geometry2DType::PolyLine
@ PolyLine
Base
Definition
BaseFigureFactory.h:24
PlatformAlgorithm
Definition
BaseFigureFactory.h:33