42 lines
794 B
C
42 lines
794 B
C
|
|
#ifndef GEOMETRYPARAPOINT_H_
|
|||
|
|
#define GEOMETRYPARAPOINT_H_
|
|||
|
|
|
|||
|
|
#include "geometryModelParaBase.h"
|
|||
|
|
#include <QList>
|
|||
|
|
#include <QString>
|
|||
|
|
|
|||
|
|
namespace Geometry
|
|||
|
|
{
|
|||
|
|
class GeometrySet;
|
|||
|
|
|
|||
|
|
class GEOMETRYAPI GeometryParaPoint : public GeometryModelParaBase
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
GeometryParaPoint();
|
|||
|
|
~GeometryParaPoint() = default;
|
|||
|
|
|
|||
|
|
void setName(QString name);
|
|||
|
|
QString getName();
|
|||
|
|
|
|||
|
|
void setPara(double* para);
|
|||
|
|
void getPara(double* para);
|
|||
|
|
|
|||
|
|
void setCorner(double* corner);
|
|||
|
|
void getCorner(double* corner);
|
|||
|
|
|
|||
|
|
///数据写入工程文件
|
|||
|
|
QDomElement& writeToProjectFile(QDomDocument* doc, QDomElement* parent) override;
|
|||
|
|
///从工程文件读入数据
|
|||
|
|
virtual void readDataFromProjectFile(QDomElement* e) override;
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
QString _name{};
|
|||
|
|
double _para[3];
|
|||
|
|
double _corner[3];
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif
|