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

A better API

Change-Id: I2b2b52847076803a367422782e858bb3d9d828e8
parent c7b4ec1c
......@@ -81,7 +81,8 @@ int TestPolarAxes( int argc, char * argv [] )
vtkNew<vtkPolarAxesActor> polaxes;
polaxes->SetBounds( normals->GetOutput()->GetBounds() );
polaxes->SetPole( -3., 0., 2. );
polaxes->SetAutoScaleRadius( true );
polaxes->SetAutoScaleRadius( false );
polaxes->SetMaximumRadius( 6. );
polaxes->SetCamera( renderer->GetActiveCamera() );
polaxes->SetRadialLabelFormat( "%6.1f" );
polaxes->GetRadialAxesProperty()->SetColor( .0, .0, .9 );
......
......@@ -435,7 +435,7 @@ void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
// Prepare axes for rendering with user-definable options
double dAlpha = this->MaximumAngle / ( this->NumberOfRadialAxes - 1. );
this->ComputePolarAxisTicks( this->RadialAxes[0], bounds[0], bounds[1] );
this->BuildPolarAxisTicks( bounds[0], bounds[1] );
// this->BuildLabels( this->RadialAxes );
// this->UpdateLabels( this->RadialAxes );
......@@ -575,10 +575,10 @@ inline double vtkPolarAxesActor::FSign( double value, double sign )
}
// *******************************************************************
void vtkPolarAxesActor::ComputePolarAxisTicks( vtkAxisActor* axis,
double boundsMin,
double boundsMax )
void vtkPolarAxesActor::BuildPolarAxisTicks( double boundsMin,
double boundsMax )
{
vtkAxisActor* axis = this->RadialAxes[0];
double sortedRange[2], range;
double fxt, fnt, frac;
double div, major;
......
......@@ -203,9 +203,8 @@ protected:
// Description:
// Prepare ticks on polar axis
void ComputePolarAxisTicks( vtkAxisActor* axis,
double rangeMin,
double rangeMax );
void BuildPolarAxisTicks( double rangeMin,
double rangeMax );
int LabelExponent(double min, double max );
......
Supports Markdown
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