Refactoring. Move inline methods in cpp file.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-02 17:11:48 +02:00
parent d41308e1f4
commit e3b54789f3
34 changed files with 731 additions and 732 deletions

View File

@ -276,3 +276,53 @@ void DialogAlongLine::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogAlongLine::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogAlongLine::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogAlongLine::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id first point of line
* @return id
*/
quint32 DialogAlongLine::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id second point of line
* @return id
*/
quint32 DialogAlongLine::getSecondPointId() const
{
return secondPointId;
}

View File

@ -47,6 +47,7 @@ class DialogAlongLine : public DialogTool
public:
DialogAlongLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
~DialogAlongLine();
QString getPointName() const;
void setPointName(const QString &value);
@ -110,54 +111,4 @@ private:
QString lineColor;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogAlongLine::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogAlongLine::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogAlongLine::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id first point of line
* @return id
*/
inline quint32 DialogAlongLine::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id second point of line
* @return id
*/
inline quint32 DialogAlongLine::getSecondPointId() const
{
return secondPointId;
}
#endif // DIALOGALONGLINE_H

View File

@ -437,3 +437,43 @@ void DialogArc::CheckAngles()
DialogArc::CheckState();
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetCenter return id of center point
* @return id id
*/
quint32 DialogArc::GetCenter() const
{
return center;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetRadius return formula of radius
* @return formula
*/
QString DialogArc::GetRadius() const
{
return radius;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetF1 return formula first angle of arc
* @return formula
*/
QString DialogArc::GetF1() const
{
return f1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetF2 return formula second angle of arc
* @return formula
*/
QString DialogArc::GetF2() const
{
return f2;
}

View File

@ -136,44 +136,4 @@ private:
void CheckAngles();
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetCenter return id of center point
* @return id id
*/
inline quint32 DialogArc::GetCenter() const
{
return center;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetRadius return formula of radius
* @return formula
*/
inline QString DialogArc::GetRadius() const
{
return radius;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetF1 return formula first angle of arc
* @return formula
*/
inline QString DialogArc::GetF1() const
{
return f1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetF2 return formula second angle of arc
* @return formula
*/
inline QString DialogArc::GetF2() const
{
return f2;
}
#endif // DIALOGARC_H

View File

@ -298,3 +298,63 @@ void DialogBisector::closeEvent(QCloseEvent *event)
ui->plainTextEditFormula->blockSignals(true);
DialogTool::closeEvent(event);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogBisector::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogBisector::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogBisector::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
quint32 DialogBisector::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
quint32 DialogBisector::getSecondPointId() const
{
return secondPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getThirdPointId return id of third point
* @return id
*/
quint32 DialogBisector::getThirdPointId() const
{
return thirdPointId;
}

View File

@ -114,64 +114,4 @@ private:
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogBisector::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogBisector::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogBisector::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
inline quint32 DialogBisector::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
inline quint32 DialogBisector::getSecondPointId() const
{
return secondPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getThirdPointId return id of third point
* @return id
*/
inline quint32 DialogBisector::getThirdPointId() const
{
return thirdPointId;
}
#endif // DIALOGBISECTOR_H

View File

@ -196,3 +196,23 @@ QString DialogCutArc::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name point on arc
* @return name
*/
QString DialogCutArc::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getArcId return id of arc
* @return id
*/
quint32 DialogCutArc::getArcId() const
{
return arcId;
}

View File

@ -91,24 +91,4 @@ private:
VisToolCutArc *path;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name point on arc
* @return name
*/
inline QString DialogCutArc::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getArcId return id of arc
* @return id
*/
inline quint32 DialogCutArc::getArcId() const
{
return arcId;
}
#endif // DIALOGCUTARC_H

View File

@ -179,3 +179,33 @@ void DialogCutSpline::ShowVisualization()
path->RefreshGeometry();
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogCutSpline::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogCutSpline::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSplineId return id base point of line
* @return id
*/
quint32 DialogCutSpline::getSplineId() const
{
return splineId;
}

View File

@ -87,34 +87,4 @@ private:
VisToolCutSpline *path;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogCutSpline::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogCutSpline::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSplineId return id base point of line
* @return id
*/
inline quint32 DialogCutSpline::getSplineId() const
{
return splineId;
}
#endif // DIALOGCUTSPLINE_H

View File

@ -179,3 +179,33 @@ void DialogCutSplinePath::ShowVisualization()
path->RefreshGeometry();
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogCutSplinePath::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogCutSplinePath::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSplineId return id base point of line
* @return id
*/
quint32 DialogCutSplinePath::getSplinePathId() const
{
return splinePathId;
}

View File

@ -87,34 +87,4 @@ private:
VisToolCutSplinePath *path;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogCutSplinePath::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogCutSplinePath::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSplineId return id base point of line
* @return id
*/
inline quint32 DialogCutSplinePath::getSplinePathId() const
{
return splinePathId;
}
#endif // DIALOGCUTSPLINEPATH_H

View File

@ -309,3 +309,53 @@ DialogEndLine::~DialogEndLine()
}
delete ui;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogEndLine::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogEndLine::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogEndLine::getFormula() const
{
return qApp->FormulaFromUser(formulaLength);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle return formula angle of line
* @return angle formula
*/
QString DialogEndLine::getAngle() const
{
return qApp->FormulaFromUser(formulaAngle);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getBasePointId return id base point of line
* @return id
*/
quint32 DialogEndLine::getBasePointId() const
{
return basePointId;
}

View File

@ -107,58 +107,6 @@ private:
int formulaBaseHeightAngle;
VisToolEndLine *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogEndLine::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogEndLine::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogEndLine::getFormula() const
{
return qApp->FormulaFromUser(formulaLength);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle return formula angle of line
* @return angle formula
*/
inline QString DialogEndLine::getAngle() const
{
return qApp->FormulaFromUser(formulaAngle);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getBasePointId return id base point of line
* @return id
*/
inline quint32 DialogEndLine::getBasePointId() const
{
return basePointId;
}
#endif // DIALOGENDLINE_H

View File

@ -263,3 +263,53 @@ void DialogHeight::ShowVisualization()
line->RefreshGeometry();
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogHeight::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogHeight::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getBasePointId return id base point of height
* @return id
*/
quint32 DialogHeight::getBasePointId() const
{
return basePointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1LineId return id first point of line
* @return id id
*/
quint32 DialogHeight::getP1LineId() const
{
return p1LineId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2LineId return id second point of line
* @return id
*/
quint32 DialogHeight::getP2LineId() const
{
return p2LineId;
}

View File

@ -95,54 +95,4 @@ private:
VisToolHeight *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogHeight::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogHeight::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getBasePointId return id base point of height
* @return id
*/
inline quint32 DialogHeight::getBasePointId() const
{
return basePointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1LineId return id first point of line
* @return id id
*/
inline quint32 DialogHeight::getP1LineId() const
{
return p1LineId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2LineId return id second point of line
* @return id
*/
inline quint32 DialogHeight::getP2LineId() const
{
return p2LineId;
}
#endif // DIALOGHEIGHT_H

View File

@ -204,3 +204,33 @@ void DialogLine::ChosenObject(quint32 id, const SceneObject &type)
}
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPoint return id first point
* @return id
*/
quint32 DialogLine::getFirstPoint() const
{
return firstPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPoint return id second point
* @return id
*/
quint32 DialogLine::getSecondPoint() const
{
return secondPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogLine::getTypeLine() const
{
return typeLine;
}

View File

@ -87,34 +87,4 @@ private:
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPoint return id first point
* @return id
*/
inline quint32 DialogLine::getFirstPoint() const
{
return firstPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPoint return id second point
* @return id
*/
inline quint32 DialogLine::getSecondPoint() const
{
return secondPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogLine::getTypeLine() const
{
return typeLine;
}
#endif // DIALOGLINE_H

View File

@ -390,3 +390,53 @@ void DialogLineIntersect::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line1 return id first point of first line
* @return id
*/
quint32 DialogLineIntersect::getP1Line1() const
{
return p1Line1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line1 return id second point of first line
* @return id
*/
quint32 DialogLineIntersect::getP2Line1() const
{
return p2Line1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line2 return id first point of second line
* @return id
*/
quint32 DialogLineIntersect::getP1Line2() const
{
return p1Line2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line2 return id second point of second line
* @return id
*/
quint32 DialogLineIntersect::getP2Line2() const
{
return p2Line2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name of point
*/
QString DialogLineIntersect::getPointName() const
{
return pointName;
}

View File

@ -106,54 +106,4 @@ private:
bool CheckIntersecion();
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line1 return id first point of first line
* @return id
*/
inline quint32 DialogLineIntersect::getP1Line1() const
{
return p1Line1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line1 return id second point of first line
* @return id
*/
inline quint32 DialogLineIntersect::getP2Line1() const
{
return p2Line1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line2 return id first point of second line
* @return id
*/
inline quint32 DialogLineIntersect::getP1Line2() const
{
return p1Line2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line2 return id second point of second line
* @return id
*/
inline quint32 DialogLineIntersect::getP2Line2() const
{
return p2Line2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name of point
*/
inline QString DialogLineIntersect::getPointName() const
{
return pointName;
}
#endif // DIALOGLINEINTERSECT_H

View File

@ -269,3 +269,63 @@ void DialogNormal::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogNormal::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogNormal::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogNormal::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle return aditional angle of normal
* @return angle in degree
*/
qreal DialogNormal::getAngle() const
{
return angle;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
quint32 DialogNormal::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
quint32 DialogNormal::getSecondPointId() const
{
return secondPointId;
}

View File

@ -113,64 +113,4 @@ private:
VisToolNormal *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogNormal::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogNormal::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogNormal::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle return aditional angle of normal
* @return angle in degree
*/
inline qreal DialogNormal::getAngle() const
{
return angle;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
inline quint32 DialogNormal::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
inline quint32 DialogNormal::getSecondPointId() const
{
return secondPointId;
}
#endif // DIALOGNORMAL_H

View File

@ -296,3 +296,53 @@ void DialogPointOfContact::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogPointOfContact::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getRadius return formula radius of arc
* @return formula
*/
QString DialogPointOfContact::getRadius() const
{
return radius;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetCenter return id of center point
* @return id
*/
quint32 DialogPointOfContact::getCenter() const
{
return center;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPoint return id first point
* @return id
*/
quint32 DialogPointOfContact::getFirstPoint() const
{
return firstPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPoint return id second point
* @return id
*/
quint32 DialogPointOfContact::getSecondPoint() const
{
return secondPoint;
}

View File

@ -108,54 +108,4 @@ private:
VisToolPointOfContact *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogPointOfContact::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getRadius return formula radius of arc
* @return formula
*/
inline QString DialogPointOfContact::getRadius() const
{
return radius;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetCenter return id of center point
* @return id
*/
inline quint32 DialogPointOfContact::getCenter() const
{
return center;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPoint return id first point
* @return id
*/
inline quint32 DialogPointOfContact::getFirstPoint() const
{
return firstPoint;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPoint return id second point
* @return id
*/
inline quint32 DialogPointOfContact::getSecondPoint() const
{
return secondPoint;
}
#endif // DIALOGPOINTOFCONTACT_H

View File

@ -200,3 +200,33 @@ void DialogPointOfIntersection::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogPointOfIntersection::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
quint32 DialogPointOfIntersection::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
quint32 DialogPointOfIntersection::getSecondPointId() const
{
return secondPointId;
}

View File

@ -83,34 +83,4 @@ private:
VisToolPointOfIntersection *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogPointOfIntersection::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
inline quint32 DialogPointOfIntersection::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
inline quint32 DialogPointOfIntersection::getSecondPointId() const
{
return secondPointId;
}
#endif // DIALOGPOINTOFINTERSECTION_H

View File

@ -297,3 +297,63 @@ void DialogShoulderPoint::setPointName(const QString &value)
pointName = value;
ui->lineEditNamePoint->setText(pointName);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogShoulderPoint::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
QString DialogShoulderPoint::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
QString DialogShoulderPoint::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line return id first point of line
* @return id
*/
quint32 DialogShoulderPoint::getP1Line() const
{
return p1Line;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line return id second point of line
* @return id
*/
quint32 DialogShoulderPoint::getP2Line() const
{
return p2Line;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPShoulder return id shoulder point
* @return id
*/
quint32 DialogShoulderPoint::getP3() const
{
return pShoulder;
}

View File

@ -112,64 +112,4 @@ private:
VisToolShoulderPoint *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogShoulderPoint::getPointName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getTypeLine return type of line
* @return type
*/
inline QString DialogShoulderPoint::getTypeLine() const
{
return typeLine;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFormula return string of formula
* @return formula
*/
inline QString DialogShoulderPoint::getFormula() const
{
return qApp->FormulaFromUser(formula);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP1Line return id first point of line
* @return id
*/
inline quint32 DialogShoulderPoint::getP1Line() const
{
return p1Line;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getP2Line return id second point of line
* @return id
*/
inline quint32 DialogShoulderPoint::getP2Line() const
{
return p2Line;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPShoulder return id shoulder point
* @return id
*/
inline quint32 DialogShoulderPoint::getP3() const
{
return pShoulder;
}
#endif // DIALOGSHOULDERPOINT_H

View File

@ -107,3 +107,23 @@ DialogSinglePoint::~DialogSinglePoint()
{
delete ui;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getName return name
* @return name
*/
QString DialogSinglePoint::getName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPoint return point
* @return point
*/
QPointF DialogSinglePoint::getPoint() const
{
return point;
}

View File

@ -66,24 +66,4 @@ private:
QPointF point;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getName return name
* @return name
*/
inline QString DialogSinglePoint::getName() const
{
return pointName;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPoint return point
* @return point
*/
inline QPointF DialogSinglePoint::getPoint() const
{
return point;
}
#endif // DIALOGSINGLEPOINT_H

View File

@ -294,3 +294,53 @@ quint32 DialogSpline::getP4() const
{
return p4;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle1 return first angle of spline
* @return angle in degree
*/
qreal DialogSpline::getAngle1() const
{
return angle1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle2 return second angle of spline
* @return angle in degree
*/
qreal DialogSpline::getAngle2() const
{
return angle2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKAsm1 return first coefficient asymmetry
* @return value. Can be >= 0.
*/
qreal DialogSpline::getKAsm1() const
{
return kAsm1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKAsm2 return second coefficient asymmetry
* @return value. Can be >= 0.
*/
qreal DialogSpline::getKAsm2() const
{
return kAsm2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKCurve return coefficient curve
* @return value. Can be >= 0.
*/
qreal DialogSpline::getKCurve() const
{
return kCurve;
}

View File

@ -111,54 +111,4 @@ private:
VisToolSpline *path;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle1 return first angle of spline
* @return angle in degree
*/
inline qreal DialogSpline::getAngle1() const
{
return angle1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAngle2 return second angle of spline
* @return angle in degree
*/
inline qreal DialogSpline::getAngle2() const
{
return angle2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKAsm1 return first coefficient asymmetry
* @return value. Can be >= 0.
*/
inline qreal DialogSpline::getKAsm1() const
{
return kAsm1;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKAsm2 return second coefficient asymmetry
* @return value. Can be >= 0.
*/
inline qreal DialogSpline::getKAsm2() const
{
return kAsm2;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getKCurve return coefficient curve
* @return value. Can be >= 0.
*/
inline qreal DialogSpline::getKCurve() const
{
return kCurve;
}
#endif // DIALOGSPLINE_H

View File

@ -275,3 +275,53 @@ void DialogTriangle::setAxisP1Id(const quint32 &value)
setPointId(ui->comboBoxAxisP1, axisP1Id, value);
line->setPoint1Id(axisP1Id);
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAxisP1Id return id first point of axis
* @return id
*/
quint32 DialogTriangle::getAxisP1Id() const
{
return axisP1Id;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAxisP2Id return id second point of axis
* @return id
*/
quint32 DialogTriangle::getAxisP2Id() const
{
return axisP2Id;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
quint32 DialogTriangle::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
quint32 DialogTriangle::getSecondPointId() const
{
return secondPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
QString DialogTriangle::getPointName() const
{
return pointName;
}

View File

@ -96,54 +96,4 @@ private:
VisToolTriangle *line;
};
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAxisP1Id return id first point of axis
* @return id
*/
inline quint32 DialogTriangle::getAxisP1Id() const
{
return axisP1Id;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getAxisP2Id return id second point of axis
* @return id
*/
inline quint32 DialogTriangle::getAxisP2Id() const
{
return axisP2Id;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getFirstPointId return id of first point
* @return id
*/
inline quint32 DialogTriangle::getFirstPointId() const
{
return firstPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getSecondPointId return id of second point
* @return id
*/
inline quint32 DialogTriangle::getSecondPointId() const
{
return secondPointId;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief getPointName return name of point
* @return name
*/
inline QString DialogTriangle::getPointName() const
{
return pointName;
}
#endif // DIALOGTRIANGLE_H