[chronojump] kneeAngle h,k,t keys for hip, knee, toe



commit 90d038e80b7fbd2b5d8ccde712f2ed9bd34cdce0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Mar 24 17:17:29 2010 +0800

    kneeAngle h,k,t keys for hip, knee, toe

 src/angle/kneeAngle.cpp |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/angle/kneeAngle.cpp b/src/angle/kneeAngle.cpp
index 8e0fcab..47941e7 100644
--- a/src/angle/kneeAngle.cpp
+++ b/src/angle/kneeAngle.cpp
@@ -1512,21 +1512,22 @@ int main(int argc,char **argv)
 				
 				//remark bad found or unfound markers	
 				if(
-						mouseClicked == HIPMARK ||
-						mouseClicked == KNEEMARK ||
-						mouseClicked == TOEMARK) {
+						mouseClicked == HIPMARK || key == 'h' ||
+						mouseClicked == KNEEMARK || key == 'k' ||
+						mouseClicked == TOEMARK || key == 't'
+						) {
 						
 					int myMark = TOGGLENOTHING ;
 					const char * Id = "";
 					CvPoint markedBefore;
 					
-					if(mouseClicked == HIPMARK) {
+					if(mouseClicked == HIPMARK || key == 'h' ) {
 						myMark = TOGGLEHIP;
 						markedBefore = hipMarked;
 						markedMouse = hipMarked;
 						Id = "H";
 						imageGuiResult(gui, "Mark Hip on toClick window.", font);
-					} else if(mouseClicked == KNEEMARK) {
+					} else if(mouseClicked == KNEEMARK || key == 'k' ) {
 						myMark = TOGGLEKNEE;
 						markedBefore = kneeMarked;
 						markedMouse = kneeMarked;
@@ -1579,8 +1580,11 @@ int main(int argc,char **argv)
 							mouseClicked = UNDEFINED;  
 						}
 					
-						else if(mouseClicked == HIPMARK || mouseClicked == KNEEMARK || 
-								mouseClicked == TOEMARK) {
+						else if(
+								mouseClicked == HIPMARK || key == 'h' ||
+								mouseClicked == KNEEMARK || key == 'k' ||
+								mouseClicked == TOEMARK || key == 't'
+						       ) {
 							cancelled = true;
 						}
 					} while(!doneMarking && !cancelled);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]