]> Creatis software - creaMaracasVisu.git/commitdiff
Comment out some unused variables
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 14 Nov 2008 12:15:29 +0000 (12:15 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 14 Nov 2008 12:15:29 +0000 (12:15 +0000)
25 files changed:
bbtk/src/bbmaracasvisuContourToControlPoints.cxx
bbtk/src/bbmaracasvisuPlotterView.cxx
bbtk/src/bbmaracasvisuSliderMinMax.cxx
bbtk/src/bbmaracasvisuViewerNV.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourCrownWidget.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourExtractData.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourVOIWidget.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/Propagation.cxx
lib/maracasVisuLib/src/interface/wxWindows/Contour/vectorFunctions.cxx
lib/maracasVisuLib/src/interface/wxWindows/manualContour.cpp
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/HistogramDialog.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/LogicalColorBar.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mBarRange.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/mathplot.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pLogicalFunction.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotter.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterLayer.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterScaleX.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotterWindow.cxx
lib/maracasVisuLib/src/kernel/README

index 469155835e3e35154f636a10d1bafe9173e5a851..02db285e8ea1f376b247ffa50ec7040b155861f3 100644 (file)
@@ -131,8 +131,8 @@ void ContourToControlPoints::bbUserConstructor()
                _ext2D          = new ExtractControlPoints2D();
                _fd = NULL;
                pos = 0;
-               it = NULL;
-               bool inic = false;
+               //it = NULL;  // JPRx
+               //bool inic = false; // JPRx
 }
 //------------------------------------------------------------
 void ContourToControlPoints::bbUserCopyConstructor()
index dae2a95197860c7b2ec26a73e48f91d9a226923b..39e76a3675a37323169e2b6d93f6c3c329e698bb 100644 (file)
@@ -23,7 +23,8 @@ void PlotterView::CreateWidget()
                mwxwidget = new pPlotterWindow(  bbGetWxParent() , -1,wxDefaultPosition,  wxDefaultSize,  0 );
                mwxwidget->AddLayer(new pPlotterScaleX());
                mwxwidget->AddLayer(new pPlotterScaleY());
-               pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &(bbGetInputInX()), &(bbGetInputInY()) );
+               pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &(bbGetInputInX()), &(bbGetInputInY()) ); // taking address of temporary ! JPRx
+
                mwxwidget->addFunction(pGF);
     bbtkDebugDecTab("Core",9);
     bbSetOutputWidget( mwxwidget );
index 4987b9f16a2a2a12b24c07510799d8a152506af4..cb3755a95afc8059dcd858893328df437329211f 100644 (file)
@@ -93,7 +93,7 @@ void SliderMinMax::CreateWidget()
                mwxwidget -> setIfWithActualDrawed(bbGetInputShowActual());
                mwxwidget -> SetStart(bbGetInputInMinShow());
                mwxwidget -> SetEnd(bbGetInputInMaxShow());  
-               wxWidgetSliderMinMax * eventHandler = new wxWidgetSliderMinMax(this, mwxwidget);
+               //wxWidgetSliderMinMax * eventHandler = new wxWidgetSliderMinMax(this, mwxwidget); //JPRx
                bbtkDebugDecTab("Core",9);
 
        bbSetOutputWidget( mwxwidget );
index b088ac534707a2d1bac29e2f3274cd1c6ff5c46f..b89d78be6a84464285f083c041527090f2cb8cbd 100644 (file)
@@ -37,7 +37,7 @@ void ViewerNV::Process()
 void ViewerNV::CreateWidget()
 {
     bbtkDebugMessageInc("Core",9,"ViewerNV::CreateWidget()"<<std::endl);
-       mwxwidget = new wxMaracas_N_ViewersWidget( bbGetWxParent() , bbGetInputIn() , &(bbGetInputnTypeView())  );
+       mwxwidget = new wxMaracas_N_ViewersWidget( bbGetWxParent() , bbGetInputIn() , &(bbGetInputnTypeView())  ); // taking address of temporary JPRx
        bbtkDebugDecTab("Core",9);
     bbSetOutputWidget( mwxwidget );
 }
index 21f8f545d8f73966c4372827ae7d6e8d9580d7dc..034ebc3bc201f81ee468271b070792cb2502b183 100644 (file)
@@ -1421,9 +1421,9 @@ double AutoControlPoints::MoveAndAverage(int dir, std::vector<double>*InX, std::
                tempY.clear();
                vf->copyVector(&_controlpointsX,&tempX);
                vf->copyVector(&_controlpointsY,&tempY);
-               int i,j,pos = 0;
+               int i,j /*,pos = 0*/ ;  // JPRx
                double prom1=0,promactual1=1;
-               double prom2=0,promactual2=1;
+               //double prom2=0,promactual2=1; // JPRx
                int h = 0;
                int hh = 1;
                if(_contIncontpos[h]>_contIncontpos[hh])
index ba64844d8ef8dc08b5e16441471ef8e1bf7bd0b1..70fbc814cf1ab4f16e197b898397762a806fb981 100644 (file)
@@ -244,7 +244,7 @@ void wxMaracasCoutourTool::GetMinMaxPoint(int *minPoint,
                                                                                  )
 {
        int i;
-       int     np  = manualviewbaseecontour->GetNumberOfPoints( );  // number of control points
+       //int   np  = manualviewbaseecontour->GetNumberOfPoints( );  // number of control points // JPRx
 
 // JSTG 26-02-08 ---------------------------------------------------------------------------------------
        //int nps = manualviewbaseecontour->GetNumberOfPointsSpline(); // number of points in the spline
@@ -567,8 +567,10 @@ void wxMaracasCoutourTool::EreaseLastContour(wxCommandEvent& event)
        {
                while(!feof(fd))        
                {
-                       fscanf(fd,"");
-                       fscanf(fd," %s %d",&firstline,&size);
+                       fscanf(fd,""); // ?? JPRx
+                       //fscanf(fd," %s %d",&firstline,&size); // JPRx
+                       fscanf(fd," %s %d",firstline,&size);
+
                        _SizesC.push_back(size);
                        for(j=0; j<size; j++)
                        {
@@ -637,8 +639,9 @@ void wxMaracasCoutourTool::EreaseLastCP(wxCommandEvent& event)
        {
                while(!feof(fd))        
                {
-                       fscanf(fd,"");
-                       fscanf(fd," %s %d",&firstline,&size);
+                       fscanf(fd,"");  // ?? JPRx
+                       //fscanf(fd," %s %d",&firstline,&size);// JPRx
+                       fscanf(fd," %s %d",firstline,&size); 
                        _SizesC.push_back(size);
                        for(j=0; j<size; j++)
                        {
index acb9e7872538f517a1185bc503e7c64e48d54d6e..e64fa03a444370e831d5e8e3162e631fd35192d8 100644 (file)
@@ -47,7 +47,7 @@ void ContourExtractData::GetMinMaxPoint(int *minPoint,
                                                                                  )
 {
        int i;
-       int     np              = manualcontourmodel->GetSizeLstPoints( );  // number of control points
+       //int   np              = manualcontourmodel->GetSizeLstPoints( );  // number of control points // JPRx
 
 // JSTG 26-02-08 ---------------------------------------------------------------------------------------
        //int nps = manualviewbaseecontour->GetNumberOfPointsSpline(); // number of points in the spline
@@ -87,13 +87,13 @@ void ContourExtractData::GetMinMaxPoint_Of_LstManConMod(    int *minPoint,
 //------------------------------------------------------------------------
 
 int ContourExtractData::AnalisisContourInside(int x, 
-                                                                                               int y, 
-                                                                                               manualContourModel *manualcontourmodel
-                                                                                               )
+                                           int y, 
+                                           manualContourModel *manualcontourmodel
+                                           )
 {
        int result      = 0;
        int i;
-       int     np              = manualcontourmodel->GetSizeLstPoints( );  // number of control points
+       //int   np              = manualcontourmodel->GetSizeLstPoints( );  // number of control points // JPRx
 
 // JSTG 26-02-08 ---------------------------------------------------------------------------------------
        //int nps = manualviewbaseecontour->GetNumberOfPointsSpline(); // number of points in the spline
index 5a9ebdf32d16db1672c4cc0c7fa3dee8e24b717a..0e78c68cc4735a57c730b90ae6b0b9ffbdcbf8fc 100644 (file)
        mbarrange -> SetStart( 10 );
        mbarrange -> SetEnd( 90 );  
 
-       wxWidgetSliderMinMaxVOI * eventHandler = new wxWidgetSliderMinMaxVOI(this, mbarrange);
+       //wxWidgetSliderMinMaxVOI * eventHandler = new wxWidgetSliderMinMaxVOI(this, mbarrange); // JPRx
 
        wxFlexGridSizer *sizer1 = new wxFlexGridSizer(10);
        sizer1->AddGrowableCol(0);
-    sizer1->Add(mbarrange,1,wxGROW);
+        sizer1->Add(mbarrange,1,wxGROW);
        sizer = sizer1;
        panel -> SetSizer(sizer);
 
index ca908201308a7c290429f93e2c9284a6598a0d80..be6cddb83c015f0b5282f539b64ba5b1d94d4cac 100644 (file)
@@ -726,7 +726,8 @@ void PropContour::ReadKeyContour(FILE* fd)
        tempZ.clear();
        while(!feof(fd))
        {
-               fscanf(fd," %s %d",&firstline,&size);
+               //fscanf(fd," %s %d",&firstline,&size); // JPRx
+               fscanf(fd," %s %d",firstline,&size);
                for(int i=0; i<size; i++)
                {
                        fscanf(fd,"%lf %lf %d",&x,&y,&z);
@@ -838,7 +839,7 @@ void PropContour::PreparePointsForSpline(std::vector<double>*InX, std::vector<do
                                                                                 std::vector<int>*Sizes)
 {
        int sizeS = Sizes->size();
-       int sizeV = InX->size();
+       //int sizeV = InX->size(); // JPRx
        int i,j,mem,posinic,dir,cont;
        double leX;
 
@@ -904,7 +905,7 @@ void PropContour::PreparePointsForSpline(std::vector<double>*InX, std::vector<do
 //----------------------------------------------------------------------------------------------------
 vtkImageData* PropContour::method_Spline(std::vector<double>*InX, std::vector<double>*InY, std::vector<double>*InZ, std::vector<int>*Sizes)
 {
-       long interval = wxGetElapsedTime(TRUE);
+       //long interval = wxGetElapsedTime(TRUE); // JPRx
 
        int i,j,k,sizeX,sizeS,sizeInS;
        int numspline;
@@ -998,7 +999,7 @@ vtkImageData* PropContour::method_Spline(std::vector<double>*InX, std::vector<do
                cont = 0;
                for(i=0; i<sizeS; i++)
                {
-                       double hh=tempZ[cont+j];
+                       //double hh=tempZ[cont+j]; // JPRx
                        _mContourModel->AddPoint(tempX[cont+j],tempY[cont+j],tempZ[cont+j]);
                        cont = cont + tam;
                } // for i
@@ -1222,7 +1223,7 @@ void PropContour::GetIdContour(int id, std::vector<double>*vecX, std::vector<dou
        vecX->clear();
        vecY->clear();
        vecZ->clear();
-       int sizeplane = _planevector[id].getsize_x();
+       //int sizeplane = _planevector[id].getsize_x();
        double tempx;
        for(i=0; i<_planevector[id].getsize_x(); i++)
        {
index df306e46add3773cbca0b55be6854a1605055cc5..d8878702ccc05263eee527a882913869685f6bc5 100644 (file)
@@ -32,7 +32,7 @@ void vectorFunctions::copyintVector(std::vector<int>*Vector1,std::vector<int>*Ve
        int size = Vector1->size();
        Vector2->clear();
        int i;
-       if(size =! 0)
+       if( size != 0)
        {
                for(i=0; i<size; i++)
                {
index 1d9f3ad2321e5cf8d30fc14738102f5c792f7850..9027e39629128c57c76343f02a4562ccf34e743d 100644 (file)
@@ -2529,7 +2529,7 @@ void manualViewBaseContour::Open(FILE *pFile)
 void manualViewBaseContour :: AddCompleteContourActor(  bool ifControlPoints )
 {
        _viewControlPoints = ifControlPoints;
-        vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
+        /*vtkRenderer * theRenderer = */  _wxvtkbaseview->GetRenderer();  // JPRx ??
         //Adding the spline
         AddSplineActor();
 
@@ -2544,7 +2544,7 @@ void manualViewBaseContour :: AddCompleteContourActor(  bool ifControlPoints )
 
 void manualViewBaseContour :: RemoveCompleteContourActor()
 {      
-       vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer();
+       /*vtkRenderer * theRenderer =*/  _wxvtkbaseview->GetRenderer(); // JPRx ??
         //Removing the spline
        RemoveSplineActor();
        RemoveTextActor();
@@ -3443,7 +3443,7 @@ void manualContour3VControler::AddPoint( int x, int y, int z ) // virtual
                }
 
 
-               int     id              = GetManualContourModel()->AddPoint(xx,yy,zz);
+               /*int   id              = */ GetManualContourModel()->AddPoint(xx,yy,zz);  // JPRx
                GetManualViewBaseContour()->AddPoint(); 
                AddPoint_Others();
 
@@ -3939,7 +3939,7 @@ void manualContourControler::MouseClickLeft(int x, int y){
        int size= GetManualViewBaseContour()->GetNumberOfPoints();
 
        // Insert a Control Point with shift+ClickLeft
-       int tt = GetState();
+       // int tt = GetState();  // JPRx
        vtkRenderWindowInteractor *vtkrenderwindowinteractor = _vtkInteractorStyleBaseView->GetInteractor();
 //EED3131
        if( IsEditable() )
@@ -4651,7 +4651,7 @@ bool manualContourBaseControler::OnChar()
                wxVTKRenderWindowInteractor *_wxVTKiren;
                _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
                _wxVTKiren->GetEventPosition(X, Y);     
-               int Z = GetZ();
+               //int Z = GetZ(); // JPRx
                // Delete Point
                if ((keyCode==8) || (keyCode==127))
                {
@@ -5005,7 +5005,7 @@ void manualContourBaseControler::Magnet(int x, int y)
 { 
        if( IsEditable())
        {
-               int id=_manViewBaseCont->GetIdPoint(x,y,GetZ());
+               /*int id= */ _manViewBaseCont->GetIdPoint(x,y,GetZ()); // JPRx
                if (GetManualContourModel()!=NULL){
                        double  xx      = x;
                        double  yy      = y;
@@ -5041,7 +5041,7 @@ void manualContourBaseControler::AddPoint(int x, int y, int z) // virtual
                double  yy      = y;
                double  zz      = z;
                GetManualViewBaseContour()->TransfromeCoordViewWorld(xx,yy,zz);
-               int     id              = GetManualContourModel()->AddPoint(xx,yy,zz);
+               /*int   id              =*/  GetManualContourModel()->AddPoint(xx,yy,zz);  // JPRx
                GetManualViewBaseContour()->AddPoint(); 
 //             GetManualViewBaseContour()->UpdateViewPoint(id);
        }
index 7c5675b3899899772c8721ecd68573f2dc7cf2f2..1c2d5c09ff9c27b3326838657a5c3edcd3aa0594 100644 (file)
@@ -158,8 +158,8 @@ void HistogramDialog::OnLoadData(wxCommandEvent& event)
        if(nameF.CompareTo( _T("/0") )>0)
                file.open(  (const char*) (nameF.mb_str()) );
        
-       bool histogramReading=false,histogramPoints=false,histogramPoint=false,tf=false,ctf=false,tfp=false,ctfp=false;
-       int gv=-1,in=-1,red=-1,gr=-1,bl=-1,nPoints=-1;
+       bool histogramReading=false,/*histogramPoints=false,histogramPoint=false,*/tf=false,ctf=false,tfp=false,ctfp=false;  // JPRx
+       int gv=-1,in=-1,red=-1,gr=-1,bl=-1/*,nPoints=-1*/; // JPRx
        if(file.is_open())
        {
                //-------------
@@ -168,7 +168,7 @@ void HistogramDialog::OnLoadData(wxCommandEvent& event)
                //--------------
        
                //std::getline(file,line);
-               int i=0;
+               //int i=0;  // JPRx
                while(!file.eof())
                {
                        std::string line;
index 642f0d6305e616ecbf43fac3ba009e426ae16724..d94b7560abb78d3b44b0bb4d4ffc648d8d3219d2 100644 (file)
                
                if(xRealValue>=minValue && xRealValue<=maxValue)
                {
-                       bool ifContinue = true;
+                       // bool ifContinue = true; // JPRx
                        //pColorPoint * colorPoint, nextColorPoint;
                        int maxIndex= logicColorPoints.size()-1;
-                       int nextIndex = 0;
-                       int nextX = 0;
+                       // int nextIndex = 0; // JPRx
+                       //int nextX = 0; // JPRx
                        int i = 0;
                                        
                        std::vector <pColorPoint*>::iterator iter;
index e678d73ab46c15aea906fbb3760545084f625eb6..b60fe46f6b1fd9087f3ac776082ccb81e113a657 100644 (file)
@@ -413,7 +413,7 @@ void mBarRange::RefreshHorizontalView()
 
        wxPoint points[3];
 
-       int largestNumberWidthInPixels = 15;
+       //int largestNumberWidthInPixels = 15; // JPRx
        int pxStart=GetPixelStart();
        int pxEnd=GetPixelEnd();
        int pxActual=GetPixelActual();
@@ -826,9 +826,9 @@ void mBarRange::OnMouseMove(wxMouseEvent& event )
 //fprintf( ff , "mBarRange :: OnMouseMove 01\n" );
 //fclose(ff);
 
-       int px1=GetPixelStart();
-       int px2=GetPixelEnd();
-       int px3=GetPixelActual();
+       //int px1=GetPixelStart(); // JPRx
+       //int px2=GetPixelEnd(); // JPRx
+       //int px3=GetPixelActual(); // JPRx
        if (activeState)
        {
                wxPoint point = event.GetPosition();
index bda190264c79f3ae16cc2d5795fb7b1485a80a01..7661beec1da8001dac586234fb9a2cf3158fff7c 100644 (file)
@@ -695,10 +695,10 @@ void mpWindow :: UpdateAll()
                int cx, cy;
                GetClientSize( &cx, &cy);
 
-               const int sx = (int)((m_maxX - m_minX) * GetScaleX());
-               const int sy = (int)((m_maxY - m_minY) * GetScaleY());
-               const int px = (int)((GetPosX() - m_minX) * GetScaleX() - (cx>>1));
-               const int py = (int)((GetPosY() - m_minY) * GetScaleY() - (cy>>1));
+               //const int sx = (int)((m_maxX - m_minX) * GetScaleX()); // JPRx
+               //const int sy = (int)((m_maxY - m_minY) * GetScaleY()); // JPRx
+               //const int px = (int)((GetPosX() - m_minX) * GetScaleX() - (cx>>1)); // JPRx
+               //const int py = (int)((GetPosY() - m_minY) * GetScaleY() - (cy>>1)); // JPRx
                //SetScrollbars( 1, 1, sx, sy, px, py);
        }
 
index 22a156dbd03eaa594f8de7971302d456e6e012cd..bfd05eaec7a3c10aceb360939a4bd9c1412fb922 100644 (file)
@@ -155,9 +155,9 @@ pColorBar :: ~pColorBar()
                                        startNode_show = showedColorPoints.front();
                                        lastNode_show = showedColorPoints.back();
                                                                        
-                                       int numberEdges = figure->getNumberEdges();
-                                       wxPoint points [4];
-                                       int i=0;
+                                       //int numberEdges = figure->getNumberEdges(); // JPRx
+                                       //wxPoint points [4]; // JPRx
+                                       //int i=0; // JPRx
                                        int a;
                                        for (a=0; a<showedColorPoints.size() && movingPointIndex==-1 ; a++ )
                                        {
index 81f843b8c0aa699630f202d305a04bbe91293ee8..b04e17c81bacb5a648d8dacb8c735f85b3a7691d 100644 (file)
@@ -229,6 +229,7 @@ bool pGraphicalFunction::hasPoint(wxPoint aPoint)
 {
        return logicFunction -> hasPoint( aPoint );     
 }
+*/
 
 /**
 * Returns the real x values of the control points of the function. It dont includes the points calculated by interpolation.
@@ -536,8 +537,8 @@ void pGraphicalFunction::zooming(int clickedX,int clickedY,int width)
                wxNode* node=logicFunction->GetPointAt(0);
                pFunctionPoint* p;
 
-               float middleWX=(((float)(screenX-100))/2)/scaleX;
-               float middleWY=(((float)(screenY-50))/2)/scaleY;
+               //float middleWX=(((float)(screenX-100))/2)/scaleX; // JPRx
+               //float middleWY=(((float)(screenY-50))/2)/scaleY; // JPRx
                
                //node=node->GetNext(); 
                while(node)
index 5e4c844f1324b6e8c54dec690b03d5c370f3b03e..a95a25cfdbf1941b1a4510b7a84a0f08c351ac96 100644 (file)
@@ -116,8 +116,8 @@ public:
 
        virtual void getOffsets(int &offsetX,int &offSetY )
        {
-               offsetX=_offsetX;
-               offsetY=_offsetY;
+               offsetX=(int)_offsetX;
+               offsetY=(int)_offsetY;
        }
        
        /*
index 7a395e05affc5afac18ac93dcf9c78af7dff39e8..28c7d306a23d5cc167f3048560f006bdc7fc4207 100644 (file)
@@ -258,8 +258,8 @@ int pHistogram::getMinimumLevelOfGrey()
 */
 int pHistogram::getHistogramPoint(int gValue)
 {
-       double p=((float)gValue-minLevelOfGrey)/(maxLevelOfGrey-minLevelOfGrey);
-       double k=p*size;
+       //double p=((float)gValue-minLevelOfGrey)/(maxLevelOfGrey-minLevelOfGrey); // JPRx
+       //double k=p*size;
 
        unsigned short* dataHistogramPointer=NULL;
        dataHistogramPointer=(unsigned short*)points->GetScalarPointer(0,0,0);
index 0c3f03b1861d39903c6914c6d8ab393a331c0069..3c8d9250a88bfbf1fb76ad1e801a37032131cf3f 100644 (file)
@@ -439,7 +439,7 @@ bool pLogicalFunction::deletePointAt(int index)
                
                if(node)//point!=NULL)
                {
-                       pFunctionPoint* point=(pFunctionPoint*)node->GetData();
+                       //pFunctionPoint* point=(pFunctionPoint*)node->GetData(); // JPRx
                        bool deleted=realPoints.DeleteNode(node);
                        //delete point;
                        //delete node;
index 769aa45398c039accc201b59d30f2670ef020f43..81726093f4c39d38fe68d4a972afa3b65c5ed63a 100644 (file)
@@ -142,14 +142,14 @@ END_EVENT_TABLE()
                mpWindow* mplotWindow = ((mpWindow*)m_plot);
                float minReal_X = 0; //(float)mplotWindow->getMinScrX();
                float maxReal_X =(float)mplotWindow->getMaxScrX();
-               float scrX=(float)mplotWindow->GetScrX()-100;
-               double scaleX=(scrX/(maxReal_X))* (mplotWindow->getZoomFactor()); // ........
+               //float scrX=(float)mplotWindow->GetScrX()-100; // JPRx
+               //double scaleX=(scrX/(maxReal_X))* (mplotWindow->getZoomFactor()); // JPRx
                        
                // Creating the color bar with values according to the plotter added widget
                color_bar = new pColorBar(this, (m_plot->GetSize()).GetWidth(),40, true);
-               color_bar -> setRepresentedValues (minReal_X, maxReal_X);
+               color_bar -> setRepresentedValues ((int)minReal_X, (int)maxReal_X);
                color_bar -> setDeviceBlitStart (70,0);
-               color_bar -> setVisibleRange (minReal_X, maxReal_X);
+               color_bar -> setVisibleRange ((int)minReal_X,(int) maxReal_X);
                color_bar -> setDeviceEndMargin (50);
                
                
@@ -276,7 +276,7 @@ void  pPlotter :: onMoved_ColorPoint(wxCommandEvent& event)
 {
        text.Clear();
        text = _T( "Last event was on color bar: Color point moved to: ");
-       int lastReal_X = (color_bar->getLastMovedColorPoint())->getRealX();
+       int lastReal_X = (int)(color_bar->getLastMovedColorPoint())->getRealX();
        text << lastReal_X;
        
        barrange ->setRealX_vertical_line (lastReal_X);
@@ -347,7 +347,7 @@ void pPlotter :: onChangeFunction (wxCommandEvent& event)
                else
                        color_bar ->reinitiateColorBarTo(actualColorPoints);
 
-               color_bar -> setVisibleRange (realMin_X, maxShowed);
+               color_bar -> setVisibleRange ((int)realMin_X, maxShowed);
                
                // Refresh
                color_bar -> RefreshForce();
@@ -440,9 +440,9 @@ void  pPlotter::onStartChange_Bar(wxCommandEvent& event)
        text += wxString::Format(_T("%d"), realMin_X);  
        double realMax_X = m_plot->getMaxScrX();
        
-       color_bar -> setVisibleRange (realMin_X, realMax_X);
+       color_bar -> setVisibleRange (realMin_X, (int)realMax_X);
        
-       m_plot->actualizeViewRange(realMin_X,realMax_X);
+       m_plot->actualizeViewRange(realMin_X, (int)realMax_X);
        
        //setting the plotter for draw the functions that
        //it has to move.
@@ -464,8 +464,8 @@ void  pPlotter::onEndChange_Bar(wxCommandEvent& event)
        int realMax_X = barrange->GetEnd();
        text += wxString::Format(_T("%d"),realMax_X);   
        double realMin_X = m_plot->getMinScrX();
-       color_bar -> setVisibleRange (realMin_X, realMax_X);
-       m_plot->actualizeViewRange(realMin_X,realMax_X);
+       color_bar -> setVisibleRange ((int)realMin_X, realMax_X);
+       m_plot->actualizeViewRange((int)realMin_X,realMax_X);
        
        float startP=(float)barrange->getStartShowPorcentage();
        float endP=(float)barrange->getEndShowPorcentage();
@@ -633,8 +633,8 @@ void pPlotter :: sendTMessage(wxString theText)
        }
        void pPlotter::eraseColorPoints()
        {
-               int min=color_bar->getMinValue();
-               int max=color_bar->getMaxValue();
+               int min=(int)color_bar->getMinValue();
+               int max=(int)color_bar->getMaxValue();
                color_bar->reinitiateColorBar(min,max);
        }
 
index a1a04ef1ad2d68ba42378344aac53dc7faab5687..7767471ff509969fb338dcf2acf87bde04087580 100644 (file)
@@ -93,7 +93,7 @@ void pPlotterLayer::drawSplineCurve(wxDC & dc,mpWindow & w)
        std::vector<double> vy=getYSpline();
        wxPoint* ppoints;
        
-       int counter=0,minX,maxX,minY,maxY;
+       int /*counter=0,*/ minX,maxX,minY,maxY; // JPRx
        /*
        This is the offset of every point scale to the window
        pixel
@@ -182,7 +182,7 @@ void pPlotterLayer::drawSplineCurve(wxDC & dc,mpWindow & w)
 
 /*
  it define the first point of the polygon for be drawing
- returs true if the first and second point of the polygon are setted
+ returns true if the first and second point of the polygon are set
 */
 bool pPlotterLayer::initializePolygon(wxPoint* points,double x1, double y1,double x2, double y2)
 {
@@ -196,7 +196,7 @@ bool pPlotterLayer::initializePolygon(wxPoint* points,double x1, double y1,doubl
        if(points[0].x<=0&& points[1].x<=0 && points[0].y<=0&& points[1].y<=0)
        {
        
-               int offsetpx=getOffsetPixelsXv();       
+               //int offsetpx=getOffsetPixelsXv(); //JPRx      
 
                //analyzing the curve
 
@@ -279,7 +279,7 @@ bool pPlotterLayer::initializePolygon(wxPoint* points,double x1, double y1,doubl
 }
 
 /**
-* Draw le lines between the points of the function
+* Draw the lines between the points of the function
 */
 void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w)
 {
@@ -293,12 +293,10 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w)
        pixel
        */
        offsetpx=getOffsetPixelsXv();
-       offsetpy=getOffsetPixelsYv();
-       
+       offsetpy=getOffsetPixelsYv();   
 
        Rewind();
        
-
        dc.GetSize(&scrwX, &scrwY);
        
        //Lines between the points
@@ -313,15 +311,15 @@ void pPlotterLayer::drawFunction(wxDC & dc,mpWindow & w)
        /***********/
 
        //traslation
-       int xTraslation=getXTraslation();
+       //int xTraslation=getXTraslation(); //JPRx
        wxNode* node= points.GetFirst();
-       int i=1;//points.GetCount()+1;
+       // int i=1;//points.GetCount()+1; //JPRx
        int j=2;
        /*
         Fill it if it is an histogram
        */
        wxPoint point;
-       pFunctionPoint* pointk;
+       // pFunctionPoint* pointk; //JPRx
        if(type==2)
        {
                /*
index 1f95b6bb930621ed71dcced809d89da61c9f451f..9543da64e0621798f775e0154bfb5f5c37494876 100644 (file)
@@ -51,7 +51,7 @@ void pPlotterScaleX::Plot(wxDC& dc, mpWindow& w)
 
        //setting origins
        const int orgy   = w.GetScrY()-40;
-       const int extend = w.GetScrX()-100;
+       //const int extend = w.GetScrX()-100; //JPRx
 
        dc.SetDeviceOrigin(70,orgy);
        dc.SetAxisOrientation(true,true);
index 57c5e2becef382703a74883dfdf48fb645a8cfff..7442ce91f2029233afcb0ecb4e8b0f675fd8f606 100644 (file)
@@ -199,7 +199,7 @@ wxPoint pPlotterWindow:: getRealPoint(wxPoint pixelPoint)
 
 void pPlotterWindow::setActualScales()
 {
-       int maxX,maxY;//,minX,minY;
+       // int maxX,maxY,minX,minY; // JPRx
        /*
        if the function is drawed interactively the maxX and the 
        maxY in actual are sets by the user
@@ -1087,7 +1087,7 @@ void pPlotterWindow::onMouseMove(wxMouseEvent& event)
        {
                actual->setScreenX(m_scrX);
                actual->setScreenY(m_scrY);
-               int j=0;
+               //int j=0; // JPRx
                if((initialMovingCLick==-1) && event.LeftIsDown()  )
                 {
                        if(actual->isInFunction(realPoint.x,realPoint.y))
@@ -1387,9 +1387,10 @@ int pPlotterWindow:: addFunction(pGraphicalFunction * function)
                function->initializeSplineVectors();
                UpdateAll();
        }
-       bool added1=functions.Append(function)!=NULL;
+       // bool added1= functions.Append(function)!=NULL; // JPRx
+       
        int id=functions.IndexOf(function);
-       bool added2=AddLayer(function);
+       /* bool added2= */ AddLayer(function);// JPRx
        UpdateAll();
        return id;//added1 && added2;
 }
@@ -1582,7 +1583,7 @@ DEPRECATED
 */
 void pPlotterWindow :: actualizeViewRange(int newMinX, int newMaxX)
 {
-       int minPixX,maxPixX,min,max;
+       int minPixX,maxPixX/*, min, max*/;  // JPRx
        double sx;
        /*
                getiing pixels
@@ -1795,7 +1796,7 @@ void pPlotterWindow::moveFunctions( float porcentageMinX,float porcentageMaxX)
 */
 int pPlotterWindow::addFunctionToMove(pGraphicalFunction *function)
 {
-       bool added1=functionsToMove.Append(function)!=NULL;
+       // bool added1=  functionsToMove.Append(function)!=NULL; // JPRx
        int id=functionsToMove.IndexOf(function);
        UpdateAll();
        return id;
index 8983d13f0e6d401831a06290221a4d891f7dfeb4..425236ddcc18069e2f8e98cc2951cf2685765780 100644 (file)
@@ -2,7 +2,7 @@ All *.cxx files comes from gslobj and kgfo,
 since we broke compatibilites with those project it was too hard to maintain.
 
 Therefore source has been merge into maracas directly. As of 08/10/2003, if was
-plan to remove depencies to these lib, and also GSL as it is not in the CREATIS
+planed to remove dependencies to these lib, and also GSL as it is not in the CREATIS
 dogma.
 
 mathieu