Commit a89eb38f authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Removing TransformBounds() which will never be used

Change-Id: I9a2c9d30d16cff2d2e52a8694e2ec7731c5f6917
parent cade9cea
...@@ -423,36 +423,10 @@ double *vtkPolarAxesActor::GetBounds() ...@@ -423,36 +423,10 @@ double *vtkPolarAxesActor::GetBounds()
return this->Bounds; return this->Bounds;
} }
//-----------------------------------------------------------------------------
void vtkPolarAxesActor::TransformBounds( vtkViewport *viewport,
double bounds[6] )
{
double minPt[3], maxPt[3], transMinPt[3], transMaxPt[3];
minPt[0] = this->Bounds[0];
minPt[1] = this->Bounds[2];
minPt[2] = this->Bounds[4];
maxPt[0] = this->Bounds[1];
maxPt[1] = this->Bounds[3];
maxPt[2] = this->Bounds[5];
viewport->SetWorldPoint(minPt[0], minPt[1], minPt[2], 1.0);
viewport->WorldToDisplay();
viewport->GetDisplayPoint(transMinPt);
viewport->SetWorldPoint(maxPt[0], maxPt[1], maxPt[2], 1.0);
viewport->WorldToDisplay();
viewport->GetDisplayPoint(transMaxPt);
bounds[0] = transMinPt[0];
bounds[2] = transMinPt[1];
bounds[4] = transMinPt[2];
bounds[1] = transMaxPt[0];
bounds[3] = transMaxPt[1];
bounds[5] = transMaxPt[2];
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport ) void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
{ {
cerr << "In BuildAxes\n";
double bounds[6]; double bounds[6];
if ( ( this->GetMTime() < this->BuildTime.GetMTime() )) if ( ( this->GetMTime() < this->BuildTime.GetMTime() ))
......
...@@ -228,10 +228,6 @@ protected: ...@@ -228,10 +228,6 @@ protected:
vtkPolarAxesActor(); vtkPolarAxesActor();
~vtkPolarAxesActor(); ~vtkPolarAxesActor();
// Description:
// Transform the bounding box to display coordinates.
void TransformBounds( vtkViewport*, double* );
// Description: // Description:
// Build the axes. // Build the axes.
// Determine coordinates, position, etc. // Determine coordinates, position, etc.
...@@ -325,8 +321,6 @@ protected: ...@@ -325,8 +321,6 @@ protected:
// Use angle units (degrees) to label radial axes // Use angle units (degrees) to label radial axes
bool RadialUnits; bool RadialUnits;
int TickLocation;
// Visibility of polar axis and its title, labels, ticks (major only) // Visibility of polar axis and its title, labels, ticks (major only)
int PolarAxisVisibility; int PolarAxisVisibility;
int PolarTitleVisibility; int PolarTitleVisibility;
......
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