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

1 month ago
#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; //<2F><><EFBFBD><EFBFBD>
float m_zval; //zֵ
float m_delta; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBBEAE><EFBFBD><EFBFBD>ֵ
char m_name[32]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
bool m_dirty; //<2F>Ƿ<EFBFBD><C7B7>޸<EFBFBD>
};