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

Reorganize build label routine to make it easier to maintain

Change-Id: Ibc2ea62fd4acd74b67d3131b5dcd5148947e7061
parent 68525920
......@@ -46,6 +46,7 @@ polaxes.GetRadialAxesProperty().SetColor( .0, .0, 1. )
polaxes.GetPolarArcsProperty().SetColor( 1., .0, 0. )
polaxes.GetPolarAxisTitleTextProperty().SetColor( 1., 0., 0. )
polaxes.GetPolarAxisLabelTextProperty().SetColor( 1., 0., 0. )
polaxes.SetScreenSize( 9. )
# Create renderer
renderer = vtkRenderer()
......
......@@ -696,11 +696,6 @@ void vtkPolarAxesActor::BuildPolarAxisTicks( double x0 )
//-----------------------------------------------------------------------------
void vtkPolarAxesActor::BuildPolarAxisLabelsArcs( double* O )
{
// Calculate number of labels needed and create array for them
vtkAxisActor* axis = this->RadialAxes[0];
double deltaMajor = axis->GetDeltaMajor( VTK_AXIS_TYPE_X );
double val = axis->GetMajorStart( VTK_AXIS_TYPE_X );
// Prepare storage for polar axis labels
vtkStringArray *labels = vtkStringArray::New();
labels->SetNumberOfValues( this->NumberOfPolarAxisTicks );
......@@ -723,7 +718,9 @@ void vtkPolarAxesActor::BuildPolarAxisLabelsArcs( double* O )
polarArcsLines->Delete();
// Now create labels and polar arcs
val = axis->GetMajorRangeStart();
vtkAxisActor* axis = this->RadialAxes[0];
double deltaMajor = axis->GetDeltaMajor( VTK_AXIS_TYPE_X );
double val = axis->GetMajorRangeStart();
const char *format = this->RadialLabelFormat;
char label[64];
vtkIdType pointIdOffset = 0;
......
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