You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
5 days ago
|
#include "nmCalculationGeoDataWell.h"
|
||
|
|
||
|
nmCalculationGeoDataWell::nmCalculationGeoDataWell()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
nmCalculationGeoDataWell::nmCalculationGeoDataWell(const QPointF& center, double radius, int roundPointCount)
|
||
|
: m_center(center), m_dRadius(radius), m_iRoundPointCount(roundPointCount) {}
|
||
|
|
||
|
nmCalculationGeoDataWell::nmCalculationGeoDataWell(const nmCalculationGeoDataWell& other)
|
||
|
{
|
||
|
m_center = other.m_center;
|
||
|
m_dRadius = other.m_dRadius;
|
||
|
m_iRoundPointCount = other.m_iRoundPointCount;
|
||
|
}
|
||
|
|
||
|
nmCalculationGeoDataWell& nmCalculationGeoDataWell::operator=(const nmCalculationGeoDataWell& other)
|
||
|
{
|
||
|
if (this != &other) {
|
||
|
m_center = other.m_center;
|
||
|
m_dRadius = other.m_dRadius;
|
||
|
m_iRoundPointCount = other.m_iRoundPointCount;
|
||
|
}
|
||
|
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
int nmCalculationGeoDataWell::roundPointCount() const
|
||
|
{
|
||
|
return m_iRoundPointCount;
|
||
|
}
|
||
|
|
||
|
void nmCalculationGeoDataWell::setRoundPointCount(int newIRoundPointCount)
|
||
|
{
|
||
|
m_iRoundPointCount = newIRoundPointCount;
|
||
|
}
|
||
|
|
||
|
double nmCalculationGeoDataWell::radius() const
|
||
|
{
|
||
|
return m_dRadius;
|
||
|
}
|
||
|
|
||
|
void nmCalculationGeoDataWell::setRadius(double newDRadius)
|
||
|
{
|
||
|
m_dRadius = newDRadius;
|
||
|
}
|
||
|
|
||
|
QPointF nmCalculationGeoDataWell::center() const
|
||
|
{
|
||
|
return m_center;
|
||
|
}
|
||
|
|
||
|
void nmCalculationGeoDataWell::setCenter(QPointF newCenter)
|
||
|
{
|
||
|
m_center = newCenter;
|
||
|
}
|