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

Testing all gridlines together with axis lines of various colors

Change-Id: I7284d59a7a6ac3742596a1a15656fa1dde88d652
parent c7652d88
......@@ -82,7 +82,7 @@ int TestCubeAxes3( int argc, char * argv [] )
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples(0);
renWin->AddRenderer(ren2.GetPointer());
renWin->SetWindowName("VTK - Cube Axes custom range");
renWin->SetWindowName("Cube Axes");
renWin->SetSize(600, 600);
vtkNew<vtkRenderWindowInteractor> iren;
......
/*=========================================================================
Program: Visualization Toolkit
Module: TestCubeAxes3.cxx
Module: TestCubeAxesWithGridlines.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
......@@ -109,21 +109,26 @@ int TestCubeAxesWithGridLines( int argc, char * argv [] )
axes2->SetDrawYGridlines(1);
axes2->SetDrawZGridlines(1);
// Use red color for X gridlines, title, and labels
axes2->GetXAxesGridlinesProperty()->SetColor(1., 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(1., 0., 0.);
// Use green color for Y gridlines, title, and labels
axes2->GetYAxesGridlinesProperty()->SetColor(0., 1., 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., 1., 0.);
// Use blue color for Z gridlines, title, and labels
axes2->GetZAxesGridlinesProperty()->SetColor(0., 0., 1.);
// Use blue color for Z axis
axes2->GetZAxesLinesProperty()->SetColor(0., 0., 1.);
axes2->GetTitleTextProperty(2)->SetColor(0., 0., 1.);
axes2->GetLabelTextProperty(2)->SetColor(0., 0., 1.);
// Use olive color for gridlines
axes2->GetXAxesGridlinesProperty()->SetColor(.23, .37, .17);
axes2->GetYAxesGridlinesProperty()->SetColor(.23, .37, .17);
axes2->GetZAxesGridlinesProperty()->SetColor(.23, .37, .17);
ren2->AddViewProp(axes2.GetPointer());
renWin->Render();
......
......@@ -77,7 +77,7 @@ int TestCubeAxesWithXLines( int argc, char * argv [] )
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples(0);
renWin->AddRenderer(ren2.GetPointer());
renWin->SetWindowName("Cube Axes with Outer Grid Lines");
renWin->SetWindowName("Cube Axes with Outer X Grid Lines");
renWin->SetSize(600, 600);
renWin->SetMultiSamples(0);
......
......@@ -77,7 +77,7 @@ int TestCubeAxesWithYLines( int argc, char * argv [] )
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples(0);
renWin->AddRenderer(ren2.GetPointer());
renWin->SetWindowName("Cube Axes with Outer Grid Lines");
renWin->SetWindowName("Cube Axes with Outer Y Grid Lines");
renWin->SetSize(600, 600);
renWin->SetMultiSamples(0);
......
......@@ -77,7 +77,7 @@ int TestCubeAxesWithZLines( int argc, char * argv [] )
vtkNew<vtkRenderWindow> renWin;
renWin->SetMultiSamples(0);
renWin->AddRenderer(ren2.GetPointer());
renWin->SetWindowName("Cube Axes with Outer Grid Lines");
renWin->SetWindowName("Cube Axes with Z Outer Grid Lines");
renWin->SetSize(600, 600);
renWin->SetMultiSamples(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