Commit 1fa2f836 authored by Brian Wylie's avatar Brian Wylie

ENH: Temporary hack for fixing the outline when the point opacity is zero.

  // FIXME: This is a strange hack to get around some weirdness with
  // the gradient background and multiple transparent actors (assuming
  // related to depth peeling or some junk...)
  if (theme->GetPointOpacity() == 0)
    {
    this->OutlineActor->VisibilityOff();
    }
parent 3adb2b88
......@@ -87,7 +87,7 @@
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.19");
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.20");
vtkStandardNewMacro(vtkRenderedGraphRepresentation);
vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation()
......@@ -1294,6 +1294,14 @@ void vtkRenderedGraphRepresentation::ApplyViewTheme(vtkViewTheme* theme)
this->OutlineActor->GetProperty()->SetColor(theme->GetOutlineColor());
// FIXME: This is a strange hack to get around some weirdness with
// the gradient background and multiple transparent actors (assuming
// related to depth peeling or some junk...)
if (theme->GetPointOpacity() == 0)
{
this->OutlineActor->VisibilityOff();
}
this->VertexTextProperty->SetColor(theme->GetVertexLabelColor());
this->VertexTextProperty->SetLineOffset(-2*baseSize);
this->EdgeTextProperty->SetColor(theme->GetEdgeLabelColor());
......
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