[vtkusers] text font color of a ScalarBarActor
Seungbum Koo
koosb at stanford.edu
Thu Mar 21 17:22:36 EST 2002
Hi,
In my case, "m_pBarActor->GetProperty()->SetColor(1, 1, 1)" worked fine.
I attach my source code,
m_pBarActor =
vtkScalarBarActor::New(); // --------- On
m_pBarActor->SetLookupTable(m_pMapper->GetLookupTable());
m_pBarActor->GetProperty()->SetColor(1, 1, 1); //
<-------------------------------------
m_pBarActor->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();
m_pBarActor->GetPositionCoordinate()->SetValue(0.1, 0.1);
m_pBarActor->SetOrientationToHorizontal();
m_pBarActor->SetNumberOfLabels(11);
m_pBarActor->SetFontFamilyToArial();
m_pBarActor->SetTitle("Cartilage Thickness Color Map (cm)");
m_pBarActor->SetWidth(0.80);
m_pBarActor->SetHeight(0.125);
m_pBarActor->ItalicOff();
m_pBarActor->BoldOff();
m_pBarActor->ShadowOff();
m_pBarActor->SetMaximumNumberOfColors(100);
m_pBarActor->SetLabelFormat("%4.2g");
At 04:24 ¿ÀÈÄ 2002-03-21 -0500, Eric Chamberland wrote:
>Hi,
>
>we tried "actor->GetProperty()->SetColor(-,-,-)" but it doesn't work?
>Anyone successfull with changing the text color of a ScalarBarActor?
>
>Thanks,
>
>Eric
>
>On Jul 17, 3:42pm, Tian-Qing Ye wrote:
> > Subject: [vtkusers] text font color of a ScalarBarActor
> > Hi there,
> >
> > I posted this message a few days ago, but I haven't seen it
> > coming cross the list, so I post it again.
> >
> > Question:
> > How to change the text font color of a ScalarBarActor?
> > It seems that the default is white. But when I have
> > a white background, then the text is not readable.
> >
>
>
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list