From rus1 at duke.edu Sat Jan 1 16:41:48 2005 From: rus1 at duke.edu (Rhazes Spell) Date: Sat, 1 Jan 2005 16:41:48 -0500 Subject: [vtkusers] OS X 10.3 and VTK Application Build Message-ID: Hello- I am a VTK (and sci vis) newbie, and I am trying to run some of the example code from the VTK 4.4 distribution to learn the libraries. I have successfully installed CMake and VTK. Thus far, I am able to build and run the simple Cone.cxx example successfully. I was also able to run the Cone example as an Objective-C++ application (Cone.mm). However, my initial success was from the commmand line, and eventually I would like to program the application that I am working on in Objective-C++ using Cocoa in XCode. As a result, I tried to build and run the Cone example in Xcode, but I have had no success thus far. Specifically, I am getting the following output when I build and run: Native Build of Target "Learning" CompileC build/Learning.build/Learning.build/Objects-normal/ppc/Cone.o Cone.mm normal ppc objective-c++ com.apple.compilers.gcc.3_3 mkdir -p /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ Learning.build/Learning.build/Objects-normal/ppc cd /Users/rhazes/Projects/Development/vtk/tmp/Learning /usr/bin/gcc-3.3 -x objective-c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -Wno-four-char-constants -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0 -fmessage-length=0 -ffix-and-continue -F/Users/rhazes/Projects/Development/vtk/tmp/Learning/build -I/Users/rhazes/Projects/Development/vtk/tmp/Learning/build/include -I/Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ Learning.build/Learning.build/DerivedSources -Wp,-header-mapfile,/Users/rhazes/Projects/Development/vtk/tmp/ Learning/build/Learning.build/Learning.build/Learning.hmap -c /Users/rhazes/Projects/Development/vtk/tmp/Learning/Cone.mm -o /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ Learning.build/Learning.build/Objects-normal/ppc/Cone.o Ld /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/Learning cd /Users/rhazes/Projects/Development/vtk/tmp/Learning /usr/bin/g++-3.3 -o /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/Learning -L/Users/rhazes/Projects/Development/vtk/tmp/Learning/build -L/Users/rhazes/Library/Development/vtk-cocoa/bin -L/usr/lib/gcc/darwin/3.3 -F/Users/rhazes/Projects/Development/vtk/tmp/Learning/build -filelist /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ Learning.build/Learning.build/Objects-normal/Learning.LinkFileList -framework OpenGL -lvtkRendering -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -arch ppc ld: /Users/rhazes/Library/Development/vtk-cocoa/bin/ libvtkCommon.a(vtkMultiThreader.o) illegal reference to symbol: _MPProcessors defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/CarbonCore.framework/Versions/A/CarbonCore In XCode I have added the OpenGL framework and imported all of the VTK Header files (961 in total, correct?). Any help that you can provide would be immensely appreciated, and I will be sure to contribute my lessons learned back to the community. ************************************** Rhazes Spell, Ph.D. Post-Doctoral Research Associate Duke University Center for Computational Science Engineering and Medicine Visualization Technology Group 919.660.5595 (office) *************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3508 bytes Desc: not available URL: From tadelman2 at yahoo.com Sun Jan 2 18:31:15 2005 From: tadelman2 at yahoo.com (Tom Adelman) Date: Sun, 2 Jan 2005 15:31:15 -0800 (PST) Subject: [vtkusers] stretching along an axis Message-ID: <20050102233115.92655.qmail@web80905.mail.scd.yahoo.com> I would like to stretch an entire plot along an axis, but I can?t figure out how to do this. More specifically, when rendering a volume that has unequal proportions, with the following ranges x(0, 10), y(0, 10), and z(0, .1), the image is very flat. I could stretch this out by multiplying all z-values by 100, but then it?s difficult to read numbers off the axis, or present and publish the figure. Is there a way to get the axis to read the correct numbers and also have axes with equal proportions in the visualization? Thanks, Tom __________________________________ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com From saveez at hotmail.com Mon Jan 3 06:45:01 2005 From: saveez at hotmail.com (Ali -) Date: Mon, 03 Jan 2005 11:45:01 +0000 Subject: [vtkusers] This old "java.lang.UnsatisfiedLinkError: VTKInit"!!! Message-ID: Hello Here is my set-up: vtk 4.4.2 JDK 1.5.0.1 for x86_64 Fedora Core 3 X86_64 It was not straight to compile vtk under these prefs; the trick was to build ccmake for the 64-bit arch and then link the libs to the 64-bit version of the GL libs. I also needed to have the vtk javabeans, so I set the java parser to the javabeans parser and compiled the bean jar successfully. The jar includes the required manifest file. The problem is when I want to run a minimal java example, by importing the jar bean into BDK, I get this old error: ... java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkObject.VTKInit(Native Method) at vtk.vtkObjectBase.(vtkObjectBase.java:42) at vtk.vtkObject.(vtkObject.java:6) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... The following solutions have been tried: - The libraries are in the path as checked by: System.out.println(System.getProperty("java.library.path")); - The libraries are loaded in the BDK code: System.loadLibrary("vtkCommonJava"); - The libraries are NOT mangled as checked by nm: # nm /usr/local/lib64/vtk/libvtkCommonJava.so |grep vtkObject_VTKInit 000000000009393c T Java_vtk_vtkObject_VTKInit - Note that the installed java binaries are in fact 64-bit which is in consistant with the compiled vtk binaries (64-bit again). - I have tried the same experiment under (32-bit) win xp and got exactly the same results. I do not know what I am missing here. Any clues would be appreciated. -Ali _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From l.a.pereira at uol.com.br Mon Jan 3 08:53:36 2005 From: l.a.pereira at uol.com.br (Luis Alberto Pereira) Date: Mon, 3 Jan 2005 10:53:36 -0300 Subject: [vtkusers] help vtkPropPicker Message-ID: <20050103125213.7B7EC80E2@scorpion2.uol.com.br> I'm having dificult with vtkPropPicker. I'm not getting an apropriate sensibility on WM_MOUSEMOVE event in WinProc in view class. I just get actor in winProc after press "p" over any actor in view and not when the WM_MOUSEMOVE is invoked. I would like obtain the same effect off key pressed "p", but in WM_MOUSEMOVE event moment. Cam someone help me ? My code in cview class is: a) Constructor method: this->iren = vtkWin32RenderWindowInteractor::New(); this->irenStyle = vtkInteractorStyleTrackballCamera::New(); this->iren->SetInteractorStyle(irenStyle); this->picker = vtkPropPicker::New(); iren->SetPicker(picker); b) WinProc method: vtkActor *actor = NULL; int x = 0; int y = 0; switch (message) { case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MBUTTONDOWN: case WM_MBUTTONUP: case WM_RBUTTONDOWN: case WM_RBUTTONUP: case WM_MOUSEMOVE: actor = (vtkActor*) ((vtkPropPicker*) this->iren->GetPicker())->GetProp(); if (actor != NULL) actor->GetProperty()->SetColor(1.0, 0.0, 0.0); case WM_CHAR: case WM_TIMER: if (this->iren->GetInitialized()) { return vtkHandleMessage2(this->GetSafeHwnd(), message, wParam, lParam, this->iren); } break; } return CView::WindowProc(message, wParam, lParam); } Thanks, Luis Alberto -------------- next part -------------- An HTML attachment was scrubbed... URL: From raj.amal at gmail.com Mon Jan 3 09:49:49 2005 From: raj.amal at gmail.com (Fam) Date: Mon, 3 Jan 2005 20:19:49 +0530 Subject: [vtkusers] Drawing Points in VTK Renderer. Message-ID: <3bfbb0bb050103064942c8f17c@mail.gmail.com> Hi Iam a newbie to VTK. I am having some points that I have to draw on the VTK Renderer. The VTK Renderer already has a 3ds model loaded. So now I have to draw some points on the 3DS model. Amal. From i.wegner at dkfz-heidelberg.de Mon Jan 3 10:21:42 2005 From: i.wegner at dkfz-heidelberg.de (Ingmar Wegner) Date: Mon, 03 Jan 2005 16:21:42 +0100 Subject: [vtkusers] Re: again Stencil Buffer In-Reply-To: <20041230125914.149103442D@public.kitware.com> References: <20041230125914.149103442D@public.kitware.com> Message-ID: <41D96306.9030405@dkfz-heidelberg.de> Hi to all, to answer my question: My problem was, that I disregarded, that we also use QT as a GUI besides VTK and ITK. The default initialization of QGLWidget is without stencil buffer. So with setting the right flag in QGLWidget and the overwritten 'SetupPixelFormat'- method from vtkRenderWindow the stencil buffer should be available. In SetupPixelFormat I check the amount of stencil bits available through:: //check how much bits the stencil buffer supports GLint stencilBits = -1; glGetIntegerv(GL_STENCIL_BITS, &stencilBits); PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), //gc size 1, //gc version dwFlags , //gc support double-buffering PFD_TYPE_RGBA, //gc color type bpp, //gc prefered color depth 0, 0, 0, 0, 0, 0, //gc color bits (ignored) 0, //gc no alpha buffer 0, //gc alpha bits (ignored) 0, //gc no accumulation buffer 0, 0, 0, 0, //gc accum bits (ignored) zbpp, //gc depth buffer stencilBits, //gc stencil buffer enabled!!! 0, //gc no auxiliary buffers PFD_MAIN_PLANE, //gc main layer 0, //gc reserved 0, 0, 0, //gc no layer, visible, damage masks }; Then the stencil buffer is also configured the right way in VTK. Regards, Ingmar >Message: 1 >Date: Wed, 29 Dec 2004 20:16:19 +0100 >From: Ingmar Wegner >Subject: [vtkusers] again Stencil Buffer >To: vtkusers at vtk.org >Message-ID: <41D30283.9040107 at dkfz-heidelberg.de> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Merry Christmas and a happy new year to you all, > >I wanted to ask once more, how stencil some objects in a vtk scene. > >I tried to enable stencil buffer, thought I solved the problem through >overwriting SetupPixelFormat in vtkWin32OpenGLRenderWindow, but now I >noticed, that I didn't solve the problem. >I still haven't got access to the stencil buffer. >I an OpenGL test environment I got the things I want to do to work >easily but VTK gives me a headache. > >How can I enable Stencil Buffer? >Is there an other way to stencil rendered objects? >Is that what vtkImageStencil or vtkImageToImageStencil are used for? > >What I need is a progress to be able to cut off objects through other >invisible objects like done in depth testing with disabled ColorMask. >Then I want to enable stencil -testing to be able to switch off depth >testing and to draw the next object only stenciled with the visible >objects (as if only in background). >This is to be done in a 3D environment and the last object is a 2D >Image, so vtk always wants to draw it in the front... > > >Any answer is welcome! > (I wrote three questions now, that weren't answered. I also tried to >reach David Grobbi but didn't succeed... ) > >Happy new Year, >Ingmar > > > > > -- ------- Dipl.-Inform. Med. Ingmar Wegner Tel.: (+49) 6221/42-3543 German Cancer Research Center Fax.: (+49) 6221/42-2345 Div. Medical and Biological Informatics Im Neuenheimer Feld 280 mailto:I.Wegner at dkfz.de D-69120 Heidelberg, Germany http://mbi.dkfz-heidelberg.de Homepage: http://mbi.dkfz-heidelberg.de/mbi/people/ingmar.html ------- From burlen at apollo.sr.unh.edu Mon Jan 3 10:28:56 2005 From: burlen at apollo.sr.unh.edu (Burlen) Date: Mon, 3 Jan 2005 10:28:56 -0500 Subject: [vtkusers] stretching along an axis In-Reply-To: <20050102233115.92655.qmail@web80905.mail.scd.yahoo.com> References: <20050102233115.92655.qmail@web80905.mail.scd.yahoo.com> Message-ID: <200501031028.56486.burlen@apollo.sr.unh.edu> Are you using the axis actor 2d? If not then you should try to use it instead of the pre-packagaed axis. You will need three of them, but you can set the range independant of the position coordinates. On Sunday 02 January 2005 18:31, Tom Adelman wrote: > I would like to stretch an entire plot along an axis, > but I can?t figure out how to do this. More > specifically, when rendering a volume that has unequal > proportions, with the following ranges x(0, 10), y(0, > 10), and z(0, .1), the image is very flat. I could > stretch this out by multiplying all z-values by 100, > but then it?s difficult to read numbers off the axis, > or present and publish the figure. > > Is there a way to get the axis to read the correct > numbers and also have axes with equal proportions in > the visualization? > > Thanks, > Tom > > > > > > __________________________________ > Do you Yahoo!? > Send holiday email and support a worthy cause. Do good. > http://celebrity.mail.yahoo.com > _______________________________________________ > 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 From rus1 at duke.edu Mon Jan 3 11:19:41 2005 From: rus1 at duke.edu (Rhazes Spell) Date: Mon, 3 Jan 2005 11:19:41 -0500 Subject: [vtkusers] OS X 10.3 and VTK Application Build In-Reply-To: References: Message-ID: <45A05F2A-5DA3-11D9-9087-000D932F1368@duke.edu> I was able to solve this problem from the assistance of the following two articles on setting up VTK for Cocoa development and correspondence with the article's author, Drew McCormack. (This may be redundant to a previous post in the archive, but I did not find these articles referenced. They are an excellent resource for any interested in doing VTK development within XCode.) Developing visualization applications with Cocoa and VTK (pt1 and 2) http://www.macdevcenter.com/pub/a/mac/2003/02/11/dev_osx.html http://www.macdevcenter.com/pub/a/mac/2003/03/25/dev_osx.html?page=1 The complication that I had below was that I did not set the path to the VTK libraries in my Target setup. Here are the steps that I followed, courtesy of Drew: From your project in XCode - Click on the target - Show Info - Got to compiler settings and find the library search path. - Make sure it has the path to the static vtk library directory included. Happy Coding. On Jan 1, 2005, at 4:41 PM, Rhazes Spell wrote: > Hello- > I am a VTK (and sci vis) newbie, and I am trying to run some of the > example code from the VTK 4.4 distribution to learn the libraries. I > have successfully installed CMake and VTK. Thus far, I am able to > build and run the simple Cone.cxx example successfully. I was also > able to run the Cone example as an Objective-C++ application > (Cone.mm). However, my initial success was from the commmand line, > and eventually I would like to program the application that I am > working on in Objective-C++ using Cocoa in XCode. As a result, I > tried to build and run the Cone example in Xcode, but I have had no > success thus far. Specifically, I am getting the following output > when I build and run: > > Native Build of Target "Learning" > > CompileC build/Learning.build/Learning.build/Objects-normal/ppc/Cone.o > Cone.mm normal ppc objective-c++ com.apple.compilers.gcc.3_3 > mkdir -p > /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ > Learning.build/Learning.build/Objects-normal/ppc > cd /Users/rhazes/Projects/Development/vtk/tmp/Learning > /usr/bin/gcc-3.3 -x objective-c++ -arch ppc -pipe -Wno-trigraphs > -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 > -Wno-four-char-constants -Wmost -Wno-four-char-constants > -Wno-unknown-pragmas -O0 -fmessage-length=0 -ffix-and-continue > -F/Users/rhazes/Projects/Development/vtk/tmp/Learning/build > -I/Users/rhazes/Projects/Development/vtk/tmp/Learning/build/include > -I/Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ > Learning.build/Learning.build/DerivedSources > -Wp,-header-mapfile,/Users/rhazes/Projects/Development/vtk/tmp/ > Learning/build/Learning.build/Learning.build/Learning.hmap -c > /Users/rhazes/Projects/Development/vtk/tmp/Learning/Cone.mm -o > /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ > Learning.build/Learning.build/Objects-normal/ppc/Cone.o > > Ld /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/Learning > cd /Users/rhazes/Projects/Development/vtk/tmp/Learning > /usr/bin/g++-3.3 -o > /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/Learning > -L/Users/rhazes/Projects/Development/vtk/tmp/Learning/build > -L/Users/rhazes/Library/Development/vtk-cocoa/bin > -L/usr/lib/gcc/darwin/3.3 > -F/Users/rhazes/Projects/Development/vtk/tmp/Learning/build -filelist > /Users/rhazes/Projects/Development/vtk/tmp/Learning/build/ > Learning.build/Learning.build/Objects-normal/Learning.LinkFileList > -framework OpenGL -lvtkRendering -lvtkGraphics -lvtkImaging > -lvtkFiltering -lvtkCommon -arch ppc > ld: > /Users/rhazes/Library/Development/vtk-cocoa/bin/ > libvtkCommon.a(vtkMultiThreader.o) illegal reference to symbol: > _MPProcessors defined in indirectly referenced dynamic library > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/CarbonCore.framework/Versions/A/CarbonCore > > > In XCode I have added the OpenGL framework and imported all of the VTK > Header files (961 in total, correct?). Any help that you can provide > would be immensely appreciated, and I will be sure to contribute my > lessons learned back to the community. > ************************************** > Rhazes Spell, Ph.D. > Post-Doctoral Research Associate > > Duke University > Center for Computational Science Engineering and Medicine > Visualization Technology Group > > 919.660.5595 (office) > > ***************************************________________________________ > _______________ > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 4810 bytes Desc: not available URL: From lost_bits1110 at hotmail.com Mon Jan 3 16:03:49 2005 From: lost_bits1110 at hotmail.com (Louis Desjardins) Date: Mon, 03 Jan 2005 21:03:49 +0000 Subject: [vtkusers] black polygons Message-ID: Hello.. I am rendering an image that uses vtkPlaneSource, vtkCutter, vtkLODActor The image is animated, and is a set of QuadCells that are color coded, and the colors change at a rate of about 15 Hz However, I keep getting these wierd looking black polygons that dont seem to get updated with the rest of the colors, I can send you a screendump if you are curious to see what I am talking about But can anyone think of any reason why this might be occuring? Thank you LD From fengfenghsy at 163.com Tue Jan 4 02:16:59 2005 From: fengfenghsy at 163.com (fengfenghsy) Date: Tue, 4 Jan 2005 15:16:59 +0800 Subject: [vtkusers] How to use AddObserver in VC Message-ID: <20050104071559.B7446304CC@public.kitware.com> Hello everyone, I am now trying to use AddObserver to invoke some fuction, for example picking a 3D coordinate value from a solid. However, compared with TCL/Tk , I find it quite difficult in VC setting , Who can help me ! Thanks a lot! ????????fengfenghsy ????????fengfenghsy at 163.com ??????????2005-01-04 From winderzc at yahoo.com Tue Jan 4 04:34:55 2005 From: winderzc at yahoo.com (Cong Zhang) Date: Tue, 4 Jan 2005 01:34:55 -0800 (PST) Subject: [vtkusers] how to keep the texture fixed when modify the points and write Message-ID: <20050104093455.22925.qmail@web41014.mail.yahoo.com> Hello all, We're generating a .obj file with texture vertices (vt) in the .obj file. We want to load this data into VTK, do operations such as transformation and projection, then write out a new OBJ file with the new coordinates and fixed texture coordinates. I can do the load (vtkOBJReader) and display the model with texture, but can not get the texture coordinates and relate them to the loaded vetices, furthermore, the (vt) entries and the face indeices get lost and don't appear in the output file. Does anybody have some suggestions? Thanks in advance! Best Regards, chong --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lost_bits1110 at hotmail.com Tue Jan 4 12:41:02 2005 From: lost_bits1110 at hotmail.com (Louis Desjardins) Date: Tue, 04 Jan 2005 17:41:02 +0000 Subject: [vtkusers] Re: black polygons Message-ID: Hello, So I have a clue as to why I am getting those black polygons.. I am slicing an unstructured grid using vtkCutter, and placing a vtkPlaneSource over it When I remove the sliced unstructured grid actor, then the black polygons disappear. So it seems like there is some overlapping between the plane source and unstructured grid actor? If anyone has any suggestions I would greatly appreciate it? Thank you LD From lost_bits1110 at hotmail.com Tue Jan 4 13:37:25 2005 From: lost_bits1110 at hotmail.com (Louis Desjardins) Date: Tue, 04 Jan 2005 18:37:25 +0000 Subject: [vtkusers] Re: black polygons Message-ID: Okay btw just to give you a better idea of the filters I'm using: i render the sliced unstructured mesh using the following pipeline: UnstructuredGrid -> Cutter -> GeometryFilter -> Stripper -> PolyDataMapper -> LODActor I do AddActor for this LODActor (lets call it meshActor) to the renderer prior to adding the following actor (lets call it planeActor), which goes through the following pipeline: PlaneSource -> PolyDataMapper -> LODActor I would have thought that since I added planeActor after meshActor, that we shouldnt be able to see the mesh underneath.. but it seems like there are some holes or some mixing or confusion of some sort, since I can see small areas showing the mesh polygons underneath at random times Thanks for your help LD From rmilas at head.cfa.harvard.edu Tue Jan 4 14:09:59 2005 From: rmilas at head.cfa.harvard.edu (Robert Milaszewski) Date: Tue, 04 Jan 2005 14:09:59 -0500 Subject: [vtkusers] Orientation in vtkTextProperty Message-ID: <41DAEA07.2030509@head.cfa.harvard.edu> I noticed that vtkTextProperty has methods to support orientation of text and I wonder if there are any plans in the near future to add support for orientation of 2D text in vtk? thanks, Robert M Milaszewski From rendezvous at dreamxplosion.com Tue Jan 4 16:36:00 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Tue, 4 Jan 2005 16:36:00 -0500 Subject: [vtkusers] CPU usage while dragging the window ? (Mac OS X) Message-ID: (I was wondering if this is a Mac OS X, Tcl or a VTK issue) I was playing with the "VolumeRenderWithBoxWidget.tcl" example (in /VTK/Examples/GUI/Tcl/) which renders quite slowly being a volume rendering, and I noticed that dragging the whole window around it's very slow and uses a lot of CPU; it's almost like the rendering pipeline is being activated continuously (updated) as the window moves (and it shouldn't as nothing gets changed while dragging the window). Is there a way to prevent this from happening? Is this behavior normal? thanks, marius From juice21 at singnet.com.sg Tue Jan 4 21:35:10 2005 From: juice21 at singnet.com.sg (Kangjun) Date: Wed, 5 Jan 2005 10:35:10 +0800 Subject: [vtkusers] vtkspline Message-ID: <009601c4f2cf$2d7438c0$3cc04adb@paradise> hi, i'm trying to create a tube that bends like a rubber hose. i was thinking alon the line of creating points, linking the points into a line and then use spline to bend it. anyone has a better suggestion or knows how to use this spline properly? cause i dun seem to be getting it right... Kangjun -------------- next part -------------- An HTML attachment was scrubbed... URL: From juice21 at singnet.com.sg Wed Jan 5 01:07:56 2005 From: juice21 at singnet.com.sg (Kangjun) Date: Wed, 5 Jan 2005 14:07:56 +0800 Subject: [vtkusers] creating line from points Message-ID: <001a01c4f2ec$e6a84e90$66c24adb@paradise> hi all, how do i create a line or curve using many points? can line source do it? regards, kangjun -------------- next part -------------- An HTML attachment was scrubbed... URL: From sarika_mani_82 at yahoo.com Wed Jan 5 01:50:28 2005 From: sarika_mani_82 at yahoo.com (Sarika Ture) Date: Tue, 4 Jan 2005 22:50:28 -0800 (PST) Subject: [vtkusers] unsatisfied link error Message-ID: <20050105065028.65852.qmail@web60910.mail.yahoo.com> hi group, Iam working on windows ,i've got a runtime error .Error is : Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\......\j3d.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at Cone.(Cone.java:22) can you please tell me as early as possible __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From venu.thomas at nestinfotech.com Wed Jan 5 04:01:59 2005 From: venu.thomas at nestinfotech.com (=?iso-8859-1?Q?=BF_Venu_Thomas_=BF?=) Date: Wed, 5 Jan 2005 14:31:59 +0530 Subject: [vtkusers] VTK with AVI format Message-ID: <029d01c4f305$38a044b0$a900080a@nestinfotech.com> Dear, How is display AVI in VTK ?? Pls replay to me... I wait for ur rply... Regards, Venu Thomas M.Ph:- (91) 9847655556 www.venuthomas.all.at Or http://www.geocities.com/cochin_venu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 41297 bytes Desc: not available URL: From venu.thomas at nestinfotech.com Wed Jan 5 04:05:50 2005 From: venu.thomas at nestinfotech.com (=?iso-8859-1?Q?=BF_Venu_Thomas_=BF?=) Date: Wed, 5 Jan 2005 14:35:50 +0530 Subject: [vtkusers] VTK with AVI format Message-ID: <02e901c4f305$c17f0690$a900080a@nestinfotech.com> Dear, How is display AVI in VTK ?? Pls replay to me... I wait for ur rply... Regards, Venu Thomas M.Ph:- (91) 9847655556 www.venuthomas.all.at Or http://www.geocities.com/cochin_venu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From winderzc at yahoo.com Wed Jan 5 04:36:29 2005 From: winderzc at yahoo.com (Cong Zhang) Date: Wed, 5 Jan 2005 01:36:29 -0800 (PST) Subject: [vtkusers] some problem about vertex texture in .OBJ file Message-ID: <20050105093629.41712.qmail@web41010.mail.yahoo.com> Hello all, We're generating a .obj file with texture vertices (vt) in the .obj file. We want to load this data into VTK, do operations such as transformation and projection, then write out a new OBJ file with the new coordinates and fixed texture coordinates. I can do the load (vtkOBJReader) and display the model with texture, but can not get the texture coordinates and relate them to the loaded vetices, furthermore, the (vt) entries and the face indeices get lost and don't appear in the output file. Does anybody have some suggestions? Thanks in advance! Best Regards, chong --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From freiman at cs.huji.ac.il Wed Jan 5 10:24:17 2005 From: freiman at cs.huji.ac.il (Moti Freiman) Date: Wed, 05 Jan 2005 17:24:17 +0200 Subject: [vtkusers] vtkSTLWriter Message-ID: <41DC06A1.30908@cs.huji.ac.il> Hello! i have vtkPolyData data, and i want to print it with stereo lithography. i found that when the vtkSTLWriter save my data, is save it as points iwth triangles, and not as 'solids'. however the stl printer need 'solids'. do someone know how can i save my data as solids? Regards! Moti Freiman -- Moti Freiman, Graduate Student. Medical Image Processing and Computer-Assisted Surgery Laboratory. School of Computer Science and Engineering. The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel Phone: +(972)-2-658-5371 (laboratory) E-mail: freiman at cs.huji.ac.il WWW site: http://www.cs.huji.ac.il/~freiman -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004 From 9nem at qlink.queensu.ca Wed Jan 5 17:52:40 2005 From: 9nem at qlink.queensu.ca (N.E. Mackenzie Mackay) Date: Wed, 5 Jan 2005 17:52:40 -0500 Subject: [vtkusers] IntersectWithLine Message-ID: <808A3EF7-5F6C-11D9-8846-000A95C53E6E@qlink.queensu.ca> Hi, I have a point and a surface mesh. I want to find where the closest part of the surface to the point. Not the closest point that makes up the triangles of the mesh, the closest point that could possibly lie in a triangle. What I have is the point location (x, y and z) and a bunch of triangles in my vtkPolyData. My idea was to find the normal at each triangle and create a line using the normal and my point in space. With that line I would test if it goes through the triangle. If it does I would measure the distance from the point to the triangle. After doing that for every poly in the vtkPolyData I would take the lowest distance as the closest point. I was looking at InersectWithLine in vtkTriangle and it looks like it could be used. I just have no idea how to use it. The Documentation for the method looks like this: IntersectWithLine(float p1[3], float p2[3], float tol, float & t, float x[3], float pcoords[3], int& subId) I assume p1 and p2 are the start and end of the line. I don't really know what anything else represent. What I was hoping for is to give x,y and z of my point and the three points of my triangle and see if the Can anyone give some suggestions? Thanks, Neilson From thomas.dunne at iwr.uni-heidelberg.de Wed Jan 5 18:40:30 2005 From: thomas.dunne at iwr.uni-heidelberg.de (Thomas Dunne) Date: Thu, 6 Jan 2005 00:40:30 +0100 (CET) Subject: [vtkusers] homogenizing vector fields on strongly refined grids Message-ID: Hello, I work with results/grids that are locally refined, sometimes very much. When viewing the vector field with hedgehogs this becomes troublesome, since there are very dense fields of hedgehogs where there is much local refinement. I would like to spread a selected number of hedgehogs evenly in the domain regardless of the underlying grid. I have thought of using the cutter with a plane, but wouldn't that just result in the same points/lines/cells again? Does anyone know how to do this? Suggestions, keywords or examples will be greatly appreciated! thanks, tom From sakieltang at 263.net Wed Jan 5 20:59:21 2005 From: sakieltang at 263.net (=?gb2312?B?c2FraWVs?=) Date: Thu, 6 Jan 2005 09:59:21 +0800 Subject: [vtkusers] Help!About Extract a Irregular VOI from Volume Model Message-ID: <20050106015301.0984143BE8@smtp.263.net> hi, All VTKUsers, I built a 3D model by Class vtkVolumeRayCastMapper.Now i want to draw a irregular loop(convex or concave) by mouse interactively so that i can keep the volume of interesting inside or outside this loop.how can i realize this goal?i hope i describe my problem clearly. Thank you very much. Yu Tang ========================== 263??????????? From flypureau at hotmail.com Wed Jan 5 21:14:24 2005 From: flypureau at hotmail.com (Tracy) Date: Thu, 6 Jan 2005 12:14:24 +1000 Subject: [vtkusers] questiong abt setting trackball style as default Message-ID: Dear everyone, I developed my VTK code with GUI design under .NET environment . But the question is I can not toggle between joystick (position sensitive) and trackball (motion sensitive) styles after pressing "j" or "t" . Does someone know where I am wrong , and please tell me how I can set the default vtkInteractorStyle as trackball style? Thanks in advance Regards Tracy From twb at usc.edu Wed Jan 5 22:20:39 2005 From: twb at usc.edu (thorsten becker) Date: Wed, 05 Jan 2005 19:20:39 -0800 Subject: [vtkusers] VTK binary I/O problem Message-ID: <7681671e27f3.41dc3e07@usc.edu> Hi, I am having problems with VTK binary I/O (vtk DtaFile Version 2.0 format, using paraview 1.8.x): The binary VTK file that paraview writes on my Intel Linux box does not decode to the ASCII float values I would expect from a simple ASCII VTK example input file. When I try to write VTK binary following instructions in the VTK format manual, paraview crashes with this file. I suspect that there is either some additional field length information encoded in the VTK binary format, or that there is an assumption about little/big endian that is different from what I would write on Intel with C-type direct binary I/O. The VTK manual (p. 2) says that one can use "methods" to switch from big to little endian. How can this be done in a VTK input file? Any help or comments to these issues would be appreciated. (Yes, I checked the mailing list and FAQ, but didn't find anything proper.) Thanks much Thorsten From arash at vije.ca Wed Jan 5 23:11:08 2005 From: arash at vije.ca (Arash Jahangir) Date: Wed, 5 Jan 2005 23:11:08 -0500 Subject: [vtkusers] IntersectWithLine References: <808A3EF7-5F6C-11D9-8846-000A95C53E6E@qlink.queensu.ca> Message-ID: <01e401c4f3a5$fb7838d0$6400a8c0@AZAR> I don't have the complete solution, but try a variation of this idea. Measure the distance between your point and the vertices of the triangles of interest. Then draw a sphere with the radius equal to the smallest point-to-vertex distance. Find the intersection of the sphere with each triangle on the surface. The longest intersection between the triangles and the sphere should mark the nearest triangle and its mid point should be the nearest point. hth, Arash ----- Original Message ----- From: "N.E. Mackenzie Mackay" <9nem at qlink.queensu.ca> To: Sent: Wednesday, January 05, 2005 5:52 PM Subject: [vtkusers] IntersectWithLine > Hi, > > I have a point and a surface mesh. I want to find where the closest part > of the surface to the point. Not the closest point that makes up the > triangles of the mesh, the closest point that could possibly lie in a > triangle. > > What I have is the point location (x, y and z) and a bunch of triangles in > my vtkPolyData. > > My idea was to find the normal at each triangle and create a line using > the normal and my point in space. With that line I would test if it goes > through the triangle. If it does I would measure the distance from the > point to the triangle. After doing that for every poly in the vtkPolyData > I would take the lowest distance as the closest point. > > I was looking at InersectWithLine in vtkTriangle and it looks like it > could be used. I just have no idea how to use it. > > The Documentation for the method looks like this: > > IntersectWithLine(float p1[3], float p2[3], float tol, float & t, float > x[3], float pcoords[3], int& subId) > > I assume p1 and p2 are the start and end of the line. I don't really know > what anything else represent. What I was hoping for is to give x,y and z > of my point and the three points of my triangle and see if the > > Can anyone give some suggestions? > > Thanks, > Neilson > > _______________________________________________ > 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 > > From Jacques.Charreyron at fr.michelin.com Thu Jan 6 06:11:25 2005 From: Jacques.Charreyron at fr.michelin.com (Jacques Charreyron-F264897) Date: 06 Jan 2005 12:11:25 +0100 Subject: [vtkusers] Results rendering bug ? Message-ID: <072B441DD1CDD26B*/c=fr/admd=atlas/prmd=michelin/o=fr-mta/ou=euocc/s=Charreyron-F264897/g=Jacques/@MHS> Dear vtkusers, I have a problem rendering results on quads ( and this is true, of course, for 3D elements using quads). Let's imagine we have two quads with the following values on nodes : 0-------------1--------------0 | | | | | | | | | 0-------------0--------------0 We would expect symetrical color gradients. But because of triangulation we get two different mappings. Those two quads are transformed into triangles this way (depending only on the shortest diagonal) : triangle (1) with values 0 1 0 triangle (2) with values 0 0 1 triangle (3) with values 0 0 1 triangle (4) with values 0 0 0 0---------------1----------------0 | / | / | | (1) / (2) | (3) / (4) | | / | / | 0---------------0----------------0 We can now see the problem : triangle (4) will be rendered with a single color which is false according to the finite element and true according to OpenGl triangles. One suggestion would be the following : change the triangulation of quads to make it symetrical using by creating a fake center node located at the quad center of gravity (simple surgery in vtkQuad::Triangulate()) assigned with a value computed using interpolation functions. This has one major drawback : it introduces different kind of nodes/scalars reals and fakes Here is a code snippet to reproduce behaviour : //--------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main( int argc, char *argv[] ) { //------- // Points //------- vtkPoints *points = vtkPoints::New(); points->SetNumberOfPoints(6); points->SetPoint(0, 0, 0, 0); points->SetPoint(1, 1, 0, 0); points->SetPoint(2, 1, 1, 0); points->SetPoint(3, 0, 1, 0); points->SetPoint(4, 2, 0, 0); points->SetPoint(5, 2, 1, 0); vtkIdType pointIds[4]; pointIds[0] = 0; pointIds[1] = 1; pointIds[2] = 2; pointIds[3] = 3; vtkIdType pointIds2[4]; pointIds2[0] = 1; pointIds2[1] = 2; pointIds2[2] = 5; pointIds2[3] = 4; //-------------- // Quad grid //-------------- vtkUnstructuredGrid* grid = vtkUnstructuredGrid::New(); grid->Allocate(1); grid->SetPoints(points); grid->InsertNextCell(VTK_QUAD,4,pointIds); grid->InsertNextCell(VTK_QUAD,4,pointIds2); // Point data (scalars) vtkFloatArray *pointScalars = vtkFloatArray::New(); pointScalars->SetNumberOfComponents(1); pointScalars->SetNumberOfTuples(6); pointScalars->SetTuple1(0,0); pointScalars->SetTuple1(1,0); pointScalars->SetTuple1(2,1); pointScalars->SetTuple1(3,0); pointScalars->SetTuple1(4,0); pointScalars->SetTuple1(5,0); grid->GetPointData()->SetScalars(pointScalars); // Lookup : vtkLookupTable *lookupTable = vtkLookupTable::New(); lookupTable->SetNumberOfColors(10); lookupTable->SetTableRange(0.0,1.0); lookupTable->Build(); // Scalar bar actor vtkScalarBarWidget *scalarBarWidget=vtkScalarBarWidget::New(); vtkScalarBarActor *scalarBarActor = vtkScalarBarActor::New(); scalarBarActor->SetLookupTable(lookupTable); scalarBarWidget->SetScalarBarActor(scalarBarActor); scalarBarActor->SetMaximumNumberOfColors(10); // Mapper vtkDataSetMapper *currentMapper=vtkDataSetMapper::New(); currentMapper->SetInput(grid); currentMapper->SetLookupTable(lookupTable); currentMapper->SetInterpolateScalarsBeforeMapping(1); // Actor vtkActor *quadActor = vtkActor::New(); quadActor->SetMapper(currentMapper); //-------------- // Visualization //-------------- // Renderer vtkRenderer *renderer= vtkRenderer::New(); renderer->SetLightFollowCamera(true); renderer->SetBackground(0.6,0.7,0.9); renderer->AddActor(quadActor); renderer->AddActor(scalarBarActor); // RenderWindow vtkRenderWindow *renderWindow = vtkRenderWindow::New(); renderWindow->AddRenderer(renderer); renderWindow->SetSize(300,300); // Interactor vtkRenderWindowInteractor *interactor = vtkRenderWindowInteractor::New(); interactor->SetRenderWindow(renderWindow); // Interactor style vtkInteractorStyleTrackballCamera *interactorStyle = vtkInteractorStyleTrackballCamera::New(); interactor->SetInteractorStyle(interactorStyle); // Event loop interactor->Initialize(); interactor->Start(); return 0; } // -------------------------------------------------------------------- Do you think this is worth reporting it as a bug ? Yours, Jacques Charreyron __________________________________________________________ \ \ Jacques Charreyron \ Soci?t? Michelin -------------- next part -------------- A non-text attachment was scrubbed... Name: tringulation.jpg Type: application/octet-stream Size: 14281 bytes Desc: tringulation.jpg URL: From tonvandenheuvel at gmail.com Thu Jan 6 06:19:38 2005 From: tonvandenheuvel at gmail.com (Ton van den Heuvel) Date: Thu, 6 Jan 2005 12:19:38 +0100 Subject: [vtkusers] Exporting vtkScalarBarActor Message-ID: Hi, I'm writing a POV-Ray exporter for VTK and I have a problem with exporting vtkScalarBarActors. The problem is that vtkScalarBarActor hides all internally used actors used for e.g. the text labels. Is there any other way to gain access to these sub-actors? If not, may I propose an interface change for vtkScalarBarActor such that it is possible to access these internally used actors? Thanks! Regards, Ton van den Heuve From ursula.kose at philips.com Thu Jan 6 09:38:11 2005 From: ursula.kose at philips.com (ursula.kose at philips.com) Date: Thu, 6 Jan 2005 15:38:11 +0100 Subject: [vtkusers] Question about VTK 5.0 Message-ID: Is there any date in the near future (+- 1 month) planned for releasing VTK version 5.0 as has been planned for the roadmap? U. From thomas.dunne at iwr.uni-heidelberg.de Thu Jan 6 17:20:32 2005 From: thomas.dunne at iwr.uni-heidelberg.de (Thomas Dunne) Date: Thu, 6 Jan 2005 23:20:32 +0100 (CET) Subject: [vtkusers] Re: homogenizing vector fields on strongly refined grids In-Reply-To: References: Message-ID: Hello, > I work with results/grids that are locally refined, sometimes very > much. When viewing the vector field with hedgehogs this becomes > troublesome, since there are very dense fields of hedgehogs where there > is much local refinement. > > I would like to spread a selected number of hedgehogs evenly in the domain > regardless of the underlying grid. > > I have thought of using the cutter with a plane, but wouldn't that just > result in the same points/lines/cells again? > > Does anyone know how to do this? > Suggestions, keywords or examples will be greatly appreciated! must be charma, not long after I post the question to the list, I figure it out... there must be some Murphys Law name for this! although the solution is (I think) standard, it might interest some: the core object is vtkProbeFilter, * with SetSource set the vector field to use * with SetInput set points on which the vectors are to be interpolated from the source data the homogenized pointfield can be created with the objects vtkPlaneWidget, vtkPolyData and vtkTriangleFilter (if the vector field is from an unstructured grid) the output of the vtkProbeFilter is later used as the source vector field. are there other/better ways of getting the same result? There is a bit of memory waste I think, since if the source domain isn't a quadrilateral (a circle with a hole in it for example). Covering this with a planewidget could lead to actually having e.g. double as many points as needed. Is there a short way of cutting off all points and cells that aren't part of original domain? thanks, tom ps: the thread view of the mailing list looks broken....? From t_veo73 at hotmail.com Thu Jan 6 17:56:22 2005 From: t_veo73 at hotmail.com (Siemens Medical Solutions SMS) Date: Thu, 06 Jan 2005 22:56:22 +0000 Subject: [vtkusers] Visualization/Segmentation Experts (Open Positions) Message-ID: To apply please send your cover letter with your resume to visualization at sms.siemens.com Open Positions at Siemens Medical Solution at Princeton NJ ==================================== Siemens Medical Solutions USA at Princeton NJ has several openings in Scientist/Sr. Scientist and Software Engineer/Sr. Software Engineer positions. We are also looking for talented intern students, international intern students in medical imaging and/or visualization fields. Medical Visualization Scientist / Sr. Scientist ---------------------------------------------------------- Job Description: The position is responsible for Advanced Technology Development. In this role, you will drive the advance of technology in medical imaging, visualization and related clinical applications. To bring new technology to the market, you will work in the development team and are responsible for designing, developing, troubleshooting and testing new 2D /3D/4D imaging features in the syngo platform following our established development process. Qualifications: ? MS or PhD in Computer Science, Engineering, Mathematics, or equivalent ? Strong analytical skill, problem solving skill and algorithm development skill ? Strong working knowledge in volume rendering technology ? Good hands on experience in C++/C#, object-oriented design methodologies, Windows development environment and MS Dev. Studio ? Working experience in medical imaging, 2D/3D/4D technologies and/or related clinical application development is highly desirable ? Strong knowledge in segmentation, deformation and registration or hands on experience in GPU are a plus SW / Sr. SW Engineer ------------------------------ Job Description: The position is responsible for designing, developing, troubleshooting software. Design, develop, and test new 2D /3D/4D imaging features in the syngo platform following our established development process. Qualifications: ? BS or MS in Computer Science, Engineering, Mathematics, or equivalent, plus four years software design and development experiences ? Strong experience in C++/C#, .net, object-oriented methodologies and design tools, windows (2000 or XP) development environment and MS Dev. Studio ? Knowledge in medical imaging, visualization technologies are highly desirable ? Experienced in performance profiling, performance analysis and related tools, strong experience in algorithm development, and/or performance optimization using MMX/SSE/SSE2 is a plus ? Strong hands on experience in GPU is highly desirable ? Familiar with software product lifecycle, SQA and version control tool such as ClearCase. Intern Student / International Intern Student --------------------------------------------------------------- Job Description: During a period of 6 months you will be responsible for designing, developing, troubleshooting software prototypes. Qualifications: ? BS or MS in Computer Science Student or equivalent Company Description: ============= We are one of the largest global suppliers of healthcare equipment, renowned for innovative products, services and solutions including diagnostic imaging systems, therapy equipment for treatment and electro-medicine and IT solutions to optimize workflow and increase efficiency in the healthcare industry. Siemens is an Equal Opportunity Employer encouraging diversity in the workplace Candidates with good matching technical background but less working experience can be considered at a lower experience level position To apply please send your cover letter with your resume to visualization at sms.siemens.com From ursula.kose at philips.com Fri Jan 7 01:14:10 2005 From: ursula.kose at philips.com (ursula.kose at philips.com) Date: Fri, 7 Jan 2005 07:14:10 +0100 Subject: [vtkusers] Question about VTK 5.0 Message-ID: Is there any date in the near future (+- 1 month) planned for releasing VTK version 5.0 as has been planned for the roadmap? U. _______________________________________________ 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 From jnik0l at yahoo.gr Fri Jan 7 03:56:16 2005 From: jnik0l at yahoo.gr (Yianis Nikolaou) Date: Fri, 7 Jan 2005 08:56:16 +0000 (GMT) Subject: [vtkusers] Memory leaks Message-ID: <20050107085616.6917.qmail@web26808.mail.ukl.yahoo.com> Hi, are there any plans in the near future to correct the bug described in post Wed Feb 25 17:39:31 EST 2004 [vtkusers] memory leak in windows/mfc which leads to 5200 bytes memoty leak when using version 4.2 and 5600 bytes when using 4.4? best regards yianis nikolaou Mech. Eng. ____________________________________________________________ Do You Yahoo!? ????????? ?? ?????? @yahoo.gr ????????? ??? ??? http://www.otenet.gr From StephanTheisen at gmx.de Fri Jan 7 06:33:50 2005 From: StephanTheisen at gmx.de (Stephan Theisen) Date: Fri, 7 Jan 2005 12:33:50 +0100 (MET) Subject: [vtkusers] implement volumepro1000 Message-ID: <4672.1105097630@www48.gmx.net> Hello together! In the Moment I'm developing a Java GUI to present some Dicom-Data. I have implement the vtk classes in my Java SDK, no problem. But now I will use the vtk classes for the terarecon VolumePro1000 Hardware and I still doesn't know, how I can get this classes in my application. I allready installed the volumepro1000 software and downloaded the aditional package from vtk support page. Can anyboby tell me, where I have to copy the three diverent parts of the support package. It is very important for me. Please help me! Stephan -- +++ GMX - die erste Adresse f?r Mail, Message, More +++ 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail From pallavi.joshi at vanderbilt.edu Fri Jan 7 12:16:16 2005 From: pallavi.joshi at vanderbilt.edu (Pallavi Joshi) Date: Fri, 7 Jan 2005 11:16:16 -0600 Subject: [vtkusers] vtkStripper question Message-ID: <003c01c4f4dc$99297530$a0583b81@Pallavi> Hi all, I am trying to merge lines into a polyline by using vtkStripper. I get more then one polyline at the output. Now I want to use only the biggest line from them. Is there a way to arrange these lines in accordance to their size ? Please help. Thanks, Pallavi ------------------------------------------------------------------- ------------------------------------------------------------------- Pallavi Joshi Graduate Student Medical Image Processing Lab Vanderbilt University -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From apbai at yahoo.com Fri Jan 7 12:24:26 2005 From: apbai at yahoo.com (P Bai) Date: Fri, 7 Jan 2005 09:24:26 -0800 (PST) Subject: [vtkusers] Shaded lines or points? Message-ID: <20050107172426.10972.qmail@web13125.mail.yahoo.com> Hi all, I wonder how to render shaded lines or points in VTK. How do I set up normals for shaded lines? vtkPolyDataNormals seems to only work with polygons/triangles. Thanks! P __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From hardenbergh at terarecon.com Fri Jan 7 12:32:44 2005 From: hardenbergh at terarecon.com (Jan Hardenbergh) Date: Fri, 7 Jan 2005 12:32:44 -0500 Subject: [vtkusers] Re: implement volumepro1000 Message-ID: I am very sorry that this is the way it is. I was supposed to give Lisa a new link last summer. This link is for the VP500 and is very obsolete. http://www.vtk.org/get-software-vp.php The best thing for VTK users to do to get the "mini SDK" needed for VTK is to contact Kristen Veilleux, veilleux at terarecon.com YON - Jan C. Hardenbergh, hardenbergh at terarecon.com, 978-369-6500x272 Director of VolumePro Software Engineering, TeraRecon, Inc. Concord Office -------------- next part -------------- An HTML attachment was scrubbed... URL: From pallavi.joshi at vanderbilt.edu Fri Jan 7 12:34:47 2005 From: pallavi.joshi at vanderbilt.edu (Pallavi Joshi) Date: Fri, 7 Jan 2005 11:34:47 -0600 Subject: [vtkusers] vtkStripper Message-ID: <009101c4f4df$2f5c50c0$a0583b81@Pallavi> Hi all, I am trying to merge lines into a polyline by using vtkStripper. I get more then one polyline at the output. Now I want to use only the biggest line from them. Is there a way to arrange these lines in accordance to their size ? Please help. Thanks, Pallavi ------------------------------------------------------------------- Pallavi Joshi Graduate Student Medical Image Processing Lab Vanderbilt University Phone: 615-343-6259 -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmpd at onetel.com Fri Jan 7 14:47:59 2005 From: dmpd at onetel.com (D.M.P.Davies) Date: Fri, 07 Jan 2005 19:47:59 +0000 Subject: [vtkusers] Reissue of vtk binaries-4.? on Windows 95 Message-ID: <41DEE76F.2D5081CD@onetel.com> Any Windows 95 users out there, Has anyone out there managed to run the windows binaries of vtk4.? (from tcl) over the last year. I contactedthe user group stating that the pipeline, for an altered method ,did not seem to operate. The advice given was to get rid of all evidence of earlier versions of tcl and vtk from the system - this was impractical as I was developing a l arge tcl application. Now ---- Goodwin Taylor has generated a Starkit for version 4.5 (great idea) - which allows me to easily test on a second windows 95 OS (with no MS Studio/Tcl/vtk on it0 and the current laptop Result : both systems show exectly the same error. [Note Goodwin did point out that the pipeline execution code has changed (and changing) in 4.5] So..... - has anyone managed to get a working windows 95 version??????? Many Thanks in anticipation. Dave Davies From jfrederich at mac.com Sat Jan 8 14:27:25 2005 From: jfrederich at mac.com (Jens Frederich) Date: Sat, 08 Jan 2005 19:27:25 -0000 Subject: [vtkusers] reading row 3D voxel data Message-ID: <7C576394-4147-11D8-A56E-000A95A0B65C@mac.com> Hi all, what is the best class (way) for reading 3D binary row voxel data. The data is saved in one file, not many 2D images. I would do volume rendering, isosurface, contour etc with this data. With the volume rendering library vgl (http://www.volumegraphics.com/products/vgl/index.html) is this very simple. Here a code sample: VGLSampleGridData* volumeData = new VGLSampleGridData (VGL_TYPE_UINT16); // load voxel data: VGLSampleGridIO* importPlugIn = VGLSampleGridIO::create ("raw"); importPlugIn->setHeaderSkip (40); imortPlugIn->setSampleGridSize (VGLSampleGridSize (42,42,42)); importPlugIn->setSampleGridSize (VGLSampleGridSize (250,250,1)); importPlugIn->setSampleDataType (VGL_TYPE_UINT16); importPlugIn->open ("../data/simdata4.vol"); importPlugIn->read (volumeData); importPlugIn->close (); delete importPlugIn; It's very easy. But I search the same on vtk please. Thanks for help. Best regards, Jens From jfrederich at mac.com Sat Jan 8 17:24:00 2005 From: jfrederich at mac.com (Jens Frederich) Date: Sat, 08 Jan 2005 22:24:00 -0000 Subject: [vtkusers] reading row 3D voxel data Message-ID: <26B160CC-4160-11D8-B781-000A95A0B65C@mac.com> Hi all, what is the best class (way) for reading 3D binary row voxel data. The data is saved in one file, not many 2D images. I would do volume rendering, isosurface, contour etc with this data. With the volume rendering library vgl (http://www.volumegraphics.com/products/vgl/index.html) is this very simple. Here a code sample: VGLSampleGridData* volumeData = new VGLSampleGridData (VGL_TYPE_UINT16); // load voxel data: VGLSampleGridIO* importPlugIn = VGLSampleGridIO::create ("raw"); importPlugIn->setHeaderSkip (40); imortPlugIn->setSampleGridSize (VGLSampleGridSize (42,42,42)); importPlugIn->setSampleGridSize (VGLSampleGridSize (250,250,1)); importPlugIn->setSampleDataType (VGL_TYPE_UINT16); importPlugIn->open ("../data/simdata4.vol"); importPlugIn->read (volumeData); importPlugIn->close (); delete importPlugIn; It's very easy. But I search the same on vtk please. Thanks for help. Best regards, Jens From jfrederich at mac.com Sun Jan 9 06:23:49 2005 From: jfrederich at mac.com (Jens Frederich) Date: Sun, 09 Jan 2005 11:23:49 -0000 Subject: [vtkusers] reading row 3D voxel data Message-ID: <1579D567-41CD-11D8-A553-000A95A0B65C@mac.com> Hi all, what is the best class (way) for reading 3D binary row voxel data. The data is saved in one file, not many 2D images. I would do volume rendering, isosurface, contour etc with this data. With the volume rendering library vgl (http://www.volumegraphics.com/products/vgl/index.html) is this very simple. Here a code sample: VGLSampleGridData* volumeData = new VGLSampleGridData (VGL_TYPE_UINT16); // load voxel data: VGLSampleGridIO* importPlugIn = VGLSampleGridIO::create ("raw"); importPlugIn->setHeaderSkip (40); imortPlugIn->setSampleGridSize (VGLSampleGridSize (42,42,42)); importPlugIn->setSampleGridSize (VGLSampleGridSize (250,250,1)); importPlugIn->setSampleDataType (VGL_TYPE_UINT16); importPlugIn->open ("../data/simdata4.vol"); importPlugIn->read (volumeData); importPlugIn->close (); delete importPlugIn; It's very easy. But I search the same on vtk please. Thanks for help. Best regards, Jens From dan at chalkie.org.uk Sun Jan 9 15:05:22 2005 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Sun, 9 Jan 2005 22:05:22 +0200 Subject: [vtkusers] Re: volumepro1000 In-Reply-To: <20050107170009.BC33234824@public.kitware.com> References: <20050107170009.BC33234824@public.kitware.com> Message-ID: Hi Stephan follow the instructions in the rfeadme to install the volumepro kernel module support in linux you need to have the vli3 library in your path, and also build vtk with volumepro1000 support. set the correct flag using ccmake. I have a modified version of th3 volume module for the vtk application mayavi which allows use of the volumepro1000 board. On linux you have to use a 2.4 kernel, as the 2.6 kernel is not supported by the kernel module good luck Dan On 7 Jan 2005, at 19:00, vtkusers-request at vtk.org wrote: > Content-Type: text/plain; charset="us-ascii" > > Hello together! > > In the Moment I'm developing a Java GUI to present some Dicom-Data. > I have implement the vtk classes in my Java SDK, no problem. > But now I will use the vtk classes for the terarecon VolumePro1000 > Hardware > and I still doesn't know, how I can get this classes in my > application. I > allready installed the volumepro1000 software and downloaded the > aditional > package from vtk support page. > Can anyboby tell me, where I have to copy the three diverent parts of > the > support package. > It is very important for me. Please help me! > > Stephan > > Dr. Daniel James White BSc. (Hons.) PhD Cell Biology, Ambiotica C242 Department of biological and environmental science PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 14 260 4183 (work) +358 468102840 (mobile) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From dmpd at onetel.com Sun Jan 9 15:25:48 2005 From: dmpd at onetel.com (D.M.P.Davies) Date: Sun, 09 Jan 2005 20:25:48 +0000 Subject: [vtkusers] Re: Your VTKit - Runtime Libraries needed? References: <200411261250.39913.trinks@esc.cam.ac.uk> <41AF75F8.F124CE96@onetel.com> <001201c4d8ac$1fdfed40$0e01a8c0@Renasci> <41B5D5F2.72E47686@onetel.com> <015601c4dca0$99f20670$0f01a8c0@Renasci> <41B8518F.254C0CD2@onetel.com> <004901c4ddf5$a3f672e0$0f01a8c0@Renasci> <41BF45A8.F1B004C4@onetel.com> <006701c4e219$dcdf0680$0f01a8c0@Renasci> <41C73127.4A443859@onetel.com> <004801c4e6f4$25a97dd0$0f01a8c0@Renasci> Message-ID: <41E1934C.C7606895@onetel.com> Goodwin Lawlor wrote: > Hi Dave, I've tested vtkit on a clean WinXP machine and your script > worked once I called "renWin Render" ---------------------- Sorry for the delay Goodwin. I tried to ask the vtkusers if anyone had successfully run version 4.? binaries on a windows 95 O/S but had my email bounced back by the postfix program at public.kitware.com. I haven't asked a question for over a year so something has obviously changed there.... (what a bind...) I've now loaded the Starkits and test program geom.kit onto a pcmcia.. disk and intend to try it on other hardware . Getting Desperate.. Don't want to change the O/S just yet. Many thanks Dave (Davies) -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Pont at ForestResearch.co.nz Sun Jan 9 19:31:05 2005 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Mon, 10 Jan 2005 13:31:05 +1300 Subject: [vtkusers] Reflecting vtkPolyData about a plane In-Reply-To: Message-ID: "Ben Held" wrote on 31/12/2004 01:59:15: Here are a couple of rough ideas: A vtkTransform with Scale set to -1 (for one of X, Y or Z) will reflect through an axis aligned plane. See the code for vtkPlaneSource for techniques to use transforms with planes of arbitrary orientation (defined either with center and normal or corner points). You could use you plane location/orientation to derive transforms applied to your polydata, first to transform from current position to an axis aligned position, then to reflect, then reverse the intial transform to return to 'current' position (but reflected) ... ? Would correctly specified XYZ Scale values, normalised to represent a unit vector (negative), reflect in an arbitrary plane ? Dave P > Hi Amy, > > Thanks for the advice. However, I need to reflect about non-axis-aligned > planes too. > > Ben > > -----Original Message----- > From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org]On > Behalf Of Amy Henderson > Sent: Wednesday, December 29, 2004 2:55 PM > To: vtkusers at public.kitware.com > Subject: Re: [vtkusers] Reflecting vtkPolyData about a plane > > > Hi Ben, > > If you want to reflect about an axis-aligned plane (X=, Y=, or Z=), then > try using vtkReflectionFilter. It can take a vtkPolyData as input, but it > produces a vtkUnstructuredGrid as output. > > - Amy > > At 02:16 PM 12/29/2004, Ben Held wrote: > >Is there an easy way to reflect a vtkPolyData about a plane? I have looked > >into vtkTransformPolyData, but I don't see a direct way to create a > >vtkTransform that represnets a reflection? > > > >Thanks in adavance. > > From kurtzhao at yeah.net Mon Jan 10 13:07:11 2005 From: kurtzhao at yeah.net (kurt) Date: Mon, 10 Jan 2005 10:07:11 -0800 Subject: [vtkusers] Re: reading row 3D voxel data Message-ID: <20050110020733.B9346347AE@public.kitware.com> Hi Jens, As far as I know, there is not a conveniet way to do so, correct me if I am wrong. However, 'coz ITK support many formats 3D images, I use ITK to read the images at first, then convert them to vtkImageData. The code is enclosed. Please note, what u need to do is adding headers for the *.img (the raw data). the headers supported by ITK are *.mha and *.hdr. The former u can find details from ITK's documents. but it is fairly simple, something like that: NDims = 3 DimSize = 256 256 63 ElementType = MET_UCHAR ElementSpacing = 1.0 1.0 1.0 ElementByteOrderMSB = False ElementDataFile = 1.img u can make the *.hdr using MRIcro, u may download it from www.mricro.com. The former is simpler, but I recommand the later header, it is more convenient to use. Good luck! Kurt Zhao bool MyImage::ImgReader(vtkImageData * vtkImage, const char * ImgFileName) { typedef unsigned short SegPixelType; typedef itk::Image< SegPixelType, Dimension > ImageType; typedef itk::ImageFileReader< ImageType > ImageReaderType; ImageReaderType::Pointer ImageReader = ImageReaderType::New(); ImageReader->SetFileName( ImgFileName ); std::cout<< "Reading the image "<< ImageReader->GetFileName()<<"......"<Update(); } catch( itk::ExceptionObject & excep ) { std::cerr << "Exception Caught !" << std::endl; std::cerr << excep << std::endl; } ImageReader->GetOutput()->ReleaseDataFlagOn(); ImageType *itkImg=ImageReader->GetOutput(); typedef itk::VTKImageExport ImageExportType; ImageExportType::Pointer itkExporter = ImageExportType::New(); itkExporter->SetInput(itkImg); vtkImageImport* vtkImporter = vtkImageImport::New(); ConnectPipelines(itkExporter, vtkImporter); vtkImporter->Update(); vtkImageData *tImage=vtkImporter->GetOutput(); vtkImage->DeepCopy(tImage); vtkImage->SetSpacing(1,1,1); // vtkImage->Print(std::cout); vtkImporter->Delete(); return false; } template void ConnectPipelines(ITK_Exporter exporter, VTK_Importer* importer) { // importer->SetUpdateInformationCallback(exporter->GetUpdateInformationCallback()); // importer->SetPipelineModifiedCallback(exporter->GetPipelineModifiedCallback()); importer->SetWholeExtentCallback(exporter->GetWholeExtentCallback()); importer->SetSpacingCallback(exporter->GetSpacingCallback()); importer->SetOriginCallback(exporter->GetOriginCallback()); importer->SetScalarTypeCallback(exporter->GetScalarTypeCallback()); importer->SetNumberOfComponentsCallback(exporter->GetNumberOfComponentsCallback()); importer->SetPropagateUpdateExtentCallback(exporter->GetPropagateUpdateExtentCallback()); importer->SetUpdateDataCallback(exporter->GetUpdateDataCallback()); importer->SetDataExtentCallback(exporter->GetDataExtentCallback()); importer->SetBufferPointerCallback(exporter->GetBufferPointerCallback()); importer->SetCallbackUserData(exporter->GetCallbackUserData()); } 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. reading row 3D voxel data (Jens Frederich) 2. reading row 3D voxel data (Jens Frederich) 3. reading row 3D voxel data (Jens Frederich) ---------------------------------------------------------------------- Message: 1 Date: Wed, 7 Jan 2004 20:27:09 +0100 From: Jens Frederich < jfrederich at mac.com> Subject: [vtkusers] reading row 3D voxel data To: vtk < vtkusers at vtk.org> Message-ID: < 7C576394-4147-11D8-A56E-000A95A0B65C at mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Hi all, what is the best class (way) for reading 3D binary row voxel data. The data is saved in one file, not many 2D images. I would do volume rendering, isosurface, contour etc with this data. With the volume rendering library vgl (http://www.volumegraphics.com/products/vgl/index.html) is this very simple. Here a code sample: VGLSampleGridData* volumeData = new VGLSampleGridData (VGL_TYPE_UINT16); // load voxel data: VGLSampleGridIO* importPlugIn = VGLSampleGridIO::create ("raw"); importPlugIn-> setHeaderSkip (40); imortPlugIn-> setSampleGridSize (VGLSampleGridSize (42,42,42)); importPlugIn-> setSampleGridSize (VGLSampleGridSize (250,250,1)); importPlugIn-> setSampleDataType (VGL_TYPE_UINT16); importPlugIn-> open ("../data/simdata4.vol"); importPlugIn-> read (volumeData); importPlugIn-> close (); delete importPlugIn; It's very easy. But I search the same on vtk please. Thanks for help. Best regards, Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.deBoer at polytec.de Mon Jan 10 03:17:22 2005 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 10 Jan 2005 09:17:22 +0100 Subject: [vtkusers] Question about VTK 5.0 Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD9014501E6@02polywbr.waldbronn.polytec.de> Yeah, it would be great to get any news about that. greets Ingo --- Dr.-Ing. Ingo H. de Boer Polytec GmbH Polytec-Platz 1-7, 76337 Waldbronn, Germany phone: ++49 7243 604 0 fax : ++49 7243 604 255 > > Is there any date in the near future (+- 1 month) planned for > releasing > VTK version 5.0 as has been planned for the roadmap? > > U. From I.deBoer at polytec.de Mon Jan 10 09:10:31 2005 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 10 Jan 2005 15:10:31 +0100 Subject: [vtkusers] Line intersection with volume ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD9014501EA@02polywbr.waldbronn.polytec.de> Hi all, I have this problem, that I have a given line and a given 3D volume and I want to know, if the intersect. Any hints in that direction ? Do I have to use something in the direction of raycast or so... ? (it's a bit more generell, not specific on VTK) greets Ingo --- Dr.-Ing. Ingo H. de Boer Polytec GmbH Polytec-Platz 1-7, 76337 Waldbronn, Germany phone: ++49 7243 604 0 fax : ++49 7243 604 255 From I.deBoer at polytec.de Mon Jan 10 09:23:27 2005 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 10 Jan 2005 15:23:27 +0100 Subject: [vtkusers] Line intersection with volume ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD9014501EB@02polywbr.waldbronn.polytec.de> Another thing: The intersection of 2 given 3D volumes. How can I determine the intersected volume ? greets Ingo > Hi all, > > I have this problem, that I have a given line and a > given 3D volume and I want to know, if the intersect. > > Any hints in that direction ? Do I have to use > something in the direction of raycast or so... ? > (it's a bit more generell, not specific on VTK) > > greets > Ingo > > > --- > Dr.-Ing. Ingo H. de Boer > > Polytec GmbH > Polytec-Platz 1-7, 76337 Waldbronn, Germany > phone: ++49 7243 604 0 > fax : ++49 7243 604 255 From brad.king at kitware.com Mon Jan 10 09:39:25 2005 From: brad.king at kitware.com (Brad King) Date: Mon, 10 Jan 2005 09:39:25 -0500 Subject: [vtkusers] Memory leaks In-Reply-To: <20050107085616.6917.qmail@web26808.mail.ukl.yahoo.com> References: <20050107085616.6917.qmail@web26808.mail.ukl.yahoo.com> Message-ID: <41E2939D.4020409@kitware.com> Yianis Nikolaou wrote: > are there any plans in the near future to correct the bug described in > post > > Wed Feb 25 17:39:31 EST 2004 [vtkusers] memory leak in windows/mfc > > which leads to 5200 bytes memoty leak when using version 4.2 and 5600 > bytes when using 4.4? If it is not in the bug tracker it probably won't be fixed. The bug tracker is here: http://www.vtk.org/Bug -Brad From xxiao715 at yahoo.com.cn Mon Jan 10 10:50:06 2005 From: xxiao715 at yahoo.com.cn (Xiao Xian) Date: Mon, 10 Jan 2005 23:50:06 +0800 (CST) Subject: [vtkusers] about vtkPowerCrustSurfaceReconstruction Message-ID: <20050110155006.36136.qmail@web15401.mail.cnb.yahoo.com> Hi, I'm trying to use the class vtkPowerCrustSurfaceReconstruction, the implementation of some a kind of surface construction algorithm. I made some simple point data manually as the input to this class, and then got some link errors: LINK : warning LNK4049: locally defined symbol ""public: static class vtkPowerCrustSurfaceReconstruction * __cdecl vtkPowerCrustSurfaceReconstruction::New(void)" (?New at vtkPowerCrustSurfaceReconstruction@@SAPAV1 at XZ)" imported vtkPowerCrustSurfaceReconstruction.obj : error LNK2001: unresolved external symbol "protected: virtual class vtkObject * __thiscall vtkPowerCrustSurfaceReconstruction::NewInstanceInternal(void)const " (?NewInstanceInternal at vtkPowerCrustSurfaceRecons truction@@MBEPAVvtkObject@@XZ) vtkPowerCrustSurfaceReconstruction.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkPowerCrustSurfaceReconstruction::IsA(char const *)" (?IsA at vtkPowerCrustSurfaceReconstruction@@UAEHPBD at Z) vtkPowerCrustSurfaceReconstruction.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall vtkPowerCrustSurfaceReconstruction::GetClassNameA(void)const " (?GetClassNameA at vtkPowerCrustSurfaceReconstruction@@UBEPBDXZ) vtkPowerCrustSurfaceReconstruction.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) const vtkPowerCrustSurfaceReconstruction::`vftable'" (__imp_??_7vtkPowerCrustSurfaceReconstruction@@6B@) Debug/cube.exe : fatal error LNK1120: 4 unresolved externals Error executing link.exe. cube.exe - 5 error(s), 1 warning(s) who can help? Thanks a lot!!! Regards Darby --------------------------------- Do You Yahoo!? ??????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Jan 10 12:48:00 2005 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 10 Jan 2005 12:48:00 -0500 Subject: [Fwd: [vtkusers] Question about VTK 5.0] In-Reply-To: <41E293FF.9070703@kitware.com> Message-ID: <20050110174910.YEJK8244.fep01.biz.rr.com@Grayson> > Is there any date in the near future (+- 1 month) planned for releasing > VTK version 5.0 as has been planned for the roadmap? We are still working on the pipeline changes and AMR support for VTK 5.0. But we can see the light at the end of the tunnel. Right now I'd guess that the release will be in March or April. It should have AMR support, generic cell API support, time support, and field request support amongst a bunch of other changes. Thanks Ken From dark_computing at telkom.net Mon Jan 10 14:06:55 2005 From: dark_computing at telkom.net (Dark Computing) Date: Tue, 11 Jan 2005 02:06:55 +0700 Subject: [vtkusers] need help on vtkArcPlotter Message-ID: <000501c4f747$93fa2740$0102a8c0@j> Hi All, I am very new in VTK and I would greatly appreciate a help on these matters : 1. How can I acquire points contained in the vtkArcPlotter's output (which is a vtkPolyData isn't?), because I tried to do this in TCL script : ... vtkArcPlotter arc arc SetInput someDataset puts [[arc GetOutput] GetNumberOfPoints] .. the output is : 0, while someDataSet contains a polyline with some points, and it looks well when I try to render it 2. how can I make vtkArcPlotter looks solid (polygon) and can be colored by the scalars, instead of only a polyline. If I try to use vtkRibbonFilter instead, it looks neat but the problem is that the width is varied on both sides. Please help and thank you in advance Jaya From amy.henderson at kitware.com Mon Jan 10 14:16:18 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Mon, 10 Jan 2005 14:16:18 -0500 Subject: [vtkusers] need help on vtkArcPlotter In-Reply-To: <000501c4f747$93fa2740$0102a8c0@j> References: <000501c4f747$93fa2740$0102a8c0@j> Message-ID: <6.2.0.14.2.20050110141442.03ed39e0@pop.biz.rr.com> At 02:06 PM 1/10/2005, Dark Computing wrote: >Hi All, I am very new in VTK and I would greatly appreciate a help on >these matters : > > >1. How can I acquire points contained in the vtkArcPlotter's output >(which is a vtkPolyData isn't?), because I tried to do this in TCL >script : > >... >vtkArcPlotter arc > arc SetInput someDataset > >puts [[arc GetOutput] GetNumberOfPoints] >.. > >the output is : 0, while someDataSet contains a polyline with some >points, and it looks well when I try to render it You need to call Update on the arc plotter before you try to access information from its output. This is not a problem when you render the data because the rendering process updates the filter for you. Try adding "arc Update" (without the quotation marks) before trying to get the number of points from the output. - Amy >2. how can I make vtkArcPlotter looks solid (polygon) and can be colored >by the scalars, instead of only a polyline. If I try to use >vtkRibbonFilter instead, it looks neat but the problem is that the width >is varied on both sides. > > >Please help and thank you in advance > >Jaya > >_______________________________________________ >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 From rendezvous at dreamxplosion.com Mon Jan 10 14:16:11 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Mon, 10 Jan 2005 14:16:11 -0500 Subject: [vtkusers] complex to absolute value filter? Message-ID: <16FE855B-633C-11D9-9838-000A95D7CA24@dreamxplosion.com> Hi everyone. I was wondering if anyone knows of a filter to convert (3D volume) complex data to absolute value data. I'm reading an MRI complex data file with vtkImageReader with dimensionality 3 and numberofcomponents 2 (complex 3d volume) and I want to visualize it. Before that I need to convert the complex 3d volume to absolute value 3d volume. thanks, marius From U.Koehler at gmx.de Mon Jan 10 05:30:22 2005 From: U.Koehler at gmx.de (Dr. Uwe =?iso-8859-1?q?K=F6hler?=) Date: Mon, 10 Jan 2005 11:30:22 +0100 Subject: [vtkusers] Re: Bug 1056 In-Reply-To: <494A284229CF5F438D2C0DA16DFAEE31027B73@emacs.dhzb.de> References: <494A284229CF5F438D2C0DA16DFAEE31027B73@emacs.dhzb.de> Message-ID: <200501101130.35906.U.Koehler@gmx.de> Dear Luis, dear Mathieu, after my holiday I did set up a new linux system and compiled the cvs version of ITK to check the interpretation of the DICOM pixel size tags. It did work correctly with the DICOM and GDCM readers. Many thanks for your work!! (For GDCM I did have to copy gdcmConfigure.h to src/gdcmConfigure.h in my include directory.) I saw a discussion about FDA approval in connection with the bug and I believe that image angulations would have to be taken into account in that case (like I do know it from VTK). Thanks again Uwe Am Mittwoch, 15. Dezember 2004 14:35 schrieben Sie: > Hi Uwe, > > Thanks for trying the changes and letting us know about the > order of the spacing. > > Following your indications we just committed a change to > the CVS repository. The pixel spacing along X and Y should > now be in the correct order. > > Please give it a try and let us know if it is working fine now, > this is one of those changes that may seem inocuous but > actually can have quite dangerous consequences. (e.g. when > the images are used for treatement planning). > > > Regards > > > Luis > > > -------------------------- > -- | | -+-----------------------------------------------------------------+- | Dr. Uwe K?hler MR - Physics | | German Heart Institute Berlin | | Augustenburger Platz 1 | | D - 13353 Berlin | | //// Germany | | (@ @) Phone: +49 172 98 11 598 | -+-----oOO--(_)--OOo-----------------------------------------------+- | | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From ursula.kose at philips.com Tue Jan 11 03:53:40 2005 From: ursula.kose at philips.com (ursula.kose at philips.com) Date: Tue, 11 Jan 2005 09:53:40 +0100 Subject: [vtkusers] Line intersection with volume ? Message-ID: Hi Ingo. >Hi all, > >I have this problem, that I have a given line and a >given 3D volume and I want to know, if the intersect. > >Any hints in that direction ? Do I have to use >something in the direction of raycast or so... ? >(it's a bit more generell, not specific on VTK) > >greets > Ingo Did you ever try the vtkCellLocator filter? With locator->SetDataSet you have to give the data set to the filter that you want to check and then you can use the IntersectWithLine function to see whether there is an intersection or not. I don't know how this filter handles multiple intersections (when the line crosses the whole 3D object) but I guess that it will give the first cell the line intersects with. >Another thing: The intersection of 2 given 3D volumes. >How can I determine the intersected volume ? > >greets > Ingo About this other thing: I would probably try to program a filter myself that checks for every point of the one object whether or not it lies in the volume of the other object. I do something similar with the function FindCell that belongs to the vtkDataSet. Greets - uuund tschuesss ;) Ursula From sean at millwood.ca Tue Jan 11 14:50:16 2005 From: sean at millwood.ca (Sean Richards) Date: Tue, 11 Jan 2005 14:50:16 -0500 (EST) Subject: [vtkusers] Supporting non-mouse input devices Message-ID: <29437830.1105473016800.JavaMail.sean@millwood.ca> Hello and happy new year! I am trying to integrate a spaceball with vtk. Spaceball has an SDK associated with it for interfacing with the different buttons and events that the spaceball produces. I have been trying to figure out exactly how to integrate the spaceball with vtk, but have yet to have any success. Could someone please tell me if: 1 - There is anyone out there that has created classes to allow spaceball to work with vtk 2 - How I might go about changing/adding to the vtk tree to add this support My end goal is to use the spaceball instead of a mouse to move actors, rotate them etc. Thanks so much for your time! Sean From kshivann at engineering.uiowa.edu Tue Jan 11 19:17:24 2005 From: kshivann at engineering.uiowa.edu (kshivann at engineering.uiowa.edu) Date: Tue, 11 Jan 2005 18:17:24 -0600 Subject: [vtkusers] simple example for vtkSTLReader Message-ID: <1105489044.41e46c9428012@webmail.engineering.uiowa.edu> hi all, does anyone have a simple example for vtkSTLReader in C++. thank you kiran shivanna From vidyadhar at lucidindia.net Wed Jan 12 04:39:08 2005 From: vidyadhar at lucidindia.net (vidyadhar) Date: Wed, 12 Jan 2005 15:09:08 +0530 Subject: [vtkusers] complex to absolute value filter? References: <16FE855B-633C-11D9-9838-000A95D7CA24@dreamxplosion.com> Message-ID: <001b01c4f88a$90f9c5c0$2d01a8c0@pf244> Hi, Have you looked at vtkImageMagnitude class? Vidyadhar ----- Original Message ----- From: "Marius S Giurgi" To: Sent: Tuesday, January 11, 2005 12:46 AM Subject: [vtkusers] complex to absolute value filter? > Hi everyone. > > I was wondering if anyone knows of a filter to convert (3D volume) > complex data to absolute value data. > I'm reading an MRI complex data file with vtkImageReader with > dimensionality 3 and numberofcomponents 2 (complex 3d volume) and I > want to visualize it. Before that I need to convert the complex 3d > volume to absolute value 3d volume. > > thanks, > marius > > > From kshivann at engineering.uiowa.edu Wed Jan 12 10:06:30 2005 From: kshivann at engineering.uiowa.edu (kshivann at engineering.uiowa.edu) Date: Wed, 12 Jan 2005 09:06:30 -0600 Subject: [vtkusers] example of vtkSTLReader in C++ Message-ID: <1105542390.41e53cf69dda8@webmail.engineering.uiowa.edu> hi all, does anyone have a simple example for vtkSTLReader in C++. thank you kiran shivanna From fdech at uchicago.edu Wed Jan 12 12:33:39 2005 From: fdech at uchicago.edu (Fred Dech) Date: Wed, 12 Jan 2005 11:33:39 -0600 Subject: [vtkusers] VRML2 loader exporter features. Message-ID: <20050112173339.GC8138@bullet.uchicago.edu> hi. does anyone know if there is/isn't a way to load/export Material and Transformation nodes using the standard VRML loader and exporter? if there is a way, i've not been able to discern it from the documentation. thanks much. --fred From freiman at cs.huji.ac.il Wed Jan 12 12:45:48 2005 From: freiman at cs.huji.ac.il (Moti Freiman) Date: Wed, 12 Jan 2005 19:45:48 +0200 Subject: [vtkusers] simple example: vtkSTLReader Message-ID: <41E5624C.9080805@cs.huji.ac.il> Hi! it's very simple, all you need is: vtkSTLReader * reader = vtkSTLReader::New(); reader->SetFileName ("foo.stl"); //param: char * filename reader->Update(); reader->GetOutput(); the getoutput return vtkPolyData *; regards -- Moti Freiman, Graduate Student. Medical Image Processing and Computer-Assisted Surgery Laboratory. School of Computer Science and Engineering. The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel Phone: +(972)-2-658-5371 (laboratory) E-mail: freiman at cs.huji.ac.il WWW site: http://www.cs.huji.ac.il/~freiman -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/2005 From EckhoffM at NAVO.NAVY.MIL Wed Jan 12 17:08:46 2005 From: EckhoffM at NAVO.NAVY.MIL (Eckhoff, Michael A) Date: Wed, 12 Jan 2005 16:08:46 -0600 Subject: [vtkusers] Help this newbie-guinea pig Message-ID: <23E4371F6124D411B59B00805F9FA97115D68248@navont3.navo.navy.mil> Wow, VTK looks great, and I just installed it on my suse-linux 9.1. But how do I run the examples? For example, I type (at the prompt) finance -- to run the example VTK/Examples/Modelling/Cxx/finance.cxx -- as instructed in the README.html, but I get bash: finance: command not found. My path is set to include VTK/bin, where VTK is what you'd think. I did set BUILD_EXAMPLES:BOOL=ON Also, my CMakeError.log contains errors regarding 1) cannot find -lpthreads collect2: ld returned 1 exit status 2) strstream.h: No such file or directory Anyone care to respond? PS Does VTK have any interactive graphics capabilities, like for CAD-type 2D grid generation? Thanks, Mike Eckhoff From Morten.Gulbrandsen at rwth-aachen.de Wed Jan 12 13:29:36 2005 From: Morten.Gulbrandsen at rwth-aachen.de (Morten Gulbrandsen) Date: Wed, 12 Jan 2005 19:29:36 +0100 Subject: [vtkusers] Processing IGES for VTK Message-ID: <41E56C90.5000208@RWTH-Aachen.DE> Hello programmers, does anyone know how to successfully process an arbitrary IGES file for display under VTK? I'm also looking for an IGES developer mailinglist. Initial Graphics Exchange Specifications preferrably one dealing with IGES under VTK Best regards Morten Gulbrandsen Programmer From laohubinbin at sohu.com Wed Jan 12 22:20:02 2005 From: laohubinbin at sohu.com (laohubinbin at sohu.com) Date: Thu, 13 Jan 2005 11:20:02 +0800 (CST) Subject: [vtkusers] Where are the "vtkmyConfigure.h" and "vtkmyUnsorted.lib"? Message-ID: <2013745.1105586402471.JavaMail.postfix@mx25.mail.sohu.com> Hi everyone: I am a beginner of VTK. When I build the project in "VTK-4.4-LatestRelease\VTK\Examples\Build\vtkMy...", there are errors. They are: "fatal error C1083: Cannot open include file: 'vtkmyConfigure.h': No such file or directory" "fatal error LNK1104: cannot open file "vtkmyUnsorted.lib" I have builded VTK-4.4-LatestRelease. I want to know where are the "vtkmyConfigure.h" and "vtkmyUnsorted.lib" files? Thanks very much. From yqtan at realss.com Wed Jan 12 22:26:50 2005 From: yqtan at realss.com (=?GB18030?Q?=D3=C0=C7=BF_=CC=B7?=) Date: Thu, 13 Jan 2005 11:26:50 +0800 Subject: [vtkusers] How to draw a line on an image? Message-ID: <430b5f9058291da9ae0b044024be845a@www.realss.com> Hi, vtk users, I have trouble drawing a line on an image. I used vtkImageReslice to extract vtkImageData and then got vtkImageActor from it. The image displayed exactly as what i had expected. Now I want a line to displayed on the image, but I couldn't make it. If I didn't show the image, the line is visible: ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor Any insight in this problem will be greately appriciated. The complete code is here: package require vtk package require vtkinteraction set xspace 3.2 set yspace 3.2 set zspace 1.5 vtkVolume16Reader reader reader SetDataDimensions 64 64 reader SetDataByteOrderToLittleEndian reader SetFilePrefix "$VTK_DATA_ROOT/headsq/quarter" reader SetImageRange 1 93 reader SetDataSpacing $xspace $yspace $zspace reader SetDataOrigin [expr -0.5 * $xspace * 63] [expr -0.5 * $yspace * 63] [expr -0.5 * $zspace * 92] reader Update vtkTransform transformSagittal transformSagittal RotateX 0 transformSagittal RotateY -90 transformSagittal RotateZ 0 vtkImageReslice resliceSagittal resliceSagittal SetInput [reader GetOutput] [resliceSagittal GetInput] SetUpdateExtentToWholeExtent resliceSagittal SetOutputSpacing 1 1 $xspace resliceSagittal SetResliceTransform transformSagittal resliceSagittal SetOutputExtent 0 511 0 511 0 0 resliceSagittal SetResliceAxesOrigin 0.0 0.0 0.0 resliceSagittal SetOutputDimensionality 2 resliceSagittal InterpolateOn resliceSagittal Update vtkImageMapToWindowLevelColors sagColors sagColors SetInput [resliceSagittal GetOutput] sagColors SetWindow 2000 sagColors SetLevel 1000 vtkImageActor imageSagittal imageSagittal SetInput [sagColors GetOutput] vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren renWin SetSize 512 512 vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkInteractorStyleImage styleImage iren SetInteractorStyle styleImage vtkLineSource lineSource lineSource SetResolution 20 lineSource SetPoint1 0 255 0 lineSource SetPoint2 512 255 0 vtkPolyDataMapper lineMapper lineMapper SetInput [lineSource GetOutput] vtkActor lineActor lineActor SetMapper lineMapper ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor iren Initialize -- ???? ????? ???????????????????????????????? ???????????????????????????????? ???????????????????????????????? ???????????????????????????????? ???????????????????????????????? From tohdj at bii.a-star.edu.sg Wed Jan 12 22:55:46 2005 From: tohdj at bii.a-star.edu.sg (Toh Da Jun) Date: Thu, 13 Jan 2005 11:55:46 +0800 Subject: [vtkusers] changing the positions of points In-Reply-To: <41E5624C.9080805@cs.huji.ac.il> References: <41E5624C.9080805@cs.huji.ac.il> Message-ID: <1105588545.19327.18.camel@ip4-198-v347.research-users.bii> I created 8 points...and rendered them on screen. Even though i changed the position of one of the points, it does not get updated on the screen. I tried re-rendering the vtkRenderer ren1, and vtkRenderWindow renWin, but it still does not get updated. Any idea where i went wrong? tohdj vtkPoints polyVertexPoints polyVertexPoints SetNumberOfPoints 8 polyVertexPoints InsertPoint 0 0 0 0 polyVertexPoints InsertPoint 1 1 0 0 polyVertexPoints InsertPoint 2 1 1 0 polyVertexPoints InsertPoint 3 1 0 1 polyVertexPoints InsertPoint 4 0 1 1 polyVertexPoints InsertPoint 5 0 0 1 polyVertexPoints InsertPoint 6 0 1 0 polyVertexPoints InsertPoint 7 1 1 1 vtkPolyVertex aPolyVertex [aPolyVertex GetPointIds] SetNumberOfIds 8 [aPolyVertex GetPointIds] SetId 0 0 [aPolyVertex GetPointIds] SetId 1 1 [aPolyVertex GetPointIds] SetId 2 2 [aPolyVertex GetPointIds] SetId 3 3 [aPolyVertex GetPointIds] SetId 4 4 [aPolyVertex GetPointIds] SetId 5 5 [aPolyVertex GetPointIds] SetId 6 6 [aPolyVertex GetPointIds] SetId 7 7 vtkUnstructuredGrid aPolyVertexGrid aPolyVertexGrid Allocate 1 1 aPolyVertexGrid InsertNextCell [aPolyVertex GetCellType] [aPolyVertex GetPointIds] aPolyVertexGrid SetPoints polyVertexPoints vtkDataSetMapper aPolyVertexMapper aPolyVertexMapper SetInput aPolyVertexGrid vtkActor aPolyVertexActor aPolyVertexActor SetMapper aPolyVertexMapper aPolyVertexActor AddPosition 0 0 0 [aPolyVertexActor GetProperty] SetDiffuseColor 1 1 1 # Create the usual rendering stuff. vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 # renWin PrefFullScreen renWin SetSize 500 500 vtkRenderWindowInteractor iren iren SetRenderWindow renWin ren1 SetBackground .0 .0 .0 ren1 AddActor aPolyLineActor ren1 AddActor aPolyVertexActor [ren1 GetActiveCamera] Azimuth 30 [ren1 GetActiveCamera] Elevation 20 [ren1 GetActiveCamera] Dolly 2.8 ren1 ResetCameraClippingRange renWin Render polyVertexPoints SetPoint 7 2 2 2 # Change the position of pointID #7 renWin Render # render the image iren AddObserver UserEvent {wm deiconify .vtkInteract} iren Initialize # Reset the view to zoom all in ren1 ResetCamera iren Render From yqtan at realss.com Thu Jan 13 01:01:33 2005 From: yqtan at realss.com (=?GB18030?Q?=D3=C0=C7=BF_=CC=B7?=) Date: Thu, 13 Jan 2005 14:01:33 +0800 Subject: [vtkusers] (no subject) Message-ID: <28bb819a3f29eb51ff88f0dc04d6eb9e@www.realss.com> Hi, vtk users, I have trouble drawing a line on an image. I used vtkImageReslice to extract vtkImageData and then got vtkImageActor from it. The image displayed exactly as what i had expected. Now I want a line to displayed on the image, but I couldn't make it. If I didn't show the image, the line is visible: ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor Any insight in this problem will be greately appriciated. The complete code is here: package require vtk package require vtkinteraction set xspace 3.2 set yspace 3.2 set zspace 1.5 vtkVolume16Reader reader reader SetDataDimensions 64 64 reader SetDataByteOrderToLittleEndian reader SetFilePrefix "$VTK_DATA_ROOT/headsq/quarter" reader SetImageRange 1 93 reader SetDataSpacing $xspace $yspace $zspace reader SetDataOrigin [expr -0.5 * $xspace * 63] [expr -0.5 * $yspace * 63] [expr -0.5 * $zspace * 92] reader Update vtkTransform transformSagittal transformSagittal RotateX 0 transformSagittal RotateY -90 transformSagittal RotateZ 0 vtkImageReslice resliceSagittal resliceSagittal SetInput [reader GetOutput] [resliceSagittal GetInput] SetUpdateExtentToWholeExtent resliceSagittal SetOutputSpacing 1 1 $xspace resliceSagittal SetResliceTransform transformSagittal resliceSagittal SetOutputExtent 0 511 0 511 0 0 resliceSagittal SetResliceAxesOrigin 0.0 0.0 0.0 resliceSagittal SetOutputDimensionality 2 resliceSagittal InterpolateOn resliceSagittal Update vtkImageMapToWindowLevelColors sagColors sagColors SetInput [resliceSagittal GetOutput] sagColors SetWindow 2000 sagColors SetLevel 1000 vtkImageActor imageSagittal imageSagittal SetInput [sagColors GetOutput] vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren renWin SetSize 512 512 vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkInteractorStyleImage styleImage iren SetInteractorStyle styleImage vtkLineSource lineSource lineSource SetResolution 20 lineSource SetPoint1 0 255 0 lineSource SetPoint2 512 255 0 vtkPolyDataMapper lineMapper lineMapper SetInput [lineSource GetOutput] vtkActor lineActor lineActor SetMapper lineMapper ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor iren Initialize From yqtan at realss.com Thu Jan 13 02:48:34 2005 From: yqtan at realss.com (=?GB18030?Q?=D3=C0=C7=BF_=CC=B7?=) Date: Thu, 13 Jan 2005 15:48:34 +0800 Subject: [vtkusers] (no subject) Message-ID: <4d7f1ea5c50d5e75076436cdd780bbbd@www.realss.com> Hi, vtk users, If you have received this message several times, that's because I have received several bounces from vtk-bounces. I have trouble drawing a line on an image. I used vtkImageReslice to extract vtkImageData and then got vtkImageActor from it. The image displayed exactly as what i had expected. Now I want a line to be displayed on the image, but I couldn't make it. If I didn't show the image, the line is visible: ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor Any insight on this problem will be greately appriciated. The complete code in tcl is here: package require vtk package require vtkinteraction set xspace 3.2 set yspace 3.2 set zspace 1.5 vtkVolume16Reader reader reader SetDataDimensions 64 64 reader SetDataByteOrderToLittleEndian reader SetFilePrefix "$VTK_DATA_ROOT/headsq/quarter" reader SetImageRange 1 93 reader SetDataSpacing $xspace $yspace $zspace reader SetDataOrigin [expr -0.5 * $xspace * 63] [expr -0.5 * $yspace * 63] [expr -0.5 * $zspace * 92] reader Update vtkTransform transformSagittal transformSagittal RotateX 0 transformSagittal RotateY -90 transformSagittal RotateZ 0 vtkImageReslice resliceSagittal resliceSagittal SetInput [reader GetOutput] [resliceSagittal GetInput] SetUpdateExtentToWholeExtent resliceSagittal SetOutputSpacing 1 1 $xspace resliceSagittal SetResliceTransform transformSagittal resliceSagittal SetOutputExtent 0 511 0 511 0 0 resliceSagittal SetResliceAxesOrigin 0.0 0.0 0.0 resliceSagittal SetOutputDimensionality 2 resliceSagittal InterpolateOn resliceSagittal Update vtkImageMapToWindowLevelColors sagColors sagColors SetInput [resliceSagittal GetOutput] sagColors SetWindow 2000 sagColors SetLevel 1000 vtkImageActor imageSagittal imageSagittal SetInput [sagColors GetOutput] vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren renWin SetSize 512 512 vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkInteractorStyleImage styleImage iren SetInteractorStyle styleImage vtkLineSource lineSource lineSource SetResolution 20 lineSource SetPoint1 0 255 0 lineSource SetPoint2 512 255 0 vtkPolyDataMapper lineMapper lineMapper SetInput [lineSource GetOutput] vtkActor lineActor lineActor SetMapper lineMapper ren AddProp imageSagittal; # comment this line will make the lineActor visible ren AddActor lineActor iren Initialize From kukimoto at tohwa-u.ac.jp Thu Jan 13 05:01:59 2005 From: kukimoto at tohwa-u.ac.jp (=?ISO-2022-JP?B?GyRCNVdMWjg1GyhCIBskQj8tRyEbKEI=?=) Date: Thu, 13 Jan 2005 19:01:59 +0900 Subject: [vtkusers] iso-surface of vorticity Message-ID: <2A7F8164-654A-11D9-A860-000D93406924@tohwa-u.ac.jp> Hi I'm trying to view an iso-surface(i.e. cutting plane) of vorticity magnitude. Does anyone know the best samples in VTK/Examples/VisualizationAlgorithms? I want to use the computing result of vorticity for iso-surface. I found the vorticity is turned on/of the computing in vtkStreamer. iso-surface ( using vtkCutPlane or vtkGeometoryFridFilter) can not read vtkStreamer::GetOutput. How do I to view vorticity using iso-surface? But, Does vtkStreamer combine with vtkStreamLine or vtkTubeFilter only? --kukimoto From kukimoto at tohwa-u.ac.jp Thu Jan 13 06:22:15 2005 From: kukimoto at tohwa-u.ac.jp (=?ISO-2022-JP?B?GyRCNVdMWjg1GyhCIBskQj8tRyEbKEI=?=) Date: Thu, 13 Jan 2005 20:22:15 +0900 Subject: [vtkusers] iso-surface of vorticity magnitude Message-ID: <60B81176-6555-11D9-A860-000D93406924@tohwa-u.ac.jp> Hi I'm trying to view an iso-surface(i.e. cutting plane) of vorticity magnitude for Plot3D data(bluntfin). Does anyone know the best samples in VTK/Examples/VisualizationAlgorithms? I want to use the computing result of vorticity for iso-surface. I found the vorticity is turned on/of the computing in vtkStreamer. iso-surface ( using vtkCutPlane ,vtkPolyDataMapper or vtkStructuredGridGeometryFilter) can not read vtkStreamer::GetOutput. If it is possible to convert vtkPolyData to vtkDataSet, it would go. How do I to view vorticity using iso-surface? But, Does vtkStreamer combine with vtkStreamLine or vtkTubeFilter only? --kukimoto /****************************/ KUKIMOTO Nobyuki Dept. of Informatics, Tohwa Univ. TEL::+81-92-541-1514(ex.383) FAX::+81-92-552-2707 kukimoto at tohwa-u.ac.jp http://www.tohwa-u.ac.jp/~kukimoto /****************************/ From c.bert at gsi.de Thu Jan 13 06:36:49 2005 From: c.bert at gsi.de (ChristophBert) Date: Thu, 13 Jan 2005 12:36:49 +0100 Subject: [vtkusers] AIX 5.1 Message-ID: <41E65D51.6040500@gsi.de> Hi! Does anybody have experience on running/compiling VTK 4.0 on AIX 5.1? I tried to compile it in the last days and did not succeed. Any help/suggestions are welcome! Thanks, Christoph From c.bert at gsi.de Thu Jan 13 06:50:20 2005 From: c.bert at gsi.de (ChristophBert) Date: Thu, 13 Jan 2005 12:50:20 +0100 Subject: [vtkusers] AIX 5.1 Message-ID: <41E6607C.9040207@gsi.de> Hi! Does anybody have experience on running/compiling VTK 4.0 on AIX 5.1? I tried to compile it in the last days and did not succeed. Any help/suggestions are welcome! Thanks, Christoph From wesbrooks at gmail.com Thu Jan 13 07:09:20 2005 From: wesbrooks at gmail.com (Wesley Brooks) Date: Thu, 13 Jan 2005 12:09:20 +0000 Subject: [vtkusers] Finding line cells that intesect a plane. Message-ID: Dear Users, I'm trying to find a filter to give a list of cells intesected by a given vtkPlane. I'm currently investigating vtkProbeFilter. At present I'm working with a 2D plane but this may change. The data that I'm intersecting is vtkPolyData comprising of only lines. I may, however need to find out which cells of a different type are intersected at a later date. A pointer to Python examples if they exist would be greatly appreciated. Yours Faithfully, Wesley Brooks. From glehmann at imaging.robarts.ca Thu Jan 13 07:38:34 2005 From: glehmann at imaging.robarts.ca (Glen Lehmann) Date: Thu, 13 Jan 2005 07:38:34 -0500 Subject: [vtkusers] changing the positions of points In-Reply-To: <1105588545.19327.18.camel@ip4-198-v347.research-users.bii> References: <41E5624C.9080805@cs.huji.ac.il> <1105588545.19327.18.camel@ip4-198-v347.research-users.bii> Message-ID: <0A292BB8-6560-11D9-BF44-000A956FBE16@imaging.robarts.ca> Hi Toh, You just need to add a polyVertexPoints->Modified() before the second render call. Cheers, Glen On Jan 12, 2005, at 10:55 PM, Toh Da Jun wrote: > I created 8 points...and rendered them on screen. Even though i changed > the position of one of the points, it does not get updated on the > screen. I tried re-rendering the vtkRenderer ren1, and vtkRenderWindow > renWin, but it still does not get updated. > > Any idea where i went wrong? > > > tohdj > > > > > > > vtkPoints polyVertexPoints > polyVertexPoints SetNumberOfPoints 8 > polyVertexPoints InsertPoint 0 0 0 0 > polyVertexPoints InsertPoint 1 1 0 0 > polyVertexPoints InsertPoint 2 1 1 0 > polyVertexPoints InsertPoint 3 1 0 1 > polyVertexPoints InsertPoint 4 0 1 1 > polyVertexPoints InsertPoint 5 0 0 1 > polyVertexPoints InsertPoint 6 0 1 0 > polyVertexPoints InsertPoint 7 1 1 1 > vtkPolyVertex aPolyVertex > [aPolyVertex GetPointIds] SetNumberOfIds 8 > [aPolyVertex GetPointIds] SetId 0 0 > [aPolyVertex GetPointIds] SetId 1 1 > [aPolyVertex GetPointIds] SetId 2 2 > [aPolyVertex GetPointIds] SetId 3 3 > [aPolyVertex GetPointIds] SetId 4 4 > [aPolyVertex GetPointIds] SetId 5 5 > [aPolyVertex GetPointIds] SetId 6 6 > [aPolyVertex GetPointIds] SetId 7 7 > vtkUnstructuredGrid aPolyVertexGrid > aPolyVertexGrid Allocate 1 1 > aPolyVertexGrid InsertNextCell [aPolyVertex GetCellType] [aPolyVertex > GetPointIds] > aPolyVertexGrid SetPoints polyVertexPoints > vtkDataSetMapper aPolyVertexMapper > aPolyVertexMapper SetInput aPolyVertexGrid > vtkActor aPolyVertexActor > aPolyVertexActor SetMapper aPolyVertexMapper > aPolyVertexActor AddPosition 0 0 0 > [aPolyVertexActor GetProperty] SetDiffuseColor 1 1 1 > > > # Create the usual rendering stuff. > vtkRenderer ren1 > vtkRenderWindow renWin > renWin AddRenderer ren1 > # renWin PrefFullScreen > renWin SetSize 500 500 > vtkRenderWindowInteractor iren > iren SetRenderWindow renWin > > ren1 SetBackground .0 .0 .0 > > ren1 AddActor aPolyLineActor > ren1 AddActor aPolyVertexActor > > [ren1 GetActiveCamera] Azimuth 30 > [ren1 GetActiveCamera] Elevation 20 > [ren1 GetActiveCamera] Dolly 2.8 > ren1 ResetCameraClippingRange > > renWin Render > > polyVertexPoints SetPoint 7 2 2 2 # Change the position of pointID #7 > > renWin Render > > # render the image > iren AddObserver UserEvent {wm deiconify .vtkInteract} > iren Initialize > > > # Reset the view to zoom all in > ren1 ResetCamera > iren Render > > > _______________________________________________ > 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 > From jfrederich at mac.com Thu Jan 13 08:24:05 2005 From: jfrederich at mac.com (Jens Frederich) Date: Thu, 13 Jan 2005 14:24:05 +0100 Subject: [vtkusers] API Message-ID: <6601ED7E-6566-11D9-A3D0-000A95A0B65C@mac.com> Hi all, I've a little question. On my work with vtk I've always the same problem. On many classes the parameters from the methods are not documented. For example the class vtkColorTransferFunction. The class has the method AddRGBPoint(double x, double r, double, g, double b). I don't know what is x or r or g. Why are the parameters no documented please and anybody improve this. Best regards, Jens From rakesh_usenet at yahoo.com Thu Jan 13 08:30:26 2005 From: rakesh_usenet at yahoo.com (Rakesh K Sinha) Date: Thu, 13 Jan 2005 05:30:26 -0800 (PST) Subject: [vtkusers] Compilation Errors error: ISO C++ says that these are ambiguous, even though the worst convesion for the first is better than the worst conversion for the second Message-ID: <20050113133026.96532.qmail@web30104.mail.mud.yahoo.com> Hi, I had downloaded recently the latest release of VTK from the web site - http://prdownloads.sourceforge.net/vtk/VTK-4.2-LatestRelease.tar.gz?download . I tried to compile the same on my MandrakeLinux system installation 10.1 . I am running GNU gcc/g++ 3.41 . When I try to build the kit as per the instructions, I got a series of compilation errors , as follows . <-- Compilation Error begins --> /home/Dad/tmp/VTK/IO: building default_target Building dependencies. cmake.depends... Building object file vtkBMPReader.o... /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = double]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:545: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:545: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = float]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:548: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:548: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = long unsigned int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:551: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:551: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = long int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:554: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:554: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = unsigned int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:557: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:557: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:560: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:560: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = short int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:563: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:563: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = short unsigned int]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:566: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:566: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = unsigned char]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:569: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:569: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit h OT = char]': /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:572: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:572: instantiated from here /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are ambiguous, even though the worst conve rsion for the first is better than the worst conversion for the second: /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176: note: candidate 1: std::fp os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t] /home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2: operator+(std::streamoff, long int) make[3]: *** [vtkBMPReader.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_IO] Error 2 make: *** [default_target] Error 2 <--- Log Ends -> Is there anything that I am missing here ? __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From wesbrooks at gmail.com Thu Jan 13 08:53:35 2005 From: wesbrooks at gmail.com (Wesley Brooks) Date: Thu, 13 Jan 2005 13:53:35 +0000 Subject: [vtkusers] Finding line cells that intesect a plane. Message-ID: Dear Users, Further to my last email I've come across vtkExtractGeometry which seems to me close to what I need. I've got the following so far, butchered from online examples and previous code. cutplane = vtk.vtkPlane() cutplane.SetNormal(0,0,1) cutplane.SetOrigin(0,0,z) union = vtk.vtkImplicitBoolean() union.AddFunction(cutplane) union.AddFunction(cutplane) union.SetOperationType(0) extract = vtk.vtkExtractGeometry() extract.SetInput(meshdata) extract.ExtractBoundaryCellsOn() extract.SetImplicitFunction(union) linestripper = vtk.vtkStripper() linestripper.SetInput(extract.GetOutput()) linestripper.GetOutput() numcells = linestripper.GetNumberOfCells() The input - 'meshdata' - is PolyData and for the rest of my code I need the last item - 'linestripper' - to be a vtkPOlyData item and I'm getting vtkUnstructuredGrid. At present I'm using a method that searches through all of the cells to find the point intersections on different planes. Will utalising the above method speed up the process or does the extract geometry filter also search through all the cells which I assume would actually add to the processing time? Thanks again in advance to any help! Yours Faithfully, Wesley Brooks From nNunn at ausport.gov.au Thu Jan 13 08:56:50 2005 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Fri, 14 Jan 2005 00:56:50 +1100 Subject: [vtkusers] OpenGL hardware for Vtk 5 Message-ID: Way back when, Sebastien's and Robert's "VTK Sphere Benchmark" was very useful for getting an idea of the relative performance of the hardware of the day for use with Vtk. Is there any similar table of results for more modern graphics cards? More specifically, can anyone report on the Vtk performance of current consumer-level nVida and ATI graphics cards? I notice the GeForce 6800/6600 family have 8,12 or 16 vertex pipelines -- running at amazing clock speeds! Soon I will need to render 6 separate fields in a single window, each with say 5 million simple triangles and a couple of lights, updated every couple of seconds. Will this sort of pure OpenGL workload be handled by current "games" cards (which apparantly handle 500 frames per second of 1600x1280 OpenGL Doom3 :~) or do the Quadro cards still have better geometry throughput? Since DirectX is irrelevant for Vtk, and SpecViewPerf seems to be testing features not needed for simply splashing around 50 million untextured triangles, a few new benchmarks and results would be very helpful for those tooling up for Vtk 5.0 Also, any comment about Rivatuner and SoftQuadro for Vtk? thanks, Nigel ___________________________________________________________________________________ DON'T MISS OUR SPORTING FUTURE 2005! Early bird registration closes 2 February! Australia's premier sport development forum will be held in Sydney from 2-4 March 2005. Registration forms and program information is available at: http://www.ausport.gov.au/events/osf2005 ___________________________________________________________________________________ This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit www.ausport.gov.au ___________________________________________________________________________________ From fisseler at rob.uni-luebeck.de Thu Jan 13 09:11:14 2005 From: fisseler at rob.uni-luebeck.de (Jens Fisseler) Date: Thu, 13 Jan 2005 15:11:14 +0100 Subject: [vtkusers] API In-Reply-To: <6601ED7E-6566-11D9-A3D0-000A95A0B65C@mac.com> References: <6601ED7E-6566-11D9-A3D0-000A95A0B65C@mac.com> Message-ID: <1105625475.10861.19.camel@pepe.rob.uni-luebeck.de> Hi Jens, > I've a little question. On my work with vtk I've always the same > problem. On many classes the parameters from the methods are not > documented. For example the class vtkColorTransferFunction. The class > has the method AddRGBPoint(double x, double r, double, g, double b). I > don't know what is x or r or g. Why are the parameters no documented > please and anybody improve this. I think the lack of documentation is something you have to live with using open source software. I don't know if closed source libraries are better documented. At least you can to some extent remedy this by reading the source code, which also gives you some knowledge of what is going on under the hood. And when you have some good working knowledge, you can help others by documenting the code, for example. So, in order to help you a little bit, here is my best guess regarding the 'AddRGBPoint' function (someone please correct me if I'm wrong!). I have not used the class 'vtkColorTransferFunction' myself, but it defines a mapping from R (the real numbers) to R^3, a color space, either RGB or HSV. This mapping must be defined somehow, and one way to define such a mapping is by defining a piecewise linear function. Given n real values x_i, with x_1 < x_2 < ... < x_n, a color (either RGB or HSV) c_i is associated with every x_i. Now, if you want to map a new value x using this piecewise linear function, you can find two values x' and x'' with x' < x < x''. The color x is mapped to is given by a linear combination of c' and c'', the colors associated with x' and x'': c = (x - x')/(x''-x') * c' + (x'' - x)/(x''-x') * c'' Of course you also have to take into account the case x == x_i for some i and x < x_1 or x > x_2, i.e. boundary conditions. But I guess this should give you some idea about how 'vtkColorTransferFunction' works. And if you want to know more: read the source. And now back to your question about 'AddRGBPoint(x, r, g, b)'. It just add a new point x, associated with the RGB color (r, g, b), given that the color space used is RGB (you can change this with 'SetColorSpace'). Regards, Jens From fisseler at rob.uni-luebeck.de Thu Jan 13 09:19:34 2005 From: fisseler at rob.uni-luebeck.de (Jens Fisseler) Date: Thu, 13 Jan 2005 15:19:34 +0100 Subject: [vtkusers] API In-Reply-To: <1105625475.10861.19.camel@pepe.rob.uni-luebeck.de> References: <6601ED7E-6566-11D9-A3D0-000A95A0B65C@mac.com> <1105625475.10861.19.camel@pepe.rob.uni-luebeck.de> Message-ID: <1105625974.10861.22.camel@pepe.rob.uni-luebeck.de> > c = (x - x')/(x''-x') * c' + (x'' - x)/(x''-x') * c'' Oops, this is wrong. It should mean c = (x - x')/(x'' - x') * c'' + (x'' - x)/(x'' - x') * c' -- Jens From soeren.gebbert at inpro.de Thu Jan 13 10:06:49 2005 From: soeren.gebbert at inpro.de (Soeren Gebbert) Date: Thu, 13 Jan 2005 16:06:49 +0100 Subject: [vtkusers] Visualisation non linear cells Message-ID: <41E68E89.3090503@inpro.de> Dear vtkusers and developers, I'm using vtk 4.4 and paraview 1.8.2 at linux and windows. I'm a beginner in vtk but i have some important questions to ask: I want to add new nonlinear celltypes to vtk, like a quadratic quad with an area center point and so on. And i want to visualize them with a curved surface. Since now i used paraview to visualize the already implemented quadratic celltypes (QuadraticTetra ...). In paraview i used the TempTessellatorFilter to get a proper visualisation. I thought this filter is also implementet in vtk but it isnt. So i searched for a proper functionality in vtk to get my curved surface, but i didnt found a filter. As it is described in the vtk books, the quadratic cells will be visualized as linear cells. I guess the reimplemented function "Triangulate" from vtkCell in the in the vtkNonLineareCell classes is doing this. But there is a virtual function named Tesselate declrated in vtkNonLinearCell, i guess this function will be used to render curved surfaces, but this function is not implemented yet. So my question is: 1.) Is the function "Triangulate" responsible for the visualisation of the different celltypes in vtk? 2.) If 1. is ture, can i reimplement the Triangulate function to create curved surfaces for nonlineare cells? 3.) Is it possible to reimplement the "Tesselate" function and use this for visualisation of nonlinear cells? 4.) If 1. - 3. is not true, what can i do to visualize 2D and 3D nonlinear cells to get the form that is described in the shape function of these cells? Thanks alot and best regards Soeren Gebbert btw.: Please excuse my english. From soeren.gebbert at inpro.de Thu Jan 13 10:40:09 2005 From: soeren.gebbert at inpro.de (Soeren Gebbert) Date: Thu, 13 Jan 2005 16:40:09 +0100 Subject: [vtkusers] Visualisation non linear cells Message-ID: <41E69659.8070405@inpro.de> Dear vtkusers and developers, I'm using vtk 4.4 and paraview 1.8.2 at linux and windows. I'm a beginner in vtk but i have some important questions to ask: I want to add new nonlinear celltypes to vtk, like a quadratic quad with an area center point and so on. And i want to visualize them with a curved surface. Since now i used paraview to visualize the already implemented quadratic celltypes (QuadraticTetra ...). In paraview i used the TempTessellatorFilter to get a proper visualisation. I thought this filter is also implementet in vtk but it isnt. So i searched for a proper functionality in vtk to get my curved surface, but i didnt found a filter. As it is described in the vtk books, the quadratic cells will be visualized as linear cells. I guess the reimplemented function "Triangulate" from vtkCell in the in the vtkNonLineareCell classes is doing this. But there is a virtual function named Tesselate declrated in vtkNonLinearCell, i guess this function will be used to render curved surfaces, but this function is not implemented yet. So my question is: 1.) Is the function "Triangulate" responsible for the visualisation of the different celltypes in vtk? 2.) If 1. is ture, can i reimplement the Triangulate function to create curved surfaces for nonlineare cells? 3.) Is it possible to reimplement the "Tesselate" function and use this for visualisation of nonlinear cells? 4.) If 1. - 3. is not true, what can i do to visualize 2D and 3D nonlinear cells to get the form that is described in the shape function of these cells? Thanks alot and best regards Soeren Gebbert btw.: Please excuse my english. From sean at millwood.ca Thu Jan 13 10:53:38 2005 From: sean at millwood.ca (Sean Richards) Date: Thu, 13 Jan 2005 10:53:38 -0500 (EST) Subject: [vtkusers] Spaceball support Message-ID: <25737774.1105631618523.JavaMail.sean@millwood.ca> Sorry if you already got this message. I received a notice that the e-mail bounced so I am sending it agian. Hello and happy new year! I am trying to integrate a spaceball with vtk. Spaceball has an SDK associated with it for interfacing with the different buttons and events that the spaceball produces. I have been trying to figure out exactly how to integrate the spaceball with vtk, but have yet to have any success. Could someone please tell me if: 1 - There is anyone out there that has created classes to allow spaceball to work with vtk 2 - How I might go about changing/adding to the vtk tree to add this support My end goal is to use the spaceball instead of a mouse to move actors, rotate them etc. Thanks so much for your time! Sean From dan at chalkie.org.uk Thu Jan 13 12:06:35 2005 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Thu, 13 Jan 2005 19:06:35 +0200 Subject: [vtkusers] how to submit new code? Message-ID: <7B68A17E-6585-11D9-892F-000393686412@chalkie.org.uk> hi, We have coded a reader for carl zeiss .lsm files from confocal microscopy (vtkLSMReader) These .lsm files can have single images, image stacks (3D volumes) several time points and several different channels (ie red, green and magenta fluorescence) or any combination of the above for a particular specimen. Our reader does a pretty good job of opening many different kinds of .lsm file, and reads information about the data from the header information., such as data extents, colour of channels etc. and I think it is ready to be added to the VTK sources. It serves a similar function to the DICOM reader, and is about the same complexity. how might we submit his code? cheers Dan Dr. Daniel James White BSc. (Hons.) PhD Bioimaging Coordinator Nanoscience Centre and Department of Biological and Environmental science Division of Molecular Recognition Ambiotica C242 PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 14 260 4183 (work) +358 468102840 (mobile) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From brad.king at kitware.com Thu Jan 13 12:20:16 2005 From: brad.king at kitware.com (Brad King) Date: Thu, 13 Jan 2005 12:20:16 -0500 Subject: [vtkusers] how to submit new code? In-Reply-To: <7B68A17E-6585-11D9-892F-000393686412@chalkie.org.uk> References: <7B68A17E-6585-11D9-892F-000393686412@chalkie.org.uk> Message-ID: <41E6ADD0.3000803@kitware.com> Dr. Daniel James White PhD wrote: > We have coded a reader for carl zeiss .lsm files from confocal > microscopy (vtkLSMReader) [snip] > how might we submit his code? Create a feature request in the bug tracker here: http://www.vtk.org/Bug Once the bug is created you can go back in to view it and attach your source files to the entry. You should also include a small example input file and a test that reads it. -Brad From dade_gasp at tin.it Thu Jan 13 12:37:28 2005 From: dade_gasp at tin.it (Dade) Date: Thu, 13 Jan 2005 18:37:28 +0100 Subject: [vtkusers] Spaceball support In-Reply-To: <25737774.1105631618523.JavaMail.sean@millwood.ca> References: <25737774.1105631618523.JavaMail.sean@millwood.ca> Message-ID: <41E6B1D8.8080800@tin.it> Hi I have integrate a SpaceBall (2003, an old model) with VTK. I used the 3DxWare SDK downloaded from www.3DConnexion.com But the SDK only works on windows machine, so the code isn't portable accross different SO I used MFC & VTK + SDK, there's an example to how use SDK with MFC (in SDK docs) and how use VTK with MFC (in VTK docs) The first goal is to integrate the device, receive values from it and attach them to the camera If you want use values to rotate/translate an object (not the entire scene), you must use a 6DOF VTK Interactor, I think.....but I don't know how bye dade. Sean Richards wrote: >Sorry if you already got this message. I received a notice that the e-mail bounced so I am sending it agian. > > >Hello and happy new year! > >I am trying to integrate a spaceball with vtk. Spaceball has an SDK associated with it for interfacing with the different buttons and events that the spaceball produces. I have been trying to figure out exactly how to integrate the spaceball with vtk, but have yet to have any success. Could someone please tell me if: > >1 - There is anyone out there that has created classes to allow spaceball to work with vtk > >2 - How I might go about changing/adding to the vtk tree to add this support > >My end goal is to use the spaceball instead of a mouse to move actors, rotate them etc. > >Thanks so much for your time! > >Sean > >------------------------------------------------------------------------ > >_______________________________________________ >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 > > From dark_computing at telkom.net Thu Jan 13 13:05:58 2005 From: dark_computing at telkom.net (Nurwijaya) Date: Fri, 14 Jan 2005 01:05:58 +0700 Subject: [vtkusers] conversion between coordinate systems Message-ID: <000101c4f99a$92d92280$0102a8c0@j> First of all, thank you so much Miss Amy for the help on my previous question about vtkArcPlotter. Now I have another unsolved problem due to my lack of experience and knowledge, I tried to do this : ... vtkCoordinate coord coord SetCoordinateSystemToWorld coord SetValue 2 2 2 set pos [coord GetComputedViewportValue myRenderer] ... But it keeps crashes all the time, it's a classic crash : "This program has performed an illegal ..bla..bla.." (I use Windows 98) As always, I would greatly appreciate any help I can get Thank you, Jaya From otto at pet.wayne.edu Thu Jan 13 15:01:49 2005 From: otto at pet.wayne.edu (Otto Muzik) Date: Thu, 13 Jan 2005 15:01:49 -0500 Subject: [vtkusers] VTK programmer job posting Message-ID: ---------------------------- JOB POSTING ----------------------- A full time research associate / research assistant position is available immediately at the Positron Emission Tomography (PET) Center located at Children's Hospital of Michigan (part of the WSU Medical School) for the development of specialized imaging software which will allow merging of functional, anatomical and electrophysiological data. Initial employment includes a 12 month trial period during which the successful applicant will work on an ongoing project entitled Software tools for pediatric neuroimaging Software development will be carried out on UNIX/PC workstations using Linux and VTK / Qt toolboxes. The project includes: * 3D surface rendering/merging of MRI and PET image volumes * Assessment of PET abnormalities based on histogram analysis * Merging of PET data with EEG electrode information Applicants should have a strong background in image processing. Applicants should also have excellent knowledge of the LINUX operating system as well as C++. Furthermore knowledge of the VTK / Qt toolboxes highly advantageous, but not necessary. Salary: $30k (trial period), 60k (full time) Contact: Sorin Draghici, PhD (sod at cs.wayne.edu) or Otto Muzik, PhD (otto at pet.wayne.edu) ---------------------------- JOB POSTING ----------------------- -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Otto Muzik, PhD otto at pet.wayne.edu Tel:(313)-993-2616 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -------------- next part -------------- An HTML attachment was scrubbed... URL: From EckhoffM at NAVO.NAVY.MIL Thu Jan 13 15:59:32 2005 From: EckhoffM at NAVO.NAVY.MIL (Eckhoff, Michael A) Date: Thu, 13 Jan 2005 14:59:32 -0600 Subject: [vtkusers] Re: API Message-ID: <23E4371F6124D411B59B00805F9FA97115D6824B@navont3.navo.navy.mil> I believe this x component refers to the alpha channel, which determines the opaqueness (or transparency) of an object. Rather than RGB space (the unit cube I^3), one now has RGBA space I^4. This is a standard part of computer graphics. See section 4.5 ("Transparency, Alpha, and Compositing") of the book Real-Time Rendering, by Moller and Haines (1999); in particular, look at the concept of "blending", which sounds a lot like what Jens Fisseler told you. > c = (x - x')/(x'' - x') * c'' + (x'' - x)/(x'' - x') * c' Here, c' and c'' are two interpolating alphas, so that c is a weighted average. Mike Eckhoff PS The 2nd edition of Real-Time Rendering (2002) is supposedly very good. From billlist at nycap.rr.com Thu Jan 13 16:02:51 2005 From: billlist at nycap.rr.com (William A. Hoffman) Date: Thu, 13 Jan 2005 16:02:51 -0500 Subject: [vtkusers] AIX 5.1 In-Reply-To: <41E65D51.6040500@gsi.de> References: <41E65D51.6040500@gsi.de> Message-ID: <6.1.1.1.2.20050113160124.0977fba0@pop.nycap.rr.com> What errors did you get? There is a dashboard for cvs VTK running AIX 5.1. v60n177.?pbm.?ihost.?com AIX51-xlC http://www.vtk.org/Testing/Dashboard/20050113-0300-Nightly/Dashboard.html I think 4.0 should work. What compiler/cmake versions are you using? -Bill At 06:36 AM 1/13/2005, ChristophBert wrote: >Hi! >Does anybody have experience on running/compiling VTK 4.0 on AIX 5.1? I tried to compile it in the last days and did not succeed. >Any help/suggestions are welcome! > >Thanks, >Christoph > > >_______________________________________________ >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 From amy.henderson at kitware.com Thu Jan 13 16:13:29 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Thu, 13 Jan 2005 16:13:29 -0500 Subject: [vtkusers] Re: API In-Reply-To: <23E4371F6124D411B59B00805F9FA97115D6824B@navont3.navo.navy .mil> References: <23E4371F6124D411B59B00805F9FA97115D6824B@navont3.navo.navy.mil> Message-ID: <6.2.0.14.2.20050113161208.03fb9ad0@pop.biz.rr.com> At 03:59 PM 1/13/2005, Eckhoff, Michael A wrote: >I believe this x component refers to the alpha channel, which determines >the opaqueness (or transparency) of an object. Rather than RGB space >(the unit cube I^3), one now has RGBA space I^4. No, in vtkColorTransferFunction::AddRGBPoint, the first parameter, x, is the scalar value for which the specified RGB color should be used. >This is a standard part of computer graphics. >See section 4.5 ("Transparency, Alpha, and Compositing") of the book >Real-Time Rendering, by Moller and Haines (1999); in particular, look >at the concept of "blending", which sounds a lot like what Jens Fisseler >told you. > > > c = (x - x')/(x'' - x') * c'' + (x'' - x)/(x'' - x') * c' > >Here, c' and c'' are two interpolating alphas, so that c is a >weighted average. > >Mike Eckhoff > >PS The 2nd edition of Real-Time Rendering (2002) is supposedly very good. >_______________________________________________ >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 From rendezvous at dreamxplosion.com Thu Jan 13 20:07:23 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Thu, 13 Jan 2005 20:07:23 -0500 Subject: [vtkusers] (yet another) Opacity Issue (hmm) Message-ID: I know, I know. there's a lot of feedback regarding the opacity of overlapping geometry issue, but to my disappointment, after spending a loooong long time reading through the VTK archives, I still couldn't find a satisfactory answer to this (rather annoying) problem. By the way, most of the 3D software (I know) out there have this issue already solved (3DS Max, Alias|wavefront Maya etc). I wonder how comes VTK (4.4 and counting) still has issues with opacity? I'm sure there should be some smart developers out there to figure this out and have it history once and for all. Those VTK developers should probably take a peek and see how the smart guys at SGI (Alias|Wavefront: MAYA) approached this issue. (the riddle of the intersecting transparent polygons). In Maya (Alias), for instance, I create two perpendicular planes (intersecting each other), give them two different colors and set their transparency to 0.5 (let's say). They display fine both in the interactive window and in the rendered scene without any artifacts. How do they do it? Magic. Yes, I came across the vtkDepthSortPolyData "cute" idea, which is not only slowing down the whole pipeline but also fails to work on the simple scenario of two intersecting polygons (both having opacity < 1). Besides I'd like to see this "sorting" be part of the rendering engine rather than have it as an extra element in the pipeline (via some DepthSort class of sort). Also I noticed a similar (opacity<1) issue while I was rendering a scene containing a 3D volume (with opacity<1) combined with some polydata (also with opacity<1). If the volume is in front of the PolyData, the volume fails to hide the PolyData. Again, some sort of ordering issue. God speed our VTK developers' way in getting this issue solved! marius PS: if there IS a solution tho this riddle, please let me know. Thanks! From venu.thomas at nestinfotech.com Fri Jan 14 00:53:40 2005 From: venu.thomas at nestinfotech.com (=?iso-8859-1?Q?=BF_Venu_Thomas_=BF?=) Date: Fri, 14 Jan 2005 11:23:40 +0530 Subject: [vtkusers] AVI to quarter's format Message-ID: <039c01c4f9fd$67085d20$a900080a@nestinfotech.com> Dear, All.. I got video(body) from a hospital.. How is separate AVI to quarter's format(quarter.1, quarter.2.... quarter.93)??? which software used?? Its avilable?? I wait for ur replay... Regards, Venu Thomas M.Ph:- (91) 9847655556 www.venuthomas.all.at Or http://www.geocities.com/cochin_venu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Fri Jan 14 02:46:43 2005 From: clinton at elemtech.com (Clinton Stimpson) Date: Fri, 14 Jan 2005 00:46:43 -0700 Subject: [vtkusers] (yet another) Opacity Issue (hmm) In-Reply-To: <20050114055643.B9BB53486B@public.kitware.com> References: <20050114055643.B9BB53486B@public.kitware.com> Message-ID: <1105688803.41e778e3288fd@webmail.xmission.com> One thing I do that really helps with scenes in VTK is to make two passes at rendering the transparent data. I've overloaded vtk*Renderer::UpdateGeometry. I've also overloaded vtkOpenGLProperty::Render. The UpdateGeometry function does a cheap z-depth sort at the actor level, instead of each polygon. I turn enable culling.. glEnable(GL_CULL_FACE) Then draw each polygons with glCullFace(GL_FRONT) then on the second pass, draw each polygon with glCullFace(GL_BACK) For the types of things I'm drawing, this is a cheap way to get pretty good results, but it isn't perfect. I've heard no complaints from any of our users. I might see some minor artifacts when I have terribly convoluted geometry or pieces of geometry tangled up with each other. That might work for you. Clint > > Message: 9 > Date: Thu, 13 Jan 2005 20:07:23 -0500 > From: Marius S Giurgi > Subject: [vtkusers] (yet another) Opacity Issue (hmm) > To: vtkusers at vtk.org > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed > > I know, I know. there's a lot of feedback regarding the opacity of > overlapping geometry issue, but to my disappointment, after spending a > loooong long time reading through the VTK archives, I still couldn't > find a satisfactory answer to this (rather annoying) problem. By the > way, most of the 3D software (I know) out there have this issue already > solved (3DS Max, Alias|wavefront Maya etc). I wonder how comes VTK (4.4 > and counting) still has issues with opacity? I'm sure there should be > some smart developers out there to figure this out and have it history > once and for all. Those VTK developers should probably take a peek and > see how the smart guys at SGI (Alias|Wavefront: MAYA) approached this > issue. > > (the riddle of the intersecting transparent polygons). > In Maya (Alias), for instance, I create two perpendicular planes > (intersecting each other), give them two different colors and set their > transparency to 0.5 (let's say). They display fine both in the > interactive window and in the rendered scene without any artifacts. How > do they do it? Magic. > > Yes, I came across the vtkDepthSortPolyData "cute" idea, which is not > only slowing down the whole pipeline but also fails to work on the > simple scenario of two intersecting polygons (both having opacity < 1). > Besides I'd like to see this "sorting" be part of the rendering engine > rather than have it as an extra element in the pipeline (via some > DepthSort class of sort). > > Also I noticed a similar (opacity<1) issue while I was rendering a > scene containing a 3D volume (with opacity<1) combined with some > polydata (also with opacity<1). If the volume is in front of the > PolyData, the volume fails to hide the PolyData. Again, some sort of > ordering issue. > > > God speed our VTK developers' way in getting this issue solved! > > marius > > PS: if there IS a solution tho this riddle, please let me know. Thanks! > > > From Sassan.Ghanai at med.uni-heidelberg.de Fri Jan 14 06:51:35 2005 From: Sassan.Ghanai at med.uni-heidelberg.de (Ghanai, Sassan) Date: Fri, 14 Jan 2005 12:51:35 +0100 Subject: AW: [vtkusers] Question about vtkCamera Message-ID: <345551F83F790F41844B08409471D89E057B7538@mailhost.krz.uni-heidelberg.de> Hi Chunyan, I have found your thread in the vtk messages (see attachment) and have the same problem as you that time. Did you find out how to fix that problem or where the problem is arising at ? I would appreciate any help Thanks Sassan xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dipl-Inform. Sassan Ghanai Universit?tsklinikum Heidelberg Klinik f?r Mund-, Kiefer-, Gesichts-Chirurgie SFB 414 "Informationstechnik in der Medizin: Rechner- und sensorgest?tzte Chirurgie" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Im Neuenheimer Feld 400 D-69120 Heidelberg Tel: ++49 - 6221 - 56 - 7332 Fax: ++49 - 6221 - 56 - 4222 sassan.ghanai at med.uni-heidelberg.de xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx I have done it. But it does not work. :( -----Urspr?ngliche Nachricht----- Von: Farshid Dehmeshki [mailto:farshid.dehmeshki at medicsight.com ] Gesendet: Montag, 13. Januar 2003 17:23 An: Chunyan Jiang Betreff: RE: [vtkusers] Question about vtkCamera add: RenWin->Render(); after last line ******************************* Farshid Dehmeshki Software Engineer Medicsight Plc 46 Berkeley Square London W1J 5AT Tel : 020 7598 4074 Fax: 020 7598 4071 Email : farshid.dehmeshki at medicsight.com Web Site : www.medicsight.com ******************************* The contents of this e-mail are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. Further, we make every effort to keep our network free from viruses. However, you do need to verify that this email and any attachments are free of viruses as we can take no responsibility for any computer virus which might be transferred by way of this e-mail. -----Original Message----- From: Chunyan Jiang [mailto: jiang at TI.FhG.DE] Sent: Monday, January 13, 2003 4:19 PM To: VTK-User Subject: [vtkusers] Question about vtkCamera Hello, I define my vtkCamera and set it in vtkRenderer as the following code: Camera = vtkCamera::New(); Camera->SetPosition(0,0,-20 ); Camera->SetFocalPoint( 0,0,0 ); ren1=vtkRenderer::New(); renWin->AddRenderer(ren1); ren1->SetActiveCamera(Camera); It is very strange that when I render it, it does not display. Only when I click the mouse button, it will display. Because I have set vtkRenderWindowInteractor, the window will be updated when I click mouse button. Why does it not display in the beginning? How can I do? Please give me some hints. Thank you very much! Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers _____________________________________________________________________ This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning Service - powered by MessageLabs. For further information visit http://www.worldcom.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From amy.henderson at kitware.com Fri Jan 14 09:05:26 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Fri, 14 Jan 2005 09:05:26 -0500 Subject: [vtkusers] Re: API In-Reply-To: <23E4371F6124D411B59B00805F9FA97115D6824D@navont3.navo.navy .mil> References: <23E4371F6124D411B59B00805F9FA97115D6824D@navont3.navo.navy.mil> Message-ID: <6.2.0.14.2.20050114090026.03fb8410@pop.biz.rr.com> Hi Mike, Please keep the discussion on the vtk users list. At 05:05 PM 1/13/2005, you wrote: >Amy, > >Thanks for correcting my freshman mistake; it just seemed so right, >based on what I've seen with GDK/GTK. > > >>I believe this x component refers to the alpha channel, which > >>determines the opaqueness (or transparency) of an object. > >>Rather than RGB space(the unit cube I^3), one now has RGBA space I^4. > > >No, in vtkColorTransferFunction::AddRGBPoint, the first parameter, x, is > >the scalar value for which the specified RGB color should be used. > >Sorry, I'm a vtk newbie, so I'm not sure how this scalar-value operates >on colors. Would this, for example, apply to color-filled 2D contour maps? It's mainly used in volume rendering. Take a look at the examples in VTK/Examples/VolumeRendering. >By the way, would you know why my emails are bouncing back from >vtkusers at vtk.org (even though someone is seeing them)? Your e-mails are certainly making it to the list. Maybe another address on the list is no longer valid? (Just a guess.) > >And who can I contact regarding some suggestions for the linux >installation instructions: I finally got the source compiled >but had to do some things that weren't mentioned in the README.html. I would suggest describing on this list what you had to in order to get VTK compiled on your linux box. - Amy From hentschel at rz.rwth-aachen.de Fri Jan 14 10:52:38 2005 From: hentschel at rz.rwth-aachen.de (Hentschel, Bernd) Date: Fri, 14 Jan 2005 16:52:38 +0100 Subject: [vtkusers] Dependencies between vtkPolyData::BuildCells and ::BuildLinks Message-ID: <873D9ACF5338A648B59746F6B5EF3C47FE02AB@rz-exchg.win.rz.RWTH-Aachen.DE> Hi all, I'm currently doing some mesh editing with vtkPolyData. Since this involves some "topologically complex queries", I make use of vtkPolyData::BuildCells and ::BuildLinks. The following snippet is meant to illustrate the problem: vtkPolyData *pTarget = pReader->GetOutput(); std::set setIds; pTarget->BuildLinks(); ComputeVertexNeighbors(0, pTarget , setIds); Where ComputeVertex is (...well, if anyone came up with a more efficient way of computing the 1-ring neighborhood, I would surely appreciate that): void ComputeVertexNeighbors(vtkIdType iVertexId, vtkPolyData* pMesh, set& setNeighbors) { vtkIdType* pIncidentCells; unsigned short iNumCells; pMesh->GetPointCells(iVertexId, iNumCells, pIncidentCells); int i=0; int j; vtkIdType* pIncidentPoints; vtkIdType iNumPoints; for(; iGetCellPoints(pIncidentCells[i], iNumPoints, pIncidentPoints); for(j=0; j References: <20050114055643.B9BB53486B@public.kitware.com> <1105688803.41e778e3288fd@webmail.xmission.com> <41E817F8.2000204@elemtech.com> Message-ID: Clint, Actually I was looking for something more like this (I edited this in Photoshop btw, based on your two renders): -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic1.tiff Type: image/tiff Size: 12828 bytes Desc: not available URL: -------------- next part -------------- In this case you can see one part of the plane being rendered properly in front of the other, showing thus the line of intersection due to the difference in blending color (yellow over red is different from red over yellow, in general for the given transparency). marius On Jan 14, 2005, at 2:05 PM, Clinton Stimpson wrote: > Attached are some images of the results I'm getting... > 1 and 2 are intersecting planes... If I rotate around, sometimes it > looks like 1 and sometimes it looks like 2. It depends on which > surfaces got drawn first. 5 is with two intersecting planes and all > the triangles are in one vtkPolyData. > > 3 and 4 are of two intersecting spheres. The same issues as above > applies. > > The changes aren't much, and I've got a ton of proprietary code mixed > in with the changes only you need to have. > Do those results look good enough for you? If so, I can give more > detail. > > Clint > > > Marius S Giurgi wrote: > >> Thanks for the suggestions, Clint. >> >> Unfortunately I'm not that advanced to get my own overloaded classes >> yet (I'll get there someday). Do you have a copy of your overloaded >> classes somewhere so I can give it a try? >> >> Also. do you think your modified classes can handle the simple case >> of two intersecting semi-transparent planes? That would be awesome. >> >> marius >> >> >> On Jan 14, 2005, at 2:46 AM, Clinton Stimpson wrote: >> From klaus at innovate-tech.com Thu Jan 13 15:39:48 2005 From: klaus at innovate-tech.com (Klaus Allmendinger) Date: Thu, 13 Jan 2005 12:39:48 -0800 Subject: [vtkusers] Re: vtkAxisActor2D In-Reply-To: <20050114170012.5804834814@public.kitware.com> Message-ID: <3.0.1.32.20050113123948.008b4320@69.20.11.99> Hi, I am using the vtk 4.2 distribution on Win-XP. I found a possible little issue on vtkAxisActor2D. If I set the axis range with ->SetRange(0.5,1.523) for 4 Ticks and 'nice' value distribution, the axis ticks are marked 0.0, 1.0, 1.5, 2.0. The 'end' of the axis is marked 2.0 instead of the 1.5 tick mark being close to the end. This means of course that the tick-marks don't line up with the data values anymore. I assumed from the docs that the SetRange() call is used to tell vtkAxisActor2D the equivalent data range along its length. What am I doing wrong? Regards, Klaus From klaus at innovate-tech.com Thu Jan 13 16:52:41 2005 From: klaus at innovate-tech.com (Klaus Allmendinger) Date: Thu, 13 Jan 2005 13:52:41 -0800 Subject: [vtkusers] vtkAxisActor2D problem In-Reply-To: <20050113112324.8495D34794@public.kitware.com> Message-ID: <3.0.1.32.20050113135241.008ef710@69.20.11.99> Hi, I am using the vtk 4.2 distribution on Win-XP. I found a possible little issue on vtkAxisActor2D. If I set the axis range with ->SetRange(0.5,1.523) for 4 Ticks and 'nice' value distribution, the axis ticks are marked 0.0, 1.0, 1.5, 2.0. The 'end' of the axis is marked 2.0 instead of the 1.5 tick mark being close to the end. This means of course that the tick-marks don't line up with the data values anymore. I assumed from the docs that the SetRange() call is used to tell vtkAxisActor2D the equivalent data range along its length. What am I doing wrong? Regards, Klaus From rendezvous at dreamxplosion.com Fri Jan 14 17:23:08 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Fri, 14 Jan 2005 17:23:08 -0500 Subject: [vtkusers] Raycasting Stereo Reversed Message-ID: > > Hi, > > > > When I render polygonal data in a stereo enabled render window the stereo > > pairs appear fine. But, when I use raycasting to render a volume, the > > stereo pairs are reversed. Setting the EyeAngle to a negative value > > corrects this when using raycasting only, but when I attempt to render > > both polygonal data and a raycasted image in the same renderer, one of the > > two is always reversed. > > > > Can anyone lend any assistance? > > > > Thanks, > > > > Nicholas Hi Nicholas. I came across the same stereo issue as the one you had posted on the vtk list some time ago about the volume/polydata stereo render being reversed. I was wondering if you found out any solution in the meantime. I too tried to stereo render both volume and polydata and got the same result. (but instead of using a stereo hardware I created two render viewports for the left and right eye (for cross eyed viewing)). It looks like the stereo volume pair renders are swapped. While the polydata looks fine in 3D stereo, the volume is swapped (therefore it looks reversed in cross eyed viewing). You can tell that by the misplacement of the volume in the following stereo image below. I don't know much about how the rendering is done in vtk, but it looks to me that the volume is rendered separately from the polydata (using the polydata to crop it) then later recomposing the volume and polydata rendering, but in the wrong order (left and right swapped). Btw, this cropping (see how the axes crop the volume) appear even in a single render window once you hit 3 (to toggle between stereo and normal mode). Any ideas how to solve this issue? -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic3.jpg Type: image/jpeg Size: 34227 bytes Desc: not available URL: From brian at lstc.com Fri Jan 14 20:10:03 2005 From: brian at lstc.com (Brian Wainscott) Date: Fri, 14 Jan 2005 17:10:03 -0800 Subject: [vtkusers] VTK with Python and wxWidgets Message-ID: <41E86D6B.7090804@lstc.com> I posted this question to the wxPython lists, and they suggested I ask you, so if anyone here can point me to information it would be greatly appreciated. When I import vtkpython in my working wxPython code, strange things happen.... Details about my system/setup: I'm running on a Linux Suse 9.0 system with these wx rpms installed: python-wxGTK-doc-2.4.2.4-85 python-wxGTK-2.4.2.4-138 wxGTK-2.4.2.4-138 wxGTK-gl-2.4.2.4-138 python-wxGTK-examples-2.4.2.4-85 I know newer versions of wx are out, but these are what was already on my system. I can uninstall them and upgrade from source if there is reason to believe that will fix anything. I'm using vtk 4.4. Problem: importing vtkpython in my wxPython app causes all the wxWidgets to act wrong. My buttons and slider loose all their graphic elements (except their text strings), and I get a lot of runtime errors like this: (test.py:28388): GdkPixbuf-CRITICAL **: file gdk-pixbuf.c: line 357 (gdk_pixbuf_get_pixels): assertion `pixbuf != NULL' failed If I comment out the line "import vtkpython" then it runs fine! Here is my sample app for this problem: #!/usr/bin/python from wxPython.wx import * # # This app runs fine as it is, but if I uncomment either of the # following two lines then the button and slider decorations disappear # (EVERYTHING except the text labels), and I get a lot of errors like # (test.py:28388): GdkPixbuf-CRITICAL **: file gdk-pixbuf.c: line 357 # (gdk_pixbuf_get_pixels): assertion `pixbuf != NULL' failed # # # from vtkpython import * # import vtkpython #--------------------------------------------------------------------------- class Test(wxPanel): def __init__(self, parent, nbut): wxPanel.__init__(self, parent, -1) self.SetAutoLayout(True) # # Create buttons down top left side # self.bbox=wxBoxSizer(wxVERTICAL) self.b = range(nbut) for i in range(nbut): self.b[i] = wxToggleButton(self, i+10, ' Item %d ' % i) EVT_TOGGLEBUTTON(self, self.b[i].GetId(), self.OnButton) for i in range(nbut): self.bbox.Add(self.b[i],1,wxEXPAND) # # Create slider along bottom # self.s = wxSlider(self, 20,1,1,100,wxPyDefaultPosition, wxPyDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS) EVT_SCROLL(self.s, self.OnScroll) # # Create a drawing window -- eventually vtk should live in this window # self.panel = wxWindow(self, -1, wxPyDefaultPosition, wxPyDefaultSize,wxSIMPLE_BORDER) # # Pack them all together # self.vbox=wxBoxSizer(wxVERTICAL) self.hbox=wxBoxSizer(wxHORIZONTAL) self.hbox.Add(self.bbox,0,wxEXPAND) self.hbox.Add(self.panel,1,wxEXPAND) self.vbox.Add(self.hbox,1,wxEXPAND) self.vbox.Add(self.s,0,wxEXPAND) self.vbox.Fit(self) self.SetSizer(self.vbox) def OnButton(self, event): id = event.GetId() but=self.b[id-self.b[0].GetId()] print "Toggle button %d = %d" % (id,but.GetValue()) wxBell() def OnScroll(self, event): print "Scroll position = %d" % (self.s.GetValue()) app = wxPySimpleApp() frame = wxFrame(None,-1,"wxRenderWindow",size=wxSize(400,400)) Test(frame,5) frame.Show(1) app.MainLoop() So any suggestions, places to look, WORKING wxPython/VTK examples, etc would be greatly appreciated. -- Brian Wainscott | "That man is no fool who gives what he cannot keep brian at lstc.com | to gain what he cannot lose." -- Jim Elliot From wycken at msn.com Sat Jan 15 02:58:30 2005 From: wycken at msn.com (Yingcai Wu) Date: Sat, 15 Jan 2005 15:58:30 +0800 Subject: [vtkusers] Help! problem about vtkFLRenderWindowInteractor class... Message-ID: Hi, all I have a problem that I cannot fix in my following codes, would you please help me? In the following section, I wrote a program that can redraw the windows using the famous vtkFlRenderWindowInteractor class. My problem is : The first drawing of the volume is ok,and then if I move the volume a little, after i push the redraw button of my program, I cannot operate or move the volume,otherwise there will be a pop window showing an error, such that 'con3.exe has encountered a problem and needs to close. We are sorry for the inconvenience'. If I do nothing with the first drawing, and immediatly push the redraw button, there is another error, such that "R6025--runtime error, pure virtual function call" By the way, the dataset I used is in the directory of data in vtk source code, namely 'data/headsq/quarter'. Looking forward to your help! Thanks. Regards, Ken Here is my code: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // here we have all the usual VTK stuff that we need for our pipeline #include #include #include #include #include // and here we have the famous vtkFlRenderWindowInteractor class #include "vtkFlRenderWindowInteractor.h" // and of course some fltk stuff #include #include #include "vtkVolume16Reader.h" #include "vtkPolyDataNormals.h" #include "vtkPiecewiseFunction.h" #include "vtkColorTransferFunction.h" #include "vtkVolumeProperty.h" #include "vtkVolumeRayCastCompositeFunction.h" #include "vtkVolumeRayCastMapper.h" #include "vtkContourFilter.h" //viewport vtkFlRenderWindowInteractor *fl_vtk_window = NULL; //main FLTK window Fl_Window *main_window = NULL; // this callback gets called when the main window is closed // remember that one should NEVER delete() a vtkFlRenderWindowInteractor, // since it's a vtk object. instead, its Delete() method should be used. // so, in the callback of the containing window, you should either terminate // your application (if that's applicable) or if you have a multi-window // application, call ->Delete() on the vtkfl_vtk_window and then take care of the // surrounding logic. void main_window_callback(Fl_Widget *, void *) { exit(0); } // void MarchingCubes(); // this is a callback for the Redraw button void Redraw(Fl_Widget*, void*) { MarchingCubes(); fl_vtk_window->draw(); fl_vtk_window->show(); //error occurs when I click the left-button of mouse on the window. } /** * This will create a Fl_Window with an embedded vtkFlRWI, a label * with some explanation and a quit button. The pointers that are * passed are set correctly on return so that they can be used for * further processing; in our case that means actually building and * adding a VTK pipeline. */ void create_window_with_rwi(vtkFlRenderWindowInteractor *&fl_vtk_window, Fl_Window *&flw, char *title) { // set up main FLTK window flw = new Fl_Window(820,820,title); // and instantiate vtkFlRenderWindowInteractor (here it acts like a // FLTK window, i.e. you could also instantiate it as child of a // Fl_Group in a window) fl_vtk_window = new vtkFlRenderWindowInteractor(5,5,820,780,NULL); flw->callback(main_window_callback, fl_vtk_window); // this will result in a little message under the rendering Fl_Box* box = new Fl_Box(5,800,815,820, "3 = stereo, j = joystick, t = trackball, " "w = wireframe, s = surface, p = pick; " "you can also resize the window"); box->labelsize(10); box->align(FL_ALIGN_WRAP); // we want a button with which the user can quit the application Fl_Button* quit_button = new Fl_Button(400,790,70,35,"Redraw"); quit_button->callback(Redraw,NULL); // we're done populating the flw flw->end(); // if the main window gets resized, the vtk window should resize with it flw->resizable(fl_vtk_window); } int main( int argc, char *argv[] ) { // let's create the FIRST window with a Cone thingy =========== // ============================================================ create_window_with_rwi(fl_vtk_window, main_window, "MarchingCube"); // these two steps are VERY IMPORTANT, you have to show() the fltk window // containing the vtkFlRenderWindowInteractor, and then the // vtkFlRenderWindowInteractor itself main_window->show(); fl_vtk_window->show(); // now we get to setup our VTK rendering pipeline //if I replace VolumeRendering() with MarchingCubes(), a running occurs will occur. // VolumeRendering(); MarchingCubes(); // this is the standard way of "starting" a fltk application int fl_ret = Fl::run(); // very huge NB: note that we ->Delete() the vtkFlRenderWindowInteractor // once we do this, the rest of the vtk pipeline will really disappear fl_vtk_window->Delete(); // and after we've done that, we can delete the main_window delete main_window; return fl_ret; } //set the pipeline of vtk using marchingcubes algorithm void MarchingCubes() { char *p="headsq/quarter"; vtkRenderer *aRenderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(aRenderer); vtkRenderWindowInteractor *iren = fl_vtk_window; iren->SetRenderWindow(renWin); vtkVolume16Reader *p_reader = vtkVolume16Reader::New(); p_reader->SetDataDimensions (64,64); p_reader->SetImageRange (1,93); p_reader->SetDataByteOrderToLittleEndian(); p_reader->SetFilePrefix (p); p_reader->SetDataSpacing (3.2, 3.2, 1.5); // An isosurface, or contour value of 500 is known to correspond to the // skin of the patient. Once generated, a vtkPolyDataNormals filter is // is used to create normals for smooth surface shading during rendering. vtkContourFilter *skinExtractor = vtkContourFilter::New(); skinExtractor->SetInput(( vtkDataSet *) p_reader->GetOutput()); skinExtractor->SetValue(0, 500); vtkPolyDataNormals *skinNormals = vtkPolyDataNormals::New(); skinNormals->SetInput(skinExtractor->GetOutput()); skinNormals->SetFeatureAngle(60.0); vtkPolyDataMapper *skinMapper = vtkPolyDataMapper::New(); skinMapper->SetInput(skinNormals->GetOutput()); skinMapper->ScalarVisibilityOff(); vtkActor *skin = vtkActor::New(); skin->SetMapper(skinMapper); aRenderer->AddActor(skin); aRenderer->SetBackground(1,1,1); iren->Initialize(); skinExtractor->Delete(); skinNormals->Delete(); skinMapper->Delete(); skin->Delete(); renWin->Delete(); aRenderer->Delete(); p_reader->Delete(); } _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From wycken at msn.com Sat Jan 15 03:51:43 2005 From: wycken at msn.com (Yingcai Wu) Date: Sat, 15 Jan 2005 16:51:43 +0800 Subject: [vtkusers] Help! problem about vtkFLRenderWindowInteractor... Message-ID: Hi, all I have a problem that I cannot fix in my following codes, would you please help me? In the following section, I wrote a program that can redraw the windows using the famous vtkFlRenderWindowInteractor class. My problem is : The first drawing of the volume is ok,and then if I move the volume a little, after i push the redraw button of my program, I cannot operate or move the volume,otherwise there will be a pop window showing an error, such that 'con3.exe has encountered a problem and needs to close. We are sorry for the inconvenience'. If I do nothing with the first drawing, and immediatly push the redraw button, there is another error, such that "R6025--runtime error, pure virtual function call" By the way, the dataset I used is in the directory of data in vtk source code, namely 'data/headsq/quarter'. Looking forward to your help! Thanks. Regards, Ken Here is my code: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // here we have all the usual VTK stuff that we need for our pipeline #include #include #include #include #include // and here we have the famous vtkFlRenderWindowInteractor class #include "vtkFlRenderWindowInteractor.h" // and of course some fltk stuff #include #include #include "vtkVolume16Reader.h" #include "vtkPolyDataNormals.h" #include "vtkPiecewiseFunction.h" #include "vtkColorTransferFunction.h" #include "vtkVolumeProperty.h" #include "vtkVolumeRayCastCompositeFunction.h" #include "vtkVolumeRayCastMapper.h" #include "vtkContourFilter.h" //viewport vtkFlRenderWindowInteractor *fl_vtk_window = NULL; //main FLTK window Fl_Window *main_window = NULL; // this callback gets called when the main window is closed // remember that one should NEVER delete() a vtkFlRenderWindowInteractor, // since it's a vtk object. instead, its Delete() method should be used. // so, in the callback of the containing window, you should either terminate // your application (if that's applicable) or if you have a multi-window // application, call ->Delete() on the vtkfl_vtk_window and then take care of the // surrounding logic. void main_window_callback(Fl_Widget *, void *) { exit(0); } // void MarchingCubes(); // this is a callback for the Redraw button void Redraw(Fl_Widget*, void*) { MarchingCubes(); fl_vtk_window->draw(); fl_vtk_window->show(); //error occurs when I click the left-button of mouse on the window. } /** * This will create a Fl_Window with an embedded vtkFlRWI, a label * with some explanation and a quit button. The pointers that are * passed are set correctly on return so that they can be used for * further processing; in our case that means actually building and * adding a VTK pipeline. */ void create_window_with_rwi(vtkFlRenderWindowInteractor *&fl_vtk_window, Fl_Window *&flw, char *title) { // set up main FLTK window flw = new Fl_Window(820,820,title); // and instantiate vtkFlRenderWindowInteractor (here it acts like a // FLTK window, i.e. you could also instantiate it as child of a // Fl_Group in a window) fl_vtk_window = new vtkFlRenderWindowInteractor(5,5,820,780,NULL); flw->callback(main_window_callback, fl_vtk_window); // this will result in a little message under the rendering Fl_Box* box = new Fl_Box(5,800,815,820, "3 = stereo, j = joystick, t = trackball, " "w = wireframe, s = surface, p = pick; " "you can also resize the window"); box->labelsize(10); box->align(FL_ALIGN_WRAP); // we want a button with which the user can quit the application Fl_Button* quit_button = new Fl_Button(400,790,70,35,"Redraw"); quit_button->callback(Redraw,NULL); // we're done populating the flw flw->end(); // if the main window gets resized, the vtk window should resize with it flw->resizable(fl_vtk_window); } int main( int argc, char *argv[] ) { // let's create the FIRST window with a Cone thingy =========== // ============================================================ create_window_with_rwi(fl_vtk_window, main_window, "MarchingCube"); // these two steps are VERY IMPORTANT, you have to show() the fltk window // containing the vtkFlRenderWindowInteractor, and then the // vtkFlRenderWindowInteractor itself main_window->show(); fl_vtk_window->show(); // now we get to setup our VTK rendering pipeline //if I replace VolumeRendering() with MarchingCubes(), a running occurs will occur. // VolumeRendering(); MarchingCubes(); // this is the standard way of "starting" a fltk application int fl_ret = Fl::run(); // very huge NB: note that we ->Delete() the vtkFlRenderWindowInteractor // once we do this, the rest of the vtk pipeline will really disappear fl_vtk_window->Delete(); // and after we've done that, we can delete the main_window delete main_window; return fl_ret; } //set the pipeline of vtk using marchingcubes algorithm void MarchingCubes() { char *p="headsq/quarter"; vtkRenderer *aRenderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(aRenderer); vtkRenderWindowInteractor *iren = fl_vtk_window; iren->SetRenderWindow(renWin); vtkVolume16Reader *p_reader = vtkVolume16Reader::New(); p_reader->SetDataDimensions (64,64); p_reader->SetImageRange (1,93); p_reader->SetDataByteOrderToLittleEndian(); p_reader->SetFilePrefix (p); p_reader->SetDataSpacing (3.2, 3.2, 1.5); // An isosurface, or contour value of 500 is known to correspond to the // skin of the patient. Once generated, a vtkPolyDataNormals filter is // is used to create normals for smooth surface shading during rendering. vtkContourFilter *skinExtractor = vtkContourFilter::New(); skinExtractor->SetInput(( vtkDataSet *) p_reader->GetOutput()); skinExtractor->SetValue(0, 500); vtkPolyDataNormals *skinNormals = vtkPolyDataNormals::New(); skinNormals->SetInput(skinExtractor->GetOutput()); skinNormals->SetFeatureAngle(60.0); vtkPolyDataMapper *skinMapper = vtkPolyDataMapper::New(); skinMapper->SetInput(skinNormals->GetOutput()); skinMapper->ScalarVisibilityOff(); vtkActor *skin = vtkActor::New(); skin->SetMapper(skinMapper); aRenderer->AddActor(skin); aRenderer->SetBackground(1,1,1); iren->Initialize(); skinExtractor->Delete(); skinNormals->Delete(); skinMapper->Delete(); skin->Delete(); renWin->Delete(); aRenderer->Delete(); p_reader->Delete(); } _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From prabhu_r at users.sf.net Sat Jan 15 03:58:13 2005 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Sat, 15 Jan 2005 14:28:13 +0530 Subject: [vtkusers] VTK with Python and wxWidgets In-Reply-To: <41E86D6B.7090804@lstc.com> References: <41E86D6B.7090804@lstc.com> Message-ID: <16872.56101.806058.797449@monster.linux.in> >>>>> "BW" == Brian Wainscott writes: BW> I posted this question to the wxPython lists, and they BW> suggested I ask you, so if anyone here can point me to BW> information it would be greatly appreciated. [...] BW> Problem: importing vtkpython in my wxPython app causes all the BW> wxWidgets to act wrong. My buttons and slider loose all their BW> graphic elements (except their text strings), and I get a lot BW> of runtime errors like this: Works perfectly for me. VTK-4.4 (built from source), Debian sarge (i386), wxPython-2.4.2.6 (Debian package). Just one minor nit with your code. Avoid using from vtkpython import * Use import vtk instead and access the classes via vtk.vtkSomeClass(). cheers, prabhu From wycken at msn.com Sat Jan 15 04:02:58 2005 From: wycken at msn.com (Yingcai Wu) Date: Sat, 15 Jan 2005 17:02:58 +0800 Subject: [vtkusers] Help! problem about vtkFLRenderWindowInteractor... In-Reply-To: <20050114140345.B4ECD3486F@public.kitware.com> Message-ID: Hi, all I have a problem that I cannot fix in my following codes, would you please help me? In the following section, I wrote a program that can redraw the windows using the famous vtkFlRenderWindowInteractor class. My problem is : The first drawing of the volume is ok,and then if I move the volume a little, after i push the redraw button of my program, I cannot operate or move the volume,otherwise there will be a pop window showing an error, such that 'con3.exe has encountered a problem and needs to close. We are sorry for the inconvenience'. If I do nothing with the first drawing, and immediatly push the redraw button, there is another error, such that "R6025--runtime error, pure virtual function call" By the way, the dataset I used is in the directory of data in vtk source code, namely 'data/headsq/quarter'. Looking forward to your help! Thanks. Regards, Ken Here is my code: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // here we have all the usual VTK stuff that we need for our pipeline #include #include #include #include #include // and here we have the famous vtkFlRenderWindowInteractor class #include "vtkFlRenderWindowInteractor.h" // and of course some fltk stuff #include #include #include "vtkVolume16Reader.h" #include "vtkPolyDataNormals.h" #include "vtkPiecewiseFunction.h" #include "vtkColorTransferFunction.h" #include "vtkVolumeProperty.h" #include "vtkVolumeRayCastCompositeFunction.h" #include "vtkVolumeRayCastMapper.h" #include "vtkContourFilter.h" //viewport vtkFlRenderWindowInteractor *fl_vtk_window = NULL; //main FLTK window Fl_Window *main_window = NULL; // this callback gets called when the main window is closed // remember that one should NEVER delete() a vtkFlRenderWindowInteractor, // since it's a vtk object. instead, its Delete() method should be used. // so, in the callback of the containing window, you should either terminate // your application (if that's applicable) or if you have a multi-window // application, call ->Delete() on the vtkfl_vtk_window and then take care of the // surrounding logic. void main_window_callback(Fl_Widget *, void *) { exit(0); } // void MarchingCubes(); // this is a callback for the Redraw button void Redraw(Fl_Widget*, void*) { MarchingCubes(); fl_vtk_window->draw(); fl_vtk_window->show(); //error occurs when I click the left-button of mouse on the window. } /** * This will create a Fl_Window with an embedded vtkFlRWI, a label * with some explanation and a quit button. The pointers that are * passed are set correctly on return so that they can be used for * further processing; in our case that means actually building and * adding a VTK pipeline. */ void create_window_with_rwi(vtkFlRenderWindowInteractor *&fl_vtk_window, Fl_Window *&flw, char *title) { // set up main FLTK window flw = new Fl_Window(820,820,title); // and instantiate vtkFlRenderWindowInteractor (here it acts like a // FLTK window, i.e. you could also instantiate it as child of a // Fl_Group in a window) fl_vtk_window = new vtkFlRenderWindowInteractor(5,5,820,780,NULL); flw->callback(main_window_callback, fl_vtk_window); // this will result in a little message under the rendering Fl_Box* box = new Fl_Box(5,800,815,820, "3 = stereo, j = joystick, t = trackball, " "w = wireframe, s = surface, p = pick; " "you can also resize the window"); box->labelsize(10); box->align(FL_ALIGN_WRAP); // we want a button with which the user can quit the application Fl_Button* quit_button = new Fl_Button(400,790,70,35,"Redraw"); quit_button->callback(Redraw,NULL); // we're done populating the flw flw->end(); // if the main window gets resized, the vtk window should resize with it flw->resizable(fl_vtk_window); } int main( int argc, char *argv[] ) { // let's create the FIRST window with a Cone thingy =========== // ============================================================ create_window_with_rwi(fl_vtk_window, main_window, "MarchingCube"); // these two steps are VERY IMPORTANT, you have to show() the fltk window // containing the vtkFlRenderWindowInteractor, and then the // vtkFlRenderWindowInteractor itself main_window->show(); fl_vtk_window->show(); // now we get to setup our VTK rendering pipeline //if I replace VolumeRendering() with MarchingCubes(), a running occurs will occur. // VolumeRendering(); MarchingCubes(); // this is the standard way of "starting" a fltk application int fl_ret = Fl::run(); // very huge NB: note that we ->Delete() the vtkFlRenderWindowInteractor // once we do this, the rest of the vtk pipeline will really disappear fl_vtk_window->Delete(); // and after we've done that, we can delete the main_window delete main_window; return fl_ret; } //set the pipeline of vtk using marchingcubes algorithm void MarchingCubes() { char *p="headsq/quarter"; vtkRenderer *aRenderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(aRenderer); vtkRenderWindowInteractor *iren = fl_vtk_window; iren->SetRenderWindow(renWin); vtkVolume16Reader *p_reader = vtkVolume16Reader::New(); p_reader->SetDataDimensions (64,64); p_reader->SetImageRange (1,93); p_reader->SetDataByteOrderToLittleEndian(); p_reader->SetFilePrefix (p); p_reader->SetDataSpacing (3.2, 3.2, 1.5); // An isosurface, or contour value of 500 is known to correspond to the // skin of the patient. Once generated, a vtkPolyDataNormals filter is // is used to create normals for smooth surface shading during rendering. vtkContourFilter *skinExtractor = vtkContourFilter::New(); skinExtractor->SetInput(( vtkDataSet *) p_reader->GetOutput()); skinExtractor->SetValue(0, 500); vtkPolyDataNormals *skinNormals = vtkPolyDataNormals::New(); skinNormals->SetInput(skinExtractor->GetOutput()); skinNormals->SetFeatureAngle(60.0); vtkPolyDataMapper *skinMapper = vtkPolyDataMapper::New(); skinMapper->SetInput(skinNormals->GetOutput()); skinMapper->ScalarVisibilityOff(); vtkActor *skin = vtkActor::New(); skin->SetMapper(skinMapper); aRenderer->AddActor(skin); aRenderer->SetBackground(1,1,1); iren->Initialize(); skinExtractor->Delete(); skinNormals->Delete(); skinMapper->Delete(); skin->Delete(); renWin->Delete(); aRenderer->Delete(); p_reader->Delete(); } _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From jinzishuai at yahoo.com Sat Jan 15 21:07:07 2005 From: jinzishuai at yahoo.com (Shi Jin) Date: Sat, 15 Jan 2005 18:07:07 -0800 (PST) Subject: [vtkusers] how to draw a 3D spring Message-ID: <20050116020707.53491.qmail@web51005.mail.yahoo.com> Hi there, I am very new to VTK. My first intention is to draw something for my research which requires drawing a spring-mass system. My question is how to draw the spring connectting the two balls. I am thinking using a sprial(helix) tube. The helix has a very simple mathematica form but the problem is how to draw it three dimensionly, like the real springs. I am thinking the vtkSweptSurface Class. But is there any other way to do it, like curved tubes? Thanks a lot. Shi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From khaty111 at hotmail.com Sat Jan 15 23:51:22 2005 From: khaty111 at hotmail.com (Siti Khatijah) Date: Sun, 16 Jan 2005 12:51:22 +0800 Subject: [vtkusers] Transform resulting ICP to data!! Message-ID: Hi, I'm new to this vtk and i need your help...I want to register two images together using Iterative Closest Point Transform...How do i transform the resulting ICP to my data or setting it to user's transform...I think i am missing something out..Any help is appreaciated..Thx..Below is my source code.. //Declaring all the variables needed #include "vtkPolyDataMapper.h" //maps polygonal data to graphics #include "vtkActor.h" //represents an object (geometry & properties) in a rendered scene #include "vtkProperty.h" //represent surface properties of a geometric object #include "vtkRenderWindow.h" //create a window for renderers to draw into #include "vtkRenderer.h" #include "vtkRenderWindowInteractor.h" #include "vtkCamera.h" #include "vtkIterativeClosestPointTransform.h" #include "vtkSTLReader.h" #include "vtkPolyDataNormals.h" #include "vtkLODActor.h" #include "vtkOBJReader.h" #include "vtkPolyData.h" main() { //Create a rendering window and the renderer vtkRenderWindow * renWin = vtkRenderWindow::New(); vtkRenderer * ren1 = vtkRenderer::New(); //Adding the renderers inside the rendering window renWin->AddRenderer(ren1); //Input the ctForehead image(.stl) vtkSTLReader * ctForehead = vtkSTLReader::New(); ctForehead->SetFileName("C:/Documents and Settings/Khatijah/Desktop/examples/ctForehead.stl"); vtkPolyDataNormals * foreheadnormals = vtkPolyDataNormals::New(); foreheadnormals->SetInput(ctForehead->GetOutput()); vtkPolyDataMapper * foreheadMapper = vtkPolyDataMapper::New(); foreheadMapper->SetInput(foreheadnormals->GetOutput()); vtkLODActor * foreheadActor = vtkLODActor::New(); foreheadActor->SetMapper(foreheadMapper); //Reading .obj image vtkOBJReader * inspeckForehead = vtkOBJReader::New(); inspeckForehead->SetFileName("C:/Documents and Settings/Khatijah/Desktop/examples/initinspeckForehead.obj"); vtkPolyDataNormals * forehead2normals = vtkPolyDataNormals::New(); forehead2normals->SetInput(inspeckForehead->GetOutput()); vtkPolyDataMapper * forehead2Mapper = vtkPolyDataMapper::New(); forehead2Mapper->SetInput(forehead2normals->GetOutput()); vtkLODActor * forehead2Actor = vtkLODActor::New(); forehead2Actor->SetMapper(forehead2Mapper); //vtkIterativeClosestPoint function vtkIterativeClosestPointTransform *ICPTransform = vtkIterativeClosestPointTransform::New(); ICPTransform->SetSource(inspeckForehead->GetOutput()); ICPTransform->SetTarget(ctForehead->GetOutput()); ICPTransform->SetCheckMeanDistance(1); ICPTransform->SetMaximumMeanDistance(0.001); ICPTransform->SetMaximumNumberOfIterations(30); ICPTransform->SetMaximumNumberOfLandmarks(500); //assign actor to the renderer ren1->AddActor(foreheadActor); ren1->AddActor(forehead2Actor); renWin->SetSize(800,400); // Now we loop over 360 degreeees and render the cone each time. int i; for (i = 0; i < 360; ++i) { // render the image renWin->Render(); // rotate the active camera by one degree ren1->GetActiveCamera()->Azimuth(0.1); } //Begin mouse interaction vtkRenderWindowInteractor * iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->Initialize(); iren->Start(); return 0; } _________________________________________________________________ Keep track of Singapore & Malaysia stock prices. http://www.msn.com.sg/money/ From markku.tanttu at mbnet.fi Sun Jan 16 09:00:29 2005 From: markku.tanttu at mbnet.fi (Markku Tanttu) Date: Sun, 16 Jan 2005 16:00:29 +0200 Subject: [vtkusers] Supported platforms? Message-ID: <000a01c4fbd3$d1ea9720$2ca364c2@o4f3p4> Hi: I am a new user of the VTK. Are VTK "tools" available for Suse Linux Professional platform (64-bit version for AMD64 and Intel EM64T) Best Regards, Markku Tanttu -------------- next part -------------- An HTML attachment was scrubbed... URL: From sanfrux at hotmail.com Sun Jan 16 11:01:56 2005 From: sanfrux at hotmail.com (Alfonso Fernandez) Date: Sun, 16 Jan 2005 16:01:56 +0000 Subject: [vtkusers] Fit imageActor to renderWindow Message-ID: Does anyone know how can I adjust an imageActor to its renderWindow. Thanks. From goodwin.lawlor at ucd.ie Sun Jan 16 11:57:59 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Sun, 16 Jan 2005 16:57:59 -0000 Subject: [vtkusers] Re: Fit imageActor to renderWindow References: Message-ID: Have a look at this example: http://www.bioengineering-research.com/vtk/BackgroundImage.tcl hth Goodwin "Alfonso Fernandez" wrote in message news:BAY15-F35ACFEE17FD5A7014AADD6AA8D0 at phx.gbl... > Does anyone know how can I adjust an imageActor to its renderWindow. > Thanks. > > > _______________________________________________ > 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 > From freiman at cs.huji.ac.il Sun Jan 16 13:00:13 2005 From: freiman at cs.huji.ac.il (Moti Freiman) Date: Sun, 16 Jan 2005 20:00:13 +0200 Subject: [vtkusers] re: vtkIterativeClosestPoint Message-ID: <41EAABAD.8040504@cs.huji.ac.il> Hi! you should add after your ICPTransform code section this lines: ICPTransform->Update(); vtkMatrix4x4 * mat = vtkMatrix4x4::New(); mat->DeepCopy (ICPTransform->GetMatrix()); on this stage you got the transfrom matrix, then you should apply it to your data using vtkTransfrom, and vtkTransformPolyDataFilter. hope it helps -- Moti Freiman, Graduate Student. Medical Image Processing and Computer-Assisted Surgery Laboratory. School of Computer Science and Engineering. The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel Phone: +(972)-2-658-5371 (laboratory) E-mail: freiman at cs.huji.ac.il WWW site: http://www.cs.huji.ac.il/~freiman Hi, I'm new to this vtk and i need your help...I want to register two images together using Iterative Closest Point Transform...How do i transform the resulting ICP to my data or setting it to user's transform...I think i am missing something out..Any help is appreaciated..Thx..Below is my source code.. //Declaring all the variables needed #include "vtkPolyDataMapper.h" //maps polygonal data to graphics #include "vtkActor.h" //represents an object (geometry & properties) in a rendered scene #include "vtkProperty.h" //represent surface properties of a geometric object #include "vtkRenderWindow.h" //create a window for renderers to draw into #include "vtkRenderer.h" #include "vtkRenderWindowInteractor.h" #include "vtkCamera.h" #include "vtkIterativeClosestPointTransform.h" #include "vtkSTLReader.h" #include "vtkPolyDataNormals.h" #include "vtkLODActor.h" #include "vtkOBJReader.h" #include "vtkPolyData.h" main() { //Create a rendering window and the renderer vtkRenderWindow * renWin = vtkRenderWindow::New(); vtkRenderer * ren1 = vtkRenderer::New(); //Adding the renderers inside the rendering window renWin->AddRenderer(ren1); //Input the ctForehead image(.stl) vtkSTLReader * ctForehead = vtkSTLReader::New(); ctForehead->SetFileName("C:/Documents and Settings/Khatijah/Desktop/examples/ctForehead.stl"); vtkPolyDataNormals * foreheadnormals = vtkPolyDataNormals::New(); foreheadnormals->SetInput(ctForehead->GetOutput()); vtkPolyDataMapper * foreheadMapper = vtkPolyDataMapper::New(); foreheadMapper->SetInput(foreheadnormals->GetOutput()); vtkLODActor * foreheadActor = vtkLODActor::New(); foreheadActor->SetMapper(foreheadMapper); //Reading .obj image vtkOBJReader * inspeckForehead = vtkOBJReader::New(); inspeckForehead->SetFileName("C:/Documents and Settings/Khatijah/Desktop/examples/initinspeckForehead.obj"); vtkPolyDataNormals * forehead2normals = vtkPolyDataNormals::New(); forehead2normals->SetInput(inspeckForehead->GetOutput()); vtkPolyDataMapper * forehead2Mapper = vtkPolyDataMapper::New(); forehead2Mapper->SetInput(forehead2normals->GetOutput()); vtkLODActor * forehead2Actor = vtkLODActor::New(); forehead2Actor->SetMapper(forehead2Mapper); //vtkIterativeClosestPoint function vtkIterativeClosestPointTransform *ICPTransform = vtkIterativeClosestPointTransform::New(); ICPTransform->SetSource(inspeckForehead->GetOutput()); ICPTransform->SetTarget(ctForehead->GetOutput()); ICPTransform->SetCheckMeanDistance(1); ICPTransform->SetMaximumMeanDistance(0.001); ICPTransform->SetMaximumNumberOfIterations(30); ICPTransform->SetMaximumNumberOfLandmarks(500); //assign actor to the renderer ren1->AddActor(foreheadActor); ren1->AddActor(forehead2Actor); renWin->SetSize(800,400); // Now we loop over 360 degreeees and render the cone each time. int i; for (i = 0; i < 360; ++i) { // render the image renWin->Render(); // rotate the active camera by one degree ren1->GetActiveCamera()->Azimuth(0.1); } //Begin mouse interaction vtkRenderWindowInteractor * iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->Initialize(); iren->Start(); return 0; } _________________________________________________________________ Keep track of Singapore & Malaysia stock prices. http://www.msn.com.sg/money/ -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 14/01/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 14/01/2005 From rendezvous at dreamxplosion.com Sun Jan 16 14:30:37 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Sun, 16 Jan 2005 14:30:37 -0500 Subject: [vtkusers] how to draw a 3D spring In-Reply-To: <20050116020707.53491.qmail@web51005.mail.yahoo.com> References: <20050116020707.53491.qmail@web51005.mail.yahoo.com> Message-ID: <1944EE38-67F5-11D9-B142-000393D5EB76@dreamxplosion.com> Hey, Shi Here's an example I used to create tubed axes, using the vtkTubeFilter. # Axes vtkAxes axes axes SetOrigin 0 0 0 axes SetScaleFactor 200 axes SymmetricOn vtkTubeFilter tubedAxes tubedAxes SetInput [axes GetOutput] tubedAxes SetRadius 3 tubedAxes SetNumberOfSides 16 tubedAxes CappingOn vtkPolyDataMapper axesMapper axesMapper SetInput [tubedAxes GetOutput] vtkActor axesActor axesActor SetMapper axesMapper Once you get the polyline created (the spiral/helix for your spring) you can pass it as an input to the vtkTubeFilter to get it tubed. Pretty cool. Check it out and see if this is what you're looking for. (I don't know whether there's a class to create the helix though. You might have to generate it on your own). cheers, marius On Jan 15, 2005, at 9:07 PM, Shi Jin wrote: > Hi there, > > I am very new to VTK. My first intention is to draw > something for my research which requires drawing a > spring-mass system. My question is how to draw the > spring connectting the two balls. I am thinking using > a sprial(helix) tube. The helix has a very simple > mathematica form but the problem is how to draw it > three dimensionly, like the real springs. I am > thinking the vtkSweptSurface Class. But is there any > other way to do it, like curved tubes? > Thanks a lot. > Shi > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > 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 > > From jonathan at simulistics.com Sun Jan 16 16:23:31 2005 From: jonathan at simulistics.com (Jonathan Massheder) Date: Sun, 16 Jan 2005 21:23:31 -0000 Subject: [vtkusers] Re. how to draw a 3D spring Message-ID: <000501c4fc11$a1202ae0$0e00a8c0@kontiki> There's an example on one of the VTK books. It uses vtkRotationalExtrusionFilter to sweep out a volume. I write a procedure in Tcl based on that example which I attach. You'll have to check the VTK documentation to the detail of the VTK classes. Jonathan proc HelixSource {name} { vtkDiskSource disk disk SetCircumferentialResolution 20 disk SetInnerRadius 0.0 disk SetOuterRadius 0.2 # must make the disk perpendicular to axis of roation (z) vtkTransform tran tran RotateX 90 tran Translate 1 0 0 vtkTransformPolyDataFilter transf transf SetInput [disk GetOutput] transf SetTransform tran vtkRotationalExtrusionFilter extrude extrude SetInput [transf GetOutput] extrude SetResolution 360; #360; # resolution of sweep operation. extrude SetTranslation 6; #total amount of translation along the z-axis extrude SetDeltaRadius 0.0; #change in radius during sweep process extrude SetAngle [expr {360*6}]; #2160.0; # 6 revs, angle of rotation vtkPolyDataNormals $name $name SetInput [extrude GetOutput] $name SetFeatureAngle 60 } From shari1 at csee.umbc.edu Sun Jan 16 20:22:24 2005 From: shari1 at csee.umbc.edu (Shari Holstege) Date: Sun, 16 Jan 2005 20:22:24 -0500 (EST) Subject: [vtkusers] VTK Build Problem Message-ID: I'm trying to build VTK, and I'm getting the following errors: Building Java Test /home/shari/VTK/VTK/Wrapping/Java/TestVTKCanvas.class... /home/shari/VTK/VTK/Wrapping/Java/vtk/vtkCanvas.java:12: cannot find symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /home/shari/VTK/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot find symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ /home/shari/VTK/VTK/Wrapping/Java/vtk/vtkCanvas.java:12: cannot find symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /home/shari/VTK/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot find symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ 4 errors make[3]: *** [/home/shari/VTK/VTK/Wrapping/Java/TestVTKCanvas.class] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Java] Error 2 make: *** [default_target] Error 2 My OS is Fedora Linux and I'm using Java 1.5. I'll admit to being a VTK newbie, so any advice would be appreciated. Thanks, Shari From dan at chalkie.org.uk Mon Jan 17 02:14:43 2005 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Mon, 17 Jan 2005 09:14:43 +0200 Subject: [vtkusers] Re: ray cast rendered stereo is LR reversed In-Reply-To: <20050114222322.44F29348A6@public.kitware.com> References: <20050114222322.44F29348A6@public.kitware.com> Message-ID: <7643A8B4-6857-11D9-892F-000393686412@chalkie.org.uk> Hi All, I added a bug report to the bug tracker, I'm not sure if it is already fixed in CVS, I am trying to use this feature very often, and it needs to be fixed, as it is quite fundamental to visualisation of complex data. cheers Dan On 15 Jan 2005, at 00:23, vtkusers-request at vtk.org wrote: > Message: 4 > Date: Fri, 14 Jan 2005 17:23:08 -0500 > From: Marius S Giurgi > Subject: [vtkusers] Raycasting Stereo Reversed > To: schwarz at evl.uic.edu > Cc: vtkusers at vtk.org > Message-ID: > Content-Type: text/plain; charset="us-ascii" > >>> Hi, >>> >>> When I render polygonal data in a stereo enabled render window the > stereo >>> pairs appear fine. But, when I use raycasting to render a volume, > the >>> stereo pairs are reversed. Setting the EyeAngle to a negative value >>> corrects this when using raycasting only, but when I attempt to > render >>> both polygonal data and a raycasted image in the same renderer, one > of the >>> two is always reversed. >>> >>> Can anyone lend any assistance? >>> >>> Thanks, >>> >>> Nicholas > > > Hi Nicholas. > > I came across the same stereo issue as the one you had posted on the > vtk list some time ago about the volume/polydata stereo render being > reversed. I was wondering if you found out any solution in the > meantime. > > I too tried to stereo render both volume and polydata and got the same > result. (but instead of using a stereo hardware I created two render > viewports for the left and right eye (for cross eyed viewing)). It > looks like the stereo volume pair renders are swapped. While the > polydata looks fine in 3D stereo, the volume is swapped (therefore it > looks reversed in cross eyed viewing). You can tell that by the > misplacement of the volume in the following stereo image below. I don't > know much about how the rendering is done in vtk, but it looks to me > that the volume is rendered separately from the polydata (using the > polydata to crop it) then later recomposing the volume and polydata > rendering, but in the wrong order (left and right swapped). Btw, this > cropping (see how the axes crop the volume) appear even in a single > render window once you hit 3 (to toggle between stereo and normal > mode). > > Any ideas how to solve this issue? > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: pastedGraphic3.jpg > Type: image/jpeg > Size: 34227 bytes > Desc: not available > Url : > http://public.kitware.com/pipermail/vtkusers/attachments/20050114/ > a2228b9e/pastedGraphic3.jpg > > Dr. Daniel James White BSc. (Hons.) PhD Bioimaging Coordinator Nanoscience Centre and Department of Biological and Environmental science Division of Molecular Recognition Ambiotica C242 PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 14 260 4183 (work) +358 468102840 (mobile) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From prophecy at corpranet.net Mon Jan 17 04:16:47 2005 From: prophecy at corpranet.net (Justace Clutter) Date: Mon, 17 Jan 2005 03:16:47 -0600 Subject: [vtkusers] Question about the dimensions variable? Message-ID: <1105953407.11807.11.camel@localhost> I was trying to convert some data that I have, a 3D grid with scalars at each point. I was moving it to a structured grid. The question that I have is what is this dimensions variable in the file. What do I put for that, what is the purpose of it... I have looked at the file formats document at VTK.org but is just started to use the term without defining it. Any help would be great. Thanks in advance. Justace From lachlan at chryatech.com.au Mon Jan 17 05:12:17 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Mon, 17 Jan 2005 11:12:17 +0100 Subject: [vtkusers] Interactive VTK In-Reply-To: References: Message-ID: <4488E93D-6870-11D9-892B-000D93C3904C@chryatech.com.au> > Good Morning, > > I have just started looking at VTK and i wondered if it is possible to > interact with a vtk visualisation by clicking on an individual sphere > in the visualisation. Can vtk generate the event to detect which shape > you have clicked on?? > > > Thankyou in advance > > Lachlan > From Karl.Fritscher at umit.at Mon Jan 17 05:14:25 2005 From: Karl.Fritscher at umit.at (Karl Fritscher) Date: Mon, 17 Jan 2005 11:14:25 +0100 Subject: [vtkusers] vtkClipPolyData Message-ID: Hello, i would like to cut a 3d binary image by using the vtk implicit plane widget and convert the output back to an itk image. The miage contains a sphere where the pixels inside of the shpere are white and everything outside is black. I managed to cut the image an convert the polydata using vtkImplicitModeller and VTKImageToImageFilter. Ht eproblem is, that the Implicit Modeller is only returning the contour of the cut polydata. What I would need is that everything which is inside the initial sphere (and "inside" the cutting plane) is white and everything outside is black again. I would really appreciate, If somebody could give me a hint on how i could achive this. From lachlan at chryatech.com.au Mon Jan 17 05:25:30 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Mon, 17 Jan 2005 11:25:30 +0100 Subject: [vtkusers] Interactive VTK Message-ID: <1D150830-6872-11D9-892B-000D93C3904C@chryatech.com.au> > Good Morning, > > I have just started looking at VTK and i wondered if it is possible to > interact with a vtk visualisation by clicking on an individual sphere > in the visualisation. Can vtk generate the event to detect which shape > you have clicked on?? > > > Thankyou in advance > > Lachlan From dshamoni at science.uva.nl Mon Jan 17 05:36:42 2005 From: dshamoni at science.uva.nl (Denis Shamonin) Date: Mon, 17 Jan 2005 11:36:42 +0100 Subject: [vtkusers] Interactive VTK In-Reply-To: <1D150830-6872-11D9-892B-000D93C3904C@chryatech.com.au> References: <1D150830-6872-11D9-892B-000D93C3904C@chryatech.com.au> Message-ID: <41EB953A.6020706@science.uva.nl> Lachlan Blackhall wrote: >> Good Morning, >> >> I have just started looking at VTK and i wondered if it is possible >> to interact with a vtk visualisation by clicking on an individual >> sphere in the visualisation. > Yes, you should read http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html >> Can vtk generate the event to detect which shape you have clicked on?? > Yes, http://www.vtk.org/doc/nightly/html/classvtkPointPicker.html or http://www.vtk.org/doc/nightly/html/classvtkCellPicker.html Also have a look to examples for this classes. -- Denis Shamonin Section Computational Science University of Amsterdam Kruislaan 403, 1098 SJ Amsterdam The Netherlands E-mail : dshamoni at science.uva.nl URL : http://staff.science.uva.nl/~dshamoni/ Room number : F.215 Secr. number : +31 20 525 7463 Fax number : +31 20 525 7419 Office number : +31 20 525 7574 From ursula.kose at philips.com Mon Jan 17 06:04:03 2005 From: ursula.kose at philips.com (ursula.kose at philips.com) Date: Mon, 17 Jan 2005 12:04:03 +0100 Subject: [vtkusers] z-buffer of objects with opacity < 1.0 Message-ID: Dear all, I do have a very urgent question. Can somebody tell me what happens to the z-buffer when an object is not fully opaque (opacity = 1.0) but has an opacity of less then 1.0? How can I influence the z-buffer such that it is built as I need it? Thanks, Ursula From lachlan at chryatech.com.au Mon Jan 17 06:16:00 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Mon, 17 Jan 2005 12:16:00 +0100 Subject: [vtkusers] vtkPicker Message-ID: <2AEAC08C-6879-11D9-892B-000D93C3904C@chryatech.com.au> Hello again, I am trying to implement a simple vtkpicker example to teach myself how it works. I want to change the colour of a sphere when i click on it. Ive had a look at the documentation but it is a bit confusing. I have 3 spheres in a rendering window. What methods and order must i use to get the actor i have clicked so i can change its colour property. Thankyou in advance Lachlan From I.deBoer at polytec.de Mon Jan 17 06:13:51 2005 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 17 Jan 2005 12:13:51 +0100 Subject: [vtkusers] vtkPicker Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD90145024B@02polywbr.waldbronn.polytec.de> Hi, maybe this helps... http://public.kitware.com/pipermail/vtkusers/2004-April/023779.html greets Ingo --- Dr.-Ing. Ingo H. de Boer Polytec GmbH Polytec-Platz 1-7, 76337 Waldbronn, Germany phone: ++49 7243 604 0 fax : ++49 7243 604 255 From Karl.Fritscher at umit.at Mon Jan 17 07:23:09 2005 From: Karl.Fritscher at umit.at (Karl Fritscher) Date: Mon, 17 Jan 2005 13:23:09 +0100 Subject: [vtkusers] vtkClipPolyData Message-ID: Hello, i would like to cut a 3d binary image by using the vtk implicit plane widget and convert the output back to an itk image. The miage contains a sphere where the pixels inside of the shpere are white and everything outside is black. I managed to cut the image an convert the polydata using vtkImplicitModeller and VTKImageToImageFilter. Ht eproblem is, that the Implicit Modeller is only returning the contour of the cut polydata. What I would need is that everything which is inside the initial sphere (and "inside" the cutting plane) is white and everything outside is black again. I would really appreciate, If somebody could give me a hint on how i could achive this. Karl Fritscher Research Assistant UMIT-Austria From wesbrooks at gmail.com Mon Jan 17 09:45:18 2005 From: wesbrooks at gmail.com (Wesley Brooks) Date: Mon, 17 Jan 2005 14:45:18 +0000 Subject: [vtkusers] FEA tools for VTK, or FEA tools compatible with FEA. Message-ID: Dear VTK Users, I'm currently working on a project that may soon encorperate FEA analysis. I've only seen information about visualising the results or meshes from FEA rather than creating the meshes using VTK tools. Are there 3D meshing tools? Has any one here experienced using them? I'm using VTK through python on a desk-top system running XP. Yours Faithfully, Wesley Brooks From d.murphy at cs.ucc.ie Mon Jan 17 12:14:06 2005 From: d.murphy at cs.ucc.ie (David Murphy) Date: Mon, 17 Jan 2005 17:14:06 +0000 Subject: [vtkusers] VTK and OpenGL In-Reply-To: <20050117170011.45D5634836@public.kitware.com> References: <20050117170011.45D5634836@public.kitware.com> Message-ID: <31992A44-68AB-11D9-A9FE-000A956D9E4E@cs.ucc.ie> Hi folks, I'm trying to make sense of the relationship between VTK and the underlying graphics subsystem. More specifically, I'm trying to establish if there is a relationship between VTK and OpenGL. I've read through the VTK books and only found a passing mention of this. Are there any papers, FAQs, etc. that elucidate this relationship? Thanks in advance. Dave Murphy Ireland From pier_jan at hotmail.com Mon Jan 17 16:58:13 2005 From: pier_jan at hotmail.com (Pierre-Jean Boulianne) Date: Mon, 17 Jan 2005 16:58:13 -0500 Subject: [vtkusers] imaging: brightness, zoom, anti-aliasing, resize, contrast. Message-ID: An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Tue Jan 18 07:01:48 2005 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Tue, 18 Jan 2005 7:01:48 -0500 Subject: [vtkusers] how to draw a 3D spring Message-ID: <20050118120148.GAU1796.tomts6-srv.bellnexxia.net@mxmta.bellnexxia.net> Hi Shi, one way is to try the first bit of code in Hybrid/Testing/Cxx/TestOrientationMarkerWidget.cxx: //////////////////////////////////////////////////////////////////////////////// // create an actor out of parts of vtkAxesActor and vtkAnnotatedCubeActor // to have the widget follow. // part 1 is a helical spring to test vtkAxesActor SetUserDefinedShaft // double dt = vtkMath::DoublePi() / 20.0; double t = 0.0; double x = 0.0; int nPoints = 120; double dx = 0.8 / nPoints; vtkPoints* points = vtkPoints::New(VTK_DOUBLE); vtkCellArray* line = vtkCellArray::New(); line->InsertNextCell( nPoints + 80 ); int i = 0; // form a ring do { points->InsertPoint( i, 0.1*cos(t), x, 0.1*sin(t) ); line->InsertCellPoint( i ); t += dt; }while( ++i < 40 ); // form spiral do { points->InsertPoint( i, 0.1*cos(t), x, 0.1*sin(t) ); line->InsertCellPoint(i); t += dt; x += dx; }while( ++i < nPoints + 40 ); // form a ring do { points->InsertPoint( i, 0.1*cos(t), x, 0.1*sin(t) ); line->InsertCellPoint( i ); t += dt; }while( ++i < nPoints + 80 ); vtkPolyData* wiggle = vtkPolyData::New(); wiggle->SetPoints( points ); wiggle->SetLines( line ); vtkTubeFilter* tube = vtkTubeFilter::New(); tube->SetInput( wiggle ); tube->SetGenerateTCoordsToOff(); tube->CappingOff(); tube->SetVaryRadiusToVaryRadiusOff(); tube->SetRadius( 0.02 ); tube->SetNumberOfSides( 5 ); //////////////////////////////////////////////////////////////////////////////// send the tube filter output to a vtkPolyDataMapper, then to a vtkActor etc. You can preview the effect if you have VTKData baseline images in VTKData/Baseline/Hybrid/TestOrientationMarkerWidget.png regards, Dean From neelam at apvindia.com Tue Jan 18 07:08:58 2005 From: neelam at apvindia.com (neelam) Date: Tue, 18 Jan 2005 17:38:58 +0530 Subject: [vtkusers] missing file VTKDICOMPARSER.LIB when compiling a borland 32 bit program Message-ID: <200501181202.RAA27017@pr10.indiatimes.com> sir, there is a program written in Borland 32 bit. when i compile this program it shows error as "unable to open VTKDICOMPARSER.LIB" i'm using Borland 6.0 version with latest downloaded setup of vtk4.2. there are no such file in current version of vtk. plz look the problem stated above and kindly tell how can i compile my program. Neelam From goodwin.lawlor at ucd.ie Tue Jan 18 11:25:27 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 18 Jan 2005 16:25:27 -0000 Subject: [vtkusers] Re: VTK and OpenGL References: <20050117170011.45D5634836@public.kitware.com> <31992A44-68AB-11D9-A9FE-000A956D9E4E@cs.ucc.ie> Message-ID: Hi David, VTK uses OpenGL (or Mesa) to do all its rendering... Have a look at this class to see where VTK calls OpenGL to render 3D primitives: vtkOpenGLPolyDataMapper ( http://public.kitware.com/cgi-bin/viewcvs.cgi/Rendering/vtkOpenGLPolyDataMapper.cxx?rev=1.102 ) hth Goodwin "David Murphy" wrote in message news:31992A44-68AB-11D9-A9FE-000A956D9E4E at cs.ucc.ie... > Hi folks, > > I'm trying to make sense of the relationship between VTK and the > underlying graphics subsystem. > More specifically, I'm trying to establish if there is a relationship > between VTK and OpenGL. > > I've read through the VTK books and only found a passing mention of > this. > > Are there any papers, FAQs, etc. that elucidate this relationship? > > Thanks in advance. > > > > Dave Murphy > Ireland > > _______________________________________________ > 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 > From winderzc at yahoo.com Tue Jan 18 11:39:19 2005 From: winderzc at yahoo.com (Cong Zhang) Date: Tue, 18 Jan 2005 08:39:19 -0800 (PST) Subject: [vtkusers] How to get the render window image when the window is too big? Message-ID: <20050118163919.16138.qmail@web41004.mail.yahoo.com> Hi all, I am trying to save a rendered window as BMP image file. I use the following codes: vtkRenderWindow *renWin = vtkRenderWindow::New(); ... ... renWin->Render(); vtkWindowToImageFilter *ImageFilter = vtkWindowToImageFilter::New(); ImageFilter->SetInput(renWin); vtkBMPWriter *bmpWriter = vtkBMPWriter::New(); bmpWriter->SetFileName("a.bmp"); bmpWriter->SetInput(ImageFilter->GetOutput()); bmpWriter->Write(); And I need to set the image size (in pixel form), which could be done by setting window size, using the code, i.e.: renWin->SetSize(width,height); If the width and height are smaller than the screen size, it works well. WHILE if NOT, the saved image size is truncated.such as, if I set width=996, height=1320, and my screen is too small to display the rendered window in one page. When I access the saved image, its size is 996*793; if I set width=498, height=660, the image size is 496*660. Is there anybody know how to solve this BIG window problem?! Thanks in advance!!! Regards, chong --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rendezvous at dreamxplosion.com Tue Jan 18 12:38:07 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Tue, 18 Jan 2005 12:38:07 -0500 Subject: [vtkusers] CVS (java wrapper) build error Message-ID: I'm trying to build the (CVS) VTK on Mac OS X 10.2.7 including the Java wrapper and I get this error: ... Building object file vtkRenderWindowJava.o... In file included from /Developer/VTK/build/Rendering/vtkRenderWindowJava.cxx:1269: /Developer/VTK/Common/vtkJavaAwt.h: In function `jint Java_vtk_vtkPanel_RenderCreate(JNIEnv*, _jobject*, _jobject*)': /Developer/VTK/Common/vtkJavaAwt.h:109: error: 'struct JAWT_MacOSXDrawingSurfaceInfo' has no member named 'carbonWindowRef' make[3]: *** [vtkRenderWindowJava.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 === with: java version "1.4.2_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.3) Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode) === Any idea how to fix this? From jsh238 at psu.edu Tue Jan 18 17:42:42 2005 From: jsh238 at psu.edu (JARED HOOVER) Date: Tue, 18 Jan 2005 17:42:42 -0500 (EST) Subject: [vtkusers] make problem with vtkImageReader... Message-ID: <200501182242.RAA00270@webmail11.cac.psu.edu> Hello, I am running linux (Fedora Core 3). This is the first time I have built the VTK source code from scratch and I am running into a problem when the building process gets to vtkImageReader.o. It was missing a bunch of files which I found in VTKs Repository [VTK]/Common/Attic/. The descriptions of the files in the repositories that are missing during the building process usually say that they were removed or relocated to the Filter directory. I am now to the point where it does not tell me that any files are missing and there is still an error. Can anybody help me? Thanks in advance. Below is the beginning of the error output it give me... /usr/local/VTK/Filtering: building default_target /usr/local/VTK/Imaging: building default_target /usr/local/VTK/Graphics: building default_target /usr/local/VTK/IO: building default_target Building object file vtkImageReader.o... In file included from /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkStreamingDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkImageReader.cxx:23: /usr/local/VTK/IO/vtkDistributedExecutive.h:71: error: `vtkGarbageCollector' has not been declared /usr/local/VTK/IO/vtkDistributedExecutive.h:71: error: ISO C++ forbids declaration of `parameter' with no type In file included from /usr/local/VTK/IO/vtkStreamingDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkImageReader.cxx:23: /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:115: error: `vtkGarbageCollector' has not been declared /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:115: error: ISO C++ forbids declaration of `parameter' with no type /usr/local/VTK/IO/vtkImageReader.cxx: In constructor `vtkImageReader::vtkImageReader()': /usr/local/VTK/IO/vtkImageReader.cxx:53: error: 'class vtkImageReader' has no member named 'ScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx:54: error: 'class vtkImageReader' has no member named 'SetScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx: In destructor `virtual vtkImageReader::~vtkImageReader()': /usr/local/VTK/IO/vtkImageReader.cxx:61: error: 'class vtkImageReader' has no member named 'SetScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx: In member function `virtual void vtkImageReader::PrintSelf(std::ostream&, vtkIndent)': /usr/local/VTK/IO/vtkImageReader.cxx:92: error: 'class vtkImageReader' has no member named 'ScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx:92: error: 'class vtkImageReader' has no member named 'ScalarArrayName' From kli at issi-hsv.com Tue Jan 18 18:12:18 2005 From: kli at issi-hsv.com (Kanghong Li) Date: Tue, 18 Jan 2005 17:12:18 -0600 Subject: [vtkusers] Change color of axes References: <200501182242.RAA00270@webmail11.cac.psu.edu> Message-ID: <000501c4fdb3$2802c520$7b01a8c0@SUN> How can we change the defaut colors (red(x), yellow(y), green(z)) of the vtkaxes? Thanks. From goodwin.lawlor at ucd.ie Tue Jan 18 18:58:18 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 18 Jan 2005 23:58:18 -0000 Subject: [vtkusers] Re: Change color of axes References: <200501182242.RAA00270@webmail11.cac.psu.edu> <000501c4fdb3$2802c520$7b01a8c0@SUN> Message-ID: Change the values of the point data scalars to a number between 0 and 1. The default is 0 0 0.25 0.25 0.5 0.5 (there are six scalars for the 6 points... 2 for each line) 0 = red 0.25 = yellow 0.5 = green (1.0 = blue) These values are indexes into the default lookup table. So to change the green axis to blue: vtkAxes axes axes Update set scalars [[[axes GetOuput] GetPointData] GetScalars] $scalars SetTuple1 4 1.0 $scalars SetTuple1 5 1.0 hth Goodwin "Kanghong Li" wrote in message news:000501c4fdb3$2802c520$7b01a8c0 at SUN... > How can we change the defaut colors (red(x), yellow(y), green(z)) of the > vtkaxes? Thanks. > > _______________________________________________ > 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 > From jsh238 at psu.edu Tue Jan 18 21:06:09 2005 From: jsh238 at psu.edu (JARED HOOVER) Date: Tue, 18 Jan 2005 21:06:09 -0500 (EST) Subject: [vtkusers] vtkImageReader.o Problem Message-ID: <200501190206.VAA24920@webmail9.cac.psu.edu> Hello, I am running linux (Fedora Core 3). This is the first time I have built the VTK source code from scratch and I am running into a problem when the building process gets to vtkImageReader.o. It was missing a bunch of files which I found in VTKs Repository [VTK]/Common/Attic/. The descriptions of the files in the repositories that are missing during the building process usually say that they were removed or relocated to the Filter directory. I am now to the point where it does not tell me that any files are missing and there is still an error. Can anybody help me? Thanks in advance. Below is the beginning of the error output it give me... /usr/local/VTK/Filtering: building default_target /usr/local/VTK/Imaging: building default_target /usr/local/VTK/Graphics: building default_target /usr/local/VTK/IO: building default_target Building object file vtkImageReader.o... In file included from /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkStreamingDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkImageReader.cxx:23: /usr/local/VTK/IO/vtkDistributedExecutive.h:71: error: `vtkGarbageCollector' has not been declared /usr/local/VTK/IO/vtkDistributedExecutive.h:71: error: ISO C++ forbids declaration of `parameter' with no type In file included from /usr/local/VTK/IO/vtkStreamingDemandDrivenPipeline.h:22, from /usr/local/VTK/IO/vtkImageReader.cxx:23: /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:115: error: `vtkGarbageCollector' has not been declared /usr/local/VTK/IO/vtkDemandDrivenPipeline.h:115: error: ISO C++ forbids declaration of `parameter' with no type /usr/local/VTK/IO/vtkImageReader.cxx: In constructor `vtkImageReader::vtkImageReader()': /usr/local/VTK/IO/vtkImageReader.cxx:53: error: 'class vtkImageReader' has no member named 'ScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx:54: error: 'class vtkImageReader' has no member named 'SetScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx: In destructor `virtual vtkImageReader::~vtkImageReader()': /usr/local/VTK/IO/vtkImageReader.cxx:61: error: 'class vtkImageReader' has no member named 'SetScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx: In member function `virtual void vtkImageReader::PrintSelf(std::ostream&, vtkIndent)': /usr/local/VTK/IO/vtkImageReader.cxx:92: error: 'class vtkImageReader' has no member named 'ScalarArrayName' /usr/local/VTK/IO/vtkImageReader.cxx:92: error: 'class vtkImageReader' has no member named 'ScalarArrayName' From lachlan at chryatech.com.au Tue Jan 18 11:59:54 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Tue, 18 Jan 2005 17:59:54 +0100 Subject: [vtkusers] vtkPicker on Cocoa (Mac OS X) Message-ID: <6010DD82-6972-11D9-8E06-000D93C3904C@chryatech.com.au> Has anybody got any vtkpicker examples for cocoa (mac os x)?? thanks in advance lachlan From lachlan at chryatech.com.au Wed Jan 19 04:21:43 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Wed, 19 Jan 2005 10:21:43 +0100 Subject: [vtkusers] Compile Errors on Mac OS X Message-ID: <88D826F1-69FB-11D9-ABC2-000D93C3904C@chryatech.com.au> When compiling the VTK source i get the following error from vtkCarbonWindowRenderInteractor.cxx on lines 188, 196 and 204 complaining about the unary & in the following function argument &((char)charCode) Anybody else had this issue and is there a simple fix for it. Thanks Lachlan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 356 bytes Desc: not available URL: From StephanTheisen at gmx.de Wed Jan 19 04:52:46 2005 From: StephanTheisen at gmx.de (Stephan Theisen) Date: Wed, 19 Jan 2005 10:52:46 +0100 Subject: [vtkusers] vtkOpenGLVolumeProVP1000Mapper Message-ID: <41EE2DEE.9080109@gmx.de> Hi Guys! I've a little (big) problem. I must use the vtkOpenGLVolumeProVP1000Mapper class in the Java GUI I've developed since the last few weeks. The problem is, that I found the header file of this class in the vtk 4.2 software, but I can't implemented the class in my Java SDK(netbeans4.0). I don't use CMake, because I've set classpath of my SDK on C:\Programme\vtk42\bin\vtk.jar. So I can use all the classes of vtk which are implemented in the default package. But I really don't know how I can get the class vtkOpenGLVolumeProVP1000Mapper. It was very important for me to know that. please help! Thanks in advance Stephan From christine.schaller at arcor.de Wed Jan 19 07:29:00 2005 From: christine.schaller at arcor.de (Christine Schaller) Date: Wed, 19 Jan 2005 13:29:00 +0100 Subject: [vtkusers] Algorithm in vtkStripper Message-ID: <200501191329.00978.christine.schaller@arcor.de> Hello everyone. I am just wondering if someone knows the algorithm of vtkStripper? The only mention I found was in W.J. Schroeder, B. Yamrom, "A Compact Cell Structure for Scientific Visualization", SIGGRAPH Course on Multiresolution Modeling 1997 Are there any other papers? Greetings Chris From michnay at freemail.hu Wed Jan 19 08:05:46 2005 From: michnay at freemail.hu (=?ISO-8859-2?Q?Michnay_Bal=E1zs?=) Date: Wed, 19 Jan 2005 14:05:46 +0100 (CET) Subject: [vtkusers] Scalar Array Pointer Message-ID: Dear VTK Users, Presumably my problem is related more to pointer operations than to VTK. I'd like to perform some pixel operations on a vtkImageData. I use the following code: vtkImageData *labeledImage = vtkImageData::New(); labeledImage->CopyStructure(pDoc->MainImageContainer [m_lastsel].threshImage); //getting scalar values vtkDataArray *scalarArrayOriginal = pDoc->threshImage->GetPointData ()->GetScalars(); //Get the number of pixels: int NumberOfPixels = scalarArrayOriginal->GetNumberOfTuples(); //x-y dimensions: int ImageDimensions[3]; pDoc->threshImage->GetDimensions(ImageDimensions); //I'd like to make another instance the array containing the scalar values, but making a pointer that points to the original one is not good, because its modifications would affect the original scalar array. //The following line gets the scalar dara of the newly instantiated image. vtkDataArray *scalarArrayLabeled = labeledImage->GetPointData()- >GetScalars(); //This line generated a run-time error. scalarArrayLabeled->SetNumberOfTuples(NumberOfPixels); How can I make a whole new copy of my original scalar array that can be later associated to the new image ? Thanks for your help in advance, All the best, MB From randall.hand at gmail.com Wed Jan 19 10:03:52 2005 From: randall.hand at gmail.com (Randall Hand) Date: Wed, 19 Jan 2005 09:03:52 -0600 Subject: [vtkusers] Few Questions about VTK Message-ID: I've been working with VTK for about a week now, and have a few questions to pose to the community: 1) I've been using GA Tech's Large Geometric Models Archive (http://www.cc.gatech.edu/projects/large_models/) for test datasets. They all work pretty well, except the PLY dataset for the famous Stanford Bunny. Attempting to load it (either in VTK or Paraview) yields "get_ascii_item: bad type = 0". Bad file, or bad loader? 2) I've spent the last few days attempting to compile VTK 4.4 with Mesa 6.2.1 for offscreen rendering support, and I'm happy to say it finally works! But, I can't run the examples since I can't get the TCL Wrappings to compile properly, I get hundreds of errors about "GOT Overflows", and the recommended -LD_LAYOUT:lgot_buffer=20 doesn't seem to fix it. I was able to duplicate the sample in C/C++ and it works flawlessly, but the TCL is currently unavailable to me. Are there any directions on how to do this compile that are updated with these newer versions? (All I could find was the VTK2.2/Mesa4.0.4 on the Wiki FAQ). I'm working on an SGI Irix system, and generating n32 binaries.. fyi. -- Randall Hand http://www.yeraze.com From randall.hand at gmail.com Wed Jan 19 10:20:52 2005 From: randall.hand at gmail.com (Randall Hand) Date: Wed, 19 Jan 2005 09:20:52 -0600 Subject: [vtkusers] A Few Questions about VTK Message-ID: I've been working with VTK for about a week now, and have a few questions to pose to the community: 1) I've been using GA Tech's Large Geometric Models Archive (http://www.cc.gatech.edu/projects/large_models/) for test datasets. They all work pretty well, except the PLY dataset for the famous Stanford Bunny. Attempting to load it (either in VTK or Paraview) yields "get_ascii_item: bad type = 0". Bad file, or bad loader? 2) I've spent the last few days attempting to compile VTK 4.4 with Mesa 6.2.1 for offscreen rendering support, and I'm happy to say it finally works! But, I can't run the examples since I can't get the TCL Wrappings to compile properly, I get hundreds of errors about "GOT Overflows", and the recommended -LD_LAYOUT:lgot_buffer=20 doesn't seem to fix it. I was able to duplicate the sample in C/C++ and it works flawlessly, but the TCL is currently unavailable to me. Are there any directions on how to do this compile that are updated with these newer versions? (All I could find was the VTK2.2/Mesa4.0.4 on the Wiki FAQ). I'm working on an SGI Irix system, and generating n32 binaries.. fyi. (Sorry if this is a duplicate, the first attempt was returned with errors) -- Randall Hand http://www.yeraze.com From rendezvous at dreamxplosion.com Wed Jan 19 12:12:52 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Wed, 19 Jan 2005 12:12:52 -0500 Subject: [vtkusers] WHY dragging the window triggers the render? Message-ID: <5A2EC472-6A3D-11D9-A25A-000A95D7CA24@dreamxplosion.com> Can someone enlighten me, please? and tell me WHY is it that whenever I drag the window around it triggers the rendering pipeline update? Not only that it is useless, consuming CPU resources, but it is also slow, especially whenever there's a volume rendering involved, as it takes a long time to recompute the ray-casting. Thus moving the window aside it's no longer a trivial (quick) task. I'm not sure if this happens on other platforms but it certainly does on Mac OS X. is this a bug? is it supposed to happen like it does? marius From markww at gmail.com Wed Jan 19 13:36:27 2005 From: markww at gmail.com (Mark Wyszomierski) Date: Wed, 19 Jan 2005 13:36:27 -0500 Subject: [vtkusers] Simple Linking Question Message-ID: Hi, First, please forgive me if this message has been posted twice, I tried sending it once before subscribing to the mailing list! I would like to use MFC in a static link of my project with VTK. I have compiled VTK using MFC statically linked. When I go to compile my sample application (also statically linked with MFC) I get two linking errors as follow: [code] #include "vtkRenderer.h" int main() { vtkRenderer *renderer = vtkRenderer::New(); } [/code] Errors: LNK 2005: __cdecl operator new(..) already defined in libcpmtd.lib LNK 2005: __cdecl operator new[](..) already defined in libcpmtd.lib Should I compile VTK using standard windows libraries to facilitate static linking in MFC in the final project? Thanks! Mark From markww at gmail.com Wed Jan 19 14:16:23 2005 From: markww at gmail.com (Mark Wyszomierski) Date: Wed, 19 Jan 2005 14:16:23 -0500 Subject: [vtkusers] Simple Linking Question Message-ID: Hi, First, please forgive me if this message has been posted twice, I tried sending it once before subscribing to the mailing list! I would like to use MFC in a static link of my project with VTK. I have compiled VTK using MFC statically linked. When I go to compile my sample application (also statically linked with MFC) I get two linking errors as follow: [code] #include "vtkRenderer.h" int main() { vtkRenderer *renderer = vtkRenderer::New(); } [/code] Errors: LNK 2005: __cdecl operator new(..) already defined in libcpmtd.lib LNK 2005: __cdecl operator new[](..) already defined in libcpmtd.lib Should I compile VTK using standard windows libraries to facilitate static linking in MFC in the final project? Thanks! Mark From jcplatt at lineone.net Wed Jan 19 15:06:18 2005 From: jcplatt at lineone.net (John Platt) Date: Wed, 19 Jan 2005 20:06:18 -0000 Subject: [vtkusers] Visualisation non linear cells In-Reply-To: <41E69659.8070405@inpro.de> Message-ID: <000001c4fe62$5a8ce610$064b2850@pacsys4> Hi Soeren, I am no expert in VTK but I have used nonlinear cells and also wish to extend the types available. These are some comments based on what I have seen in the code rather than experience implementing a new cell type. Triangulate() is used by surface filters (vtkDataSetSurfaceFilter) to replace quadratic faces by linear triangles. The schemes are carefully chosen so as NOT to introduce new points. Implementing a new scheme with more points to give better resolution of curved edges will require some care to ensure adjacent edges detect the new points. The point data must also be interpolated. It may also be necessary to make Subdivide() compatible with Triangulate(). In version 4.4 there does not appear to be any concrete implementations of Tesselate(). Have you looked at? http://www.vtk.org/doc/nightly/html/classvtkGenericCellTessellator.html HTH John. -----Original Message----- From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Soeren Gebbert Sent: 13 January 2005 15:40 To: vtkusers at vtk.org Subject: [vtkusers] Visualisation non linear cells Dear vtkusers and developers, I'm using vtk 4.4 and paraview 1.8.2 at linux and windows. I'm a beginner in vtk but i have some important questions to ask: I want to add new nonlinear celltypes to vtk, like a quadratic quad with an area center point and so on. And i want to visualize them with a curved surface. Since now i used paraview to visualize the already implemented quadratic celltypes (QuadraticTetra ...). In paraview i used the TempTessellatorFilter to get a proper visualisation. I thought this filter is also implementet in vtk but it isnt. So i searched for a proper functionality in vtk to get my curved surface, but i didnt found a filter. As it is described in the vtk books, the quadratic cells will be visualized as linear cells. I guess the reimplemented function "Triangulate" from vtkCell in the in the vtkNonLineareCell classes is doing this. But there is a virtual function named Tesselate declrated in vtkNonLinearCell, i guess this function will be used to render curved surfaces, but this function is not implemented yet. So my question is: 1.) Is the function "Triangulate" responsible for the visualisation of the different celltypes in vtk? 2.) If 1. is ture, can i reimplement the Triangulate function to create curved surfaces for nonlineare cells? 3.) Is it possible to reimplement the "Tesselate" function and use this for visualisation of nonlinear cells? 4.) If 1. - 3. is not true, what can i do to visualize 2D and 3D nonlinear cells to get the form that is described in the shape function of these cells? Thanks alot and best regards Soeren Gebbert btw.: Please excuse my english. _______________________________________________ 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 From melanies at tamu.edu Wed Jan 19 16:14:47 2005 From: melanies at tamu.edu (Sarzynski, Melanie D) Date: Wed, 19 Jan 2005 21:14:47 -0000 Subject: [vtkusers] Application of vtkDelauanay2D problem Message-ID: <200501192114.j0JLElnR000122@smtp-relay.tamu.edu> I am attempting to use Delauanay2D to improve the triangulation of an isosurface consisting of points x,y,z where z is not a function of x and y. The goal is to obtain a triangulation that consists of non-skewed triangles appropriate for an FEA application. The basic application reads in bmp image files then stacks them into a 3D space and uses MarchingCubes to generate the isosurface. When I render the output file, the topology of the surface is completely different from what it should be. Any assistance is appreciated. The relevant parts of the code are below. //set up contour filter vtkImageMarchingCubes *contours = vtkImageMarchingCubes::New(); contours->SetInput(ismooth->GetOutput()); contours->SetValue(0, thresh); //convert sqaures to triangles vtkTriangleFilter *triangles = vtkTriangleFilter::New(); triangles->SetInput(contours->GetOutput()); //Delaunay2D triangulation vtkDelaunay2D *del = vtkDelaunay2D::New(); del->SetInput(triangles->GetOutput()); del->SetTransform(transform); del->BoundingTriangulationOff(); del->SetTolerance(0.001); del->SetAlpha(0.0); //set up data writer vtkPolyDataWriter *writer = vtkPolyDataWriter::New(); writer->SetFileTypeToBinary(); writer->SetFileName(output); writer->SetInput(del->GetOutput()); writer->Write(); From melanies at tamu.edu Wed Jan 19 16:21:46 2005 From: melanies at tamu.edu (Sarzynski, Melanie D) Date: Wed, 19 Jan 2005 21:21:46 -0000 Subject: [vtkusers] Application of vtkDelauanay2D problem Message-ID: <200501192121.j0JLLknR003479@smtp-relay.tamu.edu> I am attempting to use Delauanay2D to improve the triangulation of an isosurface consisting of points x,y,z where z is not a function of x and y. The goal is to obtain a triangulation that consists of non-skewed triangles appropriate for an FEA application. The basic application reads in bmp image files then stacks them into a 3D space and uses MarchingCubes to generate the isosurface. When I render the output file, the topology of the surface is completely different from what it should be. Any assistance is appreciated. The relevant parts of the code are below. //set up contour filter vtkImageMarchingCubes *contours = vtkImageMarchingCubes::New(); contours->SetInput(ismooth->GetOutput()); contours->SetValue(0, thresh); //convert sqaures to triangles vtkTriangleFilter *triangles = vtkTriangleFilter::New(); triangles->SetInput(contours->GetOutput()); //Delaunay2D triangulation vtkDelaunay2D *del = vtkDelaunay2D::New(); del->SetInput(triangles->GetOutput()); del->SetTransform(transform); del->BoundingTriangulationOff(); del->SetTolerance(0.001); del->SetAlpha(0.0); //set up data writer vtkPolyDataWriter *writer = vtkPolyDataWriter::New(); writer->SetFileTypeToBinary(); writer->SetFileName(output); writer->SetInput(del->GetOutput()); writer->Write(); From melanies at tamu.edu Wed Jan 19 16:28:44 2005 From: melanies at tamu.edu (Sarzynski, Melanie D) Date: Wed, 19 Jan 2005 21:28:44 -0000 Subject: [vtkusers] Application of vtkDelauanay2D problem Message-ID: <200501192128.j0JLSivl037945@smtp-relay.tamu.edu> I am attempting to use Delauanay2D to improve the triangulation of an isosurface consisting of points x,y,z where z is not a function of x and y. The goal is to obtain a triangulation that consists of non-skewed triangles appropriate for an FEA application. The basic application reads in bmp image files then stacks them into a 3D space and uses MarchingCubes to generate the isosurface. When I render the output file, the topology of the surface is completely different from what it should be. Any assistance is appreciated. The relevant parts of the code are below. -------------------------------------------------------------------- //set up contour filter vtkImageMarchingCubes *contours = vtkImageMarchingCubes::New(); contours->SetInput(ismooth->GetOutput()); contours->SetValue(0, thresh); //convert sqaures to triangles vtkTriangleFilter *triangles = vtkTriangleFilter::New(); triangles->SetInput(contours->GetOutput()); //Delaunay2D triangulation vtkDelaunay2D *del = vtkDelaunay2D::New(); del->SetInput(triangles->GetOutput()); del->SetTransform(transform); del->BoundingTriangulationOff(); del->SetTolerance(0.001); del->SetAlpha(0.0); //set up data writer vtkPolyDataWriter *writer = vtkPolyDataWriter::New(); writer->SetFileTypeToBinary(); writer->SetFileName(output); writer->SetInput(del->GetOutput()); writer->Write(); -------------------------------------------------------------------- From melanies at tamu.edu Wed Jan 19 16:31:20 2005 From: melanies at tamu.edu (Sarzynski, Melanie D) Date: Wed, 19 Jan 2005 21:31:20 -0000 Subject: [vtkusers] Delauanay2D triangulation In-Reply-To: <20050119152100.756483481B@public.kitware.com> Message-ID: <200501192131.j0JLVKI7014106@smtp-relay.tamu.edu> I am attempting to use Delauanay2D to improve the triangulation of an isosurface consisting of points x,y,z where z is not a function of x and y. The goal is to obtain a triangulation that consists of non-skewed triangles appropriate for an FEA application. The basic application reads in bmp image files then stacks them into a 3D space and uses MarchingCubes to generate the isosurface. When I render the output file, the topology of the surface is completely different from what it should be. Any assistance is appreciated. The relevant parts of the code are below. -------------------------------------------------------------------- //set up contour filter vtkImageMarchingCubes *contours = vtkImageMarchingCubes::New(); contours->SetInput(ismooth->GetOutput()); contours->SetValue(0, thresh); //convert sqaures to triangles vtkTriangleFilter *triangles = vtkTriangleFilter::New(); triangles->SetInput(contours->GetOutput()); //Delaunay2D triangulation vtkDelaunay2D *del = vtkDelaunay2D::New(); del->SetInput(triangles->GetOutput()); del->SetTransform(transform); del->BoundingTriangulationOff(); del->SetTolerance(0.001); del->SetAlpha(0.0); //set up data writer vtkPolyDataWriter *writer = vtkPolyDataWriter::New(); writer->SetFileTypeToBinary(); writer->SetFileName(output); writer->SetInput(del->GetOutput()); writer->Write(); -------------------------------------------------------------------- From ttickle at cs.uno.edu Wed Jan 19 16:36:04 2005 From: ttickle at cs.uno.edu (ttickle) Date: Wed, 19 Jan 2005 15:36:04 -0600 Subject: [vtkusers] Multithreading & vtkRenderWindowInteractor Message-ID: <41EED2C4.5080909@cs.uno.edu> I am writing a program which will have realtime updates to the displayed data under C++ using VTK under Windows. I have tried using a vtkRenderWindowInteractor. Unfortunatly, vtkRenderWindowInteractor only seems to preform updates when the user is interacting with the scene. I need to refresh the window anytime my data changes. At the present time, I am trying to following solution: Create the window, interactor, and renderer and associate appropriatly. Then create my worker thread whose job it will be to periodically update the vtkActors which are being displayed. I then start the interactors event loop with interactor->Start();. I have tried having the thread update the screne by calling the render methods of both vtkRenderWindowInteractor and vtkRenderWindow (not at the same time of course). However, I get error messages related to something about wgl not being able to make the current context. Can anyone show me some code or suggest how I can both use an Interactor with a scene that must be updated even when the user is not interacting with the data scene? Thanks in advance. Thomas Tickle -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 1/16/2005 From will.schroeder at kitware.com Wed Jan 19 16:37:12 2005 From: will.schroeder at kitware.com (Will Schroeder) Date: Wed, 19 Jan 2005 16:37:12 -0500 Subject: [vtkusers] ANNOUNCE: Kitware is hiring... Message-ID: <6.2.0.14.2.20050119163359.0338cc60@pop.biz.rr.com> Kitware is seeking to fill positions immediately. We are looking for people who will relocate to the Albany, NY USA area, are willing to work in a small company, and show flexibility in work assignments. Important skills include proficiency in C++, scientific software development, supercomputing, medical image analysis, ITK, and/or VTK. Individuals demonstrating expertise in areas that significantly extend Kitware's software skill base are particularly favored. Please send your resume to kitware at kitware.com. Will From sxkockara at gmail.com Wed Jan 19 17:01:06 2005 From: sxkockara at gmail.com (sinan kock) Date: Wed, 19 Jan 2005 16:01:06 -0600 Subject: [vtkusers] volumizer Message-ID: <2557c730050119140194fab6e@mail.gmail.com> Is there anybody familier to OpenGL Volumizer? I need help. I have installation problems on windows XP. From sxkockara at gmail.com Wed Jan 19 17:58:41 2005 From: sxkockara at gmail.com (sinan kock) Date: Wed, 19 Jan 2005 16:58:41 -0600 Subject: [vtkusers] volumizer Message-ID: <2557c7300501191458425f3b1b@mail.gmail.com> Is there anybody used OpenGL Volumizer with VTK on Windows platform with Visual C 6.0? I need help. I have installation problems on windows XP. From Dariusz.LEJTMAN at Tenix.com Wed Jan 19 20:37:14 2005 From: Dariusz.LEJTMAN at Tenix.com (LEJTMAN Dariusz) Date: Thu, 20 Jan 2005 12:37:14 +1100 Subject: [vtkusers] VTK with TASH Tcl/Ada bindings Message-ID: <200501200137.j0K1bEJ3012737@sprint2.tenix.com> Hi, Has anyone tried to drive VTK from Ada using TASH (Tcl to Ada bindings)? Dariusz From lzyhm at 263.net Thu Jan 20 00:02:54 2005 From: lzyhm at 263.net (lzy) Date: Thu, 20 Jan 2005 13:02:54 +0800 Subject: [vtkusers] about pick vtkTextActor Message-ID: <2d9701c4fead$4d314b50$0200a8c0@LZY1> I try to using vtkPropPicker to picking the vtkTextActor. but the vtkTextActor can't be pickable. The other vtkActor2D like polyline can be picked by vtkPropPicker. How to pick vtkTextActor? My vtk is 4.2. Thanks in advance for any help provided. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanth.udupa at gmail.com Thu Jan 20 00:09:43 2005 From: prashanth.udupa at gmail.com (Prashanth Udupa) Date: Thu, 20 Jan 2005 10:39:43 +0530 Subject: [vtkusers] VTK Designer 1.0.3 In-Reply-To: <912c00f05011921071d682e0d@mail.gmail.com> References: <912c00f05011921071d682e0d@mail.gmail.com> Message-ID: <912c00f05011921093a66a4a8@mail.gmail.com> Hello All, Version 1.0.3 of VTK Designer has been released and uploaded at http://www.prashanthudupa.com/vtkdesigner New Features ========= * New Property Editing system * Improved Look and Feel * CMake based build system * Compatible with VTK 4.2 and VTK 4.4 * CMake can be used to build C++ code generated by VTK Designer Yours Sincerly, Prashanth N Udupa http://www.prashanthudupa.com From prashanth.udupa at gmail.com Thu Jan 20 01:35:46 2005 From: prashanth.udupa at gmail.com (Prashanth Udupa) Date: Thu, 20 Jan 2005 12:05:46 +0530 Subject: [vtkusers] VTK Designer 1.0.3 Message-ID: <912c00f050119223536d56713@mail.gmail.com> Hello All, Version 1.0.3 of VTK Designer has been released and uploaded at http://www.prashanthudupa.com/vtkdesigner New Features ========= * New Property Editing system * Improved Look and Feel * CMake based build system * Compatible with VTK 4.2 and VTK 4.4 * CMake can be used to build C++ code generated by VTK Designer Yours Sincerly, Prashanth N Udupa From lachlan at chryatech.com.au Wed Jan 19 17:15:22 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Wed, 19 Jan 2005 23:15:22 +0100 Subject: [vtkusers] Mac OS X Runtime Issues Message-ID: <9CACCD2C-6A67-11D9-ABC2-000D93C3904C@chryatech.com.au> Gday fellow vtk users, When i run the samples, or any other vtk programs i can see the visualisation but i cant interact with it. I know i have called the WindowRenderInteractor->Start() method so its not this. I have compiled static Carbon libraries for vtk and have linked the OpenGL, Carbon and AGL frameworks when i compiled each program. While i can click on the close, minimise,maximise buttons on the visualisation, the window cant be moved. I am running the programs from the terminal so when i type a letter it gets sent to the terminal instead of the visualisation. Im not sure where the error is or if i cant call some method to run the window in a seperate process so i can actually click it. Any suggestions would be great cos im getting kinda desperate. Thanks Lachlan ssss From pingkun at ieee.org Thu Jan 20 03:11:50 2005 From: pingkun at ieee.org (Yan Pingkun) Date: Thu, 20 Jan 2005 16:11:50 +0800 Subject: [vtkusers] Mac OS X Runtime Issues In-Reply-To: <9CACCD2C-6A67-11D9-ABC2-000D93C3904C@chryatech.com.au> References: <9CACCD2C-6A67-11D9-ABC2-000D93C3904C@chryatech.com.au> Message-ID: Lachlan, I met the same problem before. I re-compiled VTK by switching off the Carbon option in CMake and turning on the Cocoa. It works then. HTH, Pingkun On 20-Jan-05, at AM 06:15, Lachlan Blackhall wrote: > Gday fellow vtk users, > > When i run the samples, or any other vtk programs i can see the > visualisation but i cant interact with it. I know i have called the > WindowRenderInteractor->Start() method so its not this. > > I have compiled static Carbon libraries for vtk and have linked the > OpenGL, Carbon and AGL frameworks when i compiled each program. > > While i can click on the close, minimise,maximise buttons on the > visualisation, the window cant be moved. I am running the programs > from the terminal so when i type a letter it gets sent to the terminal > instead of the visualisation. Im not sure where the error is or if i > cant call some method to run the window in a seperate process so i can > actually click it. > > Any suggestions would be great cos im getting kinda desperate. > > Thanks > > Lachlan > > ssss > > _______________________________________________ > 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 > From sakieltang at 263.net Thu Jan 20 03:19:41 2005 From: sakieltang at 263.net (=?gb2312?B?c2FraWVs?=) Date: Thu, 20 Jan 2005 16:19:41 +0800 Subject: [vtkusers] How to realize digitally reconstructed radiographs(DRR) Message-ID: <20050120081934.C9777439A9@smtp.263.net> An HTML attachment was scrubbed... URL: From sakieltang at 263.net Thu Jan 20 03:37:37 2005 From: sakieltang at 263.net (=?gb2312?B?c2FraWVs?=) Date: Thu, 20 Jan 2005 16:37:37 +0800 Subject: [vtkusers] =?gb2312?b?oe+h7qHvSG93IHRvIHJlYWxpemUgZGlnaXRhbGx5?= =?gb2312?b?IHJlY29uc3RydWN0ZWQgcmFkaW9ncmFwaHMoRFJSKQ==?= Message-ID: <20050120083730.2B7CF435BD@smtp.263.net> hi,all vtkusers, i want to do DRR from CT Volume Data Set, can i realize it by VTK? I will appreciate very much if anyone can give me a advice. Thanks. Yu Tang ========================== 263??????????? From lachlan at chryatech.com.au Thu Jan 20 05:10:17 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Thu, 20 Jan 2005 11:10:17 +0100 Subject: [vtkusers] Mac OS X visualisation wont respond to keyboard commands Message-ID: <7C439C19-6ACB-11D9-A14E-000D93C3904C@chryatech.com.au> Gday again, I have but one more question for everybody out there, thanks for all the help so far. I have compiled static cocoa libraries on mac os x and i can interact with the visualisations by mouse but the keyboard commands, w for wire frame, p for pick, s for solid etc all get sent to the command prompt i launched the visualisation from instead of to the visualisation window. So basically i still have minimal interaction ability. Does anybody know how i can route the commands to the windows instead of the command prompt or is there a different way i can build or compile to get the same results. Thanks again lachlan From lachlan at chryatech.com.au Thu Jan 20 06:21:32 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Thu, 20 Jan 2005 12:21:32 +0100 Subject: [vtkusers] Mac OS X visualisation wont respond to keyboard commands In-Reply-To: <7C439C19-6ACB-11D9-A14E-000D93C3904C@chryatech.com.au> References: <7C439C19-6ACB-11D9-A14E-000D93C3904C@chryatech.com.au> Message-ID: <700434DF-6AD5-11D9-A14E-000D93C3904C@chryatech.com.au> Sorry if this is coming a second time but i keep getting mail server errors sent to me. > Gday again, > > I have but one more question for everybody out there, thanks for all > the help so far. > > I have compiled static cocoa libraries on mac os x and i can interact > with the visualisations by mouse but the keyboard commands, w for wire > frame, p for pick, s for solid etc all get sent to the command prompt > i launched the visualisation from instead of to the visualisation > window. So basically i still have minimal interaction ability. > > Does anybody know how i can route the commands to the windows instead > of the command prompt or is there a different way i can build or > compile to get the same results. > > Thanks again > > lachlan > From ricksen at natlab.research.philips.com Thu Jan 20 09:00:03 2005 From: ricksen at natlab.research.philips.com (Arjen Ricksen) Date: Thu, 20 Jan 2005 15:00:03 +0100 Subject: [vtkusers] event pending on MS Windows XP and X-Windows on Irix Message-ID: <002801c4fef8$572259b0$498f9182@ddns.htc.nl.philips.com> Dear all, I have a fundamental problem on event queues. I'm trying to interrupt the renderer when a rendering job takes too long and I want to perform a mouse drag for rotating a volume. The method described in the vtk users guide makes use of AbortCheckEvents that are sent by the renderWindow during rendering. These events are observed and on all these events you have to check for pending mouse events with the method GetEventPending of the class vtkRenderWindow. If there are pending events my code aborts the render process by calling the SetAbortRender(1) of the class vtkRenderWindow. This sounds all very nice, but it doesn't work on a MS Windows XP OS. There are simply no events pending. I tried the same on an X-Windows on Irix and there it works fine, there are pending events and thus I'm able to abort the render process whenever I perform a mouse drag. Is there a fundamental difference in the way MS Windows and X-Windows pass events to Java's VM event queue? This problem is probably not connected with Java, we tried the same code in C++ on both operating systems, on X-Windows we got pending events whereas on MS Windows we got none. Last but not least I make use of level-of-detail actors (vtkLODProp3D), mouse drags are performed with a desired update rate of 10 while a mouse release sets the desired update back to 0.01 so the renderWindow can render its highest resolution LOD. With king regards, Arjen Ricksen employee COS/SAVG Philips Research Laboratories Prof. Holstlaan 4 5656 AA Eindhoven, The Netherlands Building: WO P 46 Mailbox: WO 01 Tel : +31-40-27 44357 Fax: +31-40-27 44675 Mailto: ricksen at natlab.research.philips.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From payman_vtk at yahoo.co.uk Thu Jan 20 09:01:16 2005 From: payman_vtk at yahoo.co.uk (payman labbaf) Date: Thu, 20 Jan 2005 14:01:16 +0000 (GMT) Subject: [vtkusers] can't label poly data Message-ID: <20050120140116.34021.qmail@web26005.mail.ukl.yahoo.com> Dear All, I've been trying to label some points with irregular geometery and topology. I chose vtkPolyData as it says in the specification that is fine for 0 dimension data. Now I have a problem with labeling the data. Could you please have a look at my simplified code and let me know what I'm doing wrong. //Points float pointsArray[12] = {1,1,0,1,2,0,2,1,0,2,2,0}; vtkFloatArray *pointFloatArray = vtkFloatArray::New(); pointFloatArray->SetNumberOfComponents(3); pointFloatArray->SetNumberOfTuples(dims[0]*dims[1]*dims[2]); pointFloatArray->SetVoidArray(&pointsArray[0],12,1); vtkPoints *points = vtkPoints::New(); points->SetData(pointFloatArray); //Vectors float array[12] = {10,5,0,11,6,0,12,7,0,13,8,0}; vtkFloatArray *vectors = vtkFloatArray::New(); vectors->SetNumberOfComponents(3); vectors->SetNumberOfTuples(dims[0]*dims[1]*dims[2]); vectors->SetArray(&array[0],12,1); //Poly Data vtkPolyData *polyData = vtkPolyData::New(); polyData->SetPoints(points); polyData->GetPointData()->SetVectors(vectors); //Label Mapper vtkLabeledDataMapper *labelMapper = vtkLabeledDataMapper::New(); labelMapper->SetInput(polyData); labelMapper->SetLabelModeToLabelVectors(); //Actor vtkActor2D *actor = vtkActor2D::New(); actor->SetMapper(labelMapper); The above code works when I'm using vtkStructuredGrid but not for polyData. (I also tried InsertNextPoint() function for giving the points coordinates to vtkPolyData and that didn't work either) Many thanks in advance --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From michnay at freemail.hu Thu Jan 20 09:25:11 2005 From: michnay at freemail.hu (=?ISO-8859-2?Q?Michnay_Bal=E1zs?=) Date: Thu, 20 Jan 2005 15:25:11 +0100 (CET) Subject: [vtkusers] Modify scalar values Message-ID: He all, I'd like to modify the scalar values of some pixels of a vtkImageData. What I do is to get the scalarArray with GetPointData()->GetScalars() and then I set the number of tuples and components. If I try to set a component value, I get an error message (assertion error). What is the problem? Thanks in advance, Regards, MB The code: ------------- vtkDataArray *scalarArrayDestination = LabeledImage->GetPointData()- >GetScalars(); scalarArrayDestination->SetNumberOfTuples(NumberOfPixels); scalarArrayDestination->SetNumberOfComponents(scalarArraySource- >GetNumberOfComponents()); //The following line generates the error: scalarArrayDestination->SetComponent(CurrentPixel,0, 1.0f); From lachlan at chryatech.com.au Thu Jan 20 10:17:00 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Thu, 20 Jan 2005 16:17:00 +0100 Subject: [vtkusers] Visualisation wont accept keystrokes Message-ID: <55042184-6AF6-11D9-A14E-000D93C3904C@chryatech.com.au> Gday, does anybody know why a visualisation wouldnt respond to keystrokes. I know that the visualisation window definitely has system focus and i am using static cocoa libs on mac os x with the example files. thanks Lachlan From sungeun at ecn.purdue.edu Thu Jan 20 11:33:33 2005 From: sungeun at ecn.purdue.edu (Sun Geun Kim) Date: Thu, 20 Jan 2005 11:33:33 -0500 (EST) Subject: [vtkusers] [vtkuser]questions about vtkVolumeShearWarpMapper Message-ID: Hi, I have one question about vtkVolumeshearWarpMapper. Yesterday, I checked out the cvs repository of VTK library to get the latest one and compiled it successfully with Visual Studio .NET 2003 on windows platform. I wanted to see the image quality of Volume Shear Warp algorithm and write a simple program. In my program, I included 'vtkOpenGLVolumeShearWarpMapper.h'. However, when I tried to compiled this program, some errors happen. It's related to vtkVolumeShearWarpMapper. The exact error messages are error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkVolume ...." All error messages are the same linking error to some functions of vtkVolumeShearWarpMapper or vtkOpenGLVolumeShearWarpMapper. So, I am wondering how I can solve this problem? Is there any suggestion? I guess this might be a bug in cvs version of vtk library. Is it correct? Thank you in advance. Sungeun Kim. From mathieu.malaterre at kitware.com Thu Jan 20 11:38:08 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Thu, 20 Jan 2005 11:38:08 -0500 Subject: [vtkusers] Visualisation wont accept keystrokes In-Reply-To: <55042184-6AF6-11D9-A14E-000D93C3904C@chryatech.com.au> References: <55042184-6AF6-11D9-A14E-000D93C3904C@chryatech.com.au> Message-ID: <41EFDE70.8020301@kitware.com> Lachlan, You need to create a proper bundle on MacOSX for key event to work properly. See ADD_EXECUTABLE + BUNDLE on MacOSX. Chris Scharver posted some help on the mailing list: http://public.kitware.com/pipermail/vtkusers/2004-February/072155.html Now eveything should be transparent if using cmake and the proper ADD_EXECUTABLE+BUNDLE HTH Mathieu Lachlan Blackhall wrote: > Gday, > > does anybody know why a visualisation wouldnt respond to keystrokes. I > know that the visualisation window definitely has system focus and > > i am using static cocoa libs on mac os x with the example files. > > thanks > > Lachlan > > _______________________________________________ > 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 > From nNunn at ausport.gov.au Thu Jan 20 11:41:32 2005 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Fri, 21 Jan 2005 03:41:32 +1100 Subject: [vtkusers] Multithreading & vtkRenderWindowInteractor Message-ID: Hi Thomas, > -----Original Message----- > From: ttickle [mailto:ttickle at cs.uno.edu] > Sent: Thursday, 20 January 2005 8:36 AM > To: vtkusers at vtk.org > Subject: [vtkusers] Multithreading & vtkRenderWindowInteractor > > I am writing a program which will have realtime updates to the > displayed data under C++ using VTK under Windows. I have tried using > a vtkRenderWindowInteractor. Unfortunatly, vtkRenderWindowInteractor > only seems to preform updates when the user is interacting with the > scene. I need to refresh the window anytime my data changes. At > the present time, I am trying to following solution: > > Create the window, interactor, and renderer and associate > appropriatly. Then create my worker thread whose job it will > be to periodically update the vtkActors which are being displayed. > I then start the interactors event loop with interactor->Start();. > I have tried having the thread update the screne by calling the > render methods of both vtkRenderWindowInteractor and vtkRenderWindow > (not at the same time of course). However, I get error messages > related to something about wgl not being able to make the current > context. Can anyone show me some code or suggest how I can both > use an Interactor with a scene that must be updated even when the > user is not interacting with the data scene? > > Thanks in advance. > > Thomas Tickle Hi Thomas, Sounds like you're getting a worker thread to manipulate vtkActors belonging to a pipeline owned by some object on another thread. A safe way to do this is to store simulation results in some globally accessible object (protected by appropriate flags or mutex object), then send a message from the worker thread to the GUI interface, that new results are available. Vtk pipelines on the GUI thread can then update themselves. Nigel ___________________________________________________________________________________ DON'T MISS OUR SPORTING FUTURE 2005! Early bird registration closes 2 February! Australia's premier sport development forum will be held in Sydney from 2-4 March 2005. Registration forms and program information is available at: http://www.ausport.gov.au/events/osf2005 ___________________________________________________________________________________ This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit www.ausport.gov.au ___________________________________________________________________________________ From freiman at cs.huji.ac.il Thu Jan 20 12:14:39 2005 From: freiman at cs.huji.ac.il (Moti Freiman) Date: Thu, 20 Jan 2005 19:14:39 +0200 Subject: [vtkusers] Re: Modify scalar values Message-ID: <41EFE6FF.6010501@cs.huji.ac.il> Hello! As far as I know, you can't just copy vtk pointers. instead of it you should use: <>vtkDataArray *scalarArrayDestination = vtkDataArray::New() and on of the beloew: scalarArrayDestination ->DeepCopy (LabeledImage->GetPointData()->GetScalars()); scalarArrayDestination->ShallowCopy (LabeledImage->GetPointData()->GetScalars()); the difference between ShallowCopy, and DeepCopy, is that shallow copy just create another reference to the same object. and deepcopy, make another new object. for more details you can take a look at the vtk documentation. be aware that vtkDataArray is abstract class, you should use vtkFloatArray, or something like this. hope it helps. -- Moti Freiman, Graduate Student. Medical Image Processing and Computer-Assisted Surgery Laboratory. School of Computer Science and Engineering. The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel Phone: +(972)-2-658-5371 (laboratory) E-mail: freiman at cs.huji.ac.il WWW site: http://www.cs.huji.ac.il/~freiman -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005 From camilo.jimenez at spymac.com Thu Jan 20 17:18:56 2005 From: camilo.jimenez at spymac.com (camilo.jimenez at spymac.com) Date: Thu, 20 Jan 2005 13:18:56 -0900 Subject: [vtkusers] Re: Modify scalar values Message-ID: <200501201318.56549.camilo.jimenez@spymac.com> I recommend you the vtkImageExport and vtkImageImport classes. I don't use these, but I use something like this (suppose your vtkImageData is Image) int sx = Image->GetDimensions()[0], sy = Image->GetDimensions()[1], sz = Image->GetDimensions()[2]; unigned short *ImgPtr = NULL; Image->SetScalarTypeToUnsignedShort( ); ImgPtr = (unsigned short*)Image->GetScalarPointer( ) ; for( int k=0; k Message-ID: Hi, all Have you ever used the famous vtkFlRenderWindowInteractor class that implements the function of vtkRenderWindowInteractor and FLTK window simultaneously? I encounter a weird error when using vtkFlRenderWindowInteractor. I have been upsetting with this problem for a whole month, and I couldn??t fix it by myself. The problem appeared when I compiled and ran the original example cone3.cxx contained in the package of vtkFlRenderWindowInteractor.tar.gz, which can be downloaded from http://cpbotha.net/vtkFlRenderWindowInteractor.html When it ran, I clicked the quit button, a window will pop up , indicating that "R6025: pure virtual function call." I modified the original cone3.cxx as follows to redraw the scene in the window. 1. Delete the line 188 in cone3.cxx, namely, vtkFlRenderWindowInteractor *fl_vtk_window = NULL; 2. Replace the quit_cb function, namely, void quit_cb(Fl_Widget*, void*) { exit(0); } With the following codes: vtkFlRenderWindowInteractor *fl_vtk_window = NULL; void create_cone_pipeline(vtkFlRenderWindowInteractor *flrwi); // this is a callback for the quit button void quit_cb(Fl_Widget*, void*) { create_cone_pipeline(fl_vtk_window); fl_vtk_window->GetRenderWindow()->Render(); } I don??t know why such problem occurs. It??s likely that I am redrawing the scene using the wrong method. Would you please do me a favor to show me a correct redrawing method? All your help will be appreciated. Regards, Wu, Yingcai, CS department, Hong Kong University of Science and Technology. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From wycken at msn.com Thu Jan 20 14:33:13 2005 From: wycken at msn.com (Yingcai Wu) Date: Fri, 21 Jan 2005 03:33:13 +0800 Subject: [vtkusers] Help, weird error in vtkFlRenderWindowInteractor Message-ID: Hi, all Have you ever used the famous vtkFlRenderWindowInteractor class that implements the function of vtkRenderWindowInteractor and FLTK window simultaneously? I encounter a weird error when using vtkFlRenderWindowInteractor. I have been upsetting with this problem for a whole month, and I couldn??t fix it by myself. The problem appeared when I compiled and ran the original example cone3.cxx contained in the package of vtkFlRenderWindowInteractor.tar.gz, which can be downloaded from http://cpbotha.net/vtkFlRenderWindowInteractor.html When it ran, I clicked the quit button, a window will pop up , indicating that "R6025: pure virtual function call." I modified the original cone3.cxx as follows to redraw the scene in the window. 1. Delete the line 188 in cone3.cxx, namely, vtkFlRenderWindowInteractor *fl_vtk_window = NULL; 2. Replace the quit_cb function, namely, void quit_cb(Fl_Widget*, void*) { exit(0); } With the following codes: vtkFlRenderWindowInteractor *fl_vtk_window = NULL; void create_cone_pipeline(vtkFlRenderWindowInteractor *flrwi); // this is a callback for the quit button void quit_cb(Fl_Widget*, void*) { create_cone_pipeline(fl_vtk_window); fl_vtk_window->GetRenderWindow()->Render(); } I don??t know why such problem occurs. It??s likely that I am redrawing the scene using the wrong method. Would you please do me a favor to show me a correct redrawing method? All your help will be appreciated. Regards, Wu, Yingcai, CS department, Hong Kong University of Science and Technology. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 38 URL: From estewart at vni.com Thu Jan 20 15:08:55 2005 From: estewart at vni.com (Ed Stewart) Date: Thu, 20 Jan 2005 13:08:55 -0700 Subject: [vtkusers] vtkAssignAttribute for Java Message-ID: <84625E3AC73C7943A07A8712F940DB9121D746@peabody.vni.com> Greetings, I'm having a bit of trouble getting vtkAssignAttribute working in Java. I have a vtkPolyData object that I'd like to shade with a set of scalar values. I've created a vtkDoubleArray to hold those values and then I'm doing the following: //sc is the vtkDoubleArray that has been filled up with scalar values sc.SetName("foo"); vtkAssignAttribute aa = new vtkAssignAttribute(); aa.SetInput(surfPolyData); //surfPolyData is my vtkPolyData object to be shaded aa.Assign("foo",0,0); //enums are used for SCALARS and POINTDATA aa.Update(); //I don't think this is needed //I then create a vtkLookupTable lut to hold the shading colors vtkPolyDataNormals surfNormas = new vtkPolyDataNormals(); surfNormals.setInput(aa.GetPolyDataOutput()); vtkPolyDataMapper surfMapper = new vtkPolyDataMapper(); surfMapper.SetColorModeToMapScalars(); surfMapper.ScalarVisibilityOn(); surfMapper.SetInput(surfNormals.GetOutput()); surfMapper.SetScalarRange(0.0, 255.0); surfMapper.SetLookupTable(lut); vtkActor surfActor = new vtkActor(); surfActor.SetMapper(surfMapper); The problem of course is that this doesn't change the surface at all. I suspect the aa.Assign("foo",0,0) line is to blame as I don't see how it can make the connection back to the vtkDataArray object that I've named "foo". Can anyone confirm that I am coding this correctly? Thank you, -ed From jeff at cdnorthamerica.com Thu Jan 20 15:25:12 2005 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 20 Jan 2005 15:25:12 -0500 Subject: [vtkusers] vtkAssignAttribute for Java In-Reply-To: <84625E3AC73C7943A07A8712F940DB9121D746@peabody.vni.com> References: <84625E3AC73C7943A07A8712F940DB9121D746@peabody.vni.com> Message-ID: <41F013A8.3070405@cdnorthamerica.com> Ed Stewart wrote: > >Greetings, > >I'm having a bit of trouble getting vtkAssignAttribute working in Java. >I have a vtkPolyData object that I'd like to shade with a set of scalar >values. I've created a vtkDoubleArray to hold those values and then I'm >doing the following: > >//sc is the vtkDoubleArray that has been filled up with scalar values >sc.SetName("foo"); >vtkAssignAttribute aa = new vtkAssignAttribute(); >aa.SetInput(surfPolyData); //surfPolyData is my vtkPolyData object >to be shaded >aa.Assign("foo",0,0); //enums are used for SCALARS and > > I think you first need to add the sc array to your surfPolyData. surfPolyData.GetPointData().AddArray(sc); after that, I don't think you need assignAttribute at all. just point the mapper at that array surfMapper.SetScalarModeToUseCellFieldData(); surfMapper.SelectColorArray("foo"); if you need to use assignAttribute, you still need to add the data array to the dataset before assignAttribute will do anything. All assignAttribute is supposed to do is make an already existing array in a dataset an attribute. Regards, Jeff >POINTDATA >aa.Update(); //I don't think this is needed > > >//I then create a vtkLookupTable lut to hold the shading colors > >vtkPolyDataNormals surfNormas = new vtkPolyDataNormals(); >surfNormals.setInput(aa.GetPolyDataOutput()); >vtkPolyDataMapper surfMapper = new vtkPolyDataMapper(); >surfMapper.SetColorModeToMapScalars(); >surfMapper.ScalarVisibilityOn(); >surfMapper.SetInput(surfNormals.GetOutput()); >surfMapper.SetScalarRange(0.0, 255.0); >surfMapper.SetLookupTable(lut); >vtkActor surfActor = new vtkActor(); >surfActor.SetMapper(surfMapper); > >The problem of course is that this doesn't change the surface at all. I >suspect the aa.Assign("foo",0,0) line is to blame as I don't see how it >can make the connection back to the vtkDataArray object that I've named >"foo". > >Can anyone confirm that I am coding this correctly? > >Thank you, >-ed >_______________________________________________ >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 > > > > From jeff at cdnorthamerica.com Thu Jan 20 15:29:38 2005 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 20 Jan 2005 15:29:38 -0500 Subject: [vtkusers] vtkAssignAttribute for Java In-Reply-To: <84625E3AC73C7943A07A8712F940DB9121D746@peabody.vni.com> References: <84625E3AC73C7943A07A8712F940DB9121D746@peabody.vni.com> Message-ID: <41F014B2.1030604@cdnorthamerica.com> Ed Stewart wrote: > >Greetings, > >I'm having a bit of trouble getting vtkAssignAttribute working in Java. >I have a vtkPolyData object that I'd like to shade with a set of scalar >values. I've created a vtkDoubleArray to hold those values and then I'm >doing the following: > >//sc is the vtkDoubleArray that has been filled up with scalar values >sc.SetName("foo"); >vtkAssignAttribute aa = new vtkAssignAttribute(); >aa.SetInput(surfPolyData); //surfPolyData is my vtkPolyData object >to be shaded >aa.Assign("foo",0,0); //enums are used for SCALARS and > > I think you first need to add the sc array to your surfPolyData. surfPolyData.GetPointData().AddArray(sc); after that, I don't think you need assignAttribute at all. just point the mapper at that array surfMapper.SetScalarModeToUseCellFieldData(); surfMapper.SelectColorArray("foo"); if you need to use assignAttribute, you still need to add the data array to the dataset before assignAttribute will do anything. All assignAttribute is supposed to do is make an already existing array in a dataset an attribute. Regards, Jeff >POINTDATA >aa.Update(); //I don't think this is needed > > >//I then create a vtkLookupTable lut to hold the shading colors > >vtkPolyDataNormals surfNormas = new vtkPolyDataNormals(); >surfNormals.setInput(aa.GetPolyDataOutput()); >vtkPolyDataMapper surfMapper = new vtkPolyDataMapper(); >surfMapper.SetColorModeToMapScalars(); >surfMapper.ScalarVisibilityOn(); >surfMapper.SetInput(surfNormals.GetOutput()); >surfMapper.SetScalarRange(0.0, 255.0); >surfMapper.SetLookupTable(lut); >vtkActor surfActor = new vtkActor(); >surfActor.SetMapper(surfMapper); > >The problem of course is that this doesn't change the surface at all. I >suspect the aa.Assign("foo",0,0) line is to blame as I don't see how it >can make the connection back to the vtkDataArray object that I've named >"foo". > >Can anyone confirm that I am coding this correctly? > >Thank you, >-ed >_______________________________________________ >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 > > > > From wycken at msn.com Thu Jan 20 16:12:37 2005 From: wycken at msn.com (Yingcai Wu) Date: Fri, 21 Jan 2005 05:12:37 +0800 Subject: [vtkusers] Help, weird error in vtkFlRenderWindowInteractor In-Reply-To: <20050120170012.953ED3498C@public.kitware.com> Message-ID: Hi, all Have you ever used the famous vtkFlRenderWindowInteractor class that implements the function of vtkRenderWindowInteractor and FLTK window simultaneously? I encounter a weird error when using vtkFlRenderWindowInteractor. I have been upsetting with this problem for a whole month, and I couldn??t fix it by myself. The problem appeared when I compiled and ran the original example cone3.cxx contained in the package of vtkFlRenderWindowInteractor.tar.gz, which can be downloaded from http://cpbotha.net/vtkFlRenderWindowInteractor.html When it ran, I clicked the quit button, a window will pop up , indicating that "R6025: pure virtual function call." I modified the original cone3.cxx as follows to redraw the scene in the window. 1. Delete the line 188 in cone3.cxx, namely, vtkFlRenderWindowInteractor *fl_vtk_window = NULL; 2. Replace the quit_cb function, namely, void quit_cb(Fl_Widget*, void*) { exit(0); } With the following codes: vtkFlRenderWindowInteractor *fl_vtk_window = NULL; void create_cone_pipeline(vtkFlRenderWindowInteractor *flrwi); // this is a callback for the quit button void quit_cb(Fl_Widget*, void*) { create_cone_pipeline(fl_vtk_window); fl_vtk_window->GetRenderWindow()->Render(); } I don??t know why such problem occurs. It??s likely that I am redrawing the scene using the wrong method. Would you please do me a favor to show me a correct redrawing method? All your help will be appreciated. Regards, Wu, Yingcai, CS department, Hong Kong University of Science and Technology. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From tdsternberg at lbl.gov Thu Jan 20 16:25:53 2005 From: tdsternberg at lbl.gov (Theodore Sternberg) Date: Thu, 20 Jan 2005 13:25:53 -0800 (PST) Subject: [vtkusers] Easy vtkPlaneSource coloring question In-Reply-To: Message-ID: I'm trying to produce a 2x3 array of colored rectangles. =================================== scalars = vtkDoubleArray() scalars.SetNumberOfTuples(6) for i in range(0,6): scalars.SetTuple1(i,i) plane = vtkPlaneSource() plane.SetResolution(1,2) plane.Update() plane.GetOutput().GetPointData().SetScalars(scalars) [The rest is standard mapper, renderwindow, renderer stuff] =================================== Instead of the hoped-for 2x3 array of colored rectangles, I get a 1x2 array, colored according to just the first two of my scalar values. That's with the mapper set to "flat" interpolation. If I set the mapper to Gouraud interpolation, I can see the full range of scalar values. Why is this, and how can I see all my scalar values without going to Goraud interpolation? Ted Sternberg Lawrence Berkeley National Laboratory From sungeun at ecn.purdue.edu Thu Jan 20 17:00:27 2005 From: sungeun at ecn.purdue.edu (Sungeun Kim) Date: Thu, 20 Jan 2005 17:00:27 -0500 Subject: [vtkusers] stereo problems Message-ID: <41F029FB.1010409@ecn.purdue.edu> Hi, I am trying to render two volume datasets in one render window and interact two volumes simutaneously. While doing this, I have two problems, which are related to stereoscopic display. The first problem is the reversion of stereo pairs for vtkVolumeRayCastMapper. I saw that many people mentioned this problem before. Probably, the negative eye separation value might be one possible solution to some people, but in my case, I have to render two volumes with some polygonal objects. So, I cannot use the negative eye separation value. Is there anybody who know whether this problem has been fixed or when it will be fixed? The second problem is related to using one camera for two renderers. I need to rotate two volumes in the same direction at the same time. So, I used only one camera for two volumes. However, in this situation, if I enable the stereo display, each volume shows only one image of either eye. If I use two separate cameras for two volumes, this problem disappears, but I cannot control two volumes simultaneously. Is there any suggestion about this problem? Thank you in advance. Sungeun Kim. From clinton at elemtech.com Thu Jan 20 17:08:59 2005 From: clinton at elemtech.com (Clinton Stimpson) Date: Thu, 20 Jan 2005 15:08:59 -0700 Subject: [vtkusers] stereo problems In-Reply-To: <20050120215416.34295349A5@public.kitware.com> References: <20050120215416.34295349A5@public.kitware.com> Message-ID: <41F02BFB.1040509@elemtech.com> class LinkCameraCommand : public vtkCommand { public: vtkTypeMacro(LinkCameraCommand, vtkCommand) static LinkCameraCommand* New() { return new LinkCameraCommand; } void SetCamera(vtkCamera* cam) { mTargetCamera = cam; } protected: void Execute(vtkObject*,long unsigned int,void*); vtkCamera* mTargetCamera; }; void LinkCameraCommand::Execute(vtkObject* source_camera,long unsigned int, void*) { vtkCamera *p_source_camera=(vtkCamera*)source_camera; mTargetCamera->SetPosition(p_source_camera->GetPosition()); mTargetCamera->SetFocalPoint(p_source_camera->GetFocalPoint()); mTargetCamera->SetViewUp(p_source_camera->GetViewUp()); mTargetCamera->SetClippingRange(p_source_camera->GetClippingRange()); mTargetCamera->SetParallelScale(p_source_camera->GetParallelScale()); mTargetCamera->ComputeViewPlaneNormal(); } Then in your code do something like this... LinkCameraCommand* link_cam = LinkCameraCommand::New(); link_cam->SetCamera(mRightOverlayRenderer->GetActiveCamera()); mRightRenderer->GetActiveCamera()->AddObserver(vtkCommand::ModifiedEvent, link_cam, 0); link_cam->Delete(); Then if you interact with one camera, the other will follow. Clint ------------------------------ Message: 10 Date: Thu, 20 Jan 2005 17:00:27 -0500 From: Sungeun Kim Subject: [vtkusers] stereo problems To: vtkusers at vtk.org Message-ID: <41F029FB.1010409 at ecn.purdue.edu> Content-Type: text/plain; charset=us-ascii Hi, I am trying to render two volume datasets in one render window and interact two volumes simutaneously. While doing this, I have two problems, which are related to stereoscopic display. The first problem is the reversion of stereo pairs for vtkVolumeRayCastMapper. I saw that many people mentioned this problem before. Probably, the negative eye separation value might be one possible solution to some people, but in my case, I have to render two volumes with some polygonal objects. So, I cannot use the negative eye separation value. Is there anybody who know whether this problem has been fixed or when it will be fixed? The second problem is related to using one camera for two renderers. I need to rotate two volumes in the same direction at the same time. So, I used only one camera for two volumes. However, in this situation, if I enable the stereo display, each volume shows only one image of either eye. If I use two separate cameras for two volumes, this problem disappears, but I cannot control two volumes simultaneously. Is there any suggestion about this problem? Thank you in advance. Sungeun Kim. ------------------------------ From estewart at vni.com Thu Jan 20 17:18:23 2005 From: estewart at vni.com (Ed Stewart) Date: Thu, 20 Jan 2005 15:18:23 -0700 Subject: [vtkusers] vtkAssignAttribute for Java Message-ID: <84625E3AC73C7943A07A8712F940DB9121D76A@peabody.vni.com> Thank you very much! I think I found an easy way to do this based on your suggestion. I had been scouring the docs for some kind of "SetScalars" method and sure enough vtkPointData has one! So I can use: sc.SetLookupTable(lut); surfPolyData.GetPointData().SetScalars(sc); Now I don't need to use any names at all, nor do I need to set the color table via the mapper (which didn't seem to be working either). Thanks for getting me to look in the right place. -ed -----Original Message----- From: Jeff Lee [mailto:jeff at cdnorthamerica.com] Sent: Thursday, January 20, 2005 3:25 PM To: Ed Stewart Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkAssignAttribute for Java Ed Stewart wrote: > >Greetings, > >I'm having a bit of trouble getting vtkAssignAttribute working in Java. >I have a vtkPolyData object that I'd like to shade with a set of scalar >values. I've created a vtkDoubleArray to hold those values and then I'm >doing the following: > >//sc is the vtkDoubleArray that has been filled up with scalar values >sc.SetName("foo"); vtkAssignAttribute aa = new vtkAssignAttribute(); >aa.SetInput(surfPolyData); //surfPolyData is my vtkPolyData object >to be shaded >aa.Assign("foo",0,0); //enums are used for SCALARS and > > I think you first need to add the sc array to your surfPolyData. surfPolyData.GetPointData().AddArray(sc); after that, I don't think you need assignAttribute at all. just point the mapper at that array surfMapper.SetScalarModeToUseCellFieldData(); surfMapper.SelectColorArray("foo"); if you need to use assignAttribute, you still need to add the data array to the dataset before assignAttribute will do anything. All assignAttribute is supposed to do is make an already existing array in a dataset an attribute. Regards, Jeff >POINTDATA >aa.Update(); //I don't think this is needed > > >//I then create a vtkLookupTable lut to hold the shading colors > >vtkPolyDataNormals surfNormas = new vtkPolyDataNormals(); >surfNormals.setInput(aa.GetPolyDataOutput()); >vtkPolyDataMapper surfMapper = new vtkPolyDataMapper(); >surfMapper.SetColorModeToMapScalars(); >surfMapper.ScalarVisibilityOn(); >surfMapper.SetInput(surfNormals.GetOutput()); >surfMapper.SetScalarRange(0.0, 255.0); >surfMapper.SetLookupTable(lut); >vtkActor surfActor = new vtkActor(); >surfActor.SetMapper(surfMapper); > >The problem of course is that this doesn't change the surface at all. I >suspect the aa.Assign("foo",0,0) line is to blame as I don't see how it >can make the connection back to the vtkDataArray object that I've named >"foo". > >Can anyone confirm that I am coding this correctly? > >Thank you, >-ed >_______________________________________________ >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 > > > > From goodwin.lawlor at ucd.ie Thu Jan 20 17:45:08 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Thu, 20 Jan 2005 22:45:08 -0000 Subject: [vtkusers] Re: Change color of axes References: <001e01c4fdb9$96cc1230$0101a8c0@Renasci> <000901c4ff3c$d613d0c0$7f01a8c0@SUN> Message-ID: <000b01c4ff41$b14d0b30$0101a8c0@Renasci> Hi You might find it easier to do it this way (and maybe vtkAxes should be changed to do it this way...) # Get rid of the point scalars [[axes GetOutput] GetPointData] SetScalars "" # Set up and use some cell scalars... can use RGB values vtkUnsignedCharArray colors colors SetNumberOfComponents 3 colors SetNumberOfTuples 3 #to set the x axes to red (rgb = 255 0 0) colors SetTuple3 0 255 0 0 #to set the y axis to yellow (rgb = 255 255 0) colors SetTuple3 1 255 255 0 #to set the z axis to green (rgb = 0 255 0) colors SetTuple3 2 0 255 0 [[axes GetOutput] GetCellsData] SetScalars colors If the Java color chooser gives you 3 numbers between 0 and 1, multiply them by 255 to get the correct values for the "colors" array. hth Goodwin ----- Original Message ----- From: "Kanghong Li" To: "Goodwin Lawlor" Sent: Thursday, January 20, 2005 10:10 PM Subject: Re: Change color of axes > Thanks. I was wondering if this can be done dynamically? Like if user > selects colors for the X,Y,Z axes from Java color chooser, can I update the > axes graph based on their selection? How do I obtain current graph's axes? > Also there might be a mapping problem between the value returned by the Java > color chooser and the scalar values that VTK uses. > > Sorry, this might be something simple for you, but I am stuck and I am new > to VTK. > > Thanks so much for your help. > > KL > ----- Original Message ----- > From: "Goodwin Lawlor" > To: > Sent: Tuesday, January 18, 2005 5:58 PM > Subject: Re: Change color of axes > > > > Change the values of the point data scalars to a number between 0 and 1. > > > > The default is 0 0 0.25 0.25 0.5 0.5 (there are six scalars for the 6 > > points... 2 for each line) > > > > 0 = red > > 0.25 = yellow > > 0.5 = green > > (1.0 = blue) > > > > These values are indexes into the default lookup table. > > > > So to change the green axis to blue: > > > > vtkAxes axes > > axes Update > > > > set scalars [[[axes GetOuput] GetPointData] GetScalars] > > > > $scalars SetTuple1 4 1.0 > > $scalars SetTuple1 5 1.0 > > > > hth > > > > Goodwin > > > > "Kanghong Li" wrote in message > > news:000501c4fdb3$2802c520$7b01a8c0 at SUN... > > > How can we change the defaut colors (red(x), yellow(y), green(z)) of the > > > vtkaxes? Thanks. > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005 > > From dmpd at onetel.com Thu Jan 20 15:12:29 2005 From: dmpd at onetel.com (D.M.P.Davies) Date: Thu, 20 Jan 2005 20:12:29 +0000 Subject: [Fwd: [vtkusers] Reissue of vtk binaries-4.? on Windows 95] Message-ID: <41F010AD.A428E837@onetel.com> -------------- next part -------------- An embedded message was scrubbed... From: "D.M.P.Davies" Subject: [vtkusers] Reissue of vtk binaries-4.? on Windows 95 Date: Fri, 07 Jan 2005 19:47:59 +0000 Size: 3293 URL: From jcplatt at lineone.net Thu Jan 20 18:54:43 2005 From: jcplatt at lineone.net (John Platt) Date: Thu, 20 Jan 2005 23:54:43 -0000 Subject: [vtkusers] Insert unique points into vtkPoints Message-ID: <000001c4ff4b$6da8b6e0$16482850@pacsys4> Hi All, Has anyone found an 'easy' way to insert unique points into a vtkPoints object? The bounds are not known in advance. I've looked at vtkMergePoints but at a glance can't see how to get the points out. Many thanks. John. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcplatt at lineone.net Thu Jan 20 19:12:59 2005 From: jcplatt at lineone.net (John Platt) Date: Fri, 21 Jan 2005 00:12:59 -0000 Subject: [vtkusers] Simple Linking Question In-Reply-To: Message-ID: <000001c4ff4d$faaf1780$1b4b2850@pacsys4> Hi Mark, If you are linking MFC as a static library, try compiling VTK & your MFC app with the static CRT (/MT). From distant memory, the MFC static library will link the static CRT which conflicts with the dynamic CRT you have specified. HTH John. -----Original Message----- From: Mark Wyszomierski [mailto:markww at gmail.com] Sent: 20 January 2005 20:31 To: John Platt Subject: Re: [vtkusers] Simple Linking Question Hi John, I just recompiled VTK with these settings: Use of MFC: Use MFC in a static library. Runtime Library: Multi-threaded DLL (/MD) Now 5 line test program uses the same exact settings. But I still get the two linking errors complaining that new and new [] are already defined! What could I be missing? Here is my sophisticated test app again: #include "vtkRenderer.h" int main() { vtkRenderer *renderer = vtkRenderer::New(); return 0; } On Thu, 20 Jan 2005 09:07:58 -0000, John Platt wrote: > Hi Mark, > > Have you linked both VTK and your MFC app with the same C-runtime > libraries? If you link your MFC app with Debug Multithreaded, the VTK > libraries that you link should also have been built Debug Multithreaded. > > HTH > > John. > > -----Original Message----- > From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On > Behalf Of Mark Wyszomierski > Sent: 19 January 2005 19:16 > To: vtkusers at vtk.org > Subject: [vtkusers] Simple Linking Question > > Hi, > > First, please forgive me if this message has been posted twice, I > tried sending it once before subscribing to the mailing list! > > I would like to use MFC in a static link of my project with VTK. I > have compiled VTK using MFC statically linked. When I go to compile my > sample application (also statically linked with MFC) I get two linking > errors as follow: > > [code] > > #include "vtkRenderer.h" > > int main() > { > vtkRenderer *renderer = vtkRenderer::New(); > } > > [/code] > > Errors: > LNK 2005: __cdecl operator new(..) already defined in libcpmtd.lib > LNK 2005: __cdecl operator new[](..) already defined in libcpmtd.lib > > Should I compile VTK using standard windows libraries to facilitate > static linking in MFC in the final project? > > Thanks! > Mark > _______________________________________________ > 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 > > From Charles.Boivin at rwdi.com Thu Jan 20 19:21:50 2005 From: Charles.Boivin at rwdi.com (Charles Boivin) Date: Thu, 20 Jan 2005 17:21:50 -0700 Subject: [vtkusers] Observers & Volume Rendering Message-ID: Hello all, I would like to get some observers connected with volume rendering modules to get an idea of how long a render will take. For geometric modules, like getting an isosurface using vtkContourFilter, I can just call vtkContourFilter::AddObserver(vtkCommand::ProgressEvent, myObserver). This works fine. I am having some problems finding the module I should observe for volume rendering, however... My instinct was to observer vtkVolumeRayCastMapper.. but this does not seem to work. It does not seem to generate either a Start, End, or Progress Event. Which module should I observer? The raycast function? Or should it be the vtkLODProp3D that I am using? Thank you in advance for your help... getting some progress info on the raytracing is perhaps the most important of all, as these renders can be quite time-consuming! Charles Boivin From mathieu.malaterre at kitware.com Thu Jan 20 19:34:26 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Thu, 20 Jan 2005 19:34:26 -0500 Subject: [vtkusers] Insert unique points into vtkPoints In-Reply-To: <000001c4ff4b$6da8b6e0$16482850@pacsys4> References: <000001c4ff4b$6da8b6e0$16482850@pacsys4> Message-ID: <41F04E12.2010107@kitware.com> John Platt wrote: > Hi All, > > > > Has anyone found an ?easy? way to insert unique points into a vtkPoints > object? The bounds are not known in advance. I?ve looked at > vtkMergePoints but at a glance can?t see how to get the points out. You should be able to use vtkPointLocator::InitPointInsertion pass in the vtkPoints you want to manipulate later: newPts = vtkPoints::New(); locator->InitPointInsertion (newPts, bounds); // add point to the locator locator->InsertUniquePoint(x, ptId); // newPts is up to date (internal representation behind a locator). //it contains the point x at position pdId For the bounds can't you give a wrong max (over estimated) ? BTW vtkMergePoints is much faster. HTH Mathieu From tdsternberg at lbl.gov Thu Jan 20 20:02:22 2005 From: tdsternberg at lbl.gov (Theodore Sternberg) Date: Thu, 20 Jan 2005 17:02:22 -0800 (PST) Subject: [vtkusers] vtkCellDataToPointData weirdness In-Reply-To: Message-ID: The CellData of vtkCellDataToPointData's input has scalars, but the PointData of the output has no scalars. Why is that? Is there some setting I need to invoke explicitly? Ted Sternberg Lawrence Berkeley National Laboratory From vidyadhar at lucidindia.net Thu Jan 20 22:39:10 2005 From: vidyadhar at lucidindia.net (vidyadhar) Date: Fri, 21 Jan 2005 09:09:10 +0530 Subject: [vtkusers] can't label poly data References: <20050120140116.34021.qmail@web26005.mail.ukl.yahoo.com> Message-ID: <001c01c4ff6a$c51fd330$2d01a8c0@pf244> Hi, For polydata it is not enough to specify points. You need to specify cell(s) too. That is indication of connectivity of points as well as what the connectivity describes. For example, four points could represent triangle or three segmented polyline. Refer to vtk cell types. HTH Vidyadhar ----- Original Message ----- From: payman labbaf To: vtkusers at vtk.org Sent: Thursday, January 20, 2005 7:31 PM Subject: [vtkusers] can't label poly data Dear All, I've been trying to label some points with irregular geometery and topology. I chose vtkPolyData as it says in the specification that is fine for 0 dimension data. Now I have a problem with labeling the data. Could you please have a look at my simplified code and let me know what I'm doing wrong. //Points float pointsArray[12] = {1,1,0,1,2,0,2,1,0,2,2,0}; vtkFloatArray *pointFloatArray = vtkFloatArray::New(); pointFloatArray->SetNumberOfComponents(3); pointFloatArray->SetNumberOfTuples(dims[0]*dims[1]*dims[2]); pointFloatArray->SetVoidArray(&pointsArray[0],12,1); vtkPoints *points = vtkPoints::New(); points->SetData(pointFloatArray); //Vectors float array[12] = {10,5,0,11,6,0,12,7,0,13,8,0}; vtkFloatArray *vectors = vtkFloatArray::New(); vectors->SetNumberOfComponents(3); vectors->SetNumberOfTuples(dims[0]*dims[1]*dims[2]); vectors->SetArray(&array[0],12,1); //Poly Data vtkPolyData *polyData = vtkPolyData::New(); polyData->SetPoints(points); polyData->GetPointData()->SetVectors(vectors); //Label Mapper vtkLabeledDataMapper *labelMapper = vtkLabeledDataMapper::New(); labelMapper->SetInput(polyData); labelMapper->SetLabelModeToLabelVectors(); //Actor vtkActor2D *actor = vtkActor2D::New(); actor->SetMapper(labelMapper); The above code works when I'm using vtkStructuredGrid but not for polyData. (I also tried InsertNextPoint() function for giving the points coordinates to vtkPolyData and that didn't work either) Many thanks in advance ------------------------------------------------------------------------------ ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From steuwer at ill.fr Fri Jan 21 05:15:09 2005 From: steuwer at ill.fr (Axel Steuwer) Date: Fri, 21 Jan 2005 11:15:09 +0100 (CET) Subject: [vtkusers] compile VTK with msys + mingw Message-ID: <34554.193.49.43.124.1106302509.squirrel@mail.ill.fr> Dear All, I have a problem when trying to compile the VTK (4.4) with mingw and msys (latest version). I open an msys terminal, start 'cmakesetup' (version 2 patch 5) and select the Unix Makefiles build. During configuring, I always get an error 'LOAD_COMMAND Attempt to load command failed from file: cmVTK_WRAP_TCL2.dll'. The system I use is a dual AMD opteron with XP SP2. Any help appreciated. Axel From petraschneider at arcor.de Fri Jan 21 07:47:49 2005 From: petraschneider at arcor.de (Petra Schneider) Date: Fri, 21 Jan 2005 13:47:49 +0100 Subject: [vtkusers] 2Djpg -> 3Dgipl Message-ID: <200501211347.49656.petraschneider@arcor.de> Dear All, I would like to use VTK CISG-RegistrationToolkit to register a set of 2D images, originally in .jpg. Out of this reason, I have to convert my files to gipl-format, but failed until now. I tried to use the simple IO example provided by ITK (see Code below, I tried different PixelValues). The results look good, but vtkview always crashes, if I try to load the new generated files. vtkconvert didn't read the jpg-files.I don't know, if it doesn't accept jpg in principle (perhaps, the reason just lies in the wrong dimensionality...) Has anybody done this before? How can I convert the jpg files to gipl format (or any other format compatible with VTK CISG)? Thanks in advance, Petra #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkImage.h" int main (int argc, char ** argv) { if (argc < 2) { std :: cerr << "Usage: " << std :: endl; std :: cerr << argv [0] << " inputImageFile " < ImageType; typedef itk :: ImageFileReader ReaderType; typedef itk :: ImageFileWriter WriterType; ReaderType :: Pointer reader (ReaderType :: New ()); WriterType :: Pointer writer (WriterType :: New ()); reader -> SetFileName (argv [1]); writer -> SetFileName ("myImage.gipl"); writer -> SetInput (reader->GetOutput ()); try { writer->Update(); } catch (itk :: ExceptionObject& err) { std :: cout << "ExceptionObject caught !" << std :: endl; std :: cout << err << std :: endl; return -1; } return 0; } From lachlan at chryatech.com.au Fri Jan 21 05:59:46 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Fri, 21 Jan 2005 11:59:46 +0100 Subject: [vtkusers] Get Actors from picker event Message-ID: <8FDAFF7A-6B9B-11D9-BC12-000D93C3904C@chryatech.com.au> Gday, I have registered a callback function on the end pick event iren->AddObserver(vtkCommand::EndPickEvent, callback); and then implemented the following code in the execute function of the callback class virtual void Execute(vtkObject *caller, unsigned long, void*) { vtkRenderWindowInteractor *iren = reinterpret_cast(caller); vtkPicker *picker = (vtkPicker*)iren->GetPicker(); vtkActor *a; a=picker->GetActors()->GetNextActor(); a->GetProperty()->SetColor(1,1,1); iren->Render(); } when i run this the end pick event is detected but after this call a=picker->GetActors()->GetNextActor(); a contains a pointer to 0x00 (nothing in other words) (i know there should be error checking here but this is only a proof of concept) What error have i made and is there a more correct way to achieve this. Thanks Lachlan P.S. Is it possible to pick actors using a left button mouse click event ?? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1383 bytes Desc: not available URL: From vtk at scil.sinp.msu.ru Fri Jan 21 07:26:51 2005 From: vtk at scil.sinp.msu.ru (vtk at scil.sinp.msu.ru) Date: Fri, 21 Jan 2005 15:26:51 +0300 (MSK) Subject: [vtkusers] 2D grpaph sci. plots Message-ID: Hi! Are there intentions to make 2D plots more applicable? For example, polar plots, logscale or so, 2G scientific plots? I see XYPlotActor & Co., or, maybe, I miss something?... Thanx! From jeff at cdnorthamerica.com Fri Jan 21 07:30:38 2005 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 21 Jan 2005 07:30:38 -0500 Subject: [vtkusers] vtkCellDataToPointData weirdness In-Reply-To: References: Message-ID: <41F0F5EE.4030409@cdnorthamerica.com> how about a sample pipeline showing the problem? mabey you're missing an Update() or something simple like that? -J Theodore Sternberg wrote: >The CellData of vtkCellDataToPointData's input has scalars, but the >PointData of the output has no scalars. Why is that? Is there some >setting I need to invoke explicitly? > >Ted Sternberg >Lawrence Berkeley National Laboratory > >_______________________________________________ >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 > > > > From soeren.gebbert at inpro.de Fri Jan 21 08:46:31 2005 From: soeren.gebbert at inpro.de (Soeren Gebbert) Date: Fri, 21 Jan 2005 14:46:31 +0100 Subject: [vtkusers] Visualisation non linear cells In-Reply-To: <000001c4fe62$5a8ce610$064b2850@pacsys4> References: <000001c4fe62$5a8ce610$064b2850@pacsys4> Message-ID: <41F107B7.9080807@inpro.de> Hi Jhon, thank you for your answer, i just implement a 9 node biquadratic quad, a 27 node triquadratic hexahedron, a 6 node quadratic-linear quad and a 12 node quadratic-linear wedge in VTK 4.5. I think i dont want to improve the triangulation system to add new nodes, i just take care that the contour algorithm is geometric conform to the triangulation (looks nicer). With these new types i dont need Subdivide() to add temporary points for clipping and contouring :D. Maybe my companie allows my to contribute this code ... . I took a look at vtkGenericCellTessellator and i hope to use this helperclass to create curved surfaces. Best Regards soeren John Platt wrote: >Hi Soeren, > >I am no expert in VTK but I have used nonlinear cells and also wish to >extend the types available. These are some comments based on what I have >seen in the code rather than experience implementing a new cell type. > >Triangulate() is used by surface filters (vtkDataSetSurfaceFilter) to >replace quadratic faces by linear triangles. The schemes are carefully >chosen so as NOT to introduce new points. Implementing a new scheme with >more points to give better resolution of curved edges will require some >care to ensure adjacent edges detect the new points. The point data must >also be interpolated. It may also be necessary to make Subdivide() >compatible with Triangulate(). > >In version 4.4 there does not appear to be any concrete implementations >of Tesselate(). Have you looked at? > >http://www.vtk.org/doc/nightly/html/classvtkGenericCellTessellator.html > >HTH > >John. > >-----Original Message----- >From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On >Behalf Of Soeren Gebbert >Sent: 13 January 2005 15:40 >To: vtkusers at vtk.org >Subject: [vtkusers] Visualisation non linear cells > >Dear vtkusers and developers, >I'm using vtk 4.4 and paraview 1.8.2 at linux and windows. I'm a >beginner >in vtk but i have some important questions to ask: > >I want to add new nonlinear celltypes to vtk, like a quadratic quad with >an area center point and so on. >And i want to visualize them with a curved surface. Since now i used >paraview to visualize >the already implemented quadratic celltypes (QuadraticTetra ...). In >paraview i used the TempTessellatorFilter to get >a proper visualisation. I thought this filter is also implementet in vtk >but it isnt. So i searched for a >proper functionality in vtk to get my curved surface, but i didnt found >a filter. > >As it is described in the vtk books, the quadratic cells will be >visualized as linear cells. >I guess the reimplemented function "Triangulate" from vtkCell in the in >the vtkNonLineareCell classes is doing this. >But there is a virtual function named Tesselate declrated in >vtkNonLinearCell, i guess this function will be used to render curved >surfaces, but this function is not implemented yet. So my question is: > >1.) Is the function "Triangulate" responsible for the visualisation of >the different celltypes in vtk? >2.) If 1. is ture, can i reimplement the Triangulate function to create >curved surfaces for nonlineare cells? >3.) Is it possible to reimplement the "Tesselate" function and use this >for visualisation of nonlinear cells? >4.) If 1. - 3. is not true, what can i do to visualize 2D and 3D >nonlinear cells to get the form that is described > in the shape function of these cells? > >Thanks alot and best regards >Soeren Gebbert > >btw.: >Please excuse my english. > >_______________________________________________ >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 > > > > > From billlist at nycap.rr.com Fri Jan 21 09:02:06 2005 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 21 Jan 2005 09:02:06 -0500 Subject: [vtkusers] compile VTK with msys + mingw In-Reply-To: <34554.193.49.43.124.1106302509.squirrel@mail.ill.fr> References: <34554.193.49.43.124.1106302509.squirrel@mail.ill.fr> Message-ID: <6.1.1.1.2.20050121090149.09ae29a8@pop.nycap.rr.com> Can you send CMakeError.log and CMakeOutput.log? At 05:15 AM 1/21/2005, Axel Steuwer wrote: >Dear All, > >I have a problem when trying to compile the VTK (4.4) >with mingw and msys (latest version). I open >an msys terminal, start 'cmakesetup' (version 2 patch 5) >and select the Unix Makefiles build. >During configuring, I always get an error >'LOAD_COMMAND Attempt to load command failed from >file: cmVTK_WRAP_TCL2.dll'. The system I use is a >dual AMD opteron with XP SP2. >Any help appreciated. > >Axel > > > > > >_______________________________________________ >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 From lachlan at chryatech.com.au Fri Jan 21 10:20:48 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Fri, 21 Jan 2005 16:20:48 +0100 Subject: [vtkusers] Picking Message-ID: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> Gday, Has anybody else had the problem that you have to zoom in a long way before an actor will be selected by a pick event. If i zoom in so the actor fills the screen it will be picked but if i reset the camera and it doesnt fill the screen a pick event wont select it. Im using static cocoa libs on mac os x thanks Lachlan From goodwin.lawlor at ucd.ie Fri Jan 21 10:21:01 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 21 Jan 2005 15:21:01 -0000 Subject: [vtkusers] Re: Picking References: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> Message-ID: Hi Lachlan, Have you tried changing the picker tolerance? Which picker are you using? Goodwin "Lachlan Blackhall" wrote in message news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au... > Gday, > > Has anybody else had the problem that you have to zoom in a long way > before an actor will be selected by a pick event. > > If i zoom in so the actor fills the screen it will be picked but if i > reset the camera and it doesnt fill the screen a pick event wont select > it. > > Im using static cocoa libs on mac os x > > thanks > > Lachlan > > _______________________________________________ > 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 > From lachlan at chryatech.com.au Fri Jan 21 10:33:56 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Fri, 21 Jan 2005 16:33:56 +0100 Subject: [vtkusers] Re: Picking In-Reply-To: References: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> Message-ID: On 21/01/2005, at 4:21 PM, Goodwin Lawlor wrote: > Hi Lachlan, > > Have you tried changing the picker tolerance? Which picker are you > using? > im using vtkPicker and ive changed the tolerance up and down to no avail. > Goodwin Lachlan > > "Lachlan Blackhall" wrote in message > news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au... >> Gday, >> >> Has anybody else had the problem that you have to zoom in a long way >> before an actor will be selected by a pick event. >> >> If i zoom in so the actor fills the screen it will be picked but if i >> reset the camera and it doesnt fill the screen a pick event wont >> select >> it. >> >> Im using static cocoa libs on mac os x >> >> thanks >> >> Lachlan >> >> _______________________________________________ >> 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 > From goodwin.lawlor at ucd.ie Fri Jan 21 10:35:48 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 21 Jan 2005 15:35:48 -0000 Subject: [vtkusers] Re: Picking References: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> Message-ID: <001201c4ffce$e184d020$0101a8c0@Renasci> ----- Original Message ----- From: "Lachlan Blackhall" To: "Goodwin Lawlor" Cc: Sent: Friday, January 21, 2005 3:33 PM Subject: Re: [vtkusers] Re: Picking > On 21/01/2005, at 4:21 PM, Goodwin Lawlor wrote: > > > Hi Lachlan, > > > > Have you tried changing the picker tolerance? Which picker are you > > using? > > > im using vtkPicker and ive changed the tolerance up and down to no > avail. Maybe try the subclasses- vtkCellPicker or the hardware picker- vtkPropPicker. Do they work? > > > Goodwin > > Lachlan > > > > "Lachlan Blackhall" wrote in message > > news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au... > >> Gday, > >> > >> Has anybody else had the problem that you have to zoom in a long way > >> before an actor will be selected by a pick event. > >> > >> If i zoom in so the actor fills the screen it will be picked but if i > >> reset the camera and it doesnt fill the screen a pick event wont > >> select > >> it. > >> > >> Im using static cocoa libs on mac os x > >> > >> thanks > >> > >> Lachlan > >> > >> _______________________________________________ > >> 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 > > > > From lachlan at chryatech.com.au Fri Jan 21 10:47:34 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Fri, 21 Jan 2005 16:47:34 +0100 Subject: [vtkusers] Re: Picking In-Reply-To: <001201c4ffce$e184d020$0101a8c0@Renasci> References: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> <001201c4ffce$e184d020$0101a8c0@Renasci> Message-ID: On 21/01/2005, at 4:35 PM, Goodwin Lawlor wrote: > > ----- Original Message ----- > From: "Lachlan Blackhall" > To: "Goodwin Lawlor" > Cc: > Sent: Friday, January 21, 2005 3:33 PM > Subject: Re: [vtkusers] Re: Picking > > >> On 21/01/2005, at 4:21 PM, Goodwin Lawlor wrote: >> >>> Hi Lachlan, >>> >>> Have you tried changing the picker tolerance? Which picker are you >>> using? >>> >> im using vtkPicker and ive changed the tolerance up and down to no >> avail. > > Maybe try the subclasses- vtkCellPicker or the hardware picker- > vtkPropPicker. Do they work? im not really sure how to use either of these to select an actor. if you know id love some help with this tho :) thanks Lachlan > > >> >>> Goodwin >> >> Lachlan >>> >>> "Lachlan Blackhall" wrote in message >>> news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au... >>>> Gday, >>>> >>>> Has anybody else had the problem that you have to zoom in a long way >>>> before an actor will be selected by a pick event. >>>> >>>> If i zoom in so the actor fills the screen it will be picked but if >>>> i >>>> reset the camera and it doesnt fill the screen a pick event wont >>>> select >>>> it. >>>> >>>> Im using static cocoa libs on mac os x >>>> >>>> thanks >>>> >>>> Lachlan >>>> >>>> _______________________________________________ >>>> 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 >>> >> >> > > From Charles.Boivin at rwdi.com Fri Jan 21 10:41:34 2005 From: Charles.Boivin at rwdi.com (Charles Boivin) Date: Fri, 21 Jan 2005 08:41:34 -0700 Subject: [vtkusers] Observers & Volume Rendering Message-ID: I seem to suffer from the 'mail bounced' problem as well, so I am re-sending this, in case anyone has missed it... Hello all, I would like to get some observers connected with volume rendering modules to get an idea of how long a render will take. For geometric modules, like getting an isosurface using vtkContourFilter, I can just call vtkContourFilter::AddObserver(vtkCommand::ProgressEvent, myObserver). This works fine. I am having some problems finding the module I should observe for volume rendering, however... My instinct was to observer vtkVolumeRayCastMapper.. but this does not seem to work. It does not seem to generate either a Start, End, or Progress Event. Which module should I observer? The raycast function? Or should it be the vtkLODProp3D that I am using? Thank you in advance for your help... getting some progress info on the raytracing is perhaps the most important of all, as these renders can be quite time-consuming! Charles Boivin From goodwin.lawlor at ucd.ie Fri Jan 21 11:03:54 2005 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 21 Jan 2005 16:03:54 -0000 Subject: [vtkusers] Re: Picking References: <0770F13C-6BC0-11D9-BC12-000D93C3904C@chryatech.com.au> <001201c4ffce$e184d020$0101a8c0@Renasci> Message-ID: <001c01c4ffd2$ce3f3380$0101a8c0@Renasci> ----- Original Message ----- From: "Lachlan Blackhall" To: "Goodwin Lawlor" Cc: Sent: Friday, January 21, 2005 3:47 PM Subject: Re: [vtkusers] Re: Picking > > On 21/01/2005, at 4:35 PM, Goodwin Lawlor wrote: > > > > > ----- Original Message ----- > > From: "Lachlan Blackhall" > > To: "Goodwin Lawlor" > > Cc: > > Sent: Friday, January 21, 2005 3:33 PM > > Subject: Re: [vtkusers] Re: Picking > > > > > >> On 21/01/2005, at 4:21 PM, Goodwin Lawlor wrote: > >> > >>> Hi Lachlan, > >>> > >>> Have you tried changing the picker tolerance? Which picker are you > >>> using? > >>> > >> im using vtkPicker and ive changed the tolerance up and down to no > >> avail. > > > > Maybe try the subclasses- vtkCellPicker or the hardware picker- > > vtkPropPicker. Do they work? For vtkPropPicker, try this (in tcl) vtkPropPicker picker vtkRenderWindowInteractor iren iren SetPicker picker iren AddObserver EndPickEvent cbPick proc cbPick {} { set actor [picker GetProp3D] if {$actor != ""} { puts "You picked: $actor" #change its color set prop [$actor GetProperty] $prop SetColor 1 0 0 } } Look at Ingo's post here for c++ http://public.kitware.com/pipermail/vtkusers/2004-April/023779.html hth Goodwin > > im not really sure how to use either of these to select an actor. if > you know id love some help with this tho :) > > thanks > > Lachlan > > > > > > >> > >>> Goodwin > >> > >> Lachlan > >>> > >>> "Lachlan Blackhall" wrote in message > >>> news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au... > >>>> Gday, > >>>> > >>>> Has anybody else had the problem that you have to zoom in a long way > >>>> before an actor will be selected by a pick event. > >>>> > >>>> If i zoom in so the actor fills the screen it will be picked but if > >>>> i > >>>> reset the camera and it doesnt fill the screen a pick event wont > >>>> select > >>>> it. > >>>> > >>>> Im using static cocoa libs on mac os x > >>>> > >>>> thanks > >>>> > >>>> Lachlan > >>>> > >>>> _______________________________________________ > >>>> 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 > >>> > >> > >> > > > > > > From ajd27 at cornell.edu Fri Jan 21 11:29:29 2005 From: ajd27 at cornell.edu (Andrew J. Dolgert) Date: Fri, 21 Jan 2005 11:29:29 -0500 Subject: [vtkusers] Re: Picking Message-ID: <395BBF33F0ED3F42876CB9C653729F4A278ED1@mail.tc.cornell.edu> >From reading vtkPicker.cxx, I recall seeing what looked like it might be a problem with the tolerance. vtkPicker::Tolerance defines a tolerance as percentage of screen size. vtkPicker::Pick() converts this Tolerance into world coordinates as tol. When the actual pick is done, it is done in mapper coordinates, those of the actor, but tol is still used. If the actor's coordinates are significantly different in scale from world coordinates, there could be a problem. This is just something I noticed reading. I didn't test it. Drew From scottjp at CLEMSON.EDU Fri Jan 21 12:45:12 2005 From: scottjp at CLEMSON.EDU (Scott J. Pearson) Date: Fri, 21 Jan 2005 12:45:12 -0500 Subject: [vtkusers] RE: Re: Picking Message-ID: I am having difficulty with a similar thing. My project graphs a two-dimensional unstructured grid; this grid displays the flow of a fiber from a die, so it is long. In order to enhance viewing, I have a "broad view" in which I horizontally stretch the actor to fit the viewport window. However, when using vtkPicker, the tolerance is so great that just about any point selected is chosen on the actor. As of yet, I have not found an appropriate solution, sadly. Scott --- Scott J. Pearson Systems Programmer, Center for the Advanced Engineering of Fibers and Films Clemson University 864.656.6389 scottjp at clemson.edu 10 Riggs Hall, Clemson, SC 29634 http://www.clemson.edu/caeff/ From randall.hand at gmail.com Fri Jan 21 13:00:10 2005 From: randall.hand at gmail.com (Randall Hand) Date: Fri, 21 Jan 2005 12:00:10 -0600 Subject: [vtkusers] VTK & Offscreen "MangledMesa" capabilities Message-ID: I'm using VTK with Offscreen MangledMesa (vtk4.4, Mesa 6.2.1) to do off-screen batch processing of datasets. I have to admit, it works pretty well so long as I stick to basic stuff. Unfortunately, I can't get some of the more advanced features to work. For starters, using a "vtkTextActor" to place text on the screen. The exact same piece of code works beautifully so long as I'm on-screen, but offscreen does nothing. I know that I had to switch from vtkActor to vtkMesaActor for my models, but is there an equivalent "mesa-ized" class for other actors? -- Randall Hand http://www.yeraze.com From randall.hand at gmail.com Fri Jan 21 13:07:42 2005 From: randall.hand at gmail.com (Randall Hand) Date: Fri, 21 Jan 2005 12:07:42 -0600 Subject: [vtkusers] Re: VTK & Offscreen "MangledMesa" capabilities In-Reply-To: References: Message-ID: Ahh, just answered my question with "vtkMesaFreetypeTextMapper". alot of the vtkMesa* objects state (in the documentation) that they shouldn't be used as their parent objects will automatically determine whether to use the Mesa or OpenGL version. But it seems that I have to explicitly specify creation of the Mesa widgets to get this to work. Am I doing something wrong, or is this by-design? On Fri, 21 Jan 2005 12:00:10 -0600, Randall Hand wrote: > I'm using VTK with Offscreen MangledMesa (vtk4.4, Mesa 6.2.1) to do > off-screen batch processing of datasets. I have to admit, it works > pretty well so long as I stick to basic stuff. > > Unfortunately, I can't get some of the more advanced features to work. > For starters, using a "vtkTextActor" to place text on the screen. > The exact same piece of code works beautifully so long as I'm > on-screen, but offscreen does nothing. I know that I had to switch > from vtkActor to vtkMesaActor for my models, but is there an > equivalent "mesa-ized" class for other actors? > -- > Randall Hand > http://www.yeraze.com > -- Randall Hand http://www.yeraze.com From brad.king at kitware.com Fri Jan 21 15:00:51 2005 From: brad.king at kitware.com (Brad King) Date: Fri, 21 Jan 2005 15:00:51 -0500 Subject: [vtkusers] Re: VTK & Offscreen "MangledMesa" capabilities In-Reply-To: References: Message-ID: <41F15F73.3040106@kitware.com> Randall Hand wrote: > Ahh, just answered my question with "vtkMesaFreetypeTextMapper". > > alot of the vtkMesa* objects state (in the documentation) that they > shouldn't be used as their parent objects will automatically determine > whether to use the Mesa or OpenGL version. But it seems that I have > to explicitly specify creation of the Mesa widgets to get this to > work. Am I doing something wrong, or is this by-design? See these methods: // Description: // This option enables the creation of Mesa classes // instead of the OpenGL classes when using mangled Mesa. static void SetUseMesaClasses(int use); static int GetUseMesaClasses(); on vtkGraphicsFactory and vtkImagingFactory. Basically the parent classes don't know how to choose between Mangled Mesa and the normal OpenGL functions because they can both be present at the same time. The comment about choosing between Mesa and OpenGL is for non-mangled mesa because only one of the two can be present in a single executable. -Brad From rendezvous at dreamxplosion.com Fri Jan 21 17:05:11 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Fri, 21 Jan 2005 17:05:11 -0500 Subject: [vtkusers] vtkAxesActor bug? Message-ID: <84F1629E-6BF8-11D9-8C7F-000A95D7CA24@dreamxplosion.com> As I wasn't satisfied with the vtkAxes class I thought I'd give the vtkAxesActor a try, as it has a lot more features and controls over the shape of the axes (tips, labels).. Unfortunately there are a few problems with this class (in the CVS build), namely it seems that toggling between wireframe/surface (key press w / s) crashes the application (bus error). here's a simple tcl source I tried. (I added a sphere also just for testing purposes). Any idea why this is happening? Can this be fixed? package require vtk package require vtkinteraction # Axes vtkAxesActor axes axes SetShaftTypeToCylinder axes SetCylinderRadius 0.02 axes SetConeRadius 0.2 # Renderer vtkRenderer ren1 ren1 SetBackground 0.2 0.2 0.2 # Render Window vtkRenderWindow renWin renWin AddRenderer ren1 # Interactor vtkInteractorStyleTerrain terrainStyle vtkRenderWindowInteractor iren iren SetRenderWindow renWin iren SetInteractorStyle terrainStyle iren AddObserver UserEvent {wm deiconify .vtkInteract} iren Initialize wm withdraw . ren1 AddActor axes # render renWin Render From rendezvous at dreamxplosion.com Fri Jan 21 17:06:23 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Fri, 21 Jan 2005 17:06:23 -0500 Subject: [vtkusers] vtkAxesActor feature request. Message-ID: Also, what happen to the SymmetricOn feature? Can I have the axes extended on both sides of the origin? marius From R.Fureder at exeter.ac.uk Sat Jan 22 10:39:11 2005 From: R.Fureder at exeter.ac.uk (=?iso-8859-1?Q?Reinhold_F=FCreder?=) Date: Sat, 22 Jan 2005 16:39:11 +0100 Subject: [vtkusers] vtkClipPolyData In-Reply-To: Message-ID: <00b001c50098$8ac8c690$0200a8c0@re> Dear Karl, In case you are still looking for a solution: since your input is a 3D binary image already you could try to extract the 2D image plane directly instead of going the way of doing a "pseudo voxelisation"? Please correct me, if I am missing something. To fill the contour you can use image processing floodfill operation assuming the contour is closed and has no selfintersections (other conditions?), or if you prefer visualisation algorithms implement scan line or rasterisation algorithm (again at least the contour must be closed) as used by the graphics card for instance... BTW, there are more (3D) voxelisation algorithms available in VTK, most of them taking vtkPolyData as input. HTH Reinhold > -----Original Message----- > From: vtkusers-bounces at vtk.org > [mailto:vtkusers-bounces at vtk.org] On Behalf Of Karl Fritscher > Sent: Monday, January 17, 2005 1:23 PM > To: vtkusers at vtk.org > Subject: [vtkusers] vtkClipPolyData > > > Hello, > > i would like to cut a 3d binary image by using the vtk > implicit plane widget and convert the output back to an itk > image. The miage contains a sphere where the pixels inside of > the shpere are white and everything outside is black. I > managed to cut the image an convert the polydata using > vtkImplicitModeller and VTKImageToImageFilter. Ht eproblem > is, that the Implicit Modeller is only returning the contour > of the cut polydata. What I would need is that everything > which is inside the initial sphere (and "inside" the cutting > plane) is white and everything outside is black again. I > would really appreciate, If somebody could > give me a hint on how i could achive this. > > Karl Fritscher > Research Assistant > UMIT-Austria > _______________________________________________ > 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 From darshanpai at gmail.com Sun Jan 23 21:17:22 2005 From: darshanpai at gmail.com (Darshan Pai) Date: Sun, 23 Jan 2005 21:17:22 -0500 Subject: [vtkusers] vtkImagePlaneWidget Message-ID: I have created a planeWidget on my volumetric data. But I need to increase the size of the plane. How Should I do it. THanx Darshan From alletto at dei.unipd.it Mon Jan 24 11:34:00 2005 From: alletto at dei.unipd.it (alletto at dei.unipd.it) Date: Mon, 24 Jan 2005 17:34:00 +0100 Subject: [vtkusers] A question about vtkTriangleFilter. In-Reply-To: <20041013160009.E0E622FF0F@public.kitware.com> References: <20041013160009.E0E622FF0F@public.kitware.com> Message-ID: <1106584440.41f523789b7a2@mail.dei.unipd.it> Hi all vtkusers, I have tried to convert a binary vtkfile into a Stl ASCII. Convertion seems to be right, but when I open these files with ParaView ex.vtk Number of cells 2713 ex.stl Number of cells 10048 OK but ex.vtk Number of Points 6529 ex.stl Number of Points 5032 ??? What's wrong? Have I lost information? Instead if I use "filter" -> "TRIANGULATE" with Paraview I get the right number of points. This is my code: vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName("ex.vtk"); vtkTriangleFilter *filter = vtkTriangleFilter::New(); //filter->PassVertsOn(); //filter->PassLinesOff(); filter->SetInput( reader->GetOutput() ); vtkSTLWriter *writer = vtkSTLWriter::New(); writer->SetInput( filter->GetOutput() ); writer->SetFileName("ex.stl"); writer->SetFileTypeToASCII(); writer->Update(); Please help me. Thank you in advance. Michele Alletto. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From Lawrence.Lifshitz at umassmed.edu Mon Jan 24 11:31:05 2005 From: Lawrence.Lifshitz at umassmed.edu (Lawrence M. Lifshitz) Date: Mon, 24 Jan 2005 11:31:05 -0500 Subject: [vtkusers] how to minimize memory size of vtkActors? Message-ID: <41F522C9.6020801@umassmed.edu> Hi, I'm writing an application with 100,000s of atoms (of 3 different kinds) diffusing around. I'm trying to minimize the space taken up by the simulation. Right now I have vtkSphereSource generate 3 "generic" atoms (one for each kind of atom, they are each a different size). Similarly I have 3 mappers and 3 vtkProperties (each type of atom has a different color). I then generate one vtkActor for each atom I want to simulate (ie, 100,000s of actors), set it's Input() to be the correct generic atom source Output() and use SetPosition() on the actor to move that atom. These actors go directly to the renderer (no other levels of filtering). I've set GlobalImmediateModeRenderingOn() and GlobalReleaseDataFlagOn(). How can I further minimize space used? Specifically: I'm worried that vtkActor is taking up a lot of space for each instance of it. 1). how can I tell how much space is used by an instance of vtkActor (especially in "real use" along with its associated default data which might get created, rather than just looking at the static definition in vtkProp3D.h)? All I'm really using vtkActor for is to set the position of its associated atom. 2). Can I create a "light weight" vtkActor which permits this (and the necessary VTK functions like update(), etc), but excludes unnecessary stuff (do I need vtkTransform in there? what about a lot of the other floats?)? I assume I'd do this by creating myvtkActor derived from vtkProp3D but without a bunch of the private data. 3). Which private data can I get rid of? Would this be a large saving compared to other data which gets created with vtkActor (there are lots of ptrs to things that MIGHT be getting created for vtkActor, but it's hard to tell what does get created)? I did realize that an instance of vtkProperty gets created for each vtkActor unless explicitly created, that is why I've created 3 of them and set them explictly. 4). how many copies of data will be "lying around" since I have no other filters in the system? I only have 3 vtkSphereSources, but I assume since I have 100,000s of Actors that I get 100,000s of vtkPolyDatas AFTER the vtkActor stage of the pipeline (each vtkPolyData being for one sphere). But do I only have 3 spheres before that stage? Thus the GlobalReleaseDataFlagOn() really doesn't do anything for me? Is there a better way? I thought I might just use 3 Actors and instead create 100,000s of atoms, each with a different position. Then I could go in and directly modify the vtkPolyData for an atom when I need to move it (or stick in a vtkTransform filter), but I thought that would take more space and time. would it? Thanks. -- Lawrence M. Lifshitz, Ph. D., Associate Professor Biomedical Imaging Group (http://invitro.umassmed.edu) University of Massachusetts Medical School (http://www.umassmed.edu) Phone: (508) 856-3392 email: Lawrence.Lifshitz at umassmed.edu Fax: (508) 856-1840 web: http://invitro.umassmed.edu/lml From freiman at cs.huji.ac.il Mon Jan 24 12:10:29 2005 From: freiman at cs.huji.ac.il (Moti Freiman) Date: Mon, 24 Jan 2005 19:10:29 +0200 Subject: [vtkusers] Re: A question about vtkTriangleFilter Message-ID: <41F52C05.10801@cs.huji.ac.il> Hello! According to my experience, when you saved a file as stl, it don't save it as you see it at screen. i don't know what is the reason to that. but it happened to me many times (vtkSLWriter bug). However my solution was to save the file as vrml (vtkVRMLExporter) and then using software called GLView to convert the vrml file to stl. in that way, the converted stl file, was o.k. Regards! -- Moti Freiman, Graduate Student. Medical Image Processing and Computer-Assisted Surgery Laboratory. School of Computer Science and Engineering. The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel Phone: +(972)-2-658-5371 (laboratory) E-mail: freiman at cs.huji.ac.il WWW site: http://www.cs.huji.ac.il/~freiman -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 21/01/2005 From mathieu.malaterre at kitware.com Mon Jan 24 12:51:12 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Mon, 24 Jan 2005 12:51:12 -0500 Subject: [vtkusers] A question about vtkTriangleFilter. In-Reply-To: <1106584440.41f523789b7a2@mail.dei.unipd.it> References: <20041013160009.E0E622FF0F@public.kitware.com> <1106584440.41f523789b7a2@mail.dei.unipd.it> Message-ID: <41F53590.4070108@kitware.com> Michele, Could you use a vtkCleanPolyData to merge back the duplicate points and compare again the number of points. STL is duplicating the point in order to save the file. Thanks Mathieu alletto at dei.unipd.it wrote: > Hi all vtkusers, > > I have tried to convert a binary vtkfile into a Stl ASCII. Convertion seems > to be right, but when I open these files with ParaView > > ex.vtk Number of cells 2713 > ex.stl Number of cells 10048 OK but > > ex.vtk Number of Points 6529 > ex.stl Number of Points 5032 ??? > > What's wrong? Have I lost information? > > Instead if I use "filter" -> "TRIANGULATE" with Paraview I get the right > number of points. > > This is my code: > > > vtkPolyDataReader *reader = vtkPolyDataReader::New(); > reader->SetFileName("ex.vtk"); > > vtkTriangleFilter *filter = vtkTriangleFilter::New(); > //filter->PassVertsOn(); > //filter->PassLinesOff(); > filter->SetInput( reader->GetOutput() ); > > > vtkSTLWriter *writer = vtkSTLWriter::New(); > writer->SetInput( filter->GetOutput() ); > writer->SetFileName("ex.stl"); > writer->SetFileTypeToASCII(); > writer->Update(); > > Please help me. > > Thank you in advance. > > Michele Alletto. > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > _______________________________________________ > 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 > From dean.inglis at camris.ca Mon Jan 24 13:06:26 2005 From: dean.inglis at camris.ca (Dean Inglis) Date: Mon, 24 Jan 2005 13:06:26 -0500 Subject: [vtkusers] vtkAxesActor bug? Message-ID: Marius, I tried your script and have not had time to figure out the bug: wireframe/surface toggle. Please report this to the php bug tracker and add the script as an attachment after you report it. vtkAxesActor is really meant as an input for vtkOrientationMarkerWidget, and not a replacement for vtkAxes. So the SymmetricOn feature was not implemented but could be added as a feature request: see php bug tracker for that as well. Dean From rendezvous at dreamxplosion.com Mon Jan 24 13:39:51 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Mon, 24 Jan 2005 13:39:51 -0500 Subject: [vtkusers] vtkImageReslice : scalar value range altered? (by cubic interpolation) Message-ID: <555B6EA8-6E37-11D9-AE24-000A95D7CA24@dreamxplosion.com> Does anyone know why the scalar value range (min/max) is altered by the vtkImageReslice when using the cubic interpolation? I have a volume (181x217x181 double) whose scalar value range is (0, 1). I perform a rigid transformation on it (rotation, translation etc). The linear interpolation preserves the scalar value range (0, 1) but the cubic interpolation does not. E.g. for a particular transformation (RotateX 20) the scalar range becomes (-0.2167, 1.1854). Remark: Even if the scalars are cropped by the given transformation (thus losing some values), the interpolated values should still remain within the original range (0, 1). Is this a bug or should certain parameters be set in vtkImageReslice to avoid such scalar value alteration? thanks marius From Charles.Boivin at rwdi.com Mon Jan 24 13:40:34 2005 From: Charles.Boivin at rwdi.com (Charles Boivin) Date: Mon, 24 Jan 2005 11:40:34 -0700 Subject: [vtkusers] Rotating vtkActor2D subclasses? Message-ID: Hello all, Is there any way to rotate actors derived from vtkActor2D? I am using vtkCubeAxesActor2D to show the outer dimensions of a vtkImageData structure. The (3D) actors that are displayed from the data stored in this vtkImageData have the ability of being rotated using the vtkProp3D::vtkRotateWXYZ() member function. However, if I rotate, say the actor representing the outline of my vtkImageData object, then my vtkCubeAxesActor2D does not rotate with it. Actually, I guess I do not want to actually rotate the whole actor, but just to make sure the axes follow the actual outline of the domain as it is being displayed. What would be the solution to this? Any ideas / suggestions from the people on this list? Thank you. Charles Boivin From dgobbi at atamai.com Mon Jan 24 14:00:27 2005 From: dgobbi at atamai.com (David Gobbi) Date: Mon, 24 Jan 2005 14:00:27 -0500 (EST) Subject: [vtkusers] vtkImageReslice : scalar value range altered? (by cubic interpolation) In-Reply-To: <555B6EA8-6E37-11D9-AE24-000A95D7CA24@dreamxplosion.com> Message-ID: Hi Marius, That's just how vtkImageReslice's cubic interpolation works. If you have 4 nodes and you draw a cubic curve that passes through them, it should be immediately apparent that sometimes the range of the curve will exceed the range of the nodes. Currently vtkImageReslice does not support B-spline interpolation, which would solve your problem. This is something I've been thinking of adding for a long time (it wouldn't be much work, only the testing is a pain) so it will probably make it into VTK 5.0. - David On Mon, 24 Jan 2005, Marius S Giurgi wrote: > Does anyone know why the scalar value range (min/max) is altered by the > vtkImageReslice when using the cubic interpolation? > > I have a volume (181x217x181 double) whose scalar value range is (0, > 1). I perform a rigid transformation on it (rotation, translation etc). > The linear interpolation preserves the scalar value range (0, 1) but > the cubic interpolation does not. E.g. for a particular transformation > (RotateX 20) the scalar range becomes (-0.2167, 1.1854). > > Remark: Even if the scalars are cropped by the given transformation > (thus losing some values), the interpolated values should still remain > within the original range (0, 1). Is this a bug or should certain > parameters be set in vtkImageReslice to avoid such scalar value > alteration? > > thanks > marius > > _______________________________________________ > 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 > From Charles.Boivin at rwdi.com Mon Jan 24 14:48:18 2005 From: Charles.Boivin at rwdi.com (Charles Boivin) Date: Mon, 24 Jan 2005 12:48:18 -0700 Subject: Fwd: [vtkusers] Rotating vtkActor2D subclasses? Message-ID: Hello, Just thought I would include some pictures with this email to illustrate my question a bit better... First picture is with the vtkCubeAxesActor2D aligned with the vtkImageData outline. The second one is when I rotate the outline actor, the vtkCubeAxesActor2D does not follow properly... Hope this will help generate a few replies! >>> "Charles Boivin" 24/01/2005 11:40:34 am >>> Hello all, Is there any way to rotate actors derived from vtkActor2D? I am using vtkCubeAxesActor2D to show the outer dimensions of a vtkImageData structure. The (3D) actors that are displayed from the data stored in this vtkImageData have the ability of being rotated using the vtkProp3D::vtkRotateWXYZ() member function. However, if I rotate, say the actor representing the outline of my vtkImageData object, then my vtkCubeAxesActor2D does not rotate with it. Actually, I guess I do not want to actually rotate the whole actor, but just to make sure the axes follow the actual outline of the domain as it is being displayed. What would be the solution to this? Any ideas / suggestions from the people on this list? Thank you. Charles Boivin _______________________________________________ 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: axesaligned.png Type: image/png Size: 18914 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: axesnotaligned.png Type: image/png Size: 23341 bytes Desc: not available URL: From jasvirsingh81 at yahoo.com Mon Jan 24 14:55:25 2005 From: jasvirsingh81 at yahoo.com (jasvir singh) Date: Mon, 24 Jan 2005 11:55:25 -0800 (PST) Subject: [vtkusers] Vtk and matlab In-Reply-To: Message-ID: <20050124195525.45917.qmail@web52406.mail.yahoo.com> HI, I am jasvir singh, new member of this group. I am programming in matlab for quite some time. now my employer has asked me to make vtk (which is completely new to me) compatible with matlab 6. is it possible to make vtk compatible with matlab 6? sorry if the question is repeated, but any clue regarding this is helpful to me. thanx for your time and concern. jasvir singh There is a difference in knowing the path and walking the path. Morpheus in The Matrix visit my homepage www.geocities.com/jasvir531/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxkockara at gmail.com Mon Jan 24 16:53:33 2005 From: sxkockara at gmail.com (sinan kock) Date: Mon, 24 Jan 2005 15:53:33 -0600 Subject: [vtkusers] vtk volumizer Message-ID: <2557c730050124135316fc13b8@mail.gmail.com> Is there anyone who used VTK volumizer with CAVE environment out there? I need to know pros and conds of VTK volumizer with CAVE immersive environment. I did not decide yet to use between Opengl Volumizer and VTK. From lachlan at chryatech.com.au Tue Jan 25 06:21:33 2005 From: lachlan at chryatech.com.au (Lachlan Blackhall) Date: Tue, 25 Jan 2005 12:21:33 +0100 Subject: [vtkusers] Picker + Interactor Style Problems Message-ID: <44E78F3B-6EC3-11D9-B8F6-000D93C3904C@chryatech.com.au> Gday, I want to be able to do picking with my mouse so i have created a new function derived from vtkCommand that i get to respond to a leftbuttonpressevent. Once im in this event i want to generate an endpick event so that my picking script gets called. I dont really know how to do this. I tried vtkInteractorStyle *style=vtkInteractorStyle::New(); vtkRenderWindowInteractor *iren = reinterpret_cast(caller); iren->SetInteractorStyle(style); iren->SetKeyCode(int ('p')); style->OnChar(); which works fine but this destroys all the original mouse interaction capabilities (zoom, rotate etc..). If i do the following the program crashes after i click an actor vtkInteractorStyle *style=vtkInteractorStyle::New(); vtkRenderWindowInteractor *iren = reinterpret_cast(caller); vtkInteractorStyle *style_orig = (vtkInteractorStyle *) iren->GetInteractorStyle(); iren->SetInteractorStyle(style); iren->SetKeyCode(int ('p')); style->OnChar(); iren->SetInteractorStyle(style_orig); I have set up another function and callback to respond to the pick event and using gdb i know that this callback occurs with both blocks of code just the second one (which i need so it zooms and such) wont work. If i try vtkRenderWindowInteractor *iren = reinterpret_cast(caller); vtkInteractorStyle *style = (vtkInteractorStyle *) iren->GetInteractorStyle(); iren->SetKeyCode(int ('p')); style->OnChar(); then the pick event is no longer generated. ???????????????? any help would be appreciated thanks Lachlan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2339 bytes Desc: not available URL: From michnay at freemail.hu Tue Jan 25 08:28:39 2005 From: michnay at freemail.hu (=?ISO-8859-2?Q?Michnay_Bal=E1zs?=) Date: Tue, 25 Jan 2005 14:28:39 +0100 (CET) Subject: [vtkusers] ConnectivityFilter Message-ID: Dear VTK Users, Does anyone have experience in using vtkConnectivityFilter? I've been spending too much time to figure out how it works. I have a binary thresholded image (vtkImageData) and I'd like to visualize how many connected components (regions) it contains (coloring these would be great). These regions then must be extracted (so that a volume can be built from them). Please let me know if it was possible at all using vtkConnectivityFilter or not? I don't know to set the class' member variables to get this class working this way. I'm pretty sure there is a way. If anyone has ever used this class and knows how to do this, please reply, I'm sure it's just a few settings I'm missing and it's been months I've been stuck at this point. I'm really looking forward to your reply, Thank you, MB From blowekamp at mail.nih.gov Mon Jan 24 17:06:46 2005 From: blowekamp at mail.nih.gov (Bradley Lowekamp) Date: Mon, 24 Jan 2005 17:06:46 -0500 Subject: [vtkusers] no tk events from vtkTkRenderWidget? bug? (Modified by Bradley Lowekamp) Message-ID: I am using tcl/tk to write some GUIs. and I am trying to bind tk events to my vtkTkRenderWidget and I am not getting any! I have a recent CVS version of VTK. I am also using tcl/tk 8.3.?. Here is a little example of what I am talking about. vtkTkRenderWidget .rw vtkRenderer ren1 [.rw GetRenderWindow] AddRenderer ren1 pack .rw bind .rw {puts "destroy"} bind .rw {puts "keypress"} With a script like this I am not getting anything printed out no matter what event I try. I know I can get a hold of some of the interaction events through the Interactor callbacks and events. But that does not cover some of the windowing related events that I would like access too. Has this feature been removed or is there a bug with my build? Is this feature in a test or an example so I can check to see if I am doing something wrong? Thanks ======================================================== Bradley Lowekamp Management Systems Designers Contractor for Office of High Performance Computing and Communications National Library of Medicine 'blowekamp at mail.nih.gov From steven.robbins at videotron.ca Tue Jan 25 14:07:40 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Tue, 25 Jan 2005 14:07:40 -0500 Subject: [vtkusers] vtkPanel questions Message-ID: <20050125190740.GA3568@nyongwa.montreal.qc.ca> Howdy, I have two questions about the vtkPanel class, as seen in VTK 4.2 and VTK 4.4.2. Drawing surface locking: Each of the three native methods RenderCreate(), Lock(), and UnLock() return a status integer indicating failure. This status is never checked. Wouldn't it be more robust and in keeping with the spirit of Java if an exception were thrown instead? Interaction style: The vtkPanel class implements listeners for mouse and keystrokes. It looks to me like there is a hardcoded interaction style with keys r, u, w, and s bound. Does this mean that vtkRenderWindowInteractor is completely out of the picture? Thanks, -Steve From fred at ucar.edu Tue Jan 25 14:07:49 2005 From: fred at ucar.edu (Fred Clare) Date: Tue, 25 Jan 2005 12:07:49 -0700 (MST) Subject: [vtkusers] vtkCubeAxesActor2D() in 4.2 Python Message-ID: I am running VTK 4.2 with the Python interface and when I run the example cubeAxes.py, I get Traceback (most recent call last): File "cubeAxes.py", line 84, in ? axes = vtk.vtkCubeAxesActor2D() AttributeError: 'module' object has no attribute 'vtkCubeAxesActor2D' Most everything else has worked for me. Fred Clare From ahrivera at yahoo.com Tue Jan 25 14:45:24 2005 From: ahrivera at yahoo.com (Alexis H. Rivera-Rios) Date: Tue, 25 Jan 2005 11:45:24 -0800 (PST) Subject: [vtkusers] cmake gives errors when configuring vtk with visual c++ 8 2005 Message-ID: <20050125194524.40315.qmail@web30706.mail.mud.yahoo.com> Hi, Im trying to compile VTK with Cmake 2.0 patch 5 on a WinXP box using Visual C++ 8 2005 Express. When I hit the configure button, cmake starts the configuration process and I get this error: Check size of int: CMake Error: Unable to find executable for TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe If I hit ok, I still get the same error for the following tests: Check size long, void*, char, short, float, double, long long, __int64 Checking signedness of char Looking for pthread.h Checking old streams end-of-file bug level Then I get this other error when checking if the system is bigendian: CMake Error: An attempt was made to access a variable: CMAKE_WORDS_BIGENDIAN that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. It also happens when checking CXX include file sstream checking support for c++ explicit template instantiation - yes Then I get a whole bunch of the same errors during the configuration (no message in the status bar). At that point, I get the cache values shown, which I can modify... but I don't get the ok button to be enabled. I click on configure again, I get the same errors. Other errors that I got when I ran cmake from the command line are the following: CMake Error: An attempt was made to access a variable: CMAKE_SIZEOF_INT that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. Has anybody seen this errors trying to compile VTK? How to I resolve this? By the way, I try to download the latest version of CMake to build it from scratch, but I got the same errors trying to build cmake too. I also tried older versions of Cmake that support visual c++ 8 and I got the same error there too. Thanks, Alexis ===== Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From prabhu_r at users.sf.net Tue Jan 25 14:49:11 2005 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Wed, 26 Jan 2005 01:19:11 +0530 Subject: [vtkusers] vtkCubeAxesActor2D() in 4.2 Python In-Reply-To: References: Message-ID: <16886.41655.200576.65001@monster.linux.in> >>>>> "FC" == Fred Clare writes: FC> I am running VTK 4.2 with the Python interface and when I run FC> the example cubeAxes.py, I get [...] FC> AttributeError: 'module' object has no attribute FC> 'vtkCubeAxesActor2D' I suspect you did not build the "Hybrid" classes. Turn it on and rebuild and try again. cheers, prabhu From ahrivera at yahoo.com Tue Jan 25 14:52:07 2005 From: ahrivera at yahoo.com (Alexis H. Rivera-Rios) Date: Tue, 25 Jan 2005 11:52:07 -0800 (PST) Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 Message-ID: <20050125195207.42982.qmail@web30709.mail.mud.yahoo.com> Hi, Im trying to compile VTK with Cmake 2.0 patch 5 on a WinXP box using Visual C++ 8 2005 Express. When I hit the configure button, cmake starts the configuration process and I get this error: Check size of int: CMake Error: Unable to find executable for TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe If I hit ok, I still get the same error for the following tests: Check size long, void*, char, short, float, double, long long, __int64 Checking signedness of char Looking for pthread.h Checking old streams end-of-file bug level Then I get this other error when checking if the system is bigendian: CMake Error: An attempt was made to access a variable: CMAKE_WORDS_BIGENDIAN that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. It also happens when checking CXX include file sstream checking support for c++ explicit template instantiation - yes Then I get a whole bunch of the same errors during the configuration (no message in the status bar). At that point, I get the cache values shown, which I can modify... but I don't get the ok button to be enabled. I click on configure again, I get the same errors. Other errors that I got when I ran cmake from the command line are the following: CMake Error: An attempt was made to access a variable: CMAKE_SIZEOF_INT that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. Has anybody seen this errors trying to compile VTK? How to I resolve this? By the way, I try to download the latest version of CMake to build it from scratch, but I got the same errors trying to build cmake too. I also tried older versions of Cmake that support visual c++ 8 and I got the same error there too. Thanks, Alexis ===== Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From billlist at nycap.rr.com Tue Jan 25 15:16:45 2005 From: billlist at nycap.rr.com (William A. Hoffman) Date: Tue, 25 Jan 2005 15:16:45 -0500 Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <20050125195207.42982.qmail@web30709.mail.mud.yahoo.com> References: <20050125195207.42982.qmail@web30709.mail.mud.yahoo.com> Message-ID: <6.1.1.1.2.20050125151127.0ae6dce0@pop.nycap.rr.com> I just tried it here and it worked fine. Make sure you pick the Visual Studio 8 2005 generator in the Build for box of cmake. Also make sure VCExpress.exe is in your path, when cmake is run it should create this cache entry: CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MID05A~1/Common7/IDE/VCExpress.exe -Bill At 02:52 PM 1/25/2005, Alexis H. Rivera-Rios wrote: >Hi, > >Im trying to compile VTK with Cmake 2.0 patch 5 on a >WinXP box using Visual C++ 8 2005 Express. > >When I hit the configure button, cmake starts the >configuration process and I get this error: > >Check size of int: >CMake Error: Unable to find executable for >TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe > >If I hit ok, I still get the same error for the >following tests: >Check size long, void*, char, short, float, double, >long long, __int64 >Checking signedness of char >Looking for pthread.h >Checking old streams end-of-file bug level > >Then I get this other error when checking if the >system is bigendian: >CMake Error: An attempt was made to access a variable: >CMAKE_WORDS_BIGENDIAN that has not been defined. Some >variables were always defined by CMake in versions >prior to 1.6. To fix this you might need to set the >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or >less. If you are writing a CMakeList file, (or have >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or >less) then you probably need to include a CMake module >to test for the feature this variable defines. > >It also happens when >checking CXX include file sstream >checking support for c++ explicit template >instantiation - yes > >Then I get a whole bunch of the same errors during the >configuration (no message in the status bar). > >At that point, I get the cache values shown, which I >can modify... but I don't get the ok button to be >enabled. > >I click on configure again, I get the same errors. > > >Other errors that I got when I ran cmake from the >command line are the following: >CMake Error: An attempt was made to access a variable: >CMAKE_SIZEOF_INT that has not been defined. Some >variables were always defined by CMake in versions >prior to 1.6. To fix this you might need to set the >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or >less. If you are writing a CMakeList file, (or have >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or >less) then you probably need to include a CMake module >to test for the feature this variable defines. > >Has anybody seen this errors trying to compile VTK? >How to I resolve this? By the way, I try to download >the latest version of CMake to build it from scratch, >but I got the same errors trying to build cmake too. >I also tried older versions of Cmake that support >visual c++ 8 and I got the same error there too. > >Thanks, >Alexis > >===== >Programming Tutorial: >In Python: To do this, do this >In Perl: To do this, do this or this or this or this... >In C: To do this, do this, but be careful >In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >_______________________________________________ >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 From ahrivera at yahoo.com Tue Jan 25 16:08:03 2005 From: ahrivera at yahoo.com (Alexis H. Rivera-Rios) Date: Tue, 25 Jan 2005 13:08:03 -0800 (PST) Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <6.1.1.1.2.20050125151127.0ae6dce0@pop.nycap.rr.com> Message-ID: <20050125210803.76703.qmail@web30702.mail.mud.yahoo.com> Hi, I selected the Visual Studion 8 option (it's the only option that works in my system) and I made sure the CMAKE_MAKE_PROGRAM is correct. Still, it doesn't work. Any other pointers? I'm using the XP Service Pack 2 SDK Update and I'm running on an XP Service Pack 2. I don't know if this matters. Thanks, Alexis --- "William A. Hoffman" wrote: > I just tried it here and it worked fine. > Make sure you pick the Visual Studio 8 2005 > generator in > the Build for box of cmake. > > Also make sure VCExpress.exe is in your path, when > cmake is > run it should create this cache entry: > > CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MID05A~1/Common7/IDE/VCExpress.exe > > -Bill > > At 02:52 PM 1/25/2005, Alexis H. Rivera-Rios wrote: > >Hi, > > > >Im trying to compile VTK with Cmake 2.0 patch 5 on > a > >WinXP box using Visual C++ 8 2005 Express. > > > >When I hit the configure button, cmake starts the > >configuration process and I get this error: > > > >Check size of int: > >CMake Error: Unable to find executable for > >TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe > > > >If I hit ok, I still get the same error for the > >following tests: > >Check size long, void*, char, short, float, double, > >long long, __int64 > >Checking signedness of char > >Looking for pthread.h > >Checking old streams end-of-file bug level > > > >Then I get this other error when checking if the > >system is bigendian: > >CMake Error: An attempt was made to access a > variable: > >CMAKE_WORDS_BIGENDIAN that has not been defined. > Some > >variables were always defined by CMake in versions > >prior to 1.6. To fix this you might need to set the > >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 > or > >less. If you are writing a CMakeList file, (or have > >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or > >less) then you probably need to include a CMake > module > >to test for the feature this variable defines. > > > >It also happens when > >checking CXX include file sstream > >checking support for c++ explicit template > >instantiation - yes > > > >Then I get a whole bunch of the same errors during > the > >configuration (no message in the status bar). > > > >At that point, I get the cache values shown, which > I > >can modify... but I don't get the ok button to be > >enabled. > > > >I click on configure again, I get the same errors. > > > > > >Other errors that I got when I ran cmake from the > >command line are the following: > >CMake Error: An attempt was made to access a > variable: > >CMAKE_SIZEOF_INT that has not been defined. Some > >variables were always defined by CMake in versions > >prior to 1.6. To fix this you might need to set the > >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 > or > >less. If you are writing a CMakeList file, (or have > >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or > >less) then you probably need to include a CMake > module > >to test for the feature this variable defines. > > > >Has anybody seen this errors trying to compile VTK? > >How to I resolve this? By the way, I try to > download > >the latest version of CMake to build it from > scratch, > >but I got the same errors trying to build cmake > too. > >I also tried older versions of Cmake that support > >visual c++ 8 and I got the same error there too. > > > >Thanks, > >Alexis > > > >===== > >Programming Tutorial: > >In Python: To do this, do this > >In Perl: To do this, do this or this or this or > this... > >In C: To do this, do this, but be careful > >In C++: To do this, do this, but don't do this, be > careful of this, watch out for this, and whatever > you do, don't do this > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > >_______________________________________________ > >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 > > ===== Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From billlist at nycap.rr.com Tue Jan 25 16:10:00 2005 From: billlist at nycap.rr.com (William A. Hoffman) Date: Tue, 25 Jan 2005 16:10:00 -0500 Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <20050125210803.76703.qmail@web30702.mail.mud.yahoo.com> References: <6.1.1.1.2.20050125151127.0ae6dce0@pop.nycap.rr.com> <20050125210803.76703.qmail@web30702.mail.mud.yahoo.com> Message-ID: <6.1.1.1.2.20050125160930.0aef55c0@pop.nycap.rr.com> Have a look at CMakeError.log and CMakeOutput.log and see if you can see why it can not build the test programs. -Bill At 04:08 PM 1/25/2005, Alexis H. Rivera-Rios wrote: >Hi, > >I selected the Visual Studion 8 option (it's the only >option that works in my system) and I made sure the >CMAKE_MAKE_PROGRAM is correct. Still, it doesn't >work. Any other pointers? > >I'm using the XP Service Pack 2 SDK Update and I'm >running on an XP Service Pack 2. I don't know if this >matters. > >Thanks, >Alexis > >--- "William A. Hoffman" >wrote: > >> I just tried it here and it worked fine. >> Make sure you pick the Visual Studio 8 2005 >> generator in >> the Build for box of cmake. >> >> Also make sure VCExpress.exe is in your path, when >> cmake is >> run it should create this cache entry: >> >> >CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MID05A~1/Common7/IDE/VCExpress.exe >> >> -Bill >> >> At 02:52 PM 1/25/2005, Alexis H. Rivera-Rios wrote: >> >Hi, >> > >> >Im trying to compile VTK with Cmake 2.0 patch 5 on >> a >> >WinXP box using Visual C++ 8 2005 Express. >> > >> >When I hit the configure button, cmake starts the >> >configuration process and I get this error: >> > >> >Check size of int: >> >CMake Error: Unable to find executable for >> >>TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe >> > >> >If I hit ok, I still get the same error for the >> >following tests: >> >Check size long, void*, char, short, float, double, >> >long long, __int64 >> >Checking signedness of char >> >Looking for pthread.h >> >Checking old streams end-of-file bug level >> > >> >Then I get this other error when checking if the >> >system is bigendian: >> >CMake Error: An attempt was made to access a >> variable: >> >CMAKE_WORDS_BIGENDIAN that has not been defined. >> Some >> >variables were always defined by CMake in versions >> >prior to 1.6. To fix this you might need to set the >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 >> or >> >less. If you are writing a CMakeList file, (or have >> >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or >> >less) then you probably need to include a CMake >> module >> >to test for the feature this variable defines. >> > >> >It also happens when >> >checking CXX include file sstream >> >checking support for c++ explicit template >> >instantiation - yes >> > >> >Then I get a whole bunch of the same errors during >> the >> >configuration (no message in the status bar). >> > >> >At that point, I get the cache values shown, which >> I >> >can modify... but I don't get the ok button to be >> >enabled. >> > >> >I click on configure again, I get the same errors. >> > >> > >> >Other errors that I got when I ran cmake from the >> >command line are the following: >> >CMake Error: An attempt was made to access a >> variable: >> >CMAKE_SIZEOF_INT that has not been defined. Some >> >variables were always defined by CMake in versions >> >prior to 1.6. To fix this you might need to set the >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 >> or >> >less. If you are writing a CMakeList file, (or have >> >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or >> >less) then you probably need to include a CMake >> module >> >to test for the feature this variable defines. >> > >> >Has anybody seen this errors trying to compile VTK? >> >How to I resolve this? By the way, I try to >> download >> >the latest version of CMake to build it from >> scratch, >> >but I got the same errors trying to build cmake >> too. >> >I also tried older versions of Cmake that support >> >visual c++ 8 and I got the same error there too. >> > >> >Thanks, >> >Alexis >> > >> >===== >> >Programming Tutorial: >> >In Python: To do this, do this >> >In Perl: To do this, do this or this or this or >> this... >> >In C: To do this, do this, but be careful >> >In C++: To do this, do this, but don't do this, be >> careful of this, watch out for this, and whatever >> you do, don't do this >> > >> >__________________________________________________ >> >Do You Yahoo!? >> >Tired of spam? Yahoo! Mail has the best spam >> protection around >> >http://mail.yahoo.com >> >_______________________________________________ >> >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 >> >> > > >===== >Programming Tutorial: >In Python: To do this, do this >In Perl: To do this, do this or this or this or this... >In C: To do this, do this, but be careful >In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail - Helps protect you from nasty viruses. >http://promotions.yahoo.com/new_mail >_______________________________________________ >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 From ahrivera at yahoo.com Tue Jan 25 16:49:16 2005 From: ahrivera at yahoo.com (Alexis H. Rivera-Rios) Date: Tue, 25 Jan 2005 13:49:16 -0800 (PST) Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <6.1.1.1.2.20050125160930.0aef55c0@pop.nycap.rr.com> Message-ID: <20050125214917.59951.qmail@web30708.mail.mud.yahoo.com> Bill, I found this in the CMakeCCompiler.cmake SET(CMAKE_C_COMPILER "cl") SET(CMAKE_AR "CMAKE_AR-NOTFOUND") SET(CMAKE_RANLIB ":") SET(CMAKE_COMPILER_IS_GNUCC ) SET(CMAKE_C_COMPILER_LOADED 1) SET(CMAKE_COMPILER_IS_MINGW ) SET(CMAKE_COMPILER_IS_CYGWIN ) IF(CMAKE_COMPILER_IS_CYGWIN) SET(CYGWIN 1) SET(UNIX 1) ENDIF(CMAKE_COMPILER_IS_CYGWIN) IF(CMAKE_COMPILER_IS_MINGW) SET(MINGW 1) ENDIF(CMAKE_COMPILER_IS_MINGW) SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) CMakeCXXCompiler.cmake SET(CMAKE_CXX_COMPILER "cl") SET(CMAKE_COMPILER_IS_GNUCXX ) SET(CMAKE_CXX_COMPILER_LOADED 1) SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) Does this mean that its finding gcc instead of the vc++ compiler, even though I specified it to use the vc++ compiler? Also, I tried the command you told me and I got this errors: C:\opt\vtk_build>cmake --debug-trycompile ../VTK debug trycompile on -- Check for working C compiler: cl -- works -- Check for working CXX compiler: cl -- works CMake Error: An attempt was made to access a variable: CMAKE_WORDS_BIGENDIAN that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have a lready set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. CMake Error: An attempt was made to access a variable: CMAKE_SIZEOF_INT that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. CMake Error: An attempt was made to access a variable: CMAKE_WORDS_BIGENDIAN that has not been defined. Some variables were always defined by CMake in versions prior to 1.6. To fix this you might need to set the cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 or less. If you are writing a CMakeList file, (or have a lready set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or less) then you probably need to include a CMake module to test for the feature this variable defines. -- Compiling VTK CMake commands -- Compiling VTK CMake commands - done -- Loading VTK CMake commands CMake Error: Error in cmake code at C:/opt/VTK/CMake/vtkLoadCMakeExtensions.cmake:7: LOAD_COMMAND Attempt to load command failed from file : cmVTK_WRAP_TCL2.dll CMake Error: Error in cmake code at C:/opt/VTK/CMake/vtkLoadCMakeExtensions.cmake:17: A command failed during the invocation of macro "VTK_LOAD_SINGLE_CMAKE_EXTENSION". Loading VTK command VTK_WRAP_TCL2 - failed -- Configuring done Something's wrong with the cmake commands, how do I proceed now? Thanks, Alexis --- "William A. Hoffman" wrote: > Have a look at CMakeError.log and CMakeOutput.log > and see if you can > see why it can not build the test programs. > > -Bill > > > At 04:08 PM 1/25/2005, Alexis H. Rivera-Rios wrote: > >Hi, > > > >I selected the Visual Studion 8 option (it's the > only > >option that works in my system) and I made sure the > >CMAKE_MAKE_PROGRAM is correct. Still, it doesn't > >work. Any other pointers? > > > >I'm using the XP Service Pack 2 SDK Update and I'm > >running on an XP Service Pack 2. I don't know if > this > >matters. > > > >Thanks, > >Alexis > > > >--- "William A. Hoffman" > >wrote: > > > >> I just tried it here and it worked fine. > >> Make sure you pick the Visual Studio 8 2005 > >> generator in > >> the Build for box of cmake. > >> > >> Also make sure VCExpress.exe is in your path, > when > >> cmake is > >> run it should create this cache entry: > >> > >> > >CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MID05A~1/Common7/IDE/VCExpress.exe > >> > >> -Bill > >> > >> At 02:52 PM 1/25/2005, Alexis H. Rivera-Rios > wrote: > >> >Hi, > >> > > >> >Im trying to compile VTK with Cmake 2.0 patch 5 > on > >> a > >> >WinXP box using Visual C++ 8 2005 Express. > >> > > >> >When I hit the configure button, cmake starts > the > >> >configuration process and I get this error: > >> > > >> >Check size of int: > >> >CMake Error: Unable to find executable for > >> > >>TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe > >> > > >> >If I hit ok, I still get the same error for the > >> >following tests: > >> >Check size long, void*, char, short, float, > double, > >> >long long, __int64 > >> >Checking signedness of char > >> >Looking for pthread.h > >> >Checking old streams end-of-file bug level > >> > > >> >Then I get this other error when checking if the > >> >system is bigendian: > >> >CMake Error: An attempt was made to access a > >> variable: > >> >CMAKE_WORDS_BIGENDIAN that has not been defined. > >> Some > >> >variables were always defined by CMake in > versions > >> >prior to 1.6. To fix this you might need to set > the > >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY to > 1.4 > >> or > >> >less. If you are writing a CMakeList file, (or > have > >> >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 > or > >> >less) then you probably need to include a CMake > >> module > >> >to test for the feature this variable defines. > >> > > >> >It also happens when > >> >checking CXX include file sstream > >> >checking support for c++ explicit template > >> >instantiation - yes > >> > > >> >Then I get a whole bunch of the same errors > during > >> the > >> >configuration (no message in the status bar). > >> > > >> >At that point, I get the cache values shown, > which > >> I > >> >can modify... but I don't get the ok button to > be > >> >enabled. > >> > > >> >I click on configure again, I get the same > errors. > >> > > >> > > >> >Other errors that I got when I ran cmake from > the > >> >command line are the following: > >> >CMake Error: An attempt was made to access a > >> variable: > >> >CMAKE_SIZEOF_INT that has not been defined. Some > >> >variables were always defined by CMake in > versions > >> >prior to 1.6. To fix this you might need to set > the > >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY to > 1.4 > >> or > >> >less. If you are writing a CMakeList file, (or > have > >> >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 > or > >> >less) then you probably need to include a CMake > >> module > >> >to test for the feature this variable defines. > >> > > >> >Has anybody seen this errors trying to compile > VTK? > >> >How to I resolve this? By the way, I try to > >> download > >> >the latest version of CMake to build it from > >> scratch, > >> >but I got the same errors trying to build cmake > >> too. > >> >I also tried older versions of Cmake that > support > >> >visual c++ 8 and I got the same error there too. > >> > > >> >Thanks, > >> >Alexis > >> > > >> >===== > >> >Programming Tutorial: > >> >In Python: To do this, do this > >> >In Perl: To do this, do this or this or this or > >> this... > >> >In C: To do this, do this, but be careful > >> >In C++: To do this, do this, but don't do this, > be > >> careful of this, watch out for this, and whatever > >> you do, don't do this > >> > > >> > >__________________________________________________ > >> >Do You Yahoo!? > >> >Tired of spam? Yahoo! Mail has the best spam > >> protection around > >> >http://mail.yahoo.com > >> >_______________________________________________ > >> >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 > >> > >> > > > > > >===== > >Programming Tutorial: > >In Python: To do this, do this > >In Perl: To do this, do this or this or this or > this... > >In C: To do this, do this, but be careful > >In C++: To do this, do this, but don't do this, be > careful of this, watch out for this, and whatever > you do, don't do this > > > > > > > >__________________________________ > >Do you Yahoo!? > >Yahoo! Mail - Helps protect you from nasty viruses. > > >http://promotions.yahoo.com/new_mail > >_______________________________________________ > >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 > > ===== Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From ahrivera at yahoo.com Tue Jan 25 17:40:32 2005 From: ahrivera at yahoo.com (Alexis H. Rivera-Rios) Date: Tue, 25 Jan 2005 14:40:32 -0800 (PST) Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <6.1.1.1.2.20050125171031.0ad6e140@pop.nycap.rr.com> Message-ID: <20050125224032.17385.qmail@web30709.mail.mud.yahoo.com> Bill, This is what I see: CMakeTmp/ Bool/ CMakeTmp/ Char/ CMakeTmp/ TestExplicitInstantiation/ A.h CMakeLists.txt A.cxx B.cxx Build/ A.proj ALL_BUILD.proj B.vcproj cmake.check_cache CMakeCache.txt INSTALL.vcproj A.vcproj.cmake ALL_BUILD.vcproj.cmake B.vcproj.cmake cmake_install.cmake EXPLICIT.sln ISNTALL.vcproj.cmake The interesting thing is that when I do View Tiles in explorer, the details of the files the .sln file have an attribute version which is usually set to a value... but not in these projects and solutions. When I try to load the solution, it complains of not having the version attribute set in the projects too so the projects don't load. --- "William A. Hoffman" wrote: > > No, that looks normal. The compiler is cl and gnu > is set to null or false. > When you run with the --debug option, look in the > CMakeTmp directory and see > what files are there. There should be some project > files and you can try to load > them with visual studio 8 and see why they do not > compile. > > -Bill > > At 04:49 PM 1/25/2005, you wrote: > >Bill, > > > >I found this in the CMakeCCompiler.cmake > > > >SET(CMAKE_C_COMPILER "cl") > >SET(CMAKE_AR "CMAKE_AR-NOTFOUND") > >SET(CMAKE_RANLIB ":") > >SET(CMAKE_COMPILER_IS_GNUCC ) > >SET(CMAKE_C_COMPILER_LOADED 1) > >SET(CMAKE_COMPILER_IS_MINGW ) > >SET(CMAKE_COMPILER_IS_CYGWIN ) > >IF(CMAKE_COMPILER_IS_CYGWIN) > > SET(CYGWIN 1) > > SET(UNIX 1) > >ENDIF(CMAKE_COMPILER_IS_CYGWIN) > > > >IF(CMAKE_COMPILER_IS_MINGW) > > SET(MINGW 1) > >ENDIF(CMAKE_COMPILER_IS_MINGW) > >SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) > > > >CMakeCXXCompiler.cmake > >SET(CMAKE_CXX_COMPILER "cl") > >SET(CMAKE_COMPILER_IS_GNUCXX ) > >SET(CMAKE_CXX_COMPILER_LOADED 1) > >SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) > > > >Does this mean that its finding gcc instead of the > >vc++ compiler, even though I specified it to use > the > >vc++ compiler? > > > >Also, I tried the command you told me and I got > this > >errors: > > > >C:\opt\vtk_build>cmake --debug-trycompile ../VTK > >debug trycompile on > >-- Check for working C compiler: cl -- works > >-- Check for working CXX compiler: cl -- works > >CMake Error: An attempt was made to access a > variable: > >CMAKE_WORDS_BIGENDIAN that has not been defined. > Some > >variables were always defined by CMake in versions > >prior to 1.6. To fix this you might need to set the > >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 > or > >less. If you are writing a CMakeList file, (or have > a > >lready set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or > >less) then you probably need to include a CMake > module > >to test for the feature this variable defines. > > > >CMake Error: An attempt was made to access a > variable: > >CMAKE_SIZEOF_INT that has not been defined. Some > >variables were always defined by CMake in versions > >prior to 1.6. To fix this you might need to set the > >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 > or > >less. If you are writing a CMakeList file, (or have > >already set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or > >less) then you probably need to include a CMake > module > >to test for the feature this variable defines. > > > >CMake Error: An attempt was made to access a > variable: > >CMAKE_WORDS_BIGENDIAN that has not been defined. > Some > >variables were always defined by CMake in versions > >prior to 1.6. To fix this you might need to set the > >cache value of CMAKE_BACKWARDS_COMPATIBILITY to 1.4 > or > >less. If you are writing a CMakeList file, (or have > a > >lready set CMAKE_BACKWARDS_COMPATABILITY to 1.4 or > >less) then you probably need to include a CMake > module > >to test for the feature this variable defines. > >-- Compiling VTK CMake commands > >-- Compiling VTK CMake commands - done > >-- Loading VTK CMake commands > >CMake Error: Error in cmake code at > >C:/opt/VTK/CMake/vtkLoadCMakeExtensions.cmake:7: > >LOAD_COMMAND Attempt to load command failed from > file > >: cmVTK_WRAP_TCL2.dll > >CMake Error: Error in cmake code at > >C:/opt/VTK/CMake/vtkLoadCMakeExtensions.cmake:17: > >A command failed during the invocation of macro > >"VTK_LOAD_SINGLE_CMAKE_EXTENSION". > >Loading VTK command VTK_WRAP_TCL2 - failed > >-- Configuring done > > > >Something's wrong with the cmake commands, how do I > >proceed now? > > > >Thanks, > >Alexis > > > >--- "William A. Hoffman" > >wrote: > > > >> Have a look at CMakeError.log and CMakeOutput.log > >> and see if you can > >> see why it can not build the test programs. > >> > >> -Bill > >> > >> > >> At 04:08 PM 1/25/2005, Alexis H. Rivera-Rios > wrote: > >> >Hi, > >> > > >> >I selected the Visual Studion 8 option (it's the > >> only > >> >option that works in my system) and I made sure > the > >> >CMAKE_MAKE_PROGRAM is correct. Still, it > doesn't > >> >work. Any other pointers? > >> > > >> >I'm using the XP Service Pack 2 SDK Update and > I'm > >> >running on an XP Service Pack 2. I don't know if > >> this > >> >matters. > >> > > >> >Thanks, > >> >Alexis > >> > > >> >--- "William A. Hoffman" > >> >wrote: > >> > > >> >> I just tried it here and it worked fine. > >> >> Make sure you pick the Visual Studio 8 2005 > >> >> generator in > >> >> the Build for box of cmake. > >> >> > >> >> Also make sure VCExpress.exe is in your path, > >> when > >> >> cmake is > >> >> run it should create this cache entry: > >> >> > >> >> > >> > >>CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MID05A~1/Common7/IDE/VCExpress.exe > >> >> > >> >> -Bill > >> >> > >> >> At 02:52 PM 1/25/2005, Alexis H. Rivera-Rios > >> wrote: > >> >> >Hi, > >> >> > > >> >> >Im trying to compile VTK with Cmake 2.0 patch > 5 > >> on > >> >> a > >> >> >WinXP box using Visual C++ 8 2005 Express. > >> >> > > >> >> >When I hit the configure button, cmake starts > >> the > >> >> >configuration process and I get this error: > >> >> > > >> >> >Check size of int: > >> >> >CMake Error: Unable to find executable for > >> >> > >> > >>>TRY_RUNC:/opt/vtk_build/CMakeTmp/Debug/cmTryCompileExec.exe > >> >> > > >> >> >If I hit ok, I still get the same error for > the > >> >> >following tests: > >> >> >Check size long, void*, char, short, float, > >> double, > >> >> >long long, __int64 > >> >> >Checking signedness of char > >> >> >Looking for pthread.h > >> >> >Checking old streams end-of-file bug level > >> >> > > >> >> >Then I get this other error when checking if > the > >> >> >system is bigendian: > >> >> >CMake Error: An attempt was made to access a > >> >> variable: > >> >> >CMAKE_WORDS_BIGENDIAN that has not been > defined. > >> >> Some > >> >> >variables were always defined by CMake in > >> versions > >> >> >prior to 1.6. To fix this you might need to > set > >> the > >> >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY > to > >> 1.4 > >> >> or > >> >> >less. If you are writing a CMakeList file, > (or > >> have > >> >> >already set CMAKE_BACKWARDS_COMPATABILITY to > 1.4 > >> or > >> >> >less) then you probably need to include a > CMake > >> >> module > >> >> >to test for the feature this variable > defines. > >> >> > > >> >> >It also happens when > >> >> >checking CXX include file sstream > >> >> >checking support for c++ explicit template > >> >> >instantiation - yes > >> >> > > >> >> >Then I get a whole bunch of the same errors > >> during > >> >> the > >> >> >configuration (no message in the status bar). > >> >> > > >> >> >At that point, I get the cache values shown, > >> which > >> >> I > >> >> >can modify... but I don't get the ok button > to > >> be > >> >> >enabled. > >> >> > > >> >> >I click on configure again, I get the same > >> errors. > >> >> > > >> >> > > >> >> >Other errors that I got when I ran cmake from > >> the > >> >> >command line are the following: > >> >> >CMake Error: An attempt was made to access a > >> >> variable: > >> >> >CMAKE_SIZEOF_INT that has not been defined. > Some > >> >> >variables were always defined by CMake in > >> versions > >> >> >prior to 1.6. To fix this you might need to > set > >> the > >> >> >cache value of CMAKE_BACKWARDS_COMPATIBILITY > to > >> 1.4 > >> >> or > >> >> >less. If you are writing a CMakeList file, > (or > >> have > >> >> >already set CMAKE_BACKWARDS_COMPATABILITY to > 1.4 > >> or > >> >> >less) then you probably need to include a > CMake > >> >> module > >> >> >to test for the feature this variable > defines. > >> >> > > >> >> >Has anybody seen this errors trying to > compile > >> VTK? > >> >> >How to I resolve this? By the way, I try to > >> >> download > >> >> >the latest version of CMake to build it from > >> >> scratch, > >> >> >but I got the same errors trying to build > cmake > >> >> too. > >> >> >I also tried older versions of Cmake that > >> support > >> >> >visual c++ 8 and I got the same error there > too. > >> >> > > >> >> >Thanks, > >> >> >Alexis > >> >> > > >> >> >===== > >> >> >Programming Tutorial: > >> >> >In Python: To do this, do this > >> >> >In Perl: To do this, do this or this or this > or > >> >> this... > >> >> >In C: To do this, do this, but be careful > >> >> >In C++: To do this, do this, but don't do > this, > >> be > >> >> careful of this, watch out for this, and > whatever > >> >> you do, don't do this > >> >> > > >> >> > >> > >__________________________________________________ > >> >> >Do You Yahoo!? > >> >> >Tired of spam? Yahoo! Mail has the best spam > >> >> protection around > >> >> >http://mail.yahoo.com > >> >> > >_______________________________________________ > >> >> >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 > >> >> > >> >> > >> > > >> > > >> >===== > >> >Programming Tutorial: > >> >In Python: To do this, do this > >> >In Perl: To do this, do this or this or this or > >> this... > >> >In C: To do this, do this, but be careful > >> >In C++: To do this, do this, but don't do this, > be > >> careful of this, watch out for this, and whatever > >> you do, don't do this > >> > > >> > > >> > > >> >__________________________________ > >> >Do you Yahoo!? > >> >Yahoo! Mail - Helps protect you from nasty > viruses. > >> > >> >http://promotions.yahoo.com/new_mail > >> >_______________________________________________ > >> >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 > >> > >> > > > > > > > >===== > >Programming Tutorial: > >In Python: To do this, do this > >In Perl: To do this, do this or this or this or > this... > >In C: To do this, do this, but be careful > >In C++: To do this, do this, but don't do this, be > careful of this, watch out for this, and whatever > you do, don't do this > > > > > > > >__________________________________ > >Do you Yahoo!? > >Yahoo! Mail - now with 250MB free storage. Learn > more. > >http://info.mail.yahoo.com/mail_250 > >_______________________________________________ > >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 > > ===== Programming Tutorial: In Python: To do this, do this In Perl: To do this, do this or this or this or this... In C: To do this, do this, but be careful In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From billlist at nycap.rr.com Tue Jan 25 17:46:52 2005 From: billlist at nycap.rr.com (William A. Hoffman) Date: Tue, 25 Jan 2005 17:46:52 -0500 Subject: [vtkusers] cannot compile vtk with cmake 2.05 and vc++ 8 2005 In-Reply-To: <20050125224032.17385.qmail@web30709.mail.mud.yahoo.com> References: <6.1.1.1.2.20050125171031.0ad6e140@pop.nycap.rr.com> <20050125224032.17385.qmail@web30709.mail.mud.yahoo.com> Message-ID: <6.1.1.1.2.20050125174550.0af9a7d8@pop.nycap.rr.com> Can you send me the CMakeCache.txt file from the CMakeTmp dir, and one of the .proj files. If you can not load the projects then that is the problem.... -Bill At 05:40 PM 1/25/2005, Alexis H. Rivera-Rios wrote: >Bill, > >This is what I see: >CMakeTmp/ > Bool/ > CMakeTmp/ > Char/ > CMakeTmp/ > TestExplicitInstantiation/ > A.h > CMakeLists.txt > A.cxx > B.cxx > Build/ > A.proj > ALL_BUILD.proj > B.vcproj > cmake.check_cache > CMakeCache.txt > INSTALL.vcproj > A.vcproj.cmake > ALL_BUILD.vcproj.cmake > B.vcproj.cmake > cmake_install.cmake > EXPLICIT.sln > ISNTALL.vcproj.cmake > >The interesting thing is that when I do View > Tiles in explorer, the details of the files the .sln >file have an attribute version which is usually set to >a value... but not in these projects and solutions. >When I try to load the solution, it complains of not >having the version attribute set in the projects too >so the projects don't load. From kli at issi-hsv.com Tue Jan 25 17:59:14 2005 From: kli at issi-hsv.com (Kanghong Li) Date: Tue, 25 Jan 2005 16:59:14 -0600 Subject: [vtkusers] Convert from RGBA values to the index in the VTK Lookup Table Message-ID: <003601c50331$83d78e70$8901a8c0@SUN> Anyone knows a way to convert from RGB values (3 numbers + A if needed) to the scalar/index (a value between 0 and 1) in the default vtk lookup table? Thanks. For example, RGB (51,51,255), can I get a value between 0 and 1 (index to the vtk lookup table) from that 3 numbers? -------------- next part -------------- An HTML attachment was scrubbed... URL: From steven.robbins at videotron.ca Tue Jan 25 21:15:13 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Tue, 25 Jan 2005 21:15:13 -0500 Subject: [vtkusers] vtkPanel questions In-Reply-To: <20050125190740.GA3568@nyongwa.montreal.qc.ca> References: <20050125190740.GA3568@nyongwa.montreal.qc.ca> Message-ID: <20050126021513.GB24564@nyongwa.montreal.qc.ca> On Tue, Jan 25, 2005 at 02:07:40PM -0500, Steve M. Robbins wrote: > Interaction style: The vtkPanel class implements listeners for mouse > and keystrokes. It looks to me like there is a hardcoded interaction > style with keys r, u, w, and s bound. Does this mean that > vtkRenderWindowInteractor is completely out of the picture? OK, I have since found the vtkCanvas class. However, it looks to me like there's a slight bug there: if you press a mouse button with zero visible actors, the drawing surface will get locked up and never unlocked. I think the following patch fixes it. Comments? -Steve Index: Wrapping/Java/vtk/vtkCanvas.java =================================================================== RCS file: /cvsroot/VTK/VTK/Wrapping/Java/vtk/vtkCanvas.java,v retrieving revision 1.5 diff -u -b -B -r1.5 vtkCanvas.java --- Wrapping/Java/vtk/vtkCanvas.java 3 Apr 2003 17:13:23 -0000 1.5 +++ Wrapping/Java/vtk/vtkCanvas.java 26 Jan 2005 02:11:06 -0000 @@ -106,8 +106,8 @@ public void mousePressed(MouseEvent e) { - Lock(); if (ren.VisibleActorCount() == 0) return; + Lock(); rw.SetDesiredUpdateRate(5.0); lastX = e.getX(); lastY = e.getY(); From fredericpcx at yahoo.es Wed Jan 26 04:19:41 2005 From: fredericpcx at yahoo.es (Frederic Perez) Date: Wed, 26 Jan 2005 10:19:41 +0100 (CET) Subject: [vtkusers] Convert from RGBA values to the index in the VTK Lookup Table In-Reply-To: <003601c50331$83d78e70$8901a8c0@SUN> Message-ID: <20050126091941.53843.qmail@web60204.mail.yahoo.com> Hi Kanghong Li, --- Kanghong Li escribi?: > Anyone knows a way to convert from RGB values (3 numbers + A if > needed) to the scalar/index (a value between 0 and 1) in the default > vtk lookup table? Thanks. > > For example, RGB (51,51,255), can I get a value between 0 and 1 > (index to the vtk lookup table) from that 3 numbers? A possibility is to use the luminance. A common expression is given by 0.299*R + 0.587*G + 0.114*B or A*(0.299*R + 0.587*G + 0.114*B). Notice that if your values range between 0 and 255 you will have to divide them by 255 (the R, G, B values of the previous ex- pressions should lie in [0..1]). HTH, Frederic Perez ______________________________________________ Renovamos el Correo Yahoo!: ?250 MB GRATIS! Nuevos servicios, m?s seguridad http://correo.yahoo.es From ckchen.cis89g at nctu.edu.tw Wed Jan 26 09:27:05 2005 From: ckchen.cis89g at nctu.edu.tw (ckchen@CIS) Date: Wed, 26 Jan 2005 22:27:05 +0800 Subject: [vtkusers] How to scale vtkCubeAxesActor2D ? Message-ID: <00ca01c503b3$1ce64710$c357718c@rhapsody> Hello everyone, I am a newbie to vtk. Hope you can help me or give me some suggestions. Here is my problem: There is a dataset with a scaled actor (use SetUserTransform( )) in my program, and now I want to add a vtkCubeAxesActor2D on this actor. However, vtkCubeAxesActor2D depends on the dataset instead of the scaled actor. So the result is not what I want. Can anyone answer my question, or give me some hints? thanks~ Kavin Chen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amy.henderson at kitware.com Wed Jan 26 09:41:17 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Wed, 26 Jan 2005 09:41:17 -0500 Subject: [vtkusers] How to scale vtkCubeAxesActor2D ? In-Reply-To: <00ca01c503b3$1ce64710$c357718c@rhapsody> References: <00ca01c503b3$1ce64710$c357718c@rhapsody> Message-ID: <6.2.0.14.2.20050126093405.040100b0@pop.biz.rr.com> Hi Kavin, In vtkCubeAxesActor2D the SetViewProp method can be used to make the vtkCubeAxesActor2D depend on an actor (prop) instead of a data set. Make sure you do not set the input if you are going to use the SetViewProp method. If you set the input data set, SetViewProp will have no effect. - Amy At 09:27 AM 1/26/2005, ckchen at CIS wrote: >Hello everyone, I am a newbie to vtk. Hope you can help me or give me some >suggestions. >Here is my problem: >There is a dataset with a scaled actor (use SetUserTransform( )) in my >program, and now I >want to add a vtkCubeAxesActor2D on this actor. However, >vtkCubeAxesActor2D depends >on the dataset instead of the scaled actor. So the result is not what I want. >Can anyone answer my question, or give me some hints? >thanks~ > >Kavin Chen. > > >_______________________________________________ >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 From j.mccoy at gmx.de Wed Jan 26 09:43:33 2005 From: j.mccoy at gmx.de (Joseph McCoy) Date: Wed, 26 Jan 2005 15:43:33 +0100 (MET) Subject: [vtkusers] how to add additional member- variables to a filter Message-ID: <12631.1106750613@www51.gmx.net> hi all, i intented to enhance some vtkFilter- objects (e.g. vtkDataSetToPolyDataFilter) with additional variables, for example an integer. first, i tried: /////////////// public: ... vtkSetMacro(TestInt, int); protected: ... int iTest; //////////////// compilation works, but when i call int i = ... ; myFilter->SetTestInt(i); the app crashes. i also tried it without macro: /////////////// public: ... void SetTestInt(int i); protected: ... int iTest; --- void myFilter::SetTestInt(int i) { this->iTest = i; } //////////////// again compilation works, but again the app crashed when i called SetTestInt. does anybody know what i'm missing? i'm on windows xp with vc++7 .net 2003 and vtk 4.4. many thanks in advance... Joseph -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot From ckchen.cis89g at nctu.edu.tw Wed Jan 26 10:04:55 2005 From: ckchen.cis89g at nctu.edu.tw (ckchen@CIS) Date: Wed, 26 Jan 2005 23:04:55 +0800 Subject: [vtkusers] Is this vtk precision problem? Message-ID: <00e901c503b8$6570bc40$c357718c@rhapsody> Hi~ I tried to read a standard vtk file and plot it on the screen. I use the standard procedure to put the following data in VTK framework, however, finally there is nothing on the screen, here is the data file: ************************************************* # vtk DataFile Version 2.0 # This file is generated by ABCDE. ASCII DATASET UNSTRUCTURED_GRID POINTS 8 double 0.000000000000 0.000000000000 0.000000000000 7.00000000000e-007 0.000000000000 0.000000000000 2.00000000000e-006 0.000000000000 0.000000000000 2.70000000000e-006 0.000000000000 0.000000000000 0.000000000000 1.50000000000e-006 0.000000000000 7.00000000000e-007 1.50000000000e-006 0.000000000000 2.00000000000e-006 1.50000000000e-006 0.000000000000 2.70000000000e-006 1.50000000000e-006 0.000000000000 CELLS 6 24 3 0 5 4 3 0 1 5 3 1 6 5 3 1 2 6 3 2 7 6 3 2 3 7 CELL_TYPES 6 5 5 5 5 5 5 POINT_DATA 8 SCALARS var double LOOKUP_TABLE default 1 2 3 4 5 6 7 8 *********************************** When I modify the coordinates of each point to larger scale: 0.000000000000 0.000000000000 0.000000000000 7.00000000000e-005 0.000000000000 0.000000000000 2.00000000000e-004 0.000000000000 0.000000000000 2.70000000000e-004 0.000000000000 0.000000000000 0.000000000000 1.50000000000e-004 0.000000000000 7.00000000000e-005 1.50000000000e-004 0.000000000000 2.00000000000e-004 1.50000000000e-004 0.000000000000 2.70000000000e-004 1.50000000000e-004 0.000000000000 then I can get the right image on the screen. Can anyone tell my how to deal with such problem? Kavin Chen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From randall.hand at gmail.com Wed Jan 26 10:26:02 2005 From: randall.hand at gmail.com (Randall Hand) Date: Wed, 26 Jan 2005 09:26:02 -0600 Subject: [vtkusers] Contours & Paraview/VTK Message-ID: I have a VTK Datafile (512x128x128) that I can load into paraview & use the "Contour" filter to extract an isosurface, in about 10-15 seconds. In VTK, however, if I use a vtkDataSetReader & a vtkContourFilter to do the same thing, it takes approximately 2 minutes. How does paraview do this so fast? -- Randall Hand http://www.yeraze.com From amy.henderson at kitware.com Wed Jan 26 10:37:29 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Wed, 26 Jan 2005 10:37:29 -0500 Subject: [vtkusers] Contours & Paraview/VTK In-Reply-To: References: Message-ID: <6.2.0.14.2.20050126103531.04010488@pop.biz.rr.com> If the version of VTK used in your copy of ParaView includes VTK's Patented directory, then vtkKitwareContourFilter was used instead of vtkContourFilter. - Amy At 10:26 AM 1/26/2005, Randall Hand wrote: >I have a VTK Datafile (512x128x128) that I can load into paraview & >use the "Contour" filter to extract an isosurface, in about 10-15 >seconds. > >In VTK, however, if I use a vtkDataSetReader & a vtkContourFilter to >do the same thing, it takes approximately 2 minutes. How does >paraview do this so fast? >-- >Randall Hand >http://www.yeraze.com >_______________________________________________ >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 From kli at issi-hsv.com Wed Jan 26 11:07:06 2005 From: kli at issi-hsv.com (Kanghong Li) Date: Wed, 26 Jan 2005 10:07:06 -0600 Subject: [vtkusers] Map RGBA from JColorChooser to an index in vtk default lookup table Message-ID: <001201c503c1$14e2b360$8901a8c0@SUN> I am trying to convert from the RGBA values returned from Java JColorChooser to an index in the vtk lookup table. Somehow the following conversion: 0.299*R + 0.587*G + 0.114*B or A*(0.299*R + 0.587*G + 0.114*B). did not give me the right index to the vtk lut. In other words, the color from lut did not match the one selected from the JColorChooser. Anyone knows what could cause the problem? Any solutions? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Wed Jan 26 11:12:06 2005 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 26 Jan 2005 17:12:06 +0100 Subject: [vtkusers] Map RGBA from JColorChooser to an index in vtk default lookup table In-Reply-To: <001201c503c1$14e2b360$8901a8c0@SUN> References: <001201c503c1$14e2b360$8901a8c0@SUN> Message-ID: <41F7C156.90302@skippingmouse.co.uk> Loop over each colour in the lookptable and compute the euclidian distance in RGB space between your colour and the colour in the lut. the one with the smallest distance is the closeszt match. JB Kanghong Li wrote: > I am trying to convert from the RGBA values returned from Java > JColorChooser to an index in the vtk lookup table. Somehow the following > conversion: > 0.299*R + 0.587*G + 0.114*B or A*(0.299*R + 0.587*G + 0.114*B). > did not give me the right index to the vtk lut. In other words, the > color from lut did not match the one selected from the JColorChooser. > > Anyone knows what could cause the problem? Any solutions? Thanks. > >------------------------------------------------------------------------ > >_______________________________________________ >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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charfeddine_amir at yahoo.fr Wed Jan 26 11:27:14 2005 From: charfeddine_amir at yahoo.fr (charfeddine amir) Date: Wed, 26 Jan 2005 17:27:14 +0100 (CET) Subject: [vtkusers] drawing 3D object from a binary 3D matrice(0 or 1 value) Message-ID: <20050126162714.12720.qmail@web25707.mail.ukl.yahoo.com> hi all thx a lot for your help and advices i have a 3d matrice containing 1 or 0 values named cube so if cube(i,j,k) ==1 then draw the point that coordinates are (i,j,k), so that to obtain a 3D object with the possibility to rotate it into the 3D sc?ne to create. hope it's easy and hope you help me because i'm stopped here and can't go on in my master project regards to all... amir --------------------------------- D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Cr?ez votre Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From michnay at freemail.hu Wed Jan 26 14:01:21 2005 From: michnay at freemail.hu (=?ISO-8859-2?Q?Michnay_Bal=E1zs?=) Date: Wed, 26 Jan 2005 20:01:21 +0100 (CET) Subject: [vtkusers] Positioning ImageActor Message-ID: Hi, I've been trying to position a vtkImageActor at run-time, but since vtkImageActor has no SetPosition method I don't know how to do it. Any ideas on this? Shall I try to move the camera instead? Any solutions for this? Thanks in advance, MB From amy.henderson at kitware.com Wed Jan 26 14:05:52 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Wed, 26 Jan 2005 14:05:52 -0500 Subject: [vtkusers] Positioning ImageActor In-Reply-To: References: Message-ID: <6.2.0.14.2.20050126140500.040464a8@pop.biz.rr.com> vtkImageActor is a subclass of vtkProp3D, which does have a SetPosition method. As a subclass, vtkImageActor has access to this public method. - Amy At 02:01 PM 1/26/2005, =?ISO-8859-2?Q?Michnay_Bal=E1zs?= wrote: >Hi, >I've been trying to position a vtkImageActor at run-time, but since >vtkImageActor has no SetPosition method I don't know how to do it. >Any ideas on this? Shall I try to move the camera instead? Any >solutions for this? >Thanks in advance, > > MB >_______________________________________________ >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 From yuhui.yang at imperial.ac.uk Wed Jan 26 14:07:54 2005 From: yuhui.yang at imperial.ac.uk (Yang, Yuhui) Date: Wed, 26 Jan 2005 19:07:54 -0000 Subject: [vtkusers] how to view vtkpolydata in FLTK windows? Message-ID: <4AF1FA9AE80CC442B32A2BA6173C5360B81370@icex32.ic.ac.uk> Hi, I am trying to build an interface using FLTK, and I want to view vtkpolydata in the interface. I need to use the Fl_Value_Slider to change the data so that the vtk data can be changed, how to connect the slider and the vtk pineline? I want to view the changes. thanks alot... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfrederich at mac.com Wed Jan 26 14:11:33 2005 From: jfrederich at mac.com (Jens Frederich) Date: Wed, 26 Jan 2005 20:11:33 +0100 Subject: [vtkusers] QT and Vtk 4.5 Message-ID: <17A861EA-6FCE-11D9-A233-000A95A0B65C@mac.com> Hi all, I search classes to use vtk with qt toolkit. This classes should run with X11, Windows, Carbon renderer and with the vtk version from cvs. Has anyone a idea? Jens From berk.geveci at gmail.com Wed Jan 26 10:39:51 2005 From: berk.geveci at gmail.com (Berk Geveci) Date: Wed, 26 Jan 2005 10:39:51 -0500 Subject: [vtkusers] Contours & Paraview/VTK In-Reply-To: References: Message-ID: It's magic :-) ParaView uses patented classes to isosurface structured datasets. vtkKitwareContourFilter figures out which filter is the fastest and uses that one. On Wed, 26 Jan 2005 09:26:02 -0600, Randall Hand wrote: > I have a VTK Datafile (512x128x128) that I can load into paraview & > use the "Contour" filter to extract an isosurface, in about 10-15 > seconds. > > In VTK, however, if I use a vtkDataSetReader & a vtkContourFilter to > do the same thing, it takes approximately 2 minutes. How does > paraview do this so fast? > -- > Randall Hand > http://www.yeraze.com > _______________________________________________ > 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 > From michnay at freemail.hu Wed Jan 26 14:41:45 2005 From: michnay at freemail.hu (=?ISO-8859-2?Q?Michnay_Bal=E1zs?=) Date: Wed, 26 Jan 2005 20:41:45 +0100 (CET) Subject: [vtkusers] Updating VTK Message-ID: Thanks Amy for the quick reply. My VTK version must some kind of an "early development" version, because imageactor->SetPosition(...); still says that SetPosition is an unknown identifier. How can I update my VTK release? I think I have the VTK 4.2 (Windows binary) uploaded to the vtk.org website. Should I use a different release? I hope I don't need to compile the whole VTK source code. Thanks, MB From amy.henderson at kitware.com Wed Jan 26 15:02:45 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Wed, 26 Jan 2005 15:02:45 -0500 Subject: [vtkusers] Updating VTK In-Reply-To: References: Message-ID: <6.2.0.14.2.20050126150042.040457d8@pop.biz.rr.com> Sorry, I should have asked which version of VTK you were using. vtkImageActor became a subclass of vtkProp3D on May 16, 2004 (according to the CVS log), so it only has a SetPosition method in the current development version of VTK. Prior to that change, the position of the image actor was determined by the origin of the input vtkImageData. - Amy At 02:41 PM 1/26/2005, =?ISO-8859-2?Q?Michnay_Bal=E1zs?= wrote: >Thanks Amy for the quick reply. My VTK version must some kind of >an "early development" version, because >imageactor->SetPosition(...); >still says that SetPosition is an unknown identifier. >How can I update my VTK release? I think I have the VTK 4.2 (Windows >binary) uploaded to the vtk.org website. >Should I use a different release? I hope I don't need to compile the >whole VTK source code. >Thanks, > > MB >_______________________________________________ >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 From chouyiyu at hotmail.com Wed Jan 26 15:25:06 2005 From: chouyiyu at hotmail.com (Yi-Yu Chou) Date: Wed, 26 Jan 2005 20:25:06 +0000 Subject: [vtkusers] Save as a vtkImageData (Huge Data Set) Message-ID: Dear vtk users, I used the following C++ code to generate a vtkImageData under Linux. It works ok when the input image I1 is small. However, if I1 is huge (about 200MB), the program crashs when executing AllocateScalars(). Any suggestions ? Thanks in advance !!!! vtkImageData *I2 = vtkImageData::New(); I2->SetDimensions(I1->GetDimensions()); I2->SetOrigin(ori); I2->SetSpacing(Spacing); I2->SetScalarType(I1->GetScalarType()); I2->AllocateScalars(); .............................................(skip) _________________________________________________________________ ????????MSN ?????? Match.com ???????????????? ? http://match.msn.com.tw From jnorris at mcs.anl.gov Wed Jan 26 16:50:07 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Wed, 26 Jan 2005 15:50:07 -0600 Subject: [vtkusers] VTK, MacOS and X11 Message-ID: <41F8108F.3040004@mcs.anl.gov> Hi, I can't seem to get VTK to work on a Mac using X11. Here are the highlights: Darwin kernel version 7.7.0 gcc 3.3 (from Apple) Latest CMake from cvs Latest VTK from cvs VTK_USE_CARBON and VTK_USE_COCOA are OFF VTK_USE_X is ON OPENGL_gl_LIBRARY:STRING=-framework OpenGL OPENGL_glu_LIBRARY:STRING=-framework AGL The OpenGL settings are what CMake chose. I'm trying to display to a PC with Windows 2000 and the X server that's distributed with cygwin. Everything compiles, but when I try to run something (GraphicsCxxTests, for example), I get a huge number of undefined references: dyld: bin/GraphicsCxxTests Undefined symbols: /usr/X11R6/lib/libGL.1.dylib undefined reference to _glAccum expected to be defined in OpenGL /usr/X11R6/lib/libGL.1.dylib undefined reference to _glActiveTexture expected to be defined in OpenGL etc etc etc I'm not a Mac person, but I've tried this on two different up-to-date Macs administered by different people, and I've gotten the same results. Is this a problem with VTK, CMake, or me? Any help would be greatly appreciated. Thanks! John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From mathieu.malaterre at kitware.com Wed Jan 26 17:08:10 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Wed, 26 Jan 2005 17:08:10 -0500 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F8108F.3040004@mcs.anl.gov> References: <41F8108F.3040004@mcs.anl.gov> Message-ID: <41F814CA.7050101@kitware.com> John, MacOSX comes with two differents OpenGL, and in the case of X11, you should use the other one: Ref: http://public.kitware.com/pipermail/vtkusers/2003-May/067667.html //What is the path where the file GL/gl.h can be found OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include //OpenGL lib for OSX OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib //AGL lib for OSX OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib HTH Mathieu Johnny C. Norris II wrote: > Hi, > > I can't seem to get VTK to work on a Mac using X11. Here are the > highlights: > > Darwin kernel version 7.7.0 > gcc 3.3 (from Apple) > Latest CMake from cvs > Latest VTK from cvs > VTK_USE_CARBON and VTK_USE_COCOA are OFF > VTK_USE_X is ON > OPENGL_gl_LIBRARY:STRING=-framework OpenGL > OPENGL_glu_LIBRARY:STRING=-framework AGL > > The OpenGL settings are what CMake chose. > > I'm trying to display to a PC with Windows 2000 and the X server > that's distributed with cygwin. > > Everything compiles, but when I try to run something > (GraphicsCxxTests, for example), I get a huge number of undefined > references: > dyld: bin/GraphicsCxxTests Undefined symbols: > /usr/X11R6/lib/libGL.1.dylib undefined reference to _glAccum expected > to be defined in OpenGL > /usr/X11R6/lib/libGL.1.dylib undefined reference to _glActiveTexture > expected to be defined in OpenGL > etc etc etc > > I'm not a Mac person, but I've tried this on two different up-to-date > Macs administered by different people, and I've gotten the same > results. Is this a problem with VTK, CMake, or me? > > Any help would be greatly appreciated. Thanks! > John From jnorris at mcs.anl.gov Wed Jan 26 17:15:42 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Wed, 26 Jan 2005 16:15:42 -0600 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: References: <41F8108F.3040004@mcs.anl.gov> Message-ID: <41F8168E.7030604@mcs.anl.gov> Thanks for the suggestion. I changed the OpenGL settings to: OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib It didn't help, however. I still get exactly the same errors. I'll take a look at fink. I'm porting an existing application, however, and would like to get it to work without a major redesign. Thanks, John Jens Frederich wrote: > please use not the opengl framework, but use the opengl lib under > /usr/X11R6/lib. The best way for vtk with X11 is, use the fink tree > (fink.sf.net) > > On 26.01.2005, at 22:50, Johnny C. Norris II wrote: >> Hi, >> >> I can't seem to get VTK to work on a Mac using X11. Here are the >> highlights: >> >> Darwin kernel version 7.7.0 >> gcc 3.3 (from Apple) >> Latest CMake from cvs >> Latest VTK from cvs >> VTK_USE_CARBON and VTK_USE_COCOA are OFF >> VTK_USE_X is ON >> OPENGL_gl_LIBRARY:STRING=-framework OpenGL >> OPENGL_glu_LIBRARY:STRING=-framework AGL >> >> The OpenGL settings are what CMake chose. >> >> I'm trying to display to a PC with Windows 2000 and the X server >> that's distributed with cygwin. >> >> Everything compiles, but when I try to run something >> (GraphicsCxxTests, for example), I get a huge number of undefined >> references: >> dyld: bin/GraphicsCxxTests Undefined symbols: >> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glAccum expected >> to be defined in OpenGL >> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glActiveTexture >> expected to be defined in OpenGL >> etc etc etc >> >> I'm not a Mac person, but I've tried this on two different up-to-date >> Macs administered by different people, and I've gotten the same >> results. Is this a problem with VTK, CMake, or me? >> >> Any help would be greatly appreciated. Thanks! >> John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From mathieu.malaterre at kitware.com Wed Jan 26 17:20:06 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Wed, 26 Jan 2005 17:20:06 -0500 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F8168E.7030604@mcs.anl.gov> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> Message-ID: <41F81796.4020907@kitware.com> Johnny, Did you do : cmake (modify the settings) make rebuild_cache make clean (within VTK/Rendering should be enough) make Thanks Mathieu Johnny C. Norris II wrote: > Thanks for the suggestion. I changed the OpenGL settings to: > > OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib > > It didn't help, however. I still get exactly the same errors. > > I'll take a look at fink. I'm porting an existing application, however, > and would like to get it to work without a major redesign. > > Thanks, > John > > Jens Frederich wrote: > >> please use not the opengl framework, but use the opengl lib under >> /usr/X11R6/lib. The best way for vtk with X11 is, use the fink tree >> (fink.sf.net) >> >> On 26.01.2005, at 22:50, Johnny C. Norris II wrote: >> >>> Hi, >>> >>> I can't seem to get VTK to work on a Mac using X11. Here are the >>> highlights: >>> >>> Darwin kernel version 7.7.0 >>> gcc 3.3 (from Apple) >>> Latest CMake from cvs >>> Latest VTK from cvs >>> VTK_USE_CARBON and VTK_USE_COCOA are OFF >>> VTK_USE_X is ON >>> OPENGL_gl_LIBRARY:STRING=-framework OpenGL >>> OPENGL_glu_LIBRARY:STRING=-framework AGL >>> >>> The OpenGL settings are what CMake chose. >>> >>> I'm trying to display to a PC with Windows 2000 and the X server >>> that's distributed with cygwin. >>> >>> Everything compiles, but when I try to run something >>> (GraphicsCxxTests, for example), I get a huge number of undefined >>> references: >>> dyld: bin/GraphicsCxxTests Undefined symbols: >>> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glAccum expected >>> to be defined in OpenGL >>> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glActiveTexture >>> expected to be defined in OpenGL >>> etc etc etc >>> >>> I'm not a Mac person, but I've tried this on two different up-to-date >>> Macs administered by different people, and I've gotten the same >>> results. Is this a problem with VTK, CMake, or me? >>> >>> Any help would be greatly appreciated. Thanks! >>> John > > From costabel at wanadoo.fr Wed Jan 26 17:34:58 2005 From: costabel at wanadoo.fr (Martin Costabel) Date: Wed, 26 Jan 2005 23:34:58 +0100 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F8168E.7030604@mcs.anl.gov> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> Message-ID: <41F81B12.2080101@wanadoo.fr> Johnny C. Norris II wrote: > Thanks for the suggestion. I changed the OpenGL settings to: > > OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib > > It didn't help, however. I still get exactly the same errors. What is working for me (and for the Fink vtk-py23 package): OPENGL_gl_LIBRARY:STRING="-lGL" OPENGL_glu_LIBRARY:STRING="-lGLU" OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include This is for the released version 4.4.0, though, not for the latest from CVS. -- Martin From jnorris at mcs.anl.gov Wed Jan 26 17:35:16 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Wed, 26 Jan 2005 16:35:16 -0600 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F81796.4020907@kitware.com> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> <41F81796.4020907@kitware.com> Message-ID: <41F81B24.6020707@mcs.anl.gov> No, I just ran cmake and then make. It seemed to rebuild the vtkRendering lib, and a quick scan of the generated makefiles didn't turn up any "-framework OpenGL" references. I reran everything the way you suggested, but I still get the same undefined reference errors. BTW, I don't have administrative privileges, nor do I have local access to either of these Macs, so I don't think that fink will help me. Thanks, John Mathieu Malaterre wrote: > Johnny, > > Did you do : > > cmake (modify the settings) > make rebuild_cache > make clean (within VTK/Rendering should be enough) > make > > Thanks > Mathieu > > Johnny C. Norris II wrote: > >> Thanks for the suggestion. I changed the OpenGL settings to: >> >> OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib >> OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib >> >> It didn't help, however. I still get exactly the same errors. >> >> I'll take a look at fink. I'm porting an existing application, >> however, and would like to get it to work without a major redesign. >> >> Thanks, >> John >> >> Jens Frederich wrote: >> >>> please use not the opengl framework, but use the opengl lib under >>> /usr/X11R6/lib. The best way for vtk with X11 is, use the fink tree >>> (fink.sf.net) >>> >>> On 26.01.2005, at 22:50, Johnny C. Norris II wrote: >>> >>>> Hi, >>>> >>>> I can't seem to get VTK to work on a Mac using X11. Here are the >>>> highlights: >>>> >>>> Darwin kernel version 7.7.0 >>>> gcc 3.3 (from Apple) >>>> Latest CMake from cvs >>>> Latest VTK from cvs >>>> VTK_USE_CARBON and VTK_USE_COCOA are OFF >>>> VTK_USE_X is ON >>>> OPENGL_gl_LIBRARY:STRING=-framework OpenGL >>>> OPENGL_glu_LIBRARY:STRING=-framework AGL >>>> >>>> The OpenGL settings are what CMake chose. >>>> >>>> I'm trying to display to a PC with Windows 2000 and the X server >>>> that's distributed with cygwin. >>>> >>>> Everything compiles, but when I try to run something >>>> (GraphicsCxxTests, for example), I get a huge number of undefined >>>> references: >>>> dyld: bin/GraphicsCxxTests Undefined symbols: >>>> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glAccum >>>> expected to be defined in OpenGL >>>> /usr/X11R6/lib/libGL.1.dylib undefined reference to _glActiveTexture >>>> expected to be defined in OpenGL >>>> etc etc etc >>>> >>>> I'm not a Mac person, but I've tried this on two different >>>> up-to-date Macs administered by different people, and I've gotten >>>> the same results. Is this a problem with VTK, CMake, or me? >>>> >>>> Any help would be greatly appreciated. Thanks! >>>> John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From arbvtk at yahoo.fr Wed Jan 26 18:13:02 2005 From: arbvtk at yahoo.fr (REGAT-BARREL Aurelien) Date: Thu, 27 Jan 2005 00:13:02 +0100 (CET) Subject: [vtkusers] QT and Vtk 4.5 In-Reply-To: <17A861EA-6FCE-11D9-A233-000A95A0B65C@mac.com> Message-ID: <20050126231302.26913.qmail@web25208.mail.ukl.yahoo.com> Hi, Try this: http://www.matthias-koenig.net/vtkqt/ Jens Frederich wrote: Hi all, I search classes to use vtk with qt toolkit. This classes should run with X11, Windows, Carbon renderer and with the vtk version from cvs. Has anyone a idea? Jens _______________________________________________ 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 Aurelien REGAT-BARREL --------------------------------- D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Cr?ez votre Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnorris at mcs.anl.gov Wed Jan 26 18:19:25 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Wed, 26 Jan 2005 17:19:25 -0600 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F81B12.2080101@wanadoo.fr> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> <41F81B12.2080101@wanadoo.fr> Message-ID: <41F8257D.9080702@mcs.anl.gov> Martin Costabel wrote: > Johnny C. Norris II wrote: > >> Thanks for the suggestion. I changed the OpenGL settings to: >> >> OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib >> OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib >> >> It didn't help, however. I still get exactly the same errors. > > > What is working for me (and for the Fink vtk-py23 package): > > OPENGL_gl_LIBRARY:STRING="-lGL" > OPENGL_glu_LIBRARY:STRING="-lGLU" > OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include > > This is for the released version 4.4.0, though, not for the latest from > CVS. Thanks, but apparently this doesn't work anymore. Building shared library /Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib... /usr/bin/libtool: can't locate file for: -l-lGL /usr/bin/libtool: file: -l-lGL is not an object file (not allowed in a library) make[5]: *** [/Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib] Error 1 I also tried this: OPENGL_gl_LIBRARY:STRING="GL" OPENGL_glu_LIBRARY:STRING="GLU" but got basically the same error as above. I also tried: OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib (notice the STRING instead of FILEPATH) but I still get the unresolved symbols. John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From mathieu.malaterre at kitware.com Wed Jan 26 18:20:14 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Wed, 26 Jan 2005 18:20:14 -0500 Subject: [vtkusers] QT and Vtk 4.5 In-Reply-To: <20050126231302.26913.qmail@web25208.mail.ukl.yahoo.com> References: <20050126231302.26913.qmail@web25208.mail.ukl.yahoo.com> Message-ID: <41F825AE.2050307@kitware.com> And a more general answer is in the Wiki: http://vtk.org/Wiki/VTK_Classes#Qt HTH Mathieu REGAT-BARREL Aurelien wrote: > Hi, > Try this: > http://www.matthias-koenig.net/vtkqt/ > > */Jens Frederich /* wrote: > > Hi all, > > I search classes to use vtk with qt toolkit. This classes should run > with X11, Windows, Carbon renderer and with the vtk version from cvs. > Has anyone a idea? > > Jens > > _______________________________________________ > 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 > > > > Aurelien REGAT-BARREL > > ------------------------------------------------------------------------ > D?couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos > mails ! > Cr?ez votre Yahoo! Mail > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 From tdsternberg at lbl.gov Wed Jan 26 19:12:57 2005 From: tdsternberg at lbl.gov (Theodore Sternberg) Date: Wed, 26 Jan 2005 16:12:57 -0800 (PST) Subject: [vtkusers] vtkClipPolyData with vtkBox as implicit function: doesn't work Message-ID: I'm trying to use vtkClipPolyData with vtkBox to define the implicit function, and nothing gets clipped. If, instead of vtkBox, I use vtkPlane, clipping occurs as expected. Here's a short example: ============================================================= from vtkpython import * import Tkinter import vtkRenderWidget # PolyData points = vtkPoints() points.InsertPoint(0,[0,0,0]) points.InsertPoint(1,[1,0,0]) points.InsertPoint(2,[1,1,0]) points.InsertPoint(3,[0,1,0]) rect = vtkCellArray() rect.InsertNextCell(4) for p in range(0,4): rect.InsertCellPoint(p) poly_data = vtkPolyData() poly_data.SetPolys(rect) poly_data.SetPoints(points) # Implicit function to clip against (doesn't work) implicit_box = vtkBox() implicit_box.SetBounds( 0.4,0.6, 0.1,0.9, 0,0 ) # Plane to clip against (works) clip_plane = vtkPlane() clip_plane.SetOrigin( 0.4,0.9,0 ) clip_plane.SetNormal( 0,1,0 ) # Clipper clipper = vtkClipPolyData() clipper.SetClipFunction( implicit_box ) # doesn't work #clipper.SetClipFunction( clip_plane ) # works! clipper.GenerateClipScalarsOn() clipper.SetInput( poly_data ) clipper.SetValue( 0.0 ) # Boilerplate rendering pipeline stuff mapper = vtkPolyDataMapper() mapper.SetInput( clipper.GetOutput() ) actor = vtkActor() actor.SetMapper( mapper ) renWin = vtkRenderWindow() iren = vtkRenderWindowInteractor() iren.SetRenderWindow( renWin ) ren = vtkRenderer() renWin.AddRenderer( ren ) ren.AddActor( actor ) iren.Initialize() iren.Start() ============================================================= From mballing at andrew.cmu.edu Wed Jan 26 20:26:24 2005 From: mballing at andrew.cmu.edu (Michael R. Ballinger) Date: Wed, 26 Jan 2005 20:26:24 -0500 (EST) Subject: [vtkusers] ImageReader Message-ID: Hi All, I am very new to this and was wondering if somebody could give me some pointers. I have a very large raw file that consists of 810 images 348x410 resolution I know that each pixel is just one byte. I am having trouble figuring out how to read this file into vtk. Could somebody please help me out. I have tried a number of the readers and was wondering if there was one compatible with this type of multi-frame raw file. -thanks for all your help Michael From jiafucang at asisz.com Wed Jan 26 22:21:31 2005 From: jiafucang at asisz.com (jiafucang) Date: Thu, 27 Jan 2005 11:21:31 +0800 Subject: [vtkusers] ImageReader In-Reply-To: References: Message-ID: Hi, Michael, You may want to try vtkImageReader to read the whole image data, for example in Tcl, vtkImageReader reader reader SetDataExtent 0 347 0 409 0 809 reader SetDataSpacing 1.0 1.0 1.0 reader SetFileName "wholeimage.raw" reader SetFileDimensionality 3 reader SetDataScalarTypeToUnsignedChar reader Update HTH, Fucang -----Original Message----- From: "Michael R. Ballinger" To: vtkusers at vtk.org Date: Wed, 26 Jan 2005 20:26:24 -0500 (EST) Subject: [vtkusers] ImageReader > Hi All, > > I am very new to this and was wondering if somebody could give me some > pointers. > > I have a very large raw file that consists of 810 images 348x410 > resolution I know that each pixel is just one byte. I am having > trouble > figuring out how to read this file into vtk. Could somebody please > help > me out. I have tried a number of the readers and was wondering if > there > was one compatible with this type of multi-frame raw file. > > -thanks for all your help > Michael > _______________________________________________ > 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 From steven.robbins at videotron.ca Wed Jan 26 23:34:08 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Wed, 26 Jan 2005 23:34:08 -0500 Subject: [vtkusers] java in vtk 4.4: how? Message-ID: <20050127043408.GE5695@nyongwa.montreal.qc.ca> Hi, I have built VTK 4.2 with java wrappers using the following procedure: 1. unpack the sources, cd into directory 2. run "ccmake ." and turn on hybrid and java wrappers; everything else is left in default state. I did *exactly* the same procedure with the latest 4.4 sources but no jar file was produced. Has something changed in the procedure? Thanks, -Steve From vardhman at gmail.com Thu Jan 27 01:11:22 2005 From: vardhman at gmail.com (Vardhman Jain) Date: Thu, 27 Jan 2005 11:41:22 +0530 Subject: [vtkusers] Applying same transfomation to multiple object In-Reply-To: <20050127043408.GE5695@nyongwa.montreal.qc.ca> References: <20050127043408.GE5695@nyongwa.montreal.qc.ca> Message-ID: Hi, Consider a scene in which there is a table and its legs, I have rendered table using, say Disc and legs using cylinder, now how do I make a transformation to both of them simultaneously. Does vtkCollection help in achieving this? In open GL there is this Push and Pop Matrix fundamental, anything similar to VTK ? Any code example/snip would be very helpful. -- Get Firefox! From Jon.H.Kaspersen at sintef.no Thu Jan 27 01:40:08 2005 From: Jon.H.Kaspersen at sintef.no (Jon H Kaspersen) Date: Thu, 27 Jan 2005 07:40:08 +0100 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <41F8257D.9080702@mcs.anl.gov> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> <41F81B12.2080101@wanadoo.fr> <41F8257D.9080702@mcs.anl.gov> Message-ID: <4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> Hi Johnny, I have a nightly build of VTK+X11 on Mac OS X set up. You can find yesterdays results here http://www.vtk.org/Testing/Dashboard/20050126-0300-Nightly/ Dashboard.html The site name is G4_Cube_X11_SINTEF As you can see around 20 tests fails. You'll find the build details by looking at the CMakeCache.txt file Are you trying to forward a X display from this Mac ? You might have to check that Xforwarding is ON. Look at http://developer.apple.com/qa/qa2001/qa1232.html Regards Jon On Jan 27, 2005, at 12:19 AM, Johnny C. Norris II wrote: > Martin Costabel wrote: >> Johnny C. Norris II wrote: >>> Thanks for the suggestion. I changed the OpenGL settings to: >>> >>> OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib >>> OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib >>> >>> It didn't help, however. I still get exactly the same errors. >> What is working for me (and for the Fink vtk-py23 package): >> OPENGL_gl_LIBRARY:STRING="-lGL" >> OPENGL_glu_LIBRARY:STRING="-lGLU" >> OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include >> This is for the released version 4.4.0, though, not for the latest >> from CVS. > > Thanks, but apparently this doesn't work anymore. > > Building shared library > /Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib... > /usr/bin/libtool: can't locate file for: -l-lGL > /usr/bin/libtool: file: -l-lGL is not an object file (not allowed in a > library) > make[5]: *** > [/Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib] > Error 1 > > I also tried this: > OPENGL_gl_LIBRARY:STRING="GL" > OPENGL_glu_LIBRARY:STRING="GLU" > but got basically the same error as above. > > I also tried: > OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib > (notice the STRING instead of FILEPATH) but I still get the unresolved > symbols. > > John > -- > John Norris > Research Programmer > Center for Simulation of Advanced Rockets > http://www.uiuc.edu/ph/www/jnorris > _______________________________________________ > 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 > > ======================================================== Jon Harald Kaspersen Mob: +47 93 03 65 90 Ph.D. Mechanical Engineering Senior Scientist SINTEF Helse N-7465 Trondheim NORWAY e-mail: Jon.H.Kaspersen at sintef.no WEB: http://www.sintef.no/medtek ======================================================== -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2724 bytes Desc: not available URL: From tohdj at bii.a-star.edu.sg Thu Jan 27 02:24:17 2005 From: tohdj at bii.a-star.edu.sg (Toh Da Jun) Date: Thu, 27 Jan 2005 15:24:17 +0800 Subject: [vtkusers] Creating a new vtk project in linux In-Reply-To: <4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> <41F81B12.2080101@wanadoo.fr> <41F8257D.9080702@mcs.anl.gov> <4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> Message-ID: <1106810656.11232.6.camel@localhost.localdomain> Hi... I'm creating a new project in linux...so I did the following... 1. create a directory "/home/usr/VTKBin/" 2. installed VTK in "/home/usr/VTK/" 3. copied all files in "/home/usr/VTK/Wrapping/Java" to a new directory "/home/usr/VTKBin/NewProject". 4. Change the directories in CMakeLists.txt and CMakeCache.txt 5. ccmake . 6. make the output is as follows... $ make Building dependencies. cmake.depends... cmake.depends is up-to-date $ And nothing was compiled. The Makefile was not updated. cmake.check_depends is smaller than usual. So I tried copying this directory to "/home/usr/VTK/Wrapping/NewProject/"...and did the same steps. Everything works. Any idea how to solve this? toh da jun From agalmat at hotmail.com Thu Jan 27 03:54:31 2005 From: agalmat at hotmail.com (Alejandro Galindo Mateo) Date: Thu, 27 Jan 2005 09:54:31 +0100 Subject: [vtkusers] Image Orientation In-Reply-To: Message-ID: Hello, I'm a beginner in VTK, I need some help. I have to read a lot of images from a large file, but the problem is that each image has a different orientation in the 3D space. I would like to know if it?s possible to put the images all together in a vtkStructuredGrid with different orientations or some thing like that.Other problem is that some images cut anothers so there?re points in the space with different values, I think it will be neccessary some kind of interpolation but I don?t know if there is a class that makes something like that. Thanks From pbernardes at uaum.uminho.pt Thu Jan 27 05:58:26 2005 From: pbernardes at uaum.uminho.pt (=?iso-8859-1?Q?Paulo_Jos=E9_Correia_Bernardes?=) Date: Thu, 27 Jan 2005 10:58:26 -0000 Subject: [vtkusers] Import VRML Message-ID: <000001c5045f$210028f0$b974a8c0@ua.uminho.pt> Dear VTK-users, I?m developing an application for visualizing archaeological data. Currently I?m importing already existing VRML-scenes of archaeological excavations and this is no problem. But now I need to separate the different objects of the scene in order to interact with each of them separately (to alter the color or transparency, etc.). Can someone give me some advice? Thank you very much! Best regards, Paulo -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpbotha at gmail.com Thu Jan 27 05:56:00 2005 From: cpbotha at gmail.com (Charl P. Botha) Date: Thu, 27 Jan 2005 11:56:00 +0100 Subject: [vtkusers] how to view vtkpolydata in FLTK windows? In-Reply-To: <4AF1FA9AE80CC442B32A2BA6173C5360B81370@icex32.ic.ac.uk> References: <4AF1FA9AE80CC442B32A2BA6173C5360B81370@icex32.ic.ac.uk> Message-ID: <8e138ee4050127025678b43b4c@mail.gmail.com> On Wed, 26 Jan 2005 19:07:54 -0000, Yang, Yuhui wrote: > Hi, I am trying to build an interface using FLTK, and I want to view > vtkpolydata in the interface. > I need to use the Fl_Value_Slider to change the data so that the vtk data > can be changed, how to connect the slider and the vtk pineline? I want to > view the changes. There are quite a few C++ classes enabling you to do this... two which come up quite often are: http://vtkfltk.sourceforge.net/ by Sean McInerney (also on this list) and http://cpbotha.net/vtkFlRenderWindowInteractor.html by me Download both, read the documentation, play with the examples. Good luck, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From patalog at mail.ru Thu Jan 27 07:54:11 2005 From: patalog at mail.ru (patalog) Date: Thu, 27 Jan 2005 18:54:11 +0600 Subject: [vtkusers] freeze one renderer in render window Message-ID: <1753713267.20050127185411@mail.ru> Hello vtkusers, I have to renderers in window with 2 layers. Main renderer at layer 1, and additional at layer 0. In main renderer I have several actors (simple data sets) which I need to update frequently. I do this in work thread (invalidate main window, which call vtkRenderWindow::Render in WM_PAINT message handler). But in additional render I have complex immutable data and rendering of them consumed much time. Can I do "freeze" second renderer so, that it not changes during vtkRenderWindow::Render but its previous result (when I've updtated additional renderer "manulally") not erased? I try use BackingStoreOn, but without result. Also, I try such "hack" - set SetLayer on additional renderer to invalid number (> NumberOfLayers of render window) and when I need this I set layer number to 0 again. In this way vtkRenderer::Render not called from vtkRendererCollection::Render, but this caused error message "Invalid layer for renderer: not rendered." and the result of previous redering erased by main renderer. I can't set main renderer layer to 0 because I need the additional renderer to be transparent. Any ideas? PS VTK 4.4.0 VC 7.1 Win XP Pro SP2 -- Best regards, patalog mailto:patalog at mail.ru From steven.robbins at videotron.ca Thu Jan 27 09:16:20 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Thu, 27 Jan 2005 09:16:20 -0500 Subject: [vtkusers] java in vtk 4.4: how? In-Reply-To: <20050127043408.GE5695@nyongwa.montreal.qc.ca> References: <20050127043408.GE5695@nyongwa.montreal.qc.ca> Message-ID: <20050127141620.GD27916@nyongwa.montreal.qc.ca> On Wed, Jan 26, 2005 at 11:34:08PM -0500, Steve M. Robbins wrote: > Hi, > > I have built VTK 4.2 with java wrappers using the following procedure: > > 1. unpack the sources, cd into directory > 2. run "ccmake ." and turn on hybrid and java wrappers; everything else > is left in default state. > > I did *exactly* the same procedure with the latest 4.4 sources but no > jar file was produced. Has something changed in the procedure? I diffed Wrapping/Java/CMakeLists.txt between the two versions and several things have changed. One change that jumps out, however, is that the newer file is wrapped in IF (BOGO) / ENDIF (BOGO) which is nowhere defined. The resulting Wrapping/Java/Makefile -- not suprisingly -- has an empty TARGETS variable. The 4.2 version had a bunch of targets such as VTKJava, VTKJavaCommon, etc. What's going on? I'm using CMake 2.0 - patch 3. Is that not new enough? I'll try the latest ... -Steve From soy at elgilbert.net Thu Jan 27 10:51:09 2005 From: soy at elgilbert.net (Alberto Fernandez) Date: Thu, 27 Jan 2005 16:51:09 +0100 Subject: [vtkusers] Create a volume from Visible Human male frozen CT Message-ID: <41F90DED.1080302@elgilbert.net> Hello, I am trying to read data from Visible Human male frozen CT (c_vmXXXX.fro.Z) to create a volume but I don't get it. I know that the data are compressed and all the theirs characteristics (Dimension(512x512), Pixel size (0.5,0.5), etc ... ). I am trying it with vtkGESignaReader, but i don?t know if I lack some parameter. I am working on windows 2000, jdk 1.4 and vtk 4.2, this is the code portion. vtkGESignaReader gSE = new vtkGESignaReader(); gSE.SetFileName("/c_vm1006.fro.Z"); gSE.SetHeaderSize(3416); gSE.SetDataSpacing(0.5,0.5 ,1); gSE.SetDataScalarTypeToUnsignedShort(); gSE.SetDataByteOrderToLittleEndian(); //gSE.SwapBytesOn(); vtkActor actorN = new vtkActor(); vtkDataSetMapper mapper = new vtkDataSetMapper(); mapper.SetInput(gSE.GetOutput()); actorN.SetMapper(mapper); vtkProperty actorProperty = new vtkProperty(); actorN.SetProperty(actorProperty); m_renPanel.setActor(actorN); Please, someone could help telling me that I don't have correct or that I lack. Thank you in advance. Alberto. ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From peter.welsh at vips.co.uk Thu Jan 27 11:11:59 2005 From: peter.welsh at vips.co.uk (Peter Welsh) Date: Thu, 27 Jan 2005 16:11:59 -0000 Subject: [vtkusers] CoarsenCells SplitCells EmbedCells Message-ID: I am trying to update out software (currently VTK version 2.3) to version 4.2. I have noticed a number of methods no longer exist, including: CoarsenCells SplitCells EmbedCells Does VTK still support these methods, if yes what are they now called? From jnorris at mcs.anl.gov Thu Jan 27 11:13:51 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Thu, 27 Jan 2005 10:13:51 -0600 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov> <41F81B12.2080101@wanadoo.fr> <41F8257D.9080702@mcs.anl.gov> <4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> Message-ID: <41F9133F.8020905@mcs.anl.gov> Thanks, I looked at the configuration, but the only difference from what I tried before was that OSMesa was turned on. I tried again anyway, and I still get the undefined references. :-( X forwarding is on. I can pop up xterms, etc. I've read that you can't run an OpenGL program on a Mac and have it display on another computer unless you're logged into the Mac's console. Someone please tell me this isn't true. Thanks, John Jon H Kaspersen wrote: > Hi Johnny, > > I have a nightly build of VTK+X11 on Mac OS X set up. You can find > yesterdays results here > http://www.vtk.org/Testing/Dashboard/20050126-0300-Nightly/Dashboard.html > The site name is G4_Cube_X11_SINTEF > As you can see around 20 tests fails. > You'll find the build details by looking at the > CMakeCache.txt file > > Are you trying to forward a X display from this > Mac ? > You might have to check that Xforwarding is ON. > Look at http://developer.apple.com/qa/qa2001/qa1232.html > > Regards > Jon > > On Jan 27, 2005, at 12:19 AM, Johnny C. Norris II wrote: > > Martin Costabel wrote: > > Johnny C. Norris II wrote: > > Thanks for the suggestion. I changed the OpenGL settings to: > > OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib > > It didn't help, however. I still get exactly the same errors. > > What is working for me (and for the Fink vtk-py23 package): > OPENGL_gl_LIBRARY:STRING="-lGL" > OPENGL_glu_LIBRARY:STRING="-lGLU" > OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include > This is for the released version 4.4.0, though, not for the > latest from CVS. > > > Thanks, but apparently this doesn't work anymore. > > Building shared library > /Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib... > /usr/bin/libtool: can't locate file for: -l-lGL > /usr/bin/libtool: file: -l-lGL is not an object file (not allowed in > a library) > make[5]: *** > [/Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib] > Error 1 > > I also tried this: > OPENGL_gl_LIBRARY:STRING="GL" > OPENGL_glu_LIBRARY:STRING="GLU" > but got basically the same error as above. > > I also tried: > OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib > (notice the STRING instead of FILEPATH) but I still get the > unresolved symbols. > > John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From Patrick.Brockmann at cea.fr Thu Jan 27 11:17:41 2005 From: Patrick.Brockmann at cea.fr (Patrick Brockmann) Date: Thu, 27 Jan 2005 17:17:41 +0100 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events Message-ID: <41F91425.4050000@cea.fr> Hi all, I have already posted this mail but received no answer. As I can see some traffic about Qt and VTK, I resent this related question. ------------------------------------------------------------------------- I have noticed that with the QVTKRenderWindowInteractor class from the VTK at the interim release 4-4, 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 From nacho at lncc.br Thu Jan 27 12:24:47 2005 From: nacho at lncc.br (Nacho Larrabide) Date: Thu, 27 Jan 2005 14:24:47 -0300 Subject: [vtkusers] vtk-itk linking conflicts In-Reply-To: <20050127064021.6E2F334973@public.kitware.com> References: <20050127064021.6E2F334973@public.kitware.com> Message-ID: <1932451764.20050127142447@lncc.br> Hi vtk-itk users, I'm trying to compile the latest version of Vtk and Itk but I have a linking error with repeated libraries. Please help. The errors that I get are: itkpng.lib(png.obj) : error LNK2005: _png_pass_dsp_mask already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pass_mask already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pass_yinc already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pass_ystart already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pass_inc already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pass_start already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_zTXt already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_tRNS already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_tIME already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_tEXt already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_sRGB already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_sPLT already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_sBIT already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pHYs already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_sCAL already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_pCAL already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_oFFs already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_iTXt already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_iCCP already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_hIST already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_gAMA already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_cHRM already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_bKGD already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_PLTE already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_IEND already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_IDAT already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_IHDR already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_sig already defined in vtkpng.lib(png.obj) itkpng.lib(png.obj) : error LNK2005: _png_libpng_ver already defined in vtkpng.lib(png.obj) itktiff.lib(tif_win32.obj) : error LNK2005: ___TIFFmalloc already defined in vtktiff.lib(tif_win32.obj) itktiff.lib(tif_win32.obj) : error LNK2005: ___TIFFfree already defined in vtktiff.lib(tif_win32.obj) itktiff.lib(tif_win32.obj) : error LNK2005: __TIFFerrorHandler already defined in vtktiff.lib(tif_win32.obj) itktiff.lib(tif_win32.obj) : error LNK2005: __TIFFwarningHandler already defined in vtktiff.lib(tif_win32.obj) itktiff.lib(tif_dirinfo.obj) : error LNK2005: _tiffDataWidth already defined in vtktiff.lib(tif_dirinfo.obj) itkzlib.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in vtkzlib.lib(zutil.obj) itkzlib.lib(inftrees.obj) : error LNK2005: _inflate_copyright already defined in vtkzlib.lib(inftrees.obj) itkzlib.lib(infutil.obj) : error LNK2005: _inflate_mask already defined in vtkzlib.lib(infutil.obj) itkjpeg.lib(jerror.obj) : error LNK2005: _jpeg_std_message_table already defined in vtkjpeg.lib(jerror.obj) itkjpeg.lib(jutils.obj) : error LNK2005: _jpeg_natural_order already defined in vtkjpeg.lib(jutils.obj) vtkzlib.lib(deflate.obj) : error LNK2005: _deflate_copyright already defined in itkzlib.lib(deflate.obj) vtkzlib.lib(trees.obj) : error LNK2005: __length_code already defined in itkzlib.lib(trees.obj) vtkzlib.lib(trees.obj) : error LNK2005: __dist_code already defined in itkzlib.lib(trees.obj) itkpng.lib(png.obj) : warning LNK4006: _png_pass_dsp_mask already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pass_mask already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pass_yinc already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pass_ystart already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pass_inc already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pass_start already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_zTXt already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_tRNS already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_tIME already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_tEXt already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_sRGB already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_sPLT already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_sBIT already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pHYs already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_sCAL already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_pCAL already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_oFFs already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_iTXt already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_iCCP already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_hIST already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_gAMA already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_cHRM already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_bKGD already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_PLTE already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_IEND already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_IDAT already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_IHDR already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_sig already defined in vtkpng.lib(png.obj); second definition ignored itkpng.lib(png.obj) : warning LNK4006: _png_libpng_ver already defined in vtkpng.lib(png.obj); second definition ignored itktiff.lib(tif_win32.obj) : warning LNK4006: ___TIFFmalloc already defined in vtktiff.lib(tif_win32.obj); second definition ignored itktiff.lib(tif_win32.obj) : warning LNK4006: ___TIFFfree already defined in vtktiff.lib(tif_win32.obj); second definition ignored itktiff.lib(tif_win32.obj) : warning LNK4006: __TIFFerrorHandler already defined in vtktiff.lib(tif_win32.obj); second definition ignored itktiff.lib(tif_win32.obj) : warning LNK4006: __TIFFwarningHandler already defined in vtktiff.lib(tif_win32.obj); second definition ignored itktiff.lib(tif_dirinfo.obj) : warning LNK4006: _tiffDataWidth already defined in vtktiff.lib(tif_dirinfo.obj); second definition ignored itkzlib.lib(zutil.obj) : warning LNK4006: _z_errmsg already defined in vtkzlib.lib(zutil.obj); second definition ignored itkzlib.lib(inftrees.obj) : warning LNK4006: _inflate_copyright already defined in vtkzlib.lib(inftrees.obj); second definition ignored itkzlib.lib(infutil.obj) : warning LNK4006: _inflate_mask already defined in vtkzlib.lib(infutil.obj); second definition ignored itkjpeg.lib(jerror.obj) : warning LNK4006: _jpeg_std_message_table already defined in vtkjpeg.lib(jerror.obj); second definition ignored itkjpeg.lib(jutils.obj) : warning LNK4006: _jpeg_natural_order already defined in vtkjpeg.lib(jutils.obj); second definition ignored vtkzlib.lib(deflate.obj) : warning LNK4006: _deflate_copyright already defined in itkzlib.lib(deflate.obj); second definition ignored vtkzlib.lib(trees.obj) : warning LNK4006: __length_code already defined in itkzlib.lib(trees.obj); second definition ignored vtkzlib.lib(trees.obj) : warning LNK4006: __dist_code already defined in itkzlib.lib(trees.obj); second definition ignored Regards, Nacho ----------------------------------------------------- Nacho Larrabide Rua Getulio Vargas 333 - Quitandinha - CEP: 25651-070 Petropolis - RJ - Brasil Tel: +54 24 2233-6137 - Fax: +54 24 2233-6167 mailto:nacho at lncc.br ----------------------------------------------------- From brad.king at kitware.com Thu Jan 27 11:32:48 2005 From: brad.king at kitware.com (Brad King) Date: Thu, 27 Jan 2005 11:32:48 -0500 Subject: [vtkusers] vtk-itk linking conflicts In-Reply-To: <1932451764.20050127142447@lncc.br> References: <20050127064021.6E2F334973@public.kitware.com> <1932451764.20050127142447@lncc.br> Message-ID: <41F917B0.30901@kitware.com> Nacho Larrabide wrote: > I'm trying to compile the latest version of Vtk and Itk but I have > a linking error with repeated libraries. Latest release or latest CVS versions? Please specify the release version number or the approximate data of CVS checkout. > itkpng.lib(png.obj) : error LNK2005: _png_pass_dsp_mask already defined in vtkpng.lib(png.obj) This is a known problem and has been fixed in the CVS versions of both. A solution for the versions you have is to turn on VTK_USE_SYSTEM_PNG and VTK_USE_SYSTEM_TIFF. Then point the CMake variables that ask for the include path and libraries for png and tiff at the ITK versions. -Brad From lucapl at rc.unesp.br Thu Jan 27 11:56:56 2005 From: lucapl at rc.unesp.br (Luca Pallozzi Lavorante) Date: Thu, 27 Jan 2005 14:56:56 -0200 Subject: [vtkusers] CoarsenCells SplitCells EmbedCells In-Reply-To: References: Message-ID: <41F91D58.4050203@rc.unesp.br> Peter, if you need more infos about the migration between different versions of VTK, have a look at the FAQ: http://www.vtk.org/Wiki/VTK_FAQ []?s Luca Peter Welsh wrote: >I am trying to update out software (currently VTK version 2.3) to version >4.2. > >I have noticed a number of methods no longer exist, including: > >CoarsenCells >SplitCells >EmbedCells > >Does VTK still support these methods, if yes what are they now called? > > >_______________________________________________ >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 > > > From nacho at lncc.br Thu Jan 27 13:30:31 2005 From: nacho at lncc.br (Nacho Larrabide) Date: Thu, 27 Jan 2005 15:30:31 -0300 Subject: [vtkusers] vtk-itk linking conflicts Message-ID: <1099841566.20050127153031@lncc.br> Hi Brad, Thanks for the quick response, I've been trying to do what you are suggesting but I didn't have any luck. It's always something missing. But at least I'm on the right path... :D. I'll try to get the latest CVS version and do what you suggest. Please send any new suggestion that comes to your mind. ThanX, BK> Nacho Larrabide wrote: >> I'm trying to compile the latest version of Vtk and Itk but I have >> a linking error with repeated libraries. BK> Latest release or latest CVS versions? Please specify the release BK> version number or the approximate data of CVS checkout. >> itkpng.lib(png.obj) : error LNK2005: _png_pass_dsp_mask already defined in vtkpng.lib(png.obj) BK> This is a known problem and has been fixed in the CVS versions of both. BK> A solution for the versions you have is to turn on VTK_USE_SYSTEM_PNG BK> and VTK_USE_SYSTEM_TIFF. Then point the CMake variables that ask for BK> the include path and libraries for png and tiff at the ITK versions. BK> -Brad Regards, Nacho ----------------------------------------------------- Nacho Larrabide Rua Getulio Vargas 333 - Quitandinha - CEP: 25651-070 Petropolis - RJ - Brasil Tel: +54 24 2233-6137 - Fax: +54 24 2233-6167 mailto:nacho at lncc.br ----------------------------------------------------- From soy at elgilbert.net Thu Jan 27 12:32:34 2005 From: soy at elgilbert.net (Negro) Date: Thu, 27 Jan 2005 18:32:34 +0100 Subject: [vtkusers] Create a volume from Visible Human male frozen CT Message-ID: <41F925B2.9070202@elgilbert.net> Hello vtk users, I am trying to read data from Visible Human male frozen CT (c_vmXXXX.fro.Z) to create a volume but I don't get it. I know that the data are compressed and all the theirs characteristics (Dimension(512x512), Pixel size (0.5,0.5), etc ... ). I am trying it with vtkGESignaReader, but i don?t know if I lack some parameter. I am working on windows 2000, jdk 1.4 and vtk 4.2, this is the code portion. vtkGESignaReader gSE = new vtkGESignaReader(); gSE.SetFileName("/c_vm1006.fro.Z"); gSE.SetHeaderSize(3416); gSE.SetDataSpacing(0.5,0.5 ,1); gSE.SetDataScalarTypeToUnsignedShort(); gSE.SetDataByteOrderToLittleEndian(); //gSE.SwapBytesOn(); vtkActor actorN = new vtkActor(); vtkDataSetMapper mapper = new vtkDataSetMapper(); mapper.SetInput(gSE.GetOutput()); actorN.SetMapper(mapper); vtkProperty actorProperty = new vtkProperty(); actorN.SetProperty(actorProperty); m_renPanel.setActor(actorN); Please, someone could help telling me that I don't have correct or that I lack. Thank you in advance. Alberto. From peter.welsh at vips.co.uk Thu Jan 27 12:34:38 2005 From: peter.welsh at vips.co.uk (Peter Welsh) Date: Thu, 27 Jan 2005 17:34:38 -0000 Subject: [vtkusers] CoarsenCells SplitCells EmbedCells Message-ID: Thanks for the reply. I believe that these methods disapeared between versions 2.3 and 3.2, and there is no information about the changes between these version within the FAQ: http://www.vtk.org/Wiki/VTK_FAQ Peter From steven.robbins at videotron.ca Thu Jan 27 12:36:59 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Thu, 27 Jan 2005 12:36:59 -0500 Subject: [vtkusers] java in vtk 4.4: how? In-Reply-To: <20050127141620.GD27916@nyongwa.montreal.qc.ca> References: <20050127043408.GE5695@nyongwa.montreal.qc.ca> <20050127141620.GD27916@nyongwa.montreal.qc.ca> Message-ID: <20050127173659.GH27916@nyongwa.montreal.qc.ca> On Thu, Jan 27, 2005 at 09:16:20AM -0500, Steve M. Robbins wrote: > On Wed, Jan 26, 2005 at 11:34:08PM -0500, Steve M. Robbins wrote: > > Hi, > > > > I have built VTK 4.2 with java wrappers using the following procedure: > > > > 1. unpack the sources, cd into directory > > 2. run "ccmake ." and turn on hybrid and java wrappers; everything else > > is left in default state. > > > > I did *exactly* the same procedure with the latest 4.4 sources but no > > jar file was produced. Has something changed in the procedure? > > I diffed Wrapping/Java/CMakeLists.txt between the two versions and > several things have changed. One change that jumps out, however, > is that the newer file is wrapped in > > IF (BOGO) / ENDIF (BOGO) > > which is nowhere defined. The resulting Wrapping/Java/Makefile -- not suprisingly -- > has an empty TARGETS variable. The 4.2 version had a bunch of targets such as > VTKJava, VTKJavaCommon, etc. > > What's going on? > > I'm using CMake 2.0 - patch 3. Is that not new enough? I'll try the latest ... I tried 2.0.5 with the same result. Isn't anyone using java with VTK 4.4? -Steve From randall.hand at gmail.com Thu Jan 27 12:39:53 2005 From: randall.hand at gmail.com (Randall Hand) Date: Thu, 27 Jan 2005 11:39:53 -0600 Subject: [vtkusers] VTK DataSet's & Vector Fields Message-ID: I have a set of VTK Datafiles (Rectilinear Grid) that contain 1 scalar & 1 vector value. I can load this dataset in Paraview 1.8 (using VTk 4.5.0) just fine, but attempting to load this manually in VTK 4.4 only shows a single Scalar Field (GetNumberOfVectorsInFile returns 0). Now, if I save the VTK file again in paraview, then I can load it back up in my vtk program and it shows the vector field. What changed between VTK 4.4 & 4.5 in regards to the VTK file format? I don't see anything in CVS. -- Randall Hand http://www.yeraze.com From e.d.lorimer at sms.ed.ac.uk Thu Jan 27 14:12:48 2005 From: e.d.lorimer at sms.ed.ac.uk (Eli Dylan Lorimer) Date: Thu, 27 Jan 2005 19:12:48 +0000 Subject: [vtkusers] JNLP with VTK...?? Message-ID: <6F127F45-7097-11D9-AB91-000D93B0BBEC@sms.ed.ac.uk> Hi, Perhaps this is more of a JNLP but I was hoping someone here has successfully implemented a JNLP program with vtk using java web start? I'm new to JNLP and am unsure if the vtk jar can be delivered in the jnlp package? Cheers, ./dylan From jnorris at mcs.anl.gov Thu Jan 27 14:14:54 2005 From: jnorris at mcs.anl.gov (Johnny C. Norris II) Date: Thu, 27 Jan 2005 13:14:54 -0600 Subject: [vtkusers] VTK, MacOS and X11 In-Reply-To: <778A8A34-7091-11D9-8C69-000A95DBC4D8@mac.com> References: <41F8108F.3040004@mcs.anl.gov> <41F8168E.7030604@mcs.anl.gov><41F81B12.2080101@wanadoo.fr> <41F8257D.9080702@mcs.anl.gov><4911A44D-702E-11D9-8C69-000A95DBC4D8@sintef.no> <41F9133F.8020905@mcs.anl.gov> <778A8A34-7091-11D9-8C69-000A95DBC4D8@mac.com> Message-ID: <41F93DAE.9030806@mcs.anl.gov> Jon, Yes, non-OpenGL X stuff works. The good news is that I've finally fixed the problem. It appears to be as much of a MacOS oddity than a VTK/CMake issue. Here are the relevant CMakeCache.txt settings: VTK_USE_CARBON:BOOL=OFF VTK_USE_COCOA:BOOL=OFF OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib;-framework OpenGL OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib;-framework AGL OPENGL_xmesa_INCLUDE_DIR:PATH=OPENGL_xmesa_INCLUDE_DIR-NOTFOUND OSMESA_INCLUDE_DIR:PATH=/usr/X11R6/include OSMESA_LIBRARY:FILEPATH=/usr/X11R6/lib/libOSMesa.dylib VTK_USE_X:BOOL=ON I could not get it to work without specifying both libGL.dylib and -framework OpenGL. Finally, the DYLD_LIBRARY_PATH environment variable must NOT have /usr/X11R6/lib in it. It apparently shouldn't have any system library directory in it at all. dyld is finicky about the order in which it loads things, and putting a system lib dir in this variable may cause it to load a system lib too soon. Thanks for all the help! John Jon Harald Kaspersen wrote: > Hi again John, > > Are you able to for example pop up xlogo or xclock ? > > Have you tried a complete rebuild of VTK with X11 ? > Make sure that : > OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib > OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib > > Regards > Jon > On Jan 27, 2005, at 5:13 PM, Johnny C. Norris II wrote: > >> Thanks, I looked at the configuration, but the only difference from >> what I tried before was that OSMesa was turned on. I tried again >> anyway, and I still get the undefined references. :-( >> >> X forwarding is on. I can pop up xterms, etc. >> >> I've read that you can't run an OpenGL program on a Mac and have it >> display on another computer unless you're logged into the Mac's >> console. Someone please tell me this isn't true. >> >> Thanks, >> John >> >> Jon H Kaspersen wrote: >> >>> Hi Johnny, >>> I have a nightly build of VTK+X11 on Mac OS X set up. You can find >>> yesterdays results here >>> http://www.vtk.org/Testing/Dashboard/20050126-0300-Nightly/ >>> Dashboard.html >>> The site name is G4_Cube_X11_SINTEF >>> As you can see around 20 tests fails. >>> You'll find the build details by looking at the >>> CMakeCache.txt file >>> Are you trying to forward a X display from this >>> Mac ? >>> You might have to check that Xforwarding is ON. >>> Look at http://developer.apple.com/qa/qa2001/qa1232.html >>> Regards >>> Jon >>> On Jan 27, 2005, at 12:19 AM, Johnny C. Norris II wrote: >>> Martin Costabel wrote: >>> Johnny C. Norris II wrote: >>> Thanks for the suggestion. I changed the OpenGL settings >>> to: >>> OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib >>> OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib >>> It didn't help, however. I still get exactly the same >>> errors. >>> What is working for me (and for the Fink vtk-py23 package): >>> OPENGL_gl_LIBRARY:STRING="-lGL" >>> OPENGL_glu_LIBRARY:STRING="-lGLU" >>> OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include >>> This is for the released version 4.4.0, though, not for the >>> latest from CVS. >>> Thanks, but apparently this doesn't work anymore. >>> Building shared library >>> >>> /Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib... >>> /usr/bin/libtool: can't locate file for: -l-lGL >>> /usr/bin/libtool: file: -l-lGL is not an object file (not >>> allowed in >>> a library) >>> make[5]: *** >>> >>> [/Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib] >>> Error 1 >>> I also tried this: >>> OPENGL_gl_LIBRARY:STRING="GL" >>> OPENGL_glu_LIBRARY:STRING="GLU" >>> but got basically the same error as above. >>> I also tried: >>> OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib >>> OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib >>> (notice the STRING instead of FILEPATH) but I still get the >>> unresolved symbols. >>> John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From Jon.H.Kaspersen at sintef.no Thu Jan 27 15:33:17 2005 From: Jon.H.Kaspersen at sintef.no (Jon H Kaspersen) Date: Thu, 27 Jan 2005 21:33:17 +0100 Subject: [vtkusers] VTK, MacOS and X11 Message-ID: Hi again John, Are you able to for example pop up xlogo or xclock ? Have you tried a complete rebuild of VTK with X11 ? Make sure that : OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib Regards Jon On Jan 27, 2005, at 5:13 PM, Johnny C. Norris II wrote: > Thanks, I looked at the configuration, but the only difference from > what I tried before was that OSMesa was turned on. I tried again > anyway, and I still get the undefined references. :-( > > X forwarding is on. I can pop up xterms, etc. > > I've read that you can't run an OpenGL program on a Mac and have it > display on another computer unless you're logged into the Mac's > console. Someone please tell me this isn't true. > > Thanks, > John > > Jon H Kaspersen wrote: >> Hi Johnny, >> I have a nightly build of VTK+X11 on Mac OS X set up. You can find >> yesterdays results here >> http://www.vtk.org/Testing/Dashboard/20050126-0300-Nightly/ >> Dashboard.html >> The site name is G4_Cube_X11_SINTEF >> As you can see around 20 tests fails. >> You'll find the build details by looking at the >> CMakeCache.txt file >> Are you trying to forward a X display from this >> Mac ? >> You might have to check that Xforwarding is ON. >> Look at http://developer.apple.com/qa/qa2001/qa1232.html >> Regards >> Jon >> On Jan 27, 2005, at 12:19 AM, Johnny C. Norris II wrote: >> Martin Costabel wrote: >> Johnny C. Norris II wrote: >> Thanks for the suggestion. I changed the OpenGL settings >> to: >> OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.dylib >> OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.dylib >> It didn't help, however. I still get exactly the same >> errors. >> What is working for me (and for the Fink vtk-py23 package): >> OPENGL_gl_LIBRARY:STRING="-lGL" >> OPENGL_glu_LIBRARY:STRING="-lGLU" >> OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/X11R6/include >> This is for the released version 4.4.0, though, not for the >> latest from CVS. >> Thanks, but apparently this doesn't work anymore. >> Building shared library >> >> /Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib... >> /usr/bin/libtool: can't locate file for: -l-lGL >> /usr/bin/libtool: file: -l-lGL is not an object file (not allowed >> in >> a library) >> make[5]: *** >> >> [/Volumes/UberRaid/homes/jnorris/DEBUG/obj/VTK/bin/libvtkftgl.dylib] >> Error 1 >> I also tried this: >> OPENGL_gl_LIBRARY:STRING="GL" >> OPENGL_glu_LIBRARY:STRING="GLU" >> but got basically the same error as above. >> I also tried: >> OPENGL_gl_LIBRARY:STRING=/usr/X11R6/lib/libGL.dylib >> OPENGL_glu_LIBRARY:STRING=/usr/X11R6/lib/libGLU.dylib >> (notice the STRING instead of FILEPATH) but I still get the >> unresolved symbols. >> John > > -- > John Norris > Research Programmer > Center for Simulation of Advanced Rockets > http://www.uiuc.edu/ph/www/jnorris > _______________________________________________ > 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 > > ======================================================== Jon Harald Kaspersen Mob: +47 93 03 65 90 Ph.D. Mechanical Engineering Senior Scientist SINTEF Helse N-7465 Trondheim NORWAY e-mail: Jon.H.Kaspersen at sintef.no WEB: http://www.sintef.no/medtek ======================================================== From tdsternberg at lbl.gov Thu Jan 27 15:50:03 2005 From: tdsternberg at lbl.gov (Theodore Sternberg) Date: Thu, 27 Jan 2005 12:50:03 -0800 (PST) Subject: [vtkusers] Re: vtkClipPolyData with vtkBox as implicit function: doesn't work In-Reply-To: Message-ID: OK, now it works better but still not quite as required. The clipped region has rounded corners. The degree of rounding seems to depend on the resolution of the polydata, which is understandable, but it seems that if that's the way it works, there should be some "quanta" where the clipping would be exact. ----------------------------------------------------------------------------------- from vtkpython import * # PolyData to clip: plane = vtkPlaneSource() plane.SetOrigin(0,0,0) plane.SetPoint1(1,0,0) plane.SetPoint2(0,1,0) plane.SetResolution(9,9) # Implicit function to clip against implicit_box = vtkBox() implicit_box.SetBounds( 1.0/9,8.0/9, 1.0/9,8.0/9, -3,3 ) # rounded corners!? # Clipper clipper = vtkClipPolyData() clipper.SetClipFunction( implicit_box ) clipper.SetInput( plane.GetOutput() ) # Boilerplate rendering pipeline stuff mapper = vtkPolyDataMapper() mapper.SetInput( clipper.GetOutput() ) actor = vtkActor() actor.SetMapper( mapper ) renWin = vtkRenderWindow() iren = vtkRenderWindowInteractor() iren.SetRenderWindow( renWin ) ren = vtkRenderer() renWin.AddRenderer( ren ) ren.AddActor( actor ) iren.Initialize() iren.Start() ----------------------------------------------------------------------------------- Ted Sternberg Lawrence Berkeley National Laboratory From gok at aeromap.com Thu Jan 27 18:53:43 2005 From: gok at aeromap.com (Gennady Khokhorin) Date: Thu, 27 Jan 2005 14:53:43 -0900 Subject: [vtkusers] include path Message-ID: <3054411AF4728548AD6D7137190D56B30C13B6@admin1.aeromap.com> Hello, all. I started playing with vtk and wonder how to set up path to vtk include files. With a strong design for vtk automatic build for different platforms its looks ridiculous to manually remap include .h files in demo .cxx (ex medical1.cxx). Especially if most .h seats in different folders. Am I missing some magic settings here? Gennady Khokhorin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kwcacton at aol.com Thu Jan 27 19:34:45 2005 From: Kwcacton at aol.com (Kwcacton at aol.com) Date: Thu, 27 Jan 2005 19:34:45 -0500 Subject: [vtkusers] Problem with loading cone.cxx Message-ID: <40ED678E.68448897.007BAAF2@aol.com> Hi, I have the following problem when i run the file cone.cxx in the vtk package "vtk-src-windows\examples\tutorial\step1\cxx" I am using Microsoft visual studio C++6.0 vtk4.2 (.exe file downloaded from the web) windows Xp I have configure the build process with Win32 Release I have link all the vtk*.lib files into setting with others .lib files which have already included. The library files whih are included in the link are as follow: kernem3.lib user32.lib gdi32.lib inspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp.lib vtkCommon.lib vtkFiltering.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vtkpng.lib vtkjepg.lib vtkParallel.lib vtkRendering.lib vtkzlib.lib Errors is found as follow: Unhandled exception in CONE.exe: 0xC0000005 Access Violation specific error: 00401105 call dword ptr [edx+8] this CXX0017: Error: symbol "this" not found Has anyone else had this problem before ... any suggestions? ... I did not find anything in MS Knowledgebase Thank for reading From pingkun at ieee.org Thu Jan 27 21:29:24 2005 From: pingkun at ieee.org (Yan Pingkun) Date: Fri, 28 Jan 2005 10:29:24 +0800 Subject: [vtkusers] include path In-Reply-To: <3054411AF4728548AD6D7137190D56B30C13B6@admin1.aeromap.com> References: <3054411AF4728548AD6D7137190D56B30C13B6@admin1.aeromap.com> Message-ID: <6CD38E8C-70D4-11D9-AF42-000D9357260A@ieee.org> Yes, you should use CMake. http://www.cmake.org/HTML/Index.html Pingkun On 28-Jan-05, at AM 07:53, Gennady Khokhorin wrote: > Hello, all. > I started playing with vtk and wonder how to set up path to vtk > include files. > With a strong design for vtk automatic build?for different platforms > its looks ridiculous to manually remap > include .h files in demo .cxx (ex medical1.cxx). Especially if?most .h > seats in different folders. > Am I missing some magic settings here? > > Gennady Khokhorin > ? > _______________________________________________ > 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 From agalmat at hotmail.com Fri Jan 28 05:02:03 2005 From: agalmat at hotmail.com (Alejandro Galindo Mateo) Date: Fri, 28 Jan 2005 11:02:03 +0100 Subject: [vtkusers] vtkPolyDataCollection In-Reply-To: <6CD38E8C-70D4-11D9-AF42-000D9357260A@ieee.org> Message-ID: Hello VTK Users, I have a vtkPolyDataCollection with a few vtkPolyData, how can I join all these vtkPolyData in only one vtkPolyData? I woluld like to know if there is a class in VTK that makes it. Thanks, From prashanth.udupa at gmail.com Fri Jan 28 05:27:22 2005 From: prashanth.udupa at gmail.com (Prashanth Udupa) Date: Fri, 28 Jan 2005 15:57:22 +0530 Subject: [vtkusers] vtkPolyDataCollection In-Reply-To: References: <6CD38E8C-70D4-11D9-AF42-000D9357260A@ieee.org> Message-ID: <912c00f05012802276fb1e505@mail.gmail.com> You could try vtkAppendPolyData. Regards, Prashanth On Fri, 28 Jan 2005 11:02:03 +0100, Alejandro Galindo Mateo wrote: > Hello VTK Users, > > I have a vtkPolyDataCollection with a few vtkPolyData, how can I join all > these vtkPolyData in only one vtkPolyData? I woluld like to know if there is > a class in VTK that makes it. > > Thanks, > > _______________________________________________ > 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 > -- Prashanth N Udupa http://www.prashanthudupa.com/ From Kwcacton at aol.com Fri Jan 28 06:10:53 2005 From: Kwcacton at aol.com (Kwcacton at aol.com) Date: Fri, 28 Jan 2005 06:10:53 EST Subject: [vtkusers] Problem with loading cone.cxx Message-ID: <82.208c88e9.2f2b77bd@aol.com> Hi, I have the following problem when i run the file cone.cxx in the vtk package "vtk-src-windows\examples\tutorial\step1\cxx" I am using Microsoft visual studio C++6.0 vtk4.2 (.exe file downloaded from the web) windows Xp I have configure the build process with Win32 Release I have link all the vtk*.lib files into setting with others .lib files which have already included. The library files whih are included in the link are as follow: kernem3.lib user32.lib gdi32.lib inspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp.lib vtkCommon.lib vtkFiltering.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vtkpng.lib vtkjepg.lib vtkParallel.lib vtkRendering.lib vtkzlib.lib Errors is found as follow: Unhandled exception in CONE.exe: 0xC0000005 Access Violation specific error: 00401105 call dword ptr [edx+8] this CXX0017: Error: symbol "this" not found Has anyone else had this problem before ... any suggestions? ... I did not find anything in MS Knowledgebase Thank for reading -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kwcacton at aol.com Fri Jan 28 06:24:05 2005 From: Kwcacton at aol.com (Kwcacton at aol.com) Date: Fri, 28 Jan 2005 06:24:05 EST Subject: [vtkusers] Problem with loading cone.cxx Message-ID: <7f.5678ad33.2f2b7ad5@aol.com> Hi, I have the following problem when i run the file cone.cxx in the vtk package "vtk-src-windows\examples\tutorial\step1\cxx" I am using Microsoft visual studio C++6.0 vtk4.2 (.exe file downloaded from the web) windows Xp I have configure the build process with Win32 Release I have link all the vtk*.lib files into setting with others .lib files which have already included. The library files whih are included in the link are as follow: kernem3.lib user32.lib gdi32.lib inspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp.lib vtkCommon.lib vtkFiltering.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vtkpng.lib vtkjepg.lib vtkParallel.lib vtkRendering.lib vtkzlib.lib Errors is found as follow: Unhandled exception in CONE.exe: 0xC0000005 Access Violation specific error: 00401105? call?? dword ptr [edx+8] this? ? CXX0017: Error: symbol "this" not found Has anyone else had this problem before ... any suggestions? ... I did not find anything in MS Knowledgebase Thank for reading -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu_r at users.sf.net Fri Jan 28 07:54:45 2005 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Fri, 28 Jan 2005 18:24:45 +0530 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <41F91425.4050000@cea.fr> References: <41F91425.4050000@cea.fr> Message-ID: <16890.13845.941420.304069@monster.linux.in> >>>>> "PB" == Patrick Brockmann writes: PB> Hi all, I have already posted this mail but received no PB> answer. As I can see some traffic about Qt and VTK, I resent PB> this related question. PB> ------------------------------------------------------------------------- PB> I have noticed that with the QVTKRenderWindowInteractor class PB> from the VTK at the interim release 4-4, a keypress is always PB> detected in UPPERCASE not in lowercase. Sorry, I still have your original mail in my INBOX but haven't gotten around to doing much about it. I'll try and take a look this week or the next. Trouble is I don't use qt so need to get some of this installed. cheers, prabhu From gattani at aktina.com Fri Jan 28 10:58:45 2005 From: gattani at aktina.com (Abhishek) Date: Fri, 28 Jan 2005 10:58:45 -0500 Subject: [vtkusers] vtk and .net Message-ID: <200501280958513.SM02048@AGworkstation> Hi, Is VTK functionality available from managed code specifically C# .Net? I understand that one can write wrappers between managed and unmanaged code, and I believe there is a MS thesis on doing that. However, I have concerns advert to that: 1. The slowdown resulting due data conversion layer. 2. Possible memory leaks, which might be hard to catch and correct because of different memory management architectures. 3. Roadblocks in unmanaged-managed conversion because some data types might not have managed equivalents. 4. Kitware provides wrappers for Java, TCL but not .Net, so lot of work might be needed to write wrappers for the existing unmanaged API. Are my concerns legitimate? My requirement is that I want to use VTK as a back-end for my product and a Windows-RAD tool as the front-end. My alternatives for the front-end tools are: 1. Visual C++ (MFC Style) 2. Visual Basic 3. .Net (C#, Visual Basic) If I use option #1 than I don't have to worry about managed-unmanaged conversions and I can use VTK as it is. The problem here is that Visual C++ is not a rapid front-end development tool as compared to #2 and#3, esp. if I use the Doc/View architecture. Problems with options #2 & #3 are that I don't know if VTK can be used easily and efficiently. An early response would be highly appreciated because I have to make a choice between IDL and VTK as the API for visualization of our product and I really prefer VTK, only if there is some sensible solution to my problems. Thanks, Abhishek -------------- next part -------------- An HTML attachment was scrubbed... URL: From gattani at aktina.com Fri Jan 28 11:36:07 2005 From: gattani at aktina.com (Abhishek) Date: Fri, 28 Jan 2005 11:36:07 -0500 Subject: [vtkusers] vtk and .net, How? Message-ID: <200501281036348.SM02048@AGworkstation> Hi, Is VTK functionality available from managed code specifically C# .Net? I understand that one can write wrappers between managed and unmanaged code, and I believe there is a MS thesis on doing that. However, I have concerns advert to that: 1. The slowdown resulting due data conversion layer. 2. Possible memory leaks, which might be hard to catch and correct because of different memory management architectures. 3. Roadblocks in unmanaged-managed conversion because some data types might not have managed equivalents. 4. Kitware provides wrappers for Java, TCL but not .Net, so lot of work might be needed to write wrappers for the existing unmanaged API. Are my concerns legitimate? My requirement is that I want to use VTK as a back-end for my product and a Windows-RAD tool as the front-end. My alternatives for the front-end tools are: 1. Visual C++ (MFC Style) 2. Visual Basic 3. .Net (C#, Visual Basic) If I use option #1 than I don't have to worry about managed-unmanaged conversions and I can use VTK as it is. The problem here is that Visual C++ is not a rapid front-end development tool as compared to #2 and#3, esp. if I use the Doc/View architecture. Problems with options #2 & #3 are that I don't know if VTK can be used easily and efficiently. An early response would be highly appreciated because I have to make a choice between IDL and VTK as the API for visualization of our product and I really prefer VTK, only if there is some sensible solution to my problems. Thanks, Abhishek -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.malaterre at kitware.com Fri Jan 28 12:05:41 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Fri, 28 Jan 2005 12:05:41 -0500 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <16890.13845.941420.304069@monster.linux.in> References: <41F91425.4050000@cea.fr> <16890.13845.941420.304069@monster.linux.in> Message-ID: <41FA70E5.3040608@kitware.com> Prabhu Ramachandran wrote: >>>>>>"PB" == Patrick Brockmann writes: > > > PB> Hi all, I have already posted this mail but received no > PB> answer. As I can see some traffic about Qt and VTK, I resent > PB> this related question. > > PB> ------------------------------------------------------------------------- > PB> I have noticed that with the QVTKRenderWindowInteractor class > PB> from the VTK at the interim release 4-4, a keypress is always > PB> detected in UPPERCASE not in lowercase. > > Sorry, I still have your original mail in my INBOX but haven't gotten > around to doing much about it. I'll try and take a look this week or > the next. Trouble is I don't use qt so need to get some of this > installed. Hi Prabhu, I just try to reproduce and Patrick patch did work. $ cvs ci -m"BUG: Fix upper/lower case problem. Thanks to Patrick Brockmann for patch" /cvsroot/ParaView/ParaView/VTK/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py,v <-- QVTKRenderWindowInteractor.py new revision: 1.5; previous revision: 1.4 The only thing I am confused about is that I had the same problem as Jon: http://vtk.org/pipermail/vtkusers/2004-December/077726.html $ python QVTKRenderWindowInteractor.py Traceback (most recent call last): File "QVTKRenderWindowInteractor.py", line 343, in ? QVTKRenderWidgetConeExample() File "QVTKRenderWindowInteractor.py", line 315, in QVTKRenderWidgetConeExample widget = QVTKRenderWindowInteractor() File "QVTKRenderWindowInteractor.py", line 136, in __init__ apply(qt.QWidget.__init__, (self,parent,name) + args, kw) TypeError: keyword arguments are not supported The only solution I could find was from: http://goldenspud.com/webrog/archives/2004/07/20/pyqt-platform-inconsistencies/ If you try to run that on PyQt atop Qt/Windows though, you?ll get a ?TypeError: keyword arguments are not supported? exception raised. Instead, leave out **kwargs when calling the superclass: If you leave **kwargs in the signature of your class?s __init__ as shown here, just be sure to send keyword-less arguments for those values you intend to reach the superclass when you call your class. Any comments ? Mathieu From j.mccoy at gmx.de Fri Jan 28 13:01:27 2005 From: j.mccoy at gmx.de (McCoy) Date: Fri, 28 Jan 2005 19:01:27 +0100 Subject: [vtkusers] Re: Problem with loading cone.cxx In-Reply-To: <20050128163623.2D22134A68@public.kitware.com> References: <20050128163623.2D22134A68@public.kitware.com> Message-ID: <409242349.20050128190127@gmx.de> vrvo> Hi, vrvo> I have the following problem when i run the file cone.cxx vrvo> in the vtk package "vtk-src-windows\examples\tutorial\step1\cxx" vrvo> I am using Microsoft visual studio C++6.0 vrvo> vtk4.2 (.exe file downloaded from the web) vrvo> windows Xp vrvo> I have configure the build process with Win32 Release vrvo> I have link all the vtk*.lib files into setting with vrvo> others .lib files which have already included. vrvo> The library files whih are included in the link are as follow: vrvo> kernem3.lib user32.lib gdi32.lib inspool.lib comdlg32.lib vrvo> advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib vrvo> odbc32.lib odbccp.lib vtkCommon.lib vtkFiltering.lib vrvo> vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vrvo> vtkpng.lib vtkjepg.lib vtkParallel.lib vtkRendering.lib vrvo> vtkzlib.lib vrvo> Errors is found as follow: vrvo> Unhandled exception in CONE.exe: vrvo> 0xC0000005 Access Violation vrvo> specific error: vrvo> 00401105 call dword ptr [edx+8] vrvo> this CXX0017: Error: symbol "this" not found vrvo> Has anyone else had this problem before ... any vrvo> suggestions? ... I did not find anything in MS Knowledgebase vrvo> Thank for reading hi, just let cmake (www.cmake.org) do all the linking stuff. your vtk- and ms vc++- drectories should be discovered automatical. -- Best regards, McCoy mailto:j.mccoy at gmx.de From prabhu_r at users.sf.net Fri Jan 28 13:30:52 2005 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Sat, 29 Jan 2005 00:00:52 +0530 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <41FA70E5.3040608@kitware.com> References: <41F91425.4050000@cea.fr> <16890.13845.941420.304069@monster.linux.in> <41FA70E5.3040608@kitware.com> Message-ID: <16890.34012.414861.381094@monster.linux.in> >>>>> "MM" == Mathieu Malaterre writes: Thanks for taking care of this Mathieu! [...] MM> File "QVTKRenderWindowInteractor.py", line 136, in __init__ MM> apply(qt.QWidget.__init__, (self,parent,name) + args, kw) MM> TypeError: keyword arguments are not supported MM> The only solution I could find was from: MM> http://goldenspud.com/webrog/archives/2004/07/20/pyqt-platform-inconsistencies/ MM> If you try to run that on PyQt atop Qt/Windows though, you?ll MM> get a ?TypeError: keyword arguments are not supported? MM> exception raised. Instead, leave out **kwargs when calling MM> the superclass: If you leave **kwargs in the signature of your MM> class?s __init__ as shown here, just be sure to send MM> keyword-less arguments for those values you intend to reach MM> the superclass when you call your class. Well, I really don't know and would guess that we could detect windows and leave the keyword args out for the broken platforms? What do users of the widget think? cheers, prabhu From gok at aeromap.com Fri Jan 28 14:00:53 2005 From: gok at aeromap.com (Gennady Khokhorin) Date: Fri, 28 Jan 2005 10:00:53 -0900 Subject: [vtkusers] FW:include path Message-ID: <3054411AF4728548AD6D7137190D56B30C41DE@admin1.aeromap.com> Actually I did use cmake gui :^( Also I did try to build with "relative path" options: nothing happened. Projects are not created in Examples folder either. Is there any description about build structure? gok -----Original Message----- From: Yan Pingkun [mailto:pingkun at ieee.org] Sent: Thursday, January 27, 2005 5:29 PM To: Gennady Khokhorin Cc: vtkusers at vtk.org Subject: Re: [vtkusers] include path Yes, you should use CMake. http://www.cmake.org/HTML/Index.html Pingkun On 28-Jan-05, at AM 07:53, Gennady Khokhorin wrote: > Hello, all. > I started playing with vtk and wonder how to set up path to vtk > include files. > With a strong design for vtk automatic build?for different platforms > its looks ridiculous to manually remap > include .h files in demo .cxx (ex medical1.cxx). Especially if?most .h > seats in different folders. > Am I missing some magic settings here? > > Gennady Khokhorin > ? > _______________________________________________ > 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: Actually I did use cmake gui :^(> http://www.vtk.org/mailman/listinfo/vtkusers From amy.henderson at kitware.com Fri Jan 28 14:12:06 2005 From: amy.henderson at kitware.com (Amy Henderson) Date: Fri, 28 Jan 2005 14:12:06 -0500 Subject: [vtkusers] FW:include path In-Reply-To: <3054411AF4728548AD6D7137190D56B30C41DE@admin1.aeromap.com> References: <3054411AF4728548AD6D7137190D56B30C41DE@admin1.aeromap.com> Message-ID: <6.2.0.14.2.20050128141037.0401ee50@pop.biz.rr.com> If you're trying to build the C++ examples, use the CMakeLists.txt file in each Examples/*/Cxx subdirectory. Each of these CMakeLists.txt files will allow you to build the examples in that particular directory. - Amy At 02:00 PM 1/28/2005, Gennady Khokhorin wrote: >Actually I did use cmake gui :^( >Also I did try to build with "relative path" options: nothing happened. >Projects are not created in Examples folder either. Is there any description >about build structure? > >gok > >-----Original Message----- >From: Yan Pingkun [mailto:pingkun at ieee.org] >Sent: Thursday, January 27, 2005 5:29 PM >To: Gennady Khokhorin >Cc: vtkusers at vtk.org >Subject: Re: [vtkusers] include path > > >Yes, you should use CMake. >http://www.cmake.org/HTML/Index.html > >Pingkun > >On 28-Jan-05, at AM 07:53, Gennady Khokhorin wrote: > > > Hello, all. > > I started playing with vtk and wonder how to set up path to vtk > > include files. > > With a strong design for vtk automatic build for different platforms > > its looks ridiculous to manually remap > > include .h files in demo .cxx (ex medical1.cxx). Especially if most .h > > seats in different folders. > > Am I missing some magic settings here? > > > > Gennady Khokhorin > > > > _______________________________________________ > > 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: >Actually I did use cmake gui :^(> 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 From mathieu.malaterre at kitware.com Fri Jan 28 14:16:12 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Fri, 28 Jan 2005 14:16:12 -0500 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <16890.34012.414861.381094@monster.linux.in> References: <41F91425.4050000@cea.fr> <16890.13845.941420.304069@monster.linux.in> <41FA70E5.3040608@kitware.com> <16890.34012.414861.381094@monster.linux.in> Message-ID: <41FA8F7C.4090806@kitware.com> Prabhu Ramachandran wrote: >>>>>>"MM" == Mathieu Malaterre writes: > > > > Thanks for taking care of this Mathieu! > > [...] > MM> File "QVTKRenderWindowInteractor.py", line 136, in __init__ > MM> apply(qt.QWidget.__init__, (self,parent,name) + args, kw) > MM> TypeError: keyword arguments are not supported > > MM> The only solution I could find was from: > > MM> http://goldenspud.com/webrog/archives/2004/07/20/pyqt-platform-inconsistencies/ > > MM> If you try to run that on PyQt atop Qt/Windows though, you?ll > MM> get a ?TypeError: keyword arguments are not supported? > MM> exception raised. Instead, leave out **kwargs when calling > MM> the superclass: If you leave **kwargs in the signature of your > MM> class?s __init__ as shown here, just be sure to send > MM> keyword-less arguments for those values you intend to reach > MM> the superclass when you call your class. > > Well, I really don't know and would guess that we could detect windows > and leave the keyword args out for the broken platforms? I forgot to mention I am on debian testing, using latest python-qt3 package. So I guess on both win32 and linux this can be broken... Mathieu From scottjp at CLEMSON.EDU Fri Jan 28 14:25:17 2005 From: scottjp at CLEMSON.EDU (scottjp at CLEMSON.EDU) Date: Fri, 28 Jan 2005 14:25:17 -0500 (EST) Subject: [vtkusers] Vtk 4.4 dlls Message-ID: <4690.130.127.249.36.1106940317.squirrel@130.127.249.36> Does anyone know of a way to get Windows dlls for 4.4? From prabhu_r at users.sf.net Fri Jan 28 15:06:47 2005 From: prabhu_r at users.sf.net (Prabhu Ramachandran) Date: Sat, 29 Jan 2005 01:36:47 +0530 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <41FA8F7C.4090806@kitware.com> References: <41F91425.4050000@cea.fr> <16890.13845.941420.304069@monster.linux.in> <41FA70E5.3040608@kitware.com> <16890.34012.414861.381094@monster.linux.in> <41FA8F7C.4090806@kitware.com> Message-ID: <16890.39767.847476.57456@monster.linux.in> >>>>> "MM" == Mathieu Malaterre writes: MM> Prabhu Ramachandran wrote: [...] MM> I forgot to mention I am on debian testing, using latest Ahh, live long and prosper, fellow debian user. ;-) MM> python-qt3 package. So I guess on both win32 and linux this MM> can be broken... Hmm, yes I get that too here on my sarge box. So, I guess you can just go ahead and remove them kwargs, anyone who uses pyqt will likely be aware of this issue. Thanks! cheers, prabhu From mathieu.malaterre at kitware.com Fri Jan 28 15:16:47 2005 From: mathieu.malaterre at kitware.com (Mathieu Malaterre) Date: Fri, 28 Jan 2005 15:16:47 -0500 Subject: [vtkusers] Qt and VTK, QVTKRenderWindowInteractor and key events In-Reply-To: <16890.39767.847476.57456@monster.linux.in> References: <41F91425.4050000@cea.fr> <16890.13845.941420.304069@monster.linux.in> <41FA70E5.3040608@kitware.com> <16890.34012.414861.381094@monster.linux.in> <41FA8F7C.4090806@kitware.com> <16890.39767.847476.57456@monster.linux.in> Message-ID: <41FA9DAF.90905@kitware.com> Prabhu Ramachandran wrote: >>>>>>"MM" == Mathieu Malaterre writes: > > > MM> Prabhu Ramachandran wrote: > [...] > MM> I forgot to mention I am on debian testing, using latest > > Ahh, live long and prosper, fellow debian user. ;-) > > MM> python-qt3 package. So I guess on both win32 and linux this > MM> can be broken... > > Hmm, yes I get that too here on my sarge box. > > So, I guess you can just go ahead and remove them kwargs, anyone who > uses pyqt will likely be aware of this issue. Just for record, this is done in CVS: $ cvs ci -m"BUG: Fix problem with TypeError: keyword arguments are not supported, that occurs on both Win32 and debian system" /cvsroot/ParaView/ParaView/VTK/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py,v <-- QVTKRenderWindowInteractor.py new revision: 1.6; previous revision: 1.5 Mathieu From steven.robbins at videotron.ca Fri Jan 28 15:25:44 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Fri, 28 Jan 2005 15:25:44 -0500 Subject: [vtkusers] vtkImageImport in java? Message-ID: <20050128202544.GA23609@nyongwa.montreal.qc.ca> Hi, Has anyone got example code that builds image data from scratch in Java? Ultimately I'd like a vtkImageData object. I considered using vtkImageImport in java but there doesn't appear to be any access to the two methods that actually copy data: CopyImportVoidPointer() and SetImportVoidPointer(). :-/ I'm using vtk 4.2. Thanks, -Steve From j.mccoy at gmx.de Sat Jan 29 13:23:51 2005 From: j.mccoy at gmx.de (McCoy) Date: Sat, 29 Jan 2005 19:23:51 +0100 Subject: [vtkusers] Re: Vtk 4.4 dlls In-Reply-To: <20050129170012.8EE4234AB7@public.kitware.com> References: <20050129170012.8EE4234AB7@public.kitware.com> Message-ID: <1649043744.20050129192351@gmx.de> hi, you mean the normal vtk- dlls (vtkCommon.dll, vtkFiltering.dll, ...) ? build your project (borland, vc, whatever you have...) with cmake ( www.cmake.org), set BUILD_SHARED_LIBS to ON, compile the project on your machine and you have the dlls in your BUILD_DIRECTORY\bin\release or ..\debug folder (at least with vc, but borland must put them also somewhere...). i hope it helps... -- Best regards, McCoy mailto:j.mccoy at gmx.de From scottjp at CLEMSON.EDU Sun Jan 30 13:04:56 2005 From: scottjp at CLEMSON.EDU (Scott J. Pearson) Date: Sun, 30 Jan 2005 13:04:56 -0500 Subject: [vtkusers] Re: Vtk 4.4 dlls Message-ID: The only problem I face when I do this is that the libs are found in the lib/vtk directory. E.g., my compiler cannot find vtkCommon.lib. How do I procure the lib files? Scott --- Scott J. Pearson Systems Programmer, Center for the Advanced Engineering of Fibers and Films Clemson University 864.656.6389 scottjp at clemson.edu 10 Riggs Hall, Clemson, SC 29634 http://www.clemson.edu/caeff/ ---------Original Message---------- : Sat, 29 Jan 2005 19:23:51 +0100 From: McCoy Subject: [vtkusers] Re: Vtk 4.4 dlls To: scottjp at CLEMSON.EDU Cc: vtkusers at vtk.org Message-ID: <1649043744.20050129192351 at gmx.de> Content-Type: text/plain; charset=us-ascii hi, you mean the normal vtk- dlls (vtkCommon.dll, vtkFiltering.dll, ...) ? build your project (borland, vc, whatever you have...) with cmake ( www.cmake.org), set BUILD_SHARED_LIBS to ON, compile the project on your machine and you have the dlls in your BUILD_DIRECTORY\bin\release or ..\debug folder (at least with vc, but borland must put them also somewhere...). i hope it helps... -- Best regards, McCoy mailto:j.mccoy at gmx.de ------------------------------ From steven.robbins at videotron.ca Sun Jan 30 14:12:01 2005 From: steven.robbins at videotron.ca (Steve M. Robbins) Date: Sun, 30 Jan 2005 14:12:01 -0500 Subject: Ghosts and Extents (was [vtkusers] vtkImageImport in java?) In-Reply-To: <20050128202544.GA23609@nyongwa.montreal.qc.ca> References: <20050128202544.GA23609@nyongwa.montreal.qc.ca> Message-ID: <20050130191201.GP5695@nyongwa.montreal.qc.ca> Howdy, On Fri, Jan 28, 2005 at 03:25:44PM -0500, Steve M. Robbins wrote: > Has anyone got example code that builds image data from scratch in Java? > Ultimately I'd like a vtkImageData object. > > I considered using vtkImageImport in java but there doesn't appear to > be any access to the two methods that actually copy data: > CopyImportVoidPointer() and SetImportVoidPointer(). :-/ I went back to copying the data directly into a vtkImageData object and finally managed to get things working. It turns out that the only bit that I had missed initially was to call SetWholeExtent(). Using just SetExtent() is not enough, it seems. I have read the VTK User's Guide. The chapter on how the pipeline operates is helpful, but I'm still not sure exactly what is the distinction between "extent", "whole extent" and "update extent". I get the feeling that the update extent is set at the output end of the pipeline (e.g. by mappers) and propagated backwards towards the source objects, but even that is not clear. Who is responsible for setting the other two extents? And what is a "ghost level"? Is there any documentation that defines these terms? How about source code: is there a particularly good class to start with? Data class? Source class? Reader? Thanks, -Steve From savarino-vtktools8507 at mailblocks.com Sun Jan 30 16:14:54 2005 From: savarino-vtktools8507 at mailblocks.com (savarino-vtktools8507 at mailblocks.com) Date: Sun, 30 Jan 2005 13:14:54 -0800 Subject: [vtkusers] installation questions In-Reply-To: References: Message-ID: <20050130211458.4834934981@public.kitware.com> Hi I just started trying to use the vtk kit, and I had some problems setting it up on windows. I think I set all the enviromental variables up, but it tells me that it can't find vtkcommonpython.dll I think the problem is that I have Python2.2, not 2.1 I'm sure this had been discussed, sorry for the repetition best Tom Savarino From venu.thomas at nestinfotech.com Mon Jan 31 00:28:38 2005 From: venu.thomas at nestinfotech.com (=?iso-8859-1?Q?=BF_Venu_Thomas_=BF?=) Date: Mon, 31 Jan 2005 10:58:38 +0530 Subject: [vtkusers] vtkVolume16Reader & vtkVolumeReader Message-ID: <043b01c50756$1ea07020$a900080a@nestinfotech.com> Dear, All.. What is the differnet between vtkVolume16Reader & vtkVolumeReader ?? vtkVolume16Reader its read for which format?? 3D or 2D or 16-bit RAW?? I wait for ur replay.... Regards, Venu Thomas M.Ph:- (91) 9847655556 www.venuthomas.all.at Or http://www.geocities.com/cochin_venu/ ========================================== Power Supply Wattage Calculator - JS Custom PCs, LLC - Custom Built PCs, Laptops and Servers! You Need It We Can Build It! http://pswattagecalculator.webhop.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From StephanTheisen at gmx.de Mon Jan 31 08:45:21 2005 From: StephanTheisen at gmx.de (Stephan Theisen) Date: Mon, 31 Jan 2005 14:45:21 +0100 Subject: [vtkusers] how to build the vtk.jar file Message-ID: <41FE3671.1090402@gmx.de> Hi! I have to rebuild the vtk.jar file (for use in java) with Cmake, because I will implement the volumepro hardware. In the default vtk42 package the file exist in folder C:\vtk42\bin. Can anybody send me a list, how I must set all the different variables in Cmake to rebuild this file. Thanks in advance From mreyesa at hotmail.com Mon Jan 31 11:36:57 2005 From: mreyesa at hotmail.com (reyes mauricio) Date: Mon, 31 Jan 2005 16:36:57 +0000 Subject: [vtkusers] vtkProgrammableGlyphFilter problem Message-ID: Hi VTK Users, I'm using vtkProgrammableGlyphFilter to manipulate individually (via setGlyphMethod) scaling and orientation of spheres. I cannot make the filter to work, it only gives me one single sphere as output ( vtkGlyph3D works well wit the input data I pass. It copy the sphere at different positions, but I need to scale them and orient them differently ) Thanks in advance, Mauricio this is part of my code: // ********* part of code ************ vtkSphereSource *sphere=vtkSphereSource::New(); vtkProgrammableGlyphFilter *pfilter=vtkProgrammableGlyphFilter::New(); pfilter->SetSource(sphere->GetOutput()); pfilter->SetInput(pd); <-------- pd (vtkPolyData) pfilter->SetGlyphMethod(func,(void *)pfilter); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(pfilter->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); for the moment the function passed to SetGlyphMethod just scales: void static func(void *arg) { vtkProgrammableGlyphFilter *pfilter=(vtkProgrammableGlyphFilter*)arg; //float point[3]; //pfilter->GetPoint(point); vtkTransform *tr=vtkTransform::New(); tr->Scale(4,1,1); // testing vtkTransformPolyDataFilter *pdf=vtkTransformPolyDataFilter::New(); pdf->SetInput(pfilter->GetSource()); pdf->SetTransform(tr); tr->Delete(); pdf->Delete(); } _________________________________________________________________ Consigue aqu? las mejores y mas recientes ofertas de trabajo en Am?rica Latina y USA: http://latam.msn.com/empleos/ From mreyesa at hotmail.com Mon Jan 31 11:53:59 2005 From: mreyesa at hotmail.com (reyes mauricio) Date: Mon, 31 Jan 2005 16:53:59 +0000 Subject: [vtkusers] vtkProgrammableGlyphFilter problem Message-ID: Hi VTK Users, I'm using vtkProgrammableGlyphFilter to manipulate individually (via setGlyphMethod) scaling and orientation of spheres. I cannot make the filter to work, it only gives me one single sphere as output ( vtkGlyph3D works well wit the input data I pass. It copy the sphere at different positions, but I need to scale them and orient them differently ) Thanks in advance, Mauricio this is part of my code: // ********* part of code ************ vtkSphereSource *sphere=vtkSphereSource::New(); vtkProgrammableGlyphFilter *pfilter=vtkProgrammableGlyphFilter::New(); pfilter->SetSource(sphere->GetOutput()); pfilter->SetInput(pd); <-------- pd (vtkPolyData) pfilter->SetGlyphMethod(func,(void *)pfilter); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(pfilter->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); for the moment the function passed to SetGlyphMethod just scales: void static func(void *arg) { vtkProgrammableGlyphFilter *pfilter=(vtkProgrammableGlyphFilter*)arg; //float point[3]; //pfilter->GetPoint(point); vtkTransform *tr=vtkTransform::New(); tr->Scale(4,1,1); // testing vtkTransformPolyDataFilter *pdf=vtkTransformPolyDataFilter::New(); pdf->SetInput(pfilter->GetSource()); pdf->SetTransform(tr); tr->Delete(); pdf->Delete(); } _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From malcolm at geovision.co.za Mon Jan 31 12:01:58 2005 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Mon, 31 Jan 2005 19:01:58 +0200 Subject: [vtkusers] vtkProgrammableGlyphFilter problem References: Message-ID: <000301c507b7$0beb5970$0100a8c0@BART> Hi You need to add a translation to your transform - by the point's x,y,z. Currently you're just scaling by the same amount every time at the origin, so it looks like one glyph. HTH Malcolm ----- Original Message ----- From: "reyes mauricio" To: Sent: Monday, January 31, 2005 6:36 PM Subject: [vtkusers] vtkProgrammableGlyphFilter problem > Hi VTK Users, > > I'm using vtkProgrammableGlyphFilter to manipulate individually (via > setGlyphMethod) scaling and orientation of spheres. > > I cannot make the filter to work, it only gives me one single sphere as > output > > ( vtkGlyph3D works well wit the input data I pass. It copy the sphere at > different positions, but I need to scale them and orient them differently ) > > Thanks in advance, > Mauricio > > this is part of my code: > > > // ********* part of code ************ > > vtkSphereSource *sphere=vtkSphereSource::New(); > vtkProgrammableGlyphFilter *pfilter=vtkProgrammableGlyphFilter::New(); > pfilter->SetSource(sphere->GetOutput()); > pfilter->SetInput(pd); <-------- pd (vtkPolyData) > pfilter->SetGlyphMethod(func,(void *)pfilter); > > vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(pfilter->GetOutput()); > > vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > > for the moment the function passed to SetGlyphMethod just scales: > > void static func(void *arg) > { > vtkProgrammableGlyphFilter *pfilter=(vtkProgrammableGlyphFilter*)arg; > > //float point[3]; > //pfilter->GetPoint(point); > > vtkTransform *tr=vtkTransform::New(); > tr->Scale(4,1,1); // testing > > vtkTransformPolyDataFilter *pdf=vtkTransformPolyDataFilter::New(); > pdf->SetInput(pfilter->GetSource()); > pdf->SetTransform(tr); > > tr->Delete(); > pdf->Delete(); > > } > > _________________________________________________________________ > Consigue aqu? las mejores y mas recientes ofertas de trabajo en Am?rica > Latina y USA: http://latam.msn.com/empleos/ > > _______________________________________________ > 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 > From pablo.lecumberri at unavarra.es Mon Jan 31 12:46:08 2005 From: pablo.lecumberri at unavarra.es (Pablo Lecumberri) Date: Mon, 31 Jan 2005 18:46:08 +0100 Subject: [vtkusers] vtkLookupTable for scalars mapping in vtkImageData Message-ID: <5.1.0.14.0.20050131182758.032f3668@si.unavarra.es> Hi VTK users, I'm trying to change the vtkLookupTable associated to the output of a vtkImageMapToColors filter, but I can't find it. I just want to change one color, leaving everything else untouched. I've tried vtkLookupTable *LUT = rep->GetPointData()->GetScalars()->GetLookupTable(); where "rep" is a copy of the output of a vtkImageMapToColors filter, but LUT is NULL. Does anybody know where it is stored? Thanks a lot! From clinton at elemtech.com Mon Jan 31 12:52:19 2005 From: clinton at elemtech.com (Clinton Stimpson) Date: Mon, 31 Jan 2005 10:52:19 -0700 Subject: [vtkusers] QT and Vtk 4.5 In-Reply-To: <20050127064020.6447834972@public.kitware.com> References: <20050127064020.6447834972@public.kitware.com> Message-ID: <41FE7053.7010308@elemtech.com> Also note that a new Qt/VTK package has been added to the Wiki a few days ago. This one is in the CVS version of VTK and works with Windows, X11 and Carbon. There are no licensing restrictions (GPL or Commercial Qt versions) for "using" it. Clint Message: 5 Date: Wed, 26 Jan 2005 18:20:14 -0500 From: Mathieu Malaterre Subject: Re: [vtkusers] QT and Vtk 4.5 To: REGAT-BARREL Aurelien Cc: vtk Message-ID: <41F825AE.2050307 at kitware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed And a more general answer is in the Wiki: http://vtk.org/Wiki/VTK_Classes#Qt HTH Mathieu REGAT-BARREL Aurelien wrote: >> Hi, >> Try this: >> http://www.matthias-koenig.net/vtkqt/ >> >> */Jens Frederich /* wrote: >> >> Hi all, >> >> I search classes to use vtk with qt toolkit. This classes should run >> with X11, Windows, Carbon renderer and with the vtk version from cvs. >> Has anyone a idea? >> >> Jens >> >> _______________________________________________ >> 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 >> >> >> >> Aurelien REGAT-BARREL >> > From rendezvous at dreamxplosion.com Mon Jan 31 12:52:53 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Mon, 31 Jan 2005 12:52:53 -0500 Subject: [vtkusers] vtkFlRenderWindowInteractor in Mac OS X Message-ID: <35eea75b7f1df3413eb98a441351596d@dreamxplosion.com> Anybody tried to use vtkFlRenderWindowInteractor in Mac OS X? Yes, I did study the example over and over and over, but... there are still a few issues. Perhaps I'm still missing something. (maybe someone could help me out? please?) First of all, in Charl's Cone3 example it says: // this is the standard way of "starting" a fltk application int fl_ret = Fl::run(); This should be about right, BUT just to test it, I "bracketed" the loop-starting command with: cout << "Starting the loop" << endl; // this is the standard way of "starting" a fltk application int fl_ret = Fl::run(); // very huge NB: note that we ->Delete() the vtkFlRenderWindowInteractor // once we do this, the rest of the vtk pipeline will really disappear cout << "Ending the loop" << endl; As one should expect, after hitting the quit button, or close the application, the loop gets interrupted and the rest of the code (after the Fl::run) gets executed, which is, delete the fl_vtk_window, etc. The "Ending the loop" messages should display as well. However, what I found out is that the code after the Fl::run never gets executed (there's no "Ending the loop" message when I quit the application). Am I lacking some fundamental concepts here? Is this supposed to happen? Again this runs in Mac OS X. Second: in the Cone3 example the quit button and the text does NOT appear, as the vtk window overlaps with it. I included a few captures below. Note: on Apple (Mac OS X) the default FLTK resource fork (/FL/mac.r) has to be attached to the executable in order to interact with the window at all. (the following captures were taken without this fork attached to the Cone3 executable, however attaching the fork doesn't change the display). -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-1.jpg Type: image/jpeg Size: 12196 bytes Desc: not available URL: -------------- next part -------------- Capture1: Plain build of the Cone3 example. Actually you can see the text being displayed for a fraction of a second then the vtk windows get displayed on top of them. -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-2.jpg Type: image/jpeg Size: 11979 bytes Desc: not available URL: -------------- next part -------------- Capture2: Here I commented out the fl_vtk_window2->show(); and rebuilt the Cone3 You can see that the text and button now shows (on the second window), but (obviously) not the vtk window. Once I click on the Second window, the vtk window pops up as a separate window. The Second window can be used for interaction (rotate, move, zoom the SuperQuadric that is displayed in the pop up window). (The vtk window does not allow for interaction). -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-3.jpg Type: image/jpeg Size: 14556 bytes Desc: not available URL: -------------- next part -------------- Capture3: the Quit button is visible and it can be clicked :) However regardless of how I chose to quit the application the rest of the code (after Fl::run) doesn't get executed. Why? marius From rendezvous at dreamxplosion.com Mon Jan 31 13:31:49 2005 From: rendezvous at dreamxplosion.com (Marius S Giurgi) Date: Mon, 31 Jan 2005 13:31:49 -0500 Subject: [vtkusers] vktFLTK build errors (Mac OS X) Message-ID: <18abbeb69525653e2b7360f3fc2e039b@dreamxplosion.com> Has anyone successfully compiled and use the vtkFLTK (http://vtkfltk.sourceforge.net)? I was trying to build the vtkFLTK bridge library on Mac OS X (10.3.7) unsuccessfully, with the following errors: Building object file CannyUI.o... Building object file Canny.o... Building object file CannyBase.o... /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx: In member function `void CannyBaseInternal::DeletePipeline(vtkRenderer*)': /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:184: warning: `RemoveProp ' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:226) /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:190: warning: `RemoveProp ' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:226) /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx: In member function `int CannyBaseInternal::InitializeActors(vtkRenderer*)': /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:219: warning: `AddProp' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:53) /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:367: warning: invalid conversion from `vtkImageData*' to `vtkStructuredPoints*' /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:367: warning: initializing argument 1 of `void vtkSubPixelPositionEdgels::SetGradMaps(vtkStructuredPoints*)' /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:391: warning: `AddProp' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:53) Building executable /Developer/vtkFLTK-0.6.1/vtkFLTK-build/bin/Canny... ld: Undefined symbols: _png_create_info_struct _png_create_read_struct _png_destroy_read_struct _png_init_io _png_read_end _png_read_info _png_read_rows _png_set_expand _png_set_interlace_handling _png_set_packing _png_set_strip_16 _jpeg_CreateDecompress _jpeg_calc_output_dimensions _jpeg_destroy_decompress _jpeg_finish_decompress _jpeg_read_header _jpeg_read_scanlines _jpeg_start_decompress _jpeg_std_error _jpeg_stdio_src make[5]: *** [/Developer/vtkFLTK-0.6.1/vtkFLTK-build/bin/Canny] Error 1 make[4]: *** [default_target] Error 2 make[3]: *** [default_target_Canny] Error 2 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Examples] Error 2 make: *** [default_target] Error 2 I have the following installed: cmake version 2.0.5 fltk version 1.1.6 vtk version CVS nightly build I'm not sure whether this is a mac os x problem or not. Could someone please give me an idea of how to fix this? Also, what about the warnings (some classes being deprecated). Is this because I use the latest (CVS) vtk version? thanks, marius From malcolm at geovision.co.za Mon Jan 31 13:40:30 2005 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Mon, 31 Jan 2005 20:40:30 +0200 Subject: Re Re: [vtkusers] vtkProgrammableGlyphFilter problem References: Message-ID: <002401c507c4$75638cd0$0100a8c0@BART> Sorry, I didn't look at your code properly. You're not connected to the vtkTransformPolyDataFilter so it will have no effect at all. What you're actually doing is repeatedly copying the unmodified output of the source to the output of your programmable glyph filter. You either need to modify the position of the source or set a vtkTransformPolyDataFilter as the filter's source and modify it's transform from within the glyph method - this means you'll have to find a way to pass the transform as an argument. vtkSphereSource | vtkTransformPolyDataFilter - vtkTransform | vtkProgrammableGlyphFilter Hope I got it right this time! Malcolm ----- Original Message ----- From: "reyes mauricio" To: Sent: Monday, January 31, 2005 6:53 PM Subject: [vtkusers] vtkProgrammableGlyphFilter problem > Hi VTK Users, > > I'm using vtkProgrammableGlyphFilter to manipulate individually (via > setGlyphMethod) scaling and orientation of spheres. > > I cannot make the filter to work, it only gives me one single sphere as > output > > ( vtkGlyph3D works well wit the input data I pass. It copy the sphere at > different positions, but I need to scale them and orient them differently ) > > Thanks in advance, > Mauricio > > this is part of my code: > > > // ********* part of code ************ > > vtkSphereSource *sphere=vtkSphereSource::New(); > vtkProgrammableGlyphFilter *pfilter=vtkProgrammableGlyphFilter::New(); > pfilter->SetSource(sphere->GetOutput()); > pfilter->SetInput(pd); <-------- pd (vtkPolyData) > pfilter->SetGlyphMethod(func,(void *)pfilter); > > vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(pfilter->GetOutput()); > > vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > > for the moment the function passed to SetGlyphMethod just scales: > > void static func(void *arg) > { > vtkProgrammableGlyphFilter *pfilter=(vtkProgrammableGlyphFilter*)arg; > > //float point[3]; > //pfilter->GetPoint(point); > > vtkTransform *tr=vtkTransform::New(); > tr->Scale(4,1,1); // testing > > vtkTransformPolyDataFilter *pdf=vtkTransformPolyDataFilter::New(); > pdf->SetInput(pfilter->GetSource()); > pdf->SetTransform(tr); > > tr->Delete(); > pdf->Delete(); > > } > > _________________________________________________________________ > Charla con tus amigos en l?nea mediante MSN Messenger: > http://messenger.latam.msn.com/ > > _______________________________________________ > 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 > From seanm at nmr.mgh.harvard.edu Mon Jan 31 15:06:26 2005 From: seanm at nmr.mgh.harvard.edu (Sean McInerney) Date: Mon, 31 Jan 2005 15:06:26 -0500 Subject: [vtkusers] vktFLTK build errors (Mac OS X) In-Reply-To: <18abbeb69525653e2b7360f3fc2e039b@dreamxplosion.com> References: <18abbeb69525653e2b7360f3fc2e039b@dreamxplosion.com> Message-ID: <41FE8FC2.4000307@nmr.mgh.harvard.edu> Hi Marius, The problem that you are having does not seem to be with the vtkFLTK library itself, but with the Canny example. API and hierarchical changes in the CVS repository versus VTK 4.4.x are the likely cause. Thank you for bringing this to my attention. I will correct for this in the next release. -Sean Marius S Giurgi wrote: > Has anyone successfully compiled and use the vtkFLTK > (http://vtkfltk.sourceforge.net)? > > I was trying to build the vtkFLTK bridge library on Mac OS X (10.3.7) > unsuccessfully, with the following errors: > > Building object file CannyUI.o... > Building object file Canny.o... > Building object file CannyBase.o... > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx: In member > function `void > CannyBaseInternal::DeletePipeline(vtkRenderer*)': > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:184: warning: > `RemoveProp > ' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:226) > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:190: warning: > `RemoveProp > ' is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:226) > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx: In member > function `int > CannyBaseInternal::InitializeActors(vtkRenderer*)': > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:219: warning: > `AddProp' > is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:53) > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:367: warning: invalid > conversion from `vtkImageData*' to `vtkStructuredPoints*' > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:367: warning: > initializing argument 1 of `void > vtkSubPixelPositionEdgels::SetGradMaps(vtkStructuredPoints*)' > /Developer/vtkFLTK-0.6.1/Examples/Canny/CannyBase.cxx:391: warning: > `AddProp' > is deprecated (declared at /Developer/VTK/Filtering/vtkViewport.h:53) > Building executable /Developer/vtkFLTK-0.6.1/vtkFLTK-build/bin/Canny... > ld: Undefined symbols: > _png_create_info_struct > _png_create_read_struct > _png_destroy_read_struct > _png_init_io > _png_read_end > _png_read_info > _png_read_rows > _png_set_expand > _png_set_interlace_handling > _png_set_packing > _png_set_strip_16 > _jpeg_CreateDecompress > _jpeg_calc_output_dimensions > _jpeg_destroy_decompress > _jpeg_finish_decompress > _jpeg_read_header > _jpeg_read_scanlines > _jpeg_start_decompress > _jpeg_std_error > _jpeg_stdio_src > make[5]: *** [/Developer/vtkFLTK-0.6.1/vtkFLTK-build/bin/Canny] Error 1 > make[4]: *** [default_target] Error 2 > make[3]: *** [default_target_Canny] Error 2 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Examples] Error 2 > make: *** [default_target] Error 2 > > > I have the following installed: > cmake version 2.0.5 > fltk version 1.1.6 > vtk version CVS nightly build > > I'm not sure whether this is a mac os x problem or not. Could someone > please give me an idea of how to fix this? > Also, what about the warnings (some classes being deprecated). Is this > because I use the latest (CVS) vtk version? > > thanks, > marius > > _______________________________________________ > 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 > From seanm at nmr.mgh.harvard.edu Mon Jan 31 15:21:19 2005 From: seanm at nmr.mgh.harvard.edu (Sean McInerney) Date: Mon, 31 Jan 2005 15:21:19 -0500 Subject: [vtkusers] vtkFlRenderWindowInteractor in Mac OS X In-Reply-To: <35eea75b7f1df3413eb98a441351596d@dreamxplosion.com> References: <35eea75b7f1df3413eb98a441351596d@dreamxplosion.com> Message-ID: <41FE933F.4030807@nmr.mgh.harvard.edu> Hi Marius, When a FLTK window is closed, its callback is called. If this callback function calls exit(), the application terminates at that point without any subsequent application code being called (unless registered with atexit()). Check to see if this is the case in Charl's code. -Sean Marius S Giurgi wrote: > Anybody tried to use vtkFlRenderWindowInteractor in Mac OS X? > > Yes, I did study the example over and over and over, but... there are > still a few issues. Perhaps I'm still missing something. (maybe someone > could help me out? please?) > > First of all, in Charl's Cone3 example it says: > > // this is the standard way of "starting" a fltk application > int fl_ret = Fl::run(); > > This should be about right, BUT just to test it, I "bracketed" the > loop-starting command with: > > cout << "Starting the loop" << endl; > > // this is the standard way of "starting" a fltk application > int fl_ret = Fl::run(); > // very huge NB: note that we ->Delete() the vtkFlRenderWindowInteractor > // once we do this, the rest of the vtk pipeline will really disappear > > cout << "Ending the loop" << endl; > > As one should expect, after hitting the quit button, or close the > application, the loop gets interrupted and the rest of the code (after > the Fl::run) gets executed, which is, delete the fl_vtk_window, etc. The > "Ending the loop" messages should display as well. > > However, what I found out is that the code after the Fl::run never gets > executed (there's no "Ending the loop" message when I quit the > application). Am I lacking some fundamental concepts here? Is this > supposed to happen? Again this runs in Mac OS X. > > > Second: > in the Cone3 example the quit button and the text does NOT appear, as > the vtk window overlaps with it. I included a few captures below. > > Note: on Apple (Mac OS X) the default FLTK resource fork (/FL/mac.r) has > to be attached to the executable > in order to interact with the window at all. (the following captures > were taken without this fork attached to the Cone3 executable, however > attaching the fork doesn't change the display). > > > > ------------------------------------------------------------------------ > > > Capture1: Plain build of the Cone3 example. Actually you can see the > text being displayed for > a fraction of a second then the vtk windows get displayed on top of them. > > > > ------------------------------------------------------------------------ > > > Capture2: Here I commented out the fl_vtk_window2->show(); and rebuilt > the Cone3 > You can see that the text and button now shows (on the second window), > but (obviously) not > the vtk window. Once I click on the Second window, the vtk window pops > up as a separate window. > The Second window can be used for interaction (rotate, move, zoom the > SuperQuadric that is > displayed in the pop up window). (The vtk window does not allow for > interaction). > > > ------------------------------------------------------------------------ > > > Capture3: the Quit button is visible and it can be clicked :) However > regardless of how I chose > to quit the application the rest of the code (after Fl::run) doesn't get > executed. Why? > > marius > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 From pier_jan at hotmail.com Mon Jan 31 16:58:45 2005 From: pier_jan at hotmail.com (Pierre-Jean Boulianne) Date: Mon, 31 Jan 2005 16:58:45 -0500 Subject: [vtkusers] vtkBMPWriter 8 bits??? Message-ID: An HTML attachment was scrubbed... URL: From tohdj at bii.a-star.edu.sg Mon Jan 31 20:27:02 2005 From: tohdj at bii.a-star.edu.sg (Toh Da Jun) Date: Tue, 01 Feb 2005 09:27:02 +0800 Subject: [vtkusers] how to build the vtk.jar file In-Reply-To: <41FE3671.1090402@gmx.de> References: <41FE3671.1090402@gmx.de> Message-ID: <1107221222.10273.1.camel@localhost.localdomain> check out this website. http://www.duke.edu/~iwd/howto/VTK-Linux-Java_HOWTO.html tohdj On Mon, 2005-01-31 at 21:45, Stephan Theisen wrote: > Hi! > > I have to rebuild the vtk.jar file (for use in java) with Cmake, because > I will implement the volumepro hardware. > In the default vtk42 package the file exist in folder C:\vtk42\bin. > Can anybody send me a list, how I must set all the different variables > in Cmake to rebuild this file. > > 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 >