[vtkusers] set caption leader color?

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Aug 15 21:34:48 EDT 2012


Just to avoid further confusion, could you clarify what is a leader
you are talking about.
If it is part of vtkAxesActor , my advice below is correct.

Alex

On Wed, Aug 15, 2012 at 6:29 PM, Alex Malyushytskyy
<alexmalvtk at gmail.com> wrote:
> I misread, but if you want to setup color for "leader",
> I assume you are talking about something like vtkAxesActor
>
> In this case you can do it as
>
>
>         axesActor->GetXAxisShaftProperty ()->SetColor (0, 0, 0);
>
> // tip is a 'leader"
>         axesActor->GetXAxisTipProperty ()->SetColor (0, 0, 0);
>
>
>
> Hope this helps.
>
>
> Alex
>
>
> On Wed, Aug 15, 2012 at 5:40 PM, Maxwell, Thomas P.
> (GSFC-606.2)[SCIENCE SYSTEMS AND APPLICATIONS INC]
> <thomas.maxwell at nasa.gov> wrote:
>> Thanks, Alex, but I tried this and it only sets the properties of the
>> caption text- it does not affect the border and the leader.   I also tried
>> setting the attributes of the BorderProperty associated with the
>> vtkCaptionRepresentation, but that seems to have no effect.
>>
>> -- Tom
>>
>>
>>
>> On 8/15/12 7:25 PM, "Alex Malyushytskyy" <alexmalvtk at gmail.com> wrote:
>>
>>>    vtkSmartPointer<vtkTextProperty> textprop =
>>>vtkSmartPointer<vtkTextProperty>::New();
>>>       textprop->BoldOff();
>>>       textprop->SetFontSize( 18 );
>>>       textprop->SetFontFamilyToTimes();
>>>       textprop->SetColor(0, 0, 0);
>>>
>>>aptionActor2D()->SetCaptionTextProperty( textprop );
>>>
>>



More information about the vtkusers mailing list