// ----------------------------------------------------------------------------
void manualContourControler::MouseClickLeft(int x, int y){
-
bool ok = false;
int z = GetZ();
int size= GetManualViewBaseContour()->GetNumberOfPoints();
// Insert a Control Point with shift+ClickLeft
- // int tt = GetState(); // JPRx
vtkRenderWindowInteractor *vtkrenderwindowinteractor = _vtkInteractorStyleBaseView->GetInteractor();
-//EED3131
+
if( IsEditable() )
{
if ( (_vtkInteractorStyleBaseView!=NULL) && (GetState()==0) && ( (vtkrenderwindowinteractor!=NULL) && (vtkrenderwindowinteractor->GetShiftKey()==1) ) )
{
ok=true;
SetState(1);
+ GetManualContourModel()->SetCloseContour(false);
AddPoint(x,y,z);
}
// Continuie to Insert Control Points with ClickLeft (After being empty the contour)
manualContourBaseControler::MouseDLeft( x, y);
if ( IsEditable() )
{
+
GetManualViewBaseContour()->AddControlPoints();
GetManualViewBaseContour()->AddTextActor();
GetManualViewBaseContour()->Refresh();