|
BIMHome v1.0.0
BIMHome接口文档说明
|
#include <Setting.h>
静态 Public 成员函数 | |
| static TechDraw::DxfEntity * | convertGeometryToDxfEntity (const Part::Geometry *geometry) |
| static DxfArc * | createArc (const DxfVector ¢er, double radius, double angle1, double angle2, bool reversed, double xScale=1.0, double yScale=1.0) |
| 创建圆弧 | |
| static DxfBlock * | createBlock (const std::string name, const DxfVector &insertPt, const std::vector< DxfEntity * > &entities) |
| 创建Block | |
| static DxfCircle * | createCircle (DxfVector center, double radius, double xScale=1.0, double yScale=1.0) |
| 创建圆 | |
| static DxfDimDiametric * | createDimDiametric (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 DxfDimRadial * | createDimRadius (const DxfVector ¢er, 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 DxfEllipse * | createEllipse (const DxfVector ¢er, const DxfVector &major, double ratio, double angle1, double angle2, bool reversed, double xScale=1.0, double yScale=1.0) |
| 创建椭圆 | |
| static DxfHatch * | createHatch (bool bSolid, const std::vector< std::vector< TechDraw::DxfEntity * > > §ionFaces, HatchPat patFileInfo=HatchPat::SOLID, bool isShowEdgeLine=false, DxfVector centerPoint=DxfVector(0, 0, 0), double xScale=1.0, double yScale=1.0) |
| 创建图案填充 | |
| static DxfInsert * | createInsert (const std::string name, const DxfVector &insertPt, double angle) |
| 创建Block的插入点对象 | |
| static DxfLeader * | createLeader (double textWidth, double textHeight, int arrowStyle, int lineColor, const std::vector< TechDraw::DxfVector > &pointVec) |
| 创建引线标注 | |
| static DxfLine * | createLine (DxfVector position1, DxfVector position2, double lineWidth=1.0, double xScale=1.0, double yScale=1.0) |
| 创建直线 | |
| static DxfMText * | createMText (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 DxfPolyline * | createPolyline (const std::vector< std::pair< DxfVector, double > > &positionList, bool closed, double lineWidth=1.0, double xScale=1.0, double yScale=1.0) |
| 创建多段线 | |
| static DxfPolyline * | createPolylineforEntity (std::vector< DxfEntity * > entities, bool closed, double lineWidth=1.0) |
| static DxfSpline * | createSpline (const std::vector< DxfVector > &controlPoints, const std::vector< double > &knotsLists, int degree, bool closed) |
| 创建Spline | |
| static DxfText * | createText (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实体设置属性 | |