wxVtkBaseView_SceneManager :: wxVtkBaseView_SceneManager( wxVtkBaseView * theWxBaseViewToManage, wxEvtHandler * theEventHandler, double * spc )
{
- SetWidthContour(1.0);
+
_lastInteraction = NULL;
_lastInteractionName = "";
_eventHandler = theEventHandler;
_waiting = false;
_creatingROI = false;
_drawingSelectionROI = false;
-
+ SetWidthContour(1.0);
_wxVtk_BaseView = theWxBaseViewToManage;
if( _wxVtk_BaseView!=NULL )
ContourWrap_ViewControl * wxVtkBaseView_SceneManager :: insertWrap( std::string theKeyName, manualContourBaseControler * manContourControl, manualViewBaseContour * manViewerContour )
{
ContourWrap_ViewControl * newContourWrap = new ContourWrap_ViewControl(manContourControl, manViewerContour);
+ if(_contours_ViewControl == NULL)
+ {
+ _contours_ViewControl = new std::map< std::string, ContourWrap_ViewControl * >();
+ }
_contours_ViewControl->insert(std::pair <std::string, ContourWrap_ViewControl *> ( theKeyName, newContourWrap ));
return newContourWrap;
}
manualViewBaseContour *cViewer;
ContourWrap_ViewControl *conwraviwcont;
std::map <std::string, ContourWrap_ViewControl *>::iterator iter;
-
+
if (_contours_ViewControl!=NULL)
{
for (iter=_contours_ViewControl->begin(); iter!=_contours_ViewControl->end(); iter++ )