Commit 7fb95fa9 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

COMP: Fixed compiler warnings.

parent 290bb180
......@@ -59,7 +59,7 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.1");
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.2");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartParallelCoordinates);
......@@ -427,18 +427,18 @@ bool vtkChartParallelCoordinates::MouseButtonReleaseEvent(const vtkContextMouseE
float high = 0.0;
for (size_t i = 0; i < this->Storage->AxesSelections.size(); ++i)
{
vtkRectf &rect = this->Storage->AxesSelections[i];
if (rect.Height() != 0.0f)
vtkRectf &rect2 = this->Storage->AxesSelections[i];
if (rect2.Height() != 0.0f)
{
if (rect.Height() > 0.0f)
if (rect2.Height() > 0.0f)
{
low = rect.Y();
high = rect.Y() + rect.Height();
low = rect2.Y();
high = rect2.Y() + rect2.Height();
}
else
{
low = rect.Y() + rect.Height();
high = rect.Y();
low = rect2.Y() + rect2.Height();
high = rect2.Y();
}
low -= this->Storage->Transform->GetMatrix()->GetElement(1, 2);
low /= this->Storage->Transform->GetMatrix()->GetElement(1, 1);
......
......@@ -49,7 +49,7 @@ public:
bool SelectionInitialized;
};
vtkCxxRevisionMacro(vtkPlotParallelCoordinates, "1.1");
vtkCxxRevisionMacro(vtkPlotParallelCoordinates, "1.2");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPlotParallelCoordinates);
......@@ -181,15 +181,15 @@ bool vtkPlotParallelCoordinates::PaintLegend(vtkContext2D *painter, float rect[4
}
//-----------------------------------------------------------------------------
void vtkPlotParallelCoordinates::GetBounds(double bounds[4])
void vtkPlotParallelCoordinates::GetBounds(double *)
{
}
//-----------------------------------------------------------------------------
bool vtkPlotParallelCoordinates::GetNearestPoint(const vtkVector2f& point,
const vtkVector2f& tol,
vtkVector2f* location)
bool vtkPlotParallelCoordinates::GetNearestPoint(const vtkVector2f& ,
const vtkVector2f& ,
vtkVector2f* )
{
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment