#ifndef NMCALCULATIONGEODATAWELL_H #define NMCALCULATIONGEODATAWELL_H #include #include #include class nmCalculationGeoDataWell { public: // 默认构造函数 nmCalculationGeoDataWell(); // 带参数构造函数 nmCalculationGeoDataWell(const QPointF& center, double radius, int roundPointCount); // 拷贝构造函数 nmCalculationGeoDataWell(const nmCalculationGeoDataWell& other); // 重载赋值运算符 nmCalculationGeoDataWell& operator=(const nmCalculationGeoDataWell& other); QPointF center() const; void setCenter(QPointF newCenter); double radius() const; void setRadius(double newDRadius); int roundPointCount() const; void setRoundPointCount(int newIRoundPointCount); public: QPointF m_center; // 圆心位置 double m_dRadius; // 半径 int m_iRoundPointCount; // 圆周网格数量,用于加密 }; #endif // NMCALCULATIONGEODATAWELL_H