]> Creatis software - creaMaracasVisu.git/commitdiff
All the modif are tagged // JPRx
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 14 Nov 2008 16:16:29 +0000 (16:16 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 14 Nov 2008 16:16:29 +0000 (16:16 +0000)
lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ExtractControlPoints2D.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRBaseData.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx
lib/maracasVisuLib/src/kernel/marDicomBase.cpp

index bd1c723fa691bdf9201d3542bbea3680ee10bd4b..aa1244594945258dc12406b3a55ca267a36f3d5e 100644 (file)
@@ -297,7 +297,7 @@ void AutoControlPoints::InterCircle(std::vector<double>*InX, std::vector<double>
        //FIND THE INTERSECTIONS BETWEEN THE CIRCLE AND THE CONTOUR
        int j,jj;
        bool interRad = false;
-       double m1, /*mn=0,*/ m2,xinter,yinter,xmin,ymin,min,dist;
+       double m1, /*mn=0,*/ m2,xinter,yinter,xmin,ymin,min,dist; // JPRx
        _intercircleX.clear();
        _intercircleY.clear();
        _intercircleDist.clear();
@@ -1063,7 +1063,7 @@ void AutoControlPoints::PossibleIntersections( std::vector<double>*InX, std::vec
        tempX.clear();
        tempY.clear();
        int i,j,k;
-       //double dist1,dist2;
+       //double dist1,dist2; // JPRx
 //EED 22 Sep 2008
 //     FILE *fd;
 /*
@@ -1301,7 +1301,7 @@ for(i=0; i<_controlpointsX.size(); i++)
        PossibleIntersections(InX,InY,InZ);
        IntersectionPoints();
        ErrorBetweenContours();
-       //double promIn = vf->promVector(&_errorvector,false);
+       //double promIn = vf->promVector(&_errorvector,false); // JPRx
 
        std::vector<double> tempX;
        std::vector<double> tempY;
@@ -1342,8 +1342,8 @@ for(i=0; i<_controlpointsX.size(); i++)
        double promactual;
        
        int posact;
-       //int pos1;
-       //double prom1final;
+       //int pos1; // JPRx
+       //double prom1final; // JPRx
        int pos2;
        double prom2final;
 
index b0a2f03f017616d146b34195232015a6b8f3a98a..bb9344e14f5995c80ccf6aee4090196066b24bf8 100644 (file)
@@ -91,7 +91,7 @@ void ExtractControlPoints2D::GetSamplingControlPoints(std::vector<double>*pOutX,
        if(_InX.size() != 0)
        {
                int h = 1;
-               //int j=0;
+               //int j=0;  // JPRx
                int points = (int)(_InX.size()/_numsampling);
                for (int i=0; i<_InX.size(); i++, h++)
                {
index 28c84b769f9d866e1a1a826767322f53b85267d5..45ef21f5d13352ab1bb9e47ab3317ada3a5f59da 100644 (file)
@@ -390,7 +390,7 @@ void vtkMPR3DDataViewer::Configure()
        _ctfun->AddRGBPoint( 300 ,0 ,1,0);
        _ctfun->AddRGBPoint( 400 ,0 ,0,1);
 */
-//     void *p=this;
+//     void *p=this; // JPRx
 
   // Create the first of the three planes. The filter vtkImageMapToColors
   // maps the data through the corresponding lookup table created above.  The
index 127cdb916bbbcf5544e6619680fec43e1ee91316..dd8804c07d8c947d65c28fdf677202b33e32c136 100644 (file)
@@ -3,8 +3,8 @@
   Program:   wxMaracas
   Module:    $RCSfile: wxMPRWidget.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/14 15:57:07 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/11/14 16:16:32 $
+  Version:   $Revision: 1.4 $
 
   Copyright: (c) 2002, 2003
   License:
@@ -454,7 +454,7 @@ int wxSphereView::GetIdOfImage(double radio)
        int i,size=_lstId.size();
        for (i=0; i<size;i++)
        {
-               //idAlBeRa *tmp=_lstId[i];
+               //idAlBeRa *tmp=_lstId[i]; // JPRx
                if ((_lstId[i]->_radio==radio) && (_lstId[i]->_deltavoxel==_delta)) 
                {
                        return _lstId[i]->_id;
@@ -979,7 +979,7 @@ bool vtkInteractorStylePlane2D::OnLeftButtonUp() // virtual
 bool  vtkInteractorStylePlane2D::OnRightButtonUp()  // virtual
 {
        if (_stateRotate==true){
-               //vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView());
+               //vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); // JPRx
 
 // EED Borrame
 //             vtkplane2Dview->RotationEnd();
@@ -1857,8 +1857,8 @@ bool  vtkInteractorStyleMPRView::OnLeftButtonDown ()
        double x        = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
        double y        = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
        double z        = 1;
-       //double xx     = x;
-       //double yy     = y;
+       //double xx     = x;  // JPRx
+       //double yy     = y;  // JPRx
        _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z);            
 
 /*EED Borrame
@@ -2094,8 +2094,8 @@ void wxVtkMPR2DView::Refresh()
        //wxVtk2DBaseView::Refresh();
 
 
-       //vtkImageViewer2 *IV2=_imageViewer2XYZ->GetVtkImageViewer2();
-       //vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera();
+       //vtkImageViewer2 *IV2=_imageViewer2XYZ->GetVtkImageViewer2(); // JPRx
+       //vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera(); // JPRx
 
 
 
@@ -2595,7 +2595,7 @@ void wxVtkMPR3DViewCntrlPanel::OnEditColorTable(wxCommandEvent& event)
        std::vector<double> *ctfunVectorGreen   = this->_wxvtkmpr3Dview->GetVtkMPR3DDataViewer()->GetctFunVectorGreen();
        std::vector<double> *ctfunVectorBlue    =   this->_wxvtkmpr3Dview->GetVtkMPR3DDataViewer()->GetctFunVectorBlue();
 
-       //void *p=this->_wxvtkmpr3Dview->GetVtkMPR3DDataViewer();
+       //void *p=this->_wxvtkmpr3Dview->GetVtkMPR3DDataViewer(); // JPRx
 
 
        int i=0,xi,r,g,b;
@@ -2892,9 +2892,9 @@ wxVtkClipping3DViewCntrlPanel::wxVtkClipping3DViewCntrlPanel(wxWindow *parent, w
        wxFlexGridSizer *sizerH1 = new wxFlexGridSizer(20);
        wxFlexGridSizer *sizerH2 = new wxFlexGridSizer(10);
        wxFlexGridSizer *sizerH3 = new wxFlexGridSizer(10);
-       //wxFlexGridSizer *sizerH4 = new wxFlexGridSizer(10);
-       //wxFlexGridSizer *sizerH5 = new wxFlexGridSizer(10);
-       //wxFlexGridSizer *sizerH6 = new wxFlexGridSizer(10);
+       //wxFlexGridSizer *sizerH4 = new wxFlexGridSizer(10); // JPRx
+       //wxFlexGridSizer *sizerH5 = new wxFlexGridSizer(10); // JPRx
+       //wxFlexGridSizer *sizerH6 = new wxFlexGridSizer(10); // JPRx
 
        sizerH0->Add( ckVolum                                                                   , 1, wxALL|wxEXPAND, 0);
        sizerH0->Add( new wxStaticText(panel, -1,_T("          "))      , 1, wxALL|wxEXPAND, 0);
@@ -3275,7 +3275,7 @@ void wxVtkClipping3DViewCntrlPanel::OnBtnSaveRawVolume(wxCommandEvent& event)
 void wxVtkClipping3DViewCntrlPanel::OnBtnVolumeFunctions(wxCommandEvent& event)
 {
        
-       int /*i=0,*/ xi,yi,r,g,b;
+       int /*i=0,*/ xi,yi,r,g,b;  // JPRx
        vtkColorTransferFunction* ctfun = this->_wxvtkclipping3Dview->GetVtkClipping3DDataViewer()->GetColorTransferenceFunction();
        vtkPiecewiseFunction* tfun      = this->_wxvtkclipping3Dview->GetVtkClipping3DDataViewer()->GetTransferencefunction();
        std::vector<double>* gtf                = this->_wxvtkclipping3Dview->GetVtkClipping3DDataViewer()->GetGreyValuesTransferenceFVector();
@@ -3496,7 +3496,7 @@ void wxVtkMPR3DView::RefreshView()   // virtual
        double spc[3];
        this->GetVtkMPR3DDataViewer()->GetVtkMPRBaseData()->GetImageData()->GetSpacing(spc);
 
-       //double nx=1,ny=0,nz=0;
+       //double nx=1,ny=0,nz=0; // JPRx
        Refresh();
        double x=GetVtkMPR3DDataViewer ()->GetVtkMPRBaseData()->GetX();
        double y=GetVtkMPR3DDataViewer ()->GetVtkMPRBaseData()->GetY();
index 5fe48b74d73a43d6e68923a6edc5425df8252c54..ccabe8d3e3d83dd5a3bb51bd7ffbdfae063e27d6 100644 (file)
@@ -533,7 +533,7 @@ bool vtkInteractorScrollZ::OnRightButtonUp()
 bool vtkInteractorScrollZ::OnMouseMove () 
 {
        if (_stateFordware==true){
-           //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
+           //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];  // JPRx
         int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
                int delta = (_fordwareY - fy)/3;
                _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta);
@@ -1015,16 +1015,16 @@ void  vtkInteractorStyleBaseView3D::OnMouseMove ()
 
 //             this->vtkInteractorStyleTrackballCamera::OnMouseMove();
 
- // int x = this->Interactor->GetEventPosition()[0];
- // int y = this->Interactor->GetEventPosition()[1];
+ // int x = this->Interactor->GetEventPosition()[0]; // JPRx
+ // int y = this->Interactor->GetEventPosition()[1]; // JPRx
 
 
  // vtkRenderWindowInteractor *rwi = this->Interactor;
 
- // int lx =  rwi->GetLastEventPosition()[0];
- // int ly =  rwi->GetLastEventPosition()[1];
- // int dx = rwi->GetEventPosition()[0] ;
- // int dy = rwi->GetEventPosition()[1] ;
+ // int lx =  rwi->GetLastEventPosition()[0]; // JPRx
+ // int ly =  rwi->GetLastEventPosition()[1]; // JPRx
+ // int dx = rwi->GetEventPosition()[0] ; // JPRx
+ // int dy = rwi->GetEventPosition()[1] ; // JPRx
 
 
   switch (this->State) 
index ef8300b113077c6b878a64002fb4f51042a52b9f..3db0a806c3cb3f696e57d3b0aa5ffa467b089d29 100644 (file)
@@ -189,7 +189,7 @@ void marRAWFiles::loadActualSerie(wxGauge* gauge )
 
        fscanf(ff,"%s",tmp);
        fscanf(ff,"%s",tmp);
-       //int type =    atoi(tmp);  // 0
+       //int type =    atoi(tmp);  // 0 // JPRx
 
        fscanf(ff,"%s",tmp);
        fscanf(ff,"%s",tmp);
@@ -312,7 +312,7 @@ void marRAW2AsciiFiles::loadActualSerie(wxGauge* gauge )
        // type
        fscanf(ff,"%s",tmp);
        fscanf(ff,"%s",tmp);
-       //int type =    atoi(tmp);  // 300
+       //int type =    atoi(tmp);  // 300  // JPRx
 
        //size x,y,z
        fscanf(ff,"%s",tmp);
@@ -435,7 +435,7 @@ void marRAW2Files::loadActualSerie(wxGauge* gauge )
        // type
        fscanf(ff,"%s",tmp);
        fscanf(ff,"%s",tmp);
-       //int type =    atoi(tmp);  // 200
+       //int type =    atoi(tmp);  // 200  // JPRx
 
        //size x,y,z
        fscanf(ff,"%s",tmp);