[vtkusers] vtkBalloonWidget renders behind vtkScalarBarActor

Gerrick Bivins gbivins at objectreservoir.com
Wed Nov 19 15:07:40 EST 2008


I've got it working now. The interface is in vtkActor2D (SetLayerNumber).
Thanks for the help.
Gerrick

Gerrick Bivins wrote:
> 
> Hi Karthik,
>  
> I understand the 2D actor situation but I'm unfamiliar with what you mean
> by
> "layers"? I see there is an interface for setting the layer of the
> renderer but if I use this, it looks like I'd also have to create a
> separate renderer or am I reading this wrong?
> http://www.vtk.org/doc/release/5.2/html/a01187.html#5621b2f66530f887d930ac21860f963e
> Gerrick
> 
> 
> Karthik Krishnan-2 wrote:
>> 
>> Both the scalar bar actor and the balloon are actor2D's and
>> have no depth information. ie, they are rendered on the
>> overlay plane. The only thing controlling who is on top is the
>> order in which the props are added to the renderer.
>> 
>> Two solutions.
>> 
>> 1. Bad one. Enable the balloon widget after the scalar bar
>> 
>> 2. Good one. Add the two to different layers. Props in different
>> layers are composited one after another.
>> 
>> On Tue, Nov 18, 2008 at 4:33 PM, Gerrick Bivins
>> <gbivins at objectreservoir.com
>>> wrote:
>> 
>>>
>>> Hi All,
>>> I've attached a vtkBalloonWidget to vtkScalarBarActor and it appears
>>> when I
>>> hover over the scalar bar BUT it renders behind the scalar bar (see
>>> attached). Is there a  way to specify the ordering so taht the balloon
>>> widget renders on top (last).
>>> Gerrick
>>> http://www.nabble.com/file/p20568685/balloonBehind2.jpg
>>> balloonBehind2.jpg
>>> http://www.nabble.com/file/p20568685/balloonBehindScalarBar.jpg
>>> balloonBehindScalarBar.jpg
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/vtkBalloonWidget-renders-behind-vtkScalarBarActor-tp20568685p20568685.html
>>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list.
>>> Please keep messages on-topic. Check the FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>> 
>> 
>> 
>> -- 
>> Karthik Krishnan
>> R&D Engineer,
>> Kitware Inc.
>> Ph: 518 371 3971 x119
>> Fax: 518 371 3971
>> 
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/vtkBalloonWidget-renders-behind-vtkScalarBarActor-tp20568685p20588174.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list