This methods can't be inline.
--HG-- branch : develop
This commit is contained in:
parent
f3ff6d4303
commit
fe04b63722
|
@ -87,6 +87,16 @@ void VContainer::setData(const VContainer &data)
|
||||||
details = *data.DataDetails();
|
details = *data.DataDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VPointF VContainer::GetPoint(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(points, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VPointF VContainer::GetModelingPoint(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(modelingPoints, id);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename key, typename val>
|
template <typename key, typename val>
|
||||||
val VContainer::GetObject(const QHash<key, val> &obj, key id)
|
val VContainer::GetObject(const QHash<key, val> &obj, key id)
|
||||||
{
|
{
|
||||||
|
@ -136,6 +146,41 @@ qreal VContainer::GetLineAngle(const QString &name) const
|
||||||
return GetObject(lineAngles, name);
|
return GetObject(lineAngles, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VSpline VContainer::GetSpline(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(splines, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VSpline VContainer::GetModelingSpline(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(modelingSplines, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VArc VContainer::GetArc(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(arcs, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VArc VContainer::GetModelingArc(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(modelingArcs, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VSplinePath VContainer::GetSplinePath(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(splinePaths, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VSplinePath VContainer::GetModelingSplinePath(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(modelingSplinePaths, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
VDetail VContainer::GetDetail(qint64 id) const
|
||||||
|
{
|
||||||
|
return GetObject(details, id);
|
||||||
|
}
|
||||||
|
|
||||||
qint64 VContainer::AddPoint(const VPointF &point)
|
qint64 VContainer::AddPoint(const VPointF &point)
|
||||||
{
|
{
|
||||||
return AddObject(points, point);
|
return AddObject(points, point);
|
||||||
|
|
|
@ -55,21 +55,21 @@ public:
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
inline VPointF GetPoint(qint64 id) const {return GetObject(points, id);}
|
VPointF GetPoint(qint64 id) const;
|
||||||
inline VPointF GetModelingPoint(qint64 id) const {return GetObject(modelingPoints, id);}
|
VPointF GetModelingPoint(qint64 id) const;
|
||||||
VStandartTableCell GetStandartTableCell(const QString& name) const;
|
VStandartTableCell GetStandartTableCell(const QString& name) const;
|
||||||
VIncrementTableRow GetIncrementTableRow(const QString& name) const;
|
VIncrementTableRow GetIncrementTableRow(const QString& name) const;
|
||||||
qreal GetLine(const QString &name) const;
|
qreal GetLine(const QString &name) const;
|
||||||
qreal GetLengthArc(const QString &name) const;
|
qreal GetLengthArc(const QString &name) const;
|
||||||
qreal GetLengthSpline(const QString &name) const;
|
qreal GetLengthSpline(const QString &name) const;
|
||||||
qreal GetLineAngle(const QString &name) const;
|
qreal GetLineAngle(const QString &name) const;
|
||||||
inline VSpline GetSpline(qint64 id) const {return GetObject(splines, id);}
|
VSpline GetSpline(qint64 id) const;
|
||||||
inline VSpline GetModelingSpline(qint64 id) const {return GetObject(modelingSplines, id);}
|
VSpline GetModelingSpline(qint64 id) const;
|
||||||
inline VArc GetArc(qint64 id) const {return GetObject(arcs, id);}
|
VArc GetArc(qint64 id) const;
|
||||||
inline VArc GetModelingArc(qint64 id) const {return GetObject(modelingArcs, id);}
|
VArc GetModelingArc(qint64 id) const;
|
||||||
inline VSplinePath GetSplinePath(qint64 id) const {return GetObject(splinePaths, id);}
|
VSplinePath GetSplinePath(qint64 id) const;
|
||||||
inline VSplinePath GetModelingSplinePath(qint64 id) const {return GetObject(modelingSplinePaths, id);}
|
VSplinePath GetModelingSplinePath(qint64 id) const;
|
||||||
inline VDetail GetDetail(qint64 id) const {return GetObject(details, id);}
|
VDetail GetDetail(qint64 id) const;
|
||||||
static qint64 getId() {return _id;}
|
static qint64 getId() {return _id;}
|
||||||
qint64 AddPoint(const VPointF& point);
|
qint64 AddPoint(const VPointF& point);
|
||||||
qint64 AddModelingPoint(const VPointF& point);
|
qint64 AddModelingPoint(const VPointF& point);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user