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

Set a good offset for follower of polar axis

Change-Id: I33c7911fcf5ddc40dc038ee29bfdc46f7eb37574
parent dfaec7f2
......@@ -88,7 +88,7 @@ int TestPolarAxes( int argc, char * argv [] )
polaxes->SetCamera( renderer->GetActiveCamera() );
polaxes->SetRadialLabelFormat( "%6.1f" );
polaxes->GetRadialAxesProperty()->SetColor( .0, .0, .9 );
polaxes->SetScreenSize( 12.0 );
//polaxes->SetScreenSize( 12.0 );
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples( 0 );
......
......@@ -145,6 +145,11 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
// Pass information to axes followers
vtkAxisFollower* follower = axis->GetTitleActor();
follower->SetAxis( axis );
if ( ! i )
{
// Rewrite default screen offset for polar axis only
follower->SetScreenOffset( this->LabelScreenOffset + this->ScreenSize * 0.5 );
}
}
// Properties of the radial axes
......
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