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

More detailed testing of the newer and older scalar bar options

Change-Id: Ibf5421d5c6a2112d24ffd767efe8718aa22c20ea
parent 549c3c5a
......@@ -82,6 +82,8 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar1->GetPositionCoordinate()->SetValue(0.6, 0.1);
scalarBar1->SetHeight(0.5);
scalarBar1->SetTextPositionToPrecedeScalarBar();
scalarBar1->GetTitleTextProperty()->SetColor(0., 0., 1.);
scalarBar1->GetLabelTextProperty()->SetColor(0., 0., 1.);
scalarBar1->SetEnhancedMode(1);
scalarBar1->SetDrawFrame(1);
scalarBar1->GetFrameProperty()->SetColor(0., 0., 0.);
......@@ -98,6 +100,8 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar2->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();
scalarBar2->GetPositionCoordinate()->SetValue(0.05, 0.05);
scalarBar2->SetTextPositionToPrecedeScalarBar();
scalarBar2->GetTitleTextProperty()->SetColor(0., 0., 1.);
scalarBar2->GetLabelTextProperty()->SetColor(0., 0., 1.);
scalarBar2->SetEnhancedMode(1);
scalarBar2->SetDrawFrame(1);
scalarBar2->GetFrameProperty()->SetColor(1., 0., 0.);
......@@ -112,19 +116,23 @@ int TestScalarBar( int argc, char *argv[] )
scalarBar3->GetPositionCoordinate()->SetValue(0.8, 0.1);
scalarBar3->SetHeight(0.5);
scalarBar3->SetTextPositionToPrecedeScalarBar();
scalarBar3->GetTitleTextProperty()->SetColor(0., 0., 1.);
scalarBar3->GetLabelTextProperty()->SetColor(0., 0., 1.);
scalarBar3->SetEnhancedMode(1);
scalarBar3->SetDrawFrame(1);
scalarBar3->GetFrameProperty()->SetColor(0., 0., 0.);
scalarBar3->SetDrawBackground(0);
// Add the actors to the renderer, set the background and size
//
ren1->AddActor(outlineActor);
ren1->AddActor(scalarBar1);
ren1->AddActor(scalarBar2);
ren1->AddActor(scalarBar3);
// Add the actors to the renderer, set the background and size
//
ren1->SetBackground(0.1, 0.2, 0.4);
ren1->GradientBackgroundOn();
ren1->SetBackground(.5,.5,.5);
ren1->SetBackground2(.0,.0,.0);
renWin->SetSize(700, 500);
// render the image
......
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