AddPoint(x,y,z);
AddPoint(x,y,z);
bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
- SetState(5);
+ SetState(1);
}
}
GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
- if (GetState()==5){
+
+ if ( (GetState()==5) || (GetState()==1) ){
SetPoint( bakIdPoint , x , y ,z);
if (bakIdPoint==0)
{
AddPoint(x,y,z);
AddPoint(x,y,z);
bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
- SetState(5);
+ SetState(1);
}
}
GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
- if (GetState()==5){
- SetPoint( bakIdPoint , x , y ,z);
- }
+ if (GetState()==1){ SetPoint( bakIdPoint , x , y ,z); }
+ if (GetState()==5){ SetPoint( bakIdPoint , x , y ,z); }
+
if (GetState()==6){
GetManualViewBaseContour()->MoveContour(x,y,z);
}
AddPoint(x,y,z);
AddPoint(x,y,z);
bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
- SetState(5);
+ SetState(1);
}
}
GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
- if (GetState()==5)
- {
- SetPoint( bakIdPoint , x , y ,z);
- }
+ if (GetState()==1) { SetPoint( bakIdPoint , x , y ,z); }
+ if (GetState()==5) { SetPoint( bakIdPoint , x , y ,z); }
+
if (GetState()==6)
{
GetManualViewBaseContour()->MoveContour(x,y,z);
if (_state==7){ _state = 0; }
SetMoving( false );
GetManualViewBaseContour()->SelectPosibleContour(x,y,GetZ());
+printf("EED %p manualContourBaseControler::MouseReleaseLeft 01 \n",this);
if( GetIfCompleteCreation() && IsEditable() && !GetManualViewBaseContour()->GetPosibleSelected() && (GetManualViewBaseContour()->GetIdPoint(x,y,GetZ())==-1) )
{
+printf("EED %p manualContourBaseControler::MouseReleaseLeft 02 \n",this);
SetEditable( false );
SetPosibleToMove( false );
}
Program: wxMaracas
Module: $RCSfile: wxMaracas_ViewerWidget.cxx,v $
Language: C++
- Date: $Date: 2009/04/24 12:25:31 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2009/04/24 15:26:02 $
+ Version: $Revision: 1.9 $
Copyright: (c) 2002, 2003
License:
wxMaracas_ViewerWidget::~wxMaracas_ViewerWidget()
{
- if (mvtkmprbasedata) { delete mvtkmprbasedata; }
- if (mvtk2Dbaseview) { delete mvtk2Dbaseview; }
- if (mvtkmpr2Dview_X) { delete mvtkmpr2Dview_X; }
- if (mvtkmpr2Dview_Y) { delete mvtkmpr2Dview_Y; }
- if (mvtkmpr2Dview_Z) { delete mvtkmpr2Dview_Z; }
- if (mwidgetMesure) { delete mwidgetMesure; }
- if (mvtkplane2Dview) { delete mvtkplane2Dview; }
- if (mwxsphereview) { delete mwxsphereview; }
- if (mwxvtkclipping3Dview) { delete mwxvtkclipping3Dview; }
- if (mwxvtk3Dbaseview_Clipping3D) { delete mwxvtk3Dbaseview_Clipping3D; }
- if (mwxvtkmpr3Dview) { delete mwxvtkmpr3Dview; }
+ if (mvtkmprbasedata) { delete mvtkmprbasedata; }
+ if (mvtk2Dbaseview) { delete mvtk2Dbaseview; }
+ if (mvtkmpr2Dview_X) { delete mvtkmpr2Dview_X; }
+ if (mvtkmpr2Dview_Y) { delete mvtkmpr2Dview_Y; }
+ if (mvtkmpr2Dview_Z) { delete mvtkmpr2Dview_Z; }
+ if (mwidgetMesure) { delete mwidgetMesure; }
+ if (mvtkplane2Dview) { delete mvtkplane2Dview; }
+ if (mwxsphereview) { delete mwxsphereview; }
+ if (mwxvtkclipping3Dview) { delete mwxvtkclipping3Dview; }
+ if (mwxvtk3Dbaseview_Clipping3D){ delete mwxvtk3Dbaseview_Clipping3D; }
+ if (mwxvtkmpr3Dview) { delete mwxvtkmpr3Dview; }
}
//------------------------------------------------------------------------------------------------------------