]> Creatis software - creaContours.git/blobdiff - bbtk/src/bbCreaContournDimensions.cxx
Set pointers to 0
[creaContours.git] / bbtk / src / bbCreaContournDimensions.cxx
index 536f1bfff4e83ac11077d6633548fb0e461ceaa8..875ba21b3c338e6b4d87d64faf6883aa9f6f65d9 100644 (file)
@@ -7,12 +7,11 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaContours,nDimensions)
 BBTK_BLACK_BOX_IMPLEMENTATION(nDimensions,bbtk::WxBlackBox);
 void nDimensions::Process()
 {
-
-       double **vectx, **vecty, **vectz;
+       double **vectx = 0, **vecty = 0, **vectz = O;
 
        std::vector< void * > vectortemp;
        std::vector<int> size;
-       vtkImageData **mask, **value;
+       vtkImageData **mask = 0, **value = 0;
 
        vtkImageData* img = bbGetInputIn();
 
@@ -25,24 +24,23 @@ void nDimensions::Process()
                wxContourMainFrame::getInstance()->setVectImages(selectedimages);
        }
 
-
-
        if(currentimg != NULL){
                int contourtype = bbGetInputContourType();
                //wxContourMainFrame::getInstance()->getValuesXYZ(vectx, vecty, vectz, &size);
-               wxContourMainFrame::getInstance()->getMaskValue(mask, value, contourtype);
+               //wxContourMainFrame::getInstance()->getMaskValue(mask, value, contourtype);
        }
 
-    bbSetOutputX(vectx);
+       bbSetOutputX(vectx);
        bbSetOutputY(vecty);
        bbSetOutputZ(vectz);
        bbSetOutputSizeContour(size);
        bbSetOutputMask(*mask);
        bbSetOutputValue(*value);
 }
+
+//-----------------------------------------------------------------
 void nDimensions::CreateWidget(wxWindow* parent)
 {
-
        //vtkImageData* img = bbGetInputIn();
 
        std::vector<vtkImageData*> selectedimages;
@@ -68,12 +66,8 @@ std::string path=".";
        wxContourMainFrame::getInstance()->ShowToolsPanel(false);
        //std::cout<<"creaContours = "<<panel<<std::endl;
        bbSetOutputWidget( panel );
-
-
-
-
-
 }
+
 //-----------------------------------------------------------------
 void nDimensions::bbUserSetDefaultValues()
 {
@@ -90,7 +84,5 @@ void nDimensions::bbUserInitializeProcessing()
 void nDimensions::bbUserFinalizeProcessing()
 {
 }
-}
-// EO namespace bbCreaContour
-
 
+}  // EO namespace bbCreaContour