BIMHome v1.0.0
BIMHome接口文档说明
IDrawViewSketchTemplate.h
浏览该文件的文档.
1/************************************************************************
2* @file IDrawViewSketchTemplate.h
3*
4* @brief 模版解析绘制接口类
5*
6* @details 模版解析绘制接口类
7*
8* @author
9*
10* @version 1.0
11*
12* @date 2025-6-25
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef TECHDRAW_APP_CREATEIDRAWVIEW_H
19#define TECHDRAW_APP_CREATEIDRAWVIEW_H
20
21#include "BHGlobal.h"
22#include <string>
23#include <vector>
24
25namespace App {
26 class IDocument;
27}
28
29namespace Base {
30 struct SketcherText;
31}
32
33namespace TechDraw
34{
35 class IDrawView;
36 class DxfEntity;
37
38 class TechDrawExport IDrawViewSketchTemplate
39 {
40 public:
49 const std::string pObjectName);
50
51
53
59 virtual void setPath(const std::string& path) = 0;
60
66 virtual void setAmplifyMultiple(float times) = 0;
67
75 virtual void setTextShowFlag(int texShow) = 0;
76
81 virtual void recomputer() = 0;
82
88 virtual std::vector<TechDraw::DxfEntity*> getDrawData() = 0;
89
95 virtual std::vector<Base::SketcherText> getBalloonText() = 0;
96
102 virtual std::vector<TechDraw::DxfEntity*> getText() = 0;
103 };
104}
105
106#endif // TECHDRAW_APP_CREATEIDRAWVIEW_H
文档接口类
Definition IDocument.h:43
TechDraw中DxfEntity类
virtual std::vector< TechDraw::DxfEntity * > getDrawData()=0
获取模版中几何数据
virtual void setTextShowFlag(int texShow)=0
设置模版文本显示情况
virtual void setAmplifyMultiple(float times)=0
设置模版放大倍数
virtual std::vector< TechDraw::DxfEntity * > getText()=0
以纯文本的形式存储模版中文本数据
virtual void setPath(const std::string &path)=0
设置模版路径
static IDrawViewSketchTemplate * create(App::IDocument *pDoc, const std::string pObjectName)
创建绘制的模版对象
virtual std::vector< Base::SketcherText > getBalloonText()=0
以引线标注的形式存储模版中文本数据
virtual void recomputer()=0
执行计算
Definition IDrawViewSketchTemplate.h:39
Definition BaseFigureFactory.h:28
Definition BaseFigureFactory.h:24
Definition ArrowPropEnum.h:26