[vtkusers] Re: vtkusers Digest, Vol 8, Issue 41
fengfenghsy
fengfenghsy at 163.com
Tue Dec 21 05:48:05 EST 2004
>Send vtkusers mailing list submissions to
> vtkusers at vtk.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://www.vtk.org/mailman/listinfo/vtkusers
>or, via email, send a message with subject or body 'help' to
> vtkusers-request at vtk.org
>
>You can reach the person managing the list at
> vtkusers-owner at vtk.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of vtkusers digest..."
>
>
>Today's Topics:
>
> 1. Problems running a vtk-application using vtk42 - native
> method error (Diana Iliescu)
> 2. TCL Script for reading multiple files. (Andrew Maclean)
> 3. Re: TCL Script for reading multiple files. (H.Vidal, Jr.)
> 4. execute error after building the vtkmfc program (siyan liu)
> 5. Help me (chen hongwei)
> 6. help me (join)
> 7. Re: (no subject) (Goodwin Lawlor)
> 8. Re: vtkVolumeTextureMapper2D (Julien BARNEOUD)
> 9. QVTKRenderWindowInteractor and key events (Patrick Brockmann)
> 10. Re: Re: vtkVolumeTextureMapper2D (Lisa Avila)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sun, 19 Dec 2004 20:38:24 +0200
>From: Diana Iliescu <diady at email.ro>
>Subject: [vtkusers] Problems running a vtk-application using vtk42 -
> native method error
>To: vtkusers at vtk.org
>Message-ID: <200412191838.iBJIcOP27861 at zerg.astral.ro>
>
>
>Hi,
>I'm trying to run an application using vtk42 and jdk1.5.0. The problem is that
>I always get an error regarding native methods. For example:
>
>Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError:
>RenderCreate
> at vtkPanel.RenderCreate(Native Method)
> at vtkPanel.access$8(vtkPanel.java:98)
> at vtkPanel$1.run(vtkPanel.java:122)
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
>Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>I saw that I'm not the only vtk-user that has this problem...Is there anyone
>who has a solution???????
>Tank you,
>Diana.
>
>_________________________________
>Noile abonamente Astral OnLine
>256 kbps ; 12 USD/luna
>http://www.astral.ro
>
>
>------------------------------
>
>Message: 2
>Date: Mon, 20 Dec 2004 08:39:11 +1100
>From: "Andrew Maclean" <a.maclean at cas.edu.au>
>Subject: [vtkusers] TCL Script for reading multiple files.
>To: "'vtkusers'" <vtkusers at public.kitware.com>
>Message-ID: <200412192139.iBJLdIxQ015971 at lorica.ucc.usyd.edu.au>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Does anyone have a TCL/TK script for a dialog that allows the user to select
>multiple files? Or alternatively one that allows one to select a sequence of
>files according to some pattern? I basically want something like that in the
>image readers eg. vtkImageReader2 where you can specify a file prefix and a
>file pattern.
>
>Are they willing to share it?
>
>
>Thanks
> Andrew
>
>___________________________________________
>Andrew J. P. Maclean
>Centre for Autonomous Systems
>The Rose Street Building J04
>The University of Sydney?2006?NSW
>AUSTRALIA
>Ph: +61 2 9351 3283
>Fax: +61 2 9351 7474
>URL: http://www.cas.edu.au/
>___________________________________________
>
>
>
>
>------------------------------
>
>Message: 3
>Date: Sun, 19 Dec 2004 18:53:21 -0500
>From: "H.Vidal, Jr." <hvidal at tesseract-tech.com>
>Subject: Re: [vtkusers] TCL Script for reading multiple files.
>To: Andrew Maclean <a.maclean at cas.edu.au>
>Cc: 'vtkusers' <vtkusers at public.kitware.com>
>Message-ID: <41C61471.7000309 at tesseract-tech.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>According to the docs on www.tcl.tk, the tk_getOpenFile tk widget
>supports a -multiple option as of v.8.3.5; this will allow an operator
>to select multiple files.
>
>So the code is: (drum roll, please....)
>
>tk_getOpenFile -multiple
>
>I have 8.3.3 installed, and I don't think this option is supported in this
>version. Let me know how it works out.
>
>hv
>
>Andrew Maclean wrote:
>> Does anyone have a TCL/TK script for a dialog that allows the user to select
>> multiple files? Or alternatively one that allows one to select a sequence of
>> files according to some pattern? I basically want something like that in the
>> image readers eg. vtkImageReader2 where you can specify a file prefix and a
>> file pattern.
>>
>> Are they willing to share it?
>>
>>
>> Thanks
>> Andrew
>>
>> ___________________________________________
>> Andrew J. P. Maclean
>> Centre for Autonomous Systems
>> The Rose Street Building J04
>> The University of Sydney 2006 NSW
>> AUSTRALIA
>> Ph: +61 2 9351 3283
>> Fax: +61 2 9351 7474
>> URL: http://www.cas.edu.au/
>> ___________________________________________
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
>
>------------------------------
>
>Message: 4
>Date: Mon, 20 Dec 2004 09:13:26 +0800
>From: "siyan liu" <cncadcam at 163.com>
>Subject: [vtkusers] execute error after building the vtkmfc program
>To: "vtkusers" <vtkusers at vtk.org>
>Message-ID: <20041220011418.B11091B9F3 at public.kitware.com>
>Content-Type: text/plain; charset="gb2312"
>
>Hi,all:
> I try to write a vtkmfc MDI program according to the Instruction in the vtkmfc example directory, I built the program successfully, But I met the same problem when I built with cmake and the original code:
> debug error:
> program: (my code directory)\vtksdi.exe
> module:
> file:i386\chkesp.c
> line:42
> The value of ESP was not properly saved across a function call.This is usually a result of calling a function declared with one calling convention with a function pointer declared with a diffenrent calling convention.
>
> How I wish I can built and run the program, is there some one can help me, thanks a lot!
>
>
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡siyan liu
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡cncadcam at 163.com
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-12-20
>
>------------------------------
>
>Message: 5
>Date: Sun, 19 Dec 2004 19:08:52 -0800
>From: chen hongwei <szjoin at gmail.com>
>Subject: [vtkusers] Help me
>To: vtkusers at vtk.org
>Message-ID: <f314ecc2041219190843bb09dc at mail.gmail.com>
>Content-Type: text/plain; charset=US-ASCII
>
>everybody
> Nice to meet you ,I have a problem to need your help ,i
>have some Array of point which is consist of circularity volume
>,now i'd like to create 3d ,but i don't know
>How to do it . if you have good idear Can you tell me ? thank you .
>
>
>best regard !
>join
>szjoin at gmail.com
>
>
>------------------------------
>
>Message: 6
>Date: Mon, 20 Dec 2004 11:45:16 -0800
>From: "join" <cw1982519 at msn.com>
>Subject: [vtkusers] help me
>To: "vtkusers" <vtkusers at vtk.org>
>Message-ID: <BAY5-DAV153399A4B5F73AC975F0D5EEA20 at phx.gbl>
>Content-Type: text/plain; charset="gb2312"
>
>everybody
> Nice to meet you ,I have a problem to need your help ,i
>have some Array of point which is consist of circularity volume
>,now i'd like to create 3d ,but i don't know
>How to do it . if you have good idear Can you tell me ? thank you .
>
>best regard!
>
>
>szjoin at gmail.com
>cw1982519 at msn.com
>
>
>
>
>------------------------------
Hi Goodwin
Really thanks a lot about your help, and I have patched my vtkInteractorStyleTrackballCamera.h and .cxx files
Although I have patch the vtkInteractorStyleTrackballCamera , I still cannot find the function MousePickingOn, and now my biggest problem is how to use the AddObserver in Visual C++ under MFC setting.
fengfenghsy
>Message: 7
>Date: Mon, 20 Dec 2004 11:30:20 -0000
>From: "Goodwin Lawlor" <goodwin.lawlor at ucd.ie>
>Subject: [vtkusers] Re: (no subject)
>To: vtkusers at public.kitware.com
>Message-ID: <cq6d4c$gp1$1 at sea.gmane.org>
>
>Hi fengfenfhsy,
>
>There are some patches for vtkInteractorStyleTrackballCamera here:
>http://www.vtk.org/Bug/bug.php?op=show&bugid=1054&pos=3
>
>that will allow what you want in C++.
>
>Call:
>style->MousePickingOn();
>
>to get it enabled.
>
>hth
>
>Goodwin
>
>"fengfenghsy" <fengfenghsy at 163.com> wrote in message
>news:20041218185210.CBC9134535 at public.kitware.com...
>> Hello everyone!
>> I have met a problem, which has bothered me for nearly 20 days.
>> First look at the following code which used Tcl/Tk:
>>
>> ##########################################
>> vtkInteractorStyleTrackballCamera style
>> style AddObserver LeftButtonPressEvent {set MouseMotion 0; style
>OnLeftButtonDown}
>> style AddObserver MouseMoveEvent {set MouseMotion 1; style
>OnMouseMove}
>>
>> vtkRenderer ren1
>> vtkRenderWindow renWin
>> renWin AddRenderer ren1
>> vtkRenderWindowInteractor iren
>> iren SetRenderWindow renWin
>> iren SetInteractorStyle style
>> ##########################################
>>
>> vtkInteractorStyleTrackballCamera allows the user to interactively
>manipulate (rotate, pan, etc.) the camera, the viewpoint of the scene. In
>trackball interaction, the magnitude of the mouse motion is proportional to
>the camera motion associated with a particular mouse binding. For example,
>small left-button motions cause small changes in the rotation of the camera
>around its focal point. For a 3-button mouse, the left button is for
>rotation, the right button for zooming, the middle button for panning, and
>ctrl + left button for spinning. (With fewer mouse buttons, ctrl + shift +
>left button is for zooming, and shift + left button is for panning.)
>>
>> style AddObserver LeftButtonPressEvent {set MouseMotion 0; style
>OnLeftButtonDown}
>>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>~~~~~~~this function could set the variable MouseMotion to 0, and also keep
>the old LeftButtonDownPress style.
>>
>> However if I use the function AddObserver in Visual C++. It`s easy to
>set the variable MouseMotion to 0, but hard to keep the OnleftButtonDown
>function working. The other two AddObserver function also have the same
>problem.
>>
>> Could someone help me about this problem. Really thank you!
>>
>> sincerealy
>>
>> fengfenghsy
>> fengfenghsy at 163.com
>> 2004-12-19
>>
>
>
>----------------------------------------------------------------------------
>----
>
>
>> _______________________________________________
>> 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
>>
>
>
>
>
>
>------------------------------
>
>Message: 8
>Date: Mon, 20 Dec 2004 13:45:19 +0100
>From: "Julien BARNEOUD" <j_barneoud at trophy.fr>
>Subject: [vtkusers] Re: vtkVolumeTextureMapper2D
>To: vtkusers at public.kitware.com
>Message-ID: <cq6hg0$sn0$1 at sea.gmane.org>
>
>Hi All,
>
>Is there anybody who could help me, or should I add some missing information
>to my first email?
>
>Thanks,
>
>Julien
>"Julien BARNEOUD" <j_barneoud at trophy.fr> a écrit dans le message de
>news:cps3us$omr$1 at sea.gmane.org...
>> Hi all,
>>
>> I am comparing quality and performance of the the different volume mapper
>> (ray casting and texture ones) and I have slower result with the texture
>> mapper.
>>
>> My configuration is a PIV 2.66 Mhz, with 1 GO RAM and an NVIDIA Geforce
>6800
>> GT graphic board.
>>
>> The dataset I am trying to render is made of 289 * 289 * 399 grayscale
>> voxels with 12 bits depht.
>>
>> I am surprized because the texture render is very slow (i.e. it is
>difficult
>> to interact with the volume), and the graphic board has 256 Mo of Vdieo
>RAM,
>> so my entire dataset should be loaded and handled by the GeForce...
>>
>> I have tried to reduce the volume size using vtkExtractROI, I get
>something
>> faster, but not really usable.
>>
>> Is there any attention to pay to the volume size: a 256*256*512 volume
>would
>> be easier to fit texture memory as it is aligned on a power of 2? Should
>I
>> shift the data to be on 8 bits ? Anything else ?
>>
>> Thanks in advance for your help,
>>
>> Regards,
>>
>> Julien BARNEOUD
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
>
>
>------------------------------
>
>Message: 9
>Date: Mon, 20 Dec 2004 16:08:59 +0100
>From: Patrick Brockmann <Patrick.Brockmann at cea.fr>
>Subject: [vtkusers] QVTKRenderWindowInteractor and key events
>To: vtkusers at public.kitware.com
>Message-ID: <41C6EB0B.70402 at cea.fr>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Hi all,
>
>I have noticed that with the QVTKRenderWindowInteractor class,
>a keypress is always detected in UPPERCASE not in lowercase.
>
> >>> from vtk.qt.QVTKRenderWindowInteractor import *
> >>> QVTKRenderWidgetConeExample()
>
>When press "c" for exemple, "C" is detected.
>I have corrected this by a small change to the
>VTK-4.4/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py file.
>
>Line 281:
> if ev.key() < 256:
> key = chr(ev.key())
>Changed into:
> if ev.key() < 256:
> key=str(ev.text())
>
>I am using VTK at the interim release 4-4 from source
>and qt from PyQt-3.8-4mdk rpm on a Linux machine (Mandrake 10.0)
>
>Let me know if you can confirm this bug and if an official correction
>can be considered.
>
>Patrick
>
>
>
>------------------------------
>
>Message: 10
>Date: Mon, 20 Dec 2004 11:01:07 -0500
>From: Lisa Avila <lisa.avila at kitware.com>
>Subject: Re: [vtkusers] Re: vtkVolumeTextureMapper2D
>To: "Julien BARNEOUD" <j_barneoud at trophy.fr>,
> vtkusers at public.kitware.com
>Message-ID: <6.2.0.14.2.20041220105239.0365a828 at pop.biz.rr.com>
>Content-Type: text/plain; charset="iso-8859-1"; format=flowed
>
>
>Hello Julien,
>
>The texture mapper will render your whole data set from the appropriate
>viewing direction, packing images into a larger texture for rendering.
>Since TargetTextureSize is 512x512 by default you will have a fair amount
>of waste. Also, note that the opacity/color transfer functions and shading
>are applied during every render (as the data is moved into textures) and
>the texture are created every render (not stored in display lists - at the
>time this class was written video cards did not have that much memory, and
>if you have shading turned on the textures change with every move of the
>camera or light). I would recommend trying to use 1024x1024 as a target
>texture size - that should fit either 6 or 9 slices into 1 texture (rather
>than the 4 that fit in 4 half size textures with a target size of 512x512).
>Also, you can reduce the number of planes rendered to provide interactive
>performance (at a loss of image quality) by using the MaximumNumberOfPlanes
>ivar.
>
>Over the next few months there will be a fair amount of development
>occurring in the volume rendering functionality of VTK - you may wish to
>keep an eye on this and try out some of the newer classes as they become
>available.
>
>Lisa
>
>
>
>At 07:45 AM 12/20/2004, Julien BARNEOUD wrote:
>>Hi All,
>>
>>Is there anybody who could help me, or should I add some missing information
>>to my first email?
>>
>>Thanks,
>>
>>Julien
>>"Julien BARNEOUD" <j_barneoud at trophy.fr> a écrit dans le message de
>>news:cps3us$omr$1 at sea.gmane.org...
>> > Hi all,
>> >
>> > I am comparing quality and performance of the the different volume mapper
>> > (ray casting and texture ones) and I have slower result with the texture
>> > mapper.
>> >
>> > My configuration is a PIV 2.66 Mhz, with 1 GO RAM and an NVIDIA Geforce
>>6800
>> > GT graphic board.
>> >
>> > The dataset I am trying to render is made of 289 * 289 * 399 grayscale
>> > voxels with 12 bits depht.
>> >
>> > I am surprized because the texture render is very slow (i.e. it is
>>difficult
>> > to interact with the volume), and the graphic board has 256 Mo of Vdieo
>>RAM,
>> > so my entire dataset should be loaded and handled by the GeForce...
>> >
>> > I have tried to reduce the volume size using vtkExtractROI, I get
>>something
>> > faster, but not really usable.
>> >
>> > Is there any attention to pay to the volume size: a 256*256*512 volume
>>would
>> > be easier to fit texture memory as it is aligned on a power of 2? Should
>>I
>> > shift the data to be on 8 bits ? Anything else ?
>> >
>> > Thanks in advance for your help,
>> >
>> > Regards,
>> >
>> > Julien BARNEOUD
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>>
>>
>>
>>_______________________________________________
>>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
>
>
>
>
>
>------------------------------
>
>_______________________________________________
>vtkusers mailing list
>vtkusers at vtk.org
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>End of vtkusers Digest, Vol 8, Issue 41
>***************************************
>
>
= = = = = = = = = = = = = = = = = = = =
More information about the vtkusers
mailing list