BIMHome v1.0.0
BIMHome接口文档说明
CompoundFactory.h
浏览该文件的文档.
1/************************************************************************
2* @file CompoundFactory.h
3*
4* @brief 组合对象工厂类
5*
6* @details 组合对象工厂类 --- 将多个obj对应的Shape生成一个组合Shape
7*
8* @author sunpeng
9*
10* @version 版本号 V0.1
11*
12* @date 2025-6-13
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef PLATFORMALGORITHM_INTERFACE_COMPOUNDFACTORY_H
19#define PLATFORMALGORITHM_INTERFACE_COMPOUNDFACTORY_H
20
21#include <BHGlobal.h>
22#include <string>
23#include <vector>
24
25namespace App {
26 class IDocument;
27 class IDocumentObject;
28}
29
30namespace PlatformAlgorithm
31{
32 class PlatformAlgorithmEXPORTS CompoundFactory
33 {
34 public:
35 //体合并(Compound)
44 static App::IDocumentObject* createCompound(std::vector<App::IDocumentObject*> pObjs, const std::string& objName = "Compound", App::IDocument* pParentDoc = nullptr);
45
52 static void updateCompound(App::IDocumentObject* pCompoundObj, std::vector<App::IDocumentObject*> pObjs);
53
54
55 };
56}
57
58#endif //PLATFORMALGORITHM_INTERFACE_COMPOUNDFACTORY_H
文档接口类
Definition IDocument.h:43
Definition IDocumentObject.h:35
static App::IDocumentObject * createCompound(std::vector< App::IDocumentObject * > pObjs, const std::string &objName="Compound", App::IDocument *pParentDoc=nullptr)
将多个几何对象组合成一个复合对象
static void updateCompound(App::IDocumentObject *pCompoundObj, std::vector< App::IDocumentObject * > pObjs)
更新复合对象中的子对象
Definition CompoundFactory.h:33
Definition BaseFigureFactory.h:28
Definition BaseFigureFactory.h:33