]> Creatis software - bbtkGEditor.git/commitdiff
Show set's dialog ...
authorcorredor <>
Mon, 3 May 2010 14:07:39 +0000 (14:07 +0000)
committercorredor <>
Mon, 3 May 2010 14:07:39 +0000 (14:07 +0000)
lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.cxx
lib/EditorGraphicBBS/bbsKernelEditorGraphic/GConnectorModel.h
lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx

index 4b722db4889a55ad029ef170183d0e97deced97a..bd4ecf38c9fb01d79c5b604f0b996b3198aa32ca 100644 (file)
@@ -152,6 +152,11 @@ namespace bbtk
 
        //=========================================================================
 
+       bool GConnectorModel::isPointInside(double x,double y, double z)//virtual
+       {
+               return false;
+       }
+
 }  // EO namespace bbtk
 
 // EOF
index fde5eeefd9fffa32104fc67c306a620d452b3c4c..9e7d7f71d878200a96068083b0b67778d95296fe 100644 (file)
@@ -77,6 +77,7 @@ namespace bbtk
                manualContourModel* getManualContourModel();
                void updateStartEndPoints();
                void disconnectConnection();
+               virtual bool isPointInside(double x,double y, double z);
                
        private:
 
index cab3936f7976ff5f98d0e03977c28e1a31aa6af1..3a5c196f86eb0e1a9a71079362edcb506d19dffa 100644 (file)
@@ -307,6 +307,7 @@ namespace bbtk
                connectorModel->setManualContourModel(manContourModel);
                connectorView->setManualContourView(manContourView);
                connectorView->setModel(connectorModel);
+               connectorView->setBaseView(_baseView);
                connectorcontroller->setModelAndView(connectorModel,connectorView);
 
                int newId = _controllers.size();
@@ -645,9 +646,9 @@ namespace bbtk
                        GObjectController *cont = it->second;
                        int type = cont->getGObjectType();
                        
-                       if(type==GBLACKBOX)
+                       if(cont->getView()->isPointInside(X,Y))
                        {
-                               if(cont->getView()->isPointInside(X,Y))
+                               if(type==GBLACKBOX)
                                {
                                        for (int i=0; i<_selectedObjects.size(); i++)
                                        {
@@ -666,7 +667,7 @@ namespace bbtk
 
                if(clickOnObject==false)
                {
-                       _parent->editDiagramParameters(this);
+                       //_parent->editDiagramParameters(this);
                }
 
                return true;