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.

36 lines
888 B
C++

#pragma once
#include "dllExport.h"
#include "XJPoint2D.h"
#include <string>
#include <vector>
class XJ_ALGO_EXPORT ControlPoint2d
{
public:
ControlPoint2d(const Point2D& pt, float zval, const std::string& name);
virtual ~ControlPoint2d();
const Point2D& GetPos() const { return m_pos; }
Point2D& GetPos() { return m_pos; }
void SetPos(const Point2D& pt) { m_pos = pt; }
float GetZVal() const { return m_zval; }
void SetZVal(float z) { m_zval = z; };
const char* GetName() const { return m_name; }
void SetDeltaZ(float val);
float GetDeltaZ() const { return m_delta; }
bool IsDirty() const { return m_dirty; }
void SetDirty(bool flag) { m_dirty = flag; }
private:
Point2D m_pos; //坐标
float m_zval; //z值
float m_delta; //网格与井点差值
char m_name[32]; //编号名称
bool m_dirty; //是否修改
};