Commit a052b30c authored by Jan Möbius's avatar Jan Möbius

Changed function parameters for picking from using unsigned int to size_t. Breaking Change!

parent 978b9171
...@@ -298,7 +298,7 @@ bool SkeletonEditingPlugin::canModify(QMouseEvent* _event) ...@@ -298,7 +298,7 @@ bool SkeletonEditingPlugin::canModify(QMouseEvent* _event)
return true; return true;
// try to select a joint from which the insertion should be started // try to select a joint from which the insertion should be started
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -537,7 +537,7 @@ void SkeletonEditingPlugin::slotRotateManipulator(bool _toggled) ...@@ -537,7 +537,7 @@ void SkeletonEditingPlugin::slotRotateManipulator(bool _toggled)
* @param _event mouseEvent that occured * @param _event mouseEvent that occured
*/ */
void SkeletonEditingPlugin::placeManip(QMouseEvent * _event) { void SkeletonEditingPlugin::placeManip(QMouseEvent * _event) {
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
OpenMesh::Vec3d hitPoint; OpenMesh::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -902,7 +902,7 @@ void SkeletonEditingPlugin::deleteJoint(QMouseEvent* _event) ...@@ -902,7 +902,7 @@ void SkeletonEditingPlugin::deleteJoint(QMouseEvent* _event)
{ {
if ( (_event->type() == QEvent::MouseButtonPress) || (_event->type() == QEvent::MouseButtonRelease) ){ if ( (_event->type() == QEvent::MouseButtonPress) || (_event->type() == QEvent::MouseButtonRelease) ){
// only select the joint on mousePress // only select the joint on mousePress
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -994,7 +994,7 @@ void SkeletonEditingPlugin::splitJoint(QMouseEvent* _event) ...@@ -994,7 +994,7 @@ void SkeletonEditingPlugin::splitJoint(QMouseEvent* _event)
return; return;
// try to select a joint from which the insertion should be started // try to select a joint from which the insertion should be started
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -1039,7 +1039,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event) ...@@ -1039,7 +1039,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event)
// try to select a joint from which the insertion should be started // try to select a joint from which the insertion should be started
// //
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -1086,7 +1086,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event) ...@@ -1086,7 +1086,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event)
} }
// add a new skeleton at this position // add a new skeleton at this position
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d lastHitPoint(0.0, 0.0, 0.0); ACG::Vec3d lastHitPoint(0.0, 0.0, 0.0);
// first try to pick something // first try to pick something
...@@ -1173,7 +1173,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event) ...@@ -1173,7 +1173,7 @@ void SkeletonEditingPlugin::insertJoint(QMouseEvent* _event)
// CASE 1 : this is a release on a joint from which the insertion should be started // CASE 1 : this is a release on a joint from which the insertion should be started
if ( !jointPreview_ ){ if ( !jointPreview_ ){
// in // in
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
...@@ -1377,7 +1377,7 @@ void SkeletonEditingPlugin::selectJoint(QMouseEvent* _event) ...@@ -1377,7 +1377,7 @@ void SkeletonEditingPlugin::selectJoint(QMouseEvent* _event)
if ( _event->type() == QEvent::MouseButtonRelease ){ if ( _event->type() == QEvent::MouseButtonRelease ){
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
ACG::Vec3d hitPoint; ACG::Vec3d hitPoint;
BaseObjectData* object; BaseObjectData* object;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment