]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualRoiControler.cpp
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualRoiControler.cpp
index 85f2068a9b5ae27f378c9bfa2a10c4697c053bdc..cbcdbd068caf63d6697cffb96fa0516942b2b1e9 100644 (file)
@@ -41,7 +41,7 @@ void manualRoiControler::Configure() //virtual
 
 void manualRoiControler::MouseClickLeft(int x, int y){
        int z = GetZ();
-       
+
        if( IsEditable() )
        {       // move control point
          if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) ){
@@ -49,13 +49,13 @@ void manualRoiControler::MouseClickLeft(int x, int y){
                  SetState(5);
          }
        } // IsEditable
-       
+
        // Move contour
        if ((GetState()==0) && (GetManualViewBaseContour()->GetPosibleSelected()==true))        {
                GetManualViewBaseContour()->InitMove(x,y,z);
                SetState(6);
        }
-       
+
        // if the firs time create 4 control points and move one point
        int size=GetManualViewBaseContour()->GetNumberOfPoints();
        if (GetState()==0) {
@@ -68,7 +68,7 @@ void manualRoiControler::MouseClickLeft(int x, int y){
                        SetState(1);
                }
        }
-       
+
 /*EED 21 Avril 2009
        if (GetState()==0) {
                if (size==0){
@@ -86,18 +86,21 @@ void manualRoiControler::MouseClickLeft(int x, int y){
                SetState(5);
        }
 */
-       
+
        GetManualViewBaseContour()->Refresh();
 }
 
 // ----------------------------------------------------------------------------
 void manualRoiControler::MouseMove(int x, int y) // virtual
 {
+
+    printf("manualRoiControler::MouseClickLeft %d %d\n",x ,y);
+
        int z=GetZ();
 
 //     this->_vtkInteractorStyleBaseView->
 
-                  
+
        GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
        GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);