Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Plugin-Ruler
Commits
836c81c6
Commit
836c81c6
authored
Oct 24, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed function parameters for picking from using unsigned int to size_t. Breaking Change!
parent
9ae414da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
RulerPlugin.cc
RulerPlugin.cc
+3
-3
No files found.
RulerPlugin.cc
View file @
836c81c6
...
...
@@ -106,7 +106,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
//set one of the points, depending on the hit state (first, second or modifying)
if
(
_event
->
type
()
==
QEvent
::
MouseButtonRelease
)
{
unsigned
in
t
node_idx
,
target_idx
;
size_
t
node_idx
,
target_idx
;
OpenMesh
::
Vec3d
hitPoint
;
// Get picked object's identifier by picking in scenegraph
...
...
@@ -165,7 +165,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
{
//decides which point is the nearest one, so
//it can be dragged
unsigned
in
t
node_idx
,
target_idx
;
size_
t
node_idx
,
target_idx
;
OpenMesh
::
Vec3d
hitPoint
;
// Get picked object's identifier by picking in scenegraph
...
...
@@ -181,7 +181,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
else
if
(
_event
->
type
()
==
QEvent
::
MouseMove
&&
dragModeActive
())
{
//mouse moved and drag mode is enabled
unsigned
in
t
node_idx
,
target_idx
;
size_
t
node_idx
,
target_idx
;
OpenMesh
::
Vec3d
hitPoint
;
ACG
::
Vec3d
hitPoints
[
2
];
std
::
copy
(
currentRuler_
->
points
(),
currentRuler_
->
points
()
+
2
,
hitPoints
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment