|
BIMHome v1.0.0
BIMHome接口文档说明
|
#include <DxfEntity.h>
Public 成员函数 | |
| virtual void | calculateBorders () override |
| 计算坐标范围 | |
| virtual DxfEntity * | clone () override |
| 纯虚函数, 拷贝对象 | |
| DxfDimension () | |
| DxfDimension (const DxfVector &definitionPoint, const DxfVector &middleOfText, VAlign valign, HAlign halign, MTextLineSpacingStyle lineSpacingStyle, double lineSpacingFactor, const std::string &text, const std::string &font, const std::string &style, double angle, int textcolor=0, int horizonColor=0, int verticalColor=0) | |
| QString | DxfDimension::stripZerosAngle (QString angle, int zeros) const |
| Removes zeros from angle string. | |
| double | getAngle () |
| const DxfVector & | getDefinitionPoint () |
| const DxfVector & | getDefinitionPointComstom () |
| const std::string & | getFont () |
| HAlign | getHAlign () |
| std::vector< TechDraw::DxfVector > | getIntersection (DxfEntity const *e1, DxfEntity const *e2, bool onEntities=false) |
| std::vector< TechDraw::DxfVector > | getIntersectionsLineContainer (const DxfLine *l, const DxfEntityContainer &c, bool infiniteLine=false) |
| double | getLineSpacingFactor () |
| MTextLineSpacingStyle | getLineSpacingStyle () |
| virtual std::string | getMeasuredLabel () const |
| Needs to be implemented by the dimension class to return the measurement of the dimension (e.g. | |
| std::string | getMeasuredLabel (double dist) const |
| 获得测量结果字符串 | |
| DxfVector | getMiddleOfText () |
| DxfVector | getMiddleOfTextIfAuto () |
| const std::string & | getRealText () |
| const std::string & | getStyle () |
| const std::string & | getText () |
| VAlign | getVAlign () |
| bool | isDimension (TechDraw::DxfEntityType type) |
| bool | isPointInsideContour (const TechDraw::DxfVector &point, DxfEntityContainer *contour, bool *onContour=nullptr) |
| bool | isTangent () |
| virtual void | move (const TechDraw::DxfVector &offset) override |
| 移动 | |
| virtual void | rotate (const TechDraw::DxfVector ¢er, const double &angle) override |
| 旋转实体 | |
| void | setDimensionArrowBlockHandle (const std::string &handle) |
| void | setDimensionArrowSize (double d) |
| void | setDimensionArrowStyle (int arrowStyle) |
| void | setDimensionHorizonColor (int c) |
| void | setDimensionTextColor (int c) |
| void | setDimensionTextSize (double d) |
| void | setDimensionVerticalColor (int c) |
| QString | stripZerosLinear (QString linear, int zeros) const |
| 从线性字符串中删除零. | |
| virtual void | update (double xScale=1.0, double yScale=1.0) |
| void | updateCreateAlignedTextDimensionLine (const TechDraw::DxfVector &p1, const TechDraw::DxfVector &p2, bool arrow1=true, bool arrow2=true, double xScale=1.0, double yScale=1.0, bool autoText=false) |
| void | updateCreateDimensionLine (const TechDraw::DxfVector &p1, const TechDraw::DxfVector &p2, bool arrow1=true, bool arrow2=true, double xScale=1.0, double yScale=1.0, bool autoText=false) |
| 创建尺寸标注线(带有一个、两个或没有箭头和文字的线). | |
| void | updateCreateHorizontalTextDimensionLine (const TechDraw::DxfVector &p1, const TechDraw::DxfVector &p2, bool arrow1=true, bool arrow2=true, bool autoText=false) |
| virtual void | updateDimension (double xScale=1.0, double yScale=1.0, bool autoText=false) |
| virtual void | writeDxf (dxfW *writer) override |
| 写dxf文件 | |
| virtual | ~DxfDimension () |
Public 成员函数 继承自 DxfEntityContainer | |
| void | addEntity (DxfEntity *entity) |
| void | addRectangle (const TechDraw::DxfVector &corner1, const TechDraw::DxfVector &corner2) |
| void | clear () |
| void | cloneEntities (DxfEntityContainer *oldEntity, DxfEntityContainer *newEntity) |
| DxfEntityContainer () | |
| std::vector< DxfEntity * > & | getContainer () |
| const std::vector< DxfEntity * > & | getEntities () |
| void | removeAllEntities () |
| void | removeEntity (DxfEntity *) |
| void | sortHatchLoop (std::vector< TechDraw::DxfEntityContainer * > &hatchVec) |
| virtual | ~DxfEntityContainer () |
Public 成员函数 继承自 DxfEntity | |
| DxfEntity () | |
| 构造函数 | |
| double | getArrowSize () const |
| DxfAttribute | getAttribute () const |
| 返回属性 | |
| virtual double | getBulge () const |
| int | getDimensionLineColor () const |
| double | getDimensionLineGap () const |
| int | getDimensionLineWidth () const |
| virtual DxfVector | getEndPoint () const |
| 第二个点坐标 | |
| long | getEntityId () const |
| std::string | getEntityLayoutId () const |
| @ return Entity的layout Id | |
| std::string | getEntityUuid () const |
| int | getExtensionLineColor () const |
| double | getExtensionLineExtension () const |
| double | getExtensionLineOffset () const |
| int | getExtensionLineWidth () const |
| double | getFixedLength () const |
| bool | getFixedLengthOn () const |
| double | getGeneralFactor () const |
| double | getGeneralScale () const |
| bool | getInsideHorizontalText () const |
| const TechDraw::DxfVector & | getMaxVector () |
| 实体坐标范围的最大值 | |
| virtual DxfVector | getMiddlePoint () const |
| 中心点坐标 | |
| const TechDraw::DxfVector & | getMinVector () |
| 实体坐标范围的最小值 | |
| const TechDraw::DxfVector & | getSize () |
| 实体坐标范围的大小 | |
| virtual DxfVector | getStartPoint () const |
| 第一个点坐标 | |
| int | getTextColor () const |
| double | getTextHeight () const |
| std::string | getTextStyle () |
| double | getTickSize () const |
| DxfEntityType | getType () const |
| 实体类型枚举值 | |
| void | resetBorders () |
| void | setAttribute (const DxfAttribute &attr) |
| 保存属性 | |
| void | setAttribute (DRW_Entity &data) |
| 保存属性 | |
| void | setEntityLayoutId (const std::string &id) |
| @ 设置Entity的layout Id | |
| void | setHeaderInfo (TechDraw::DxfHeader *) |
| 头信息指针设置,后面可以读取头信息中的一些数据 | |
| void | setLayer (const std::string &name) |
| 设置图层 | |
| void | setLayer (DxfLayer *l) |
| 设置图层 | |
| void | setVersion (int version) |
| 设置dxf版本号 | |
| virtual | ~DxfEntity () |
| 析构函数 | |
Protected 属性 | |
| double | m_Angle |
| Rotation angle of dimension text away from default orientation | |
| DxfVector | m_DefinitionPoint |
| 定义点 | |
| DxfVector | m_DefinitionPointCostom |
| 定义点可以被修改,不会用作输出dxf | |
| std::string | m_DimensionArrowBlockHandle |
| double | m_DimensionArrowSize |
| enum DRW_Dimension_Arrow::DimensionArrowType | m_DimensionArrowStyle |
| int | m_DimensionHorizonColor |
| int | m_DimensionTextColor |
| double | m_DimensionTextSize |
| int | m_DimensionVerticalColor |
| std::string | m_Font |
| HAlign | m_Halign |
| Horizontal alignment | |
| double | m_LineSpacingFactor |
| Line spacing factor | |
| MTextLineSpacingStyle | m_LineSpacingStyle |
| Line spacing style | |
| DxfVector | m_MiddleOfText |
| 标注文字的中点 | |
| DxfVector | m_MiddleOfTextIfAuto |
| 标注文字的中点 | |
| std::string | m_RealText |
| std::string | m_Style |
| Dimension style name | |
| bool | m_Tangent |
| std::string | m_Text |
| Text string entered explicitly by user or null or "<>" for the actual measurement or " " (one blank space) for suppressing the text. | |
| int | m_userPosition |
| 标注放置到用户自定义位置. | |
| VAlign | m_Valign |
| 垂直对齐方式 | |
Protected 属性 继承自 DxfEntityContainer | |
| std::vector< DxfEntity * > | m_EntityContainer |
Protected 属性 继承自 DxfEntity | |
| DxfAttribute | m_Attribute |
| 属性 | |
| long | m_EntityId |
| std::string | m_EntityParentId |
| std::string | m_EntityUuid |
| TechDraw::DxfHeader * | m_Header |
| TechDraw::DxfVector | m_MaxV |
| maximum coordinates | |
| TechDraw::DxfVector | m_MinV |
| minimum coordinates | |
| DxfEntityType | m_Type |
| 类型 | |
| int | m_Version |
| 版本号 | |