ScalarBarActorQuestion in vtk23

Ana Cugat c1f6326 at hotmail.com
Mon Jul 19 18:20:52 EDT 1999


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


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list