ScalarBarActorQuestion in vtk23
Ana Cugat
c1f6326 at hotmail.com
Thu Oct 14 19:40:38 EDT 1999
<x-flowed>
Hi, I've got new problems with vtkScalarBarActor,
actually I was using this class in a 3D render window with no problem, but
I've added three image viewers to see three cuts on a volume and I use a Tk
Checkbutton to display and delete the three windows. It just does pack and
pack forget respectively (and the three windows do not use neither the
scalar bar (which is rendered in the 3d window) nor the lut that is used for
the scalar bar). Well, the scalar bar looks well when I "unpack" the 3 image
viewers and it turns to black when I "pack" them, and so on. I have debugged
the scalar bar actor, the lut, etc and i see no changes in their scalar
range, modified time, properties, etc...
Can anybody help me?
Thanks,
Ana
>From: "Ana Cugat" <c1f6326 at hotmail.com>
>To: pushkare at students.uiuc.edu, c1f6326 at hotmail.com
>CC: vtkusers at gsao.med.ge.com
>Subject: Re: ScalarBarActorQuestion in vtk23
>Date: Mon, 19 Jul 1999 18:20:52 CEST
>
>
>Hi,
>
>I've solved my problem so if it can help somebody ...
>
>Actually my gui sometimes rendered the scalarbarActor before it rendered
>the actor that the bar refers to. I've noticed that the lookuptable doesn't
>get the scalar range of the mapper until the actor is rendered, so when I
>tried to render the barActor before the actor the range of the bar went
>from 0 to 1 and it was all black. Instead if I change the range of the lut
>before rendering the barActor the range works fine and the colors appear.
>Another tricky thing is that if you change the range of the lut you need to
>call a Modified() of the barActor to get the bar actualized.
>
>Ana
>
>
>
>>From: "Gala'Vi and Liss @ Mainframe Country" <pushkare at students.uiuc.edu>
>>To: Ana Cugat <c1f6326 at hotmail.com>
>>CC: vtkusers at gsao.med.ge.com
>>Subject: Re: ScalarBarActorQuestion in vtk23
>>Date: Fri, 16 Jul 1999 09:16:06 -0500 (CDT)
>>
>>
>>The scalarbaractor turns black and the range goes from 0 to 1 also if you
>>render with a texture. Which is really annoying, because I'm doing texture
>>thresholding and the bar comes up black. If you resize the window however,
>>it comes up normal and stays normal.
>>
>>I would suggest trying to resize the window and if that doesn't help,
>>issue another renWin->Render() call. This makes the bar update itself and
>>then it works. So where you say renWin->Render(), just duplicate that
>>line. I can't use that method myself, because I'm using FLTK to handle my
>>interfaces, but if you use TCL/TK you should be able to get away with
>>that. I'm really beginning to hate that scalar bar though.
>>
>>Good luck.
>>Gala'Vi
>>NCSA, UIUC
>>
>>//***********************************************
>> -- There is always a way,
>> you just have to find it.
>> (B.Hambly "Children Of The Jedi")
>>//***********************************************
>>
>>On Fri, 16 Jul 1999, Ana Cugat wrote:
>>
>> >
>> > Another problem with ScalarBarActor, with vtk works fine, but when I do
>>the
>> > same with a TkRenderWidget, the scalarbaractor is all black and the
>>range
>> > goes from 0 to 1.
>> >
>> > Any hints?
>> >
>> > TIA,
>> >
>> > Ana
>> >
>> >
>> > ______________________________________________________
>> > Get Your Private, Free Email at http://www.hotmail.com
>> >
>> >
>> >
>>-----------------------------------------------------------------------------
>> > This is the private VTK discussion list. Please keep messages
>>on-topic.
>> > Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
>> > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
>> > <majordomo at gsao.med.ge.com>. For help, send message body containing
>> > "info vtkusers" to the same address. Live long and prosper.
>> >
>>-----------------------------------------------------------------------------
>> >
>>
>>
>>
>>-----------------------------------------------------------------------------
>>This is the private VTK discussion list. Please keep messages on-topic.
>>Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
>>To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
>><majordomo at gsao.med.ge.com>. For help, send message body containing
>>"info vtkusers" to the same address. Live long and prosper.
>>-----------------------------------------------------------------------------
>>
>
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
</x-flowed>
More information about the vtkusers
mailing list