Commit 836c81c6 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 9ae414da
...@@ -106,7 +106,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event) ...@@ -106,7 +106,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
//set one of the points, depending on the hit state (first, second or modifying) //set one of the points, depending on the hit state (first, second or modifying)
if (_event->type() == QEvent::MouseButtonRelease ) if (_event->type() == QEvent::MouseButtonRelease )
{ {
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
OpenMesh::Vec3d hitPoint; OpenMesh::Vec3d hitPoint;
// Get picked object's identifier by picking in scenegraph // Get picked object's identifier by picking in scenegraph
...@@ -165,7 +165,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event) ...@@ -165,7 +165,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
{ {
//decides which point is the nearest one, so //decides which point is the nearest one, so
//it can be dragged //it can be dragged
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
OpenMesh::Vec3d hitPoint; OpenMesh::Vec3d hitPoint;
// Get picked object's identifier by picking in scenegraph // Get picked object's identifier by picking in scenegraph
...@@ -181,7 +181,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event) ...@@ -181,7 +181,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
else if (_event->type() == QEvent::MouseMove && dragModeActive()) else if (_event->type() == QEvent::MouseMove && dragModeActive())
{//mouse moved and drag mode is enabled {//mouse moved and drag mode is enabled
unsigned int node_idx, target_idx; size_t node_idx, target_idx;
OpenMesh::Vec3d hitPoint; OpenMesh::Vec3d hitPoint;
ACG::Vec3d hitPoints[2]; ACG::Vec3d hitPoints[2];
std::copy(currentRuler_->points(),currentRuler_->points()+2,hitPoints); std::copy(currentRuler_->points(),currentRuler_->points()+2,hitPoints);
......
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