[vtkusers] The vtkVectorText's Problem
huangz2350
huangz2350 at 163.com
Fri Dec 7 05:02:01 EST 2012
Hi All
Thanks for yours help, I am inspired by yours idea.
I have some preliminary thoughts based on your recommendations. I hope your can give me more good ideas. Thanks
Before explanation My demands:
I want Insert on a vtkImageActor(e.g:a Jpeg Reader's actor),When I pick,ZoomIn,ZoomOut and pan,they(vtkImageActor and Insert's Texture) can be responsed.
My thinking Solve's Way:
1. Use vtkTextWitgets: The Class can chang size and move,But it is a 2D-Object(vtkTextActor 's subClass), it can't be response to ZoomIn,ZoomOut and pan ,So I want create a callback for mouseWheel Event By interactorStyle.Is this way feasible?
2. According to Dave recommendations to use vtkTextActor3D:I used it before,but it seems to be a experimental Class.What questions do use?
Can it respond to pick,ZoomIn,ZoomOut and pan? I tried it ,it seem can't be picked(I use vtkCellPicker).
I wonder if you have any good suggestions, give me some inspiration.
I wish yours good idea.
Thanks again.
From: Najzero [via VTK]
Date: 2012-12-06 15:58
To: huangz2350
Subject: Re: Re:Re: The vtkVectorText's Problem
Hello again,
sorry to hear, and this is a difficult topic.
Whenever someone asks about the vtkVectorText there are rarely answers on the mailing list and I believe not very many programmers are using the vtkVectorText class.
This might be due the fact that they simply display the textual information on the rest of the gui and not within the 3d/widget/windows itself.
The only way I could imagine you can get this 3d results would be using the vector text but supplying the glyphs yourself.
This will require alot of effort, since you would need to use a 3rd Party libary to generate the glyphs/points/vectors on the fly ( e.g. http://www.njph.f2s.com/dxfontutils/ ).
This is really brute force and depending on how often you change the look of the font itself very slow.
I am too very interested on how vtk volks display the kind of text you require for your program.
Because the given class is very limited (it only supports ascii codes from 31 to 126 in default ;-) )
Best regards
Adrian
If you reply to this email, your message will be added to the discussion below:
http://vtk.1045678.n5.nabble.com/The-vtkVectorText-s-Problem-tp5717427p5717452.html
To unsubscribe from The vtkVectorText's Problem, click here.
NAML
--
View this message in context: http://vtk.1045678.n5.nabble.com/The-vtkVectorText-s-Problem-tp5717427p5717479.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121207/81f17845/attachment-0001.htm>
More information about the vtkusers
mailing list