]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuPlaneDirection.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPlaneDirection.cxx
index 4c5a9a83eab24e56e90c54ff064b798a03c7605f..1c03a1ea29186f7660c831514c01a8b97ded46ba 100644 (file)
@@ -7,8 +7,6 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,PlaneDirection)
 BBTK_BLACK_BOX_IMPLEMENTATION(PlaneDirection,bbtk::WxBlackBox);
 void PlaneDirection::Process()
 {
-
-
        int radio = bbGetInputArrowSize();
        std::vector<int> lstPointsx = bbGetInputlstPointsX();
        std::vector<int> lstPointsy = bbGetInputlstPointsY();
@@ -36,7 +34,8 @@ void PlaneDirection::Process()
                        spc[2]=1;
                }
                
-               for(int i = 0; i < lstPointsx.size();i++){                      
+               int i;
+               for(i = 0; i < (int)lstPointsx.size();i++){                     
                        _lstPointsx.push_back(lstPointsx[i]*spc[0]);
                        _lstPointsy.push_back(lstPointsy[i]*spc[1]);
                        _lstPointsz.push_back(lstPointsz[i]*spc[2]);
@@ -48,13 +47,14 @@ void PlaneDirection::Process()
                        _planedir->WriteInformation(filename,spc);
                }
        }
-
 }
+
 void PlaneDirection::CreateWidget(wxWindow* parent)
 {
        _planedir = PlaneDirectionViewer::getInstance(parent, radio, colour, opacity);
    bbSetOutputWidget( _planedir );      
 }
+
 void PlaneDirection::bbUserSetDefaultValues()
 {
        radio = 5;
@@ -63,6 +63,7 @@ void PlaneDirection::bbUserSetDefaultValues()
        colour[2] = 0;
        opacity = 100;
 }
+
 void PlaneDirection::bbUserInitializeProcessing()
 {
        std::vector<int> temp;
@@ -72,8 +73,8 @@ void PlaneDirection::bbUserInitializeProcessing()
        bbSetInputlstPointsX(temp);
        bbSetInputlstPointsY(temp);
        bbSetInputlstPointsZ(temp);
-
 }
+
 void PlaneDirection::bbUserFinalizeProcessing()
 {