Commit ad400b22 authored by Brian Wylie's avatar Brian Wylie

COMP: Put in, admittedly, a bit of a hack to get circular glyphs to be properly sized.

parent abe8bc46
......@@ -88,7 +88,7 @@
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.22");
vtkCxxRevisionMacro(vtkRenderedGraphRepresentation, "1.23");
vtkStandardNewMacro(vtkRenderedGraphRepresentation);
vtkRenderedGraphRepresentation::vtkRenderedGraphRepresentation()
......@@ -1309,6 +1309,13 @@ void vtkRenderedGraphRepresentation::ApplyViewTheme(vtkViewTheme* theme)
this->VertexTextProperty->SetColor(theme->GetVertexLabelColor());
this->VertexTextProperty->SetLineOffset(-2*baseSize);
this->EdgeTextProperty->SetColor(theme->GetEdgeLabelColor());
// Moronic hack.. the circles seem to be really small so make them bigger
if (this->VertexGlyph->GetGlyphType() == vtkGraphToGlyphs::CIRCLE)
{
this->VertexGlyph->SetScreenSize(baseSize*2+1);
this->OutlineGlyph->SetScreenSize(baseSize*2+1);
}
}
//----------------------------------------------------------------------------
......
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