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

Fixed subtle buggy combination of axis and outer grid lines visibility

Change-Id: Ibec609233a74a5bd6eee70ae608198db75270b8d
parent 90f91f66
......@@ -1791,6 +1791,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesX[1] = 2;
this->NumberOfAxesX = 2;
this->XAxes[RenderAxesX[1]]->SetAxisVisibility(0);
this->XAxes[RenderAxesX[1]]->SetTickVisibility(0);
this->XAxes[RenderAxesX[1]]->SetLabelVisibility(0);
this->XAxes[RenderAxesX[1]]->SetTitleVisibility(0);
......@@ -1804,6 +1805,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesY[1] = 2;
this->NumberOfAxesY = 2;
this->YAxes[RenderAxesY[1]]->SetAxisVisibility(0);
this->YAxes[RenderAxesY[1]]->SetTickVisibility(0);
this->YAxes[RenderAxesY[1]]->SetLabelVisibility(0);
this->YAxes[RenderAxesY[1]]->SetTitleVisibility(0);
......@@ -1817,6 +1819,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesZ[1] = 2;
this->NumberOfAxesZ = 2;
this->ZAxes[RenderAxesZ[1]]->SetAxisVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetTickVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetLabelVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetTitleVisibility(0);
......@@ -2004,6 +2007,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesX[1] = (xloc + 2) % NUMBER_OF_ALIGNED_AXIS;
this->NumberOfAxesX = 2;
this->XAxes[RenderAxesX[1]]->SetAxisVisibility(0);
this->XAxes[RenderAxesX[1]]->SetTickVisibility(0);
this->XAxes[RenderAxesX[1]]->SetLabelVisibility(0);
this->XAxes[RenderAxesX[1]]->SetTitleVisibility(0);
......@@ -2019,6 +2023,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesY[1] = (yloc + 2) % NUMBER_OF_ALIGNED_AXIS;
this->NumberOfAxesY = 2;
this->YAxes[RenderAxesY[1]]->SetAxisVisibility(0);
this->YAxes[RenderAxesY[1]]->SetTickVisibility(0);
this->YAxes[RenderAxesY[1]]->SetLabelVisibility(0);
this->YAxes[RenderAxesY[1]]->SetTitleVisibility(0);
......@@ -2034,6 +2039,7 @@ void vtkCubeAxesActor::DetermineRenderAxes(vtkViewport *viewport)
{
this->RenderAxesZ[1] = (zloc + 2) % NUMBER_OF_ALIGNED_AXIS;
this->NumberOfAxesZ = 2;
this->ZAxes[RenderAxesX[1]]->SetAxisVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetTickVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetLabelVisibility(0);
this->ZAxes[RenderAxesZ[1]]->SetTitleVisibility(0);
......
......@@ -45,7 +45,7 @@ All rights reserve
// This class was written by:
// Hank Childs, Kathleen Bonnell, Amy Squillacote, Brad Whitlock,
// Eric Brugger, Claire Guilbaud, Nicolas Dolegieviez, Will Schroeder,
// Aashish Chaudhary, Philippe Pébay, David Gobbi, David Partyka, Utkarsh Ayachit
// Aashish Chaudhary, Philippe Pebay, David Gobbi, David Partyka, Utkarsh Ayachit
// David Cole, François Bertel, and Mark Olesen
//
//
......
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