Skip to content
Snippets Groups Projects
Commit 1cdf9127 authored by Alecu100's avatar Alecu100
Browse files

made more changes to get the number of control points in the NiBSplineData

parent dc35c1cc
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,12 @@ public:
*/
NIFLIB_API void AppendFloatControlPoints(vector<float> value);
/*!
* Get the number of float control points stored in the data
* \return The number of float control points
*/
NIFLIB_API int GetNumFloatControlPoints();
/*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range.
......@@ -98,6 +104,12 @@ public:
*/
NIFLIB_API void AppendShortControlPoints(vector<short> value);
/*!
* Get the number of short control points stored in the data
* \return The number of short control points
*/
NIFLIB_API int GetNumShortControlPoints();
/*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range.
......
......@@ -157,7 +157,6 @@ void NiBSplineData::SetFloatControlPoints( vector<float> value )
}
}
void NiBSplineData::AppendFloatControlPoints( vector<float> value )
{
this->numFloatControlPoints += value.size();
......@@ -167,6 +166,10 @@ void NiBSplineData::AppendFloatControlPoints( vector<float> value )
}
}
int NiBSplineData::GetNumFloatControlPoints()
{
return this->numFloatControlPoints;
}
vector<float> NiBSplineData::GetFloatControlPointRange(int offset, int count) const
{
......@@ -203,6 +206,13 @@ void NiBSplineData::AppendShortControlPoints( vector<short> value )
}
}
int NiBSplineData::GetNumShortControlPoints()
{
return this->numShortControlPoints;
}
vector<short > NiBSplineData::GetShortControlPointRange(int offset, int count) const
{
vector<short> value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment