Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
dc35c1cc
Commit
dc35c1cc
authored
13 years ago
by
Alecu100
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some small issues and now niflib compiles again
parent
f75b8a04
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/obj/NiBSplineData.h
+24
-0
24 additions, 0 deletions
include/obj/NiBSplineData.h
include/obj/NiBSplineTransformInterpolator.h
+36
-0
36 additions, 0 deletions
include/obj/NiBSplineTransformInterpolator.h
src/obj/NiBSplineData.cpp
+1
-1
1 addition, 1 deletion
src/obj/NiBSplineData.cpp
with
61 additions
and
1 deletion
include/obj/NiBSplineData.h
+
24
−
0
View file @
dc35c1cc
...
@@ -60,6 +60,18 @@ public:
...
@@ -60,6 +60,18 @@ public:
*/
*/
NIFLIB_API
vector
<
float
>
GetFloatControlPoints
()
const
;
NIFLIB_API
vector
<
float
>
GetFloatControlPoints
()
const
;
/*!
* Sets the float control points representing the spline data
* \param[in] The new float control points to replace the current ones
*/
NIFLIB_API
void
SetFloatControlPoints
(
vector
<
float
>
value
);
/*!
* Adds float control points at the end of the float control points collection
* \param[in] The float points to add at the end of the collection
*/
NIFLIB_API
void
AppendFloatControlPoints
(
vector
<
float
>
value
);
/*!
/*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range.
* \param[in] offset The start of the range.
...
@@ -74,6 +86,18 @@ public:
...
@@ -74,6 +86,18 @@ public:
*/
*/
NIFLIB_API
vector
<
short
>
GetShortControlPoints
()
const
;
NIFLIB_API
vector
<
short
>
GetShortControlPoints
()
const
;
/*!
* Sets the short control points representing the spline data
* \param[in] The new short control points to replace the current ones
*/
NIFLIB_API
void
SetShortControlPoints
(
vector
<
short
>
value
);
/*!
* Adds short control points at the end of the short control points collection
* \param[in] The short points to add at the end of the collection
*/
NIFLIB_API
void
AppendShortControlPoints
(
vector
<
short
>
value
);
/*!
/*!
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* Get Range of signed shorts representing the data scaled by SHRT_MAX.
* \param[in] offset The start of the range.
* \param[in] offset The start of the range.
...
...
This diff is collapsed.
Click to expand it.
include/obj/NiBSplineTransformInterpolator.h
+
36
−
0
View file @
dc35c1cc
...
@@ -66,6 +66,18 @@ public:
...
@@ -66,6 +66,18 @@ public:
*/
*/
NIFLIB_API
void
SetTranslation
(
Vector3
value
);
NIFLIB_API
void
SetTranslation
(
Vector3
value
);
/*!
* Gets the translation offset for the control points in the NiSplineData
* \return The translation offset
*/
NIFLIB_API
int
GetTranslationOffset
();
/*!
* Sets the translation offset for the control points in the NiSplineData
* \param[in] The new translation offset
*/
NIFLIB_API
void
SetTranslationOffset
(
int
value
);
/*!
/*!
* Gets the base rotation when a translate curve is not defined.
* Gets the base rotation when a translate curve is not defined.
* \return The base rotation.
* \return The base rotation.
...
@@ -78,6 +90,18 @@ public:
...
@@ -78,6 +90,18 @@ public:
*/
*/
NIFLIB_API
void
SetRotation
(
Quaternion
value
);
NIFLIB_API
void
SetRotation
(
Quaternion
value
);
/*!
* Gets the rotation offset for the control points in the NiSplineData
* \return The rotation offset
*/
NIFLIB_API
int
GetRotationOffset
();
/*!
* Sets the rotation offset for the control points in the NiSplineData
* \param[in] The new rotation offset
*/
NIFLIB_API
void
SetRotationOffset
(
int
value
);
/*!
/*!
* Gets the base scale when a translate curve is not defined.
* Gets the base scale when a translate curve is not defined.
* \return The base scale.
* \return The base scale.
...
@@ -90,6 +114,18 @@ public:
...
@@ -90,6 +114,18 @@ public:
*/
*/
NIFLIB_API
void
SetScale
(
float
value
);
NIFLIB_API
void
SetScale
(
float
value
);
/*!
* Gets the scale offset for the control points in the NiSplineData
* \return The scale offset
*/
NIFLIB_API
int
GetScaleOffset
();
/*!
* Sets the scale offset for the control points in the NiSplineData
* \param[in] The new scale offset
*/
NIFLIB_API
void
SetScaleOffset
(
int
value
);
/*!
/*!
* Retrieves the control quaternion rotation data.
* Retrieves the control quaternion rotation data.
...
...
This diff is collapsed.
Click to expand it.
src/obj/NiBSplineData.cpp
+
1
−
1
View file @
dc35c1cc
...
@@ -190,7 +190,7 @@ void NiBSplineData::SetShortControlPoints( vector<short> value )
...
@@ -190,7 +190,7 @@ void NiBSplineData::SetShortControlPoints( vector<short> value )
this
->
numShortControlPoints
=
value
.
size
();
this
->
numShortControlPoints
=
value
.
size
();
for
(
int
i
=
0
;
i
<
value
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
value
.
size
();
i
++
)
{
this
->
shortControlPoints
.
push_back
(
value
);
this
->
shortControlPoints
.
push_back
(
value
[
i
]
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment