Commit 92b00695 authored by Dave Partyka's avatar Dave Partyka
Browse files

BUG: merge visibility fixes for the Box Widget from Yumin.

parent 92df7f1c
......@@ -542,8 +542,14 @@ int BoxWidget2( int , char *[] )
// testing option fails.
recorder->Off();
iren->Start();
boxRep->SetPlaceFactor( 1.0 );
boxRep->HandlesOff();
boxRep->SetPlaceFactor( 1.25 );
boxRep->HandlesOn();
iren->Start();
// Clean up
recorder->Off();
......
......@@ -38,7 +38,7 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkBoxRepresentation, "1.9");
vtkCxxRevisionMacro(vtkBoxRepresentation, "1.9.2.1");
vtkStandardNewMacro(vtkBoxRepresentation);
//----------------------------------------------------------------------------
......@@ -1102,7 +1102,10 @@ int vtkBoxRepresentation::RenderOpaqueGeometry(vtkViewport *v)
// render the handles
for (int j=0; j<7; j++)
{
count += this->Handle[j]->RenderOpaqueGeometry(v);
if(this->Handle[j]->GetVisibility())
{
count += this->Handle[j]->RenderOpaqueGeometry(v);
}
}
return count;
......@@ -1120,7 +1123,10 @@ int vtkBoxRepresentation::RenderTranslucentPolygonalGeometry(vtkViewport *v)
// render the handles
for (int j=0; j<7; j++)
{
count += this->Handle[j]->RenderTranslucentPolygonalGeometry(v);
if(this->Handle[j]->GetVisibility())
{
count += this->Handle[j]->RenderTranslucentPolygonalGeometry(v);
}
}
return count;
......
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