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

Now testing various color options for axes lines, titles, etc.

Change-Id: Ie17eedff5826f87a9e64b90208022191815c9b7a
parent 1ad60226
......@@ -105,10 +105,16 @@ int TestCubeAxes3( int argc, char * argv [] )
axes2->SetScreenSize(15.0);
axes2->SetFlyModeToClosestTriad();
axes2->SetCornerOffset(0.0);
// Use red color for X axis
axes2->GetXAxesLinesProperty()->SetColor(1., 0., 0.);
axes2->GetTitleTextProperty(0)->SetColor(1., 0., 0.);
axes2->GetLabelTextProperty(0)->SetColor(.5, 0., 0.);
axes2->GetLabelTextProperty(0)->SetColor(.8, 0., 0.);
// Use green color for Y axis
axes2->GetYAxesLinesProperty()->SetColor(0., 1., 0.);
axes2->GetTitleTextProperty(1)->SetColor(0., 1., 0.);
axes2->GetLabelTextProperty(1)->SetColor(0., .5, 0.);
axes2->GetLabelTextProperty(1)->SetColor(0., .8, 0.);
ren2->AddViewProp(axes2.GetPointer());
renWin->Render();
......
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