void manualRoiControler::MouseClickLeft(int x, int y){
int z = GetZ();
-
+
if( IsEditable() )
{ // move control point
if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) ){
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) {
SetState(1);
}
}
-
+
/*EED 21 Avril 2009
if (GetState()==0) {
if (size==0){
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);