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

Better default color scheme. The test now experiments with uglier colors.

Change-Id: Ic9c8ddf8edf52c7e2133f97d1578c946139dcb0a
parent bddc1f0e
......@@ -86,10 +86,11 @@ int TestPolarAxes( int argc, char * argv [] )
polaxes->SetNumberOfRadialAxes( 7 );
polaxes->SetCamera( renderer->GetActiveCamera() );
polaxes->SetRadialLabelFormat( "%6.1f" );
polaxes->GetRadialAxesProperty()->SetColor( .0, .0, .9 );
polaxes->SetScreenSize( 12.0 );
polaxes->GetPolarAxisTitleTextProperty()->SetColor( .9, 0., 0. );
polaxes->GetPolarAxisLabelTextProperty()->SetColor( .9, 0., 0. );
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( 11.0 );
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples( 0 );
......
......@@ -142,15 +142,16 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
// hence ( this->ScreenSize * 0.5 ).
this->LabelScreenOffset = 20.0 + this->ScreenSize * 0.5;
// Properties of the radial axes
// Properties of the radial axes, with default color black
this->RadialAxesProperty = vtkProperty::New();
this->RadialAxesProperty->SetColor( 0., 0., 0. );
// Text properties of polar axis title and labels, with default red color
// Text properties of polar axis title and labels, with default color white
this->PolarAxisTitleTextProperty = vtkTextProperty::New();
this->PolarAxisTitleTextProperty->SetColor( 1., 0. ,0. );
this->PolarAxisTitleTextProperty->SetColor( 1., 1. ,1. );
this->PolarAxisTitleTextProperty->SetFontFamilyToArial();
this->PolarAxisLabelTextProperty = vtkTextProperty::New();
this->PolarAxisLabelTextProperty->SetColor( .8, 0. ,0. );
this->PolarAxisLabelTextProperty->SetColor( 1., 1. ,1. );
this->PolarAxisLabelTextProperty->SetFontFamilyToArial();
// Create and set radial axes
......@@ -179,13 +180,13 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
// Default tick location, defined in vtkAxisActor
this->TickLocation = VTK_TICKS_BOTH;
// Create and set polar arcs and ancillary objects
// Create and set polar arcs and ancillary objects, with default color white
this->PolarArcs = vtkPolyData::New();
this->PolarArcsMapper = vtkPolyDataMapper::New();
this->PolarArcsMapper->SetInput( this->PolarArcs );
this->PolarArcsActor = vtkActor::New();
this->PolarArcsActor->SetMapper( this->PolarArcsMapper );
this->PolarArcsActor->GetProperty()->SetColor( 1., 0., 0. );
this->PolarArcsActor->GetProperty()->SetColor( 1., 1., 1. );
// By default all features are visible
this->RadialAxesVisibility = 1;
......
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