X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxVtkBaseView_SceneManager.cxx;h=128f1bca280b567bb6e3659a5756a728f0205189;hb=6383d69864c69a97539b59d3e39406c79408577b;hp=a6ceb2031d5c4e066156fdea94fceed86d685b58;hpb=dfdd7c80dbd20fea642090201b64eb7119a144bf;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx index a6ceb20..128f1bc 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx @@ -172,12 +172,21 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP ) manContourControl = new manualLineControler(); manViewerContour = new manualViewLine(); } + + //Points if (typeContour==7) { manContourControl = new manualContourControler(); manViewerContour = new manualViewPoints(); } + //Polygon + if (typeContour==10) + { + manContourControl = new manualContourControler(); + manViewerContour = new manualViewContour(); + } + _lastInteraction = insertWrap( theKeyName, manContourControl, manViewerContour ); @@ -1176,7 +1185,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP ) _widthOfContour = width; manualViewBaseContour *cViewer; ContourWrap_ViewControl *conwraviwcont; - std::map ::iterator iter;; + std::map ::iterator iter; for (iter=_contours_ViewControl->begin(); iter!=_contours_ViewControl->end(); iter++ ) { @@ -1203,8 +1212,8 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP ) ContourWrap_ViewControl* ccon = getContourWrap_ViewControlOf(theKeyName); - manualViewBaseContour * cViewer = ccon->getViewer(); - manualContourBaseControler * cControler = ccon->getControler(); + manualViewBaseContour * cViewer = ccon->getViewer(); + manualContourBaseControler * cControler = ccon->getControler(); removeFromScene(theKeyName); removeWrap(theKeyName); @@ -1212,4 +1221,6 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP ) delete cViewer; delete cControler; } - \ No newline at end of file + + +