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
/*
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)
{
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
}
/**
-* 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)
{
pixel
*/
offsetpx=getOffsetPixelsXv();
- offsetpy=getOffsetPixelsYv();
-
+ offsetpy=getOffsetPixelsYv();
Rewind();
-
dc.GetSize(&scrwX, &scrwY);
//Lines between the points
/***********/
//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)
{
/*