]> Creatis software - creaContours.git/commitdiff
Set pointers to 0
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 10 Mar 2010 09:09:28 +0000 (09:09 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 10 Mar 2010 09:09:28 +0000 (09:09 +0000)
bbtk/src/bbCreaContournDimensions.cxx
bbtk/src/bbCreaContournDimensions.h

index 29aca636fb51455bfa9fe82c7d71b4ddbe71dbbd..875ba21b3c338e6b4d87d64faf6883aa9f6f65d9 100644 (file)
@@ -7,11 +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();
 
@@ -30,7 +30,7 @@ void nDimensions::Process()
                //wxContourMainFrame::getInstance()->getMaskValue(mask, value, contourtype);
        }
 
-    bbSetOutputX(vectx);
+       bbSetOutputX(vectx);
        bbSetOutputY(vecty);
        bbSetOutputZ(vectz);
        bbSetOutputSizeContour(size);
index c6c4b2031f2b3c246fe38d00f2da17782ddbf164..2f6a427c5cbbb0a9d3d7dde1189cc628aa1cd5d8 100644 (file)
@@ -59,7 +59,7 @@ BBTK_OUTPUT(nDimensions, Value, "Value of the contours",vtkImageData*,"");
 BBTK_OUTPUT(nDimensions, X, "Array of arrays that contains the X coordinates of each contour", double**, "");
 BBTK_OUTPUT(nDimensions, Y, "Array of arrays that contains the Y coordinates of each contour", double**, "");
 BBTK_OUTPUT(nDimensions, Z, "Array of arrays that contains the Z coordinates of each contour", double**, "");
-BBTK_OUTPUT(nDimensions, SizeContour, "Vector contains the coordinates of each contour", std::vector <int>, "");
+BBTK_OUTPUT(nDimensions, SizeContour, "Vector that contains the coordinates of each contour", std::vector <int>, "");
 
 BBTK_END_DESCRIBE_BLACK_BOX(nDimensions);
 }