[vtkusers] vtkCaptionActor2D text orientation

Philip Schuchardt ohc at vt.edu
Tue Apr 3 18:28:34 EDT 2007


You could do this if vtk supported transformation of 2D actors but I don't 
think is support it.  Probably your best option(but most painful) is to write 
your own text actor class.

On Monday 02 April 2007 10:32 am, you wrote:
> I agree with your opinion Phillip, but your reply doesn't answer my
> question... I was not asking for performance, I'm using 2D text actors and
> I want to change their orientation... I want to know if this is possible
>
> On 3/30/07, Philip Schuchardt <ohc at vt.edu> wrote:
> > My experience with the caption actors that is that they fairly limited
> > and annoying because the text changes size with different lengths.  I
> > feel that
> > the vtkTextActor's are fairly slow because of anti-aliasing(In 5.0 you
> > can't
> > turn anti-aliasing off :( ).  If you try to add lots of text actors,
> > preformace will drop considerably.
> >
> > Philip Schuchardt
> >
> > On Thursday 29 March 2007 7:36 am, Jesús Spí­nola wrote:
> > > Hi,
> > >
> > > I'm using vtkCaptionActor2D to make annotations over images with
> > > vtkImageViewer2. Sometimes is needed to make this annotations with a
> > > different orientation rather than the usual "Left to Right" way, for
> > > example upside-down in right to left way, or vertically in bottom to up
> >
> > way
> >
> > > or viceversa.
> > >
> > > I figured this can be done getting the vtkTextProperty and then setting
> >
> > the
> >
> > > orientation with the SetOrientation method. The fact is the text is
> >
> > always
> >
> > > displayed in the usual left-to-right way. I've tried with 0, 90, 180
> > > and 270 degrees and it always displays with the same orientation.
> > >
> > > Do I have to take into account another parameters to show the text in
> >
> > the
> >
> > > desired orientation? How can I achieve this?
> > >
> > > Thanks in advance!
> >
> > _______________________________________________
> > 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



More information about the vtkusers mailing list