]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pPlotter.cxx
Comment out some unused variables
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pPlotter.cxx
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);
        }