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.

40 lines
645 B
C++

#pragma once
#include "MLMicroStructureExport.h"
class MLPline;
class MLMICROSTRUCTURE_EXPORT MLPlineList
{
public:
MLPlineList();
~MLPlineList();
public:
// 清空线对象
void clearPline();
int getCount() const;
// 添加线对象
void addPline(MLPline* pPline);
// 移出线对象
void removePline(MLPline* pPline);
// 线对象
MLPline* getPline(int index) const;
MLPline* getPline(char* name) const;
MLPline* getPline(const QString& sLineName) const;
// 读取线对象
bool readPline(const QString& sPath);
// 输出线对象
bool writePline(const QString& sPath);
void write(QTextStream& out);
public:
QList<MLPline*> m_PlineList;
};