BIMHome v1.0.0
BIMHome接口文档说明
静态 Public 成员函数 | 所有成员列表
EntityFactory类 参考

#include <Setting.h>

静态 Public 成员函数

static TechDraw::DxfEntityconvertGeometryToDxfEntity (const Part::Geometry *geometry)
 
static DxfArccreateArc (const DxfVector &center, double radius, double angle1, double angle2, bool reversed, double xScale=1.0, double yScale=1.0)
 创建圆弧
 
static DxfBlockcreateBlock (const std::string name, const DxfVector &insertPt, const std::vector< DxfEntity * > &entities)
 创建Block
 
static DxfCirclecreateCircle (DxfVector center, double radius, double xScale=1.0, double yScale=1.0)
 创建圆
 
static DxfDimDiametriccreateDimDiametric (const DxfVector &defLoca, const DxfVector &textLoca, const DxfVector &diametricLoca, const std::string &text, std::string style="HKR", std::string font="simsunb", double angleDim=0.0, double leader=0, double xScale=1.0, double yScale=1.0, int textcolor=0, int horizonColor=0, int verticalColor=0)
 创建直径标注
 
static DxfDimRadialcreateDimRadius (const DxfVector &center, const DxfVector &textLoca, const DxfVector &radiusLoca, const std::string &text, std::string style="HKR", std::string font="simsunb", double angleDim=0.0, double leader=0, double xScale=1.0, double yScale=1.0, int textcolor=0, int horizonColor=0, int verticalColor=0)
 创建半径标注
 
static DxfEllipsecreateEllipse (const DxfVector &center, const DxfVector &major, double ratio, double angle1, double angle2, bool reversed, double xScale=1.0, double yScale=1.0)
 创建椭圆
 
static DxfHatchcreateHatch (bool bSolid, const std::vector< std::vector< TechDraw::DxfEntity * > > &sectionFaces, HatchPat patFileInfo=HatchPat::SOLID, bool isShowEdgeLine=false, DxfVector centerPoint=DxfVector(0, 0, 0), double xScale=1.0, double yScale=1.0)
 创建图案填充
 
static DxfInsertcreateInsert (const std::string name, const DxfVector &insertPt, double angle)
 创建Block的插入点对象
 
static DxfLeadercreateLeader (double textWidth, double textHeight, int arrowStyle, int lineColor, const std::vector< TechDraw::DxfVector > &pointVec)
 创建引线标注
 
static DxfLinecreateLine (DxfVector position1, DxfVector position2, double lineWidth=1.0, double xScale=1.0, double yScale=1.0)
 创建直线
 
static DxfMTextcreateMText (const std::string &text, DxfVector position, double height, double angle, int widthscale=1.0, std::string style="HKR", std::string font="simsunb", double xScale=1.0, double yScale=1.0)
 创建多行文字
 
static DxfPolylinecreatePolyline (const std::vector< std::pair< DxfVector, double > > &positionList, bool closed, double lineWidth=1.0, double xScale=1.0, double yScale=1.0)
 创建多段线
 
static DxfPolylinecreatePolylineforEntity (std::vector< DxfEntity * > entities, bool closed, double lineWidth=1.0)
 
static DxfSplinecreateSpline (const std::vector< DxfVector > &controlPoints, const std::vector< double > &knotsLists, int degree, bool closed)
 创建Spline
 
static DxfTextcreateText (const std::string &text, DxfVector position1, DxfVector position2, double height, double angle, int widthscale=1.0, std::string style="HKR", std::string font="simsunb", double xScale=1.0, double yScale=1.0, bool codeTrans=true)
 创建单行文字
 
static std::vector< std::vector< TechDraw::DxfEntity * > > getHatchChildEntities (DxfHatch *hatch)
 返回图案填充区域的外围线
 
static void getPartNames (std::vector< std::string > &patNames)
 获取所有的Pat名称
 
static std::string getPatFileNameFromPat (HatchPat patNum)
 获取pat文件的名字
 
static HatchPat getPatFromPatFileName (std::string patFileName)
 获取pat文件的枚举值
 
static bool isSamePoint (const DxfVector &v1, const DxfVector &v2, double tol=1e-6)
 自定义三维向量容差比较函数
 
static void setEntityAttribute (DxfEntity *entity, const DxfAttribute &attr)
 为DXF实体设置属性
 

该类的文档由以下文件生成: