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();
|
||||
}
|
||||
|
||||
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>
|
||||
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);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
return AddObject(points, point);
|
||||
|
|
|
@ -55,21 +55,21 @@ public:
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
inline VPointF GetPoint(qint64 id) const {return GetObject(points, id);}
|
||||
inline VPointF GetModelingPoint(qint64 id) const {return GetObject(modelingPoints, id);}
|
||||
VPointF GetPoint(qint64 id) const;
|
||||
VPointF GetModelingPoint(qint64 id) const;
|
||||
VStandartTableCell GetStandartTableCell(const QString& name) const;
|
||||
VIncrementTableRow GetIncrementTableRow(const QString& name) const;
|
||||
qreal GetLine(const QString &name) const;
|
||||
qreal GetLengthArc(const QString &name) const;
|
||||
qreal GetLengthSpline(const QString &name) const;
|
||||
qreal GetLineAngle(const QString &name) const;
|
||||
inline VSpline GetSpline(qint64 id) const {return GetObject(splines, id);}
|
||||
inline VSpline GetModelingSpline(qint64 id) const {return GetObject(modelingSplines, id);}
|
||||
inline VArc GetArc(qint64 id) const {return GetObject(arcs, id);}
|
||||
inline VArc GetModelingArc(qint64 id) const {return GetObject(modelingArcs, id);}
|
||||
inline VSplinePath GetSplinePath(qint64 id) const {return GetObject(splinePaths, id);}
|
||||
inline VSplinePath GetModelingSplinePath(qint64 id) const {return GetObject(modelingSplinePaths, id);}
|
||||
inline VDetail GetDetail(qint64 id) const {return GetObject(details, id);}
|
||||
VSpline GetSpline(qint64 id) const;
|
||||
VSpline GetModelingSpline(qint64 id) const;
|
||||
VArc GetArc(qint64 id) const;
|
||||
VArc GetModelingArc(qint64 id) const;
|
||||
VSplinePath GetSplinePath(qint64 id) const;
|
||||
VSplinePath GetModelingSplinePath(qint64 id) const;
|
||||
VDetail GetDetail(qint64 id) const;
|
||||
static qint64 getId() {return _id;}
|
||||
qint64 AddPoint(const VPointF& point);
|
||||
qint64 AddModelingPoint(const VPointF& point);
|
||||
|
|
Loading…
Reference in New Issue
Block a user