X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.cxx;h=dc5545af9ba4652599f22fd17aa1b2209c125b68;hb=228d83d191151e160937f836bc768365e55e1cf0;hp=6de30402b985bce8502bfbb80e2fdc5cb7e3a249;hpb=9877bb1bc1cbfc8b4ac0dbd45d443ba670c9d8d2;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx index 6de3040..dc5545a 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx @@ -252,7 +252,9 @@ int wxVtkSceneManager::createGBlackBox(int x, int y, std::string packageName, BlackBoxDescriptor::Pointer descriptor = GObjectsMVCFactory::getInstance()->getBlackBoxDescriptor( packageName, boxType); - + if (descriptor == NULL){ + printf("SCP: ERROR in wxVtkSceneManager::createGBlackBox, box %s probably does not exist.\n", boxType.c_str()); + } //Prepares the initial model //The coordinates obtained are the following. Top-Left:x=0,y=0 Bottom-Right:x=width,y=height @@ -2171,11 +2173,17 @@ int wxVtkSceneManager::configGConnetion(std::string nameStartBox, boxModel = findGBox(nameStartBox); if (boxModel != NULL) { startP = boxModel->getOutputPort(nameStartPort); + if(startP == NULL){ + printf("SCP: ERROR in wxVtkSceneManager::configGConnetion start port %s is null. Port name is probably wrong.\n", nameStartPort.c_str()); + } } boxModel = findGBox(nameEndBox); if (boxModel != NULL) { endP = boxModel->getInputPort(nameEndPort); + if(endP == NULL){ + printf("SCP: ERROR in wxVtkSceneManager::configGConnetion end port %s is null. Port name is probably wrong\n", nameStartPort.c_str(), nameEndPort.c_str()); + } } //ups2