|
| virtual void | calculateBorders () override |
| | 计算坐标范围
|
| |
| virtual DxfEntity * | clone () override |
| | 纯虚函数, 拷贝对象
|
| |
| | DxfDimLinear () |
| |
| | DxfDimLinear (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 angleDim, const DxfVector &extensionPoint1, const DxfVector &extensionPoint2, double angleDimLinear, double oblique, int textcolor=0, int horizonColor=0, int verticalColor=0) |
| |
| double | getAngle () const |
| |
| DxfVector | getExtensionPoint1 () const |
| |
| DxfVector | getExtensionPoint2 () const |
| |
| virtual std::string | getMeasuredLabel () const override |
| | Needs to be implemented by the dimension class to return the measurement of the dimension (e.g.
|
| |
| double | getOblique () const |
| |
| virtual void | move (const TechDraw::DxfVector &offset) override |
| | 移动
|
| |
| virtual void | rotate (const TechDraw::DxfVector ¢er, const double &angle) override |
| | 旋转实体
|
| |
| void | setAngle (double a) |
| |
| void | setOblique (double o) |
| |
| virtual void | updateDimension (double xScale=1.0, double yScale=1.0, bool autoText=false) override |
| |
| virtual void | writeDxf (dxfW *writer) override |
| | 写dxf文件
|
| |
| | ~DxfDimLinear () |
| |
| | 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 () |
| |
| 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 () |
| |
| 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 | ~DxfDimension () |
| |
| 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 () |
| |
| | 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 () |
| | 析构函数
|
| |