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.
AppFlow/FITK_Interface/FITKInterfacePhysics/FITKAnalyticalExpressField.cpp

37 lines
814 B
C++

#include "FITKAnalyticalExpressField.h"
namespace Interface
{
FITKAbstractFiled::FITKFieldType FITKFieldAanlyticalExpress::getFieldType()
{
//解析场
return FITKAbstractFiled::FITKFieldType::FFTAnalytical;
}
void FITKFieldAanlyticalExpress::setExpression(const QString& express)
{
//表达式
_expression = express;
}
QString FITKFieldAanlyticalExpress::getExpression() const
{
//表达式
return _expression;
}
bool FITKFieldAanlyticalExpress::copy(FITKAbstractDataObject* obj)
{
FITKFieldAanlyticalExpress* fe = dynamic_cast<FITKFieldAanlyticalExpress*>(obj);
if (fe == nullptr) return false;
_expression = fe->getExpression();
return FITKAbstractFiled::copy(obj);
}
}