BIMHome v1.0.0
BIMHome接口文档说明
Public 成员函数 | Public 属性 | Private 成员函数 | Private 属性 | 所有成员列表
DxfEllipse类 参考

TechDraw中DxfEllipse类 更多...

#include <DxfEntity.h>

类 DxfEllipse 继承关系图:
DxfEntity

Public 成员函数

virtual void calculateBorders () override
 计算坐标范围
 
virtual DxfEntityclone () override
 纯虚函数, 拷贝对象
 
 DxfEllipse (const DxfVector &center, const DxfVector &major, double ratio, double angle1, double angle2, bool reversed)
 
double getAngle () const
 
double getAngle1 () const
 
double getAngle2 () const
 
TechDraw::DxfVector getCenter () const
 
double getDirection1 () const
 
double getDirection2 () const
 
double getEllipseAngle (const DxfVector &pos) const
 
TechDraw::DxfVector getEllipsePoint (const double &a) const
 
virtual DxfVector getEndPoint () const override
 第二个点坐标
 
const DxfVectorgetMajorPoint ()
 
double getMajorRadius () const
 
virtual DxfVector getMiddlePoint () const override
 中心点坐标
 
double getMinorRadius () const
 
double getRatio () const
 
virtual DxfVector getStartPoint () const override
 第一个点坐标
 
bool isArc () const
 
bool isEllipticArc () const
 
bool isReversed () const
 
virtual void move (const TechDraw::DxfVector &offset) override
 移动
 
virtual void rotate (const TechDraw::DxfVector &center, const double &angle) override
 旋转实体
 
void setAngle1 (double angle1)
 
void setAngle2 (double angle2)
 
void setCenter (const TechDraw::DxfVector &)
 
void setMajor (const TechDraw::DxfVector &)
 
virtual void writeDxf (dxfW *writer) override
 写dxf文件
 
 ~DxfEllipse ()
 
- Public 成员函数 继承自 DxfEntity
 DxfEntity ()
 构造函数
 
double getArrowSize () const
 
DxfAttribute getAttribute () const
 返回属性
 
virtual double getBulge () const
 
int getDimensionLineColor () const
 
double getDimensionLineGap () const
 
int getDimensionLineWidth () 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::DxfVectorgetMaxVector ()
 实体坐标范围的最大值
 
const TechDraw::DxfVectorgetMinVector ()
 实体坐标范围的最小值
 
const TechDraw::DxfVectorgetSize ()
 实体坐标范围的大小
 
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 ()
 析构函数
 

Public 属性

double m_MajorAngle
 

Private 成员函数

DxfVector getNearestEndpoint (const DxfVector &coord, double *dist=nullptr) const
 
DxfVector getNearestMiddle (const DxfVector &coord, double *dist=nullptr, int middlePoints=1) const
 
DxfVector getNearestPointOnEntity (const DxfVector &coord, bool onEntity=true, double *dist=nullptr, DxfEntity **entity=nullptr) const
 

Private 属性

double m_Angle1
 Start angle
 
double m_Angle2
 End angle
 
DxfVector m_CenterPoint
 Ellipse center
 
DxfVector m_MajorPoint
 Endpoint of major axis relative to center.
 
double m_MajorRadius
 
double m_MinorRadius
 
double m_Ratio
 Ratio of minor axis to major axis.
 
bool m_Reversed
 Reversed (cw) flag
 

额外继承的成员函数

- Protected 属性 继承自 DxfEntity
DxfAttribute m_Attribute
 属性
 
long m_EntityId
 
std::string m_EntityParentId
 
std::string m_EntityUuid
 
TechDraw::DxfHeaderm_Header
 
TechDraw::DxfVector m_MaxV
 maximum coordinates
 
TechDraw::DxfVector m_MinV
 minimum coordinates
 
DxfEntityType m_Type
 类型
 
int m_Version
 版本号
 

详细描述

TechDraw中DxfEllipse类

Ellipse类

注解

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