From vermaas at astron.nl Fri Aug 1 03:04:18 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 01 Aug 2003 09:04:18 +0200 Subject: [vtkusers] labels on axes of vtkCubeAxesActor2D Message-ID: Hi, Does anyone know how I can change the labels on the vtkCubeAxesActor2D? Is it possible to put my own labels there? If not, is there an alternative apart from drawing numerous vtkFollowers on the borders of my cube? Nico From zxem at my169.com Fri Aug 1 04:44:59 2003 From: zxem at my169.com (Xin Zhao) Date: Fri, 1 Aug 2003 8:44:59 +0000 Subject: [vtkusers] About read Double data form files Message-ID: Dear all, I read the data from the STF file into vtkDoubleArray. Then I output the data in the vtkDoubleArray. But I find a precision problem. The origianl data is different with the readed data. Does anyone can help me? ----------------Original Data-------------------------------- 0.000108115 0.000108359 0.000108854 0.000109615 0.000110673 0.000112077 0.000113903 0.000116259 0.000119304 0.000123261 0.000128439 0.000135249 0.000144205 0.000155884 0.000170833 0.000189402 0.000211594 0.00023695 0.00026452 0.000292958 0.000320071 0.000339371 0.000351409 0.000358484 0.000362605 0.000365186 0.000367077 0.000368506 0.000369237 0.000369483 0.00037023 0.00037162 0.000372666 0.000372814 0.000372079 0.000369778 0.00036393 0.000351061 0.000326656 0.000287857 0.000239782 0.000199901 0.000170233 0.000149502 0.000135556 0.000126279 0.000120046 0.000115774 0.00011278 0.000110644 0.000109105 0.000107994 0.000107198 0.000106638 0.000106252 0.000105998 0.000105837 0.00010574 0.000105679 0.000105647 ----------------Read into vtkDoubleArray and output----------- 1.0811499669216573E-4 1.0835900320671499E-4 1.0885400115512311E-4 1.0961500083794817E-4 1.1067299783462659E-4 1.1207700299564749E-4 1.139029991463758E-4 1.1625899787759408E-4 1.1930400069104508E-4 1.2326099385973066E-4 1.2843900185544044E-4 1.3524900714401156E-4 1.4420499792322516E-4 1.558840012876317E-4 1.70832994626835E-4 1.8940199515782297E-4 2.1159400057513267E-4 2.3694999981671572E-4 2.6452000020071864E-4 2.929579932242632E-4 3.200710052624345E-4 3.3937100670300424E-4 3.5140899126417935E-4 3.5848398692905903E-4 3.6260500201024115E-4 3.651859879028052E-4 3.670770092867315E-4 3.685060073621571E-4 3.692370082717389E-4 3.694829938467592E-4 3.702300018630922E-4 3.716200008057058E-4 3.726659924723208E-4 3.728139854501933E-4 3.7207899731583893E-4 3.6977799027226865E-4 3.6393001209944487E-4 3.510609967634082E-4 3.266560088377446E-4 2.8785699396394193E-4 2.397820062469691E-4 1.9990099826827645E-4 1.702330046100542E-4 1.495019969297573E-4 1.3555599434766918E-4 1.2627900287043303E-4 1.200460028485395E-4 1.1577399709494784E-4 1.1277999874437228E-4 1.1064400314353406E-4 1.091049998649396E-4 1.0799399751704186E-4 1.0719800047809258E-4 1.0663799912435934E-4 1.062520022969693E-4 1.0599799861665815E-4 1.0583700350252911E-4 1.0574000043561682E-4 1.0567899880697951E-4 1.0564699914539233E-4 1.0811499669216573E-4 1.0835900320671499E-4 1.0885400115512311E-4 1.0961500083794817E-4 1.1067299783462659E-4 1.1207700299564749E-4 1.139029991463758E-4 1.1625899787759408E-4 1.1930400069104508E-4 1.2326099385973066E-4 1.2843900185544044E-4 1.3524900714401156E-4 1.4420499792322516E-4 1.558840012876317E-4 1.70832994626835E-4 1.8940199515782297E-4 2.1159400057513267E-4 2.3694999981671572E-4 2.6452000020071864E-4 2.929579932242632E-4 3.200710052624345E-4 3.3937100670300424E-4 3.5140899126417935E-4 3.5848398692905903E-4 3.6260500201024115E-4 3.651859879028052E-4 3.670770092867315E-4 3.685060073621571E-4 3.692370082717389E-4 3.694829938467592E-4 3.702300018630922E-4 3.716200008057058E-4 3.726659924723208E-4 3.728139854501933E-4 3.7207899731583893E-4 3.6977799027226865E-4 3.6393001209944487E-4 3.510609967634082E-4 3.266560088377446E-4 2.8785699396394193E-4 2.397820062469691E-4 1.9990099826827645E-4 1.702330046100542E-4 1.495019969297573E-4 1.3555599434766918E-4 1.2627900287043303E-4 1.200460028485395E-4 1.1577399709494784E-4 1.1277999874437228E-4 1.1064400314353406E-4 1.091049998649396E-4 1.0799399751704186E-4 1.0719800047809258E-4 1.0663799912435934E-4 1.062520022969693E-4 1.0599799861665815E-4 1.0583700350252911E-4 1.0574000043561682E-4 1.0567899880697951E-4 1.0564699914539233E-4 1.0811499669216573E-4 1.0835900320671499E-4 1.0885400115512311E-4 1.0961500083794817E-4 1.1067299783462659E-4 1.1207700299564749E-4 1.139029991463758E-4 1.1625899787759408E-4 1.1930400069104508E-4 1.2326099385973066E-4 1.2843900185544044E-4 1.3524900714401156E-4 1.4420499792322516E-4 1.558840012876317E-4 1.70832994626835E-4 1.8940199515782297E-4 2.1159400057513267E-4 2.3694999981671572E-4 2.6452000020071864E-4 2.929579932242632E-4 3.200710052624345E-4 3.3937100670300424E-4 3.5140899126417935E-4 3.5848398692905903E-4 3.6260500201024115E-4 3.651859879028052E-4 3.670770092867315E-4 3.685060073621571E-4 3.692370082717389E-4 3.694829938467592E-4 3.702300018630922E-4 3.716200008057058E-4 3.726659924723208E-4 3.728139854501933E-4 3.7207899731583893E-4 3.6977799027226865E-4 3.6393001209944487E-4 3.510609967634082E-4 3.266560088377446E-4 2.8785699396394193E-4 2.397820062469691E-4 1.9990099826827645E-4 1.702330046100542E-4 1.495019969297573E-4 1.3555599434766918E-4 1.2627900287043303E-4 1.200460028485395E-4 1.1577399709494784E-4 1.1277999874437228E-4 1.1064400314353406E-4 1.091049998649396E-4 1.0799399751704186E-4 1.0719800047809258E-4 1.0663799912435934E-4 1.062520022969693E-4 1.0599799861665815E-4 1.0583700350252911E-4 1.0574000043561682E-4 1.0567899880697951E-4 1.0564699914539233E-4 -----------I use Java language---------------- s = in.readLine(); t = new StringTokenizer(s," "); for(int j=0; j Hi vtk Guru's I'm an MFC developer using vtk in one of my application.Can i perform any other drawing operations on HDC that's returned by GetMemoryDC() method of vtkWin32OpenGLRenderWindow?if yes what type of precautions i should take while performing my own drawing operation? Thanks in advance rgds Krishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.deBoer at polytec.de Fri Aug 1 05:22:43 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Fri, 1 Aug 2003 11:22:43 +0200 Subject: AW: [vtkusers] Rgdg GetMemoryDC method Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCA13@02polywbr.waldbronn.polytec.de> > drawing operations on HDC that's returned by GetMemoryDC() method of You can use something like STDMETHODIMP CVTKViewer::ViewDrawDC(/*[in]*/ OLE_HANDLE hDC) /***************************************************************** * Copies the scene to a DC *****************************************************************/ { ObjectLock cLock(this); HDC hWndDC = (HDC)hDC; int* size = m_pvtkWin32OpenGLRW->GetSize(); m_pvtkWin32OpenGLRW->SetupMemoryRendering(size[0], size[1], hWndDC); m_pvtkWin32OpenGLRW->Render(); HDC memDC = m_pvtkWin32OpenGLRW->GetMemoryDC(); ::BitBlt(hWndDC, 0, 0, size[0], size[1], memDC, 0, 0, SRCCOPY); m_pvtkWin32OpenGLRW->ResumeScreenRendering(); return S_OK; } also, take a look at the MFC-Samples of VTK. There is a function for copying data to the clipboard. greets Ingo From vtk at fri.nu Fri Aug 1 05:38:32 2003 From: vtk at fri.nu (Magnus Gedda) Date: 01 Aug 2003 11:38:32 +0200 Subject: [vtkusers] Get actors and volumes from vtkRenderer in Tcl Message-ID: <1059730712.32004.36.camel@chiron.internal.sidectech.se> Hi, Is there a way to get information on which actors/volumes are added to a vtkRenderer (using Tcl)? I need to remove actors/volumes added to a vtkRenderer, but since I don't keep track which actors/volumes I have added I cannot just use "RemoveActor/RemoveVolume". "GetActors/GetVolumes" looks like the way to go, but how do I extract the actors/volumes from the returned collections? This only seems to print the name of the returned collection (vtkTemp0). $renderer is a vtkRenderer with some actors attached to it: ---------------------------------------- set renderActors [$renderer GetActors] foreach actor $renderActors { puts $actor } => vtkTemp0 ---------------------------------------- Regards Magnus Gedda, Sidec Technologies From pettersson.johanna at home.se Fri Aug 1 06:54:45 2003 From: pettersson.johanna at home.se (Johanna) Date: Fri, 01 Aug 2003 12:54:45 +0200 Subject: [vtkusers] Get actors and volumes from vtkRenderer in Tcl Message-ID: <1059735285.649e5bc0pettersson.johanna@home.se> Hi I am attaching a tcl proc called RemoveActors in which I access all rendered actors and put them in a collection, allActors. Then I traverse this collection and remove the actors recursively. proc RemoveActors {} { set allActors [ren1 GetActors] $allActors InitTraversal set nrOfItems [$allActors GetNumberOfItems] for {set i 0} {$i<$nrOfItems} {incr i} { ren1 RemoveActor [$allActors GetNextActor] } renWin Render } Maybe this can be of some help. I had the same trouble a while ago so check the vtkusers mailinglist for subject "Help with vtkActorCollection" or something like that. Maybe you can find more answers there. Sincerely Johanna Hi, Is there a way to get information on which actors/volumes are added to a vtkRenderer (using Tcl)? I need to remove actors/volumes added to a vtkRenderer, but since I don't keep track which actors/volumes I have added I cannot just use "RemoveActor/RemoveVolume". "GetActors/GetVolumes" looks like the way to go, but how do I extract the actors/volumes from the returned collections? This only seems to print the name of the returned collection (vtkTemp0). $renderer is a vtkRenderer with some actors attached to it: ---------------------------------------- set renderActors [$renderer GetActors] foreach actor $renderActors { puts $actor } => vtkTemp0 ---------------------------------------- Regards Magnus Gedda, Sidec Technologies _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From vermaas at astron.nl Fri Aug 1 08:10:00 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 01 Aug 2003 14:10:00 +0200 Subject: [vtkusers] simple SetLabelFormat question Message-ID: Hi, Which formatstring should I use with SetLabelFormat to get only integers of 8 positions? (I keep getting floats or scientific notations). Nico From yass at uscx.net Fri Aug 1 08:13:32 2003 From: yass at uscx.net (yasser salman) Date: Fri, 1 Aug 2003 05:13:32 -0700 (PDT) Subject: [vtkusers] 3D volume.. Message-ID: <20030801121332.DB8CC3A2B@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From vermaas at astron.nl Fri Aug 1 08:33:24 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 01 Aug 2003 14:33:24 +0200 Subject: [vtkusers] seg.fault, number of actors limit reached? Message-ID: Hi, I have a memory problem (seg.fault). - In my class I defined an array of actors of the vtkFollower type as a member - In the constructor I instanciate them. My program crashes (seg.fault), but not in the constructor. - when I change the NUMBER_OF_ANNOTATIONS to a lower number it works, the limit seems to be 4 in this case. - when I do not use the array, but something like actor0, actor1, actor2, then the same problem occurs. - when I change it to vtkActors instead of vtkFollower, exactly the same problem. What can be wrong? I have a total of about 35 or 40 actors, is that too much? Nico ----------- the source ------------------------- {***in the private section of my class ***} #define NUMBER_OF_ANNOTATIONS 10 vtkFollower* itsActorAnnotation[NUMBER_OF_ANNOTATIONS]; {*** in the constructor ***} for (int i=0; iitsActorAnnotation[i] = vtkFollower::New(); } ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From marcelomaxaqp at yahoo.es Fri Aug 1 08:38:50 2003 From: marcelomaxaqp at yahoo.es (=?iso-8859-1?q?Marcelo=20Flores?=) Date: Fri, 1 Aug 2003 14:38:50 +0200 (CEST) Subject: [vtkusers] Vtk Component And Using Vtk wiht Cbuilder, Compatibility with Visual Studio.net Message-ID: <20030801123850.89079.qmail@web41605.mail.yahoo.com> Hi 1)Is there any vtk component or ActiveX which i can insert to a Visual C++ program? 2) It`s possible to use Vtk with any version of Cbuilder? 3)Is vtk compatible with any .Net language? Thanks Marmax --------------------------------- Yahoo! Messenger Nueva versión: Super Webcam, voz, caritas animadas, y más #161;Gratis! -------------- next part -------------- An HTML attachment was scrubbed... URL: From brownr at ucalgary.ca Fri Aug 1 12:39:34 2003 From: brownr at ucalgary.ca (Robb Brown) Date: Fri, 1 Aug 2003 10:39:34 -0600 Subject: [vtkusers] Re: [Pythonmac-SIG] Has anyone running vtk+python on OSX? In-Reply-To: <16170.37373.292636.327582@montanaro.dyndns.org> Message-ID: What version of gcc are you using? What version of the Tk framework? I'm just starting my new VTK build. Last time I compiled it was gcc 3.1 and AquaTk 8.4.1. When I tried to upgrade to a newer Tk (8.4.2) without rebuilding VTK it crashed with a function prototype error. Obviously some reasonably major work was done to AquaTk between those two minor releases. I'll try building with the newest version, but you might want to try going back to 8.4.1. On Friday, August 1, 2003, at 10:14 AM, Skip Montanaro wrote: > Robb, > > I tried building VTK 4.2 yesterday w/ Python 2.3. If failed building > vtkTkWidgetsInit.o with a boatload of syntax errors: > > Building object file vtkTkWidgetsInit.o... > In file included from > /Users/skip/src/VTK-4.2.2/Rendering/vtkTkWidgetsInit.cxx:1 > 9: > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h:339: > type specifier omitted for parameter `CONST84' > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h:339: > parse error before `char' > In file included from > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h > :1576, > from > /Users/skip/src/VTK-4.2.2/Rendering/vtkTkWidgetsInit.cxx:1 > 9: > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:145: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:145: > parse error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:237: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:327: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:330: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:412: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:412: > parse error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:479: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:482: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:484: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:487: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:489: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:491: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:494: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:496: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:499: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:501: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:504: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:516: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:516: > parse error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:960: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:960: > parse error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:986: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1014: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1015: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1039: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1039: > parse error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1061: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1062: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1063: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1064: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1065: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1066: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1067: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1068: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1069: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1070: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1071: > syntax error before `char' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1074: > type specifier omitted for parameter `CONST84' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:1074: > parse error before `char' > make[3]: *** [vtkTkWidgetsInit.o] Error 1 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Rendering] Error 2 > make: *** [default_target] Error 2 > > Got any suggestions? > > Thanks, > > -- > Skip Montanaro > Got gigs? http://www.musi-cal.com/ > Got spam? http://spambayes.sf.net/ > > _____________________________ Robb Brown Seaman Family MR Center Calgary, AB From brownr at ucalgary.ca Fri Aug 1 14:38:19 2003 From: brownr at ucalgary.ca (Robb Brown) Date: Fri, 1 Aug 2003 12:38:19 -0600 Subject: [vtkusers] VTK 4.2.2 with Python 2.3 on OS X Message-ID: <52AC0BB5-C44F-11D7-8E5A-000A959032C4@ucalgary.ca> Has anyone gotten VTK running with Python 2.3 on OSX? The switch from Python 2.2 to 2.3 appears to break VTK's wrapping. When doing an "import vtk" here's the error: Python 2.3 (#2, Jul 30 2003, 11:45:28) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import vtk Traceback (most recent call last): File "", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- packages/vtk_python/vtk/__init__.py", line 8, in ? from filtering import * File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- packages/vtk_python/vtk/filtering.py", line 7, in ? from libvtkFilteringPython import * ImportError: Failure linking new module: : dyld: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/ Contents/MacOS/Python Undefined symbols: _PyArg_VTKParseTuple _PyVTKClass_Check _PyVTKClass_New _PyVTKClass_vtkCollectionNew _PyVTKClass_vtkDataObjectNew _PyVTKClass_vtkImplicitFunctionNew _PyVTKClass_vtkLocatorNew _PyVTKClass_vtkObjectNew _PyVTKClass_vtkPointLocatorNew _PyVTKClass_vtkScalarsToColorsNew _PyVTKClass_vtkSourceNew __Z19vtkPythonCheckArrayP7_objectiPfi __Z19vtkPythonCheckArrayP7_objectiPi >>> vtkCommon is built, and is accessible (in the same place as all the other libraries). It's been suggested on the Python list this might be due to VTK's use of -flat_namespace. Does anyone have any thoughts? Build was with GCC 3.1 (same as Python) and VTK using Carbon. Thanks, Robb _____________________________ Robb Brown Seaman Family MR Center Calgary, AB From yxliu at fudan.edu.cn Sat Aug 2 03:27:20 2003 From: yxliu at fudan.edu.cn (yxliu) Date: Sat, 02 Aug 2003 15:27:20 +0800 Subject: [vtkusers] how to replace the old lib with the new lib in VTK? Message-ID: <000801c358c7$82953aa0$1f64a8c0@YXLIU> Hi vtkusers: I change some classes in VTK and recompile them, but when I replace the old lib with the new lib the app based on them report Link Error. How can I use the new lib? Best regards: yxliu -------------- next part -------------- An HTML attachment was scrubbed... URL: From ma_nju at hotmail.com Sat Aug 2 05:40:01 2003 From: ma_nju at hotmail.com (Ma Qianli) Date: Sat, 02 Aug 2003 17:40:01 +0800 Subject: [vtkusers] error caused by libpng Message-ID: Hi, all My OS is Redhat Linux9.0. And I build my tiny application using vtk+qt. There are some error caused by libpng at running time, as following: libpng warning: Application was compiled with png.h from libpng-1.2.2 libpng warning: Application is running with png.c from libpng-1.0.12 libpng error: Incompatible libpng version in application and library KThemeBase: Unable to load pixmap red_checkmark.png I used libpng-1.2.2 to rebuild the vtk libs and my application. It runs well. So, is it ok to update libpng to version 1.2.2? Will it cause any other problem? _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn From c.p.botha at ewi.tudelft.nl Sat Aug 2 18:42:28 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Sat, 02 Aug 2003 23:42:28 +0100 Subject: [vtkusers] Re: Catching vtkError in python In-Reply-To: <3F2A86EC.90706@creatis.insa-lyon.fr> References: <3F2A86EC.90706@creatis.insa-lyon.fr> Message-ID: <3F2C3E54.7090606@ewi.tudelft.nl> Mathieu, I'm forwarding my reply to VTK users, as it might be useful to others. Mathieu Malaterre wrote: > I have seen your post: > > http://public.kitware.com/pipermail/vtk-developers/2003-March/002358.html > > But I still don't understand how I can use it in a : > > try: > ... > except ErrorEvent: > ... > > block. Could you please send me a small sample ? The VTK Python observer-based error handling doesn't follow this pattern. If you add an ErrorEvent observer to an object, and that observer (Python callable object) has a valid CallDataType attribute, it will be called with the errormessage as parameter. Please see the attached example. You need a relatively recent CVS for this, as I only committed it quite a while after the posting you quote above. Unfortunately, due to the way in which Python wrapping works, manually raising an exception in your ErrorEvent observer also won't work: you'll get an immediate printout of the exception that you raise, but you won't be able to catch it. This is because the wrapped function that's being called by Python (in our case "reader.Update()") returns a valid result, so Python doesn't know that something has gone wrong and doesn't query the current exception. Due to this, the wrapping system calls PyErr_Print() so that you at least get to see what went wrong. See this: http://www.python.org/dev/doc/devel/ext/callingPython.html to understand why it has to be this way. VTK doesn't make use of C++ exceptions, so it's incredibly difficult for the error information to propagate all the way back to the actual function that is being called by Python. Because ITK makes use of C++ exceptions, we were able to re-propagate ALL errors back to Python as Python exceptions. VTK does NOT make use of C++ exceptions for good reasons. Maybe some of the developers have other ideas about this... it would for instance be interesting to see what would happen if the vtkErrorMacro were modified to throw an exception instead of invoking a VTK event. Developers? Personally, I think both error handling systems have their merits, although in this case and especially in the case of VTK <-> ITK pipelines that have been connected in scripts, C++ exception-based error handling might be more defensible. HTH, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: errorTest.py URL: From cpanagio at cs.ucl.ac.uk Sat Aug 2 16:12:48 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Sat, 02 Aug 2003 21:12:48 +0100 Subject: [vtkusers] question: resize polydata Message-ID: <3F2C1B40.1000103@cs.ucl.ac.uk> Dear all I need to use vtkPCAfilter and vtkProcrustesAlignmentFilter in 2+ different pointsets. The objects they represent are similar ( they all come from different sets of 2D images where each set represent a volume). However the sets contain different number of 2D images, so the points contained in the vtkPolyData (after reading all files) are different for each set. As PCA and Procrustes methods can operate *only *in sets with the same number of points, does anybody know how could I resize the polydata sets to the same number of points? Has anyone encountered this problem before? I would be really really greatful for any advice best regards christos p.s. if the resizing can be done with minimum loss of topological data it would be even better, however just resizing will do! thanks again From c.p.botha at ewi.tudelft.nl Sun Aug 3 10:16:30 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Sun, 03 Aug 2003 16:16:30 +0200 Subject: [vtkusers] Re: Catching vtkError in python In-Reply-To: <3F2C3E54.7090606@ewi.tudelft.nl> References: <3F2A86EC.90706@creatis.insa-lyon.fr> <3F2C3E54.7090606@ewi.tudelft.nl> Message-ID: <3F2D193E.6090901@ewi.tudelft.nl> Charl P. Botha wrote: > The VTK Python observer-based error handling doesn't follow this > pattern. If you add an ErrorEvent observer to an object, and that > observer (Python callable object) has a valid CallDataType attribute, it > will be called with the errormessage as parameter. Please see the > attached example. You need a relatively recent CVS for this, as I only > committed it quite a while after the posting you quote above. Whoops, that was an old and incorrect example. With this mail, the correct one. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: errorTest.py URL: From cpanagio at cs.ucl.ac.uk Sun Aug 3 23:29:06 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Mon, 04 Aug 2003 04:29:06 +0100 Subject: [vtkusers] some help please with raycasting! Message-ID: <3F2DD302.9070105@cs.ucl.ac.uk> dear all this is my second post about this subject :) - sorry for being redundant! I have a problem with raycasting and i am not sure if it is implementable in vtk (i dont have the vtk book!) I have a 3D volume and I want to select points on its surface. What I thought to do is to cast rays from the centre of mass of the volume for set angles in all directions and save they intersections as the points. Do you know if I can do this in vtk? If i do, which vtk method should i use? (I ve tried to understand what they do from the online documentation however I did not find for example methods to set for example the ray source in a specific point (centroid of volume in my case) or how to set the direction of the rays!) I would be very very greatful if you could reply to my message as I have a deadline to catch and I need to do something with the above matter!! thank you very much for your time all the best christos From king.benjamin at mh-hannover.de Mon Aug 4 03:40:30 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Mon, 04 Aug 2003 08:40:30 +0100 Subject: [vtkusers] some help please with raycasting! In-Reply-To: <3F2DD302.9070105@cs.ucl.ac.uk> References: <3F2DD302.9070105@cs.ucl.ac.uk> Message-ID: Hi Christos! > I have a 3D volume and I want to select points on its surface. What I > thought to do is to cast rays from the centre of mass of the volume for > set angles in all directions and save they intersections as the points. How is that volume defined? If you have a polygonal representation of it's surface, you could try a vtkCutter. It takes an implicit surface, e.g. a plane and computes the intersection of the volume with that plane. If your volume is a "real" volume, i.e. a threedimensional image, then I'm not sure if your problem is well defined, because you'd have to decide which voxels belong to the surface. If you do, you could try to adapt one of the vtkVolumeRayCastFunctions, but that will require a lot of hacking. cu, Benjamin -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From mekic at gris.uni-tuebingen.de Mon Aug 4 06:41:42 2003 From: mekic at gris.uni-tuebingen.de (Melissa Mekic) Date: Mon, 4 Aug 2003 12:41:42 +0200 (CEST) Subject: [vtkusers] vtkPointPicker Message-ID: Hi, I am trying to use vtkPointPicker to select points in 3D View. I found only sample code with the obsolete function: SetEndPickMethod. Does anybody have new sample code for me or any Idea which initialization steps are necessary to use vtkPointPicker. Thank you for your help! Melissa From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 4 06:33:52 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 04 Aug 2003 12:33:52 +0200 Subject: [vtkusers] vtkPointPicker In-Reply-To: References: Message-ID: <3F2E3690.3080608@creatis.insa-lyon.fr> Melissa, Have a look here: http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Rendering/Testing/Tcl/pickCells.tcl and http://www.vtk.org/doc/nightly/html/c2_vtk_e_1.html#c2_vtk_e_vtkCellPicker HTH mathieu Melissa Mekic wrote: > Hi, > > I am trying to use vtkPointPicker to select points in 3D > View. I found only sample code with the obsolete function: > SetEndPickMethod. > Does anybody have new sample code for me or any Idea which > initialization steps are necessary to use vtkPointPicker. > > Thank you for your help! > Melissa > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From sayaz03 at yahoo.com Mon Aug 4 08:23:42 2003 From: sayaz03 at yahoo.com (serkan ayaz) Date: Mon, 4 Aug 2003 05:23:42 -0700 (PDT) Subject: [vtkusers] 3d drawing Message-ID: <20030804122342.5872.qmail@web11505.mail.yahoo.com> Hello there, how can i draw a 3d cube with vtk and is there any web page provides examples about graphics? regards, serkan __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From I.deBoer at polytec.de Mon Aug 4 08:28:13 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 4 Aug 2003 14:28:13 +0200 Subject: AW: [vtkusers] 3d drawing Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCA31@02polywbr.waldbronn.polytec.de> Hi Serkan, > how can i draw a 3d cube with vtk and is there any web > page provides examples about graphics? There is a VTK example called Cube.cxx greets Ingo From j.mccoy at gmx.de Mon Aug 4 09:25:05 2003 From: j.mccoy at gmx.de (joseph mccoy) Date: Mon, 4 Aug 2003 15:25:05 +0200 Subject: [vtkusers] examples for vtkStreamer / vtkInterpolatedVelocityField Message-ID: <009b01c35a8b$d2291e90$1a01a8c0@cad> Hi All, does anybody know where to find examples for the general use of 'vtkStreamer' and/or 'vtkInterpolatedVelocityField' in cpp or tcl ? I've searched the archive and both books, but the only examples I found where only for StreamLines. Thanks in advance... Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From garsha at itg.uiuc.edu Mon Aug 4 10:27:26 2003 From: garsha at itg.uiuc.edu (Karl Garsha) Date: Mon, 04 Aug 2003 09:27:26 -0500 Subject: [Fwd: Re: [vtkusers] VTK 4.2.2 with Python 2.3 on OS X] Message-ID: <3F2E6D4E.10209@itg.uiuc.edu> -------- Original Message -------- Subject: Re: [vtkusers] VTK 4.2.2 with Python 2.3 on OS X Date: Sun, 03 Aug 2003 16:15:54 -0500 From: Karl Garsha To: Robb Brown References: <52AC0BB5-C44F-11D7-8E5A-000A959032C4 at ucalgary.ca> Actually I've been wrestling with the same problem over the past week. The 2.3 Python build is better integrated with the native windowing system and wxPython works better, but, much to my disappointment, there is some sort of linking issue when I try to import vtk from the interpreter. The 2.2.3 build of Python works fine with VTK+Python on OS X, but the Python GUI API's aren't as well integrated as with 2.3. I would also appreciate any ideas as to how to straighten out this issue--I wish I could provide you with an answer. -Karl Robb Brown wrote: > Has anyone gotten VTK running with Python 2.3 on OSX? The switch from > Python 2.2 to 2.3 appears to break VTK's wrapping. When doing an > "import vtk" here's the error: > > Python 2.3 (#2, Jul 30 2003, 11:45:28) > [GCC 3.1 20020420 (prerelease)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import vtk > Traceback (most recent call last): > File "", line 1, in ? > File > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > packages/vtk_python/vtk/__init__.py", line 8, in ? > from filtering import * > File > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > packages/vtk_python/vtk/filtering.py", line 7, in ? > from libvtkFilteringPython import * > ImportError: Failure linking new module: : dyld: > /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/ > Contents/MacOS/Python Undefined symbols: > _PyArg_VTKParseTuple > _PyVTKClass_Check > _PyVTKClass_New > _PyVTKClass_vtkCollectionNew > _PyVTKClass_vtkDataObjectNew > _PyVTKClass_vtkImplicitFunctionNew > _PyVTKClass_vtkLocatorNew > _PyVTKClass_vtkObjectNew > _PyVTKClass_vtkPointLocatorNew > _PyVTKClass_vtkScalarsToColorsNew > _PyVTKClass_vtkSourceNew > __Z19vtkPythonCheckArrayP7_objectiPfi > __Z19vtkPythonCheckArrayP7_objectiPi > >>> > > > vtkCommon is built, and is accessible (in the same place as all the > other libraries). It's been suggested on the Python list this might be > due to VTK's use of -flat_namespace. Does anyone have any thoughts? > > Build was with GCC 3.1 (same as Python) and VTK using Carbon. > > Thanks, > > Robb > > _____________________________ > Robb Brown > Seaman Family MR Center > Calgary, AB > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- Karl Garsha Light Microscopy Specialist Imaging Technology Group Beckman Institute for Advanced Science and Technology University of Illinois at Urbana-Champaign 405 North Mathews Avenue Urbana, IL 61801 Office: B650J Phone: 217.244.6292 Fax: 217.244.6219 Mobile: 217.390.1874 www.itg.uiuc.edu From cepi at neo.tamu.edu Mon Aug 4 11:32:34 2003 From: cepi at neo.tamu.edu (Epifanio, Craig C) Date: Mon, 4 Aug 2003 15:32:34 -0000 Subject: [vtkusers] VTK + Python on Solaris Message-ID: <200308041532.h74FWZ4H017848@smtp-relay.tamu.edu> I am trying to build VTK 4.2.2 with Python 2.2.2 on Solaris 8 so that I can try out the MayaVi visualization code. I have sucessfully managed to compile VTK and both the c++ and tcl examples run beautifully for the most part. But when I try to use python I get the following error: >>> import vtkpython Traceback (most recent call last): File "", line 1, in ? File "/usr/local/src/VTK-4.2.2/Wrapping/Python/vtkpython.py", line 7, in ? from vtk import * File "/usr/local/src/VTK-4.2.2/Wrapping/Python/vtk/__init__.py", line 7, in ? from common import * File "/usr/local/src/VTK-4.2.2/Wrapping/Python/vtk/common.py", line 7, in ? from libvtkCommonPython import * ImportError: ld.so.1: python: fatal: relocation error: file /usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so: symbol __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: referenced symbol not found I am not a python user, so I am a bit stuck. Does anyone recognize this one? I would be much obliged if someone could point me in the right direction. Thanks, Craig PS some details: i) I compiled VTK using the Sun cc and CC compilers. I also tried the GNU compilers but ran into a number of errors (non-ANSI stuff I think). ii) I installed python from the binary at sunfreeware.com. I believe this was compiled using gcc. iii) I have tried several of the suggestions I found on the archives (e.g., various settings for LD_LIBRARY_PATH and PYTHONPATH). From john.e.wilson at ntlworld.com Mon Aug 4 11:52:48 2003 From: john.e.wilson at ntlworld.com (john wilson) Date: Mon, 4 Aug 2003 16:52:48 +0100 Subject: [vtkusers] configuring cmake Message-ID: <000c01c35aa0$74674ce0$90700250@oemcomputer> Hi, I have just installed vtk and cmake on windows 98se I have a borland c++ command line compiler (free!) the setup programs for both vtk and cmake have gone into the c:\vtk on setting up all vtk and cmake files have gone into C:\Program Files\vtk42 I am getting an error on configuring cmake as follows "cmake error: source: c:program files/vtk42/makelists.txt does not match source used to generate cache c:/vtk/makelists.txt run cmake with a different cource directory" I know there is no makelists.txt in the c:\vtk directory - thus how can I match this? any help appreciated thanks John Wilson -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdavis at northrim.net Mon Aug 4 13:44:44 2003 From: tdavis at northrim.net (tdavis at northrim.net) Date: Mon, 4 Aug 2003 11:44:44 -0600 (MDT) Subject: [vtkusers] Help with composite ray casting Message-ID: <1599.132.178.157.28.1060019084.squirrel@webmail.northrim.net> I am trying to do something very similar to Figure 7-20 on page 224 of the VTK book 3rd edition. Composite ray casting from a CT scan. I've looked at the examples, but I'm having trouble figuring out how to set the opacity and color to get a similar image. Any examples or help would be greatly appreciated!! Diane Davis From hsalas at tuny.com.mx Mon Aug 4 15:29:33 2003 From: hsalas at tuny.com.mx (Hector Salas Rodriguez) Date: Mon, 4 Aug 2003 14:29:33 -0500 Subject: [vtkusers] vtkImager Message-ID: <003701c35abe$bc5e7960$5701a8c0@tuny.com.mx> Hi friends Is vtkImager class deprecated? Why vtkImager.h & vtkImager.cxx files aren't included in the 4.2.2 distribution? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From frantzdale at intelligent-imaging.com Mon Aug 4 17:14:44 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Mon, 4 Aug 2003 14:14:44 -0700 Subject: [vtkusers] Common/Makefile problem Message-ID: I'm compiling VTK on OSX. I was getting this error: "ld: can't map file" for which google brought up only hits for VTK. (the file in question was /usr/lib/python2.2. For me the fix was as follows in Common/Makefile, there was this line, except that after -L/usr/lib/python2.2 there was an extranious "/usr/lib/python2.2". Changing it to this fixed the error. I'm not sure what cmake did to cause that error, though. c++ -bundle -flat_namespace -undefined suppress -o /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkCommonPython.so $(vtkCommonPython_SRC_OBJS) -L. -L/Users/ben/Desktop/vtk/VTK-4.2.2/bin -L/usr/lib/python2.2 -lvtkCommon -framework AppKit -lpthread -lm I hope this is helpful. (Or that it's since been fixed.) --Ben From brownr at ucalgary.ca Mon Aug 4 17:57:27 2003 From: brownr at ucalgary.ca (brownr at ucalgary.ca) Date: Mon, 04 Aug 2003 15:57:27 -0600 Subject: [vtkusers] VTK 4.2.2 with Python 2.3 on OS X In-Reply-To: <3F2D7B8A.6060708@itg.uiuc.edu> Message-ID: <200308042157.h74LvT831202@mhost2.ucalgary.ca> A few of us on the Mac Python mailing list have been discussing this... the problem arises because loadable modules (like Python modules) and shared libraries are not the same thing on Mach-O based systems (which OSX is). On Linux systems it looks like all the VTK Python modules are linked against each other - you can't do this on the Mac because they're modules, not libraries. So some tricks were used to get it working. In the interest of stability, the Python 2.3 release no longer supports this. There is a recommended way of solving this problem (implemented in the Numeric/Numarray package). So the question is, how hard is it to modify the VTK wrapping system to do this? The few of us on the Python list don't know much about it, so we need some expertise from this list. Any experts in VTK Python wrapping? Karl Garsha said: > Actually I've been wrestling with the same problem over the past week. > The 2.3 Python build is better integrated with the native windowing > system and wxPython works better, but, much to my disappointment, there > is some sort of linking issue when I try to import vtk from the > interpreter. The 2.2.3 build of Python works fine with VTK+Python on OS > X, but the Python GUI API's aren't as well integrated as with 2.3. I > would also appreciate any ideas as to how to straighten out this > issue--I wish I could provide you with an answer. > -Karl > > Robb Brown wrote: > > > Has anyone gotten VTK running with Python 2.3 on OSX? The switch from > > Python 2.2 to 2.3 appears to break VTK's wrapping. When doing an > > "import vtk" here's the error: > > > > Python 2.3 (#2, Jul 30 2003, 11:45:28) > > [GCC 3.1 20020420 (prerelease)] on darwin > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import vtk > > Traceback (most recent call last): > > File "", line 1, in ? > > File > > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > > packages/vtk_python/vtk/__init__.py", line 8, in ? > > from filtering import * > > File > > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site- > > packages/vtk_python/vtk/filtering.py", line 7, in ? > > from libvtkFilteringPython import * > > ImportError: Failure linking new module: : dyld: > > /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/ > > Contents/MacOS/Python Undefined symbols: > > _PyArg_VTKParseTuple > > _PyVTKClass_Check > > _PyVTKClass_New > > _PyVTKClass_vtkCollectionNew > > _PyVTKClass_vtkDataObjectNew > > _PyVTKClass_vtkImplicitFunctionNew > > _PyVTKClass_vtkLocatorNew > > _PyVTKClass_vtkObjectNew > > _PyVTKClass_vtkPointLocatorNew > > _PyVTKClass_vtkScalarsToColorsNew > > _PyVTKClass_vtkSourceNew > > __Z19vtkPythonCheckArrayP7_objectiPfi > > __Z19vtkPythonCheckArrayP7_objectiPi > > >>> > > > > > > vtkCommon is built, and is accessible (in the same place as all the > > other libraries). It's been suggested on the Python list this might be > > due to VTK's use of -flat_namespace. Does anyone have any thoughts? > > > > Build was with GCC 3.1 (same as Python) and VTK using Carbon. > > > > Thanks, > > > > Robb > > > > _____________________________ > > Robb Brown > > Seaman Family MR Center > > Calgary, AB > > > > _______________________________________________ > > This is the private VTK discussion list. Please keep messages on-topic. > > Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > -- From nexgen at poczta.onet.pl Mon Aug 4 18:31:08 2003 From: nexgen at poczta.onet.pl (=?iso-8859-2?Q?Micha=B3_Strzelecki?=) Date: Tue, 5 Aug 2003 00:31:08 +0200 Subject: [vtkusers] Vtk Component And Using Vtk wiht Cbuilder, Compatibility with Visual Studio.net Message-ID: <001701c35ad8$1d777670$1500a8c0@mws> >Hi >1)Is there any vtk component or ActiveX which i can insert to a Visual C++ program? >2) It`s possible to use Vtk with any version of Cbuilder? <- YES It is possible. You must configure vtk library with cmake (for Borland) and compile it. >3)Is vtk compatible with any .Net language? >Thanks >Marmax Michal From prabhu at aero.iitm.ernet.in Mon Aug 4 21:40:26 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 5 Aug 2003 07:10:26 +0530 Subject: [vtkusers] VTK + Python on Solaris In-Reply-To: <200308041532.h74FWZ4H017848@smtp-relay.tamu.edu> References: <200308041532.h74FWZ4H017848@smtp-relay.tamu.edu> Message-ID: <16175.2826.639934.570211@monster.linux.in> Hi, >>>>> "ECC" == Craig C Epifanio writes: ECC> I am trying to build VTK 4.2.2 with Python 2.2.2 on Solaris 8 ECC> so that I can try out the MayaVi visualization code. I have ECC> sucessfully managed to compile VTK and both the c++ and tcl ECC> examples run beautifully for the most part. But when I try ECC> to use python I get the following error: ECC> ImportError: ld.so.1: python: fatal: relocation error: file ECC> /usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so: symbol ECC> __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: ECC> referenced symbol not found [snip] I'm not sure this will help but does it work when you use the vtkpython interpreter instead of the Python interpreter? There should be a vtkpython executable that is built inside the bin directory. This binary was created specifically to help with problems such as these. cheers, prabhu From sdor5151 at mail.usyd.edu.au Mon Aug 4 23:38:34 2003 From: sdor5151 at mail.usyd.edu.au (sdor5151 at mail.usyd.edu.au) Date: Tue, 5 Aug 2003 13:38:34 +1000 Subject: [vtkusers] 2D landmarking Message-ID: <1060054714.3f2f26baa37b2@www-mail.usyd.edu.au> Hello, I've created a little programme for landmarking 2D images which reads in a series of PNG files. For each file f, what I do is: - pnmReader->SetFilename(f) - create an imagemapper and set its input to pnmReader->GetOutput() - create an Actor2D, Renderer, RenderWindow & RWInteractor - I extended the vtkInteractorStyle to my own style which (collects points if left button is clicked and causes ExitEvent if right button is clicked) - points appended to file POINTS 4 float 31 31 0 60 74 0 90 4 0 51 44 0 POINTS 4 float 41 37 0 58 80 0 62 51 0 44 69 0 btw. is this format valid? - increment file I am quite new to VTK so can someone please comment on my way of doing things? Is there a simpler way for the whole process of displaying a 2D image (and interacting)? Also I would like to mark the points clicked, in red say, when I left click. How would I do that? Finally, I've been trying to experiment reading in the same file from ITK but have failed... can anyone please lead me in the right direction? thanks a lot, Steven ------------------------------------------------- This mail sent through IMP: www-mail.usyd.edu.au From king.benjamin at mh-hannover.de Tue Aug 5 03:22:58 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Tue, 05 Aug 2003 08:22:58 +0100 Subject: [vtkusers] Help with composite ray casting In-Reply-To: <1599.132.178.157.28.1060019084.squirrel@webmail.northrim.net> References: <1599.132.178.157.28.1060019084.squirrel@webmail.northrim.net> Message-ID: Hi Diane, it is very difficult to get pleasing transfer functions for volume rendering. To get an introduction to the shortcomings of the trial and error mode you are probably using now you might find an interesting read here: www.ices.utexas.edu/ccv/papers/tf-bakeoff-2001.pdf To get some transfer function to start with you could use VolView (by Kitware). The format of the saved functions is very readable and easy to parse with tcl. Hope it helps, Benjamin -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From cpanagio at cs.ucl.ac.uk Tue Aug 5 04:53:58 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Tue, 05 Aug 2003 09:53:58 +0100 Subject: [vtkusers] order of execution Message-ID: <3F2F70A6.50307@cs.ucl.ac.uk> dear all I have a set of 2D files which I read with vtkImageReader. when this is done I use vtkContourFilter, vtkPolyDataNormals (to create a vtkPolyData representation of the volume) (function 1) and then I create the mapper and the actor. The renderer, renderwindow, mappe and actor are called in a different function than the reader (function 2) Everythings works fine. However I dont call function 2, the system does not even read the files. I have debugOn() so I can see when it actually reads the files, and it reads them after the window is opened (so i have to wait with a gray screen) and then the object appears. Is there any way to force vtk to execute the reading before the window appears? I would like to do this not only because I am annoyed by watching a grey screen for 10 seconds, but I need to do other calculations to. Also, when function 2 is called nothing after this point is executed as the window is active an probably the system has to deal with this. If I want the system to continue with other calculations is there any way to do it? (threads?) thank you very much all christos From tazin at iec.co.il Tue Aug 5 06:05:38 2003 From: tazin at iec.co.il (leonid) Date: Tue, 5 Aug 2003 13:05:38 +0300 Subject: [vtkusers] Need help with vtkVideoSource Message-ID: <025001c35b39$1fa24ea0$8e14010a@hai.iec.co.il> Hi All Does anybody know , how to connect mpeg video with vtkVideoSource in next tcl sample package require vtk vtkImageReader2 mpeg mpeg SetFileName random.mpg mpeg Update vtkVideoSource grabber grabber SetInput [mpeg GetOutput] ;# not existing method !!! grabber SetOutputFormatToRGB grabber SetFrameSize 320 240 1 grabber SetOutputWholeExtent 0 159 0 119 0 0 grabber SetFrameBufferSize 26 grabber SetNumberOfOutputFrames 26 grabber Grab [grabber GetOutput] UpdateInformation vtkImageViewer viewer viewer SetInput [grabber GetOutput] #[viewer GetImageWindow] DoubleBufferOn viewer SetColorWindow 255 viewer SetColorLevel 127.5 viewer SetZSlice 0 viewer Render proc animate {} { if { [grabber GetPlaying] == 1 } {viewer Render; after 1 animate} } proc Play {} {if { [grabber GetPlaying] != 1 } {grabber Play; animate}} proc Stop {} {grabber Stop} proc Grab {} {grabber Grab; viewer Render} proc SetFrameRate { r } {grabber SetFrameRate $r} proc SetFrame { f } {viewer SetZSlice $f ; viewer Render} wm withdraw . toplevel .t frame .t.controls button .t.controls.grab -text "Grab" -command Grab pack .t.controls.grab -side left button .t.controls.stop -text "Stop" -command Stop pack .t.controls.stop -side left button .t.controls.play -text "Play" -command Play pack .t.controls.play -side left pack .t.controls -side top frame .t.rate label .t.rate.label -text "Frames/s" scale .t.rate.scale -from 0.0 -to 60.0 -orient horizontal -command SetFrameRate .t.rate.scale set [grabber GetFrameRate] pack .t.rate.label -side left pack .t.rate.scale -side left pack .t.rate -side top frame .t.viewframe label .t.viewframe.label -text "Frame #" scale .t.viewframe.scale -from 0 -to 25 -orient horizontal -command SetFrame pack .t.viewframe.label -side left pack .t.viewframe.scale -side left pack .t.viewframe -side top frame .t.ex button .t.ex.button -text "Exit" -command ::vtk::cb_exit pack .t.ex.button -side left pack .t.ex -side top Thanks a lot. Leonid -------------- next part -------------- An HTML attachment was scrubbed... URL: From billlist at nycap.rr.com Tue Aug 5 08:03:31 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Tue, 05 Aug 2003 08:03:31 -0400 Subject: [vtkusers] Common/Makefile problem In-Reply-To: Message-ID: <5.2.0.9.0.20030805080129.0500d500@pop.nycap.rr.com> The problem happens because you specified a directory instead of a library for the PYTHON_LIBRARY variable in CMake. This should be set to the full path to the python library. Or, it should be set to the -framework command for python if there is one. -Bill At 05:14 PM 8/4/2003, Ben FrantzDale wrote: >I'm compiling VTK on OSX. I was getting this error: "ld: can't map file" for which google brought up only hits for VTK. (the file in question was /usr/lib/python2.2. > >For me the fix was as follows in Common/Makefile, there was this line, except that after -L/usr/lib/python2.2 there was an extranious "/usr/lib/python2.2". Changing it to this fixed the error. I'm not sure what cmake did to cause that error, though. > > c++ -bundle -flat_namespace -undefined suppress -o /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkCommonPython.so $(vtkCommonPython_SRC_OBJS) -L. -L/Users/ben/Desktop/vtk/VTK-4.2.2/bin -L/usr/lib/python2.2 -lvtkCommon -framework AppKit -lpthread -lm > > >I hope this is helpful. (Or that it's since been fixed.) > >--Ben > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From mcguinpg at maths.tcd.ie Tue Aug 5 08:05:14 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Tue, 5 Aug 2003 13:05:14 +0100 (BST) Subject: [vtkusers] vtkCompositeManager + ParallelIso.cxx In-Reply-To: Message-ID: Hi Users, I am taking out vtkOutputPort, vtkInputPort and vtkAppendPolyData from the ParallelIso.cxx example and replacing them with the functionality of vtkCompositeManager, but I am getting the error : ERROR: In /home/cs/VTK/VTK-4.2.2/Rendering/vtkXOpenGLRenderWindow.cxx, line 1005 vtkXOpenGLRenderWindow (0x8435600): bad X server connection. ERROR: In /home/cs/VTK/VTK-4.2.2/Rendering/vtkXOpenGLRenderWindow.cxx, line 166 vtkXOpenGLRenderWindow (0x8435600): bad X server connection. Does anyone know how to resolve this? I have attached the MyMain function of the code below. I would be very grateful for you help. Paul. void MyMain( vtkMultiProcessController *controller, void *arg ) { vtkImageReader *reader; vtkContourFilter *iso; vtkElevationFilter *elev; int myid, numProcs; float val; int numTris; char* fname = reinterpret_cast(arg); // Obtain the id of the running process and the total // number of processes myid = controller->GetLocalProcessId(); numProcs = controller->GetNumberOfProcesses(); // Create the reader, the data file name might have // to be changed depending on where the data files are. reader = vtkImageReader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0, 63, 0, 63, 1, 93); reader->SetFilePrefix(fname); reader->SetDataSpacing(3.2, 3.2, 1.5); // Iso-surface. iso = vtkContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0, ISO_START); iso->ComputeScalarsOff(); iso->ComputeGradientsOff(); // Compute a different color for each process. elev = vtkElevationFilter::New(); elev->SetInput(iso->GetOutput()); vtkMath::RandomSeed(myid * 100); val = vtkMath::Random(); elev->SetScalarRange(val, val+0.001); vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWindow = vtkRenderWindow::New(); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); vtkPolyDataMapper *Mapper = vtkPolyDataMapper::New(); vtkActor *Actor = vtkActor::New(); renWindow->AddRenderer(ren); iren->SetRenderWindow(renWindow); ren->SetBackground(1, 1, 1); renWindow->SetSize( 400, 400); renWindow->OffScreenRenderingOn(); Mapper->SetInput((vtkPolyData *)elev->GetOutput()); Actor->SetMapper(Mapper); ren->AddActor(Actor); renWindow->Render(); vtkCompositeManager* tc = vtkCompositeManager::New(); tc->SetRenderWindow(renWindow); tc->InitializePieces(); tc->StartInteractor(); ren->Delete(); renWindow->Delete(); iren->Delete(); mapper->Delete(); actor->Delete(); reader->Delete(); iso->Delete(); elev->Delete(); } From dhibi.mounir at enst-bretagne.fr Tue Aug 5 04:46:28 2003 From: dhibi.mounir at enst-bretagne.fr (Mounir Dhibi) Date: Tue, 5 Aug 2003 10:46:28 +0200 Subject: [vtkusers] help References: <20030805033901.22423.57621.Mailman@public.kitware.com> Message-ID: <000f01c35b2e$0f8a9730$0d02a8c0@platim01> Hi Every Body, I use VTK since a small moment, I want to know which is the function makes possible to turn over points from the click of mouse on an image and if somebody has an example. Thank you for your help! Mounir ----------------------------------------------- Dhibi Mounir D?partement ITI ENST Bretagne Bp 832 Brest-Cedex 29285 T?l.02 29 00 10 61 Work ------------------------------------------------ From mekic at gris.uni-tuebingen.de Tue Aug 5 08:26:16 2003 From: mekic at gris.uni-tuebingen.de (Melissa Mekic) Date: Tue, 5 Aug 2003 14:26:16 +0200 (CEST) Subject: [vtkusers] help In-Reply-To: <000f01c35b2e$0f8a9730$0d02a8c0@platim01> Message-ID: Hi Mounir, see email from Mathieu Malaterre (Re: vtkPointPicker) and look there for two examples. Melissa On Tue, 5 Aug 2003, Mounir Dhibi wrote: > Hi Every Body, > I use VTK since a small moment, I want to know which is the function makes > possible to turn over points from the click of mouse on an image and if > somebody has an example. > Thank you for your help! > Mounir > ----------------------------------------------- > > Dhibi Mounir > D?partement ITI > ENST Bretagne Bp 832 > Brest-Cedex 29285 > T?l.02 29 00 10 61 Work > > ------------------------------------------------ > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From I.deBoer at polytec.de Tue Aug 5 10:06:50 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Tue, 5 Aug 2003 16:06:50 +0200 Subject: [vtkusers] VTK in dialogbased MFC App ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD984EEDC@02polywbr.waldbronn.polytec.de> Hi, has anbody managed to create a dialogbased MFC-App with VTK. I have created a picture control (Frame Type). I can set my Renderer to something like CWnd* pcWnd = GetDlgItem(IDC_STC_MAIN_WND); m_pvtkWin32OpenGLRW->SetParentId(::GetParent(pcWnd->m_hWnd)); m_pvtkWin32OpenGLRW->SetWindowId(pcWnd->m_hWnd); m_pvtkWin32OpenGLRW->WindowInitialize(); m_pvtkWin32RenderWI->SetRenderWindow(m_pvtkWin32OpenGLRW); LONG OldProc = ::GetWindowLong(pcWnd->m_hWnd, GWL_WNDPROC); m_pvtkWin32RenderWI->Initialize(); ::SetWindowLong(pcWnd->m_hWnd, GWL_WNDPROC, OldProc); Now I render my scene... which works fine. But I cannot interact ?! An I don't know why... I do have LRESULT CVTKSurfaceReconstructionDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { LRESULT lResult = NULL; switch (message) { [code snip] case WM_MOUSEMOVE: if (m_pvtkWin32RenderWI->GetInitialized()) { CWnd* pcWnd = GetDlgItem(IDC_STC_MAIN_WND) return vtkHandleMessage2(pcWnd->m_hWnd, message, wParam, lParam, m_pvtkWin32RenderWI); } break; } return CDialog::WindowProc(message, wParam, lParam); } but nothing works... any hints ? greets Ingo From I.deBoer at polytec.de Tue Aug 5 10:33:07 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Tue, 5 Aug 2003 16:33:07 +0200 Subject: AW: [vtkusers] VTK in dialogbased MFC App ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCA35@02polywbr.waldbronn.polytec.de> Hi, I think I found the answer: 1. Use vtkInteractorStyleTrackballCamera for m_pvtkWin32RenderWI's SetInteractorStyle 2. Use "return vtkHandleMessage2(m_hWnd, message, wParam, lParam, m_pvtkWin32RenderWI);" Which means the m_hWnd of the dialog and not of the dialog element. sorry for bothering... greets Ingo From Mark.Asbach at post.rwth-aachen.de Tue Aug 5 11:41:40 2003 From: Mark.Asbach at post.rwth-aachen.de (Mark Asbach) Date: Tue, 05 Aug 2003 17:41:40 +0200 Subject: [vtkusers] vtk as a Qt widget Message-ID: <259fd241d0.241d0259fd@post.rwth-aachen.de> Hi list, there have been some tries to implement a Qt widget as a vtkRenderWindow (plus *-Interactor), but to my dismay, I couldn't compile any of these three: - vtkqgl-0.1.0 (ehrhardt) Complains about missing vtkImageWindow.h etc. The author's webpage seems to be removed - vtkQGL-0.18 (pagey) Breaks in ./configure script and tell me "checking for KDE... configure: error: in the prefix, you've chosen, are no KDE headers installed. This will fail. So, check this please and use another prefix!" - vtkandqt I don't know how to write a correct tmake *.pro file, that's why I can't build the package All attempts have been made on a Linux system (debian, kernel 2.4.20). Does anybode here use one of the above? Or should I just use the Qt/Motif extension and embed a vtk Motif widget? Thanks in advance, Mark From G.R.Tabor at exeter.ac.uk Tue Aug 5 11:56:12 2003 From: G.R.Tabor at exeter.ac.uk (grtabor) Date: Tue, 5 Aug 2003 16:56:12 +0100 Subject: [vtkusers] vtk as a Qt widget Message-ID: <3F2FCB9C@minerva.ex.ac.uk> >===== Original Message From Mark Asbach ===== >Hi list, > >there have been some tries to implement a Qt widget as a vtkRenderWindow (plus *-Interactor), but to my dismay, I couldn't compile any of these three: > >- vtkqgl-0.1.0 (ehrhardt) > Complains about missing vtkImageWindow.h etc. The author's webpage seems to be removed > >- vtkQGL-0.18 (pagey) > Breaks in ./configure script and tell me > >"checking for KDE... configure: error: >in the prefix, you've chosen, are no KDE headers installed. This will fail. >So, check this please and use another prefix!" > >- vtkandqt > I don't know how to write a correct tmake *.pro file, that's why I can't build the package > > Have you tried vtkQt from Mattias Koenig : http://wwwisg.cs.uni-magdeburg.de/~makoenig I'm trying to get this to work at the moment - currently compiling a higher version of VTK because it seems to need 4.2. I do have a version of vtkqgl built into the app I'm writing, but the code does not seem to support overlays, and, as you say, the home page appears to have gone. Gavin >All attempts have been made on a Linux system (debian, kernel 2.4.20). > >Does anybode here use one of the above? Or should I just use the Qt/Motif extension and embed a vtk Motif widget? > >Thanks in advance, > >Mark > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From g.gorman at imperial.ac.uk Tue Aug 5 15:27:25 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Tue, 05 Aug 2003 20:27:25 +0100 Subject: [vtkusers] FindCell and python? Message-ID: <3F30051D.4090201@imperial.ac.uk> Hi I'm trying to use the member FindCell in vtkDataSet from python but python denys all knowledge of its existance with the error: AttributeError: FindCell Is it not possible to use this member from python? I'm using vtk 4.2 and I have not ran into any other problem with my instillation. Cheers Gerard. From alear at cns.montana.edu Tue Aug 5 15:59:19 2003 From: alear at cns.montana.edu (Alex Lear) Date: Tue, 5 Aug 2003 13:59:19 -0600 Subject: [vtkusers] VTK-QT packages for 2D Actors? Message-ID: <200308051959.h75JxJS01488@cercus.cns.montana.edu> I was using some VTK-QT packages a while ago and I remember some of them didn't support 2D actors. Is this still the case? Which VTK-QT packages can handle 2D actors as well as 3D actors? Thanks, Alex Lear From jsundar at siue.edu Tue Aug 5 16:14:10 2003 From: jsundar at siue.edu (jsundar at siue.edu) Date: Tue, 5 Aug 2003 15:14:10 -0500 Subject: [vtkusers] VRMLDefObject Message-ID: <1060114450.3f30101243bf0@webmail1.isg.siue.edu> Hi all, I am trying to use the getVRMLDefObject method of VRMLImporter class in VTK from Java.It results in an error as follows. # An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM. # Program counter=0xae8b86c Do you know how to resolve this. Regards, Jayashree ------------------------------------------------- SIUE Web Mail From Ellen.Shlossberg at tufts.edu Tue Aug 5 16:58:08 2003 From: Ellen.Shlossberg at tufts.edu (Ellen Shlossberg) Date: Tue, 5 Aug 2003 16:58:08 -0400 Subject: [vtkusers] compiling VTK4.2.2 help on Solaris 2.6 please Message-ID: <1060117088.3f301a6050f25@webmail.tufts.edu> Hello all, I have posted an error here before, but I will try again now. I am attempting to compile VTK 4.2.2 on a Solaris 2.6 with gcc version 2.95.2. after a long while, i have the following error: In file included from /usr/openwin/share/include/X11/Intrinsic.h:56, from /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkXRenderWindowInteractor.h:41, from /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkGraphicsFactory.cxx:62: /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration `XAddHost' with no type *lots of "with no type" errors *** Error code 1 The following command caused the error: /usr/local/bin/g++ -o vtkGraphicsFactory.o -I/usr/openwin/share/include -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2 -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/IO -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Imaging -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Graphics -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Filtering -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Common -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Common/Testing/Cxx -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/zlib -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/jpeg -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/png -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/tiff -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/expat -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/freetype/include -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/freetype -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/ftgl/src -I/export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Utilities/ftgl -I/usr/openwin/share/include -c /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering/vtkGraphicsFactory.cxx make: Fatal error: Command failed for target `vtkGraphicsFactory.o' Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering *** Error code 1 The following command caused the error: make all make: Fatal error: Command failed for target `default_target' Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering *** Error code 1 The following command caused the error: cd /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2/Rendering; make default_target make: Fatal error: Command failed for target `default_target_Rendering' Current working directory /export/files/m03/GEF/VTK4.2.2/VTK-4.2.2 *** Error code 1 The following command caused the error: make all make: Fatal error: Command failed for target `default_target' Are there any pre-compiled binaries of VTK? I have also tried doing a search of "with no type" errors, but could not find anything relevant. Any help would be appreciated. Thanks! Ellen From will.schroeder at kitware.com Tue Aug 5 16:59:00 2003 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 05 Aug 2003 16:59:00 -0400 Subject: [vtkusers] ANNOUNCE: Kitware is hiring Message-ID: <5.1.0.14.0.20030805164141.039a9300@pop.biz.rr.com> Hi Folks- Kitware is seeking to fill positions in the near future. 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 C++, VTK, ITK, CMake, GRID/networking, large data visualization, medical image processing, finite element analysis, and/or scientific computation and visualization. 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 William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From simpson at cs.utah.edu Tue Aug 5 18:47:01 2003 From: simpson at cs.utah.edu (Jenny Simpson) Date: Tue, 5 Aug 2003 16:47:01 -0600 (MDT) Subject: [vtkusers] Running MangledMesa off-screen examples In-Reply-To: References: Message-ID: I am running Redhat 9.0 with Nvidia drivers and I built Vtk with mangled mesa so that I could run the off-screen rendering examples in /Examples/MangledMesa. I followed the instructions on this page: http://public.kitware.com/pipermail/vtkusers/2003-March/016591.html Vtk compiles fine, but when I run the OffScreenCone.tcl example I get a segmentation fault. I did exactly the same thing on an RH9 machine with an ATI Radeon graphics card, and the result was the same so I don't think this is an Nvidia problem. Since I didn't get a "Command not found" error I'm pretty sure the mangled mesa stuff is getting used. Has anyone experienced this, or gotten it to work on Redhat 9.0? Am I missing an important step? Thanks, Jenny Simpson SCI Institute University of Utah From G.R.Tabor at exeter.ac.uk Wed Aug 6 05:14:29 2003 From: G.R.Tabor at exeter.ac.uk (grtabor) Date: Wed, 6 Aug 2003 10:14:29 +0100 Subject: [vtkusers] Interface with Qt Message-ID: <3F309CA9@minerva.ex.ac.uk> Dear VTK people, There is quite a lot of interest around in using VTK with a qt interface. There are various solutions around on the net - vtkandqt, vtkQGl etc - but they tend to come and go by chance. Is there any possibility of Kitware building in a qt interface as part of the distribution? It would probably only involve a couple of extra classes, and could be done by incorporating code from one of the existing solutions (by negociation of course). Gavin From cepi at neo.tamu.edu Tue Aug 5 19:16:28 2003 From: cepi at neo.tamu.edu (Epifanio, Craig C) Date: Tue, 5 Aug 2003 23:16:28 -0000 Subject: [vtkusers] VTK + Python on Solaris In-Reply-To: <16175.2826.639934.570211@monster.linux.in> Message-ID: <200308052316.h75NGSAM053611@smtp-relay.tamu.edu> Prabhu, Thanks for getting back to me. When I try to run vtkpython I get an immediate segmentation error. (I probably should have mentioned that in my previous note.) Today I tried to build everything (python + VTK) from source with the GNU compilers. (Apparently you can get around alot of the non-standard ANSI stuff by setting VTK_USE_ANSI_STDLIB to ON.) But during the VTK build I get the following: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make[3]: *** [/usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 This looks to be related to the previous error I observed at runtime with the Sun compilers. Anyway, I think at this point I may back off and try to build on a linux platform instead (just to reassure myself that I can build it). Thanks for your advice, though. Regards, Craig Prabhu Ramachandran said: > Hi, > > >>>>> "ECC" == Craig C Epifanio writes: > > ECC> I am trying to build VTK 4.2.2 with Python 2.2.2 on Solaris 8 > ECC> so that I can try out the MayaVi visualization code. I have > ECC> sucessfully managed to compile VTK and both the c++ and tcl > ECC> examples run beautifully for the most part. But when I try > ECC> to use python I get the following error: > > ECC> ImportError: ld.so.1: python: fatal: relocation error: file > ECC> /usr/local/src/VTK-4.2.2/bin/libvtkCommonPython.so: symbol > ECC> __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: > ECC> referenced symbol not found > > [snip] > > I'm not sure this will help but does it work when you use the > vtkpython interpreter instead of the Python interpreter? There should > be a vtkpython executable that is built inside the bin directory. > This binary was created specifically to help with problems such as > these. > > cheers, > prabhu > -- From kai.ludwig at uni-tuebingen.de Wed Aug 6 03:01:11 2003 From: kai.ludwig at uni-tuebingen.de (Kai Ludwig) Date: Wed, 6 Aug 2003 09:01:11 +0200 (CEST) Subject: [vtkusers] vtk as a Qt widget In-Reply-To: <259fd241d0.241d0259fd@post.rwth-aachen.de> References: <259fd241d0.241d0259fd@post.rwth-aachen.de> Message-ID: <32779.134.2.69.212.1060153271.squirrel@echem9.orgchemie.chemie.uni-tuebingen.de> Hi Mark, I compiled the vtkandqt package at a SuSE8.1 linux system. You need to edit the interactor.pro file according to the paths of your VTK package (I'm working with VTK4.2). Maybe my changed version will help. Look at the .pro file. Kai > Hi list, > > there have been some tries to implement a Qt widget as a > vtkRenderWindow (plus *-Interactor), but to my dismay, I couldn't > compile any of these three: > > - vtkqgl-0.1.0 (ehrhardt) > Complains about missing vtkImageWindow.h etc. The author's webpage > seems to be removed > > - vtkQGL-0.18 (pagey) > Breaks in ./configure script and tell me > > "checking for KDE... configure: error: > in the prefix, you've chosen, are no KDE headers installed. This will > fail. So, check this please and use another prefix!" > > - vtkandqt > I don't know how to write a correct tmake *.pro file, that's why I > can't build the package > > > All attempts have been made on a Linux system (debian, kernel 2.4.20). > > Does anybode here use one of the above? Or should I just use the > Qt/Motif extension and embed a vtk Motif widget? > > Thanks in advance, > > Mark > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to > subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- http://echempp.sourceforge.net Kai Ludwig Institut f?r Organische Chemie Auf der Morgenstelle 18 72076 T?bingen Tel.: 07071/29-76242 Mail: kai.ludwig at uni-tuebingen.de -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkandqt_linux.tar.gz Type: application/x-gunzip Size: 47454 bytes Desc: not available URL: From Xiaoping.Huang at geahk.ge.com Tue Aug 5 20:37:58 2003 From: Xiaoping.Huang at geahk.ge.com (Huang, Xiaoping (Research, Shanghai)) Date: Wed, 6 Aug 2003 08:37:58 +0800 Subject: [vtkusers] Is there any information on how to unite two triangle mesh togeth er? Message-ID: <51D275C843DCD21182D20008C7333183020CE36E@cixsh01ffcorpge.cimasia.ge.com> I met a problem when I try to merge two triangle mesh (water-tight mesh) into one mesh. It seems not smellier functions in VTK. I searched in website for solution, but no good result. I am considering write a routing to do it, but the situation of complex intersection will be very hard to deal with. Any body know it? Your information will be highly appreciated! Thanks Xiaoping -------------- next part -------------- An HTML attachment was scrubbed... URL: From bert.schiettecatte at esat.kuleuven.ac.be Wed Aug 6 07:06:47 2003 From: bert.schiettecatte at esat.kuleuven.ac.be (Bert Schiettecatte) Date: Wed, 6 Aug 2003 13:06:47 +0200 Subject: [vtkusers] Interface with Qt In-Reply-To: <3F309CA9@minerva.ex.ac.uk> Message-ID: <002c01c35c0a$d449f1b0$647ba8c0@laptop> Hi all, I can only add to this question that it would greatly simplify cross-platform development for a lot of people. Qt is a great application framework, and supplements VTK very nicely. Even though there are VTK-QT packages I finally got to work on my Win XP machine, I still have the feeling a lot could be improved. For example, I cannot always get VTK to render in correct window... Bert. -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of grtabor Sent: woensdag 6 augustus 2003 11:14 To: vtkusers at vtk.org Subject: [vtkusers] Interface with Qt Dear VTK people, There is quite a lot of interest around in using VTK with a qt interface. There are various solutions around on the net - vtkandqt, vtkQGl etc - but they tend to come and go by chance. Is there any possibility of Kitware building in a qt interface as part of the distribution? It would probably only involve a couple of extra classes, and could be done by incorporating code from one of the existing solutions (by negociation of course). Gavin _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003 From king.benjamin at mh-hannover.de Wed Aug 6 03:04:58 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Wed, 06 Aug 2003 08:04:58 +0100 Subject: [vtkusers] order of execution In-Reply-To: <3F2F70A6.50307@cs.ucl.ac.uk> References: <3F2F70A6.50307@cs.ucl.ac.uk> Message-ID: Hello Christos, > I have a set of 2D files which I read with vtkImageReader. > when this is done I use vtkContourFilter, vtkPolyDataNormals (to create > a vtkPolyData representation of the volume) (function 1) > and then I create the mapper and the actor. > > The renderer, renderwindow, mappe and actor are called in a different > function than the reader (function 2) The VTK is only updated upon request. In your case this happens when the renderwindow's Render() method is called. All objects that are connected to this window have their Update() method called and this process goes all the way up the pipeline until the data sources are reached. In your case this is the vtkImageReader. You can manually Update() the vtkImageReader if you like to, but it ain't necessary in most cases. > Also, when function 2 is called nothing after this point is executed as > the window is active an probably the system has to deal with this. If I > want the system to continue with other calculations is there any way to > do it? (threads?) When all the renderers in the window have finished showing their respective actors, your program should continue. You don't need threads if you are happy to wait during the rendering. I think that there is some other problem with your code. Maybe you should post the relevant part of your program or take a look at some of the examples to see how they do the event management. cu, Benjamin -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From ramakrishna.prakash at quest-global.com Wed Aug 6 08:02:26 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 6 Aug 2003 17:32:26 +0530 Subject: [vtkusers] vtkAppendPolydata Message-ID: <001e01c35c12$9abcb150$de0ba8c0@qtwblr01.questglobal.com> Hello, I use vtkAppendPolyData to create one actor out of two or more actors. But I noticed that each time I get the output of vtkAppendPolyData, the number of points is increasing. For a test case, I clip an actor using vtkClipPolyData, then append the output and clipped output using vtkClipPolyData. I continued this for about 20 iterations. Then saved the polydata into a file. The size of the file has increased by 6 MB(initial size - 9 MB, final size - 15 MB). Is there anyway I can avoid these duplicate points? Thanks Shyam From jeff at cdnorthamerica.com Wed Aug 6 08:00:54 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 06 Aug 2003 08:00:54 -0400 Subject: [vtkusers] vtkAppendPolydata In-Reply-To: <001e01c35c12$9abcb150$de0ba8c0@qtwblr01.questglobal.com> References: <001e01c35c12$9abcb150$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3F30EDF6.3040307@cdnorthamerica.com> run through vtkCleanPolyData should help. -Jeff R K Shyamprakash wrote: >Hello, > I use vtkAppendPolyData to create one actor out of two or more actors. But >I noticed that each time I get the output of vtkAppendPolyData, the number >of points is increasing. For a test case, I clip an actor using >vtkClipPolyData, then append the output and clipped output using >vtkClipPolyData. I continued this for about 20 iterations. Then saved the >polydata into a file. The size of the file has increased by 6 MB(initial >size - 9 MB, final size - 15 MB). Is there anyway I can avoid these >duplicate points? > >Thanks >Shyam > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > > From alain.coron at lip.bhdc.jussieu.fr Wed Aug 6 03:47:44 2003 From: alain.coron at lip.bhdc.jussieu.fr (Alain CORON) Date: 06 Aug 2003 08:47:44 +0100 Subject: [vtkusers] vtk as a Qt widget In-Reply-To: <259fd241d0.241d0259fd@post.rwth-aachen.de> References: <259fd241d0.241d0259fd@post.rwth-aachen.de> Message-ID: <2nk79rgrbz.fsf@venus.umr.lip.bhdc.jussieu.fr> Mark Asbach writes: > Hi list, > > there have been some tries to implement a Qt widget as a vtkRenderWindow (plus *-Interactor), but to my dismay, I couldn't compile any of these three: > > [...] > > All attempts have been made on a Linux system (debian, kernel 2.4.20). > > Does anybode here use one of the above? Or should I just use the Qt/Motif extension and embed a vtk Motif widget? > Have you tried http://wwwipr.ira.uka.de/~kuebler/vtkqt/ ? I installed it successfully on Linux Debian testing, RedHat 7.3, Solaris 5.8, Windows2000. -- Alain CORON mailto:alain.coron at lip.bhdc.jussieu.fr From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Aug 6 07:55:13 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 06 Aug 2003 13:55:13 +0200 Subject: [vtkusers] Re: vtkRemoveCellsFilter use ? In-Reply-To: References: <3F27D8FD.1000508@creatis.insa-lyon.fr> Message-ID: <3F30ECA1.7090200@creatis.insa-lyon.fr> Goowin, One last remark, your filter deal well with triangle strips. Could you please add in the doc to run vtkTriangleFilter first. Thanks mathieu Goodwin Lawlor wrote: > Hi Mathieu, > The problem is the class was intend to be used with a graphics pipeline and > a vtkCellPicker which updates the filter at least once before you get a > chance to call RemoveCell (I should have put a check in the code). So if you > try: > > from vtk import * > > reader = vtkSphereSource() > reader.Update() > > #The following two lines doesn't make any differences: > #reader.GetOutput().BuildLinks(0) #default val is not wrap > #reader.GetOutput().BuildCells() > > #print reader.GetOutput().GetNumberOfCells() #96 > #reader.GetOutput().DeleteCell( 10 ) #ok > > remove = vtkRemoveCellsFilter() > remove.SetInput( reader.GetOutput() ) > remove.Update() > remove.RemoveCell( 10 ) > > print remove.GetOutput().GetNumberOfCells() > > > HTH > > Goodwin > > ps I'll update the class do you don't have to explicitly update it before > calling RemoveCell > > ----- Original Message ----- > From: "Mathieu Malaterre" > To: > Cc: "VTK-User" > Sent: Wednesday, July 30, 2003 3:41 PM > Subject: vtkRemoveCellsFilter use ? > > > >>Hi all, >> >>I have tried the vtkRemoveCellsFilter class, but I failed to make it >>work. I am getting a seg fault. >>Could someone told how to use it, or why this simple script fails: >> >>############################## >>from vtk import * >> >>reader = vtkSphereSource() >>reader.Update() >> >>#The following two lines doesn't make any differences: >>#reader.GetOutput().BuildLinks(0) #default val is not wrap >>#reader.GetOutput().BuildCells() >> >>#print reader.GetOutput().GetNumberOfCells() #96 >>#reader.GetOutput().DeleteCell( 10 ) #ok >> >>remove = vtkRemoveCellsFilter() >>remove.SetInput( reader.GetOutput() ) >>remove.RemoveCell( 10 ) >>############################## >> >>Thanks >>mathieu >> >>Problem is coming from: >> >>void RemoveCell(vtkIdType cellid) { >>this->CellIdList->DeleteId(this->CellIdList->GetId(cellid)); >> ^^^^^^^^ >>this->Modified(); >>} >> >>DeleteId is call on element number 10...therefore I am getting a seg fault >> >>REF: >>http://www.bioengineering-research.com/vtk/vtkRemoveCellsFilter.htm >> >> > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From ramakrishna.prakash at quest-global.com Wed Aug 6 08:24:04 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 6 Aug 2003 17:54:04 +0530 Subject: [vtkusers] vtkAppendPolydata In-Reply-To: <3F30EDF6.3040307@cdnorthamerica.com> Message-ID: <001f01c35c15$a07cade0$de0ba8c0@qtwblr01.questglobal.com> I did run it through vtkCleanPolyData. It does control the extent of increase but it fails to resize the new data to original data size. Thanks Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Jeff Lee Sent: Wednesday, August 06, 2003 5:31 PM To: R K Shyamprakash Cc: VTKUserList (E-mail) Subject: Re: [vtkusers] vtkAppendPolydata run through vtkCleanPolyData should help. -Jeff R K Shyamprakash wrote: >Hello, > I use vtkAppendPolyData to create one actor out of two or more actors. But >I noticed that each time I get the output of vtkAppendPolyData, the number >of points is increasing. For a test case, I clip an actor using >vtkClipPolyData, then append the output and clipped output using >vtkClipPolyData. I continued this for about 20 iterations. Then saved the >polydata into a file. The size of the file has increased by 6 MB(initial >size - 9 MB, final size - 15 MB). Is there anyway I can avoid these >duplicate points? > >Thanks >Shyam > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >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: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From ramakrishna.prakash at quest-global.com Wed Aug 6 02:50:14 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 6 Aug 2003 12:20:14 +0530 Subject: [vtkusers] vtkAppendPolyData Message-ID: <003201c35be6$fe826530$de0ba8c0@qtwblr01.questglobal.com> Hello, I use vtkAppendPolyData to create one actor out of two or more actors. But I noticed that each time I get the output of vtkAppendPolyData, the number of points is increasing. For a test case, I clip an actor using vtkClipPolyData, then append the output and clipped output using vtkClipPolyData. I continued this for about 20 iterations. Then saved the polydata into a file. The size of the file has increased by 6 MB(initial size - 9 MB, final size - 15 MB). Is there anyway I can avoid these duplicate points? Thanks Shyam From glehmann at imaging.robarts.ca Wed Aug 6 09:34:36 2003 From: glehmann at imaging.robarts.ca (Glen Lehmann) Date: Wed, 06 Aug 2003 09:34:36 -0400 Subject: [vtkusers] Running MangledMesa off-screen examples In-Reply-To: References: Message-ID: <3F3103EC.1020105@imaging.robarts.ca> Hi Jenny, Double check your CMakeCache.txt and make sure that only the osmesa variables are pointing to your mesa libs and includes and everything else points to your opengl libs and includes. You can also verify this by running 'strace vtk OffScreenCone.tcl'. CMake can easily get confused when it's pointing to different libraries. Good luck, Glen Jenny Simpson wrote: >I am running Redhat 9.0 with Nvidia drivers and I built Vtk with mangled >mesa so that I could run the off-screen rendering examples in >/Examples/MangledMesa. I followed the instructions on this page: > >http://public.kitware.com/pipermail/vtkusers/2003-March/016591.html > >Vtk compiles fine, but when I run the OffScreenCone.tcl example I get a >segmentation fault. I did exactly the same thing on an RH9 machine with >an ATI Radeon graphics card, and the result was the same so I don't think >this is an Nvidia problem. Since I didn't get a "Command not found" >error I'm pretty sure the mangled mesa stuff is getting used. > >Has anyone experienced this, or gotten it to work on Redhat 9.0? Am I >missing an important step? > >Thanks, > >Jenny Simpson >SCI Institute >University of Utah > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > From dsjen at cs.unc.edu Wed Aug 6 09:29:12 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Wed, 06 Aug 2003 09:29:12 -0400 Subject: [vtkusers] vtkSplineWidget and SetPlaneSource Message-ID: <2131df20ca8d.20ca8d2131df@cs.unc.edu> VTK Users, I'm using vtkSplineWidget and would like to call SetPlaneSource, so that I can call ProjectToPlaneOn, thus allowing me to only move my spline nodes within the specified plane. However, I'm not able to set it to the correct plane apparently. The plane I'd like to use SetPlaneSource on has had its mapper transformed. I've tried to create another plane and setting the center to the actor position, but that doesn't work. When I render the scene, my widget ends up very far off. If anyone has any ideas, please let me know. Thanks, Dennis From donna at pulvinar.wustl.edu Wed Aug 6 10:02:00 2003 From: donna at pulvinar.wustl.edu (Donna Hanlon) Date: Wed, 06 Aug 2003 09:02:00 -0500 Subject: [vtkusers] VTK + Python on Solaris Message-ID: <3F310A58.8080107@brainmap.wustl.edu> Hi Craig, We also run VTK+Python on Solaris. You wrote: >But during the VTK build I get the following: >ld: fatal: relocations remain against allocatable but non-writable sections I believe your "relocations remain against allocatable but non-writable sections" link error goes away when you use the "-fPIC" flag with your compiler (e.g., export CC="gcc -fPIC" before doing make). We ended up using gcc on Solaris due to problems with Sun's compiler on some software other than vtk/python (might have been tcl/tk, though). Feel free to check out our build script for IRIX, Linux, and Solaris (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/surefit/SureFitSrc/BuildSureFit). Donna From imho at bephp.com Wed Aug 6 10:36:54 2003 From: imho at bephp.com (imho) Date: Wed, 06 Aug 2003 16:36:54 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor Message-ID: <3F311286.3030902@bephp.com> Hi all, I have a vtkPolyData with these filters : vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> vtkCleanPolyData I can export it to a OpenInventor (iv) file with the vtkIVWriter. I have updated my vtk version with the nightly release to fix some bugs in these class. I'd like to use the MESH program http://mesh.epfl.ch/ to compute differences between two meshes. This program said that my poly is: "empty (no faces)" What can I do to fix this? Wich filter should I add in my pipeline to have faces? Thanks imho From dsjen at cs.unc.edu Wed Aug 6 10:42:00 2003 From: dsjen at cs.unc.edu (Dennis Jen) Date: Wed, 6 Aug 2003 10:42:00 -0400 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F311286.3030902@bephp.com> Message-ID: Were you able to render anything? I think i had tried to decimate after a triangle filter once and it didn't work. If you're not able to render anything, try a simplier pipeline first: vtkContourFilter -> vtkTriangleFilter -> vtkStipper -> vtkPolyDataNormals ... I hope that helps. - Dennis -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of imho Sent: Wednesday, August 06, 2003 10:37 AM To: VTK-User Subject: [vtkusers] vtkPolyData exported to OpenInventor Hi all, I have a vtkPolyData with these filters : vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> vtkCleanPolyData I can export it to a OpenInventor (iv) file with the vtkIVWriter. I have updated my vtk version with the nightly release to fix some bugs in these class. I'd like to use the MESH program http://mesh.epfl.ch/ to compute differences between two meshes. This program said that my poly is: "empty (no faces)" What can I do to fix this? Wich filter should I add in my pipeline to have faces? Thanks imho _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From imho at bephp.com Wed Aug 6 10:48:16 2003 From: imho at bephp.com (imho) Date: Wed, 06 Aug 2003 16:48:16 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: References: Message-ID: <3F311530.5050501@bephp.com> Hi Dennis, Rendering works allright with this pipeline, I've problems only exporting the poly. :( Dennis Jen wrote: >Were you able to render anything? I think i had tried to decimate after a >triangle filter once and it didn't work. If you're not able to render >anything, try a simplier pipeline first: > >vtkContourFilter -> vtkTriangleFilter -> vtkStipper -> vtkPolyDataNormals >... > >I hope that helps. > >- Dennis > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >imho >Sent: Wednesday, August 06, 2003 10:37 AM >To: VTK-User >Subject: [vtkusers] vtkPolyData exported to OpenInventor > > >Hi all, > >I have a vtkPolyData with these filters : >vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> >vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> >vtkCleanPolyData > >I can export it to a OpenInventor (iv) file with the vtkIVWriter. >I have updated my vtk version with the nightly release to fix some bugs >in these class. > >I'd like to use the MESH program http://mesh.epfl.ch/ to compute >differences between two meshes. > >This program said that my poly is: "empty (no faces)" > >What can I do to fix this? >Wich filter should I add in my pipeline to have faces? > >Thanks > >imho > > > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > > From dhibi.mounir at enst-bretagne.fr Wed Aug 6 12:14:48 2003 From: dhibi.mounir at enst-bretagne.fr (Mounir Dhibi) Date: Wed, 6 Aug 2003 18:14:48 +0200 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1998 - 13 msgs References: <20030806102707.21680.41375.Mailman@public.kitware.com> Message-ID: <001901c35c35$dc160ac0$0d02a8c0@platim01> dear all I use a set of 2D files which I read with vtkImageReader. I want detect contour which represent my object in each file, then I want to use a circle or ellipse but I can't do it ? any body have any idea? thank you very much all Mounir ----------------------------------------------- Dhibi Mounir Departement ITI ENST Bretagne Bp 832 Brest-Cedex 29285 Tel.02 29 00 10 61 Work ------------------------------------------------ From Jonathan.Bailleul at greyc.ismra.fr Wed Aug 6 13:41:00 2003 From: Jonathan.Bailleul at greyc.ismra.fr (Jonathan.Bailleul) Date: Wed, 06 Aug 2003 19:41:00 +0200 Subject: [vtkusers] 3D Volume.. References: <20030609121426.B86C33D38@sitemail.everyone.net> Message-ID: <3F313DAC.A44717BC@greyc.ismra.fr> This shall be solved in this webpage: http://www.crd.ge.com/%7Elorensen/seg12/ best wishes, yasser salman wrote: > > hi all., > i already construct the 3d volume from single .raw format using marching cube ..,i have 2 problems.., > 1- the volume displayed from back to front and from bottom to top..!! > 2- i wanna to extrat bone and skin and brain indevidualy. in my case > all skin and bone and brain constructed at the same volume i tried to use medical example but only change occure in color .. can ony one help me for this 2 problem.., here is my code: > > vtkRenderer *aRenderer = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(aRenderer); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > > vtkImageReader *Reader = vtkImageReader::New(); > Reader->SetFilePrefix ("D:/ImageData/t1"); > Reader->SetFileDimensionality(3); > Reader->SetFilePattern("%s%.d.raw"); > Reader->SetDataByteOrderToBigEndian(); > Reader->SetDataExtent (0,180,0,216,0,180); > Reader->SetDataScalarTypeToUnsignedChar(); > Reader->SetDataOrigin(0,0,0); > Reader->SetDataSpacing(1,1,1); > Reader->SetDataMask(0x7ff); > Reader->Update(); > > vtkMarchingCubes* mc=vtkMarchingCubes::New(); > mc->SetInput(Reader->GetOutput()); > mc->SetValue(0,63); > > mc->ComputeGradientsOff(); > mc->ComputeScalarsOn(); > mc->ComputeNormalsOn(); > mc->Update(); > //mc->SetOutput(surface->getInputPolyData()); > vtkPolyDataMapper* mcmap=vtkPolyDataMapper::New(); > mcmap->SetInput(mc->GetOutput()); > mcmap->ScalarVisibilityOff(); > vtkActor* mcactor=vtkActor::New(); > mcactor->SetMapper(mcmap); > mcactor->GetProperty()->SetColor(1,1,1); > vtkCamera *aCamera = vtkCamera::New(); > aCamera->SetViewUp (0, 0, -1); > aCamera->SetPosition (0, 1, 0); > aCamera->SetFocalPoint (0, 0, 0); > aCamera->ComputeViewPlaneNormal(); > aRenderer->AddActor(mcactor); > aRenderer->SetActiveCamera(aCamera); > aRenderer->ResetCamera (); > aCamera->Dolly(1.5); > > renWin->SetSize(640, 480); > iren->SetDesiredUpdateRate(3.0); > iren->Initialize(); > iren->Start(); > return 0; > > and the following is my trial to extract the skin only.. > /*mcactor->GetProperty()->SetDiffuseColor(1,0.45,0.25); //here i try to > mcactor->GetProperty()->SetOpacity(0.6); extract the skin but > mcactor->GetProperty()->BackfaceCullingOff(); i delete it in my code.. > mcactor->GetProperty()->SetSpecular(0.7); > mcactor->GetProperty()->SetSpecularPower(20);*/ > > _____________________________________________________________ > Get free email, free website, free software and free products at > > http://www.uscomputer.net/portal.htm > > - U.S. Computer Corporation - > > - > > - > > - > > _____________________________________________________________ > Select your own custom email address for FREE! Get you at yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- ----------------------------------- Jonathan BAILLEUL, Doctorant GREYC Image - Universit? de Caen http://www.greyc.ismra.fr/~bailleul From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Aug 6 14:01:58 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 06 Aug 2003 20:01:58 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F311286.3030902@bephp.com> References: <3F311286.3030902@bephp.com> Message-ID: <3F314296.3020001@creatis.insa-lyon.fr> Laurent, Please move vtkTriangleFilter at the end your pipeline. vtkIVWriter is written to take only triangles into account and not *triangle strips*. So your filter should be: vtkContourFilter -> vtkDecimatePro -> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> vtkCleanPolyData -> vtkTriangleFilter -> vtkIVWriter Next time you should proceed step by step. For example, with your old pipeline: vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> vtkPolyDataWriter *then* write a simple python script: r = vtkPolyDataReader w = vtkIVWriter you'll see your file will be buggy. Then try: r = vtkPolyDataReader clean = vtkCleanPolyData w = vtkIVWriter in order to remove all degenerate cells r = vtkPolyDataReader clean = vtkCleanPolyData tf = vtkTriangleFilter w = vtkIVWriter in order to: first remove degenerate cells, *then* turn strips into triangle (and not the contrary!) HTH mathieu imho wrote: > Hi all, > > I have a vtkPolyData with these filters : > vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> > vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> > vtkCleanPolyData > > I can export it to a OpenInventor (iv) file with the vtkIVWriter. > I have updated my vtk version with the nightly release to fix some bugs > in these class. > > I'd like to use the MESH program http://mesh.epfl.ch/ to compute > differences between two meshes. > > This program said that my poly is: "empty (no faces)" > > What can I do to fix this? > Wich filter should I add in my pipeline to have faces? > > Thanks > > imho > > > > > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From scharver at evl.uic.edu Wed Aug 6 14:47:13 2003 From: scharver at evl.uic.edu (Chris Scharver) Date: Wed, 6 Aug 2003 13:47:13 -0500 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F311530.5050501@bephp.com> References: <3F311530.5050501@bephp.com> Message-ID: At 4:48 PM +0200 on 08/06/2003, imho wrote: >Rendering works allright with this pipeline, I've problems only exporting the poly. vtkIVWrtier has a mind of its own. It does a few things automatically during the export, and those things are not visible when you render the pipeline. I have some code to move simple geometry between Open Inventor and VTK. It works with Coin3D, TGS Open Inventor, and SGI Open Inventor. I've tested on MacOS X, Windows, and IRIX. This all piggy-backs on having some kind of Inventor functionality available at run-time. The vtkActorToIV code is currently based on Paul Rajlich's vtkActorToPF code. It's quite a hack at the moment, but the code does convert a vtkActor into Inventor SoShapeKits more cleanly than using vtkIVWriter. You can query for the resulting shape node as needed. Going in the other direction, vtkOIVSource takes an Inventor SoVertexShape as input and generates vtkPolyData. I slapped together a rough web page at . Chris -- Chris Scharver Electronic Visualization Laboratory The University of Illinois at Chicago Ph: 312-996-3002 FAX: 312-413-7585 From minnus at eng.buffalo.edu Wed Aug 6 16:03:49 2003 From: minnus at eng.buffalo.edu (Martins D Innus) Date: Wed, 6 Aug 2003 16:03:49 -0400 (EDT) Subject: [vtkusers] [PATCH] - vtkBoxWidget Message-ID: Hi, Without the attached patch, an observer I had setup to watch "planes" was being called too early. Could somebody apply this? Thanks. Martins ----------------------------------------------------------------------- Martins Innus (716) 645-6500 x534 Scientific Visualization Specialist minnus at ccr.buffalo.edu Center for Computational Research www.ccr.buffalo.edu/martins.htm University at Buffalo Index: Hybrid/vtkBoxWidget.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/Hybrid/vtkBoxWidget.cxx,v retrieving revision 1.37 diff -u -r1.37 vtkBoxWidget.cxx --- Hybrid/vtkBoxWidget.cxx 29 Jul 2003 20:17:40 -0000 1.37 +++ Hybrid/vtkBoxWidget.cxx 6 Aug 2003 19:50:29 -0000 @@ -1067,9 +1067,6 @@ normals->SetNumberOfComponents(3); normals->SetNumberOfTuples(6); - planes->SetPoints(pts); - planes->SetNormals(normals); - // Set the normals and coordinate values float factor = (this->InsideOut ? -1.0 : 1.0); for (int i=0; i<6; i++) @@ -1078,6 +1075,9 @@ normals->SetTuple3(i, factor*this->N[i][0], factor*this->N[i][1], factor*this->N[i][2]); } + + planes->SetPoints(pts); + planes->SetNormals(normals); pts->Delete(); normals->Delete(); From c.p.botha at ewi.tudelft.nl Wed Aug 6 17:24:24 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Wed, 06 Aug 2003 22:24:24 +0100 Subject: [vtkusers] [PATCH] - vtkBoxWidget In-Reply-To: References: Message-ID: <3F317208.5060400@ewi.tudelft.nl> Martins D Innus wrote: > Without the attached patch, an observer I had setup to watch > "planes" was being called too early. Could somebody apply this? Thanks. Your change is definitely correct. revision 1.38 date: 2003/08/06 20:22:10; author: cpbotha; state: Exp; lines: +6 -6 ERR: In GetPlanes(), points and normals are being correctly setup BEFORE being assigned to the returned data. Doing this the other way round could trigger observers of the planes instance too early. Thanks to Martins Innus. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From imho at bephp.com Wed Aug 6 16:49:16 2003 From: imho at bephp.com (imho) Date: Wed, 06 Aug 2003 22:49:16 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F314296.3020001@creatis.insa-lyon.fr> References: <3F311286.3030902@bephp.com> <3F314296.3020001@creatis.insa-lyon.fr> Message-ID: <3F3169CC.20101@bephp.com> Hi Mathieu, see my interlaced answers : > Next time you should proceed step by step. For example, with your old > pipeline: > > vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> > vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> > vtkPolyDataWriter > > *then* write a simple python script: > > r = vtkPolyDataReader > w = vtkIVWriter > > you'll see your file will be buggy. that's what I've tried in fact, and as you say my file is buggy > Then try: > > r = vtkPolyDataReader > clean = vtkCleanPolyData > w = vtkIVWriter > > in order to remove all degenerate cells > > r = vtkPolyDataReader > clean = vtkCleanPolyData > tf = vtkTriangleFilter > w = vtkIVWriter > > in order to: first remove degenerate cells, *then* turn strips into > triangle (and not the contrary!) > > HTH > mathieu I've just tried this now, and I still have the same error. So I'll try what you've said, a correct pipeline : vtkContourFilter -> vtkDecimatePro -> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> vtkCleanPolyData -> vtkTriangleFilter and then a vtkPolyDataReader -> vtkIVWriter I'll tell you what I've got ;-) thanks (again) imho > > imho wrote: > >> Hi all, >> >> I have a vtkPolyData with these filters : >> vtkContourFilter -> vtkTriangleFilter -> vtkDecimatePro -> >> vtkSmoothPolyDataFilter -> vtkPolyDataNormals -> vtkStripper -> >> vtkCleanPolyData >> >> I can export it to a OpenInventor (iv) file with the vtkIVWriter. >> I have updated my vtk version with the nightly release to fix some bugs >> in these class. >> >> I'd like to use the MESH program http://mesh.epfl.ch/ to compute >> differences between two meshes. >> >> This program said that my poly is: "empty (no faces)" >> >> What can I do to fix this? >> Wich filter should I add in my pipeline to have faces? >> >> Thanks >> >> imho >> >> >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > > From frantzdale at intelligent-imaging.com Wed Aug 6 16:53:57 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Wed, 6 Aug 2003 13:53:57 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: <5.2.0.9.0.20030805080129.0500d500@pop.nycap.rr.com> Message-ID: <19108AA2-C850-11D7-994C-0003938371AE@intelligent-imaging.com> I've done a fair amount of looking; if there's a good OSX install guide, I'd love to see it. On Tuesday, August 5, 2003, at 05:03 AM, William A. Hoffman wrote: > The problem happens because you specified a directory instead of a > library > for the PYTHON_LIBRARY variable in CMake. This should be set to the > full path to the > python library. Or, it should be set to the -framework command for > python if there Looking online I saw a suggestion that the file I'm looking for is /usr/lib/python2.2/config/libpython2.2.a which is a file I don't have ('though the path exists). Also, what do you mean by the "-framework command"? python -framework doesn't work. Thanks, Ben > is one. > > -Bill > > At 05:14 PM 8/4/2003, Ben FrantzDale wrote: >> I'm compiling VTK on OSX. I was getting this error: "ld: can't map >> file" for which google brought up only hits for VTK. (the file in >> question was /usr/lib/python2.2. >> >> For me the fix was as follows in Common/Makefile, there was this >> line, except that after -L/usr/lib/python2.2 there was an extranious >> "/usr/lib/python2.2". Changing it to this fixed the error. I'm not >> sure what cmake did to cause that error, though. >> >> c++ -bundle -flat_namespace -undefined suppress -o >> /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkCommonPython.so >> $(vtkCommonPython_SRC_OBJS) -L. >> -L/Users/ben/Desktop/vtk/VTK-4.2.2/bin -L/usr/lib/python2.2 >> -lvtkCommon -framework AppKit -lpthread -lm >> >> >> I hope this is helpful. (Or that it's since been fixed.) >> >> --Ben >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: >> >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > > From rjstein at iu.edu Wed Aug 6 17:02:48 2003 From: rjstein at iu.edu (Robert Stein) Date: Wed, 6 Aug 2003 16:02:48 -0500 Subject: [vtkusers] How to get an image into python-land :) References: <5.1.0.14.0.20030805164141.039a9300@pop.biz.rr.com> Message-ID: <00f401c35c5e$17f66210$38f3a695@ROBPAD> Hey, I'm currently using python-wrapped vtk in a project I'm working on and would like to be able to get an image out of vtk and into python's world (say with vtkJPEGWriter->WriteToMemoryOn()) In the auto-generated python wrappers for vtkUnsignedCharDataArrayPython.cxx I can find the method call for GetVoidPointer... which returns a SWIG style mangled void pointer... I'm assuming that I could instead return something like a PyString_FromStringAndLength(blah, blah) and get this to work in python... my problem / question is that in the python c-api code... it looks like this actually allocates a "new" python string of this size... I'd rather not make an extra copy of my data... Do any of you vtk python guru's out there know if there's a way to stuff the void* and length of a data array into this internal python structure? I realize this is a pretty involved question... but I hope some one can answer ;) Thanks, Rob Robert Stein Senior Technical Lead Indiana Pervasive Technology Labs rjstein at iu.edu - (317) 278-8154 From c.p.botha at ewi.tudelft.nl Wed Aug 6 18:17:40 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Wed, 06 Aug 2003 23:17:40 +0100 Subject: [vtkusers] How to get an image into python-land :) In-Reply-To: <00f401c35c5e$17f66210$38f3a695@ROBPAD> References: <5.1.0.14.0.20030805164141.039a9300@pop.biz.rr.com> <00f401c35c5e$17f66210$38f3a695@ROBPAD> Message-ID: <3F317E84.80001@ewi.tudelft.nl> Robert Stein wrote: > I'm currently using python-wrapped vtk in a project I'm working on and > would like to be able to get an image out of vtk and into python's world > (say with vtkJPEGWriter->WriteToMemoryOn()) 1. *Please* do not reply on a non-related mail because you don't want to cut and past the VTK Users list address. It mucks around with the message threading on most good e-mail clients. 2. Have a look at vtkImageExport to get image data into Python. See the class documentation for more details. This is probably far less convoluted than what you have in mind. :) Good luck, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From andy.cedilnik at kitware.com Wed Aug 6 17:50:28 2003 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 06 Aug 2003 17:50:28 -0400 Subject: [vtkusers] Common/Makefile problem In-Reply-To: <19108AA2-C850-11D7-994C-0003938371AE@intelligent-imaging.com> References: <19108AA2-C850-11D7-994C-0003938371AE@intelligent-imaging.com> Message-ID: <1060206628.28677.8.camel@andoria> Hi Ben, Instead of specifying /usr/lib/python2.2/config/libpython2.2.a on mac you specify -framework Python. Andy On Wed, 2003-08-06 at 16:53, Ben FrantzDale wrote: > I've done a fair amount of looking; if there's a good OSX install > guide, I'd love to see it. > > On Tuesday, August 5, 2003, at 05:03 AM, William A. Hoffman wrote: > > > The problem happens because you specified a directory instead of a > > library > > for the PYTHON_LIBRARY variable in CMake. This should be set to the > > full path to the > > python library. Or, it should be set to the -framework command for > > python if there > > Looking online I saw a suggestion that the file I'm looking for is > /usr/lib/python2.2/config/libpython2.2.a which is a file I don't have > ('though the path exists). > > Also, what do you mean by the "-framework command"? python -framework > doesn't work. From David.Pont at ForestResearch.co.nz Wed Aug 6 17:56:25 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Thu, 7 Aug 2003 09:56:25 +1200 Subject: [vtkusers] vtkAppendPolydata Message-ID: Shyam, repeatedly clipping sounds like something I have suggested, as a way of refining a clip boundary. This will result in polygons adjacent to the boundary being subdivided in successively closer approximations to the clip boundary. Triangle->Clip produces 3 new points and a net increase of 3 triangles in general (4 new-1 old). So, after 20 iterations, I am not surprised that the data set has almost doubled in size. Duplicate points will occur when you append the two parts back together and as you mentioned in your subsequent response, vtkCleanPolyData reduces the size, but only slightly. Your problem is the highly fractured (x20) polygons around the boundary. You could try vtkDecimate. Read up to understand the parameters so you can control the process. You may damage the boundary and the original mesh. Note that you could easily end up with LESS polygons than you started with, I suggest you aim for some number slightly higher than the original. Dave |--------+--------------------------------------> | | "R K Shyamprakash" | | | | | | Sent by: | | | vtkusers-admin at vtk.org | | | | | | | | | 07/08/2003 00:24 | | | | |--------+--------------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: "'Jeff Lee'" | | cc: "'VTKUserList (E-mail)'" | | Subject: RE: [vtkusers] vtkAppendPolydata | >------------------------------------------------------------------------------------------------------------| I did run it through vtkCleanPolyData. It does control the extent of increase but it fails to resize the new data to original data size. Thanks Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Jeff Lee Sent: Wednesday, August 06, 2003 5:31 PM To: R K Shyamprakash Cc: VTKUserList (E-mail) Subject: Re: [vtkusers] vtkAppendPolydata run through vtkCleanPolyData should help. -Jeff R K Shyamprakash wrote: >Hello, > I use vtkAppendPolyData to create one actor out of two or more actors. But >I noticed that each time I get the output of vtkAppendPolyData, the number >of points is increasing. For a test case, I clip an actor using >vtkClipPolyData, then append the output and clipped output using >vtkClipPolyData. I continued this for about 20 iterations. Then saved the >polydata into a file. The size of the file has increased by 6 MB(initial >size - 9 MB, final size - 15 MB). Is there anyway I can avoid these >duplicate points? > >Thanks >Shyam > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >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: 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://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From scharver at evl.uic.edu Wed Aug 6 18:10:08 2003 From: scharver at evl.uic.edu (Chris Scharver) Date: Wed, 6 Aug 2003 17:10:08 -0500 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F311286.3030902@bephp.com> References: <3F311286.3030902@bephp.com> Message-ID: At 4:36 PM +0200 on 08/06/2003, imho wrote: >I'd like to use the MESH program http://mesh.epfl.ch/ to compute >differences between two meshes. > >This program said that my poly is: "empty (no faces)" It looks like it's a problem with MESH. Checking its source, it says "only the Coordinate3-point and IndexedFaceSet-coordIndex fields are read." I wonder if it's having a problem reading the file written by vtkIVWriter? I also noticed that MESH accepts PLY files. Maybe try using vtkPLYWriter to see if that works? Chris -- Chris Scharver Electronic Visualization Laboratory The University of Illinois at Chicago Ph: 312-996-3002 FAX: 312-413-7585 From cepi at neo.tamu.edu Wed Aug 6 18:30:51 2003 From: cepi at neo.tamu.edu (Epifanio, Craig C) Date: Wed, 6 Aug 2003 22:30:51 -0000 Subject: [vtkusers] VTK + Python on Solaris In-Reply-To: <3F310A58.8080107@brainmap.wustl.edu> Message-ID: <200308062230.h76MUpHR066184@smtp-relay.tamu.edu> Donna, Sure enough, that fixed it! Thanks very much. Craig Donna Hanlon said: > Hi Craig, > > We also run VTK+Python on Solaris. > > You wrote: > >But during the VTK build I get the following: > >ld: fatal: relocations remain against allocatable but non-writable > sections > > I believe your "relocations remain against allocatable but non-writable > sections" link error goes away when you use the "-fPIC" flag with your > compiler (e.g., export CC="gcc -fPIC" before doing make). We ended up > using gcc on Solaris due to problems with Sun's compiler on some > software other than vtk/python (might have been tcl/tk, though). > > Feel free to check out our build script for IRIX, Linux, and Solaris > (http://cvs.sourceforge.net/cgi- bin/viewcvs.cgi/surefit/SureFitSrc/BuildSureFit). > > Donna > > -- From frantzdale at intelligent-imaging.com Wed Aug 6 19:02:49 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Wed, 6 Aug 2003 16:02:49 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: <3F317366.7090901@itg.uiuc.edu> Message-ID: <19E39EE0-C862-11D7-994C-0003938371AE@intelligent-imaging.com> OK, I got a bunch further after installing python and tcltk from Fink and pointing cmake to the libraries in /sw But then I get this: Building object file vtkCarbonRenderWindowInteractor.o... Building object file vtkCarbonRenderWindow.o... Building object file vtkXOpenGLRenderWindow.o... Building object file vtkRenderingInstantiator.o... Building shared library /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib... ld: Undefined symbols: _glXChooseVisual _glXCreateContext _glXDestroyContext _glXGetClientString _glXGetConfig _glXGetCurrentContext _glXIsDirect _glXMakeCurrent _glXQueryExtension _glXQueryExtensionsString _glXQueryServerString _glXSwapBuffers /usr/bin/libtool: internal link edit command failed make[3]: *** [/Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 bash-2.05a$ Any thoughts? Thanks again, Ben On Wednesday, August 6, 2003, at 02:30 PM, Karl Garsha wrote: > Hi Ben, > It looks to me like you are using the Appleized Python that comes with > OSX. This is probably the problem. It's a good idea to go to > www.python.org and download and build Python 2.2.3 (NOT 2.3!)--make > sure to do a framework install (read the instructions in > Python-2.2.3/Mac/OSX). I recommend building tcl-8.4.3 and tk-8.4.3 > from source and doing a framework install as well. This will give you > the correct stuff in the correct places. I changed the name of my > /usr/bin/python to /usr/bin/_python and added /usr/local/bin/ to the > PATH in my .cshrc file. This way when I type "python" at the command > prompt, I get the real python--and so does CMake. Be sure to do a > "make clean" in your vtk directory, then run cmake, then edit the > CMakeCache.txt file to enable python support (simply change a no to a > yes), then run make, then sudo make install. Afterwards, go to the > vtk/Wrapping/Python directory and run "sudo python setup.py install". > To make sure everything works, start a python interpreter in the > terminal and type "import vtk." If things are working you shouldn't > see any error messages. All in all it's not that hard once you have > up to date framwork installs of python, tcl and tk. > -Karl > > Ben FrantzDale wrote: > >> I've done a fair amount of looking; if there's a good OSX install >> guide, I'd love to see it. >> >> On Tuesday, August 5, 2003, at 05:03 AM, William A. Hoffman wrote: >> >>> The problem happens because you specified a directory instead of a >>> library >>> for the PYTHON_LIBRARY variable in CMake. This should be set to the >>> full path to the >>> python library. Or, it should be set to the -framework command for >>> python if there >> >> >> Looking online I saw a suggestion that the file I'm looking for is >> /usr/lib/python2.2/config/libpython2.2.a which is a file I don't have >> ('though the path exists). >> >> Also, what do you mean by the "-framework command"? python -framework >> doesn't work. >> >> Thanks, >> Ben >> >>> is one. >>> >>> -Bill >>> >>> At 05:14 PM 8/4/2003, Ben FrantzDale wrote: >>> >>>> I'm compiling VTK on OSX. I was getting this error: "ld: can't map >>>> file" for which google brought up only hits for VTK. (the file in >>>> question was /usr/lib/python2.2. >>>> >>>> For me the fix was as follows in Common/Makefile, there was this >>>> line, except that after -L/usr/lib/python2.2 there was an >>>> extranious "/usr/lib/python2.2". Changing it to this fixed the >>>> error. I'm not sure what cmake did to cause that error, though. >>>> >>>> c++ -bundle -flat_namespace -undefined suppress -o >>>> /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkCommonPython.so >>>> $(vtkCommonPython_SRC_OBJS) -L. >>>> -L/Users/ben/Desktop/vtk/VTK-4.2.2/bin -L/usr/lib/python2.2 >>>> -lvtkCommon -framework AppKit -lpthread -lm >>>> >>>> >>>> I hope this is helpful. (Or that it's since been fixed.) >>>> >>>> --Ben >>>> >>>> _______________________________________________ >>>> This is the private VTK discussion list. Please keep messages >>>> on-topic. Check the FAQ at: >> >>>> >>>> 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: >> >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > > > -- > Karl Garsha > Light Microscopy Specialist > Imaging Technology Group > Beckman Institute for Advanced Science and Technology > University of Illinois at Urbana-Champaign > 405 North Mathews Avenue > Urbana, IL 61801 > Office: B650J > Phone: 217.244.6292 > Fax: 217.244.6219 > Mobile: 217.390.1874 > www.itg.uiuc.edu > > From andy.cedilnik at kitware.com Wed Aug 6 19:20:19 2003 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 06 Aug 2003 19:20:19 -0400 Subject: [vtkusers] Common/Makefile problem In-Reply-To: <19E39EE0-C862-11D7-994C-0003938371AE@intelligent-imaging.com> References: <19E39EE0-C862-11D7-994C-0003938371AE@intelligent-imaging.com> Message-ID: <1060212019.28678.16.camel@andoria> Hi Ben, What are your CMake values about GL? Andy On Wed, 2003-08-06 at 19:02, Ben FrantzDale wrote: > OK, I got a bunch further after installing python and tcltk from Fink > and pointing cmake to the libraries in /sw > > But then I get this: > > Building object file vtkCarbonRenderWindowInteractor.o... > Building object file vtkCarbonRenderWindow.o... > Building object file vtkXOpenGLRenderWindow.o... > Building object file vtkRenderingInstantiator.o... > Building shared library > /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib... > ld: Undefined symbols: > _glXChooseVisual > _glXCreateContext > _glXDestroyContext > _glXGetClientString > _glXGetConfig > _glXGetCurrentContext > _glXIsDirect > _glXMakeCurrent > _glXQueryExtension > _glXQueryExtensionsString > _glXQueryServerString > _glXSwapBuffers > /usr/bin/libtool: internal link edit command failed > make[3]: *** > [/Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib] Error 1 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Rendering] Error 2 > make: *** [default_target] Error 2 > bash-2.05a$ From frantzdale at intelligent-imaging.com Wed Aug 6 19:23:00 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Wed, 6 Aug 2003 16:23:00 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: <1060212019.28678.16.camel@andoria> Message-ID: All of the Magled_mesa stuff is NOTFOUND OPENGL_INCLUDE_DIR /usr/X11R6/include OPENGL_gl_LIBRARY -framework OpenGL OPENGL_glu_LIBRARY -framework AGL OPENGL_xmesa_INCLUDE_DIR OPENGL_xmesa_INCLUDE_DIR-NOTFOUND VTK_OPENGL_HAS_OSMESA OFF --Ben On Wednesday, August 6, 2003, at 04:20 PM, Andy Cedilnik wrote: > Hi Ben, > > What are your CMake values about GL? > > Andy > > On Wed, 2003-08-06 at 19:02, Ben FrantzDale wrote: >> OK, I got a bunch further after installing python and tcltk from Fink >> and pointing cmake to the libraries in /sw >> >> But then I get this: >> >> Building object file vtkCarbonRenderWindowInteractor.o... >> Building object file vtkCarbonRenderWindow.o... >> Building object file vtkXOpenGLRenderWindow.o... >> Building object file vtkRenderingInstantiator.o... >> Building shared library >> /Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib... >> ld: Undefined symbols: >> _glXChooseVisual >> _glXCreateContext >> _glXDestroyContext >> _glXGetClientString >> _glXGetConfig >> _glXGetCurrentContext >> _glXIsDirect >> _glXMakeCurrent >> _glXQueryExtension >> _glXQueryExtensionsString >> _glXQueryServerString >> _glXSwapBuffers >> /usr/bin/libtool: internal link edit command failed >> make[3]: *** >> [/Users/ben/Desktop/vtk/VTK-4.2.2/bin/libvtkRendering.dylib] Error 1 >> make[2]: *** [default_target] Error 2 >> make[1]: *** [default_target_Rendering] Error 2 >> make: *** [default_target] Error 2 >> bash-2.05a$ > > From ruetalo at cita.utoronto.ca Wed Aug 6 20:31:26 2003 From: ruetalo at cita.utoronto.ca (Marcelo Ruetalo) Date: Wed, 6 Aug 2003 20:31:26 -0400 (EDT) Subject: [vtkusers] execution pipeline Message-ID: I guess the following has to do with the way VTK's execution pipeline is designed, but I can't find how to solve it. Any help will be greatly appreciated! (in C++) I define a class with, say (to make it simple) - a vtkRenderer, a vtkRenderWindow, a vtkActor as data members - constructor to initialize things and render the actor in some simple way - a public method to render the actor in a different way (say, after transformations, filters, etc...) When I create an instance of the class, everything is fine and rendered like I want, but when I call the public method nothing changes! Do I have to somehow explicitly tell VTK to update the actors in the renderer? Thanks, Marcelo From paul at opes.com.au Wed Aug 6 20:49:30 2003 From: paul at opes.com.au (Paul Tait) Date: Thu, 7 Aug 2003 08:49:30 +0800 Subject: [vtkusers] vtkTubeFilter problem solved Message-ID: <002b01c35c7d$c32c3eb0$c50aa8c0@deepthroat> Hi VTK'ers Finally solved my vtkTubefilter problem which occured after upgrading from 4->4.2 The original code was pretty standard newbie code. What I'm doing is geological modelling and I'm building an oil well from 2 points vtkWell::vtkWell(int *idx, vtkPoints *wellPoints, vtkPropCollection *Props, const char *name) : name(name), Props(Props) { wellPolyData = vtkPolyData::New(); wellPolyDataMapper = vtkPolyDataMapper::New(); wellActor = vtkActor::New(); wellPolyData->SetPoints(wellPoints); wellCellArray = vtkCellArray::New(); wellCellArray->InsertNextCell(2, &idx[0]); wellPolyData->SetLines(wellCellArray); tubes = vtkTubeFilter::New(); tubes->SetInput(wellPolyData); tubes->SetRadius(8.0); tubes->SetNumberOfSides(6); wellPolyDataMapper->SetInput(tubes->GetOutput()); wellActor->SetMapper(wellPolyDataMapper); Props->AddItem(wellActor); ...... Anyway 4.2 displays nothing, no errors/warnings!!!! So the working code now looks like this vtkWell::vtkWell(int *idx, vtkPoints *wellPoints, vtkPropCollection *Props, const char *name) : name(name), Props(Props) { vtkLineSource *ls = vtkLineSource::New(); float *pt = wellPoints->GetPoint(idx[0]); ls->SetPoint1(*pt, *(pt+1), *(pt+2)); pt = wellPoints->GetPoint(idx[1]); ls->SetPoint2(*pt, *(pt+1), *(pt+2)); wellPolyDataMapper = vtkPolyDataMapper::New(); wellActor = vtkActor::New(); tubes = vtkTubeFilter::New(); tubes->SetInput(ls->GetOutput()); tubes->SetRadius(8.0); tubes->SetNumberOfSides(6); wellPolyDataMapper->SetInput(tubes->GetOutput()); wellActor->SetMapper(wellPolyDataMapper); Props->AddItem(wellActor); ...... So instead of using polydata I'm using vtkLineSource all works well again. I haven't investigated why this happens but I assume its either a boundary problem/off by one error or some "tightening" of the code is rejecting the line. Maybe polydata must have at least 3 points but I reckon a line with 2 is just fine. Well hope this helps someone Paul From yxliu at fudan.edu.cn Thu Aug 7 00:46:32 2003 From: yxliu at fudan.edu.cn (yxliu) Date: Thu, 07 Aug 2003 12:46:32 +0800 Subject: [vtkusers] about camera Message-ID: <003a01c35c9e$e0184160$1f64a8c0@YXLIU> Hi, VTK users: I display a 3D image using the raycasting method. However , when I change the position of camera I saw nothing. I set the potition of the camera to the default value, but nothing desplayed on the screen. How can I change the camera to view the image? thank you in advance! yxliu -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mathieu.Malaterre at creatis.insa-lyon.fr Thu Aug 7 03:04:50 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 07 Aug 2003 09:04:50 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: References: <3F311286.3030902@bephp.com> Message-ID: <3F31FA12.4000809@creatis.insa-lyon.fr> Chris Scharver wrote: > At 4:36 PM +0200 on 08/06/2003, imho wrote: > > >>I'd like to use the MESH program http://mesh.epfl.ch/ to compute >>differences between two meshes. >> >>This program said that my poly is: "empty (no faces)" > > > It looks like it's a problem with MESH. Checking its source, it says "only the Coordinate3-point and IndexedFaceSet-coordIndex fields are read." I wonder if it's having a problem reading the file written by vtkIVWriter? > > I also noticed that MESH accepts PLY files. Maybe try using vtkPLYWriter to see if that works? The fact is that I was able to produce a working iv file based on imho's data. So I really don't understand what is going on... The two main issues I had was: * degenerate cells: solved with vtkCleanPolyData * triangle strips : solved with vtkTriangleFilter my 2 cents mathieu From king.benjamin at mh-hannover.de Thu Aug 7 04:23:35 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Thu, 07 Aug 2003 09:23:35 +0100 Subject: [vtkusers] order of execution In-Reply-To: <3F30DAE0.7090603@cs.ucl.ac.uk> References: <3F2F70A6.50307@cs.ucl.ac.uk> <3F30DAE0.7090603@cs.ucl.ac.uk> Message-ID: Hello Christos, > the problem is that in my window i have an interactor, so I find it > logical that the window does not allow other computations to be executed > before it closes (if it closes however the application closes!) Hmm. The interactor catches the events that happen in the vtkRenderWindow. If a particular event makes it necessary to update the image, then the interactor will call vtkRenderWindow->Render(). As soon as this method returns, the interface should be responsive again. > is it possible to have more than one vtk window open per application? if > yes how this could be done? threads? do you know any examples > as i did not find any in the vtk documentation What language are you using? With Tcl/Tk, you should use vtkTkRenderWidget. Example: vtkTkRenderWidget .widget1 vtkTkRenderWidget .widget2 This will create two widgets with embedded vtkRenderWindows. There are some helper routines to attach Tcl/Tk's event management to the VTK pipeline. To access the vtkRenderWindows, you have to do somoething like set window [.widget1 GetRenderWindow] Best regards, Benjamin -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From Jonathan.Bailleul at greyc.ismra.fr Thu Aug 7 09:27:46 2003 From: Jonathan.Bailleul at greyc.ismra.fr (Jonathan.Bailleul) Date: Thu, 07 Aug 2003 15:27:46 +0200 Subject: [vtkusers] Very simple help required for using abstract class vtkUnstructuredGridToPolyDataFilter Message-ID: <3F3253D2.7871A6E2@greyc.ismra.fr> Dear all, I would like to build a polydata file out of the result of a Delaunay3d filter. It produces an unstructured grid that I might transform into polydata in using the vtkUnstructuredGridToPolyDataFilter filter. But it appears to be an abstract class and that the instanciation of the object I'm attempting to perform is impossible. What do you suggest me to complete the task? (yes, I'm not very familiar with C++ object system...) In advance, thank you for your comments. #include "vtkPolyData.h" #include "vtkPolyDataReader.h" #include "vtkPolyDataWriter.h" #include "vtkPolyDataNormals.h" #include "vtkCleanPolyData.h" #include #include #include #include #include //GLOS (Graphic Library in Open Source), an ANSI Common Lisp OpenGL subset. //Copyright (C) 2000 the GLOS development team (http://glos.sourceforge.net) static void usage(int argc, char **argv) { if ((argc - 1) != 2) { printf("Infer from given vtk mesh points a new triangulation from 3D Delaunay (VTK)\n"); printf("Licensed under GPL / Copyright (C) 2000 the GLOS development team (http://glos.sourceforge.net) \n"); printf("Usage: %s \n", argv[0]); printf("\n"); exit(1); } } int main(int argc, char* argv[]) { usage(argc, argv); vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader -> SetFileName(argv[1]); reader -> Update(); vtkDelaunay3D* delaunay = vtkDelaunay3D::New(); delaunay -> SetInput(reader -> GetOutput()); delaunay -> SetTolerance(0.03); delaunay -> SetAlpha(0.2); delaunay -> BoundingTriangulationOff(); delaunay -> Update(); // vtkUnstructuredGridToPolyDataFilter *topoly = vtkUnstructuredGridToPolyDataFilter::New(); topoly -> SetInput(delaunay -> GetOutput()); topoly -> Update(); vtkPolyDataWriter *writer = vtkPolyDataWriter::New(); writer -> SetInput(topoly -> GetOutput()); writer -> SetFileName(argv[2]); writer -> SetFileTypeToASCII(); writer -> Update(); return EXIT_SUCCESS; } -- ----------------------------------- Jonathan BAILLEUL, Doctorant GREYC Image - Universit? de Caen http://www.greyc.ismra.fr/~bailleul From Kevin.Wright at ansys.com Thu Aug 7 09:51:10 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Thu, 7 Aug 2003 09:51:10 -0400 Subject: [vtkusers] Very simple help required for using abstract class vtkUnstructuredGridToPolyDataFilter Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDC9B@waterfall.waterloo.cfx.co> > I would like to build a polydata file out of the result of a > Delaunay3d > filter. It produces an unstructured grid that I might transform into > polydata in using the vtkUnstructuredGridToPolyDataFilter > filter. But it > appears to be an abstract class and that the instanciation of > the object > I'm attempting to perform is impossible. PolyData is a surface structure. It cannot handle 3D elements like tetrahedrons that are output from Delaunay3D. The reason that vtkUnstructuredGridToPolyDataFilter is abstract, is because its the base class for specific algorithms to extract a surface from a volume. For example, extracting the outer surface from a volume would be one concrete instance of filtering an unstructured grid to a polydata surface. I notice that your code used a polydata reader to read a file as initial input. Is this file just a list of points? If its a standard polydata structure, including elements, then that's all you need. If that file only defines points, are they all on a surface? If so, you can try using the 2D version of Delaunay. If they actually define a volume, then the Delaunay3D would be an appropriate way to make a mesh out of the points, but if you want a surface, then you'll have to decide what surface you want (outer surface, cut through the volume, etc.) before you can get a polydata structure out of it. Hope that answers your question. Kevin. From oliveira at alumni.deec.uc.pt Thu Aug 7 09:51:15 2003 From: oliveira at alumni.deec.uc.pt (oliveira at alumni.deec.uc.pt) Date: Thu, 7 Aug 2003 14:51:15 +0100 (WEST) Subject: [vtkusers] Memory resident problem Message-ID: <1876.193.136.238.201.1060264275.squirrel@alumni.deec.uc.pt> Dear all, I?m using a MFC project with vtk. I have to display a image into a MFC dialog box, this is ok, i can see the image. The problem is when i close the window, the program is still on memory, i make the deletes but this still don?t work. If i show the image with the vtk window, when i close the window the program don?t stay on memory. How can i "clear" the memory? Is there any method that i missed besize delete? Thanks. From jan.fischer22 at epost.de Thu Aug 7 10:05:02 2003 From: jan.fischer22 at epost.de (jan.fischer22 at epost.de) Date: Thu, 7 Aug 2003 16:05:02 +0200 Subject: [vtkusers] Compiling vtkQt on Windows Message-ID: <3F31485E0000090A@PPD27104.x.de> Hello! We are trying to use Matthias Koenig's vtkQt with vtk4.2 in MS Visual Studio .NET 2003. Although everything compiles okay, the linking stage always fails with a number of seemingly iostream-related unresolved externals, e.g.: MirrorCore error LNK2001: unresolved external symbol "protected: virtual void __thiscall vtkRenderWindowInteractor::CollectRevisions(class std::basic_ostream > &)" The error occurs regardless of whether vtkQt is compiled into a static library of its own or whether the source files are directly added to the project. All files are compiled with the VTK_USE_ANSI_STDLIB preprocessor macro defined (they have to). VTK was installed from the 4.2 binary package on the website. We are using Qt 3.2. Regards, Jan Fischer ________________________________________ Mehr Power f?r Ihre eMail - mit den neuen Leistungspaketen bei http://www.epost.de From john.biddiscombe at mirada-solutions.com Thu Aug 7 10:10:24 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Thu, 7 Aug 2003 15:10:24 +0100 Subject: [vtkusers] Compiling vtkQt on Windows Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B77540713AA@oxcore01.mirada-solutions.com> maybe the binary was compiled without VTK_USE_ANSI_STDLIB! JB > -----Original Message----- > From: jan.fischer22 at epost.de [mailto:jan.fischer22 at epost.de] > Sent: 07 August 2003 15:05 > To: vtkusers at vtk.org > Subject: [vtkusers] Compiling vtkQt on Windows > > > Hello! > > We are trying to use Matthias Koenig's vtkQt with vtk4.2 in > MS Visual Studio > .NET 2003. Although everything compiles okay, the linking > stage always fails > with a number of seemingly iostream-related unresolved > externals, e.g.: > > MirrorCore error LNK2001: unresolved external symbol > "protected: virtual > void __thiscall > vtkRenderWindowInteractor::CollectRevisions(class > std::basic_ostream std::char_traits > &)" > > The error occurs regardless of whether vtkQt is compiled into > a static library > of its own or whether the source files are directly added to > the project. > > All files are compiled with the VTK_USE_ANSI_STDLIB > preprocessor macro defined > (they have to). VTK was installed from the 4.2 binary package > on the website. > We are using Qt 3.2. > > Regards, > Jan Fischer > > ________________________________________ > Mehr Power f?r Ihre eMail - mit den neuen Leistungspaketen > bei http://www.epost.de > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From lrvelez at rcm.upr.edu Thu Aug 7 10:27:22 2003 From: lrvelez at rcm.upr.edu (Luis R Velez Mateo) Date: Thu, 7 Aug 2003 10:27:22 -0400 Subject: [vtkusers] Problem while running a code that was working fine. Message-ID: Hello, I am having a problem with a code that used to work. I wrote this code some months ago and it worked. My machine got infected with a virus and I had to reinstall Windows and every program again. When I reinstalled vtk and Java I got an error with the libraries I was loading and then I started getting this error when I ran the program and pressed the button that calls the vtk functions. java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) And it keeps on going... The code has been untouched so the error must be with the vtk installation I think. I would be grateful for any help. Thanks, Luis From Jonathan.Bailleul at greyc.ismra.fr Thu Aug 7 10:26:34 2003 From: Jonathan.Bailleul at greyc.ismra.fr (Jonathan.Bailleul) Date: Thu, 07 Aug 2003 16:26:34 +0200 Subject: [vtkusers] Very simple help required for using abstract class vtkUnstructuredGridToPolyDataFilter References: <5CDA05569A72F14C8878FD96F2A7F4616FDC9B@waterfall.waterloo.cfx.co> Message-ID: <3F32619A.9838BAB6@greyc.ismra.fr> Kevin Wright wrote: > > > I would like to build a polydata file out of the result of a > > Delaunay3d > > filter. It produces an unstructured grid that I might transform into > > polydata in using the vtkUnstructuredGridToPolyDataFilter > > filter. But it > > appears to be an abstract class and that the instanciation of > > the object > > I'm attempting to perform is impossible. > > PolyData is a surface structure. It cannot handle 3D elements like tetrahedrons that are output from Delaunay3D. The reason that vtkUnstructuredGridToPolyDataFilter is abstract, is because its the base class for specific algorithms to extract a surface from a volume. For example, extracting the outer surface from a volume would be one concrete instance of filtering an unstructured grid to a polydata surface. > > I notice that your code used a polydata reader to read a file as initial input. Is this file just a list of points? If its a standard polydata structure, including elements, then that's all you need. If that file only defines points, are they all on a surface? If so, you can try using the 2D version of Delaunay. If they actually define a volume, then the Delaunay3D would be an appropriate way to make a mesh out of the points, but if you want a surface, then you'll have to decide what surface you want (outer surface, cut through the volume, etc.) before you can get a polydata structure out of it. > > Hope that answers your question. > Kevin. Actually, my purpose is to simplify the mesh of an input vtk polydata surface. I suppose Delaunay3d might supress many elongated triangles or unecessary triangles. Since I "marchingcubed" a voxel volume composed from few slices, obvious "cliffs" are visible between each z-slice of voxel data (see: mcubed shape http://www.greyc.ismra.fr/~bailleul/These/LPut-mcubes-flat.jpg and http://www.greyc.ismra.fr/~bailleul/These/LPut-mcubes-wire.jpg). To overcome this, I used a gausian filter that gave smooth transition between z-slices but left many triangles of distorted shape that I would like to eliminate (cf http://www.greyc.ismra.fr/~bailleul/These/LPut-gauss2-wire.jpg). So, output delaunay points all belong to a single surface: how to make a polydata out of it? In advance, thank you (again) for your help. -- ----------------------------------- Jonathan BAILLEUL, Doctorant GREYC Image - Universit? de Caen http://www.greyc.ismra.fr/~bailleul From I.deBoer at polytec.de Thu Aug 7 10:46:29 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Thu, 7 Aug 2003 16:46:29 +0200 Subject: [vtkusers] How do I get the current state of a filter ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD984EEDF@02polywbr.waldbronn.polytec.de> Hi, I am using the vtkSurfaceReconstructionFilter with about 130000 to 250000 points. This takes quite some time. I want to show some kind of progress bar or stdout or whatsoever which shows the current point number, so the user knows how long he has to wait... I have seen that there is something like a vtkProcessObject and vtkCallbackCommand. Are these the right ones to deal with? I haven't found a sample on them or on the thing I want to do ?! greets Ingo From Jonathan.Bailleul at greyc.ismra.fr Thu Aug 7 10:48:54 2003 From: Jonathan.Bailleul at greyc.ismra.fr (Jonathan.Bailleul) Date: Thu, 07 Aug 2003 16:48:54 +0200 Subject: [vtkusers] problems with ICP alignement Message-ID: <3F3266D6.80856518@greyc.ismra.fr> Dear all, I'm using ICP to align polydata of very similar shape but various positions and orientation. In general, this works fine for the shape I study, but here is a case where ICP fails! (http://www.greyc.ismra.fr/~bailleul/These/ICPfail-start.jpg & http://www.greyc.ismra.fr/~bailleul/These/ICPfail-end.jpg) Please note that in the general case, I might also be obliged to adjust the scale factor of the mesh to align in order to converge to a relevant result: in that one, no adjustment managed to make it. How could I do to have it work in all cases? Adjusting the initial orientation of the shapes (how?)? In advance, thanks a lot for your comments -- ----------------------------------- Jonathan BAILLEUL, Doctorant GREYC Image - Universit? de Caen http://www.greyc.ismra.fr/~bailleul From mcguinpg at maths.tcd.ie Thu Aug 7 10:57:50 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Thu, 7 Aug 2003 15:57:50 +0100 (BST) Subject: [vtkusers] vtkcompositemanager, multiple windows In-Reply-To: <001e01c35c12$9abcb150$de0ba8c0@qtwblr01.questglobal.com> Message-ID: Hi Users, I am running the Taskparallelism.cxx program, and it uses vtkcompositemanager, the program works but a window display appears for each process running, how can I reduce the number of display windows to that of the root process, in other words just one window? Thanks, Paul. From c.p.botha at ewi.tudelft.nl Thu Aug 7 10:59:40 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 07 Aug 2003 16:59:40 +0200 Subject: [vtkusers] How do I get the current state of a filter ? In-Reply-To: <1484AEC8AB498A4EB64D4A8137D23FD984EEDF@02polywbr.waldbronn.polytec.de> References: <1484AEC8AB498A4EB64D4A8137D23FD984EEDF@02polywbr.waldbronn.polytec.de> Message-ID: <1060268380.6142.23.camel@dutidad> On Thu, 2003-08-07 at 16:46, de Boer Ingo wrote: > I am using the vtkSurfaceReconstructionFilter with about 130000 > to 250000 points. This takes quite some time. I want to show > some kind of progress bar or stdout or whatsoever which shows > the current point number, so the user knows how long he has to > wait... > > I have seen that there is something like a vtkProcessObject > and vtkCallbackCommand. Are these the right ones to deal with? > I haven't found a sample on them or on the thing I want to > do ?! You could use an observer for the ProgressEvent of the filter. This follows the standard VTK observer pattern, so just look for any examples using "AddObserver". -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From g.scott at oneteldsl.net Thu Aug 7 11:42:20 2003 From: g.scott at oneteldsl.net (Greg Scott) Date: Thu, 7 Aug 2003 16:42:20 +0100 Subject: [vtkusers] Implementing FFD as a VTK class References: <20030806102707.21680.41375.Mailman@public.kitware.com> Message-ID: <003201c35cfa$7d2ebbe0$0400a8c0@Greg> Hi there, I am in the middle of writing some simple free form deformation (FFD) code to deform a polydata set in a similar way to that provided by vtkThinPlateSplineTransform. I was hoping to put the code into a filter or transform class which I can then use as normal. However, I am very new to VTK, and (a) adding a subclass of, say, vtkWarpTransform looks like a lot of work, and (b) I'd like something that I can get to work as a filter quickly. So I was wondering, does there exist some class which I can extend that provides me with everything but an empty DoIt() type method which I can write, with access to an input and output poly data set? Does anyone have anything like this from their own projects? Many thanks for suggestions. Greg From Jonathan.Bailleul at greyc.ismra.fr Thu Aug 7 11:48:30 2003 From: Jonathan.Bailleul at greyc.ismra.fr (Jonathan.Bailleul) Date: Thu, 07 Aug 2003 17:48:30 +0200 Subject: [vtkusers] problems with ICP alignement References: <3F3266D6.80856518@greyc.ismra.fr> Message-ID: <3F3274CE.988C728A@greyc.ismra.fr> "Jonathan.Bailleul" wrote: > > Dear all, > > I'm using ICP to align polydata of very similar shape but various > positions and orientation. In general, this works fine for the shape I > study, but here is a case where ICP fails! > (http://www.greyc.ismra.fr/~bailleul/These/ICPfail-start.jpg & > http://www.greyc.ismra.fr/~bailleul/These/ICPfail-end.jpg) > > Please note that in the general case, I might also be obliged to adjust > the scale factor of the mesh to align in order to converge to a relevant > result: in that one, no adjustment managed to make it. > > How could I do to have it work in all cases? Adjusting the initial > orientation of the shapes (how?)? > > In advance, thanks a lot for your comments I just found a trick to help me out of my own trap, but nothing to be proud of. The shape to align is always the same in all my tests, and the reference shape does not vary too much in position and orientation (since extracted from brains that are globally aligned). Even that little variation is enough to have the ICP unstable, but the most important difference is in the orientation of the shape to align regarding to the reference ones. So, for one case where I managed to align the shape, I replaced the mean shape by this one with good success in other cases! But since this is far from satisfying (manual operations required), I'd be glad to benefit from your suggestions. Best regards, -- ----------------------------------- Jonathan BAILLEUL, Doctorant GREYC Image - Universit? de Caen http://www.greyc.ismra.fr/~bailleul From nundys at neuro.duke.edu Thu Aug 7 14:47:31 2003 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Thu, 7 Aug 2003 14:47:31 -0400 Subject: [vtkusers] Shadows using vtk? Message-ID: <99A994BE-C907-11D7-BDEA-000393B290A0@neuro.duke.edu> Hello, I was wondering if it was possible to make shadows using vtk. I have looked through the documentation and the web but can't find an instance when this has been implemented. Perhaps a reader of this newsgroup knows how? Thanks, Surajit Nundy From ruetalo at cita.utoronto.ca Thu Aug 7 16:04:13 2003 From: ruetalo at cita.utoronto.ca (Marcelo Ruetalo) Date: Thu, 7 Aug 2003 16:04:13 -0400 (EDT) Subject: [vtkusers] execution pipeline In-Reply-To: Message-ID: Thanks for your reply, Matk. I found the problem last night, and it was, indeed, the pointer to class vs class issue... Marcelo > > I define a class with, say (to make it simple) > > - a vtkRenderer, a vtkRenderWindow, a vtkActor as data members > > - constructor to initialize things and render the actor in some simple > > way > > Please be a bit more precise. I hope you don't use vtk classes on > stack, but keep pointers to them (and do proper Reference counting ). > Do you have some code snippets, preferably of the constructor? > > > When I create an instance of the class, everything is fine and rendered > > like I want, but when I call the public method nothing changes! Do I > > have to somehow explicitly tell VTK to update the actors in the > > renderer? > > An update occurs every time someone kicks it off and propagates only > upwards. This means, if no-one calls an Update(), nothing will change > on your screen. But typically, there's an instance of > vtkRenderWindowInteractor living in your application and if you click > into your rendering window to pan, zoom or rotate, it will start an > Update() from the very end of the rendering pipeline. > > If you want to update the screen yourself, try calling Render() on your > vtkRenderWindow() or vtkRenderer() instance. > > I hope this helps, > > Mark > > > From David.Pont at ForestResearch.co.nz Thu Aug 7 17:30:35 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Fri, 8 Aug 2003 09:30:35 +1200 Subject: [vtkusers] Shadows using vtk? Message-ID: Hi Surajit, The short answer is no. If you search the mailing list archives you should find some past discussion on this topic. A web search with 'OpenGL shadow real time' should turn up some work done on implementing real-time shadows in OpenGL. There also seems to be more recent developments on shadowing techniques in OpenGL. Source code, discussion ad examples are given. Someone with the spare time would be able to get this working in vtk... I have been tempted but never had an real need for shadows in my work. regards, Dave Surajit Nundy cc: Sent by: Subject: [vtkusers] Shadows using vtk? vtkusers-admin @vtk.org 08/08/2003 06:47 Hello, I was wondering if it was possible to make shadows using vtk. I have looked through the documentation and the web but can't find an instance when this has been implemented. Perhaps a reader of this newsgroup knows how? Thanks, Surajit Nundy _______________________________________________ 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://www.vtk.org/mailman/listinfo/vtkusers From godach at juno.com Thu Aug 7 18:10:47 2003 From: godach at juno.com (godach at juno.com) Date: Thu, 7 Aug 2003 22:10:47 GMT Subject: [vtkusers] Removing tensors from cell data Message-ID: <20030807.151134.559.704745@webmail05.lax.untd.com> Hello, Suppose I have two vtkUnstructuredGrids, A and B, and I would like to call B->DeepCopy(A). After that, if I want to remove the tensor array (saved in cell data) that was passed to B during the copying. How should I do that? I have tried various ways, including A->GetCellData()->CopyTensorsOff(); A->GetCellData()->RemoveArray("Tensors_"); Then Allocate and DeepCopy B->GetCellData()->CopyTensorsOff(); Then Allocate and DeepCopy B->GetCellData()->RemoveArray("Tensors_"); But neither of them works... Does anyone know how? Any help is appreciated! Thanks! Best wishes, Daniel ________________________________________________________________ The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! From dean.inglis at camris.ca Fri Aug 8 00:03:35 2003 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Fri, 8 Aug 2003 0:03:35 -0400 Subject: [vtkusers] How do I get the current state of a filter ? Message-ID: <20030808040335.YTQH13150.tomts15-srv.bellnexxia.net@[209.226.175.249]> Hmmm, here is some source code that hopefully illustrates progress ... //create the reader which is a process object... m_Reader = vtkImageReader::New(); m_Reader->SetStartMethod(&BeginGauge ,static_cast(this)); m_Reader->SetEndMethod(&EndGauge ,static_cast(this)); m_Reader->SetProgressMethod(&UpdateProgress ,static_cast(this)); m_currentProcess = m_Reader; m_Reader->Update(); m_currentProcess = NULL; //the next methods are very platform dependent: Borland C++ Builder, //but there is a gui component, a gauge, that paints itself to //a status bar so that it appears as a colored progress meter in one //of the panels of the multi-panel status bar. //m_currentProcess is a pointer to any vtkProcessObject, used here //to monitor loading of 3D image files... void TMainForm::BeginGauge(void* arg) { TMainForm* self = reinterpret_cast(arg); if (!self ) { return; } if( self->m_currentProcess == NULL ) { return; } self->m_abort = false; self->m_currentProcess->AbortExecuteOff(); Screen->Cursor = crHourGlass; const int index = 2; RECT RPanel; SNDMSG(self->StatusBar->Handle, SB_GETRECT, index, reinterpret_cast(&RPanel)); InflateRect(&RPanel, -1, -1); self->CGauge->Parent = self->StatusBar; self->CGauge->BoundsRect = RPanel; self->CGauge->Progress = 0; self->CGauge->Show(); } void TMainForm::EndGauge(void* arg) { TMainForm* self = reinterpret_cast(arg); if (!self ) { return; } Screen->Cursor = crDefault; self->CGauge->Progress = 0; self->CGauge->Hide(); self->CGauge->Parent->Update(); Application->ProcessMessages(); } void TMainForm::UpdateProgress(void* arg) { TMainForm* self = reinterpret_cast(arg); if (!self ) { return; } self->CGauge->Progress = (int)(self->m_currentProcess->GetProgress()*100); Application->ProcessMessages(); if ( self->m_abort ) { self->m_currentProcess->AbortExecuteOn(); } } best regards, Dean From imho at bephp.com Fri Aug 8 02:31:19 2003 From: imho at bephp.com (imho) Date: Fri, 08 Aug 2003 08:31:19 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: References: <3F311286.3030902@bephp.com> Message-ID: <3F3343B7.3090500@bephp.com> Hi Chris, with the ply format, in MESH I've a "corrupted file, I/O error" :/ Chris Scharver wrote: >At 4:36 PM +0200 on 08/06/2003, imho wrote: > > > >>I'd like to use the MESH program http://mesh.epfl.ch/ to compute >>differences between two meshes. >> >>This program said that my poly is: "empty (no faces)" >> >> > >It looks like it's a problem with MESH. Checking its source, it says "only the Coordinate3-point and IndexedFaceSet-coordIndex fields are read." I wonder if it's having a problem reading the file written by vtkIVWriter? > >I also noticed that MESH accepts PLY files. Maybe try using vtkPLYWriter to see if that works? > >Chris >-- >Chris Scharver >Electronic Visualization Laboratory >The University of Illinois at Chicago >Ph: 312-996-3002 FAX: 312-413-7585 > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From imho at bephp.com Fri Aug 8 03:41:41 2003 From: imho at bephp.com (imho) Date: Fri, 08 Aug 2003 09:41:41 +0200 Subject: [vtkusers] vtkPolyData exported to OpenInventor In-Reply-To: <3F31FA12.4000809@creatis.insa-lyon.fr> References: <3F311286.3030902@bephp.com> <3F31FA12.4000809@creatis.insa-lyon.fr> Message-ID: <3F335435.4080704@bephp.com> the writing of the iv file is allright now that I've updated with the nightly released, and I've changed the pipeline as Mathieu said and it works :) thanks a lot Mathieu ! imho Mathieu Malaterre wrote: > Chris Scharver wrote: > >> At 4:36 PM +0200 on 08/06/2003, imho wrote: >> >> >>> I'd like to use the MESH program http://mesh.epfl.ch/ to compute >>> differences between two meshes. >>> >>> This program said that my poly is: "empty (no faces)" >> >> >> >> It looks like it's a problem with MESH. Checking its source, it says >> "only the Coordinate3-point and IndexedFaceSet-coordIndex fields are >> read." I wonder if it's having a problem reading the file written by >> vtkIVWriter? >> >> I also noticed that MESH accepts PLY files. Maybe try using >> vtkPLYWriter to see if that works? > > > The fact is that I was able to produce a working iv file based on > imho's data. So I really don't understand what is going on... > > The two main issues I had was: > * degenerate cells: solved with vtkCleanPolyData > * triangle strips : solved with vtkTriangleFilter > > my 2 cents > mathieu > > . > From mcguinpg at maths.tcd.ie Fri Aug 8 04:40:19 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Fri, 8 Aug 2003 09:40:19 +0100 (BST) Subject: [vtkusers] vtkcompositemanager, multiple windows In-Reply-To: Message-ID: I remember reading an email on the vtk users list awhile ago on how to disable the unwanted windows but I cannot seem to find that email, can anyone please help me, the problem is described below? Paul On Thu, 7 Aug 2003, Paul McGuinness wrote: > > Hi Users, > > I am running the Taskparallelism.cxx program, and it uses > vtkcompositemanager, the program works but a window display appears for > each process running, how can I reduce the number of display windows to > that of the root process, in other words just one window? > > Thanks, > Paul. > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From Steffen.Oeltze at Student.Uni-Magdeburg.DE Fri Aug 8 05:35:05 2003 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Fri, 8 Aug 2003 11:35:05 +0200 Subject: [vtkusers] unsubscribe vtkusers Message-ID: <1060335305.3f336ec9ef69d@webmail.uni-magdeburg.de> -- From T.Hutton at eastman.ucl.ac.uk Fri Aug 8 07:13:07 2003 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 08 Aug 2003 12:13:07 +0100 Subject: [vtkusers] problems with ICP alignement In-Reply-To: <3F3274CE.988C728A@greyc.ismra.fr> References: <3F3266D6.80856518@greyc.ismra.fr> Message-ID: <5.1.0.14.0.20030808120749.02e18e10@144.82.123.1> Hi Jonathan, In general there is no guarantee that ICP will converge to the correct alignment. Tricks that might help on some types of data include: - start by aligning centroids (vtkICP has this be default) - start by aligning principal axes - start from multiple positions / orientations and use the result that gives the smallest mean distance hth, Tim. At 17:48 07/08/2003 +0200, Jonathan.Bailleul wrote: >"Jonathan.Bailleul" wrote: > > > > Dear all, > > > > I'm using ICP to align polydata of very similar shape but various > > positions and orientation. In general, this works fine for the shape I > > study, but here is a case where ICP fails! > > (http://www.greyc.ismra.fr/~bailleul/These/ICPfail-start.jpg & > > http://www.greyc.ismra.fr/~bailleul/These/ICPfail-end.jpg) > > > > Please note that in the general case, I might also be obliged to adjust > > the scale factor of the mesh to align in order to converge to a relevant > > result: in that one, no adjustment managed to make it. > > > > How could I do to have it work in all cases? Adjusting the initial > > orientation of the shapes (how?)? > > > > In advance, thanks a lot for your comments > > >I just found a trick to help me out of my own trap, but nothing to be >proud of. >The shape to align is always the same in all my tests, and the reference >shape does not vary too much in position and orientation (since >extracted from brains that are globally aligned). Even that little >variation is enough to have the ICP unstable, but the most important >difference is in the orientation of the shape to align regarding to the >reference ones. >So, for one case where I managed to align the shape, I replaced the mean >shape by this one with good success in other cases! > >But since this is far from satisfying (manual operations required), I'd >be glad to benefit from your suggestions. > > >Best regards, > > >-- >----------------------------------- >Jonathan BAILLEUL, Doctorant >GREYC Image - Universit? de Caen >http://www.greyc.ismra.fr/~bailleul >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From ramakrishna.prakash at quest-global.com Fri Aug 8 08:02:02 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 8 Aug 2003 17:32:02 +0530 Subject: [vtkusers] vtkLODActor Message-ID: <000d01c35da4$e1964fd0$de0ba8c0@qtwblr01.questglobal.com> Hello, I am using vtkLOD actor and I have defined an LOD(by addLODMapper which takes output from vtkDecimatePro) . I have noticed that there is a delay of 3 to 4 second when I try to move it for the first time after it has been loaded. Then onwards the object moves/rotates normally. This happens in Paraview(version .6) as well if I change the LOD threshold and try to move the object.(I am talking about reasonably large datasets 15 MB binary stl file) . Is there any workaround for this problem? Thanks Shyam From Kevin.Wright at ansys.com Fri Aug 8 09:05:21 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Fri, 8 Aug 2003 09:05:21 -0400 Subject: [vtkusers] vtkLODActor Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDEA9@waterfall.waterloo.cfx.co> > Hello, > I am using vtkLOD actor and I have defined an LOD(by > addLODMapper which > takes output from vtkDecimatePro) . I have noticed that there > is a delay of > 3 to 4 second when I try to move it for the first time after > it has been > loaded. Then onwards the object moves/rotates normally. This > happens in > Paraview(version .6) as well if I change the LOD threshold > and try to move > the object.(I am talking about reasonably large datasets 15 > MB binary stl > file) . Is there any workaround for this problem? I expect that the first time you rotate it, its building the decimated pipeline, which would include doing the decimation itself. If you wanted to avoid that, just force the decimation filter to build manually before-hand, and I would think that would do it. Kevin. From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Aug 8 09:06:34 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 08 Aug 2003 15:06:34 +0200 Subject: [vtkusers] vtkBoxWidget::EnableOn Message-ID: <3F33A05A.2030505@creatis.insa-lyon.fr> Hi all, I wrote a small python script, where I would like to display a vtkBoxWidget. But I can't get EnabledOn to work properly. Anyone any idea ? ####################################### from vtk.wx.wxVTKRenderWindowInteractor import * class wxMarWheel(wxVTKRenderWindowInteractor): def __init__(self, parent, ID, *args, **kw): wxVTKRenderWindowInteractor.__init__(self,parent, ID) self.CreateBoxWidget() def CreateBoxWidget(self): self._boxWidget = vtk.vtkBoxWidget() self._boxWidget.SetInteractor(self._Iren) self._boxWidget.EnabledOn() #doesn't do anything ... if __name__ == "__main__": # every wx app needs an app app = wxPySimpleApp() # create the widget frame = wxFrame(None, -1, "wxRenderWindow", size=wxSize(400,400)) widget = wxMarWheel(frame, -1) widget.Initialize() widget.Start() ren = vtk.vtkRenderer() widget.GetRenderWindow().AddRenderer(ren) cone = vtk.vtkConeSource() cone.SetResolution(8) coneMapper = vtk.vtkPolyDataMapper() coneMapper.SetInput(cone.GetOutput()) coneActor = vtk.vtkActor() coneActor.SetMapper(coneMapper) ren.AddActor(coneActor) frame.Show(1) app.MainLoop() ####################################### Thanks, mathieu From c.p.botha at ewi.tudelft.nl Fri Aug 8 09:42:33 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 08 Aug 2003 15:42:33 +0200 Subject: [vtkusers] vtkBoxWidget::EnableOn In-Reply-To: <3F33A05A.2030505@creatis.insa-lyon.fr> References: <3F33A05A.2030505@creatis.insa-lyon.fr> Message-ID: <1060350153.10680.34.camel@dutidad> On Fri, 2003-08-08 at 15:06, Mathieu Malaterre wrote: > I wrote a small python script, where I would like to display a > vtkBoxWidget. But I can't get EnabledOn to work properly. You're enabling the BoxWidget far too early... Try calling CreateBoxWidget() at the earliest AFTER your assignment of the renderer to the renderwindow. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From cpanagio at cs.ucl.ac.uk Fri Aug 8 10:15:44 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Fri, 08 Aug 2003 15:15:44 +0100 Subject: [vtkusers] manual raycasting Message-ID: <3F33B090.8060900@cs.ucl.ac.uk> guys the last few days i am trying to implement a ray casting algorithm that will cast rays from the centroid of a volume to select points in the surface (the volume has only surface - inside is empty) in regular angles i have passed the info of the volume to a vtkOBBTree so i can use the intersectWithLine method i define one vtkLine from the centroid to a vertical direction and then i rotate it to regular intervals however the intersectWithLine method does not take as input a vtkLine but the start and end points of the line so my question is: when i rotate the vtkLine, is there any way to retrieve the start and end points of its new location so i can pass them as parameters to the intersectwithline method? if you have any other ideas of how this could be implemented i would appreciate if you could share them with me! all the best christos From sara.kerner at lmco.com Fri Aug 8 10:45:24 2003 From: sara.kerner at lmco.com (Kerner, Sara) Date: Fri, 08 Aug 2003 07:45:24 -0700 Subject: [vtkusers] Is there an external interface for communication with a vtk application? Message-ID: > I have a vtk application (vtk4.0 w/ Java for Win2k) for which I do not have the source code. I would like to "send a message" to this application to get it to export a vrml file using vtkVRMLExporter. Is there a way to communicate with the application externally? > > I have tried browsing the man pages, searching FAQ, email archives, web, etc. using keywords "external", "interface", "communicate", "message", etc. but was not able to get anything that seemed related. > > Thanks, > Sara > > From jdixon at mitre.org Fri Aug 8 15:10:42 2003 From: jdixon at mitre.org (Dixon,John K.) Date: Fri, 08 Aug 2003 15:10:42 -0400 Subject: [vtkusers] VTK4.2 and Java1.4 Message-ID: <3F33F5B2.BF559B5F@mitre.org> Has anyone had any success using vtk4.2 and Java1.4 using Win32 or Linux?? I receive the following error when I attempt to compile the sample program SimpleVTK.java on Win32. javac SimpleVTK.java C:\Program Files\vtk42\bin\vtk.jar(vtk/vtkPanel.java):7: class vtkPanel is public, should be declared in a file named vtkPanel.java (source unavailable) 1 error Any suggestions?? Thanks in advance. --John From marcelo at cci.fmrp.usp.br Fri Aug 8 16:44:46 2003 From: marcelo at cci.fmrp.usp.br (Marcelo) Date: Fri, 8 Aug 2003 17:44:46 -0300 Subject: [vtkusers] makefile + vtkFlRenderWindowInteractor Message-ID: <200308082058.h78KwrM08213@quartzo.cirp.usp.br> Hi user's The compile is OK, but when i run ./Cone3 ./Cone3: error while loading shared libraries: libvtkImaging.so: cannot open shared object file: No such file or directory I'm using VTK 4.2,vtkFlRenderWindowInteractor 0.9 and Debian woody (3.0) Tanks for yours Hints !!!! ________________________________________________ Message sent using UebiMiau 2.7.2 From c.p.botha at ewi.tudelft.nl Fri Aug 8 18:50:55 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Sat, 9 Aug 2003 00:50:55 +0200 Subject: [vtkusers] Re: makefile + vtkFlRenderWindowInteractor In-Reply-To: <200308082058.h78KwrM08213@quartzo.cirp.usp.br> References: <200308082058.h78KwrM08213@quartzo.cirp.usp.br> Message-ID: <20030808225055.GA13292@dutidad.twi.tudelft.nl> On Fri, Aug 08, 2003 at 05:44:46PM -0300, Marcelo wrote: > The compile is OK, but when i run > > ./Cone3 > ./Cone3: error while loading shared libraries: libvtkImaging.so: cannot open > shared object file: No such file or directory What's the output of ldd ./Cone3 ? -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From oliveira_mc at yahoo.com.br Fri Aug 8 20:11:37 2003 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Fri, 8 Aug 2003 21:11:37 -0300 (ART) Subject: [vtkusers] Re: Fw: makefile + vtkFlRenderWindowInteractor In-Reply-To: <000701c35dff$b30ad0e0$f9c56b8f@cad5> Message-ID: <20030809001137.8760.qmail@web20107.mail.yahoo.com> Tanks a lot Charl for your time and help !!! marcelo@(none):~/vtkFltk/examples/Cone3$ ldd ./Cone3 libGLU.so.1 => /usr/lib/libGLU.so.1 (0x4001b000) libGL.so.1 => /usr/lib/libGL.so.1 (0x400aa000) libdl.so.2 => /lib/libdl.so.2 (0x40273000) libpthread.so.0 => /lib/libpthread.so.0 (0x40276000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402c5000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40380000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4038d000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x403d8000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x403e0000) libvtkImaging.so => not found libvtkGraphics.so => not found libvtkCommon.so => not found libvtkPatented.so => not found libvtkRendering.so => not found libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x403f6000) libm.so.6 => /lib/libm.so.6 (0x4043f000) libc.so.6 => /lib/libc.so.6 (0x40460000) libvtkFiltering.so => not found libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40570000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4061d000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40625000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40639000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) I don t understand, i think that my path is correct, isn t ?? (none):/# find -iname libvtkImaging.so ./usr/local/src/VTK_bin/bin/libvtkImaging.so > ----- Original Message ----- > From: "Charl P. Botha" > To: "Marcelo" > Cc: > Sent: Friday, August 08, 2003 7:50 PM > Subject: Re: makefile + vtkFlRenderWindowInteractor > > > > On Fri, Aug 08, 2003 at 05:44:46PM -0300, Marcelo > wrote: > > > The compile is OK, but when i run > > > > > > ./Cone3 > > > ./Cone3: error while loading shared libraries: > libvtkImaging.so: cannot > open > > > shared object file: No such file or directory > > > > What's the output of ldd ./Cone3 ? > > > > -- > > charl p. botha http://cpbotha.net/ > http://visualisation.tudelft.nl/ > _______________________________________________________________________ Conhe?a o novo Cad?? - Mais r?pido, mais f?cil e mais preciso. Toda a web, 42 milh?es de p?ginas brasileiras e nova busca por imagens! http://www.cade.com.br From nundys at neuro.duke.edu Fri Aug 8 21:05:51 2003 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Fri, 8 Aug 2003 21:05:51 -0400 Subject: [vtkusers] Bug in Cocoa and Carbon (OS X) vtkLight implementation? Message-ID: <9ED2EDF2-CA05-11D7-867A-000393B290A0@neuro.duke.edu> When I try to run a method on a vtkLight (vtkOpenGLLight) in a Cocoa Window like SetPosition(), I get unexpected behavior, like either nothing happens or the Intensity changes to the value inputted. Carbon is slightly better, but neither works as documented. Surajit Nundy From c.p.botha at ewi.tudelft.nl Sat Aug 9 05:32:43 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Sat, 9 Aug 2003 11:32:43 +0200 Subject: [vtkusers] Re: Fw: makefile + vtkFlRenderWindowInteractor In-Reply-To: <20030809001137.8760.qmail@web20107.mail.yahoo.com> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> Message-ID: <20030809093243.GB14330@dutidad.twi.tudelft.nl> On Fri, Aug 08, 2003 at 09:11:37PM -0300, marcelo oliveira wrote: > libvtkImaging.so => not found > libvtkGraphics.so => not found > libvtkCommon.so => not found > libvtkPatented.so => not found > libvtkRendering.so => not found > libstdc++-libc6.2-2.so.3 => > /usr/lib/libstdc++-libc6.2-2.so.3 (0x403f6000) > libm.so.6 => /lib/libm.so.6 (0x4043f000) > libc.so.6 => /lib/libc.so.6 (0x40460000) > libvtkFiltering.so => not found > > I don t understand, i think that my path is correct, > isn t ?? > > (none):/# find -iname libvtkImaging.so > ./usr/local/src/VTK_bin/bin/libvtkImaging.so Make sure that your LD_LIBRARY_PATH includes the directory containing the VTK libraries, e.g. for a Bourne-style shell: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/src/VTK_bin/bin/ Good luck, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From g.gorman at imperial.ac.uk Sat Aug 9 07:40:59 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Sat, 09 Aug 2003 12:40:59 +0100 Subject: [vtkusers] vtkAppendPolyData woes In-Reply-To: <20030809093243.GB14330@dutidad.twi.tudelft.nl> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> <20030809093243.GB14330@dutidad.twi.tudelft.nl> Message-ID: <3F34DDCB.1060908@imperial.ac.uk> I have been trying to use vtkAppendPolyData (vtk 4.2) in python (2.2) to append two polydata sets (they just contain points and pointdata - simular data etc). However I'm having zero success. I have appended a short piece of code to demonstrate the problem. Any suggestions will be greatly appreciated. Cheers Gerard. #!/usr/bin/env python2 import vtk,sys file0 = sys.argv[1] file1 = sys.argv[2] appendF = vtk.vtkAppendPolyData () r0 = vtk.vtkXMLPolyDataReader () r0.SetFileName (file0) r0.Update () appendF.AddInput (r0.GetOutput ()) # object looks file here print appendF.GetInput (0) r1 = vtk.vtkXMLPolyDataReader () r1.SetFileName (file1) r1.Update () appendF.AddInput (r1.GetOutput ()) # object looks file here print appendF.GetInput (1) # here I get nothing print appendF.GetOutput () #and checking the file I have definatly nothing w = vtk.vtkXMLPolyDataWriter () w.SetInput (appendF.GetOutput ()) w.SetFileName ("appendtest.vtp") w.Write() From prabhu at aero.iitm.ernet.in Sat Aug 9 07:56:34 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 9 Aug 2003 17:26:34 +0530 Subject: [vtkusers] vtkAppendPolyData woes In-Reply-To: <3F34DDCB.1060908@imperial.ac.uk> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> <20030809093243.GB14330@dutidad.twi.tudelft.nl> <3F34DDCB.1060908@imperial.ac.uk> Message-ID: <16180.57714.437115.890309@monster.linux.in> >>>>> "GG" == Gerard Gorman writes: GG> I have been trying to use vtkAppendPolyData (vtk 4.2) in GG> python (2.2) to append two polydata sets (they just contain GG> points and pointdata - simular data etc). However I'm having GG> zero success. I have appended a short piece of code to GG> demonstrate the problem. Any suggestions will be greatly GG> appreciated. [snip] GG> # here I get nothing GG> print appendF.GetOutput () Perhaps adding an appendF.Update() before you get the output will help. cheers, prabhu From g.gorman at imperial.ac.uk Sat Aug 9 08:08:35 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Sat, 09 Aug 2003 13:08:35 +0100 Subject: [vtkusers] vtkAppendPolyData woes In-Reply-To: <16180.57714.437115.890309@monster.linux.in> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> <20030809093243.GB14330@dutidad.twi.tudelft.nl> <3F34DDCB.1060908@imperial.ac.uk> <16180.57714.437115.890309@monster.linux.in> Message-ID: <3F34E443.8040103@imperial.ac.uk> Prabhu Ramachandran wrote: > Perhaps adding an appendF.Update() before you get the output will > help. I'm afraid that it made no difference (see the change below). For the curious I put two example polydata files in at: http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers80.vtp http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers81.vtp ...so just use the below script as ./test.py tracers80.vtp tracers80.vtp Cheers Gerard. #!/usr/bin/env python2 import vtk,sys file0 = sys.argv[1] file1 = sys.argv[2] appendF = vtk.vtkAppendPolyData () r0 = vtk.vtkXMLPolyDataReader () r0.SetFileName (file0) r0.Update () appendF.AddInput (r0.GetOutput ()) # object looks file here print appendF.GetInput (0) r1 = vtk.vtkXMLPolyDataReader () r1.SetFileName (file1) r1.Update () appendF.AddInput (r1.GetOutput ()) # object looks file here print appendF.GetInput (1) appendF.Update () # here I get nothing print appendF.GetOutput () #and checking the file I have definatly nothing w = vtk.vtkXMLPolyDataWriter () w.SetInput (appendF.GetOutput ()) w.SetFileName ("appendtest.vtp") w.Write() From prabhu at aero.iitm.ernet.in Sat Aug 9 08:46:08 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 9 Aug 2003 18:16:08 +0530 Subject: [vtkusers] vtkAppendPolyData woes In-Reply-To: <3F34E443.8040103@imperial.ac.uk> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> <20030809093243.GB14330@dutidad.twi.tudelft.nl> <3F34DDCB.1060908@imperial.ac.uk> <16180.57714.437115.890309@monster.linux.in> <3F34E443.8040103@imperial.ac.uk> Message-ID: <16180.60688.538001.452192@monster.linux.in> >>>>> "GG" == Gerard Gorman writes: GG> Prabhu Ramachandran wrote: >> Perhaps adding an appendF.Update() before you get the output >> will help. GG> I'm afraid that it made no difference (see the change GG> below). For the curious I put two example polydata files in GG> at: GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers80.vtp GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers81.vtp GG> ...so just use the below script as ./test.py tracers80.vtp GG> tracers80.vtp >From what I can tell its your data thats incorrect. You need to specify the vertices. Without the vertices there is no "polydata", only points. For each point add a vertex and AFAIK it should work. Something like so: VERTICES 100 200 1 0 1 1 1 2 ... 1 99 cheers, prabhu From g.gorman at imperial.ac.uk Sat Aug 9 09:39:23 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Sat, 09 Aug 2003 14:39:23 +0100 Subject: [vtkusers] vtkAppendPolyData woes In-Reply-To: <16180.60688.538001.452192@monster.linux.in> References: <000701c35dff$b30ad0e0$f9c56b8f@cad5> <20030809001137.8760.qmail@web20107.mail.yahoo.com> <20030809093243.GB14330@dutidad.twi.tudelft.nl> <3F34DDCB.1060908@imperial.ac.uk> <16180.57714.437115.890309@monster.linux.in> <3F34E443.8040103@imperial.ac.uk> <16180.60688.538001.452192@monster.linux.in> Message-ID: <3F34F98B.2060601@imperial.ac.uk> Thanks! That was exactly the problem. I had missed the importance of maintaining a cell (VTK_VERTEX) when working with point data. Thanks again for you help, Gerard. Prabhu Ramachandran wrote: >>>>>>"GG" == Gerard Gorman writes: > > > GG> Prabhu Ramachandran wrote: > >> Perhaps adding an appendF.Update() before you get the output > >> will help. > > GG> I'm afraid that it made no difference (see the change > GG> below). For the curious I put two example polydata files in > GG> at: > GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers80.vtp > GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers81.vtp > GG> ...so just use the below script as ./test.py tracers80.vtp > GG> tracers80.vtp > >>From what I can tell its your data thats incorrect. You need to > specify the vertices. Without the vertices there is no "polydata", > only points. For each point add a vertex and AFAIK it should work. > Something like so: > > VERTICES 100 200 > 1 0 > 1 1 > 1 2 > ... > 1 99 > > > cheers, > prabhu > -- ---------------------------------------------------------- Gerard Gorman (PhD Student) Applied Modelling and Computation Group Earth Science and Engineering Imperial College Prince Consort Road Tel. 00 44 +207 594 9323 London SW7 2BP Fax. 00 44 +207 594 9321 U.K. o~o A good slogan beats a good solution. -----------------------w-v-w------------------------------ From dkoppel1 at cox.net Sat Aug 9 22:03:01 2003 From: dkoppel1 at cox.net (dkoppel1 at cox.net) Date: Sat, 9 Aug 2003 22:03:01 -0400 Subject: [vtkusers] Newby needs advice: how to get vertices from VTK file? Message-ID: <20030810020300.PJTK13554.fed1mtao04.cox.net@smtp.west.cox.net> Hello all, I'm new to VTK. Somebody sent me a VTK file which represents the surface of a human liver. The surface has been triangulated, and I would like to obtain the 3D coordinates of the triangles. Could somebody please tell me what would be the simplest way for me to obtain these triangle coordinates? Thanks very much in advance, Dan Koppel UCSB From ma_nju at hotmail.com Sat Aug 9 22:34:59 2003 From: ma_nju at hotmail.com (Ma Qianli) Date: Sun, 10 Aug 2003 10:34:59 +0800 Subject: [vtkusers] How to use vtkVolume16Reader->GetImage Message-ID: Hi, all I'm using vtkVolume16Reader to read the images in $VTK_DATA_DIR/Data/headsq. Here is my reader program: vtkVolume16Reader *v16 = vtkVolume16Reader::New(); v16->SetDataDimensions (64, 64); v16->SetImageRange (1, 93); v16->SetDataByteOrderToLittleEndian(); v16->SetFilePrefix ("VTKData/Data/headsq/quarter"); v16->SetDataSpacing (1, 1, 3); Then I want to display each image on user's request: vtkImageViewer *imageViewer = vtkImageViewer::New(); imageViewer->SetInput(v16->GetOutput()); imageViewer->SetZSlice(Index); imageViewer->Render(); That's ok, and exactly what I want. But I want the program more simple, so I implemented this function as: vtkImageViewer *imageViewer = vtkImageViewer::New(); imageViewer->SetInput(v16->GetImage(Index)); imageViewer->Render(); This time I got a image of noise! Does anybody have any idea on this problem? Did I use vtkVolume16Reader->GetImage in a wrong way? Thanks in advance! Ma Qianli Nanjing University _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn From dhibi.mounir at enst-bretagne.fr Sun Aug 10 07:46:21 2003 From: dhibi.mounir at enst-bretagne.fr (Mounir Dhibi) Date: Sun, 10 Aug 2003 13:46:21 +0200 Subject: [vtkusers] Mouse getting points References: <20030810102624.10877.60669.Mailman@public.kitware.com> Message-ID: <001001c35f35$04cf8480$0d02a8c0@platim01> dear all I use a set of 2D files which I read with vtkImageReader. I want te get points after click with mouse in Image to draw an ellipse in each Image with the set of these points, any body have any idea? thank you very much all Mounir ----------------------------------------------- Dhibi Mounir D?partement ITI ENST Bretagne Bp 832 Brest-Cedex 29285 From andresba at hotmail.com Sun Aug 10 16:34:13 2003 From: andresba at hotmail.com (Andres Barrera) Date: Sun, 10 Aug 2003 15:34:13 -0500 Subject: [vtkusers] Transformations and Matrices Message-ID: Dear list, I am having some hard time by applying sequences of transformations ussing different ways, and trying to get possitions and oriemtations back..... is there any tutorial, example, or something that makes clear all following con _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From andresba at hotmail.com Sun Aug 10 16:46:31 2003 From: andresba at hotmail.com (Andres Barrera) Date: Sun, 10 Aug 2003 15:46:31 -0500 Subject: [vtkusers] Transformations and Matrices Message-ID: Dear list, I am having some hard time by applying sequences of transformations ussing different ways, and trying to get possitions and orientations back..... I've been reading the vtk books and documentation, and experimenting with: - Position and Orientation - Matrix , UserMatrix, and UserTransform , - using someActor->RotateWXYZ ( qw,qx,qy,qz); someActor->SetPosition( x,y,z); and - someTransform->Translate ( posX, posY, posZ); someTransform->RotateWXYZ ( qw,qx,qy,qz); someTransform->Translate ( offsetX, offsetY, offsetZ); someTransform->Translate ( ............); someActor->SetUserTransform(someTransform); - etc. Basically I am able of locating the actors where I want in many different ways, but when I want to get its possitions/orientations, transformations, and/or matrices, I have lots of inconsistencies. is there any tutorial, example, or something that makes clear all following con _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From andresba at hotmail.com Sun Aug 10 16:46:31 2003 From: andresba at hotmail.com (Andres Barrera) Date: Sun, 10 Aug 2003 15:46:31 -0500 Subject: [vtkusers] Transformations and Matrices Message-ID: Dear list, I am having some hard time by applying sequences of transformations ussing different ways, and trying to get possitions and orientations back..... I've been reading the vtk books and documentation, and experimenting with: - Position and Orientation - Matrix , UserMatrix, and UserTransform , - using someActor->RotateWXYZ ( qw,qx,qy,qz); someActor->SetPosition( x,y,z); and - someTransform->Translate ( posX, posY, posZ); someTransform->RotateWXYZ ( qw,qx,qy,qz); someTransform->Translate ( offsetX, offsetY, offsetZ); someTransform->Translate ( ............); someActor->SetUserTransform(someTransform); - etc. Basically I am able of locating the actors where I want in many different ways, but when I want to get its possitions/orientations, transformations, and/or matrices, I have lots of inconsistencies. is there any tutorial, example, or something that makes clear all following con _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From andresba at hotmail.com Sun Aug 10 16:55:00 2003 From: andresba at hotmail.com (Andres Barrera) Date: Sun, 10 Aug 2003 15:55:00 -0500 Subject: [vtkusers] Apology Message-ID: Dear list, I am sorry but I accidentally sent two unfinished e-mails to the list. I know how annoying is to get this kind of e-mail, but I didn?t send them on purpose. : ) Andres _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From andresba at hotmail.com Sun Aug 10 16:58:52 2003 From: andresba at hotmail.com (Andres Barrera) Date: Sun, 10 Aug 2003 15:58:52 -0500 Subject: [vtkusers] Correction: Transformations and Matrices Message-ID: Dear list, I am having some hard time by applying sequences of transformations using different ways, and trying to get positions and orientations back..... I've been reading the vtk books and documentation, and experimenting with: - Position and Orientation - Matrix , UserMatrix, and UserTransform , - using someActor->RotateWXYZ ( qw,qx,qy,qz); someActor->SetPosition( x,y,z); and - someTransform->Translate ( posX, posY, posZ); someTransform->RotateWXYZ ( qw,qx,qy,qz); someTransform->Translate ( offsetX, offsetY, offsetZ); someTransform->Translate ( ............);//to the origin someActor->SetUserTransform(someTransform); - etc. Basically I am able to put the actors where I want in many different ways, but when I want to get its positions/orientations, transformations, and/or matrices, I have lots of inconsistencies. Can anyone tell me about some tutorial, examples, or something that makes clear WHERE and HOW are stored all these parameters in the Prop3D? Thank you in advance. Andres _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From I.deBoer at polytec.de Mon Aug 11 03:59:22 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 11 Aug 2003 09:59:22 +0200 Subject: [vtkusers] Observer/Progress problem ?! Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD984EEE0@02polywbr.waldbronn.polytec.de> Hi, I am using the vtkSurfaceReconstructionFilter with about 130000 to 250000 points. This takes quite some time. I want to show some kind of progress bar or stdout or whatsoever which shows the current point number, so the user knows how long he has to wait... The following sample shows the number of points (of course), but then only: start progress progress: 1.000000 end progress Why is that ? How do I get some kind of counter progress ? greets Ingo ############################################################ /////////////////////////////////////////// void StartProgress(void *arg) { fprintf(stdout, "start progress\n"); } /////////////////////////////////////////// void EndProgress(void *arg) { fprintf(stdout, "end progress\n"); } /////////////////////////////////////////// void UpdateProgress(void *arg) { vtkProcessObject* process = reinterpret_cast(arg); fprintf(stdout, "progress: %f\r", process->GetProgress()); } /////////////////////////////////////////// int main( int argc, char *argv[] ) { // Read some 3d points. FILE *datei = fopen(argv[1],"rt"); vtkPolyData *data = vtkPolyData::New(); vtkPoints *points = vtkPoints::New(); int iCounter = 0; while (!feof(datei)) { fprintf(stdout,"reading points: %i\r", iCounter); float x, y, z; fscanf(datei,"%f %f %f\n", &x, &y, &z); points->InsertPoint(iCounter++, x, y, z); } data->SetPoints(points); fclose(datei); fprintf(stdout,"\n\n"); // Construct the surface and create isosurface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(data); surf->SetStartMethod(StartProgress, static_cast(surf)); surf->SetEndMethod(EndProgress, static_cast(surf)); surf->SetProgressMethod(UpdateProgress, static_cast(surf)); vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput((vtkDataSet*)surf->GetOutput()); cf->SetValue(0, 0.0); vtkReverseSense *reverse = vtkReverseSense::New(); reverse->SetInput(cf->GetOutput()); reverse->ReverseCellsOn(); reverse->ReverseNormalsOn(); vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(reverse->GetOutput()); map->ScalarVisibilityOff(); vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper(map); // The usual rendering stuff. vtkCamera *camera = vtkCamera::New(); vtkRenderer *renderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); renderer->AddActor(surfaceActor); renderer->SetActiveCamera(camera); renWin->SetSize(300,300); // interact with data renWin->Render(); iren->Start(); // Clean up [snip] return 0; } From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 11 03:55:01 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 11 Aug 2003 09:55:01 +0200 Subject: [vtkusers] Newby needs advice: how to get vertices from VTK file? In-Reply-To: <20030810020300.PJTK13554.fed1mtao04.cox.net@smtp.west.cox.net> References: <20030810020300.PJTK13554.fed1mtao04.cox.net@smtp.west.cox.net> Message-ID: <3F374BD5.9030600@creatis.insa-lyon.fr> Dan, Please have a look here: http://vtk.org/VTK/pdf/file-formats.pdf HTH mathieu dkoppel1 at cox.net wrote: > Hello all, > I'm new to VTK. Somebody sent me a VTK file which represents the surface of a human liver. The surface has been triangulated, and I would like to obtain the 3D coordinates of the triangles. Could somebody please tell me what would be the simplest way for me to obtain these triangle coordinates? > > Thanks very much in advance, > Dan Koppel > UCSB > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From marcio.mathias at ericsson.com Mon Aug 11 07:17:54 2003 From: marcio.mathias at ericsson.com (Marcio Mathias (SAO PAULO/EDB)) Date: Mon, 11 Aug 2003 08:17:54 -0300 Subject: [vtkusers] Reading data from the GUI level Message-ID: Hi all, I am using vtkStructuredPointsReader to get data information from a ASCII file. I did not find a method to read an specific scalar data stored in the file. How to read a single data in the reader? I know the origin, spacing and the cartesian coordinates used when the data file was written. PS: I am using Tcl code. /Marcio -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 11 07:17:33 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 11 Aug 2003 13:17:33 +0200 Subject: [vtkusers] Reading data from the GUI level In-Reply-To: References: Message-ID: <3F377B4D.8020500@creatis.insa-lyon.fr> Marcio, vtkImageData::GetScalarComponentAsFloat http://www.vtk.org/doc/nightly/html/classvtkImageData.html#z340_0 HTH mathieu Marcio Mathias (SAO PAULO/EDB) wrote: > Hi all, > > I am using vtkStructuredPointsReader to get data information from a > ASCII file. I did not find a method to read an specific scalar data > stored in the file. How to read a single data in the reader? I know the > origin, spacing and the cartesian coordinates used when the data file > was written. > > PS: I am using Tcl code. > > /Marcio > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 11 07:29:43 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 11 Aug 2003 13:29:43 +0200 Subject: [vtkusers] Mouse Wheel Event in VTK ? Message-ID: <3F377E27.9050703@creatis.insa-lyon.fr> Hi all, I would like to know why there is no support of MouseWheelEvent in VTK ? Where does the problem comes from: * Not handle in X11 ? * Not asked by users ? * Not supported by python (Tkinter)? ... This event seems to be handle since tcl8.0.4: http://www.tcl.tk/software/tcltk/relnotes/tcl8.0.4.txt Thanks for any informations, mathieu -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 11 07:37:43 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 11 Aug 2003 13:37:43 +0200 Subject: [vtkusers] Reading data from the GUI level In-Reply-To: References: Message-ID: <3F378007.1020404@creatis.insa-lyon.fr> This is a nice feature of VTK. You can store structured points containing not only scalar but vectors ! So I assume you are reading only scalar structured points, right ? You'll have to use it this way: reader->GetOutput()->GetScalarComponentAsFloat( x, y, z, 0) for pixel x,y,z HTH mathieu Marcio Mathias (SAO PAULO/EDB) wrote: > Hi Mathieu, > > Thanks for the hint but what this "component" used as argument means? > > /Marcio > > > > -----Original Message----- > From: Mathieu Malaterre [mailto:Mathieu.Malaterre at creatis.insa-lyon.fr] > Sent: segunda-feira, 11 de agosto de 2003 08:18 > To: Marcio Mathias (SAO PAULO/EDB) > Cc: 'vtkusers at vtk.org' > Subject: Re: [vtkusers] Reading data from the GUI level > > > Marcio, > > vtkImageData::GetScalarComponentAsFloat > > http://www.vtk.org/doc/nightly/html/classvtkImageData.html#z340_0 > > HTH > mathieu > > Marcio Mathias (SAO PAULO/EDB) wrote: > >>Hi all, >> >>I am using vtkStructuredPointsReader to get data information from a >>ASCII file. I did not find a method to read an specific scalar data >>stored in the file. How to read a single data in the reader? I know the >>origin, spacing and the cartesian coordinates used when the data file >>was written. >> >>PS: I am using Tcl code. >> >>/Marcio >> > > > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From mekic at gris.uni-tuebingen.de Mon Aug 11 12:43:22 2003 From: mekic at gris.uni-tuebingen.de (Melissa Mekic) Date: Mon, 11 Aug 2003 18:43:22 +0200 (CEST) Subject: [vtkusers] Arbitrary Slice Message-ID: Hello, I want to create an arbitrary slice through a volume (vtkVolume). I tried to use vtkCutter for this, but that didn't worked. Does anybody has an idea, which filter can be used for this problem? Thanks, Melissa From binns at mcs.anl.gov Mon Aug 11 13:02:29 2003 From: binns at mcs.anl.gov (Justin Binns) Date: Mon, 11 Aug 2003 12:02:29 -0500 Subject: [vtkusers] AddRMI under Python? Message-ID: <000401c3602a$59a5d900$6322dd8c@milamber> Is there a reason the RMI stuff hasn't yet been wrapped under Python? I'd like to use the RMI mechanisms in, specifically, the vtkSocketController for doing some parallel VTK application development under Python, and found that AddRMI isn't implemented. Is there a particular reason, or is it only because it hasn't been requested before? Or that no one had time to do it? I'd be happy to poke at it if I could get some advice on where to look and some confirmation that it wasn't a conscious choice for some reason.... Thanks! Justin Binns Futures Laboratory Argonne National Laboratory From kshivann at engineering.uiowa.edu Mon Aug 11 13:23:17 2003 From: kshivann at engineering.uiowa.edu (kshivann) Date: Mon, 11 Aug 2003 12:23:17 -0500 Subject: [vtkusers] hidden surface removal Message-ID: <3F2075B8@webmail.engineering.uiowa.edu> hi, is there a function to remove hidden surface. I am trying to display a mesh and want to remove all hidden surfaces from the current display. thanks kiran shivanna From julia.schnabel at kcl.ac.uk Mon Aug 11 13:31:50 2003 From: julia.schnabel at kcl.ac.uk (Julia Schnabel) Date: Mon, 11 Aug 2003 18:31:50 +0100 Subject: [vtkusers] Re: Implementing FFD as a VTK class Message-ID: <3F37D306.6090707@kcl.ac.uk> Hi Gregg, our lab ported the FFD transformation and registration software by Daniel Rueckert (IEEE-TMI 1999) to vtk. The transformation is indeed derived form vtkWarpTransform. Even though the registration does image intensity based optimization, you may be able to adapt it rather quickly to your own cost function (e.g. minimizing the distance between two pointsets). In fact, it probably contains some approximation routine based on linear and cubic B-splines for just that. You can check it out on http://www.image-registration.com. Unfortunately, there's currently little to none support, as the main person responsible has now left, and I am on leave. There's a mailing list though which you might try (see link on web). Good luck, Julia -- Julia A. Schnabel, Ph.D. Computational Imaging Science Group Tel: +44 (0)20 7955 2721 Division of Imaging Sciences +44 (0)20 7955 4531 (secr.) 5th floor Thomas Guy House Fax: +44 (0)20 7955 4532 Guy's Hospital, King's College London mailto:julia.schnabel at kcl.ac.uk London SE1 9RT, UK http://www-ipg.umds.ac.uk/j.schnabel/ From lrvelez at rcm.upr.edu Mon Aug 11 18:39:29 2003 From: lrvelez at rcm.upr.edu (Luis Velez) Date: Mon, 11 Aug 2003 15:39:29 -0700 Subject: [vtkusers] Newbie needs help. Message-ID: Hello, I have been having been getting this error message: java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) I really have no idea of what does it mean. If anybody can help me I would be most grateful. Thanks, Luis From Yang at AGIUSA.COM Mon Aug 11 17:17:24 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Mon, 11 Aug 2003 16:17:24 -0500 Subject: [vtkusers] Resource Leak with VTK + BCB6 Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687CE@mail.exchngsvr.agiusa.com> Hi vtkusers, I am using VTK 4.2 with Borland C++ Builder 6 on WinXP, and get this "Resource Leak" error frequently (see attachment). I have never used vtkTimerLog, vtkOpenGLPolyDataMapper and vtkOpenGLActor explicitly in my code. Is there anything I can do to fix this? Thanks. Yang <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MemLeak.jpg Type: image/jpeg Size: 31335 bytes Desc: not available URL: From craig.scott at csiro.au Mon Aug 11 19:39:14 2003 From: craig.scott at csiro.au (Craig N. Scott) Date: 12 Aug 2003 09:39:14 +1000 Subject: [vtkusers] hidden surface removal In-Reply-To: <3F2075B8@webmail.engineering.uiowa.edu> References: <3F2075B8@webmail.engineering.uiowa.edu> Message-ID: <1060645154.3673.7.camel@debido.vic.cmis.csiro.au> Not sure if this is what you are looking for, but maybe you want the BackfaceCullingOn() member function in vtkProperty. It isn't hidden surface removal, just backward-facing surface removal. In one of my Tcl scripts, I use it like this: vtkUnstructuredGridReader dataSource dataSource SetFileName "/path/to/some/file" vtkDataSetMapper mapper mapper SetInput [dataSource GetOutput] vtkActor actor actor SetMapper mapper eval [actor GetProperty] BackfaceCullingOn According to the archives, someone asked a similar question in 2000 but it appears no-one responded back then. Probably not much help, sorry. On Tue, 2003-08-12 at 03:23, kshivann wrote: > hi, > is there a function to remove hidden surface. I am trying to display a mesh > and want to remove all hidden surfaces from the current display. > > thanks > > kiran shivanna -- Dr Craig Scott, CSIRO (CMIS) Melbourne, Australia From schwarz at evl.uic.edu Mon Aug 11 19:54:39 2003 From: schwarz at evl.uic.edu (Nicholas Schwarz) Date: Mon, 11 Aug 2003 18:54:39 -0500 (CDT) 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 ------------------------------------------------------------------------- Nicholas Schwarz Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu Department of Computer Science Telephone: 312-996-3002 University of Illinois at Chicago Facsimile: 312-413-7585 ------------------------------------------------------------------------- From craig.scott at csiro.au Mon Aug 11 20:03:43 2003 From: craig.scott at csiro.au (Craig N. Scott) Date: 12 Aug 2003 10:03:43 +1000 Subject: [vtkusers] Raycasting Stereo Reversed In-Reply-To: References: Message-ID: <1060646623.3673.19.camel@debido.vic.cmis.csiro.au> Not sure if this is related, but I used to notice that the stereo pairs could reverse if I tried to pick something while in stereo viewing mode (I was using the red-blue stereo arrangement and I would have to flip my glasses laterally to get the correct behaviour). In the end, I figured it didn't make all that much sense to try to do this anyway, but maybe this is related to your problem? On Tue, 2003-08-12 at 09:54, Nicholas Schwarz wrote: > 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 > > ------------------------------------------------------------------------- > Nicholas Schwarz > Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu > Department of Computer Science Telephone: 312-996-3002 > University of Illinois at Chicago Facsimile: 312-413-7585 > ------------------------------------------------------------------------- > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- Craig Scott, CSIRO (CMIS) Ph: +613 9545 8096 I have to think too much. I'm afraid I'll disappear in a puff of logic. From schwarz at evl.uic.edu Mon Aug 11 21:19:54 2003 From: schwarz at evl.uic.edu (Nicholas Schwarz) Date: Mon, 11 Aug 2003 20:19:54 -0500 (CDT) Subject: [vtkusers] Raycasting Stereo Reversed In-Reply-To: <1060646623.3673.19.camel@debido.vic.cmis.csiro.au> Message-ID: I'm not doing any picking. Reversed pairs don't occur after any specific event, they are always reversed. I'm using CrystalEyes mode, but I tested it and it occurs in RedBlue mode as well. Thanks for the reply though, Nicholas ------------------------------------------------------------------------- Nicholas Schwarz - REU Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu Department of Computer Science Telephone: 312-996-3002 University of Illinois at Chicago Facsimile: 312-413-7585 ------------------------------------------------------------------------- On 12 Aug 2003, Craig N. Scott wrote: > Not sure if this is related, but I used to notice that the stereo pairs > could reverse if I tried to pick something while in stereo viewing mode > (I was using the red-blue stereo arrangement and I would have to flip my > glasses laterally to get the correct behaviour). In the end, I figured > it didn't make all that much sense to try to do this anyway, but maybe > this is related to your problem? > > > On Tue, 2003-08-12 at 09:54, Nicholas Schwarz wrote: > > 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 > > > > ------------------------------------------------------------------------- > > Nicholas Schwarz > > Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu > > Department of Computer Science Telephone: 312-996-3002 > > University of Illinois at Chicago Facsimile: 312-413-7585 > > ------------------------------------------------------------------------- > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > -- > Craig Scott, CSIRO (CMIS) > Ph: +613 9545 8096 > > I have to think too much. I'm afraid I'll disappear in a puff of logic. > From ramakrishna.prakash at quest-global.com Mon Aug 11 23:39:12 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 12 Aug 2003 09:09:12 +0530 Subject: [vtkusers] Newbie needs help. In-Reply-To: Message-ID: <000201c36083$4c7f76b0$de0ba8c0@qtwblr01.questglobal.com> Luis, Have you loaded the vtk libraries?(like System.loadLibrary(".....")) . --Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Luis Velez Sent: Tuesday, August 12, 2003 4:09 AM To: vtkusers at vtk.org Subject: [vtkusers] Newbie needs help. Hello, I have been having been getting this error message: java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) I really have no idea of what does it mean. If anybody can help me I would be most grateful. Thanks, Luis _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From petite.nanou at laposte.net Tue Aug 12 03:42:35 2003 From: petite.nanou at laposte.net (=?iso-8859-1?Q?Nanou?=) Date: Tue, 12 Aug 2003 09:42:35 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Holobench?= Message-ID: Hi, I have to program for my internship a Holobench. That is a composition of 2 screens, one vertical and one horizontal, to make 3D modelling. I am not familiar with Vtk (and also with the Holobench!). The 2 screens should show the same object (VRML importer) but not in the same view, that means I have two renderers in the same renderWindow, each one has imported the VRML object (I am not sure it is a good thing!), and the object in the horizontal screen has to move in the same time as the vertical one, but the view should be 90? turned. Can someone tell how can I do that? Thanks Nanou Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From dhibi.mounir at enst-bretagne.fr Tue Aug 12 04:12:04 2003 From: dhibi.mounir at enst-bretagne.fr (Mounir Dhibi) Date: Tue, 12 Aug 2003 10:12:04 +0200 Subject: [vtkusers] Mouse getting points Message-ID: <000e01c360a9$6a4ebb30$0d02a8c0@platim01> dear all I use a set of 2D files which I read with vtkImageReader. I want te get points after click with mouse in Image to draw an ellipse in each Image with the set of these points, any body have any idea? thank you very much all Mounir ----------------------------------------------- Dhibi Mounir D?partement ITI ENST Bretagne Bp 832 Brest-Cedex 29285 From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 12 04:44:15 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 12 Aug 2003 10:44:15 +0200 Subject: [vtkusers] Mouse getting points In-Reply-To: <000e01c360a9$6a4ebb30$0d02a8c0@platim01> References: <000e01c360a9$6a4ebb30$0d02a8c0@platim01> Message-ID: <3F38A8DF.7050802@creatis.insa-lyon.fr> Mounir, There are loads of solutions. Did you had a look at vtkInteractorStyleImage for example: http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html SHIFT Right Mouse triggers pick events HTH mathieu Mounir Dhibi wrote: > > dear all > I use a set of 2D files which I read with vtkImageReader. > I want te get points after click with mouse in Image to draw an ellipse in > each Image with the set of these points, any body have any idea? > thank you very much all Mounir > ----------------------------------------------- > Dhibi Mounir > D?partement ITI > ENST Bretagne Bp 832 > Brest-Cedex 29285 > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From a_h_youssefi at hotmail.com Tue Aug 12 05:04:42 2003 From: a_h_youssefi at hotmail.com (Amir Youssefi) Date: Tue, 12 Aug 2003 05:04:42 -0400 Subject: [vtkusers] Graph In VTK Message-ID: Hi All, I need graph layout algorithms implemented in VTK. Anybody have such things? Best, Amir Youssefi Graduate Student of Computer Science, RPI, NY _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From john.biddiscombe at mirada-solutions.com Tue Aug 12 05:09:45 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 12 Aug 2003 10:09:45 +0100 Subject: [vtkusers] Resource Leak with VTK + BCB6 Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B77540713B6@oxcore01.mirada-solutions.com> It looks like there's a leak in the timer log code. Presumably when the program exits, something should be destroying the timerlog but isn't. Have you tried tracking down any references to cleaning up the timer log on exit? JB -----Original Message----- From: Xianjin Yang [mailto:Yang at AGIUSA.COM] Sent: 11 August 2003 22:17 To: vtkusers at vtk.org Subject: [vtkusers] Resource Leak with VTK + BCB6 Hi vtkusers, I am using VTK 4.2 with Borland C++ Builder 6 on WinXP, and get this "Resource Leak" error frequently (see attachment). I have never used vtkTimerLog, vtkOpenGLPolyDataMapper and vtkOpenGLActor explicitly in my code. Is there anything I can do to fix this? Thanks. Yang <> -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 12 05:18:24 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 12 Aug 2003 11:18:24 +0200 Subject: [vtkusers] Resource Leak with VTK + BCB6 In-Reply-To: <4926A5BE4AFE7C4A83D5CF5CDA7B77540713B6@oxcore01.mirada-solutions.com> References: <4926A5BE4AFE7C4A83D5CF5CDA7B77540713B6@oxcore01.mirada-solutions.com> Message-ID: <3F38B0E0.1070506@creatis.insa-lyon.fr> Same problem on linux: http://public.kitware.com/pipermail/vtkusers/2003-April/017674.html mathieu John Biddiscombe wrote: > It looks like there's a leak in the timer log code. Presumably when the > program exits, something should be destroying the timerlog but isn't. > Have you tried tracking down any references to cleaning up the timer log > on exit? > > JB > > > -----Original Message----- > *From:* Xianjin Yang [mailto:Yang at AGIUSA.COM] > *Sent:* 11 August 2003 22:17 > *To:* vtkusers at vtk.org > *Subject:* [vtkusers] Resource Leak with VTK + BCB6 > > Hi vtkusers, > > I am using VTK 4.2 with Borland C++ Builder 6 on WinXP, and get this > "Resource Leak" error frequently (see attachment). I have never used > vtkTimerLog, vtkOpenGLPolyDataMapper and vtkOpenGLActor explicitly > in my code. Is there anything I can do to fix this? Thanks. Yang > > <> > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From john.biddiscombe at mirada-solutions.com Tue Aug 12 06:32:21 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 12 Aug 2003 11:32:21 +0100 Subject: [vtkusers] Resource Leak with VTK + BCB6 Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB3@oxcore01.mirada-solutions.com> Hmmm....I see. Looking at vtkTimerLog.cxx and .h I see that AllocateLog allocates some memory but there's no cleanup in the destructor - as it's a static structure it may be reused at different time. I think it'd be best to add a static cleanup method in there that can be called just before program exit by the user. try this add to vtkTimerLog.h static void DeallocateLog(); add to vtkTimerLog.cxx void DeallocateLog() { if (vtkTimerLog::TimerLog != NULL) { delete [] vtkTimerLog::TimerLog; } vtkTimerLog::TimerLog = NULL; } and at some point when your program is about to exit and no more vtk objects are going to be used, do a vtkTimerLog::DeallocateLog(); call. This will free up the memory. Is this only used when some debugging is enabled, or is it always used? If this fix cures the problem, then I guess it can be added, but there ought to be some invisible timerlog management that does this automatically... JB From king.benjamin at mh-hannover.de Tue Aug 12 08:12:27 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Tue, 12 Aug 2003 13:12:27 +0100 Subject: [vtkusers] Arbitrary Slice In-Reply-To: References: Message-ID: Hi Melissa, > I want to create an arbitrary slice through a volume > (vtkVolume). Have a look at vtkImageReslice (http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html). Best regards, Benjamin -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From D.Duke at bath.ac.uk Tue Aug 12 08:53:06 2003 From: D.Duke at bath.ac.uk (David Duke) Date: Tue, 12 Aug 2003 13:53:06 +0100 Subject: [vtkusers] Graph In VTK References: Message-ID: <3F38E332.1050702@bath.ac.uk> Amir Youssefi wrote: > Hi All, > > I need graph layout algorithms implemented in VTK. Anybody have such > things? Hi Amir, It depends on what type of graph you have, and what type of layout you want -- do you have a tree, a DAG, a general graph? Do you know if your graph is planar? Do you want 2D or 3D layout? There is a vtkGraphLayoutFilter in the toolkit, which implements a Fruchterman-Reingold force-directed layout using polydata as input to represent the graph. This layout is good for some kinds of graphs; force directed layout can bring out symmetries and structure, but in general force-directed placement is (or at least has been) too computationally expensive for "large" graphs -- the state of the art is improving, I think a force-directed technique with significantly lower time complexity was published in '01, but I don't have books or references to hand. I've done work on some graph filters for VTK, but these have involved awkward classes that were trying to do something more general, with graphs as a special case; (see http://www.cs.bath.ac.uk/~djd/vtk.html) I think the code in my archive contains a 3D tree layout filter, but not the one I used for general graphs. I have recent, simpler, code specifically for graphs, but am not sure when I can make it available. If force-directed placement is not what you need, you could adapt a different layout strategy using the existing vtkGraphLayoutFilter class as a guide. There are a number of graph visualization tools around, look for example at the "Tulip" tool (www.tulip-software.org) for example; this has a nice set of C++ layout filters that, modulo any copyright restrictions and your own needs, you may be able to port relatively easily. regards, David From vermaas at astron.nl Tue Aug 12 10:16:57 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Tue, 12 Aug 2003 16:16:57 +0200 Subject: [vtkusers] Converting RayCast data & picking question Message-ID: hi, I am displaying my ImageData cube with a raycast function. (1) Is there a way to write the result of that raycast back to a vtkImageData again? So that I get a new data cube with the max pixels projected on the outside? (2) Is there a way to find out which x,y,z pixel was responsible for the maximum projection on the outside? (3) Is there a way to 'shoot' a line through a cube and get back the highest value it encounters? (I thought the picking might work in that way, but it doesn't seem to work like this). ... vtkVolumeRayCastMIPFunction *function = vtkVolumeRayCastMIPFunction::New(); vtkVolumeRayCastMapper *mapper = vtkVolumeRayCastMapper::New(); mapper->SetVolumeRayCastFunction(function); mapper->SetInput(myImageData); actorVolume->SetMapper(mapper); ... Nico From Yang at AGIUSA.COM Tue Aug 12 10:29:36 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Tue, 12 Aug 2003 09:29:36 -0500 Subject: [vtkusers] Resource Leak with VTK + BCB6 (vtkTimerLog) Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687CF@mail.exchngsvr.agiusa.com> Here is the relevant VTK source code the "Leak" error message points to // Allocate timing table with MaxEntries elements. void vtkTimerLog::AllocateLog() { if (vtkTimerLog::TimerLog != NULL) { delete [] vtkTimerLog::TimerLog; } vtkTimerLog::TimerLog = new vtkTimerLogEntry[vtkTimerLog::MaxEntries]; <==== This Line } void vtkTimerLog::MarkStartEvent(const char *event) { if (! vtkTimerLog::Logging) { // Maybe we should still change the Indent ... return; } vtkTimerLog::MarkEvent(event); <======= This Line ++vtkTimerLog::Indent; } void vtkOpenGLPolyDataMapper::RenderPiece(vtkRenderer *ren, vtkActor *act) { ... if (!this->ImmediateModeRendering && !this->GetGlobalImmediateModeRendering()) { vtkTimerLog::MarkStartEvent("Building display list"); <==== This Line this->ReleaseGraphicsResources(ren->GetRenderWindow()); this->LastWindow = ren->GetRenderWindow(); ... } -----Original Message----- From: Mathieu Malaterre [mailto:Mathieu.Malaterre at creatis.insa-lyon.fr] Sent: Tuesday, August 12, 2003 4:18 AM To: John Biddiscombe Cc: Xianjin Yang; vtkusers at vtk.org Subject: Re: [vtkusers] Resource Leak with VTK + BCB6 Same problem on linux: http://public.kitware.com/pipermail/vtkusers/2003-April/017674.html mathieu John Biddiscombe wrote: > It looks like there's a leak in the timer log code. Presumably when > the > program exits, something should be destroying the timerlog but isn't. > Have you tried tracking down any references to cleaning up the timer log > on exit? > > JB > > > -----Original Message----- > *From:* Xianjin Yang [mailto:Yang at AGIUSA.COM] > *Sent:* 11 August 2003 22:17 > *To:* vtkusers at vtk.org > *Subject:* [vtkusers] Resource Leak with VTK + BCB6 > > Hi vtkusers, > > I am using VTK 4.2 with Borland C++ Builder 6 on WinXP, and get this > "Resource Leak" error frequently (see attachment). I have never used > vtkTimerLog, vtkOpenGLPolyDataMapper and vtkOpenGLActor explicitly > in my code. Is there anything I can do to fix this? Thanks. Yang > > <> > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From jsnyder at nmr.mgh.harvard.edu Tue Aug 12 10:41:34 2003 From: jsnyder at nmr.mgh.harvard.edu (Josh Snyder) Date: Tue, 12 Aug 2003 10:41:34 -0400 Subject: [vtkusers] vtk_qt -- renderwindow widget won't obey layout rules Message-ID: <3F38FC9E.2070908@nmr.mgh.harvard.edu> Hi, I just installed vtk_qt and got it working to the point where I can make a renderWindow appear inside a qframe in my application, but I'm not sure how to get the renderwindow to expand and fill the qframe when it is resized. Does anyone know how to do this? Also, my code differs from the vtk_qt example (which also doesn't resize) since I'm using a qframe and not a qscrollview. Since qframe has no addchild method, I just left that part of the example steps out of my code, and it seems to work fine. Will this cause any problems? Finally, I'm using cmake with the QT_WRAP commands to compile my code. However, this fails to incorporate the button icons found in the images directory of the project. qmake will set it up so that uic processes these in some way to create a qmake_image_collection.cpp file which is then built with the rest of the project. The QT_WRAP_UI command in cmake does not do this. Does anybody have a solution? Thanks very much, Josh From Yang at AGIUSA.COM Tue Aug 12 11:50:44 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Tue, 12 Aug 2003 10:50:44 -0500 Subject: [vtkusers] Resource Leak with VTK + BCB6 (vtkTimerLog) Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687D0@mail.exchngsvr.agiusa.com> Hi John, The vtkTimerLog-related leak problem has been solved by following your instructions below. Like what you said, I hope there is an automatic and invisible way to handle this. Thanks a lot Yang -----Original Message----- From: John Biddiscombe [mailto:john.biddiscombe at mirada-solutions.com] Sent: Tuesday, August 12, 2003 5:32 AM To: Mathieu Malaterre Cc: Xianjin Yang; vtkusers at vtk.org Subject: RE: [vtkusers] Resource Leak with VTK + BCB6 Hmmm....I see. Looking at vtkTimerLog.cxx and .h I see that AllocateLog allocates some memory but there's no cleanup in the destructor - as it's a static structure it may be reused at different time. I think it'd be best to add a static cleanup method in there that can be called just before program exit by the user. try this add to vtkTimerLog.h static void DeallocateLog(); add to vtkTimerLog.cxx void DeallocateLog() { if (vtkTimerLog::TimerLog != NULL) { delete [] vtkTimerLog::TimerLog; } vtkTimerLog::TimerLog = NULL; } and at some point when your program is about to exit and no more vtk objects are going to be used, do a vtkTimerLog::DeallocateLog(); call. This will free up the memory. Is this only used when some debugging is enabled, or is it always used? If this fix cures the problem, then I guess it can be added, but there ought to be some invisible timerlog management that does this automatically... JB From nick.smethurst at free.fr Tue Aug 12 12:28:04 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Tue, 12 Aug 2003 18:28:04 +0200 Subject: [vtkusers] Resource Leak with VTK + BCB6 In-Reply-To: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB3@oxcore01.mirada-solutions.com> References: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB3@oxcore01.mirada-solutions.com> Message-ID: <200308121828.05019.nick.smethurst@free.fr> I suggested this code in April. Is it really surprising that many people cannot be bothered to report bugs anymore if our emails are ignored?? Le Mardi 12 Ao?t 2003 12:32, John Biddiscombe a ?crit : > Hmmm....I see. > > Looking at vtkTimerLog.cxx and .h I see that AllocateLog allocates some > memory but there's no cleanup in the destructor - as it's a static > structure it may be reused at different time. I think it'd be best to > add a static cleanup method in there that can be called just before > program exit by the user. > > try this > > add to vtkTimerLog.h > > static void DeallocateLog(); > > > add to vtkTimerLog.cxx > > void DeallocateLog() > { > if (vtkTimerLog::TimerLog != NULL) > { > delete [] vtkTimerLog::TimerLog; > } > vtkTimerLog::TimerLog = NULL; > } > > and at some point when your program is about to exit and no more vtk > objects are going to be used, do a vtkTimerLog::DeallocateLog(); call. > This will free up the memory. Is this only used when some debugging is > enabled, or is it always used? > > If this fix cures the problem, then I guess it can be added, but there > ought to be some invisible timerlog management that does this > automatically... > > JB > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to > subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 12 12:27:38 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 12 Aug 2003 18:27:38 +0200 Subject: [vtkusers] Resource Leak with VTK + BCB6 In-Reply-To: <200308121828.05019.nick.smethurst@free.fr> References: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB3@oxcore01.mirada-solutions.com> <200308121828.05019.nick.smethurst@free.fr> Message-ID: <3F39157A.7020808@creatis.insa-lyon.fr> Nick, I feel a bit you pain. But: 1. You didn't mention the invisible timerlog management, which make a huge difference. And this problem doesn't look easy to me. 2. It's only a memory leak... a real OS ;) doesn't need it. my 2 cents mathieu N Smethurst wrote: > I suggested this code in April. Is it really surprising that many people > cannot be bothered to report bugs anymore if our emails are ignored?? > > Le Mardi 12 Ao?t 2003 12:32, John Biddiscombe a ?crit : > >>Hmmm....I see. >> >>Looking at vtkTimerLog.cxx and .h I see that AllocateLog allocates some >>memory but there's no cleanup in the destructor - as it's a static >>structure it may be reused at different time. I think it'd be best to >>add a static cleanup method in there that can be called just before >>program exit by the user. >> >>try this >> >>add to vtkTimerLog.h >> >>static void DeallocateLog(); >> >> >>add to vtkTimerLog.cxx >> >>void DeallocateLog() >>{ >> if (vtkTimerLog::TimerLog != NULL) >> { >> delete [] vtkTimerLog::TimerLog; >> } >> vtkTimerLog::TimerLog = NULL; >>} >> >>and at some point when your program is about to exit and no more vtk >>objects are going to be used, do a vtkTimerLog::DeallocateLog(); call. >>This will free up the memory. Is this only used when some debugging is >>enabled, or is it always used? >> >>If this fix cures the problem, then I guess it can be added, but there >>ought to be some invisible timerlog management that does this >>automatically... >> >>JB >>_______________________________________________ >>This is the private VTK discussion list. >>Please keep messages on-topic. Check the FAQ at: >> 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: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From john.biddiscombe at mirada-solutions.com Tue Aug 12 12:53:15 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 12 Aug 2003 17:53:15 +0100 Subject: [vtkusers] Resource Leak with VTK + BCB6 Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB5@oxcore01.mirada-solutions.com> I sympathise with your frustration, but as a volunteer who has a full time job to do...it's not easy to answer or read every single email on the list. Most of us just dip in from time to time when we have a spare moment and help out. I suggest you email kitware directly and request cvs write access. I'm not sure if the best way to solve the problem is delete the memory in the destructor as you posted (not setting the pointer to null though which will cause AV's later), or delete on program termination. I suspect that if multiple threads are using the memory, dire problems may result. CC'ing to developers. JB > -----Original Message----- > From: N Smethurst [mailto:nick.smethurst at free.fr] > Sent: 12 August 2003 17:28 > To: vtkusers at vtk.org > Subject: Re: [vtkusers] Resource Leak with VTK + BCB6 > > > I suggested this code in April. Is it really surprising that > many people > cannot be bothered to report bugs anymore if our emails are ignored?? > > Le Mardi 12 Ao?t 2003 12:32, John Biddiscombe a ?crit : > > Hmmm....I see. > > > > Looking at vtkTimerLog.cxx and .h I see that AllocateLog > allocates some > > memory but there's no cleanup in the destructor - as it's a static > > structure it may be reused at different time. I think it'd > be best to > > add a static cleanup method in there that can be called just before > > program exit by the user. > > > > try this > > > > add to vtkTimerLog.h > > > > static void DeallocateLog(); > > > > > > add to vtkTimerLog.cxx > > > > void DeallocateLog() > > { > > if (vtkTimerLog::TimerLog != NULL) > > { > > delete [] vtkTimerLog::TimerLog; > > } > > vtkTimerLog::TimerLog = NULL; > > } > > > > and at some point when your program is about to exit and no more vtk > > objects are going to be used, do a > vtkTimerLog::DeallocateLog(); call. > > This will free up the memory. Is this only used when some > debugging is > > enabled, or is it always used? > > > > If this fix cures the problem, then I guess it can be > added, but there > > ought to be some invisible timerlog management that does this > > automatically... > > > > JB > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > 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: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From nick.smethurst at free.fr Tue Aug 12 13:30:23 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Tue, 12 Aug 2003 19:30:23 +0200 Subject: [vtkusers] Resource Leak with VTK + BCB6 In-Reply-To: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB5@oxcore01.mirada-solutions.com> References: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB5@oxcore01.mirada-solutions.com> Message-ID: <200308121930.23308.nick.smethurst@free.fr> Well, my point wasn't about the code. I don't know.. maybe it's the 40 degree (celsius) heat here starting to go to my head. My point was more that users seem to post such problems and then they are ignored. I'd kind of given up on the idea of reporting stuff which is kind of a shame since I would like to help in any way I can. Nic Le Mardi 12 Ao?t 2003 18:53, John Biddiscombe a ?crit : > I'm not sure if the best way to solve the problem is delete the memory > in the destructor as you posted (not setting the pointer to null though > which will cause AV's later), or delete on program termination. I > suspect that if multiple threads are using the memory, dire problems may > result. From billlist at nycap.rr.com Tue Aug 12 13:53:51 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Tue, 12 Aug 2003 13:53:51 -0400 Subject: [vtkusers] Resource Leak with VTK + BCB6 In-Reply-To: <200308121930.23308.nick.smethurst@free.fr> References: < <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB5@oxcore01.mirada-solutions.com> <4926A5BE4AFE7C4A83D5CF5CDA7B775407AFB5@oxcore01.mirada-solutions.com> Message-ID: <5.2.0.9.0.20030812135227.052e4c68@pop.nycap.rr.com> We have recently added a bug tracker to VTK to address this problem. It can be found here: http://public.kitware.com/Bug/ -Bill At 01:30 PM 8/12/2003, N Smethurst wrote: >Well, my point wasn't about the code. I don't know.. maybe it's the 40 >degree (celsius) heat here starting to go to my head. My point was more >that users seem to post such problems and then they are ignored. I'd kind >of given up on the idea of reporting stuff which is kind of a shame since >I would like to help in any way I can. > >Nic > >Le Mardi 12 Ao?t 2003 18:53, John Biddiscombe a ?crit : >> I'm not sure if the best way to solve the problem is delete the memory >> in the destructor as you posted (not setting the pointer to null though >> which will cause AV's later), or delete on program termination. I >> suspect that if multiple threads are using the memory, dire problems may >> result. > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From kshivann at engineering.uiowa.edu Tue Aug 12 14:34:34 2003 From: kshivann at engineering.uiowa.edu (kshivann) Date: Tue, 12 Aug 2003 13:34:34 -0500 Subject: [vtkusers] displaying the objects in the windows crated by MFC Message-ID: <3F210085@webmail.engineering.uiowa.edu> hi, i am trying to display objects in windows created by MFC. the function SetParentID takes in handle to window (HWND) in win32 programming. We have equivalent device context CDC in MFC. when i pass the variable of type CDC i am getting an error that no object displayed. what is the appropriate variable that i should pass in thanks kiran shivanna From carvalhoamc at yahoo.com.br Tue Aug 12 22:56:44 2003 From: carvalhoamc at yahoo.com.br (Yahoo - carvalhoamc) Date: Tue, 12 Aug 2003 23:56:44 -0300 Subject: [vtkusers] Kylix configuration In-Reply-To: <20030812183501.22578.73513.Mailman@public.kitware.com> Message-ID: <003a01c36146$895240e0$1a4cfea9@doutorado> Hi! I'd like to know how can I configure VTK and ITK in Borland Kylix. Could help me? Please. Thanks. Alexandre Miguel de Carvalho - carvalhoamc at ieee.org Doutorando em Engenharia El?trica ( LMAG - POLI - USP ) www.lmag.pea.usp.br Mestre em Engenharia Industrial ( UNESP - BAURU ) Engenheiro Eletricista (UNESP - BAURU ) - www.bauru.unesp.br From I.deBoer at polytec.de Wed Aug 13 02:02:29 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Wed, 13 Aug 2003 08:02:29 +0200 Subject: AW: [vtkusers] displaying the objects in the windows crated by MFC Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAA1@02polywbr.waldbronn.polytec.de> > what is the appropriate variable that i should pass in be more precise... give a sample... greets Ingo From L.J.vanRuijven at amc.uva.nl Wed Aug 13 02:57:29 2003 From: L.J.vanRuijven at amc.uva.nl (LJ van Ruijven, ACTA) Date: Wed, 13 Aug 2003 08:57:29 +0200 Subject: [vtkusers] displaying the objects in the windows crated by MFC In-Reply-To: <20030812183501.22578.73513.Mailman@public.kitware.com> Message-ID: <3F39FD79.5133.3C7E0A@localhost> Hello Kiran, CDC is a painting device, and not a window. In MFC a CWnd and decandents have a variable (this->m_hWnd) which you can use. But be aware that this variable becomes meaningful only after the window has been created. Leo > Date: Tue, 12 Aug 2003 13:34:34 -0500 > From: kshivann > To: vtkusers at vtk.org > Subject: [vtkusers] displaying the objects in the windows crated by MFC > > hi, > i am trying to display objects in windows created by MFC. the function > SetParentID takes in handle to window (HWND) in win32 programming. We > have equivalent device context CDC in MFC. when i pass the variable of > type CDC i am getting an error that no object displayed. > > what is the appropriate variable that i should pass in > > thanks > > kiran shivanna > From kuebler at ira.uka.de Wed Aug 13 03:40:14 2003 From: kuebler at ira.uka.de (=?us-ascii?Q?Carsten_Kubler?=) Date: Wed, 13 Aug 2003 09:40:14 +0200 Subject: [vtkusers] AW: vtk_qt -- making the renderwindow dynamically resize In-Reply-To: <3F394283.3060902@nmr.mgh.harvard.edu> Message-ID: Hello, > I just installed vtk_qt and got it working to the point where I can make > a renderWindow appear inside a qframe in my application, but I'm not > sure how to get the renderwindow to expand and fill the qframe when it > is resized. I'd be very grateful if you could tell me how to do this. Try to use a qhbox between qframe and vtkqglrenderwindow > Also, my code differs from the vtk_qt example since I'm using a qframe > and not a qscrollview. Since qframe has no addchild method, I just left > that part of the example steps out of my code, and it seems to work > fine. Will this cause any problems? Do you use the latest version of vtk-qt? Carsten From xiaofeng_qi at sina.com Wed Aug 13 04:04:41 2003 From: xiaofeng_qi at sina.com (xiaofeng qi) Date: Wed, 13 Aug 2003 16:4:41 +0800 Subject: [vtkusers] Help,Problem in VTK with JAVA on Windows XP Message-ID: <20030813080452.59D031AA4D@public.kitware.com> Dear all: hello,I am a vtk new user,now I use vtk + java .I have installed jdk1.4 and vtk4.2 on WindowsXP,when I compile the examples code Cone.java, use javac I can compile the Cone.java,but when I lanuch the Cone it gives following error(it runs on windows), Exception in thread "main" java.lang.UnsatisfiedLinkError:c:\vtk42\b in\vtkRenderingJava.dll:Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.loadLibrary0 at java.lang.System.loadLibrary at Cone. What could be the problem? Thanks ! ????????xiaofeng qi ????????xiaofeng_qi at sina.com ??????????2003-08-13 From ramakrishna.prakash at quest-global.com Wed Aug 13 04:33:43 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 13 Aug 2003 14:03:43 +0530 Subject: [vtkusers] Help,Problem in VTK with JAVA on Windows XP In-Reply-To: <20030813080452.59D031AA4D@public.kitware.com> Message-ID: <000701c36175$9bac15c0$de0ba8c0@qtwblr01.questglobal.com> do you have all vtk dll's in your system path? -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of xiaofeng qi Sent: Wednesday, August 13, 2003 1:31 PM To: vtkusers at vtk.org Subject: [vtkusers] Help,Problem in VTK with JAVA on Windows XP Dear all: hello,I am a vtk new user,now I use vtk + java .I have installed jdk1.4 and vtk4.2 on WindowsXP,when I compile the examples code Cone.java, use javac I can compile the Cone.java,but when I lanuch the Cone it gives following error(it runs on windows), Exception in thread "main" java.lang.UnsatisfiedLinkError:c:\vtk42\b in\vtkRenderingJava.dll:Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.loadLibrary0 at java.lang.System.loadLibrary at Cone. What could be the problem? Thanks ! ????????xiaofeng qi ????????xiaofeng_qi at sina.com ??????????2003-08-13 _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From zxem at my169.com Fri Aug 15 06:12:55 2003 From: zxem at my169.com (Xin Zhao) Date: Fri, 15 Aug 2003 10:12:55 +0000 Subject: [vtkusers] Problem about vtkPanel Message-ID: Dear VTKall, I want to write my own Panel for my program. I just copy the whole code from vtkPanel.java, and change the all the "vtkPanel" to "STFPanel", compile is ok. But when i use this my panel in my program instead of the vtkPanel. When run my program, the error message appears as follow: ------------------------------------------------------------------------------- java.lang.UnsatisfiedLinkError: RenderCreate at STFPanel.RenderCreate(Native Method) at STFPanel.Render(STFPanel.java:133) at STFPanel.paint(STFPanel.java:156) at STFPanel.update(STFPanel.java:160) at sun.awt.RepaintArea.paint(RepaintArea.java:169) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) at java.awt.Component.dispatchEventImpl(Component.java:3677) at java.awt.Component.dispatchEvent(Component.java:3476) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Press any key to continue... ---------------------------------------------------------------------------------???? ????????????????????????????Xin Zhao ????????????????????????????zxem at my169.com ??????????????????????????????????2003-08-15 -- X Zhao Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello Street, Sheffield S1 4DP Telephone +44 (0)114 278 9436 Email acp02xz at sheffield.ac.uk From john.biddiscombe at mirada-solutions.com Wed Aug 13 06:03:21 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Wed, 13 Aug 2003 11:03:21 +0100 Subject: [vtkusers] Resource Leak with VTK + BCB6 Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B7754281B29@oxcore01.mirada-solutions.com> I've entered this bug on the tracker. How do I assign it to me? I don't appear on the list. thanks JB > -----Original Message----- > From: William A. Hoffman [mailto:billlist at nycap.rr.com] > Sent: 12 August 2003 18:54 > To: N Smethurst; vtkusers at vtk.org > Subject: Re: [vtkusers] Resource Leak with VTK + BCB6 > > > We have recently added a bug tracker to VTK to address this problem. > It can be found here: > > http://public.kitware.com/Bug/ > > -Bill > > At 01:30 PM 8/12/2003, N Smethurst wrote: > >Well, my point wasn't about the code. I don't know.. maybe > it's the 40 > >degree (celsius) heat here starting to go to my head. My > point was more > >that users seem to post such problems and then they are > ignored. I'd kind > >of given up on the idea of reporting stuff which is kind of > a shame since > >I would like to help in any way I can. > > > >Nic > > > >Le Mardi 12 Ao?t 2003 18:53, John Biddiscombe a ?crit : > >> I'm not sure if the best way to solve the problem is > delete the memory > >> in the destructor as you posted (not setting the pointer > to null though > >> which will cause AV's later), or delete on program termination. I > >> suspect that if multiple threads are using the memory, > dire problems may > >> result. > > > >_______________________________________________ > >This is the private VTK discussion list. > >Please keep messages on-topic. Check the FAQ at: >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: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From c.p.botha at ewi.tudelft.nl Wed Aug 13 06:17:15 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 13 Aug 2003 12:17:15 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <3F3A0626.2080202@creatis.insa-lyon.fr> References: <3F3A0626.2080202@creatis.insa-lyon.fr> Message-ID: <1060769835.16532.21.camel@dutidad> Hi Mathieu, On Wed, 2003-08-13 at 11:34, Mathieu Malaterre wrote: > I send a mail to the vtkusers mailing list: > > http://vtk.org/pipermail/vtkusers/2003-August/019496.html > > But anybody answered me. So I decided to give it a try, and I > successfully implemented it on: > > * X11 (tested with Linux RH 7.3) > * Win32 (tested with Windows 2000 > * Tcl (tested with Tcl/Tk 8.3) > You can download it here: > > http://www.creatis.insa-lyon.fr/~malaterre/vtk/wheel.tgz This looks very good so far, good job! A few things: 1. Please maintain this work as a unified diff. This is easy to do by just doing cvs -z3 diff -u in the top-level of your CVS checkout. Making the complete files available as you have makes it difficult to integrate with all versions of VTK and also to study the changes you have made. 2. I am concerned about your translation of button4 and button5 XEvents to VTK MouseWheel events. This is only true if the user has "ZAxisMapping 4 5" in her config file. Is it not possible for you to trap the ZAxis events themselves? The way you have done it works, but is not entirely correct. 3. The windows stuff seems fine, as Windows has a dedicated WM_MOUSEWHEEL event. 4. I can't judge the MacOS stuff. Thanks, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From sdor5151 at mail.usyd.edu.au Wed Aug 13 06:25:24 2003 From: sdor5151 at mail.usyd.edu.au (sdor5151 at mail.usyd.edu.au) Date: Wed, 13 Aug 2003 20:25:24 +1000 Subject: [vtkusers] 2D drag/drop Message-ID: <1060770324.3f3a1214bc635@www-mail.usyd.edu.au> Hello all! I am trying to manipulate 2D polygonal data via a UI. (eg. drag nodes) like in the following :P o o | / o-o o o o-o-o | o-o First of all what is the best representation for the points (given that the lines may overlap)? At the moment I'm using vtkPoints for points and vtkCellArray to represent junction of points... For the manipulation, I've seen a few widget examples for 3D, but I'm not sure how to tackle this situation in 2D.... Do I need to use vtkPolyDataSourceWidget? Can someone please give me some hints / sample code? kind regards, Steven ------------------------------------------------- This mail sent through IMP: www-mail.usyd.edu.au From jeff at cdnorthamerica.com Wed Aug 13 06:52:26 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 13 Aug 2003 06:52:26 -0400 Subject: [vtkusers] Problem about vtkPanel In-Reply-To: References: Message-ID: <3F3A186A.1060705@cdnorthamerica.com> Hi, you can't do that easily. vtkPanel contains native methods which have a specific mangled signature in c++ code. i would suggest either subclassing, or making your own vtkPanel which overrides the existing one. if you have your own vtk distribution, you could however change vtkJavaAwt.h and mangle the method names to match your modified one. -Jeff Xin Zhao wrote: >Dear VTKall, > > I want to write my own Panel for my program. > I just copy the whole code from vtkPanel.java, and change the all the "vtkPanel" to "STFPanel", compile is ok. But when i use this my panel in my program instead of the vtkPanel. When run my program, the error message appears as follow: > >------------------------------------------------------------------------------- >java.lang.UnsatisfiedLinkError: RenderCreate > at STFPanel.RenderCreate(Native Method) > at STFPanel.Render(STFPanel.java:133) > at STFPanel.paint(STFPanel.java:156) > at STFPanel.update(STFPanel.java:160) > at sun.awt.RepaintArea.paint(RepaintArea.java:169) > at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) > at java.awt.Component.dispatchEventImpl(Component.java:3677) > at java.awt.Component.dispatchEvent(Component.java:3476) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh >read.java:201) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre >ad.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) > > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) >Press any key to continue... > >---------------------------------------------------------------------------------???? > > > >????????????????????????????Xin Zhao >????????????????????????????zxem at my169.com >??????????????????????????????????2003-08-15 > > > From Mark.Asbach at post.rwth-aachen.de Wed Aug 13 06:56:27 2003 From: Mark.Asbach at post.rwth-aachen.de (Mark Asbach) Date: Wed, 13 Aug 2003 11:56:27 +0100 Subject: WG: [vtkusers] vtk_qt -- renderwindow widget won't obey layout rules Message-ID: <189ad1c771.1c771189ad@post.rwth-aachen.de> Hi Josh, > I just installed vtk_qt and got it working to the point where I can > make > a renderWindow appear inside a qframe in my application, but I'm > not > sure how to get the renderwindow to expand and fill the qframe when > it > is resized. Does anyone know how to do this? It should resize automatically. Since I'm also currently using vtk inside a qt Application, I could post some demo code that makes it clear, how to use it. Also, if anybody is interested, I could publish my Makefile for vtkqt1.7. Yours, Mark From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Aug 13 08:33:58 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 13 Aug 2003 14:33:58 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1060769835.16532.21.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> Message-ID: <3F3A3036.9070105@creatis.insa-lyon.fr> Charl, > 2. I am concerned about your translation of button4 and button5 XEvents > to VTK MouseWheel events. This is only true if the user has > "ZAxisMapping 4 5" in her config file. Is it not possible for you to > trap the ZAxis events themselves? The way you have done it works, but > is not entirely correct. You are perfectly right. I have been browsing different GUI libs: wxWindows/ gtk+/ fltk and they all make the assertion that config file has: Option ZAxisMapping 4 5 Refs: http://cvs.wxwindows.org/viewcvs.cgi/wxWindows/src/gtk/window.cpp?rev=1.434 http://cvs.gnome.org/lxr/source/gtk+/gdk/x11/gdkwindow-x11.c#76 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/fltk/fltk/src/Fl_x.cxx.diff?r1=1.107&r2=1.108 http://koala.ilog.fr/colas/mouse-wheel-scroll/ http://www.xfree86.org/current/mouse5.html#23 This only thing I can do, is to use 'XGetPointerMapping': http://www.xfree86.org/current/XGetPointerMapping.3.html For example some user could define: Option ZAxisMapping 6 7 ref: http://www.mandrakeuser.org/docs/xwin/xmouse2.html Comments/suggestions welcome Mathieu From billlist at nycap.rr.com Wed Aug 13 09:27:37 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 13 Aug 2003 09:27:37 -0400 Subject: [vtkusers] Kylix configuration In-Reply-To: <003a01c36146$895240e0$1a4cfea9@doutorado> References: <20030812183501.22578.73513.Mailman@public.kitware.com> Message-ID: <5.2.0.9.0.20030813092650.052c0610@pop.nycap.rr.com> There is no way. However, if you can tell me how to do the following with Kylix command line tools: 1. create a .o file for use in a library 2. create a shared library 3. create a static library 4. link an executable to the above It will be easy to do. As far as I can tell, the above does not work with Kylix, and so we can not build VTK with Kylix. -Bill At 10:56 PM 8/12/2003, Yahoo - carvalhoamc wrote: >Hi! I'd like to know how can I configure VTK and ITK in Borland Kylix. >Could help me? Please. >Thanks. > >Alexandre Miguel de Carvalho - carvalhoamc at ieee.org >Doutorando em Engenharia El?trica ( LMAG - POLI - USP ) >www.lmag.pea.usp.br >Mestre em Engenharia Industrial ( UNESP - BAURU ) >Engenheiro Eletricista (UNESP - BAURU ) - www.bauru.unesp.br > > > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From bill.hoffman at kitware.com Wed Aug 13 09:53:31 2003 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Wed, 13 Aug 2003 09:53:31 -0400 Subject: [vtkusers] discard Message-ID: <5.2.0.9.0.20030813095310.052e5e38@pop.biz.rr.com> From jsnyder at nmr.mgh.harvard.edu Wed Aug 13 09:59:22 2003 From: jsnyder at nmr.mgh.harvard.edu (Josh Snyder) Date: Wed, 13 Aug 2003 09:59:22 -0400 Subject: [vtkusers] Re: AW: vtk_qt -- making the renderwindow dynamically resize In-Reply-To: References: Message-ID: <3F3A443A.7000106@nmr.mgh.harvard.edu> Yes, I'm using the latest vtk-qt version. I'll try the qhbox and let you know. Thanks, Josh Carsten Kubler wrote: >Hello, > > > >>I just installed vtk_qt and got it working to the point where I can make >>a renderWindow appear inside a qframe in my application, but I'm not >>sure how to get the renderwindow to expand and fill the qframe when it >>is resized. I'd be very grateful if you could tell me how to do this. >> >> > >Try to use a qhbox between qframe and vtkqglrenderwindow > > > >>Also, my code differs from the vtk_qt example since I'm using a qframe >>and not a qscrollview. Since qframe has no addchild method, I just left >>that part of the example steps out of my code, and it seems to work >>fine. Will this cause any problems? >> >> > >Do you use the latest version of vtk-qt? > >Carsten > > From ken.martin at kitware.com Wed Aug 13 10:34:18 2003 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 13 Aug 2003 10:34:18 -0400 Subject: [vtkusers] CMake Book and Beta Message-ID: <000001c361a7$fd719d20$6901a8c0@kitwarein.com> Hello Folk, Two quick announcements; There is now a CMake User's/Developer's Guide that you can purchase at http://www.kitware.com/products/cmakebook.html and the beta version for CMake 1.8 is available for download from http://www.cmake.org. Changes from CMake version 1.6.7 to 1.8 include: The custom commands have been rearchitected to use a more understandable signature. The old signature should still work. ctest has been enhanced and can produce testing dashboards compatible with Dart in many cases. A new FILE command has been added that supports reading, writing, and globbing of files. A new help target is created for all Makefiles so you can do nmake help (or make help) Command line options (-D) for cmake no longer require the type of the argument. The on-line help for cmake has been significantly improved. Run cmake --help for more information. Support for windows paths and filenames that include &. Support for files with multiple "." in them for nmake. More Modules report results to CMakeOutput.log and CMakeError.log. The performance of dependency tracing and analysis in CMake has been significantly improved. Both ccmake and CMakeSetup have some minor GUI improvements. And of course a number of minor bug fixes and enhancements. Thanks Ken From jsnyder at nmr.mgh.harvard.edu Wed Aug 13 10:35:40 2003 From: jsnyder at nmr.mgh.harvard.edu (Josh Snyder) Date: Wed, 13 Aug 2003 10:35:40 -0400 Subject: [vtkusers] Re: AW: vtk_qt -- making the renderwindow dynamically resize In-Reply-To: <3F3A443A.7000106@nmr.mgh.harvard.edu> References: <3F3A443A.7000106@nmr.mgh.harvard.edu> Message-ID: <3F3A4CBC.2030802@nmr.mgh.harvard.edu> Worked great. Thanks again, Josh Josh Snyder wrote: > Yes, I'm using the latest vtk-qt version. I'll try the qhbox and let > you know. Thanks, > > Josh > > Carsten Kubler wrote: > >> Hello, >> >> >> >>> I just installed vtk_qt and got it working to the point where I can >>> make a renderWindow appear inside a qframe in my application, but >>> I'm not sure how to get the renderwindow to expand and fill the >>> qframe when it is resized. I'd be very grateful if you could tell me >>> how to do this. >>> >> >> >> Try to use a qhbox between qframe and vtkqglrenderwindow >> >> >> >>> Also, my code differs from the vtk_qt example since I'm using a >>> qframe and not a qscrollview. Since qframe has no addchild method, I >>> just left that part of the example steps out of my code, and it >>> seems to work fine. Will this cause any problems? >>> >> >> >> Do you use the latest version of vtk-qt? >> >> Carsten > From straw_dog at hotmail.com Wed Aug 13 10:43:16 2003 From: straw_dog at hotmail.com (straw dog) Date: Wed, 13 Aug 2003 10:43:16 -0400 Subject: [vtkusers] building an VTK install for another machine Message-ID: Hi, I'm trying to set up a custom build of VTK to be useable for a group of people. I'm working on both a Windows and UNIX build, and have found this problem wth each one. For some reason, VTK insists on putting full path names in a large number of the resulting files. This forces me to build VTK in the final location in which it wll reside - on Windows, this is particularly frustrating, as it means that I have to make sure that all users mount the shared VTK install in the same path (Visual C++ does not like UNCpaths). Worse, the findVTK.cmake script seems to point includes back to the original source directory, not the installed include directory. Needless to say, this makes for a very messy install. Has anyone had any luck building a set of VTK binaries and associated files that can then be moved around independently of the original source? How was the install that came on the CDRom built? thanks Rupert B. _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From alear at cns.montana.edu Wed Aug 13 11:37:27 2003 From: alear at cns.montana.edu (Alex Lear) Date: Wed, 13 Aug 2003 09:37:27 -0600 Subject: [vtkusers] vtk / qt packages that can support 2d actors/text/scalar bars? Message-ID: <200308131537.h7DFbRB01874@cercus.cns.montana.edu> I have used VTKQGL in the past and it had the limitation that it couldn't handle 2d things like text or scalar bars. Which vtk/qt packages do support 2d features? Thanks, Alex Lear From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Aug 13 11:37:39 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 13 Aug 2003 17:37:39 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1060769835.16532.21.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> Message-ID: <3F3A5B43.3080406@creatis.insa-lyon.fr> > 1. Please maintain this work as a unified diff. This is easy to do by > just doing cvs -z3 diff -u in the top-level of your CVS checkout. > Making the complete files available as you have makes it difficult to > integrate with all versions of VTK and also to study the changes you > have made. Done, you'll find it here: http://www.creatis.insa-lyon.fr/~malaterre/vtk/wheel.patch BTW this is only an alpha patch, as I am still waiting Yves Starreveld answer about the MacOSX issue. There is also some work to be done in: * vtkGenericRenderWindowsInteractor.* * vtkInteractorStyle.* ... mathieu From c.p.botha at ewi.tudelft.nl Wed Aug 13 12:19:03 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 13 Aug 2003 18:19:03 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <3F3A3036.9070105@creatis.insa-lyon.fr> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> Message-ID: <1060791543.30285.48.camel@dutidad> On Wed, 2003-08-13 at 14:33, Mathieu Malaterre wrote: > Charl Wrote: > > 2. I am concerned about your translation of button4 and button5 XEvents > > to VTK MouseWheel events. This is only true if the user has > > "ZAxisMapping 4 5" in her config file. Is it not possible for you to > > trap the ZAxis events themselves? The way you have done it works, but > > is not entirely correct. > > You are perfectly right. > I have been browsing different GUI libs: wxWindows/ gtk+/ fltk and they > all make the assertion that config file has: > Option ZAxisMapping 4 5 If that's the case (i.e. ALL of these toolkits assume that Button 4 and 5 events are triggered by the scroll-wheel) we could *maybe* do the same, although one has to wonder what will happen on that odd mouse where Buttons 4 and 5 are something totally different (e.g. thumb buttons). If you find anymore information about this, I would love to hear. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From scharver at evl.uic.edu Wed Aug 13 13:01:07 2003 From: scharver at evl.uic.edu (Chris Scharver) Date: Wed, 13 Aug 2003 12:01:07 -0500 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1060791543.30285.48.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> Message-ID: At 6:19 PM +0200 on 08/13/2003, Charl P. Botha wrote: >If that's the case (i.e. ALL of these toolkits assume that Button 4 and >5 events are triggered by the scroll-wheel) we could *maybe* do the >same, although one has to wonder what will happen on that odd mouse >where Buttons 4 and 5 are something totally different (e.g. thumb >buttons). If you find anymore information about this, I would love to >hear. On MacOS X with Cocoa, these events are indeed different. I can use my Intellimouse (with the default OS driver--disabled Microsoft's) to separately generate button down events for five different buttons as well as detecting scroll wheel movement. I'm not sure how it's handled in Carbon and other platform toolkits though. Chris -- Chris Scharver Electronic Visualization Laboratory The University of Illinois at Chicago Ph: 312-996-3002 FAX: 312-413-7585 From chouyiyu at hotmail.com Wed Aug 13 16:56:00 2003 From: chouyiyu at hotmail.com (Yi-Yu Chou) Date: Wed, 13 Aug 2003 20:56:00 +0000 Subject: [vtkusers] Rewirte vtkImageData Message-ID: Hi all, I tried to rewrite the transformed image back into the original vtkImageData, but nothing happened after transform. ( the image was unchanged) My code : img_transform = vtkTransform() img_transform.RotateX(-10) img_reslice = vtkImageReslice() img_reslice.SetInput(self.image) img_reslice.SetOutputSpacing(img_reslice.GetInput().GetSpacing()) img_reslice.SetOutputOrigin(img_reslice.GetInput().GetOrigin()) img_reslice.SetOutputExtent(img_reslice.GetInput().GetWholeExtent()) img_reslice.SetResliceTransform(img_transform) img_reslice.SetInterpolationModeToCubic() img_reslice.Update() # self.image = img_reslice.GetOutput() # doesn't work either self.image.DeepCopy(img_reslice.GetOutput()) self.Update_Display() # update the scene Any suggestions ????? Thanks !!!! YY _________________________________________________________________ ?? MSN ???????????????????? http://groups.msn.com?pgmarket=zh-tw From cpanagio at cs.ucl.ac.uk Wed Aug 13 23:54:43 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Thu, 14 Aug 2003 04:54:43 +0100 Subject: [vtkusers] some help - rotations Message-ID: <3F3B0803.8000807@cs.ucl.ac.uk> guys i want to rotate a vtkLineSource object and show the new and old position 1. i saw that vtkLineSource does not have a DeepCopy or SwallowCopy method (why?) - is there any way to achieve a creation of a duplicate lineSource object? 2. i do it using the vtkTransformPolyDataFilter vtkTransform *t = vtkTransform::New(); vtkTransformPolyDataFilter *tpdf = vtkTransformPolyDataFilter::New(); vtkLineSource *tempRay = vtkLineSource::New(); tempRay->SetPoint1(coords1[0],coords1[1],coords1[2]); tempRay->SetPoint2(coords2[0],coords2[1],coords2[2]); t->Translate(coords1[0],coords1[1],coords1[2]); t->RotateZ(i); t->Translate(-coords1[0],-coords1[1],-coords1[2]); tpdf->SetInput(tempRay->GetOutput()); tpdf->SetTransform(t); 3. Is there anyway now to retrieve the vtkLineSource object from the tpdf? I need to collect all the points (start-end of line) for all lines that have been derived from the rotations i would appreciate any help christos any suggestions? From Janne.Hamalainen at hus.fi Thu Aug 14 03:44:09 2003 From: Janne.Hamalainen at hus.fi (=?ISO-8859-1?Q?H=E4m=E4l=E4inen_Janne?=) Date: Thu, 14 Aug 2003 09:44:09 +0200 Subject: [vtkusers] =?ISO-8859-1?Q?VS=3A_=C4vtkusers=C5_Rewirte_vtkImageData?= Message-ID: <57DADDD9B062454A82284FE2A5B97A36055828CA@muikku2.hus.fi> As I understand (someone can correct, if I'm wrong), if you deepcopy the contents of your reslice output to your original vtkImageData: 1. self.image.DeepCopy(img_reslice.GetOutput()) the vtkImageReslice doesn't update, because the visualization pipeline doesn't have any knowledge about it (it has only reference to the object that lies before reslice, and that is passed to display). On the other hand, if you copy a reference of the output to your original image: 2. # self.image = img_reslice.GetOutput() # doesn't work either you have an infinite loop (self.image->img_reslice->self.image->img_reslice...); I don't remember what vtk does in this kind of situation. So, my suggestion is to use the second model (2.), but make an own object for the transformed image instead of copying it to self.image. That way, your pipeline will be complete. Hope this helps, -Janne -- Janne H?m?l?inen Research Assistant Helsinki University Central Hospital X-ray Department email janne.hamalainen at hus.fi > ---------- > L?hett?j?: Yi-Yu Chou[SMTP:chouyiyu at hotmail.com] > L?hetetty: 13. elokuuta 2003 23:56 > Vastaanottaja: vtkusers at vtk.org > Aihe: ?vtkusers? Rewirte vtkImageData > > Hi all, > > I tried to rewrite the transformed image back into the original > vtkImageData, but > nothing happened after transform. ( the image was unchanged) > My code : > img_transform = vtkTransform() > img_transform.RotateX(-10) > img_reslice = vtkImageReslice() > img_reslice.SetInput(self.image) > > img_reslice.SetOutputSpacing(img_reslice.GetInput().GetSpacing()) > > img_reslice.SetOutputOrigin(img_reslice.GetInput().GetOrigin()) > > img_reslice.SetOutputExtent(img_reslice.GetInput().GetWholeExtent()) > img_reslice.SetResliceTransform(img_transform) > img_reslice.SetInterpolationModeToCubic() > img_reslice.Update() > # self.image = img_reslice.GetOutput() # doesn't work > either > self.image.DeepCopy(img_reslice.GetOutput()) > self.Update_Display() # update the scene > > Any suggestions ????? > Thanks !!!! > > YY > > _________________________________________________________________ > ?? MSN ??:????????????????? > http://groups.msn.com?pgmarket=zh-tw > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From julien.hamaide at tcts.fpms.ac.be Thu Aug 14 02:58:03 2003 From: julien.hamaide at tcts.fpms.ac.be (Julien Hamaide) Date: Thu, 14 Aug 2003 08:58:03 +0200 Subject: [vtkusers] Error when reading image Message-ID: I'm using file reader such as vtkBMPReader but I can't figure out how to detect error on loading. I'm making a GetOutput(). And on the vtkImageData*, i make an update. On this update, files are loaded. But when the file format is not correct, I can't see it and just have a empty vtkImageData. Anyone can help? thanks Julien Hamaide Tcts Lab - Multitel Asbl. Faculte Polytechnique de Mons Parc Initialis - Avenue Nicolas Copernic,1 7000 - Mons Belgium http://tcts.fpms.ac.be tel +32 65 37 47 43 email : julien.hamaide at tcts.fpms.ac.be From vermaas at astron.nl Thu Aug 14 03:36:06 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Thu, 14 Aug 2003 09:36:06 +0200 Subject: [vtkusers] support for parallelism Message-ID: Is it possible with VTK to do parallel processing? For instance of the rendering process? What should I be looking into when I want to visualize huge datasets useing parallel processing? Has anybody investigated this? ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From petite.nanou at laposte.net Thu Aug 14 04:56:10 2003 From: petite.nanou at laposte.net (=?iso-8859-1?Q?Nanou?=) Date: Thu, 14 Aug 2003 10:56:10 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Changing_camera_view?= Message-ID: Hi, How can I change the camera view from 90?, without to change the camera position ? I have tried to change the focal point but then the object turns around it and not around itself. the function SetOrientation does not exist, that's bad for me! Nanou Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.regrain at creatis.insa-lyon.fr Thu Aug 14 05:15:08 2003 From: benoit.regrain at creatis.insa-lyon.fr (Benoit Regrain) Date: Thu, 14 Aug 2003 11:15:08 +0200 Subject: [vtkusers] Changing camera view References: Message-ID: <01c801c36244$8fa4db70$d06cdcc3@pcregrain> Hi, The only solution you have is to rotate your actor. Thus, your object will turn without change the position of your camera. Otherwise, if you want to rotate your camera, your request is impossible ! It's right that your object turns around your camera when you change the focal point. To turn around your object, you must set your focal point onto your object and move your camera position. Benoit ----- Original Message ----- From: Nanou To: mailing list Sent: Thursday, August 14, 2003 10:56 AM Subject: [vtkusers] Changing camera view Hi, How can I change the camera view from 90?, without to change the camera position ? I have tried to change the focal point but then the object turns around it and not around itself. the function SetOrientation does not exist, that's bad for me! Nanou -------------- next part -------------- An HTML attachment was scrubbed... URL: From petite.nanou at laposte.net Thu Aug 14 05:58:06 2003 From: petite.nanou at laposte.net (=?iso-8859-1?Q?Nanou?=) Date: Thu, 14 Aug 2003 11:58:06 +0200 Subject: [vtkusers] =?iso-8859-1?Q?VRML_importer?= Message-ID: Hi, is it possible to change a VRML importer into something else (actor, dataset...) that we can easily transform and move? Nanou Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcguinpg at maths.tcd.ie Thu Aug 14 06:03:49 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Thu, 14 Aug 2003 11:03:49 +0100 (BST) Subject: [vtkusers] support for parallelism In-Reply-To: Message-ID: take a look at http://www.vtk.org/pdf/pvtk.pdf and http://public.kitware.com/pipermail/vtkusers/2000-June/003628.html and http://public.kitware.com/pipermail/vtkusers/2000-June/003551.html You should also do a search on vtk's mailing list archives. On Thu, 14 Aug 2003, Nico Vermaas wrote: > Is it possible with VTK to do parallel processing? For instance of the rendering process? > What should I be looking into when I want to visualize huge datasets useing parallel processing? Has anybody investigated this? > > ==================================================== > Nico Vermaas > ASTRON - Westerbork Synthesis Radio Telescope > Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands > > tel: +31 593 598710 > vermaas at astron.nl > ==================================================== > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From petite.nanou at laposte.net Thu Aug 14 06:38:35 2003 From: petite.nanou at laposte.net (=?iso-8859-1?Q?Nanou?=) Date: Thu, 14 Aug 2003 12:38:35 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Re:_[vtkusers]_Changing_camera_view?= Message-ID: Hi, The problem is that I have two screens, one horizontal and one vertical, the view on the horizontal screen should be 90 degrees turned from the vertical view. An example, if the world is a simple room, on the vertical screen we see the wall and on the horizontal one, we should see the ground! But the camera has not changed is position but just turned around itself. But I think I will certainly have to change the camera position, It could be great if not Nanou > Hi, > Effectively, you can't change the object orientation or position. > But why don't you want to change the camera position ? > > To rotate around an object, you have for your camera : > elevation, azimuth and roll functions. They change automatically to camera position and let the > camera focal point to its value. > > Benoit ----- Original Message ----- From: Nanou To: benoit.regrain Cc: vtkusers Sent: Thursday, August 14, 2003 11:26 AM Subject: Re: [vtkusers] Changing camera view > > Hi, thanks for your advice, but unfortunately my object is not an actor and that is the problem, my object is a VRML file, then I have an importer into my renderer. That's why I want to change the camera view and not the object position. But perhaps there is a way to change my importer into something else? > > Nanou > > > Hi, > > The only solution you have is to rotate your actor. Thus, your object will turn without change the position of your camera. > > > > Otherwise, if you want to rotate your camera, your request is impossible ! > > It's right that your object turns around your camera when you change the focal point. To turn around your object, you must set > > your focal point onto your object and move your camera position. > > > > Benoit ----- Original Message ----- From: Nanou To: mailing list Sent: Thursday, August 14, 2003 10:56 AM Subject: [vtkusers] Changing camera view > > > > Hi, > > How can I change the camera view from 90?, without to change the camera position ? I have tried to change the focal point but then the object turns around it and not around itself. the function SetOrientation does not exist, that's bad for me! > > > > Nanou Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From imho at bephp.com Thu Aug 14 08:32:51 2003 From: imho at bephp.com (imho) Date: Thu, 14 Aug 2003 14:32:51 +0200 Subject: [vtkusers] vtkPoints from a triangular vtkPolyData Message-ID: <3F3B8173.7050601@bephp.com> Hi all, I'd like to use the vtkThinPlateSplineTransform, who needs vtkPoints structures. I've tried poly->getPoints() but it was empty, so here's what I've done: models are vtkPolyData TPSTarget and Origine vtkPoints n1 = modelTarget->GetNumberOfPoints(); n2 = modelToMove->GetNumberOfPoints(); if (n1 < n2) n=n1; else n=n2; for (i=0; iGetPoint(i,point); TPSTarget->InsertNextPoint(point); } for (i=0; iGetPoint(i,point); TPSOrigine->InsertNextPoint(point); } TPSTr->SetSourceLandmarks(TPSOrigine); TPSTr->SetTargetLandmarks(TPSTarget); and then : tf3 = vtkTransformPolyDataFilter::New(); tf3->SetTransform(TPSTr); tf3->SetInput(poly); tf3->Update(); return (tf3->GetOutput()); but it does nothing, my poly is the same on input and output., for the same reason before I guess. What can I try to have points from my polyData? Thanks From T.Hutton at eastman.ucl.ac.uk Thu Aug 14 08:39:16 2003 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Thu, 14 Aug 2003 13:39:16 +0100 Subject: [vtkusers] vtkPoints from a triangular vtkPolyData In-Reply-To: <3F3B8173.7050601@bephp.com> Message-ID: <5.1.0.14.0.20030814133548.031c4568@144.82.123.1> Hi imho, If your polydata is the output of a filter (like vtkTriangleFilter) then you will need to call Update on it in order to use its output, else GetNumberOfPoints will return zero and GetPoint won't work. If you've made your own polydata then there must be something wrong with how the points were assigned. Perhaps if you send us your code for that bit we might be able to help. Also worth checking that the in and out points are different... Tim At 14:32 14/08/2003 +0200, imho wrote: >Hi all, >I'd like to use the vtkThinPlateSplineTransform, who needs vtkPoints >structures. >I've tried poly->getPoints() but it was empty, so here's what I've done: >models are vtkPolyData >TPSTarget and Origine vtkPoints > > n1 = modelTarget->GetNumberOfPoints(); > n2 = modelToMove->GetNumberOfPoints(); > if (n1 < n2) > n=n1; > else > n=n2; > > for (i=0; i { > modelTarget->GetPoint(i,point); > TPSTarget->InsertNextPoint(point); > } > > > for (i=0; i { > modelToMove->GetPoint(i,point); > TPSOrigine->InsertNextPoint(point); > } > > > TPSTr->SetSourceLandmarks(TPSOrigine); > TPSTr->SetTargetLandmarks(TPSTarget); > >and then : > tf3 = vtkTransformPolyDataFilter::New(); > > tf3->SetTransform(TPSTr); > tf3->SetInput(poly); > tf3->Update(); > > return (tf3->GetOutput()); > >but it does nothing, my poly is the same on input and output., for the >same reason before I guess. >What can I try to have points from my polyData? > >Thanks > > > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > From imho at bephp.com Thu Aug 14 08:47:33 2003 From: imho at bephp.com (imho) Date: Thu, 14 Aug 2003 14:47:33 +0200 Subject: [vtkusers] vtkPoints from a triangular vtkPolyData In-Reply-To: <5.1.0.14.0.20030814133548.031c4568@144.82.123.1> References: <5.1.0.14.0.20030814133548.031c4568@144.82.123.1> Message-ID: <3F3B84E5.9080409@bephp.com> Hi Tim, the polydatas here are from a call to CopyStructure from a polydata who is the output of a filter, but updated. Can it be the problem? Thanks imho Tim Hutton wrote: > Hi imho, > > If your polydata is the output of a filter (like vtkTriangleFilter) > then you will need to call Update on it in order to use its output, > else GetNumberOfPoints will return zero and GetPoint won't work. > > If you've made your own polydata then there must be something wrong > with how the points were assigned. Perhaps if you send us your code > for that bit we might be able to help. > > Also worth checking that the in and out points are different... > > Tim > > At 14:32 14/08/2003 +0200, imho wrote: > >> Hi all, >> I'd like to use the vtkThinPlateSplineTransform, who needs vtkPoints >> structures. >> I've tried poly->getPoints() but it was empty, so here's what I've >> done: >> models are vtkPolyData >> TPSTarget and Origine vtkPoints >> >> n1 = modelTarget->GetNumberOfPoints(); >> n2 = modelToMove->GetNumberOfPoints(); >> if (n1 < n2) >> n=n1; >> else >> n=n2; >> >> for (i=0; i> { >> modelTarget->GetPoint(i,point); >> TPSTarget->InsertNextPoint(point); >> } >> >> >> for (i=0; i> { >> modelToMove->GetPoint(i,point); >> TPSOrigine->InsertNextPoint(point); >> } >> >> >> TPSTr->SetSourceLandmarks(TPSOrigine); >> TPSTr->SetTargetLandmarks(TPSTarget); >> >> and then : >> tf3 = vtkTransformPolyDataFilter::New(); >> >> tf3->SetTransform(TPSTr); >> tf3->SetInput(poly); >> tf3->Update(); >> >> return (tf3->GetOutput()); >> >> but it does nothing, my poly is the same on input and output., for >> the same reason before I guess. >> What can I try to have points from my polyData? >> >> Thanks >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > > > From T.Hutton at eastman.ucl.ac.uk Thu Aug 14 08:58:06 2003 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Thu, 14 Aug 2003 13:58:06 +0100 Subject: [vtkusers] vtkPoints from a triangular vtkPolyData In-Reply-To: <3F3B84E5.9080409@bephp.com> References: <5.1.0.14.0.20030814133548.031c4568@144.82.123.1> <5.1.0.14.0.20030814133548.031c4568@144.82.123.1> Message-ID: <5.1.0.14.0.20030814134920.0313e418@144.82.123.1> imho, CopyStructure copies pointers to: Verts, Lines, Polys, Strips, and Points (via vtkPointSet) DeepCopy copies the structures themselves, not just the pointers. Looking at vtkPointSet::CopyStructure it seems that the points are not Register()'d (unless this happens somewhere hidden in vtkSetGet.h), so if the filter is since Delete()'d then the points will no longer be valid. I suggest trying DeepCopy if you can live with the performance and memory hit. Or make sure the filter is Update()'d before calling CopyStructure. (possibly) Tim. At 14:47 14/08/2003 +0200, imho wrote: >Hi Tim, >the polydatas here are from a call to CopyStructure from a polydata who is >the output of a filter, but updated. >Can it be the problem? > >Thanks > >imho > > >Tim Hutton wrote: > >>Hi imho, >> >>If your polydata is the output of a filter (like vtkTriangleFilter) then >>you will need to call Update on it in order to use its output, else >>GetNumberOfPoints will return zero and GetPoint won't work. >> >>If you've made your own polydata then there must be something wrong with >>how the points were assigned. Perhaps if you send us your code for that >>bit we might be able to help. >> >>Also worth checking that the in and out points are different... >> >>Tim >> >>At 14:32 14/08/2003 +0200, imho wrote: >> >>>Hi all, >>>I'd like to use the vtkThinPlateSplineTransform, who needs vtkPoints >>>structures. >>>I've tried poly->getPoints() but it was empty, so here's what I've done: >>>models are vtkPolyData >>>TPSTarget and Origine vtkPoints >>> >>> n1 = modelTarget->GetNumberOfPoints(); >>> n2 = modelToMove->GetNumberOfPoints(); >>> if (n1 < n2) >>> n=n1; >>> else >>> n=n2; >>> >>> for (i=0; i>> { >>> modelTarget->GetPoint(i,point); >>> TPSTarget->InsertNextPoint(point); >>> } >>> >>> >>> for (i=0; i>> { >>> modelToMove->GetPoint(i,point); >>> TPSOrigine->InsertNextPoint(point); >>> } >>> >>> >>> TPSTr->SetSourceLandmarks(TPSOrigine); >>> TPSTr->SetTargetLandmarks(TPSTarget); >>> >>>and then : >>> tf3 = vtkTransformPolyDataFilter::New(); >>> >>> tf3->SetTransform(TPSTr); >>> tf3->SetInput(poly); >>> tf3->Update(); >>> >>> return (tf3->GetOutput()); >>> >>>but it does nothing, my poly is the same on input and output., for the >>>same reason before I guess. >>>What can I try to have points from my polyData? >>> >>>Thanks >>> >>> >>> >>>_______________________________________________ >>>This is the private VTK discussion list. Please keep messages on-topic. >>>Check the FAQ at: >>>Follow this link to subscribe/unsubscribe: >>>http://www.vtk.org/mailman/listinfo/vtkusers >> >> > > From liuqiang at pmail.ntu.edu.sg Thu Aug 14 10:36:25 2003 From: liuqiang at pmail.ntu.edu.sg (#LIU QIANG#) Date: Thu, 14 Aug 2003 22:36:25 +0800 Subject: [vtkusers] Help: about ObjReader & PolyData Message-ID: <052033A55521254893A4E2041957E1D037F076@mail03.student.main.ntu.edu.sg> Hi all, I encountered a problem when using vtkObjReader to import a wavefront .obj file. The .obj file is consist of all triangles. I read this file with vtkObjReader and it output a vtkPolyData. When I use this polydata as the input of a PolyDataMapper, the renderer can render this model perfectly. But when I try to access this polydata, I can't find any points or cells or triangles in this polydata. Below is the C++ code: vtkOBJReader *obj=vtkOBJReader::New(); obj->SetFileName("semi-sphere.obj"); vtkPolyData *in=obj->GetOutput(); vtkIdType NumC=in->GetNumberOfCells (); vtkIdType NumV=in->GetNumberOfVerts (); vtkIdType NumL=in->GetNumberOfLines (); vtkIdType NumP=in->GetNumberOfPolys (); vtkIdType NumS=in->GetNumberOfStrips (); vtkIdType NumOfPoints, PolyNum, StripNum; NumOfPoints=in->GetNumberOfPoints(); vtkCellArray *poly, *strips; poly=in->GetPolys(); strips=in->GetStrips(); StripNum=strips->GetNumberOfCells(); PolyNum=poly->GetNumberOfCells(); ---------------------------------------------------------------------------- The result turns out that NumC, NumV, NumL, NumP, NumS, NumOfPoints, PolyNum, StripNum are all 0. Can anyone help me to solve this problem and to access the points and cells of the polydata? Thanks in advance. Regards, Patrick From amy.henderson at kitware.com Thu Aug 14 10:54:55 2003 From: amy.henderson at kitware.com (Amy Henderson) Date: Thu, 14 Aug 2003 10:54:55 -0400 Subject: [vtkusers] Help: about ObjReader & PolyData In-Reply-To: <052033A55521254893A4E2041957E1D037F076@mail03.student.main .ntu.edu.sg> Message-ID: <5.1.0.14.0.20030814105257.029d6698@pop.biz.rr.com> Add the line: obj->Update(); before you ask for the number of points, cells, etc. When you render the model, this call is made for you when the visualization pipeline updates. - Amy At 10:36 PM 8/14/2003 +0800, #LIU QIANG# wrote: >Hi all, > >I encountered a problem when using vtkObjReader to import a wavefront .obj >file. > >The .obj file is consist of all triangles. I read this file with >vtkObjReader and it output a vtkPolyData. When I use this polydata as the >input of a PolyDataMapper, the renderer can render this model perfectly. >But when I try to access this polydata, I can't find any points or cells >or triangles in this polydata. > >Below is the C++ code: > > vtkOBJReader *obj=vtkOBJReader::New(); > obj->SetFileName("semi-sphere.obj"); > vtkPolyData *in=obj->GetOutput(); > > vtkIdType NumC=in->GetNumberOfCells (); > vtkIdType NumV=in->GetNumberOfVerts (); > vtkIdType NumL=in->GetNumberOfLines (); > vtkIdType NumP=in->GetNumberOfPolys (); > vtkIdType NumS=in->GetNumberOfStrips (); > > vtkIdType NumOfPoints, PolyNum, StripNum; > > NumOfPoints=in->GetNumberOfPoints(); > > vtkCellArray *poly, *strips; > poly=in->GetPolys(); > strips=in->GetStrips(); > > StripNum=strips->GetNumberOfCells(); > PolyNum=poly->GetNumberOfCells(); >---------------------------------------------------------------------------- >The result turns out that NumC, NumV, NumL, NumP, NumS, NumOfPoints, >PolyNum, StripNum are all 0. > >Can anyone help me to solve this problem and to access the points and >cells of the polydata? Thanks in advance. > >Regards, >Patrick > > > >N???az????^U2???.????X???^j??y?fz???(??)???y?- ?@A?a??????'$????(?? >?????d}? ?Yh??b?X???,???&???????&???i??0??d??????????+-?w???d??? From chouyiyu at hotmail.com Thu Aug 14 11:13:36 2003 From: chouyiyu at hotmail.com (Yi-Yu Chou) Date: Thu, 14 Aug 2003 15:13:36 +0000 Subject: [vtkusers] Re: Rewirte vtkImageData Message-ID: Hi Janne, Thanks for your suggestions. For the second model, is it possible to "clean" self.image before rewriting self.reslice to it ? Therefore, my code would be like : ..................................(skip) img_reslice.SetInput(self.image) ..................................(skip) img_reslice.SetResliceTransform(img_transform) clean_img(self.image) ???? .................................. self.image = img_reslice.GetOutput() If possible, how to set "clean_img" ? thanks !!!! YY > >As I understand (someone can correct, if I'm wrong), if you deepcopy the >contents of your reslice output to your original vtkImageData: > > 1. self.image.DeepCopy(img_reslice.GetOutput()) > >the vtkImageReslice doesn't update, because the visualization pipeline >doesn't have any knowledge about it (it has only reference to the object >that lies before reslice, and that is passed to display). On the other hand, >if you copy a reference of the output to your original image: > > 2. # self.image = img_reslice.GetOutput() # doesn't >work either > >you have an infinite loop >(self.image->img_reslice->self.image->img_reslice...); I don't remember what >vtk does in this kind of situation. > >So, my suggestion is to use the second model (2.), but make an own object >for the transformed image instead of copying it to self.image. That way, >your pipeline will be complete. Hope this helps, > >-Janne > > >-- >Janne H???nen >Research Assistant >Helsinki University Central Hospital >X-ray Department > >email janne.hamalainen at hus.fi > > > > ---------- > > L?ett?�: Yi-Yu Chou[SMTP:chouyiyu at hotmail.com] > > L?etetty: 13. elokuuta 2003 23:56 > > Vastaanottaja: vtkusers at vtk.org > > Aihe: ?tkusers� Rewirte vtkImageData > > > > Hi all, > > > > I tried to rewrite the transformed image back into the original > > vtkImageData, but > > nothing happened after transform. ( the image was unchanged) > > My code : > > img_transform = vtkTransform() > > img_transform.RotateX(-10) > > img_reslice = vtkImageReslice() > > img_reslice.SetInput(self.image) > > > > img_reslice.SetOutputSpacing(img_reslice.GetInput().GetSpacing()) > > > > img_reslice.SetOutputOrigin(img_reslice.GetInput().GetOrigin()) > > > > img_reslice.SetOutputExtent(img_reslice.GetInput().GetWholeExtent()) > > img_reslice.SetResliceTransform(img_transform) > > img_reslice.SetInterpolationModeToCubic() > > img_reslice.Update() > > # self.image = img_reslice.GetOutput() # doesn't work > > either > > self.image.DeepCopy(img_reslice.GetOutput()) > > self.Update_Display() # update the scene > > > > Any suggestions ????? > > Thanks !!!! > > > > YY > > > > _________________________________________________________________ > > ?? MSN ??:????????????????? > > http://groups.msn.com?pgmarket=zh-tw > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > > 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: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers _________________________________________________________________ ???? MSN ??????????????? http://www.msn.com.tw/english/ From lrvelez at rcm.upr.edu Thu Aug 14 16:12:07 2003 From: lrvelez at rcm.upr.edu (Luis Velez) Date: Thu, 14 Aug 2003 13:12:07 -0700 Subject: [vtkusers] Newbie needs help. Re: In-Reply-To: <000201c36083$4c7f76b0$de0ba8c0@qtwblr01.questglobal.com> Message-ID: I was loading all the libraries except two. if I load all the libraries I get this from those two: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at MyApp.(MyApp.java:39) the two libraries are: System.loadLibrary("vtkRenderingJava"); System.loadLibrary("vtkHybridJava"); all the libraries I load are: static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); System.loadLibrary("vtkParallelJava"); System.loadLibrary("vtkHybridJava"); } my class path looks something like this: %classpath%;.;C:\Program Files\vtk42\bin\vtk.jar;C:\Program Files\vtk42\bin;C:\j2sdk1.4.1_04\bin; and my path: %path%;C:\j2sdk1.4.1_04\bin;C:\Program Files\vtk42\bin; I did the vtk Binary installation and have not moved any files from where they fell during installation. I am really stuck with this and would appreciate any help Thanks again in advance; Luis -----Original Message----- From: R K Shyamprakash [mailto:ramakrishna.prakash at quest-global.com] Sent: Monday, August 11, 2003 8:39 PM To: 'Luis Velez'; vtkusers at vtk.org Subject: RE: [vtkusers] Newbie needs help. Luis, Have you loaded the vtk libraries?(like System.loadLibrary(".....")) . --Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Luis Velez Sent: Tuesday, August 12, 2003 4:09 AM To: vtkusers at vtk.org Subject: [vtkusers] Newbie needs help. Hello, I have been having been getting this error message: java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) I really have no idea of what does it mean. If anybody can help me I would be most grateful. Thanks, Luis _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From Janne.Hamalainen at hus.fi Fri Aug 15 03:33:38 2003 From: Janne.Hamalainen at hus.fi (=?ISO-8859-1?Q?H=E4m=E4l=E4inen_Janne?=) Date: Fri, 15 Aug 2003 09:33:38 +0200 Subject: [vtkusers] VS: Rewirte vtkImageData Message-ID: <57DADDD9B062454A82284FE2A5B97A36055828CB@muikku2.hus.fi> No, if you want the pipeline to update you need to have all the objects along the pipeline available. If you remove the original image, the pipeline will break down. On the other hand, if you are concerned about the memory usage, you can remove the intermediate results by setting ReleaseDataFlagOn() (method in vtkImageData) for your self.image. Look more info at: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp this way the pipeline will release the memory used by self.image after the pipeline has executed. I'm not exactly sure, if this is what you are concerned about... -Janne > ---------- > L?hett?j?: Yi-Yu Chou[SMTP:chouyiyu at hotmail.com] > L?hetetty: 14. elokuuta 2003 18:13 > Vastaanottaja: Janne.Hamalainen at hus.fi > Kopio: vtkusers at vtk.org > Aihe: Re: Rewirte vtkImageData > > Hi Janne, > > Thanks for your suggestions. > For the second model, is it possible to "clean" self.image before > rewriting > > self.reslice to it ? Therefore, my code would be like : > ..................................(skip) > img_reslice.SetInput(self.image) > ..................................(skip) > img_reslice.SetResliceTransform(img_transform) > clean_img(self.image) ???? > .................................. > self.image = img_reslice.GetOutput() > If possible, how to set "clean_img" ? > thanks !!!! > > YY > > > > >As I understand (someone can correct, if I'm wrong), if you deepcopy the > >contents of your reslice output to your original vtkImageData: > > > > 1. self.image.DeepCopy(img_reslice.GetOutput()) > > > >the vtkImageReslice doesn't update, because the visualization pipeline > >doesn't have any knowledge about it (it has only reference to the object > >that lies before reslice, and that is passed to display). On the other > hand, > >if you copy a reference of the output to your original image: > > > > 2. # self.image = img_reslice.GetOutput() # doesn't > >work either > > > >you have an infinite loop > >(self.image->img_reslice->self.image->img_reslice...); I don't remember > what > >vtk does in this kind of situation. > > > >So, my suggestion is to use the second model (2.), but make an own object > >for the transformed image instead of copying it to self.image. That way, > >your pipeline will be complete. Hope this helps, > > > >-Janne > > > > > >-- > >Janne H???nen > >Research Assistant > >Helsinki University Central Hospital > >X-ray Department > > > >email janne.hamalainen at hus.fi > > > > > > > ---------- > > > L?ett?�: Yi-Yu Chou[SMTP:chouyiyu at hotmail.com] > > > L?etetty: 13. elokuuta 2003 23:56 > > > Vastaanottaja: vtkusers at vtk.org > > > Aihe: ?tkusers� Rewirte vtkImageData > > > > > > Hi all, > > > > > > I tried to rewrite the transformed image back into the original > > > vtkImageData, but > > > nothing happened after transform. ( the image was unchanged) > > > My code : > > > img_transform = vtkTransform() > > > img_transform.RotateX(-10) > > > img_reslice = vtkImageReslice() > > > img_reslice.SetInput(self.image) > > > > > > img_reslice.SetOutputSpacing(img_reslice.GetInput().GetSpacing()) > > > > > > img_reslice.SetOutputOrigin(img_reslice.GetInput().GetOrigin()) > > > > > > img_reslice.SetOutputExtent(img_reslice.GetInput().GetWholeExtent()) > > > img_reslice.SetResliceTransform(img_transform) > > > img_reslice.SetInterpolationModeToCubic() > > > img_reslice.Update() > > > # self.image = img_reslice.GetOutput() # doesn't work > > > either > > > self.image.DeepCopy(img_reslice.GetOutput()) > > > self.Update_Display() # update the scene > > > > > > Any suggestions ????? > > > Thanks !!!! > > > > > > YY > > > > > > _________________________________________________________________ > > > ?? MSN ??:????????????????? > > > http://groups.msn.com?pgmarket=zh-tw > > > > > > _______________________________________________ > > > This is the private VTK discussion list. > > > Please keep messages on-topic. Check the FAQ at: > > > > > > 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: > > >Follow this link to subscribe/unsubscribe: > >http://www.vtk.org/mailman/listinfo/vtkusers > > _________________________________________________________________ > ???? MSN ????:?????????? http://www.msn.com.tw/english/ > From zxem at my169.com Sun Aug 17 06:40:27 2003 From: zxem at my169.com (Xin Zhao) Date: Sun, 17 Aug 2003 10:40:27 +0000 Subject: [vtkusers] Extends vtkLookupTable Message-ID: Dear VTKall, I want to extends the vtkLookupTable in Java. But when I run my subclass. the error message is as follow. Can I extends the vtkLookupTable ? ---------------------------------------------------------------------- Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkLookupTable.VTKInit(Native Method) at vtk.vtkObject.(C:/martink/vtk42/vtkdist/java/vtk/vtkObject.java :98) at vtk.vtkScalarsToColors.(C:/martink/vtk42/vtkdist/java/vtk/vtkSc alarsToColors.java:86) at vtk.vtkLookupTable.(C:/martink/vtk42/vtkdist/java/vtk/vtkLookup Table.java:194) at STFLookupTable.(STFLookupTable.java:7) at STFLookupTable.main(STFLookupTable.java:19) Press any key to continue... ------------------------------------------------------------------------ ????????????????????????????Xin Zhao ????????????????????????????zxem at my169.com ??????????????????????????????????2003-08-15 -- X Zhao Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello Street, Sheffield S1 4DP Telephone +44 (0)114 278 9436 Email acp02xz at sheffield.ac.uk From mcguinpg at maths.tcd.ie Fri Aug 15 10:16:11 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Fri, 15 Aug 2003 15:16:11 +0100 (BST) Subject: [vtkusers] timing a parallel visualization In-Reply-To: Message-ID: Hi All, Just a very quick question, I am taking some performance measurements of using vtk in parallel but I am having difficulty with timing my program, should I use cpu time or real time? Paul From kshivann at engineering.uiowa.edu Fri Aug 15 12:06:41 2003 From: kshivann at engineering.uiowa.edu (kshivann) Date: Fri, 15 Aug 2003 11:06:41 -0500 Subject: [vtkusers] how to use function pan Message-ID: <3F225310@webmail.engineering.uiowa.edu> hi, i was planning to pan an object in a given viewport. which function should i use. kiran From lxf_xp at hotmail.com Fri Aug 15 13:30:34 2003 From: lxf_xp at hotmail.com (=?gb2312?B?ASAP?=) Date: Sat, 16 Aug 2003 01:30:34 +0800 Subject: [vtkusers] S.O.S Message-ID: Dear Mr, hello. I am a user of VTK, and recently I want to develop a MarchingCube application using the class vtkMarchingCubes you provide. But after I pass the compiling, VC++6.0 linker told me that it cannot find the body of vtkMarchingCubes functions, just as such description: Linking... mcubes.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkMarchingCubes::SetLocator(class vtkPointLocator *)" (__imp_?SetLocator at vtkMarchingCubes@@QAEXPAVvtkPointLocator@@@Z) mcubes.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkMarchingCubes * __cdecl vtkMarchingCubes::New(void)" (__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ) Release/mcubes.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. mcubes.exe - 3 error(s), 0 warning(s) So I find the vtk/patented directory and run cmake to create a project of vtkPatented.lib and build it successfully. But when I add this lib to my application project in VC++6.0, linker still cannot find the body of vtkMarchingCubes and express the same errors. So please help me to locate and solve this problem. Thank you very much! _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn From wchiang at iesinet.com Fri Aug 15 15:22:46 2003 From: wchiang at iesinet.com (Wen-Hsing Chiang) Date: Fri, 15 Aug 2003 12:22:46 -0700 Subject: [vtkusers] Opacity and vtkColorTransferFunction In-Reply-To: <20030815185901.27306.65226.Mailman@public.kitware.com> Message-ID: <000601c36362$9bc96dc0$3c02a8c0@ericchiang> Hi, I am getting a problem in making an actor translucent. The color of the actor is mapped to the scalar values by vtkColorTransferFunction. I tried to set a rather small opacity value (0.1) to the actor, but it remains opaque. The problem does not occur when using vtkLookupTable. Since I need to map particular values to designated colors, vtkLookupTable is not suitable. Here is the suedo code, can anyone tell me what is wrong? Thanks! vtkPolyData * pPolyData = vtkPolyData::New() //set up pPolyData here.... vtkColorTransferFunction * pColorTransferFunction = vtkColorTransferFunction::New(); for (int i = 0; i < m_iNumberOfColors; i++) { pColorTransferFunction->AddRGBPoint(value[i], red[i], green[i], blue[i]); } // pColorTransferFunction->SetAlpha(0.1) does not work also!! vtkPolyDataMapper * pPolyDataMapper = vtkPolyDataMapper::New(); pPolyDataMapper->SetInput(pPolyData); pPolyDataMapper->SetLookupTable(pColorTransferFunction); vtkActor * pActor = vtkActor::New(); pActor->SetMapper(pPolyDataMapper); pActor->GetProperty()->SetOpacity(.1); ...... Wen-Hsing Chiang, Ph.D. Integrated Environmental Services, Inc. 20 Fairbanks, Suite 187 Irvine, CA 92618 USA tel. 949.460.7003 fax. 949 460 7019 ************************** PRIVACY NOTICE **************************** The information contained in this communication is confidential and is intended only for the individual or entity to whom it is addressed. Any unauthorized use, distribution, copying or disclosure of this communication is prohibited. If you have received this communication in error, please contact the sender immediately using the reply mail function and then delete the message. Thank you, Integrated Environmental Services, Inc. www.iesinet.com ********************************************************************** From chouyiyu at hotmail.com Fri Aug 15 17:00:13 2003 From: chouyiyu at hotmail.com (Yi-Yu Chou) Date: Fri, 15 Aug 2003 21:00:13 +0000 Subject: [vtkusers] Help !!! vtkImageReslice Message-ID: Hi all, I want to rotate a 3D volume (vtkImageData) around its center by using vtkImageReslice. Below is my code : self.image.SetOrigin(ori_x,ori_y,ori_z) # set the origin of the original image to center # because the (x,y,z) coordinate of (0,0,0) is at upper-left corner # (ori_x,ori_y,ori_z) is the center img_transform = vtkTransform() img_transform.RotateY(theta) img_reslice = vtkImageReslice() img_reslice.SetInput(self.image) img_reslice.SetInformationInput(self.image) img_reslice.SetResliceTransform(img_transform) img_reslice.InterpolateOn() img_reslice.Update() self.new_image = img_reslice.GetOutput() self.new_image.SetOrigin(0,0,0) However, I got a strange resulte, the image seems not rotated around its center. Any suggestions ? Thanks in advance !!! YY _________________________________________________________________ ???? MSN ??????????????? http://www.msn.com.tw/english/ From lisa.avila at kitware.com Fri Aug 15 17:12:10 2003 From: lisa.avila at kitware.com (Lisa Avila) Date: Fri, 15 Aug 2003 17:12:10 -0400 Subject: [vtkusers] Opacity and vtkColorTransferFunction In-Reply-To: <000601c36362$9bc96dc0$3c02a8c0@ericchiang> References: <20030815185901.27306.65226.Mailman@public.kitware.com> Message-ID: <5.2.0.9.0.20030815171117.04407f80@pop.biz.rr.com> Hello Wen-Hsing, vtkColorTransferFunction does not support opacity - all colors have opacity of 1.0, which I believe overrides the opacity of the actor. Lisa At 03:22 PM 8/15/2003, Wen-Hsing Chiang wrote: >Hi, >I am getting a problem in making an actor translucent. The color of the >actor is mapped to the scalar values by vtkColorTransferFunction. I >tried to set a rather small opacity value (0.1) to the actor, but it >remains opaque. The problem does not occur when using vtkLookupTable. >Since I need to map particular values to designated colors, >vtkLookupTable is not suitable. > >Here is the suedo code, can anyone tell me what is wrong? Thanks! > >vtkPolyData * pPolyData = vtkPolyData::New() >//set up pPolyData here.... > >vtkColorTransferFunction * pColorTransferFunction = >vtkColorTransferFunction::New(); >for (int i = 0; i < m_iNumberOfColors; i++) >{ > pColorTransferFunction->AddRGBPoint(value[i], red[i], green[i], >blue[i]); >} >// pColorTransferFunction->SetAlpha(0.1) does not work also!! > >vtkPolyDataMapper * pPolyDataMapper = vtkPolyDataMapper::New(); >pPolyDataMapper->SetInput(pPolyData); >pPolyDataMapper->SetLookupTable(pColorTransferFunction); > >vtkActor * pActor = vtkActor::New(); >pActor->SetMapper(pPolyDataMapper); >pActor->GetProperty()->SetOpacity(.1); >...... > > > >Wen-Hsing Chiang, Ph.D. >Integrated Environmental Services, Inc. >20 Fairbanks, Suite 187 >Irvine, CA 92618 >USA >tel. 949.460.7003 >fax. 949 460 7019 > >************************** PRIVACY NOTICE **************************** > >The information contained in this communication is confidential and is >intended only for the individual or entity to whom it is addressed. >Any unauthorized use, distribution, copying or disclosure of this >communication is prohibited. If you have received this communication >in error, please contact the sender immediately using the reply mail >function and then delete the message. > >Thank you, Integrated Environmental Services, Inc. www.iesinet.com >********************************************************************** > > > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From wchiang at iesinet.com Fri Aug 15 17:20:09 2003 From: wchiang at iesinet.com (Wen-Hsing Chiang) Date: Fri, 15 Aug 2003 14:20:09 -0700 Subject: [vtkusers] Opacity and vtkColorTransferFunction In-Reply-To: <5.2.0.9.0.20030815171117.04407f80@pop.biz.rr.com> Message-ID: <000701c36373$0165bf20$3c02a8c0@ericchiang> Lisa, Thank you for the reply. I have found a solution to use vtkLookupTable. I converted the scalar values to index in the same way as vtkBandedPolyDataContourFilter::SetScalarModeToIndex(). The index values are then map to vtkLookupTable. It works good now. Wen-Hsing Chiang, Ph.D. Integrated Environmental Services, Inc. 20 Fairbanks, Suite 187 Irvine, CA 92618 USA tel. 949.460.7003 fax. 949 460 7019 -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of Lisa Avila Sent: Friday, August 15, 2003 2:12 PM To: Wen-Hsing Chiang; vtkusers at vtk.org Subject: Re: [vtkusers] Opacity and vtkColorTransferFunction Hello Wen-Hsing, vtkColorTransferFunction does not support opacity - all colors have opacity of 1.0, which I believe overrides the opacity of the actor. Lisa At 03:22 PM 8/15/2003, Wen-Hsing Chiang wrote: >Hi, >I am getting a problem in making an actor translucent. The color of the >actor is mapped to the scalar values by vtkColorTransferFunction. I >tried to set a rather small opacity value (0.1) to the actor, but it >remains opaque. The problem does not occur when using vtkLookupTable. >Since I need to map particular values to designated colors, >vtkLookupTable is not suitable. > >Here is the suedo code, can anyone tell me what is wrong? Thanks! > >vtkPolyData * pPolyData = vtkPolyData::New() >//set up pPolyData here.... > >vtkColorTransferFunction * pColorTransferFunction = >vtkColorTransferFunction::New(); for (int i = 0; i < m_iNumberOfColors; >i++) { > pColorTransferFunction->AddRGBPoint(value[i], red[i], green[i], >blue[i]); >} >// pColorTransferFunction->SetAlpha(0.1) does not work also!! > >vtkPolyDataMapper * pPolyDataMapper = vtkPolyDataMapper::New(); >pPolyDataMapper->SetInput(pPolyData); >pPolyDataMapper->SetLookupTable(pColorTransferFunction); > >vtkActor * pActor = vtkActor::New(); >pActor->SetMapper(pPolyDataMapper); >pActor->GetProperty()->SetOpacity(.1); >...... > > > >Wen-Hsing Chiang, Ph.D. >Integrated Environmental Services, Inc. >20 Fairbanks, Suite 187 >Irvine, CA 92618 >USA >tel. 949.460.7003 >fax. 949 460 7019 > >************************** PRIVACY NOTICE **************************** > >The information contained in this communication is confidential and is >intended only for the individual or entity to whom it is addressed. Any >unauthorized use, distribution, copying or disclosure of this >communication is prohibited. If you have received this communication >in error, please contact the sender immediately using the reply mail >function and then delete the message. > >Thank you, Integrated Environmental Services, Inc. www.iesinet.com >********************************************************************** > > > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >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: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From frantzdale at intelligent-imaging.com Fri Aug 15 19:24:36 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Fri, 15 Aug 2003 16:24:36 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: Message-ID: I finally got a good compilation with OSX. Since I had a hard time figuring it out, attached is my CMakeCache.txt. Hopefully it'll make life easier for people. --Ben -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CMakeCache.txt URL: From frantzdale at intelligent-imaging.com Fri Aug 15 20:52:59 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Fri, 15 Aug 2003 17:52:59 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: Message-ID: Oops. Wrong file. Here it is: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: CMakeCache.txt URL: -------------- next part -------------- --Ben On Friday, August 15, 2003, at 04:24 PM, Ben FrantzDale wrote: > I finally got a good compilation with OSX. Since I had a hard time > figuring it out, attached is my CMakeCache.txt. Hopefully it'll make > life easier for people. > > --Ben > > From gakabani at nc.rr.com Fri Aug 15 21:22:27 2003 From: gakabani at nc.rr.com (gamal akabani hneide) Date: Fri, 15 Aug 2003 21:22:27 -0400 Subject: [vtkusers] Common/Makefile problem In-Reply-To: Message-ID: On 8/15/03 8:52 PM, "Ben FrantzDale" wrote: > Oops. Wrong file. > > Here it is: > > > > > > > --Ben > > On Friday, August 15, 2003, at 04:24 PM, Ben FrantzDale wrote: > >> I finally got a good compilation with OSX. Since I had a hard time >> figuring it out, attached is my CMakeCache.txt. Hopefully it'll make >> life easier for people. >> >> --Ben >> >> Dear Ben: Have you tested all the tk/tcl features of VTK? I see that use are using FINK (sw directory) for some of the programs, such as python, and also you are using frameworks for OPENGL. I am a bit surprised it works. If it does work deserves careful disclosure of the methods you used. Gamal Akabani, Ph.D. Duke University Medical Center Department of Radiology Division of Nuclear Medicine From frantzdale at intelligent-imaging.com Fri Aug 15 21:34:39 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Fri, 15 Aug 2003 18:34:39 -0700 Subject: [vtkusers] Common/Makefile problem In-Reply-To: Message-ID: >> On Friday, August 15, 2003, at 04:24 PM, Ben FrantzDale wrote: >> >>> I finally got a good compilation with OSX. Since I had a hard time >>> figuring it out, attached is my CMakeCache.txt. Hopefully it'll make >>> life easier for people. >>> >>> --Ben >>> >>> > > > Dear Ben: > > Have you tested all the tk/tcl features of VTK? > I see that use are using FINK (sw directory) for some of the programs, > such > as python, and also you are using frameworks for OPENGL. I am a bit > surprised it works. If it does work deserves careful disclosure of the > methods you used. I did just try some of the Tcl stuff and it appears not to work. It fails with "can't find package vtk". I am using fink for Python. As for the frameworks for OpenGL, I'm not even sure what that means. I did see someone mention something about frameworks in other emails, though. The Python test scripts do work, though, however their mouse behavior is a bit weird, with the "center" of the window being correct only if the window is put in the lower-left corner of the screen. (That center appears to be in screen space rather than window space.) As for methods, I installed the libraries I thought I needed using fink and then tried everything I could think of and find online until cmake made a good makefile and it compiled without error. Also, I am suspicious that it isn't using graphics hardware. --Ben From cpanagio at cs.ucl.ac.uk Sat Aug 16 09:36:47 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Sat, 16 Aug 2003 14:36:47 +0100 Subject: [vtkusers] HELP rotation axes Message-ID: <3F3E336F.5070107@cs.ucl.ac.uk> guys is there any way to set different axes (except XYZ) and rotate and object around them? i found only rotateX,Y,Z and i dont know how to set new axes for rotation can someone give me an example or where to look at to solve this problem? thank you in advance christos From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From jli023 at cs.auckland.ac.nz Sun Aug 17 22:56:42 2003 From: jli023 at cs.auckland.ac.nz (jli023 at cs.auckland.ac.nz) Date: Mon, 18 Aug 2003 14:56:42 +1200 Subject: [vtkusers] run vtk project under Dev-C++ Message-ID: <1061175402.3f40406a2bf5b@mail.cs.auckland.ac.nz> Hi all, I tried to figure out how to run vtk project under Dev-C++. I generated VTK libraries using cygwin because Dev-C++ uses linux style libs. Then trying to link the vtk libs to a vtk project by adding -lvtkCommon -lvtkRendering -lvtkIo -lvtkImaging -lvtkHybrid -lvtkParallel -lvtkGraphics -lvtkFiltering -lvtkzlib or C:/Dev-Cpp/lib/libvtkCommon.a C:/Dev-Cpp/lib/libvtkFiltering.a C:/Dev-Cpp/lib/libvtkGraphics.a C:/Dev-Cpp/lib/libvtkHybrid.a C:/Dev-Cpp/lib/libvtkImaging.a C:/Dev-Cpp/lib/libvtkIO.a C:/Dev-Cpp/lib/libvtkParallel.a C:/Dev-Cpp/lib/libvtkRendering.a C:/Dev-Cpp/lib/libvtkzlib.a to the project's parameters tab under "Add library and object" section. but it does not work, and gives heaps of link errors: [Linker error] undefined reference to `_imp___ZN13vtkConeSource3NewEv' [Linker error] undefined reference to `_imp___ZN17vtkPolyDataMapper3NewEv' [Linker error] undefined reference to `_imp___ZN8vtkActor3NewEv' .... Can anybody point out to me how to run vtk project under Dev-C++ IDE? Thank you very much, Jing From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From yxliu at fudan.edu.cn Sun Aug 17 23:24:30 2003 From: yxliu at fudan.edu.cn (yxliu) Date: Mon, 18 Aug 2003 11:24:30 +0800 Subject: [vtkusers] (no subject) Message-ID: <000c01c36538$3fcdc610$1f64a8c0@YXLIU> Hi vtkusers I use two Lib, one is VTK the other is OFELI which is a Finite Element Lib. I use them separately and each works fine. But when I use them together,the compiler reports many redefinition error. One error show as below: c:\program files\microsoft visual studio\vc98\include\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types c:\program files\microsoft visual studio\vc98\include\iosfwd(257) : see declaration of 'ostream' I do not konw how to resolve this question. I need your help! Thank you in advance yxliu -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis_hudr at sina.com Sun Aug 17 21:52:18 2003 From: denis_hudr at sina.com (derong) Date: Sun, 17 Aug 2003 18:52:18 -0700 Subject: [vtkusers] vtkPropPicker can't be used in vtkAssembly, need help! Message-ID: <009201c3652b$612e4fd0$7c2efea9@net> Hi, All Did anyone face the trouble to add pick function in vtkAssembly? I try to build an application to build some assembly objects, and when I use mouse to pick one object inside the assembly , the box of this object will be displayed. I choose vtkPropPicker as my picker in my application because it is fast. But when i try it with MFC programming, it turns out crash unpredictable. The error message is like this: Invalid Address specified to RtlValidateHeap( 01A60000, 032E5FF0 ) I tried to track this bug in my programs, I found one break point at: cullPicker->Delete(); (in vtkRenderer.cxx) one break point follows this is at: this->Actors->Delete(); (in vtkPicker.cxx). The final break point is at vtkCollection method DeleteElement(vtkCollectionElement *e): delete e; because e's address is 0x032e6010, it beyonds ( 01A60000, 032E5FF0 ). I also found some suspicous codes in vtkPicker.cxx In the method: int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) There is a statement: this->Prop3Ds->AddItem((vtkProp3D *)prop); If prop is an assembly, one same assembly can be added several times after I picked something in assembly. Is that reasonable? By the way, I have tested my application without any assembly. It works fine. I feel frustrating with this bug in my application. Any hint will be helpful. Regards. Derong -------------- next part -------------- An HTML attachment was scrubbed... URL: From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818083502.4074C1ABEC@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818084141.EACBD1ABEC@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818090140.938D01ABEC@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 18 04:44:54 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 18 Aug 2003 10:44:54 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1060791543.30285.48.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> Message-ID: <3F409206.6050000@creatis.insa-lyon.fr> Charl P. Botha wrote: > On Wed, 2003-08-13 at 14:33, Mathieu Malaterre wrote: > >>Charl Wrote: >> >>>2. I am concerned about your translation of button4 and button5 XEvents >>>to VTK MouseWheel events. This is only true if the user has >>>"ZAxisMapping 4 5" in her config file. Is it not possible for you to >>>trap the ZAxis events themselves? The way you have done it works, but >>>is not entirely correct. >> >>You are perfectly right. >>I have been browsing different GUI libs: wxWindows/ gtk+/ fltk and they >>all make the assertion that config file has: >>Option ZAxisMapping 4 5 > > > If that's the case (i.e. ALL of these toolkits assume that Button 4 and > 5 events are triggered by the scroll-wheel) we could *maybe* do the > same, although one has to wonder what will happen on that odd mouse > where Buttons 4 and 5 are something totally different (e.g. thumb > buttons). If you find anymore information about this, I would love to > hear. > Charl, I understand your point of view, but I think that this option has become a 'standard'. If you have an odd-mouse with side button, there is a FAQ for Mandrake user: http://www.mandrakeuser.org/docs/xwin/xmouse2.html#button The imwheel (http://jonatkins.org/imwheel/) project, also assume that X config has the option : "Option ZAxisMapping 4 5" BTW, if a left handed user has remap the X event with: $ xmodmap -e "pointer = 3 2 1 4 5" Then a mouse left button click would raise a "RightButtonPressEvent" in VTK. I tried some app such as OpenOffice / Mozilla/ Netscape/ Nedit / XEmacs ... *ALL* are mapping wheel event to button 4 and 5. So please if you know any other app that doesn't make this assumption, please send me link to it. Regards, mathieu From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818095322.8D0DC1ABEC@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From c.p.botha at ewi.tudelft.nl Mon Aug 18 05:56:58 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 18 Aug 2003 11:56:58 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <3F409206.6050000@creatis.insa-lyon.fr> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> <3F409206.6050000@creatis.insa-lyon.fr> Message-ID: <1061200618.28353.5.camel@dutidad> On Mon, 2003-08-18 at 10:44, Mathieu Malaterre wrote: > Charl P. Botha wrote: > > If that's the case (i.e. ALL of these toolkits assume that Button 4 and > > 5 events are triggered by the scroll-wheel) we could *maybe* do the > > same, although one has to wonder what will happen on that odd mouse > > where Buttons 4 and 5 are something totally different (e.g. thumb > > buttons). If you find anymore information about this, I would love to > > hear. > > > > Charl, > > I understand your point of view, but I think that this option has > become a 'standard'. > If you have an odd-mouse with side button, there is a FAQ for Mandrake > user: > > http://www.mandrakeuser.org/docs/xwin/xmouse2.html#button > > The imwheel (http://jonatkins.org/imwheel/) project, also assume that X > config has the option : "Option ZAxisMapping 4 5" > > BTW, if a left handed user has remap the X event with: > > $ xmodmap -e "pointer = 3 2 1 4 5" > > Then a mouse left button click would raise a "RightButtonPressEvent" in VTK. > > I tried some app such as OpenOffice / Mozilla/ Netscape/ Nedit / XEmacs > ... *ALL* are mapping wheel event to button 4 and 5. So please if you > know any other app that doesn't make this assumption, please send me > link to it. It's not going to be that easy, Mathieu. :) I just commented out my ZAxisMapping 4 5 option and restarted X... suddenly, the mouse wheel on my MS IntelliEye mouse did NOT work anymore in Mozilla 1.4, OpenOffice 1.0.3, Konqueror 3.1.2, aterm 0.4.2 or evolution 1.2.4. When I uncommented the line and restarted again, my scroll wheel started working again. Conclusion: At least on my system, NONE of these rather popular applications assume that buttons 4 and 5 are the scroll wheel. I don't think that VTK should make this assumption either. I can see that it's definitely easier to implement the ZAxis handling as button event handlers, but in this case it seems the easy way is not the correct way. Good luck with this! Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 18 06:13:50 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 18 Aug 2003 12:13:50 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1061200618.28353.5.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> <3F409206.6050000@creatis.insa-lyon.fr> <1061200618.28353.5.camel@dutidad> Message-ID: <3F40A6DE.6030609@creatis.insa-lyon.fr> > It's not going to be that easy, Mathieu. :) I just commented out my > ZAxisMapping 4 5 option and restarted X... suddenly, the mouse wheel on > my MS IntelliEye mouse did NOT work anymore in Mozilla 1.4, OpenOffice > 1.0.3, Konqueror 3.1.2, aterm 0.4.2 or evolution 1.2.4. When I > uncommented the line and restarted again, my scroll wheel started > working again. Obviously yes, this is the way to disable mouse wheel. > Conclusion: > At least on my system, NONE of these rather popular applications assume > that buttons 4 and 5 are the scroll wheel. I never said that. I said that standard option is : Option "ZAxisMapping 4 5" compared to Option "ZAxisMapping 6 7" If a user has a two buttons mouse and decided to turn off middle mouse emulation: Option "Emulate3Buttons" "off" Then suddenly the middle mouse emulation would not work in Mozilla, OpenOffice, Konqueror, aterm and evolution... my 2 cents, Mathieu From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818104426.8B02E1AB45@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From c.p.botha at ewi.tudelft.nl Mon Aug 18 06:57:54 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 18 Aug 2003 12:57:54 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <3F40A6DE.6030609@creatis.insa-lyon.fr> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> <3F409206.6050000@creatis.insa-lyon.fr> <1061200618.28353.5.camel@dutidad> <3F40A6DE.6030609@creatis.insa-lyon.fr> Message-ID: <1061204274.28353.14.camel@dutidad> On Mon, 2003-08-18 at 12:13, Mathieu Malaterre wrote: > > It's not going to be that easy, Mathieu. :) I just commented out my > > ZAxisMapping 4 5 option and restarted X... suddenly, the mouse wheel on > > my MS IntelliEye mouse did NOT work anymore in Mozilla 1.4, OpenOffice > > 1.0.3, Konqueror 3.1.2, aterm 0.4.2 or evolution 1.2.4. When I > > uncommented the line and restarted again, my scroll wheel started > > working again. > > Obviously yes, this is the way to disable mouse wheel. > > > Conclusion: > > At least on my system, NONE of these rather popular applications assume > > that buttons 4 and 5 are the scroll wheel. > > I never said that. I said that standard option is : > > Option "ZAxisMapping 4 5" This is what you said: "I tried some app such as OpenOffice / Mozilla/ Netscape/ Nedit / XEmacs ... *ALL* are mapping wheel event to button 4 and 5. So please if you know any other app that doesn't make this assumption, please send me.." They are NOT mapping the wheel event to buttons 4 and 5 and none of those applications is making the assumption that you claim... they are, correctly, binding event handlers to Z-Axis motion. You want to bypass that and bind mouse wheel event handlers directly to button 4 and 5 and this is the topic of the current debate. Once again: it's becoming more clear (especially judging by the application examples that you have mentioned) that a well-behaving X application should NOT assume that Z-Axis motion has been mapped to buttons 4 and 5 and react to these buttons as if they were mouse wheel events. I hope I have made myself clear this time. :) Cheerio, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From Asnani.Narendra at geind.ge.com Mon Aug 18 07:32:28 2003 From: Asnani.Narendra at geind.ge.com (Asnani, Narendra (CORP, GEITC)) Date: Mon, 18 Aug 2003 17:02:28 +0530 Subject: [vtkusers] Rendering vtkImageData Message-ID: <62DD37292ED5464CBB142913FC65F8AB05C36329@BANMLVEM01.e2k.ad.ge.com> Hi All, I have a 3D volume in the form of vtkImageData. It will be really a great help if anyone can help me in finding out the appropriate visualization pipeline to view the 3D rendered object. Thanks in advance. Narendra From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 18 07:15:49 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 18 Aug 2003 13:15:49 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <1061204274.28353.14.camel@dutidad> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> <3F409206.6050000@creatis.insa-lyon.fr> <1061200618.28353.5.camel@dutidad> <3F40A6DE.6030609@creatis.insa-lyon.fr> <1061204274.28353.14.camel@dutidad> Message-ID: <3F40B565.6060501@creatis.insa-lyon.fr> Charl P. Botha wrote: > This is what you said: > "I tried some app such as OpenOffice / Mozilla/ Netscape/ Nedit / XEmacs > ... *ALL* are mapping wheel event to button 4 and 5. So please if you > know any other app that doesn't make this assumption, please send me.." > Try something like: Option "ZAxisMapping 6 7" restart X, and run XEmacs, you'll see in the status bar: "button6 not defined" or "button7 not defined" I believe none app is able to know what a wheel event is. They all assume that Button4 and Button5 are map to the wheel. Now if I do: Option "ZAxisMapping 6 7" *AND* xmodmap -e "pointer = 1 2 3 6 7 4 5" then you'll see that OpenOffice/ Mozilla ...is working again. If you run 'xev' you'll see that wheel event raise button4/button5 event. > I hope I have made myself clear this time. So do I. This an extremely interesting debate, but I am having headache as I still don't know if I understand the real problem. If so please apologize, and I'll just give up. I'll keep mouse wheel event as a local change. Thanks for your time, mathieu From phoenixzz at sina.com Mon Aug 18 04:35:43 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Mon, 18 Aug 2003 16:35:43 +0800 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <20030818114932.E3EF01AB24@public.kitware.com> Hi,all user? I used some actors in my Render and I want to set different colors and transparencies to these actors. But I got the error thing. Some Actors in front are disappeared. So I used the vtkDepthSortPolyData, but this class is only used in one Actor. Then I can not set different colors and transparency on my actors. Please help me, and give me some advice. Thanks! Phoenixzz ????????phoenixzz at sina.com ??????????2003-08-18 From c.p.botha at ewi.tudelft.nl Mon Aug 18 08:12:13 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 18 Aug 2003 14:12:13 +0200 Subject: [vtkusers] Re: VTK: Mouse Wheel Event In-Reply-To: <3F40B565.6060501@creatis.insa-lyon.fr> References: <3F3A0626.2080202@creatis.insa-lyon.fr> <1060769835.16532.21.camel@dutidad> <3F3A3036.9070105@creatis.insa-lyon.fr> <1060791543.30285.48.camel@dutidad> <3F409206.6050000@creatis.insa-lyon.fr> <1061200618.28353.5.camel@dutidad> <3F40A6DE.6030609@creatis.insa-lyon.fr> <1061204274.28353.14.camel@dutidad> <3F40B565.6060501@creatis.insa-lyon.fr> Message-ID: <1061208732.28372.57.camel@dutidad> Hi there Mathieu, On Mon, 2003-08-18 at 13:15, Mathieu Malaterre wrote: > I believe none app is able to know what a wheel event is. They all > assume that Button4 and Button5 are map to the wheel. Urgh, I've had a look at the aterm source and the gtk source and it does seem to be the only way to trap wheel motion. I must admit that for a while I was confused as to the direction of the mapping, which delayed my understanding. > > I hope I have made myself clear this time. > > So do I. This an extremely interesting debate, but I am having headache > as I still don't know if I understand the real problem. If so please > apologize, and I'll just give up. > > I'll keep mouse wheel event as a local change. This is what debates are for. You are completely right and now I'm also 100% sure of your solution. Please keep working on your patch: I think it's a good idea if we could integrate this into VTK. An extra interaction possibility is always welcome! :) Thanks for your patience, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From john.biddiscombe at mirada-solutions.com Mon Aug 18 08:58:08 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Mon, 18 Aug 2003 13:58:08 +0100 Subject: [vtkusers] Transparency Problem in Many Actors Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B7754281B35@oxcore01.mirada-solutions.com> It's a tricky problem. When multiple transparent actors are overlapping in world space, they need to be rendered back to front. If the actors are all distinct, then setting the culler to draw back to front with depth sort polydata on each one will help. If the actors all overlap in a complex way, you'll have to either accept a less than perfect result, or combine all the polydata into a single polydata object (vtkAppendPolyData), depth sort that and then render. (but now you'd only have one actor which might be detrimental to yuor picking etc). For a perfect solution we'd need a new mapper (say vtkMultiPolyDataDepthSortMapper) which would depthsort multiple polydata objects and then render them correctly. It'd be tough to get right unless all polydata objects were using the same attributes and render options - and would be quite a bit of work. JB > -----Original Message----- > From: phoenixzz at sina.com [mailto:phoenixzz at sina.com] > Sent: 18 August 2003 09:36 > To: vtkusers at vtk.org > Subject: [vtkusers] Transparency Problem in Many Actors > > > Hi,all user? > > I used some actors in my Render and I want to set > different colors and transparencies to these actors. But I > got the error thing. Some Actors in front are disappeared. > > So I used the vtkDepthSortPolyData, but this > class is only used in one Actor. Then I can not set different > colors and transparency on my actors. > > Please help me, and give me some advice. Thanks! > > > > Phoenixzz > > > > > ????????phoenixzz at sina.com > ??????????2003-08-18 > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 18 09:44:43 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 18 Aug 2003 15:44:43 +0200 Subject: [vtkusers] ComputeDisplayToWorld: Z direction ? Message-ID: <3F40D84B.7050404@creatis.insa-lyon.fr> Hi all, I would like a mouse event that can move my vtkBoxWidget along the Z (back to front) direction. I copy/paste the vtkBoxWidget::OnMouseMove, and change few things: ... // Compute the two points defining the motion vector this->ComputeWorldToDisplay(this->LastPickPosition[0], this->LastPickPosition[1], this->LastPickPosition[2], focalPoint); z = focalPoint[2]; this->ComputeDisplayToWorld(double(this->Interactor->GetLastEventPosition()[0]), double(this->Interactor->GetLastEventPosition()[1]), z, prevPickPoint); this->ComputeDisplayToWorld(double(X), double(Y), (z + .1), pickPoint); //ComputeDisplayToWorld(double(X), double(Y), (z - .1), pickPoint); this->Translate(prevPickPoint, pickPoint); ... But my vtkBoxWidget is disappearing. Does anyone knows why there is a refresh problem along the Z direction ? Or else could someone give me other clue to move a vtkBoxWidget along the Z direction (in fact: back-to-front or front-to-back) In case someone was interested I put a patch here: http://www.creatis.insa-lyon.fr/~malaterre/vtk/box.patch ($ cvs -z3 diff -u Hybrid/vtkBoxWidget.* > box.patch) Thanks a lot, mathieu From aschke at ira.uka.de Mon Aug 18 10:10:10 2003 From: aschke at ira.uka.de (Michael Aschke) Date: Mon, 18 Aug 2003 16:10:10 +0200 Subject: [vtkusers] Problems using VTK on different graphic boards Message-ID: <3F40DE42.8020003@ira.uka.de> Hi all. We use VTK for stereoscopic visualization. The stereoscopic images are displayed using a TFT-Monitor each. In this setup we use a GeForce 4 Ti46000 dual graphics board. In order to make changes to the software it is planned to edit the source code of our project on a third monitor (via a PCI graphics board (GeForce4)). We want the PCI graphics board just for the Windows Desktop and leave the GeForce 4Ti dual board for VTK. The graphic boards are configured, so that we have a single Windows desktop including the areas which are displayed by the monitors. Our Problem is now: If we start the software on the monitors attached to the dual graphics board, the RenderWindow is blank (nothing is visualized), but Interactor-Events work fine. If we start the software on the monitor attached to the PCI graphics board (which is the primary monitor), everything works fine. We suppose this is an OpenGL Problem, because our GUI-Application (Qt) is displayed correctly. Is there any way to tell VTK to run on a specific graphics board if there are more than one available? I hope, someone can help me with this. best regards, Michael From jeff at cdnorthamerica.com Mon Aug 18 10:18:30 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 18 Aug 2003 10:18:30 -0400 Subject: [vtkusers] ComputeDisplayToWorld: Z direction ? In-Reply-To: <3F40D84B.7050404@creatis.insa-lyon.fr> References: <3F40D84B.7050404@creatis.insa-lyon.fr> Message-ID: <3F40E036.8030004@cdnorthamerica.com> did you reset the camera clipping planes after the event? -Jeff Mathieu Malaterre wrote: > Hi all, > > I would like a mouse event that can move my vtkBoxWidget along the > Z (back to front) direction. I copy/paste the > vtkBoxWidget::OnMouseMove, and change few things: > > ... > // Compute the two points defining the motion vector > this->ComputeWorldToDisplay(this->LastPickPosition[0], > this->LastPickPosition[1], this->LastPickPosition[2], focalPoint); > z = focalPoint[2]; > this->ComputeDisplayToWorld(double(this->Interactor->GetLastEventPosition()[0]), > > double(this->Interactor->GetLastEventPosition()[1]), z, prevPickPoint); > > this->ComputeDisplayToWorld(double(X), double(Y), (z + .1), pickPoint); > //ComputeDisplayToWorld(double(X), double(Y), (z - .1), pickPoint); > this->Translate(prevPickPoint, pickPoint); > ... > > But my vtkBoxWidget is disappearing. Does anyone knows why there is a > refresh problem along the Z direction ? > Or else could someone give me other clue to move a vtkBoxWidget along > the Z direction (in fact: back-to-front or front-to-back) > > > In case someone was interested I put a patch here: > http://www.creatis.insa-lyon.fr/~malaterre/vtk/box.patch > > ($ cvs -z3 diff -u Hybrid/vtkBoxWidget.* > box.patch) > > Thanks a lot, > mathieu > > _______________________________________________ > This is the private VTK discussion list. Please keep messages > on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From anne.kerveillant at laposte.net Mon Aug 18 10:24:37 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Mon, 18 Aug 2003 16:24:37 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Interactor_style?= Message-ID: Hi, I would like to create my own interactor style, especially I would like that to change the behavior of the camera when I press the arrow keys. I know that I must override the method OnKeyPress of vtkInteractorStyle but I don't know how to do this. Can someone help me? Anne Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Aug 18 10:13:48 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 18 Aug 2003 16:13:48 +0200 Subject: [vtkusers] ComputeDisplayToWorld: Z direction ? In-Reply-To: <3F40E036.8030004@cdnorthamerica.com> References: <3F40D84B.7050404@creatis.insa-lyon.fr> <3F40E036.8030004@cdnorthamerica.com> Message-ID: <3F40DF1C.80001@creatis.insa-lyon.fr> renderer->ResetCameraClippingRange(); did the trick, thank you Jeff. mathieu Jeff Lee wrote: > did you reset the camera clipping planes after the event? > -Jeff > > Mathieu Malaterre wrote: > >> Hi all, >> >> I would like a mouse event that can move my vtkBoxWidget along the >> Z (back to front) direction. I copy/paste the >> vtkBoxWidget::OnMouseMove, and change few things: >> >> ... >> // Compute the two points defining the motion vector >> this->ComputeWorldToDisplay(this->LastPickPosition[0], >> this->LastPickPosition[1], this->LastPickPosition[2], focalPoint); >> z = focalPoint[2]; >> this->ComputeDisplayToWorld(double(this->Interactor->GetLastEventPosition()[0]), >> >> double(this->Interactor->GetLastEventPosition()[1]), z, prevPickPoint); >> >> this->ComputeDisplayToWorld(double(X), double(Y), (z + .1), pickPoint); >> //ComputeDisplayToWorld(double(X), double(Y), (z - .1), pickPoint); >> this->Translate(prevPickPoint, pickPoint); >> ... >> >> But my vtkBoxWidget is disappearing. Does anyone knows why there is a >> refresh problem along the Z direction ? >> Or else could someone give me other clue to move a vtkBoxWidget along >> the Z direction (in fact: back-to-front or front-to-back) >> >> >> In case someone was interested I put a patch here: >> http://www.creatis.insa-lyon.fr/~malaterre/vtk/box.patch >> >> ($ cvs -z3 diff -u Hybrid/vtkBoxWidget.* > box.patch) >> >> Thanks a lot, >> mathieu >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> > > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From lrvelez at rcm.upr.edu Mon Aug 18 14:53:31 2003 From: lrvelez at rcm.upr.edu (Luis Velez) Date: Mon, 18 Aug 2003 11:53:31 -0700 Subject: [vtkusers] I need some help, sorry to send it again but it is Very important. In-Reply-To: Message-ID: I sent this email last week but got no reply, so I am sending it again just in case there was some problem, sorry for any inconvenience but I really need to get this sorted out ASAP. Thanks. I was loading all the libraries except two. if I load all the libraries I get this from those two: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at MyApp.(MyApp.java:39) the two libraries are: System.loadLibrary("vtkRenderingJava"); System.loadLibrary("vtkHybridJava"); all the libraries I load are: static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); System.loadLibrary("vtkParallelJava"); System.loadLibrary("vtkHybridJava"); } my class path looks something like this: %classpath%;.;C:\Program Files\vtk42\bin\vtk.jar;C:\Program Files\vtk42\bin;C:\j2sdk1.4.1_04\bin; and my path: %path%;C:\j2sdk1.4.1_04\bin;C:\Program Files\vtk42\bin; I did the vtk Binary installation and have not moved any files from where they fell during installation. I am really stuck with this and would appreciate any help Thanks again in advance; Luis -----Original Message----- From: R K Shyamprakash [mailto:ramakrishna.prakash at quest-global.com] Sent: Monday, August 11, 2003 8:39 PM To: 'Luis Velez'; vtkusers at vtk.org Subject: RE: [vtkusers] Newbie needs help. Luis, Have you loaded the vtk libraries?(like System.loadLibrary(".....")) . --Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Luis Velez Sent: Tuesday, August 12, 2003 4:09 AM To: vtkusers at vtk.org Subject: [vtkusers] Newbie needs help. Hello, I have been having been getting this error message: java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) I really have no idea of what does it mean. If anybody can help me I would be most grateful. Thanks, Luis _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: 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: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From jeff at cdnorthamerica.com Mon Aug 18 12:16:36 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 18 Aug 2003 12:16:36 -0400 Subject: [vtkusers] I need some help, sorry to send it again but it is Very important. In-Reply-To: References: Message-ID: <3F40FBE4.9010500@cdnorthamerica.com> does your %PATH% point to the vtk dlls? -Jeff Luis Velez wrote: >I sent this email last week but got no reply, so I am sending it again >just in case there was some problem, sorry for any inconvenience but I >really need to get this sorted out ASAP. Thanks. > >I was loading all the libraries except two. >if I load all the libraries I get this from those two: >Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program >Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:832) > at MyApp.(MyApp.java:39) > >the two libraries are: >System.loadLibrary("vtkRenderingJava"); >System.loadLibrary("vtkHybridJava"); > >all the libraries I load are: > static { > System.loadLibrary("vtkCommonJava"); > System.loadLibrary("vtkFilteringJava"); > System.loadLibrary("vtkIOJava"); > System.loadLibrary("vtkImagingJava"); > System.loadLibrary("vtkGraphicsJava"); > System.loadLibrary("vtkRenderingJava"); > System.loadLibrary("vtkParallelJava"); > System.loadLibrary("vtkHybridJava"); > } > >my class path looks something like this: >%classpath%;.;C:\Program Files\vtk42\bin\vtk.jar;C:\Program >Files\vtk42\bin;C:\j2sdk1.4.1_04\bin; >and my path: >%path%;C:\j2sdk1.4.1_04\bin;C:\Program Files\vtk42\bin; > >I did the vtk Binary installation and have not moved any files from where >they fell during installation. > >I am really stuck with this and would appreciate any help >Thanks again in advance; >Luis > > >-----Original Message----- >From: R K Shyamprakash [mailto:ramakrishna.prakash at quest-global.com] >Sent: Monday, August 11, 2003 8:39 PM >To: 'Luis Velez'; vtkusers at vtk.org >Subject: RE: [vtkusers] Newbie needs help. > > >Luis, > Have you loaded the vtk libraries?(like System.loadLibrary(".....")) . > >--Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Luis Velez >Sent: Tuesday, August 12, 2003 4:09 AM >To: vtkusers at vtk.org >Subject: [vtkusers] Newbie needs help. > > >Hello, > >I have been having been getting this error message: > >java.lang.UnsatisfiedLinkError: VTKInit > at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) > >I really have no idea of what does it mean. If anybody can help me I would >be most grateful. > >Thanks, > >Luis > > From Chris.Hood at noaa.gov Mon Aug 18 12:35:54 2003 From: Chris.Hood at noaa.gov (Chris Hood) Date: Mon, 18 Aug 2003 10:35:54 -0600 Subject: [vtkusers] Help,Problem in VTK with JAVA on Windows XP Message-ID: <5.2.1.1.0.20030818103525.01483c80@cripplecreek.sec.noaa.gov> It can't find two of the DLLs that come with java that it needs. Copying awt.dll and jawt.dll into the directory with the vtk DLLs will fix it. If not, you can try to use dependency walker (http://www.dependencywalker.com) to see what's missing. Chris Hood At 04:04 PM 8/13/2003 +0800, you wrote: >Dear all: > hello,I am a vtk new user,now I use vtk + java .I have installed >jdk1.4 and vtk4.2 on WindowsXP,when I compile the examples code Cone.java, >use javac I can compile the Cone.java,but when I lanuch the Cone it >gives following error(it runs on windows), > >Exception in thread "main" java.lang.UnsatisfiedLinkError:c:\vtk42\b >in\vtkRenderingJava.dll:Can't find dependent libraries > > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.loadLibrary0 > at java.lang.System.loadLibrary > at Cone. > > What could be the problem? Chris Hood Graduate Student Research Assistant University of Colorado, Boulder Space Environment Center - NOAA From lrvelez at rcm.upr.edu Mon Aug 18 15:36:20 2003 From: lrvelez at rcm.upr.edu (Luis Velez) Date: Mon, 18 Aug 2003 12:36:20 -0700 Subject: [vtkusers] I need some help, sorry to send it again but it is Very important. In-Reply-To: <3F40FBE4.9010500@cdnorthamerica.com> Message-ID: yes. All my vtk dlls are inside c:\program files\vtk42\bin Also I am using windows xp, I don't know if that is relevant. -----Original Message----- From: Jeff Lee [mailto:jeff at cdnorthamerica.com] Sent: Monday, August 18, 2003 9:17 AM To: Luis Velez Cc: vtkusers at vtk.org Subject: Re: [vtkusers] I need some help, sorry to send it again but it is Very important. does your %PATH% point to the vtk dlls? -Jeff Luis Velez wrote: >I sent this email last week but got no reply, so I am sending it again >just in case there was some problem, sorry for any inconvenience but I >really need to get this sorted out ASAP. Thanks. > >I was loading all the libraries except two. >if I load all the libraries I get this from those two: >Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program >Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:832) > at MyApp.(MyApp.java:39) > >the two libraries are: >System.loadLibrary("vtkRenderingJava"); >System.loadLibrary("vtkHybridJava"); > >all the libraries I load are: > static { > System.loadLibrary("vtkCommonJava"); > System.loadLibrary("vtkFilteringJava"); > System.loadLibrary("vtkIOJava"); > System.loadLibrary("vtkImagingJava"); > System.loadLibrary("vtkGraphicsJava"); > System.loadLibrary("vtkRenderingJava"); > System.loadLibrary("vtkParallelJava"); > System.loadLibrary("vtkHybridJava"); > } > >my class path looks something like this: >%classpath%;.;C:\Program Files\vtk42\bin\vtk.jar;C:\Program >Files\vtk42\bin;C:\j2sdk1.4.1_04\bin; >and my path: >%path%;C:\j2sdk1.4.1_04\bin;C:\Program Files\vtk42\bin; > >I did the vtk Binary installation and have not moved any files from where >they fell during installation. > >I am really stuck with this and would appreciate any help >Thanks again in advance; >Luis > > >-----Original Message----- >From: R K Shyamprakash [mailto:ramakrishna.prakash at quest-global.com] >Sent: Monday, August 11, 2003 8:39 PM >To: 'Luis Velez'; vtkusers at vtk.org >Subject: RE: [vtkusers] Newbie needs help. > > >Luis, > Have you loaded the vtk libraries?(like System.loadLibrary(".....")) . > >--Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Luis Velez >Sent: Tuesday, August 12, 2003 4:09 AM >To: vtkusers at vtk.org >Subject: [vtkusers] Newbie needs help. > > >Hello, > >I have been having been getting this error message: > >java.lang.UnsatisfiedLinkError: VTKInit > at vtk.vtkThinPlateSplineTransform.VTKInit(Native Method) > >I really have no idea of what does it mean. If anybody can help me I would >be most grateful. > >Thanks, > >Luis > > From Chris.Hood at noaa.gov Mon Aug 18 12:47:41 2003 From: Chris.Hood at noaa.gov (Chris Hood) Date: Mon, 18 Aug 2003 10:47:41 -0600 Subject: [vtkusers] Scalar Bar & Text Dragbility Problem Message-ID: <5.2.1.1.0.20030818104359.00ba5e78@cripplecreek.sec.noaa.gov> I've set a scalarbar to be dragable (actor1.DragableOn();), but it is not dragable. Does anyone know about this? Is it a vtk bug or is there some other setting I'm missing? I've had the same problem with a vtkTextActor. ____________________________________ Chris Hood Graduate Student Research Assistant University of Colorado, Boulder Space Environment Center - NOAA From Chris.Hood at noaa.gov Mon Aug 18 12:55:35 2003 From: Chris.Hood at noaa.gov (Chris Hood) Date: Mon, 18 Aug 2003 10:55:35 -0600 Subject: [vtkusers] VTK File with Multiple Wariables ASCII to Binary Problem Message-ID: <5.2.1.1.0.20030818104953.00b7daa0@cripplecreek.sec.noaa.gov> I've created a VTK file with mutilple variables in ASCII format that my VTK program reads fine, but when I try to convert it to binary format to improve the speed, it only creates a file with the point locations and the first variable. How do I get all the variables in there? Is this a vtk bug that'll be fixed in a future version? I'll put a copy of the function I'm using below. I'm using vtk with java on xp. void BianryConversion(String filename) { vtkStructuredGridReader fileIn = new vtkStructuredGridReader(); fileIn.SetFileName(filename); //vtkStructuredGrid data = fileIn.GetOutput(); vtkStructuredGridWriter fileOut = new vtkStructuredGridWriter(); fileOut.SetFileName(filename); fileOut.SetFileTypeToBinary(); fileOut.SetInput(fileIn.GetOutput()); fileOut.Write(); } ____________________________________ Chris Hood Graduate Student Research Assistant University of Colorado, Boulder Space Environment Center - NOAA From seanru_nigu at yahoo.es Mon Aug 18 12:59:34 2003 From: seanru_nigu at yahoo.es (=?iso-8859-1?q?Sergio=20Andr=E9s?=) Date: Mon, 18 Aug 2003 18:59:34 +0200 (CEST) Subject: [vtkusers] How to use data type "double" with vtkPoints ?? Message-ID: <20030818165935.8149.qmail@web21510.mail.yahoo.com> Hello all! I am using vtkXMLPolyDataReader for reading and creating a new vtkPolyData from a .vtp file that I created by using vtkXMLPolyDataReader. My problem is that I would like to use double as type of point coordinates, but when I read with vtkXMLPolyDataReader I always get a vtkPoints object whose data type is VTK_FLOAT, since float is the data type that is used by default when vtkPoints::New(); is called. I know that if I use vtkPoints method "SetDataTypeToDouble()", the data type become double but the data is removed. How could I read from a .vtp file an specify that the data type is double??? Thanks in advance!! Sergio. ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From lrvelez at rcm.upr.edu Mon Aug 18 15:56:23 2003 From: lrvelez at rcm.upr.edu (Luis Velez) Date: Mon, 18 Aug 2003 12:56:23 -0700 Subject: [vtkusers] Help,Problem in VTK with JAVA on Windows XP In-Reply-To: <5.2.1.1.0.20030818103525.01483c80@cripplecreek.sec.noaa.gov> Message-ID: Thanks a lot. For the record, I moved all the java and vtk dlls to a folder in my path. The java ones were the ones giving the problem. Thanks again all. Luis From simpson at cs.utah.edu Mon Aug 18 13:23:39 2003 From: simpson at cs.utah.edu (Jenny Simpson) Date: Mon, 18 Aug 2003 11:23:39 -0600 (MDT) Subject: [vtkusers] Forcing windows to be on top Message-ID: I'm dealing with the issue of render windows being partially or completely covered when a snapshot is taken using a Vtk writer. I know that off-screen rendering is one way to solve this problem, but I've tried all of the suggested ways of doing that on Linux with hardware rendering and a pure Tcl interface and none of them worked (mangled mesa was a particular headache). I read a message that said it may be possible to use vtkTkRenderWidget to force windows to be on top when a snapshot is taken, but I can't figure out how to get it working. I can get the vtkTkRenderWidget to work, but I can't get it to write out a picture (I always get garbage) and I can't get the 'raise' command to work either. Has anyone done this successfully? Do you have code and/or suggestions? Thanks, Jenny Simpson SCI Institute University of Utah From denis_hudr at sina.com Mon Aug 18 15:17:03 2003 From: denis_hudr at sina.com (Derong) Date: Mon, 18 Aug 2003 12:17:03 -0700 Subject: [vtkusers] Detetcd memory leaks in VC++6.0 Message-ID: Hi, All, I found there are a lot of memory leaks in my applcation even i just run my application without loading any data. Does any one know how to fix it? It's some messy to see these leaks. I guess some memory of factory object wasn't released. I need help to figure out how to fix these leaks. The Information about memory leaks are as following: Detected memory leaks! Dumping objects -> {1127} normal block at 0x01C9A840, 16 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 57 69 64 67 65 74 00 {1126} normal block at 0x01C9A7E8, 15 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 41 63 74 6F 72 00 {1125} normal block at 0x01C9A790, 27 bytes long. Data: 76 74 6B 57 65 69 67 68 74 65 64 54 72 61 6E 73 {1124} normal block at 0x01C9A738, 15 bytes long. Data: 76 74 6B 56 69 64 65 6F 53 6F 75 72 63 65 00 {1123} normal block at 0x01C9A6E0, 14 bytes long. Data: 76 74 6B 56 65 63 74 6F 72 54 65 78 74 00 {1122} normal block at 0x01C9A688, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 49 6D 70 6F 72 74 65 72 00 {1121} normal block at 0x01C9A630, 19 bytes long. Data: 76 74 6B 54 72 61 6E 73 66 6F 72 6D 54 6F 47 72 {1120} normal block at 0x01C9A5D8, 28 bytes long. Data: 76 74 6B 54 68 69 6E 50 6C 61 74 65 53 70 6C 69 {1119} normal block at 0x01C9A580, 16 bytes long. Data: 76 74 6B 53 70 6C 69 6E 65 57 69 64 67 65 74 00 {1118} normal block at 0x01C9A528, 16 bytes long. Data: 76 74 6B 53 70 68 65 72 65 57 69 64 67 65 74 00 {1117} normal block at 0x01C9A4D0, 19 bytes long. Data: 76 74 6B 53 63 61 6C 61 72 42 61 72 57 69 64 67 {1116} normal block at 0x01C9A478, 20 bytes long. Data: 76 74 6B 52 65 6E 64 65 72 4C 61 72 67 65 49 6D {1115} normal block at 0x01C9A420, 15 bytes long. Data: 76 74 6B 52 49 42 50 72 6F 70 65 72 74 79 00 {1114} normal block at 0x01C9A3D8, 12 bytes long. Data: 76 74 6B 52 49 42 4C 69 67 68 74 00 {1113} normal block at 0x01C9A380, 15 bytes long. Data: 76 74 6B 52 49 42 45 78 70 6F 72 74 65 72 00 {1112} normal block at 0x01C9A328, 16 bytes long. Data: 76 74 6B 50 75 73 68 50 69 70 65 6C 69 6E 65 00 {1111} normal block at 0x01C9A2D0, 19 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 52 65 61 64 {1110} normal block at 0x01C9A278, 25 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 46 69 6C 74 {1109} normal block at 0x01C9A210, 29 bytes long. Data: 76 74 6B 50 72 6F 63 72 75 73 74 65 73 41 6C 69 {1108} normal block at 0x01C9A1B8, 26 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 54 6F 49 6D 61 {1107} normal block at 0x01C9A160, 15 bytes long. Data: 76 74 6B 50 6F 69 6E 74 57 69 64 67 65 74 00 {1106} normal block at 0x01C9A108, 15 bytes long. Data: 76 74 6B 50 6C 61 6E 65 57 69 64 67 65 74 00 {1105} normal block at 0x01C9A0B0, 21 bytes long. Data: 76 74 6B 50 43 41 41 6E 61 6C 79 73 69 73 46 69 {1104} normal block at 0x01C9A058, 14 bytes long. Data: 76 74 6B 4C 69 6E 65 57 69 64 67 65 74 00 {1103} normal block at 0x01C9A000, 18 bytes long. Data: 76 74 6B 4C 65 67 65 6E 64 42 6F 78 41 63 74 6F {1102} normal block at 0x01C99FA8, 21 bytes long. Data: 76 74 6B 4C 61 6E 64 6D 61 72 6B 54 72 61 6E 73 {1101} normal block at 0x01C99F40, 34 bytes long. Data: 76 74 6B 49 74 65 72 61 74 69 76 65 43 6C 6F 73 {1100} normal block at 0x01C99EE8, 23 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 50 6C 61 6E 65 {1099} normal block at 0x01C99E90, 20 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 4D 6F 64 65 6C {1098} normal block at 0x01C99E38, 25 bytes long. Data: 76 74 6B 49 6D 61 67 65 54 6F 50 6F 6C 79 44 61 {1097} normal block at 0x01C99DE0, 20 bytes long. Data: 76 74 6B 49 6D 61 67 65 50 6C 61 6E 65 57 69 64 {1096} normal block at 0x01C99D88, 17 bytes long. Data: 76 74 6B 47 72 69 64 54 72 61 6E 73 66 6F 72 6D {1095} normal block at 0x01C99D30, 15 bytes long. Data: 76 74 6B 45 61 72 74 68 53 6F 75 72 63 65 00 {1094} normal block at 0x01C99CD8, 21 bytes long. Data: 76 74 6B 44 65 70 74 68 53 6F 72 74 50 6F 6C 79 {1093} normal block at 0x01C99C80, 19 bytes long. Data: 76 74 6B 43 75 62 65 41 78 65 73 41 63 74 6F 72 {1092} normal block at 0x01C99C28, 18 bytes long. Data: 76 74 6B 43 61 70 74 69 6F 6E 41 63 74 6F 72 32 {1091} normal block at 0x01C99BD0, 13 bytes long. Data: 76 74 6B 42 6F 78 57 69 64 67 65 74 00 {1090} normal block at 0x01C99B78, 14 bytes long. Data: 76 74 6B 41 72 63 50 6C 6F 74 74 65 72 00 {1089} normal block at 0x01C99B20, 15 bytes long. Data: 76 74 6B 33 44 53 49 6D 70 6F 72 74 65 72 00 {1073} normal block at 0x01C99920, 22 bytes long. Data: 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72 {1072} normal block at 0x01C998B8, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1071} normal block at 0x01C99850, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1070} normal block at 0x01C997F8, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1069} normal block at 0x01C997A0, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1068} normal block at 0x01C99748, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1067} normal block at 0x01C996F0, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1066} normal block at 0x01C99698, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72 {1065} normal block at 0x01C99640, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65 {1064} normal block at 0x01C995E8, 13 bytes long. Data: 76 74 6B 58 4D 4C 50 61 72 73 65 72 00 {1063} normal block at 0x01C99580, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1062} normal block at 0x01C99518, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1061} normal block at 0x01C994C0, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1060} normal block at 0x01C99468, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1059} normal block at 0x01C99400, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1058} normal block at 0x01C99398, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1057} normal block at 0x01C99340, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57 {1056} normal block at 0x01C992E8, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52 {1055} normal block at 0x01C99290, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1054} normal block at 0x01C99238, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1053} normal block at 0x01C991E0, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72 {1052} normal block at 0x01C99188, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57 {1051} normal block at 0x01C99130, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52 {1050} normal block at 0x01C990D8, 21 bytes long. Data: 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65 {1049} normal block at 0x01C99080, 20 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69 {1048} normal block at 0x01C99028, 17 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 50 61 72 73 65 72 {1047} normal block at 0x01C98FD0, 18 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 45 6C 65 6D 65 6E {1046} normal block at 0x01C98F78, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 31 36 52 65 61 64 65 {1045} normal block at 0x01C98F20, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1044} normal block at 0x01C98EC8, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1043} normal block at 0x01C98E70, 17 bytes long. Data: 76 74 6B 55 47 46 61 63 65 74 52 65 61 64 65 72 {1042} normal block at 0x01C98E18, 14 bytes long. Data: 76 74 6B 54 49 46 46 57 72 69 74 65 72 00 {1041} normal block at 0x01C98DC0, 14 bytes long. Data: 76 74 6B 54 49 46 46 52 65 61 64 65 72 00 {1040} normal block at 0x01C98D68, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1039} normal block at 0x01C91728, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1038} normal block at 0x01C916D0, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1037} normal block at 0x01C91678, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1036} normal block at 0x01C91620, 13 bytes long. Data: 76 74 6B 53 54 4C 57 72 69 74 65 72 00 {1035} normal block at 0x01C915C8, 13 bytes long. Data: 76 74 6B 53 54 4C 52 65 61 64 65 72 00 {1034} normal block at 0x01C91570, 13 bytes long. Data: 76 74 6B 53 4C 43 52 65 61 64 65 72 00 {1033} normal block at 0x01C91518, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1032} normal block at 0x01C914C0, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1031} normal block at 0x01C91468, 20 bytes long. Data: 76 74 6B 50 6F 73 74 53 63 72 69 70 74 57 72 69 {1030} normal block at 0x01C91410, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 57 72 69 74 65 {1029} normal block at 0x01C913B8, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 52 65 61 64 65 {1028} normal block at 0x01C91360, 18 bytes long. Data: 76 74 6B 50 61 72 74 69 63 6C 65 52 65 61 64 65 {1027} normal block at 0x01C91308, 13 bytes long. Data: 76 74 6B 50 4E 4D 57 72 69 74 65 72 00 {1026} normal block at 0x01C912B0, 13 bytes long. Data: 76 74 6B 50 4E 4D 52 65 61 64 65 72 00 {1025} normal block at 0x01C91258, 13 bytes long. Data: 76 74 6B 50 4E 47 57 72 69 74 65 72 00 {1024} normal block at 0x01C91200, 13 bytes long. Data: 76 74 6B 50 4E 47 52 65 61 64 65 72 00 {1023} normal block at 0x01C911A8, 13 bytes long. Data: 76 74 6B 50 4C 59 57 72 69 74 65 72 00 {1022} normal block at 0x01C91150, 13 bytes long. Data: 76 74 6B 50 4C 59 52 65 61 64 65 72 00 {1021} normal block at 0x01C910F8, 16 bytes long. Data: 76 74 6B 50 4C 4F 54 33 44 52 65 61 64 65 72 00 {1020} normal block at 0x01C910A0, 16 bytes long. Data: 76 74 6B 4F 75 74 70 75 74 53 74 72 65 61 6D 00 {1019} normal block at 0x01C91048, 13 bytes long. Data: 76 74 6B 4F 42 4A 52 65 61 64 65 72 00 {1018} normal block at 0x01C90FF0, 23 bytes long. Data: 76 74 6B 4D 65 64 69 63 61 6C 49 6D 61 67 65 52 {1017} normal block at 0x01C90F98, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 57 72 69 74 65 72 00 {1016} normal block at 0x01C90F40, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 52 65 61 64 65 72 00 {1015} normal block at 0x01C97D20, 4096 bytes long. Data: < , 1 1 O > E0 2C C7 01 80 31 C7 01 D8 31 C7 01 E0 4F C7 01 {1014} normal block at 0x01C97CC8, 14 bytes long. Data: 76 74 6B 4A 50 45 47 57 72 69 74 65 72 00 {1013} normal block at 0x01C97C70, 14 bytes long. Data: 76 74 6B 4A 50 45 47 52 65 61 64 65 72 00 {1012} normal block at 0x01C97C18, 15 bytes long. Data: 76 74 6B 49 6E 70 75 74 53 74 72 65 61 6D 00 {1011} normal block at 0x01C97BC0, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 57 72 69 74 65 72 00 {1010} normal block at 0x01C97B68, 23 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 46 {1009} normal block at 0x01C97B10, 26 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 43 {1008} normal block at 0x01C97AB8, 16 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 00 {1007} normal block at 0x01C97A60, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 00 {1006} normal block at 0x01C94C60, 12 bytes long. Data: 76 74 6B 49 56 57 72 69 74 65 72 00 {1005} normal block at 0x01C97A08, 24 bytes long. Data: 76 74 6B 47 65 6E 65 72 69 63 45 6E 53 69 67 68 {1004} normal block at 0x01C979B0, 17 bytes long. Data: 76 74 6B 47 45 53 69 67 6E 61 52 65 61 64 65 72 {1003} normal block at 0x01C97948, 29 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 4D 61 73 74 65 72 {1002} normal block at 0x01C978F0, 21 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 52 65 {1001} normal block at 0x01C97898, 27 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 42 69 {1000} normal block at 0x01C97840, 18 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 52 65 61 64 65 {999} normal block at 0x01C977E8, 24 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 42 69 6E 61 72 {998} normal block at 0x01C97790, 14 bytes long. Data: 76 74 6B 44 61 74 61 57 72 69 74 65 72 00 {997} normal block at 0x01C97738, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 57 72 69 74 65 72 {996} normal block at 0x01C976E0, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 52 65 61 64 65 72 {995} normal block at 0x01C97688, 14 bytes long. Data: 76 74 6B 44 61 74 61 52 65 61 64 65 72 00 {994} normal block at 0x01C97630, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 57 72 69 {993} normal block at 0x01C975D8, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 52 65 61 {992} normal block at 0x01C97580, 13 bytes long. Data: 76 74 6B 44 45 4D 52 65 61 64 65 72 00 {991} normal block at 0x01C97528, 19 bytes long. Data: 76 74 6B 42 61 73 65 36 34 55 74 69 6C 69 74 69 {990} normal block at 0x01C974D0, 22 bytes long. Data: 76 74 6B 42 61 73 65 36 34 4F 75 74 70 75 74 53 {989} normal block at 0x01C97478, 21 bytes long. Data: 76 74 6B 42 61 73 65 36 34 49 6E 70 75 74 53 74 {988} normal block at 0x01C97420, 13 bytes long. Data: 76 74 6B 42 59 55 57 72 69 74 65 72 00 {987} normal block at 0x01C973C8, 13 bytes long. Data: 76 74 6B 42 59 55 52 65 61 64 65 72 00 {986} normal block at 0x01C97370, 13 bytes long. Data: 76 74 6B 42 4D 50 57 72 69 74 65 72 00 {985} normal block at 0x01C94C08, 13 bytes long. Data: 76 74 6B 42 4D 50 52 65 61 64 65 72 00 {930} normal block at 0x01C96AB0, 31 bytes long. Data: 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69 {929} normal block at 0x01C96A58, 27 bytes long. Data: 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65 {928} normal block at 0x01C96A00, 28 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70 {927} normal block at 0x01C96998, 31 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 54 {926} normal block at 0x01C96930, 29 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 52 {925} normal block at 0x01C968D8, 17 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65 {924} normal block at 0x01C96880, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65 {923} normal block at 0x01C96828, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74 {922} normal block at 0x01C967D0, 26 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {921} normal block at 0x01C96778, 24 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {920} normal block at 0x01C96720, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00 {919} normal block at 0x01C966C8, 21 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61 {918} normal block at 0x01C96670, 20 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63 {917} normal block at 0x01C96618, 16 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00 {916} normal block at 0x01C965C0, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00 {915} normal block at 0x01C96568, 20 bytes long. Data: 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63 {914} normal block at 0x01C96510, 23 bytes long. Data: 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65 {913} normal block at 0x01C964B8, 25 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 54 65 78 74 75 72 65 {912} normal block at 0x01C96460, 23 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {911} normal block at 0x01C96408, 28 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {910} normal block at 0x01C963A0, 35 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {909} normal block at 0x01C96338, 34 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {908} normal block at 0x01C962E0, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74 {907} normal block at 0x01C96288, 19 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 4D 61 70 70 {906} normal block at 0x01C96230, 20 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74 {905} normal block at 0x01C961E8, 10 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 00 {904} normal block at 0x01C96190, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00 {903} The thread 0x16A8 has exited with code 0 (0x0). Regards, Derong From denis_hudr at sina.com Mon Aug 18 15:17:03 2003 From: denis_hudr at sina.com (Derong) Date: Mon, 18 Aug 2003 12:17:03 -0700 Subject: [vtkusers] Detetcd memory leaks in VC++6.0 Message-ID: Hi, All, I found there are a lot of memory leaks in my applcation even i just run my application without loading any data. Does any one know how to fix it? It's some messy to see these leaks. I guess some memory of factory object wasn't released. I need help to figure out how to fix these leaks. The Information about memory leaks are as following: Detected memory leaks! Dumping objects -> {1127} normal block at 0x01C9A840, 16 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 57 69 64 67 65 74 00 {1126} normal block at 0x01C9A7E8, 15 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 41 63 74 6F 72 00 {1125} normal block at 0x01C9A790, 27 bytes long. Data: 76 74 6B 57 65 69 67 68 74 65 64 54 72 61 6E 73 {1124} normal block at 0x01C9A738, 15 bytes long. Data: 76 74 6B 56 69 64 65 6F 53 6F 75 72 63 65 00 {1123} normal block at 0x01C9A6E0, 14 bytes long. Data: 76 74 6B 56 65 63 74 6F 72 54 65 78 74 00 {1122} normal block at 0x01C9A688, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 49 6D 70 6F 72 74 65 72 00 {1121} normal block at 0x01C9A630, 19 bytes long. Data: 76 74 6B 54 72 61 6E 73 66 6F 72 6D 54 6F 47 72 {1120} normal block at 0x01C9A5D8, 28 bytes long. Data: 76 74 6B 54 68 69 6E 50 6C 61 74 65 53 70 6C 69 {1119} normal block at 0x01C9A580, 16 bytes long. Data: 76 74 6B 53 70 6C 69 6E 65 57 69 64 67 65 74 00 {1118} normal block at 0x01C9A528, 16 bytes long. Data: 76 74 6B 53 70 68 65 72 65 57 69 64 67 65 74 00 {1117} normal block at 0x01C9A4D0, 19 bytes long. Data: 76 74 6B 53 63 61 6C 61 72 42 61 72 57 69 64 67 {1116} normal block at 0x01C9A478, 20 bytes long. Data: 76 74 6B 52 65 6E 64 65 72 4C 61 72 67 65 49 6D {1115} normal block at 0x01C9A420, 15 bytes long. Data: 76 74 6B 52 49 42 50 72 6F 70 65 72 74 79 00 {1114} normal block at 0x01C9A3D8, 12 bytes long. Data: 76 74 6B 52 49 42 4C 69 67 68 74 00 {1113} normal block at 0x01C9A380, 15 bytes long. Data: 76 74 6B 52 49 42 45 78 70 6F 72 74 65 72 00 {1112} normal block at 0x01C9A328, 16 bytes long. Data: 76 74 6B 50 75 73 68 50 69 70 65 6C 69 6E 65 00 {1111} normal block at 0x01C9A2D0, 19 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 52 65 61 64 {1110} normal block at 0x01C9A278, 25 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 46 69 6C 74 {1109} normal block at 0x01C9A210, 29 bytes long. Data: 76 74 6B 50 72 6F 63 72 75 73 74 65 73 41 6C 69 {1108} normal block at 0x01C9A1B8, 26 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 54 6F 49 6D 61 {1107} normal block at 0x01C9A160, 15 bytes long. Data: 76 74 6B 50 6F 69 6E 74 57 69 64 67 65 74 00 {1106} normal block at 0x01C9A108, 15 bytes long. Data: 76 74 6B 50 6C 61 6E 65 57 69 64 67 65 74 00 {1105} normal block at 0x01C9A0B0, 21 bytes long. Data: 76 74 6B 50 43 41 41 6E 61 6C 79 73 69 73 46 69 {1104} normal block at 0x01C9A058, 14 bytes long. Data: 76 74 6B 4C 69 6E 65 57 69 64 67 65 74 00 {1103} normal block at 0x01C9A000, 18 bytes long. Data: 76 74 6B 4C 65 67 65 6E 64 42 6F 78 41 63 74 6F {1102} normal block at 0x01C99FA8, 21 bytes long. Data: 76 74 6B 4C 61 6E 64 6D 61 72 6B 54 72 61 6E 73 {1101} normal block at 0x01C99F40, 34 bytes long. Data: 76 74 6B 49 74 65 72 61 74 69 76 65 43 6C 6F 73 {1100} normal block at 0x01C99EE8, 23 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 50 6C 61 6E 65 {1099} normal block at 0x01C99E90, 20 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 4D 6F 64 65 6C {1098} normal block at 0x01C99E38, 25 bytes long. Data: 76 74 6B 49 6D 61 67 65 54 6F 50 6F 6C 79 44 61 {1097} normal block at 0x01C99DE0, 20 bytes long. Data: 76 74 6B 49 6D 61 67 65 50 6C 61 6E 65 57 69 64 {1096} normal block at 0x01C99D88, 17 bytes long. Data: 76 74 6B 47 72 69 64 54 72 61 6E 73 66 6F 72 6D {1095} normal block at 0x01C99D30, 15 bytes long. Data: 76 74 6B 45 61 72 74 68 53 6F 75 72 63 65 00 {1094} normal block at 0x01C99CD8, 21 bytes long. Data: 76 74 6B 44 65 70 74 68 53 6F 72 74 50 6F 6C 79 {1093} normal block at 0x01C99C80, 19 bytes long. Data: 76 74 6B 43 75 62 65 41 78 65 73 41 63 74 6F 72 {1092} normal block at 0x01C99C28, 18 bytes long. Data: 76 74 6B 43 61 70 74 69 6F 6E 41 63 74 6F 72 32 {1091} normal block at 0x01C99BD0, 13 bytes long. Data: 76 74 6B 42 6F 78 57 69 64 67 65 74 00 {1090} normal block at 0x01C99B78, 14 bytes long. Data: 76 74 6B 41 72 63 50 6C 6F 74 74 65 72 00 {1089} normal block at 0x01C99B20, 15 bytes long. Data: 76 74 6B 33 44 53 49 6D 70 6F 72 74 65 72 00 {1073} normal block at 0x01C99920, 22 bytes long. Data: 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72 {1072} normal block at 0x01C998B8, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1071} normal block at 0x01C99850, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1070} normal block at 0x01C997F8, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1069} normal block at 0x01C997A0, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1068} normal block at 0x01C99748, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1067} normal block at 0x01C996F0, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1066} normal block at 0x01C99698, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72 {1065} normal block at 0x01C99640, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65 {1064} normal block at 0x01C995E8, 13 bytes long. Data: 76 74 6B 58 4D 4C 50 61 72 73 65 72 00 {1063} normal block at 0x01C99580, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1062} normal block at 0x01C99518, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1061} normal block at 0x01C994C0, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1060} normal block at 0x01C99468, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1059} normal block at 0x01C99400, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1058} normal block at 0x01C99398, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1057} normal block at 0x01C99340, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57 {1056} normal block at 0x01C992E8, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52 {1055} normal block at 0x01C99290, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1054} normal block at 0x01C99238, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1053} normal block at 0x01C991E0, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72 {1052} normal block at 0x01C99188, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57 {1051} normal block at 0x01C99130, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52 {1050} normal block at 0x01C990D8, 21 bytes long. Data: 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65 {1049} normal block at 0x01C99080, 20 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69 {1048} normal block at 0x01C99028, 17 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 50 61 72 73 65 72 {1047} normal block at 0x01C98FD0, 18 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 45 6C 65 6D 65 6E {1046} normal block at 0x01C98F78, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 31 36 52 65 61 64 65 {1045} normal block at 0x01C98F20, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1044} normal block at 0x01C98EC8, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1043} normal block at 0x01C98E70, 17 bytes long. Data: 76 74 6B 55 47 46 61 63 65 74 52 65 61 64 65 72 {1042} normal block at 0x01C98E18, 14 bytes long. Data: 76 74 6B 54 49 46 46 57 72 69 74 65 72 00 {1041} normal block at 0x01C98DC0, 14 bytes long. Data: 76 74 6B 54 49 46 46 52 65 61 64 65 72 00 {1040} normal block at 0x01C98D68, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1039} normal block at 0x01C91728, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1038} normal block at 0x01C916D0, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1037} normal block at 0x01C91678, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1036} normal block at 0x01C91620, 13 bytes long. Data: 76 74 6B 53 54 4C 57 72 69 74 65 72 00 {1035} normal block at 0x01C915C8, 13 bytes long. Data: 76 74 6B 53 54 4C 52 65 61 64 65 72 00 {1034} normal block at 0x01C91570, 13 bytes long. Data: 76 74 6B 53 4C 43 52 65 61 64 65 72 00 {1033} normal block at 0x01C91518, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1032} normal block at 0x01C914C0, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1031} normal block at 0x01C91468, 20 bytes long. Data: 76 74 6B 50 6F 73 74 53 63 72 69 70 74 57 72 69 {1030} normal block at 0x01C91410, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 57 72 69 74 65 {1029} normal block at 0x01C913B8, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 52 65 61 64 65 {1028} normal block at 0x01C91360, 18 bytes long. Data: 76 74 6B 50 61 72 74 69 63 6C 65 52 65 61 64 65 {1027} normal block at 0x01C91308, 13 bytes long. Data: 76 74 6B 50 4E 4D 57 72 69 74 65 72 00 {1026} normal block at 0x01C912B0, 13 bytes long. Data: 76 74 6B 50 4E 4D 52 65 61 64 65 72 00 {1025} normal block at 0x01C91258, 13 bytes long. Data: 76 74 6B 50 4E 47 57 72 69 74 65 72 00 {1024} normal block at 0x01C91200, 13 bytes long. Data: 76 74 6B 50 4E 47 52 65 61 64 65 72 00 {1023} normal block at 0x01C911A8, 13 bytes long. Data: 76 74 6B 50 4C 59 57 72 69 74 65 72 00 {1022} normal block at 0x01C91150, 13 bytes long. Data: 76 74 6B 50 4C 59 52 65 61 64 65 72 00 {1021} normal block at 0x01C910F8, 16 bytes long. Data: 76 74 6B 50 4C 4F 54 33 44 52 65 61 64 65 72 00 {1020} normal block at 0x01C910A0, 16 bytes long. Data: 76 74 6B 4F 75 74 70 75 74 53 74 72 65 61 6D 00 {1019} normal block at 0x01C91048, 13 bytes long. Data: 76 74 6B 4F 42 4A 52 65 61 64 65 72 00 {1018} normal block at 0x01C90FF0, 23 bytes long. Data: 76 74 6B 4D 65 64 69 63 61 6C 49 6D 61 67 65 52 {1017} normal block at 0x01C90F98, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 57 72 69 74 65 72 00 {1016} normal block at 0x01C90F40, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 52 65 61 64 65 72 00 {1015} normal block at 0x01C97D20, 4096 bytes long. Data: < , 1 1 O > E0 2C C7 01 80 31 C7 01 D8 31 C7 01 E0 4F C7 01 {1014} normal block at 0x01C97CC8, 14 bytes long. Data: 76 74 6B 4A 50 45 47 57 72 69 74 65 72 00 {1013} normal block at 0x01C97C70, 14 bytes long. Data: 76 74 6B 4A 50 45 47 52 65 61 64 65 72 00 {1012} normal block at 0x01C97C18, 15 bytes long. Data: 76 74 6B 49 6E 70 75 74 53 74 72 65 61 6D 00 {1011} normal block at 0x01C97BC0, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 57 72 69 74 65 72 00 {1010} normal block at 0x01C97B68, 23 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 46 {1009} normal block at 0x01C97B10, 26 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 43 {1008} normal block at 0x01C97AB8, 16 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 00 {1007} normal block at 0x01C97A60, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 00 {1006} normal block at 0x01C94C60, 12 bytes long. Data: 76 74 6B 49 56 57 72 69 74 65 72 00 {1005} normal block at 0x01C97A08, 24 bytes long. Data: 76 74 6B 47 65 6E 65 72 69 63 45 6E 53 69 67 68 {1004} normal block at 0x01C979B0, 17 bytes long. Data: 76 74 6B 47 45 53 69 67 6E 61 52 65 61 64 65 72 {1003} normal block at 0x01C97948, 29 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 4D 61 73 74 65 72 {1002} normal block at 0x01C978F0, 21 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 52 65 {1001} normal block at 0x01C97898, 27 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 42 69 {1000} normal block at 0x01C97840, 18 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 52 65 61 64 65 {999} normal block at 0x01C977E8, 24 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 42 69 6E 61 72 {998} normal block at 0x01C97790, 14 bytes long. Data: 76 74 6B 44 61 74 61 57 72 69 74 65 72 00 {997} normal block at 0x01C97738, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 57 72 69 74 65 72 {996} normal block at 0x01C976E0, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 52 65 61 64 65 72 {995} normal block at 0x01C97688, 14 bytes long. Data: 76 74 6B 44 61 74 61 52 65 61 64 65 72 00 {994} normal block at 0x01C97630, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 57 72 69 {993} normal block at 0x01C975D8, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 52 65 61 {992} normal block at 0x01C97580, 13 bytes long. Data: 76 74 6B 44 45 4D 52 65 61 64 65 72 00 {991} normal block at 0x01C97528, 19 bytes long. Data: 76 74 6B 42 61 73 65 36 34 55 74 69 6C 69 74 69 {990} normal block at 0x01C974D0, 22 bytes long. Data: 76 74 6B 42 61 73 65 36 34 4F 75 74 70 75 74 53 {989} normal block at 0x01C97478, 21 bytes long. Data: 76 74 6B 42 61 73 65 36 34 49 6E 70 75 74 53 74 {988} normal block at 0x01C97420, 13 bytes long. Data: 76 74 6B 42 59 55 57 72 69 74 65 72 00 {987} normal block at 0x01C973C8, 13 bytes long. Data: 76 74 6B 42 59 55 52 65 61 64 65 72 00 {986} normal block at 0x01C97370, 13 bytes long. Data: 76 74 6B 42 4D 50 57 72 69 74 65 72 00 {985} normal block at 0x01C94C08, 13 bytes long. Data: 76 74 6B 42 4D 50 52 65 61 64 65 72 00 {930} normal block at 0x01C96AB0, 31 bytes long. Data: 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69 {929} normal block at 0x01C96A58, 27 bytes long. Data: 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65 {928} normal block at 0x01C96A00, 28 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70 {927} normal block at 0x01C96998, 31 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 54 {926} normal block at 0x01C96930, 29 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 52 {925} normal block at 0x01C968D8, 17 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65 {924} normal block at 0x01C96880, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65 {923} normal block at 0x01C96828, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74 {922} normal block at 0x01C967D0, 26 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {921} normal block at 0x01C96778, 24 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {920} normal block at 0x01C96720, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00 {919} normal block at 0x01C966C8, 21 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61 {918} normal block at 0x01C96670, 20 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63 {917} normal block at 0x01C96618, 16 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00 {916} normal block at 0x01C965C0, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00 {915} normal block at 0x01C96568, 20 bytes long. Data: 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63 {914} normal block at 0x01C96510, 23 bytes long. Data: 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65 {913} normal block at 0x01C964B8, 25 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 54 65 78 74 75 72 65 {912} normal block at 0x01C96460, 23 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {911} normal block at 0x01C96408, 28 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {910} normal block at 0x01C963A0, 35 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {909} normal block at 0x01C96338, 34 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {908} normal block at 0x01C962E0, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74 {907} normal block at 0x01C96288, 19 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 4D 61 70 70 {906} normal block at 0x01C96230, 20 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74 {905} normal block at 0x01C961E8, 10 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 00 {904} normal block at 0x01C96190, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00 {903} The thread 0x16A8 has exited with code 0 (0x0). Regards, Derong From denis_hudr at sina.com Mon Aug 18 15:17:03 2003 From: denis_hudr at sina.com (Derong) Date: Mon, 18 Aug 2003 12:17:03 -0700 Subject: [vtkusers] Detetcd memory leaks in VC++6.0 Message-ID: Hi, All, I found there are a lot of memory leaks in my applcation even i just run my application without loading any data. Does any one know how to fix it? It's some messy to see these leaks. I guess some memory of factory object wasn't released. I need help to figure out how to fix these leaks. The Information about memory leaks are as following: Detected memory leaks! Dumping objects -> {1127} normal block at 0x01C9A840, 16 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 57 69 64 67 65 74 00 {1126} normal block at 0x01C9A7E8, 15 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 41 63 74 6F 72 00 {1125} normal block at 0x01C9A790, 27 bytes long. Data: 76 74 6B 57 65 69 67 68 74 65 64 54 72 61 6E 73 {1124} normal block at 0x01C9A738, 15 bytes long. Data: 76 74 6B 56 69 64 65 6F 53 6F 75 72 63 65 00 {1123} normal block at 0x01C9A6E0, 14 bytes long. Data: 76 74 6B 56 65 63 74 6F 72 54 65 78 74 00 {1122} normal block at 0x01C9A688, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 49 6D 70 6F 72 74 65 72 00 {1121} normal block at 0x01C9A630, 19 bytes long. Data: 76 74 6B 54 72 61 6E 73 66 6F 72 6D 54 6F 47 72 {1120} normal block at 0x01C9A5D8, 28 bytes long. Data: 76 74 6B 54 68 69 6E 50 6C 61 74 65 53 70 6C 69 {1119} normal block at 0x01C9A580, 16 bytes long. Data: 76 74 6B 53 70 6C 69 6E 65 57 69 64 67 65 74 00 {1118} normal block at 0x01C9A528, 16 bytes long. Data: 76 74 6B 53 70 68 65 72 65 57 69 64 67 65 74 00 {1117} normal block at 0x01C9A4D0, 19 bytes long. Data: 76 74 6B 53 63 61 6C 61 72 42 61 72 57 69 64 67 {1116} normal block at 0x01C9A478, 20 bytes long. Data: 76 74 6B 52 65 6E 64 65 72 4C 61 72 67 65 49 6D {1115} normal block at 0x01C9A420, 15 bytes long. Data: 76 74 6B 52 49 42 50 72 6F 70 65 72 74 79 00 {1114} normal block at 0x01C9A3D8, 12 bytes long. Data: 76 74 6B 52 49 42 4C 69 67 68 74 00 {1113} normal block at 0x01C9A380, 15 bytes long. Data: 76 74 6B 52 49 42 45 78 70 6F 72 74 65 72 00 {1112} normal block at 0x01C9A328, 16 bytes long. Data: 76 74 6B 50 75 73 68 50 69 70 65 6C 69 6E 65 00 {1111} normal block at 0x01C9A2D0, 19 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 52 65 61 64 {1110} normal block at 0x01C9A278, 25 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 46 69 6C 74 {1109} normal block at 0x01C9A210, 29 bytes long. Data: 76 74 6B 50 72 6F 63 72 75 73 74 65 73 41 6C 69 {1108} normal block at 0x01C9A1B8, 26 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 54 6F 49 6D 61 {1107} normal block at 0x01C9A160, 15 bytes long. Data: 76 74 6B 50 6F 69 6E 74 57 69 64 67 65 74 00 {1106} normal block at 0x01C9A108, 15 bytes long. Data: 76 74 6B 50 6C 61 6E 65 57 69 64 67 65 74 00 {1105} normal block at 0x01C9A0B0, 21 bytes long. Data: 76 74 6B 50 43 41 41 6E 61 6C 79 73 69 73 46 69 {1104} normal block at 0x01C9A058, 14 bytes long. Data: 76 74 6B 4C 69 6E 65 57 69 64 67 65 74 00 {1103} normal block at 0x01C9A000, 18 bytes long. Data: 76 74 6B 4C 65 67 65 6E 64 42 6F 78 41 63 74 6F {1102} normal block at 0x01C99FA8, 21 bytes long. Data: 76 74 6B 4C 61 6E 64 6D 61 72 6B 54 72 61 6E 73 {1101} normal block at 0x01C99F40, 34 bytes long. Data: 76 74 6B 49 74 65 72 61 74 69 76 65 43 6C 6F 73 {1100} normal block at 0x01C99EE8, 23 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 50 6C 61 6E 65 {1099} normal block at 0x01C99E90, 20 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 4D 6F 64 65 6C {1098} normal block at 0x01C99E38, 25 bytes long. Data: 76 74 6B 49 6D 61 67 65 54 6F 50 6F 6C 79 44 61 {1097} normal block at 0x01C99DE0, 20 bytes long. Data: 76 74 6B 49 6D 61 67 65 50 6C 61 6E 65 57 69 64 {1096} normal block at 0x01C99D88, 17 bytes long. Data: 76 74 6B 47 72 69 64 54 72 61 6E 73 66 6F 72 6D {1095} normal block at 0x01C99D30, 15 bytes long. Data: 76 74 6B 45 61 72 74 68 53 6F 75 72 63 65 00 {1094} normal block at 0x01C99CD8, 21 bytes long. Data: 76 74 6B 44 65 70 74 68 53 6F 72 74 50 6F 6C 79 {1093} normal block at 0x01C99C80, 19 bytes long. Data: 76 74 6B 43 75 62 65 41 78 65 73 41 63 74 6F 72 {1092} normal block at 0x01C99C28, 18 bytes long. Data: 76 74 6B 43 61 70 74 69 6F 6E 41 63 74 6F 72 32 {1091} normal block at 0x01C99BD0, 13 bytes long. Data: 76 74 6B 42 6F 78 57 69 64 67 65 74 00 {1090} normal block at 0x01C99B78, 14 bytes long. Data: 76 74 6B 41 72 63 50 6C 6F 74 74 65 72 00 {1089} normal block at 0x01C99B20, 15 bytes long. Data: 76 74 6B 33 44 53 49 6D 70 6F 72 74 65 72 00 {1073} normal block at 0x01C99920, 22 bytes long. Data: 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72 {1072} normal block at 0x01C998B8, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1071} normal block at 0x01C99850, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1070} normal block at 0x01C997F8, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1069} normal block at 0x01C997A0, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1068} normal block at 0x01C99748, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1067} normal block at 0x01C996F0, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1066} normal block at 0x01C99698, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72 {1065} normal block at 0x01C99640, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65 {1064} normal block at 0x01C995E8, 13 bytes long. Data: 76 74 6B 58 4D 4C 50 61 72 73 65 72 00 {1063} normal block at 0x01C99580, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1062} normal block at 0x01C99518, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1061} normal block at 0x01C994C0, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1060} normal block at 0x01C99468, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1059} normal block at 0x01C99400, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1058} normal block at 0x01C99398, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1057} normal block at 0x01C99340, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57 {1056} normal block at 0x01C992E8, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52 {1055} normal block at 0x01C99290, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1054} normal block at 0x01C99238, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1053} normal block at 0x01C991E0, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72 {1052} normal block at 0x01C99188, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57 {1051} normal block at 0x01C99130, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52 {1050} normal block at 0x01C990D8, 21 bytes long. Data: 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65 {1049} normal block at 0x01C99080, 20 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69 {1048} normal block at 0x01C99028, 17 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 50 61 72 73 65 72 {1047} normal block at 0x01C98FD0, 18 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 45 6C 65 6D 65 6E {1046} normal block at 0x01C98F78, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 31 36 52 65 61 64 65 {1045} normal block at 0x01C98F20, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1044} normal block at 0x01C98EC8, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1043} normal block at 0x01C98E70, 17 bytes long. Data: 76 74 6B 55 47 46 61 63 65 74 52 65 61 64 65 72 {1042} normal block at 0x01C98E18, 14 bytes long. Data: 76 74 6B 54 49 46 46 57 72 69 74 65 72 00 {1041} normal block at 0x01C98DC0, 14 bytes long. Data: 76 74 6B 54 49 46 46 52 65 61 64 65 72 00 {1040} normal block at 0x01C98D68, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1039} normal block at 0x01C91728, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1038} normal block at 0x01C916D0, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1037} normal block at 0x01C91678, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1036} normal block at 0x01C91620, 13 bytes long. Data: 76 74 6B 53 54 4C 57 72 69 74 65 72 00 {1035} normal block at 0x01C915C8, 13 bytes long. Data: 76 74 6B 53 54 4C 52 65 61 64 65 72 00 {1034} normal block at 0x01C91570, 13 bytes long. Data: 76 74 6B 53 4C 43 52 65 61 64 65 72 00 {1033} normal block at 0x01C91518, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1032} normal block at 0x01C914C0, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1031} normal block at 0x01C91468, 20 bytes long. Data: 76 74 6B 50 6F 73 74 53 63 72 69 70 74 57 72 69 {1030} normal block at 0x01C91410, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 57 72 69 74 65 {1029} normal block at 0x01C913B8, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 52 65 61 64 65 {1028} normal block at 0x01C91360, 18 bytes long. Data: 76 74 6B 50 61 72 74 69 63 6C 65 52 65 61 64 65 {1027} normal block at 0x01C91308, 13 bytes long. Data: 76 74 6B 50 4E 4D 57 72 69 74 65 72 00 {1026} normal block at 0x01C912B0, 13 bytes long. Data: 76 74 6B 50 4E 4D 52 65 61 64 65 72 00 {1025} normal block at 0x01C91258, 13 bytes long. Data: 76 74 6B 50 4E 47 57 72 69 74 65 72 00 {1024} normal block at 0x01C91200, 13 bytes long. Data: 76 74 6B 50 4E 47 52 65 61 64 65 72 00 {1023} normal block at 0x01C911A8, 13 bytes long. Data: 76 74 6B 50 4C 59 57 72 69 74 65 72 00 {1022} normal block at 0x01C91150, 13 bytes long. Data: 76 74 6B 50 4C 59 52 65 61 64 65 72 00 {1021} normal block at 0x01C910F8, 16 bytes long. Data: 76 74 6B 50 4C 4F 54 33 44 52 65 61 64 65 72 00 {1020} normal block at 0x01C910A0, 16 bytes long. Data: 76 74 6B 4F 75 74 70 75 74 53 74 72 65 61 6D 00 {1019} normal block at 0x01C91048, 13 bytes long. Data: 76 74 6B 4F 42 4A 52 65 61 64 65 72 00 {1018} normal block at 0x01C90FF0, 23 bytes long. Data: 76 74 6B 4D 65 64 69 63 61 6C 49 6D 61 67 65 52 {1017} normal block at 0x01C90F98, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 57 72 69 74 65 72 00 {1016} normal block at 0x01C90F40, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 52 65 61 64 65 72 00 {1015} normal block at 0x01C97D20, 4096 bytes long. Data: < , 1 1 O > E0 2C C7 01 80 31 C7 01 D8 31 C7 01 E0 4F C7 01 {1014} normal block at 0x01C97CC8, 14 bytes long. Data: 76 74 6B 4A 50 45 47 57 72 69 74 65 72 00 {1013} normal block at 0x01C97C70, 14 bytes long. Data: 76 74 6B 4A 50 45 47 52 65 61 64 65 72 00 {1012} normal block at 0x01C97C18, 15 bytes long. Data: 76 74 6B 49 6E 70 75 74 53 74 72 65 61 6D 00 {1011} normal block at 0x01C97BC0, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 57 72 69 74 65 72 00 {1010} normal block at 0x01C97B68, 23 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 46 {1009} normal block at 0x01C97B10, 26 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 43 {1008} normal block at 0x01C97AB8, 16 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 00 {1007} normal block at 0x01C97A60, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 00 {1006} normal block at 0x01C94C60, 12 bytes long. Data: 76 74 6B 49 56 57 72 69 74 65 72 00 {1005} normal block at 0x01C97A08, 24 bytes long. Data: 76 74 6B 47 65 6E 65 72 69 63 45 6E 53 69 67 68 {1004} normal block at 0x01C979B0, 17 bytes long. Data: 76 74 6B 47 45 53 69 67 6E 61 52 65 61 64 65 72 {1003} normal block at 0x01C97948, 29 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 4D 61 73 74 65 72 {1002} normal block at 0x01C978F0, 21 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 52 65 {1001} normal block at 0x01C97898, 27 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 42 69 {1000} normal block at 0x01C97840, 18 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 52 65 61 64 65 {999} normal block at 0x01C977E8, 24 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 42 69 6E 61 72 {998} normal block at 0x01C97790, 14 bytes long. Data: 76 74 6B 44 61 74 61 57 72 69 74 65 72 00 {997} normal block at 0x01C97738, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 57 72 69 74 65 72 {996} normal block at 0x01C976E0, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 52 65 61 64 65 72 {995} normal block at 0x01C97688, 14 bytes long. Data: 76 74 6B 44 61 74 61 52 65 61 64 65 72 00 {994} normal block at 0x01C97630, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 57 72 69 {993} normal block at 0x01C975D8, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 52 65 61 {992} normal block at 0x01C97580, 13 bytes long. Data: 76 74 6B 44 45 4D 52 65 61 64 65 72 00 {991} normal block at 0x01C97528, 19 bytes long. Data: 76 74 6B 42 61 73 65 36 34 55 74 69 6C 69 74 69 {990} normal block at 0x01C974D0, 22 bytes long. Data: 76 74 6B 42 61 73 65 36 34 4F 75 74 70 75 74 53 {989} normal block at 0x01C97478, 21 bytes long. Data: 76 74 6B 42 61 73 65 36 34 49 6E 70 75 74 53 74 {988} normal block at 0x01C97420, 13 bytes long. Data: 76 74 6B 42 59 55 57 72 69 74 65 72 00 {987} normal block at 0x01C973C8, 13 bytes long. Data: 76 74 6B 42 59 55 52 65 61 64 65 72 00 {986} normal block at 0x01C97370, 13 bytes long. Data: 76 74 6B 42 4D 50 57 72 69 74 65 72 00 {985} normal block at 0x01C94C08, 13 bytes long. Data: 76 74 6B 42 4D 50 52 65 61 64 65 72 00 {930} normal block at 0x01C96AB0, 31 bytes long. Data: 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69 {929} normal block at 0x01C96A58, 27 bytes long. Data: 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65 {928} normal block at 0x01C96A00, 28 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70 {927} normal block at 0x01C96998, 31 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 54 {926} normal block at 0x01C96930, 29 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 52 {925} normal block at 0x01C968D8, 17 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65 {924} normal block at 0x01C96880, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65 {923} normal block at 0x01C96828, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74 {922} normal block at 0x01C967D0, 26 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {921} normal block at 0x01C96778, 24 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {920} normal block at 0x01C96720, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00 {919} normal block at 0x01C966C8, 21 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61 {918} normal block at 0x01C96670, 20 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63 {917} normal block at 0x01C96618, 16 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00 {916} normal block at 0x01C965C0, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00 {915} normal block at 0x01C96568, 20 bytes long. Data: 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63 {914} normal block at 0x01C96510, 23 bytes long. Data: 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65 {913} normal block at 0x01C964B8, 25 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 54 65 78 74 75 72 65 {912} normal block at 0x01C96460, 23 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {911} normal block at 0x01C96408, 28 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {910} normal block at 0x01C963A0, 35 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {909} normal block at 0x01C96338, 34 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {908} normal block at 0x01C962E0, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74 {907} normal block at 0x01C96288, 19 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 4D 61 70 70 {906} normal block at 0x01C96230, 20 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74 {905} normal block at 0x01C961E8, 10 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 00 {904} normal block at 0x01C96190, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00 {903} The thread 0x16A8 has exited with code 0 (0x0). Regards, Derong From denis_hudr at sina.com Mon Aug 18 15:17:03 2003 From: denis_hudr at sina.com (Derong) Date: Mon, 18 Aug 2003 12:17:03 -0700 Subject: [vtkusers] Detetcd memory leaks in VC++6.0 Message-ID: Hi, All, I found there are a lot of memory leaks in my applcation even i just run my application without loading any data. Does any one know how to fix it? It's some messy to see these leaks. I guess some memory of factory object wasn't released. I need help to figure out how to fix these leaks. The Information about memory leaks are as following: Detected memory leaks! Dumping objects -> {1127} normal block at 0x01C9A840, 16 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 57 69 64 67 65 74 00 {1126} normal block at 0x01C9A7E8, 15 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 41 63 74 6F 72 00 {1125} normal block at 0x01C9A790, 27 bytes long. Data: 76 74 6B 57 65 69 67 68 74 65 64 54 72 61 6E 73 {1124} normal block at 0x01C9A738, 15 bytes long. Data: 76 74 6B 56 69 64 65 6F 53 6F 75 72 63 65 00 {1123} normal block at 0x01C9A6E0, 14 bytes long. Data: 76 74 6B 56 65 63 74 6F 72 54 65 78 74 00 {1122} normal block at 0x01C9A688, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 49 6D 70 6F 72 74 65 72 00 {1121} normal block at 0x01C9A630, 19 bytes long. Data: 76 74 6B 54 72 61 6E 73 66 6F 72 6D 54 6F 47 72 {1120} normal block at 0x01C9A5D8, 28 bytes long. Data: 76 74 6B 54 68 69 6E 50 6C 61 74 65 53 70 6C 69 {1119} normal block at 0x01C9A580, 16 bytes long. Data: 76 74 6B 53 70 6C 69 6E 65 57 69 64 67 65 74 00 {1118} normal block at 0x01C9A528, 16 bytes long. Data: 76 74 6B 53 70 68 65 72 65 57 69 64 67 65 74 00 {1117} normal block at 0x01C9A4D0, 19 bytes long. Data: 76 74 6B 53 63 61 6C 61 72 42 61 72 57 69 64 67 {1116} normal block at 0x01C9A478, 20 bytes long. Data: 76 74 6B 52 65 6E 64 65 72 4C 61 72 67 65 49 6D {1115} normal block at 0x01C9A420, 15 bytes long. Data: 76 74 6B 52 49 42 50 72 6F 70 65 72 74 79 00 {1114} normal block at 0x01C9A3D8, 12 bytes long. Data: 76 74 6B 52 49 42 4C 69 67 68 74 00 {1113} normal block at 0x01C9A380, 15 bytes long. Data: 76 74 6B 52 49 42 45 78 70 6F 72 74 65 72 00 {1112} normal block at 0x01C9A328, 16 bytes long. Data: 76 74 6B 50 75 73 68 50 69 70 65 6C 69 6E 65 00 {1111} normal block at 0x01C9A2D0, 19 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 52 65 61 64 {1110} normal block at 0x01C9A278, 25 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 46 69 6C 74 {1109} normal block at 0x01C9A210, 29 bytes long. Data: 76 74 6B 50 72 6F 63 72 75 73 74 65 73 41 6C 69 {1108} normal block at 0x01C9A1B8, 26 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 54 6F 49 6D 61 {1107} normal block at 0x01C9A160, 15 bytes long. Data: 76 74 6B 50 6F 69 6E 74 57 69 64 67 65 74 00 {1106} normal block at 0x01C9A108, 15 bytes long. Data: 76 74 6B 50 6C 61 6E 65 57 69 64 67 65 74 00 {1105} normal block at 0x01C9A0B0, 21 bytes long. Data: 76 74 6B 50 43 41 41 6E 61 6C 79 73 69 73 46 69 {1104} normal block at 0x01C9A058, 14 bytes long. Data: 76 74 6B 4C 69 6E 65 57 69 64 67 65 74 00 {1103} normal block at 0x01C9A000, 18 bytes long. Data: 76 74 6B 4C 65 67 65 6E 64 42 6F 78 41 63 74 6F {1102} normal block at 0x01C99FA8, 21 bytes long. Data: 76 74 6B 4C 61 6E 64 6D 61 72 6B 54 72 61 6E 73 {1101} normal block at 0x01C99F40, 34 bytes long. Data: 76 74 6B 49 74 65 72 61 74 69 76 65 43 6C 6F 73 {1100} normal block at 0x01C99EE8, 23 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 50 6C 61 6E 65 {1099} normal block at 0x01C99E90, 20 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 4D 6F 64 65 6C {1098} normal block at 0x01C99E38, 25 bytes long. Data: 76 74 6B 49 6D 61 67 65 54 6F 50 6F 6C 79 44 61 {1097} normal block at 0x01C99DE0, 20 bytes long. Data: 76 74 6B 49 6D 61 67 65 50 6C 61 6E 65 57 69 64 {1096} normal block at 0x01C99D88, 17 bytes long. Data: 76 74 6B 47 72 69 64 54 72 61 6E 73 66 6F 72 6D {1095} normal block at 0x01C99D30, 15 bytes long. Data: 76 74 6B 45 61 72 74 68 53 6F 75 72 63 65 00 {1094} normal block at 0x01C99CD8, 21 bytes long. Data: 76 74 6B 44 65 70 74 68 53 6F 72 74 50 6F 6C 79 {1093} normal block at 0x01C99C80, 19 bytes long. Data: 76 74 6B 43 75 62 65 41 78 65 73 41 63 74 6F 72 {1092} normal block at 0x01C99C28, 18 bytes long. Data: 76 74 6B 43 61 70 74 69 6F 6E 41 63 74 6F 72 32 {1091} normal block at 0x01C99BD0, 13 bytes long. Data: 76 74 6B 42 6F 78 57 69 64 67 65 74 00 {1090} normal block at 0x01C99B78, 14 bytes long. Data: 76 74 6B 41 72 63 50 6C 6F 74 74 65 72 00 {1089} normal block at 0x01C99B20, 15 bytes long. Data: 76 74 6B 33 44 53 49 6D 70 6F 72 74 65 72 00 {1073} normal block at 0x01C99920, 22 bytes long. Data: 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72 {1072} normal block at 0x01C998B8, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1071} normal block at 0x01C99850, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1070} normal block at 0x01C997F8, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1069} normal block at 0x01C997A0, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1068} normal block at 0x01C99748, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1067} normal block at 0x01C996F0, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1066} normal block at 0x01C99698, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72 {1065} normal block at 0x01C99640, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65 {1064} normal block at 0x01C995E8, 13 bytes long. Data: 76 74 6B 58 4D 4C 50 61 72 73 65 72 00 {1063} normal block at 0x01C99580, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1062} normal block at 0x01C99518, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1061} normal block at 0x01C994C0, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1060} normal block at 0x01C99468, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1059} normal block at 0x01C99400, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1058} normal block at 0x01C99398, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1057} normal block at 0x01C99340, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57 {1056} normal block at 0x01C992E8, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52 {1055} normal block at 0x01C99290, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1054} normal block at 0x01C99238, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1053} normal block at 0x01C991E0, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72 {1052} normal block at 0x01C99188, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57 {1051} normal block at 0x01C99130, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52 {1050} normal block at 0x01C990D8, 21 bytes long. Data: 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65 {1049} normal block at 0x01C99080, 20 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69 {1048} normal block at 0x01C99028, 17 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 50 61 72 73 65 72 {1047} normal block at 0x01C98FD0, 18 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 45 6C 65 6D 65 6E {1046} normal block at 0x01C98F78, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 31 36 52 65 61 64 65 {1045} normal block at 0x01C98F20, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1044} normal block at 0x01C98EC8, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1043} normal block at 0x01C98E70, 17 bytes long. Data: 76 74 6B 55 47 46 61 63 65 74 52 65 61 64 65 72 {1042} normal block at 0x01C98E18, 14 bytes long. Data: 76 74 6B 54 49 46 46 57 72 69 74 65 72 00 {1041} normal block at 0x01C98DC0, 14 bytes long. Data: 76 74 6B 54 49 46 46 52 65 61 64 65 72 00 {1040} normal block at 0x01C98D68, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1039} normal block at 0x01C91728, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1038} normal block at 0x01C916D0, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1037} normal block at 0x01C91678, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1036} normal block at 0x01C91620, 13 bytes long. Data: 76 74 6B 53 54 4C 57 72 69 74 65 72 00 {1035} normal block at 0x01C915C8, 13 bytes long. Data: 76 74 6B 53 54 4C 52 65 61 64 65 72 00 {1034} normal block at 0x01C91570, 13 bytes long. Data: 76 74 6B 53 4C 43 52 65 61 64 65 72 00 {1033} normal block at 0x01C91518, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1032} normal block at 0x01C914C0, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1031} normal block at 0x01C91468, 20 bytes long. Data: 76 74 6B 50 6F 73 74 53 63 72 69 70 74 57 72 69 {1030} normal block at 0x01C91410, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 57 72 69 74 65 {1029} normal block at 0x01C913B8, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 52 65 61 64 65 {1028} normal block at 0x01C91360, 18 bytes long. Data: 76 74 6B 50 61 72 74 69 63 6C 65 52 65 61 64 65 {1027} normal block at 0x01C91308, 13 bytes long. Data: 76 74 6B 50 4E 4D 57 72 69 74 65 72 00 {1026} normal block at 0x01C912B0, 13 bytes long. Data: 76 74 6B 50 4E 4D 52 65 61 64 65 72 00 {1025} normal block at 0x01C91258, 13 bytes long. Data: 76 74 6B 50 4E 47 57 72 69 74 65 72 00 {1024} normal block at 0x01C91200, 13 bytes long. Data: 76 74 6B 50 4E 47 52 65 61 64 65 72 00 {1023} normal block at 0x01C911A8, 13 bytes long. Data: 76 74 6B 50 4C 59 57 72 69 74 65 72 00 {1022} normal block at 0x01C91150, 13 bytes long. Data: 76 74 6B 50 4C 59 52 65 61 64 65 72 00 {1021} normal block at 0x01C910F8, 16 bytes long. Data: 76 74 6B 50 4C 4F 54 33 44 52 65 61 64 65 72 00 {1020} normal block at 0x01C910A0, 16 bytes long. Data: 76 74 6B 4F 75 74 70 75 74 53 74 72 65 61 6D 00 {1019} normal block at 0x01C91048, 13 bytes long. Data: 76 74 6B 4F 42 4A 52 65 61 64 65 72 00 {1018} normal block at 0x01C90FF0, 23 bytes long. Data: 76 74 6B 4D 65 64 69 63 61 6C 49 6D 61 67 65 52 {1017} normal block at 0x01C90F98, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 57 72 69 74 65 72 00 {1016} normal block at 0x01C90F40, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 52 65 61 64 65 72 00 {1015} normal block at 0x01C97D20, 4096 bytes long. Data: < , 1 1 O > E0 2C C7 01 80 31 C7 01 D8 31 C7 01 E0 4F C7 01 {1014} normal block at 0x01C97CC8, 14 bytes long. Data: 76 74 6B 4A 50 45 47 57 72 69 74 65 72 00 {1013} normal block at 0x01C97C70, 14 bytes long. Data: 76 74 6B 4A 50 45 47 52 65 61 64 65 72 00 {1012} normal block at 0x01C97C18, 15 bytes long. Data: 76 74 6B 49 6E 70 75 74 53 74 72 65 61 6D 00 {1011} normal block at 0x01C97BC0, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 57 72 69 74 65 72 00 {1010} normal block at 0x01C97B68, 23 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 46 {1009} normal block at 0x01C97B10, 26 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 43 {1008} normal block at 0x01C97AB8, 16 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 00 {1007} normal block at 0x01C97A60, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 00 {1006} normal block at 0x01C94C60, 12 bytes long. Data: 76 74 6B 49 56 57 72 69 74 65 72 00 {1005} normal block at 0x01C97A08, 24 bytes long. Data: 76 74 6B 47 65 6E 65 72 69 63 45 6E 53 69 67 68 {1004} normal block at 0x01C979B0, 17 bytes long. Data: 76 74 6B 47 45 53 69 67 6E 61 52 65 61 64 65 72 {1003} normal block at 0x01C97948, 29 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 4D 61 73 74 65 72 {1002} normal block at 0x01C978F0, 21 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 52 65 {1001} normal block at 0x01C97898, 27 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 42 69 {1000} normal block at 0x01C97840, 18 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 52 65 61 64 65 {999} normal block at 0x01C977E8, 24 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 42 69 6E 61 72 {998} normal block at 0x01C97790, 14 bytes long. Data: 76 74 6B 44 61 74 61 57 72 69 74 65 72 00 {997} normal block at 0x01C97738, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 57 72 69 74 65 72 {996} normal block at 0x01C976E0, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 52 65 61 64 65 72 {995} normal block at 0x01C97688, 14 bytes long. Data: 76 74 6B 44 61 74 61 52 65 61 64 65 72 00 {994} normal block at 0x01C97630, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 57 72 69 {993} normal block at 0x01C975D8, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 52 65 61 {992} normal block at 0x01C97580, 13 bytes long. Data: 76 74 6B 44 45 4D 52 65 61 64 65 72 00 {991} normal block at 0x01C97528, 19 bytes long. Data: 76 74 6B 42 61 73 65 36 34 55 74 69 6C 69 74 69 {990} normal block at 0x01C974D0, 22 bytes long. Data: 76 74 6B 42 61 73 65 36 34 4F 75 74 70 75 74 53 {989} normal block at 0x01C97478, 21 bytes long. Data: 76 74 6B 42 61 73 65 36 34 49 6E 70 75 74 53 74 {988} normal block at 0x01C97420, 13 bytes long. Data: 76 74 6B 42 59 55 57 72 69 74 65 72 00 {987} normal block at 0x01C973C8, 13 bytes long. Data: 76 74 6B 42 59 55 52 65 61 64 65 72 00 {986} normal block at 0x01C97370, 13 bytes long. Data: 76 74 6B 42 4D 50 57 72 69 74 65 72 00 {985} normal block at 0x01C94C08, 13 bytes long. Data: 76 74 6B 42 4D 50 52 65 61 64 65 72 00 {930} normal block at 0x01C96AB0, 31 bytes long. Data: 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69 {929} normal block at 0x01C96A58, 27 bytes long. Data: 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65 {928} normal block at 0x01C96A00, 28 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70 {927} normal block at 0x01C96998, 31 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 54 {926} normal block at 0x01C96930, 29 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 52 {925} normal block at 0x01C968D8, 17 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65 {924} normal block at 0x01C96880, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65 {923} normal block at 0x01C96828, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74 {922} normal block at 0x01C967D0, 26 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {921} normal block at 0x01C96778, 24 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {920} normal block at 0x01C96720, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00 {919} normal block at 0x01C966C8, 21 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61 {918} normal block at 0x01C96670, 20 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63 {917} normal block at 0x01C96618, 16 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00 {916} normal block at 0x01C965C0, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00 {915} normal block at 0x01C96568, 20 bytes long. Data: 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63 {914} normal block at 0x01C96510, 23 bytes long. Data: 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65 {913} normal block at 0x01C964B8, 25 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 54 65 78 74 75 72 65 {912} normal block at 0x01C96460, 23 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {911} normal block at 0x01C96408, 28 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {910} normal block at 0x01C963A0, 35 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {909} normal block at 0x01C96338, 34 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {908} normal block at 0x01C962E0, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74 {907} normal block at 0x01C96288, 19 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 4D 61 70 70 {906} normal block at 0x01C96230, 20 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74 {905} normal block at 0x01C961E8, 10 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 00 {904} normal block at 0x01C96190, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00 {903} The thread 0x16A8 has exited with code 0 (0x0). Regards, Derong From denis_hudr at sina.com Mon Aug 18 15:17:03 2003 From: denis_hudr at sina.com (Derong) Date: Mon, 18 Aug 2003 12:17:03 -0700 Subject: [vtkusers] Detetcd memory leaks in VC++6.0 Message-ID: Hi, All, I found there are a lot of memory leaks in my applcation even i just run my application without loading any data. Does any one know how to fix it? It's some messy to see these leaks. I guess some memory of factory object wasn't released. I need help to figure out how to fix these leaks. The Information about memory leaks are as following: Detected memory leaks! Dumping objects -> {1127} normal block at 0x01C9A840, 16 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 57 69 64 67 65 74 00 {1126} normal block at 0x01C9A7E8, 15 bytes long. Data: 76 74 6B 58 59 50 6C 6F 74 41 63 74 6F 72 00 {1125} normal block at 0x01C9A790, 27 bytes long. Data: 76 74 6B 57 65 69 67 68 74 65 64 54 72 61 6E 73 {1124} normal block at 0x01C9A738, 15 bytes long. Data: 76 74 6B 56 69 64 65 6F 53 6F 75 72 63 65 00 {1123} normal block at 0x01C9A6E0, 14 bytes long. Data: 76 74 6B 56 65 63 74 6F 72 54 65 78 74 00 {1122} normal block at 0x01C9A688, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 49 6D 70 6F 72 74 65 72 00 {1121} normal block at 0x01C9A630, 19 bytes long. Data: 76 74 6B 54 72 61 6E 73 66 6F 72 6D 54 6F 47 72 {1120} normal block at 0x01C9A5D8, 28 bytes long. Data: 76 74 6B 54 68 69 6E 50 6C 61 74 65 53 70 6C 69 {1119} normal block at 0x01C9A580, 16 bytes long. Data: 76 74 6B 53 70 6C 69 6E 65 57 69 64 67 65 74 00 {1118} normal block at 0x01C9A528, 16 bytes long. Data: 76 74 6B 53 70 68 65 72 65 57 69 64 67 65 74 00 {1117} normal block at 0x01C9A4D0, 19 bytes long. Data: 76 74 6B 53 63 61 6C 61 72 42 61 72 57 69 64 67 {1116} normal block at 0x01C9A478, 20 bytes long. Data: 76 74 6B 52 65 6E 64 65 72 4C 61 72 67 65 49 6D {1115} normal block at 0x01C9A420, 15 bytes long. Data: 76 74 6B 52 49 42 50 72 6F 70 65 72 74 79 00 {1114} normal block at 0x01C9A3D8, 12 bytes long. Data: 76 74 6B 52 49 42 4C 69 67 68 74 00 {1113} normal block at 0x01C9A380, 15 bytes long. Data: 76 74 6B 52 49 42 45 78 70 6F 72 74 65 72 00 {1112} normal block at 0x01C9A328, 16 bytes long. Data: 76 74 6B 50 75 73 68 50 69 70 65 6C 69 6E 65 00 {1111} normal block at 0x01C9A2D0, 19 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 52 65 61 64 {1110} normal block at 0x01C9A278, 25 bytes long. Data: 76 74 6B 50 75 73 68 49 6D 61 67 65 46 69 6C 74 {1109} normal block at 0x01C9A210, 29 bytes long. Data: 76 74 6B 50 72 6F 63 72 75 73 74 65 73 41 6C 69 {1108} normal block at 0x01C9A1B8, 26 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 54 6F 49 6D 61 {1107} normal block at 0x01C9A160, 15 bytes long. Data: 76 74 6B 50 6F 69 6E 74 57 69 64 67 65 74 00 {1106} normal block at 0x01C9A108, 15 bytes long. Data: 76 74 6B 50 6C 61 6E 65 57 69 64 67 65 74 00 {1105} normal block at 0x01C9A0B0, 21 bytes long. Data: 76 74 6B 50 43 41 41 6E 61 6C 79 73 69 73 46 69 {1104} normal block at 0x01C9A058, 14 bytes long. Data: 76 74 6B 4C 69 6E 65 57 69 64 67 65 74 00 {1103} normal block at 0x01C9A000, 18 bytes long. Data: 76 74 6B 4C 65 67 65 6E 64 42 6F 78 41 63 74 6F {1102} normal block at 0x01C99FA8, 21 bytes long. Data: 76 74 6B 4C 61 6E 64 6D 61 72 6B 54 72 61 6E 73 {1101} normal block at 0x01C99F40, 34 bytes long. Data: 76 74 6B 49 74 65 72 61 74 69 76 65 43 6C 6F 73 {1100} normal block at 0x01C99EE8, 23 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 50 6C 61 6E 65 {1099} normal block at 0x01C99E90, 20 bytes long. Data: 76 74 6B 49 6D 70 6C 69 63 69 74 4D 6F 64 65 6C {1098} normal block at 0x01C99E38, 25 bytes long. Data: 76 74 6B 49 6D 61 67 65 54 6F 50 6F 6C 79 44 61 {1097} normal block at 0x01C99DE0, 20 bytes long. Data: 76 74 6B 49 6D 61 67 65 50 6C 61 6E 65 57 69 64 {1096} normal block at 0x01C99D88, 17 bytes long. Data: 76 74 6B 47 72 69 64 54 72 61 6E 73 66 6F 72 6D {1095} normal block at 0x01C99D30, 15 bytes long. Data: 76 74 6B 45 61 72 74 68 53 6F 75 72 63 65 00 {1094} normal block at 0x01C99CD8, 21 bytes long. Data: 76 74 6B 44 65 70 74 68 53 6F 72 74 50 6F 6C 79 {1093} normal block at 0x01C99C80, 19 bytes long. Data: 76 74 6B 43 75 62 65 41 78 65 73 41 63 74 6F 72 {1092} normal block at 0x01C99C28, 18 bytes long. Data: 76 74 6B 43 61 70 74 69 6F 6E 41 63 74 6F 72 32 {1091} normal block at 0x01C99BD0, 13 bytes long. Data: 76 74 6B 42 6F 78 57 69 64 67 65 74 00 {1090} normal block at 0x01C99B78, 14 bytes long. Data: 76 74 6B 41 72 63 50 6C 6F 74 74 65 72 00 {1089} normal block at 0x01C99B20, 15 bytes long. Data: 76 74 6B 33 44 53 49 6D 70 6F 72 74 65 72 00 {1073} normal block at 0x01C99920, 22 bytes long. Data: 76 74 6B 5A 4C 69 62 44 61 74 61 43 6F 6D 70 72 {1072} normal block at 0x01C998B8, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1071} normal block at 0x01C99850, 29 bytes long. Data: 76 74 6B 58 4D 4C 55 6E 73 74 72 75 63 74 75 72 {1070} normal block at 0x01C997F8, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1069} normal block at 0x01C997A0, 27 bytes long. Data: 76 74 6B 58 4D 4C 53 74 72 75 63 74 75 72 65 64 {1068} normal block at 0x01C99748, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1067} normal block at 0x01C996F0, 28 bytes long. Data: 76 74 6B 58 4D 4C 52 65 63 74 69 6C 69 6E 65 61 {1066} normal block at 0x01C99698, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 57 72 {1065} normal block at 0x01C99640, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 6F 6C 79 44 61 74 61 52 65 {1064} normal block at 0x01C995E8, 13 bytes long. Data: 76 74 6B 58 4D 4C 50 61 72 73 65 72 00 {1063} normal block at 0x01C99580, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1062} normal block at 0x01C99518, 30 bytes long. Data: 76 74 6B 58 4D 4C 50 55 6E 73 74 72 75 63 74 75 {1061} normal block at 0x01C994C0, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1060} normal block at 0x01C99468, 28 bytes long. Data: 76 74 6B 58 4D 4C 50 53 74 72 75 63 74 75 72 65 {1059} normal block at 0x01C99400, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1058} normal block at 0x01C99398, 29 bytes long. Data: 76 74 6B 58 4D 4C 50 52 65 63 74 69 6C 69 6E 65 {1057} normal block at 0x01C99340, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 57 {1056} normal block at 0x01C992E8, 22 bytes long. Data: 76 74 6B 58 4D 4C 50 50 6F 6C 79 44 61 74 61 52 {1055} normal block at 0x01C99290, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1054} normal block at 0x01C99238, 23 bytes long. Data: 76 74 6B 58 4D 4C 50 49 6D 61 67 65 44 61 74 61 {1053} normal block at 0x01C991E0, 21 bytes long. Data: 76 74 6B 58 4D 4C 50 44 61 74 61 53 65 74 57 72 {1052} normal block at 0x01C99188, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 57 {1051} normal block at 0x01C99130, 22 bytes long. Data: 76 74 6B 58 4D 4C 49 6D 61 67 65 44 61 74 61 52 {1050} normal block at 0x01C990D8, 21 bytes long. Data: 76 74 6B 58 4D 4C 46 69 6C 65 52 65 61 64 54 65 {1049} normal block at 0x01C99080, 20 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 53 65 74 57 72 69 {1048} normal block at 0x01C99028, 17 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 50 61 72 73 65 72 {1047} normal block at 0x01C98FD0, 18 bytes long. Data: 76 74 6B 58 4D 4C 44 61 74 61 45 6C 65 6D 65 6E {1046} normal block at 0x01C98F78, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 31 36 52 65 61 64 65 {1045} normal block at 0x01C98F20, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1044} normal block at 0x01C98EC8, 26 bytes long. Data: 76 74 6B 55 6E 73 74 72 75 63 74 75 72 65 64 47 {1043} normal block at 0x01C98E70, 17 bytes long. Data: 76 74 6B 55 47 46 61 63 65 74 52 65 61 64 65 72 {1042} normal block at 0x01C98E18, 14 bytes long. Data: 76 74 6B 54 49 46 46 57 72 69 74 65 72 00 {1041} normal block at 0x01C98DC0, 14 bytes long. Data: 76 74 6B 54 49 46 46 52 65 61 64 65 72 00 {1040} normal block at 0x01C98D68, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1039} normal block at 0x01C91728, 26 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 50 6F 69 {1038} normal block at 0x01C916D0, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1037} normal block at 0x01C91678, 24 bytes long. Data: 76 74 6B 53 74 72 75 63 74 75 72 65 64 47 72 69 {1036} normal block at 0x01C91620, 13 bytes long. Data: 76 74 6B 53 54 4C 57 72 69 74 65 72 00 {1035} normal block at 0x01C915C8, 13 bytes long. Data: 76 74 6B 53 54 4C 52 65 61 64 65 72 00 {1034} normal block at 0x01C91570, 13 bytes long. Data: 76 74 6B 53 4C 43 52 65 61 64 65 72 00 {1033} normal block at 0x01C91518, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1032} normal block at 0x01C914C0, 25 bytes long. Data: 76 74 6B 52 65 63 74 69 6C 69 6E 65 61 72 47 72 {1031} normal block at 0x01C91468, 20 bytes long. Data: 76 74 6B 50 6F 73 74 53 63 72 69 70 74 57 72 69 {1030} normal block at 0x01C91410, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 57 72 69 74 65 {1029} normal block at 0x01C913B8, 18 bytes long. Data: 76 74 6B 50 6F 6C 79 44 61 74 61 52 65 61 64 65 {1028} normal block at 0x01C91360, 18 bytes long. Data: 76 74 6B 50 61 72 74 69 63 6C 65 52 65 61 64 65 {1027} normal block at 0x01C91308, 13 bytes long. Data: 76 74 6B 50 4E 4D 57 72 69 74 65 72 00 {1026} normal block at 0x01C912B0, 13 bytes long. Data: 76 74 6B 50 4E 4D 52 65 61 64 65 72 00 {1025} normal block at 0x01C91258, 13 bytes long. Data: 76 74 6B 50 4E 47 57 72 69 74 65 72 00 {1024} normal block at 0x01C91200, 13 bytes long. Data: 76 74 6B 50 4E 47 52 65 61 64 65 72 00 {1023} normal block at 0x01C911A8, 13 bytes long. Data: 76 74 6B 50 4C 59 57 72 69 74 65 72 00 {1022} normal block at 0x01C91150, 13 bytes long. Data: 76 74 6B 50 4C 59 52 65 61 64 65 72 00 {1021} normal block at 0x01C910F8, 16 bytes long. Data: 76 74 6B 50 4C 4F 54 33 44 52 65 61 64 65 72 00 {1020} normal block at 0x01C910A0, 16 bytes long. Data: 76 74 6B 4F 75 74 70 75 74 53 74 72 65 61 6D 00 {1019} normal block at 0x01C91048, 13 bytes long. Data: 76 74 6B 4F 42 4A 52 65 61 64 65 72 00 {1018} normal block at 0x01C90FF0, 23 bytes long. Data: 76 74 6B 4D 65 64 69 63 61 6C 49 6D 61 67 65 52 {1017} normal block at 0x01C90F98, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 57 72 69 74 65 72 00 {1016} normal block at 0x01C90F40, 16 bytes long. Data: 76 74 6B 4D 43 75 62 65 73 52 65 61 64 65 72 00 {1015} normal block at 0x01C97D20, 4096 bytes long. Data: < , 1 1 O > E0 2C C7 01 80 31 C7 01 D8 31 C7 01 E0 4F C7 01 {1014} normal block at 0x01C97CC8, 14 bytes long. Data: 76 74 6B 4A 50 45 47 57 72 69 74 65 72 00 {1013} normal block at 0x01C97C70, 14 bytes long. Data: 76 74 6B 4A 50 45 47 52 65 61 64 65 72 00 {1012} normal block at 0x01C97C18, 15 bytes long. Data: 76 74 6B 49 6E 70 75 74 53 74 72 65 61 6D 00 {1011} normal block at 0x01C97BC0, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 57 72 69 74 65 72 00 {1010} normal block at 0x01C97B68, 23 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 46 {1009} normal block at 0x01C97B10, 26 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 43 {1008} normal block at 0x01C97AB8, 16 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 32 00 {1007} normal block at 0x01C97A60, 15 bytes long. Data: 76 74 6B 49 6D 61 67 65 52 65 61 64 65 72 00 {1006} normal block at 0x01C94C60, 12 bytes long. Data: 76 74 6B 49 56 57 72 69 74 65 72 00 {1005} normal block at 0x01C97A08, 24 bytes long. Data: 76 74 6B 47 65 6E 65 72 69 63 45 6E 53 69 67 68 {1004} normal block at 0x01C979B0, 17 bytes long. Data: 76 74 6B 47 45 53 69 67 6E 61 52 65 61 64 65 72 {1003} normal block at 0x01C97948, 29 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 4D 61 73 74 65 72 {1002} normal block at 0x01C978F0, 21 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 52 65 {1001} normal block at 0x01C97898, 27 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 47 6F 6C 64 42 69 {1000} normal block at 0x01C97840, 18 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 52 65 61 64 65 {999} normal block at 0x01C977E8, 24 bytes long. Data: 76 74 6B 45 6E 53 69 67 68 74 36 42 69 6E 61 72 {998} normal block at 0x01C97790, 14 bytes long. Data: 76 74 6B 44 61 74 61 57 72 69 74 65 72 00 {997} normal block at 0x01C97738, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 57 72 69 74 65 72 {996} normal block at 0x01C976E0, 17 bytes long. Data: 76 74 6B 44 61 74 61 53 65 74 52 65 61 64 65 72 {995} normal block at 0x01C97688, 14 bytes long. Data: 76 74 6B 44 61 74 61 52 65 61 64 65 72 00 {994} normal block at 0x01C97630, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 57 72 69 {993} normal block at 0x01C975D8, 20 bytes long. Data: 76 74 6B 44 61 74 61 4F 62 6A 65 63 74 52 65 61 {992} normal block at 0x01C97580, 13 bytes long. Data: 76 74 6B 44 45 4D 52 65 61 64 65 72 00 {991} normal block at 0x01C97528, 19 bytes long. Data: 76 74 6B 42 61 73 65 36 34 55 74 69 6C 69 74 69 {990} normal block at 0x01C974D0, 22 bytes long. Data: 76 74 6B 42 61 73 65 36 34 4F 75 74 70 75 74 53 {989} normal block at 0x01C97478, 21 bytes long. Data: 76 74 6B 42 61 73 65 36 34 49 6E 70 75 74 53 74 {988} normal block at 0x01C97420, 13 bytes long. Data: 76 74 6B 42 59 55 57 72 69 74 65 72 00 {987} normal block at 0x01C973C8, 13 bytes long. Data: 76 74 6B 42 59 55 52 65 61 64 65 72 00 {986} normal block at 0x01C97370, 13 bytes long. Data: 76 74 6B 42 4D 50 57 72 69 74 65 72 00 {985} normal block at 0x01C94C08, 13 bytes long. Data: 76 74 6B 42 4D 50 52 65 61 64 65 72 00 {930} normal block at 0x01C96AB0, 31 bytes long. Data: 76 74 6B 57 69 6E 33 32 52 65 6E 64 65 72 57 69 {929} normal block at 0x01C96A58, 27 bytes long. Data: 76 74 6B 57 69 6E 33 32 4F 70 65 6E 47 4C 52 65 {928} normal block at 0x01C96A00, 28 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 46 72 65 65 54 79 70 {927} normal block at 0x01C96998, 31 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 54 {926} normal block at 0x01C96930, 29 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 56 6F 6C 75 6D 65 52 {925} normal block at 0x01C968D8, 17 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 54 65 78 74 75 72 65 {924} normal block at 0x01C96880, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 52 65 6E 64 65 72 65 {923} normal block at 0x01C96828, 18 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 72 6F 70 65 72 74 {922} normal block at 0x01C967D0, 26 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {921} normal block at 0x01C96778, 24 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 50 6F 6C 79 44 61 74 {920} normal block at 0x01C96720, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 4C 69 67 68 74 00 {919} normal block at 0x01C966C8, 21 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 4D 61 {918} normal block at 0x01C96670, 20 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 49 6D 61 67 65 41 63 {917} normal block at 0x01C96618, 16 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 43 61 6D 65 72 61 00 {916} normal block at 0x01C965C0, 15 bytes long. Data: 76 74 6B 4F 70 65 6E 47 4C 41 63 74 6F 72 00 {915} normal block at 0x01C96568, 20 bytes long. Data: 76 74 6B 57 6F 72 6C 64 50 6F 69 6E 74 50 69 63 {914} normal block at 0x01C96510, 23 bytes long. Data: 76 74 6B 57 69 6E 64 6F 77 54 6F 49 6D 61 67 65 {913} normal block at 0x01C964B8, 25 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 54 65 78 74 75 72 65 {912} normal block at 0x01C96460, 23 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {911} normal block at 0x01C96408, 28 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {910} normal block at 0x01C963A0, 35 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {909} normal block at 0x01C96338, 34 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 52 61 79 43 61 73 74 {908} normal block at 0x01C962E0, 18 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 70 65 72 74 {907} normal block at 0x01C96288, 19 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 50 72 6F 4D 61 70 70 {906} normal block at 0x01C96230, 20 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 43 6F 6C 6C 65 63 74 {905} normal block at 0x01C961E8, 10 bytes long. Data: 76 74 6B 56 6F 6C 75 6D 65 00 {904} normal block at 0x01C96190, 16 bytes long. Data: 76 74 6B 56 52 4D 4C 45 78 70 6F 72 74 65 72 00 {903} The thread 0x16A8 has exited with code 0 (0x0). Regards, Derong From clinton at elemtech.com Mon Aug 18 20:23:47 2003 From: clinton at elemtech.com (Clinton Stimpson) Date: Mon, 18 Aug 2003 18:23:47 -0600 Subject: [vtkusers] vtkXRenderWindowInteractor bug Message-ID: <3F416E13.70004@elemtech.com> I'm using VTK 4.2 -- I can get the shift-tab event on Windows but I don't get such an event for X11. On Windows, I get Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "Tab" for a tab. On X11, I get Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "\t" for a tab. On Windows, I get Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == "Tab" for a shift-tab. On X11, I get Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == NULL for a shift-tab. That seems inconsistent to me and I need this to work right. Clint From craig.scott at csiro.au Mon Aug 18 20:51:14 2003 From: craig.scott at csiro.au (Craig N. Scott) Date: 19 Aug 2003 10:51:14 +1000 Subject: [vtkusers] XML file format description Message-ID: <1061254274.24521.38.camel@debido.vic.cmis.csiro.au> Hi all. Is there an online document describing the new Vtk XML file formats (not just examples)? I need to be able to read and write them in my own app but couldn't find anything with a quick search through the archives. Thanks. -- Dr Craig Scott, CSIRO (CMIS) Melbourne, Australia From phoenixzz at sina.com Mon Aug 18 21:39:24 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Tue, 19 Aug 2003 9:39:24 +0800 Subject: [vtkusers] how to set the Scalar to class vtkDataSet or vtkPolyData Message-ID: <20030819013842.951971AB12@public.kitware.com> vtkusers?hi? Please tell me how to set the Scalar to class vtkDataSet or class vtkPolyData? I am in trouble about this. Thanks! ???????? ????????phoenixzz at sina.com ??????????2003-08-19 From vermaas at astron.nl Tue Aug 19 02:35:50 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Tue, 19 Aug 2003 08:35:50 +0200 Subject: [vtkusers] raycast questions Message-ID: hi, I am displaying my ImageData cube with a raycast function. (1) Is there a way to write the result of that raycast back to a vtkImageData again? So that I get a new data cube with the max pixels projected on the outside? (2) Is there a way to find out which x,y,z pixel was responsible for the maximum projection on the outside? (3) Is there a way to 'shoot' a line through a cube and get back the highest value it encounters? (I thought the picking might work in that way, but it doesn't seem to work like this). ... vtkVolumeRayCastMIPFunction *function = vtkVolumeRayCastMIPFunction::New(); vtkVolumeRayCastMapper *mapper = vtkVolumeRayCastMapper::New(); mapper->SetVolumeRayCastFunction(function); mapper->SetInput(myImageData); actorVolume->SetMapper(mapper); ... Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From sdor5151 at mail.usyd.edu.au Thu Aug 14 23:15:14 2003 From: sdor5151 at mail.usyd.edu.au (sdor5151 at mail.usyd.edu.au) Date: Fri, 15 Aug 2003 13:15:14 +1000 Subject: [vtkusers] 2D drag/drop - 3rd try help In-Reply-To: <1060770324.3f3a1214bc635@www-mail.usyd.edu.au> References: <1060770324.3f3a1214bc635@www-mail.usyd.edu.au> Message-ID: <1060917314.3f3c5042d7266@www-mail.usyd.edu.au> Hello all, I'm hoping to be lucky and get an answer on the 3rd try :P Please see my email below first... I was thinking of combinining vtkPoints and vtkCells with vtkPolyData, but since I'll have a training set of such PolyData, how can I save it to a file? There is no such things as a vtkPolyDataCollectionWriter... The problem with manipulation below still holds... (how to drag/drop 2D vtkPoints) please help - thankyou, Steven > Hello all! > > I am trying to manipulate 2D polygonal data via a UI. (eg. drag nodes) like > in > the following :P > > o o > | / > o-o o > o > o-o-o > | > o-o > > For the manipulation, I've seen a few widget examples for 3D, but I'm not > sure > how to tackle this situation in 2D.... > Do I need to use vtkPolyDataSourceWidget? > > Can someone please give me some hints / sample code? > > kind regards, > > Steven ------------------------------------------------- This mail sent through IMP: www-mail.usyd.edu.au From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 19 03:31:49 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 19 Aug 2003 09:31:49 +0200 Subject: [vtkusers] XML file format description In-Reply-To: <1061254274.24521.38.camel@debido.vic.cmis.csiro.au> References: <1061254274.24521.38.camel@debido.vic.cmis.csiro.au> Message-ID: <3F41D265.4020009@creatis.insa-lyon.fr> Craig N. Scott wrote: > Hi all. Is there an online document describing the new Vtk XML file > formats (not just examples)? I need to be able to read and write them in > my own app but couldn't find anything with a quick search through the > archives. Thanks. > http://vtk.org/VTK/pdf/file-formats.pdf HTH mathieu From j.mccoy at gmx.de Tue Aug 19 04:52:49 2003 From: j.mccoy at gmx.de (joseph mccoy) Date: Tue, 19 Aug 2003 10:52:49 +0200 Subject: [vtkusers] vtkFieldDataToAttributeDataFilter with vtk4.2 Message-ID: <009a01c3662f$480af6c0$1a01a8c0@cad> Hi All, i allready posted this question some time ago, but nobody answerd it. so i stepped once more through the faq's, the doc's and the vtk- sourcecode, but still i don't find an answer. so i'm posting it again, maybe someone can help me now. here is the problem: i have a geometry, stored in one unstructured grid data-file, and a lot of scalar attributes, stored in different fielddata - files. with vtk4.0 i was able to merge the geometry with one of the attribute files using : vtkDataSetReader/vtkDataObjectReader -> vtkMergeDataObjectFilter-> FieldDataToAttributeDataFilter that worked fine. with vtk4.2 i allways get the error message: vtkFieldDataToAttributeDataFilter (0x0182EDB0): Can't find array/component requested please tell me, if you have any ideas what the problem could be. Thanks! PS: i use VS++ 6.0 on Windows2000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Hastenteufel at dkfz-heidelberg.de Tue Aug 19 05:42:47 2003 From: M.Hastenteufel at dkfz-heidelberg.de (Mark Hastenteufel) Date: Tue, 19 Aug 2003 11:42:47 +0200 Subject: [vtkusers] vtkCutter and cellData In-Reply-To: <3F41ECF3.7060903@DKFZ.de> References: <3F41ECF3.7060903@DKFZ.de> Message-ID: <3F41F117.5090307@DKFZ.de> Hello vtk users, I've the following problem: I want to cut a vtkPolyData, which has cellData that is used for colouring. After cutting a plane through the vtkPolyData (with vtkCutter) , it seems that the cellData Information is lost. Cells in the cutter output that correlate spatial to cell in the original vtkPolyData does not have the same cellData. Does anyone have a hint for me, Thanks in advance, Mark -- Mark Hastenteufel Deutsches Krebsforschungszentrum (German Cancer Research Center) Div. Medical and Biological Informatics H0100 Tel: (+49) 6221-42 2353 Im Neuenheimer Feld 280 Fax: (+49) 6221-42 2345 D-69120 Heidelberg e-mail M.Hastenteufel at DKFZ.de Germany http://www.dkfz.de/mbi/people/markh.html From straw_dog at hotmail.com Tue Aug 19 07:46:49 2003 From: straw_dog at hotmail.com (straw dog) Date: Tue, 19 Aug 2003 07:46:49 -0400 Subject: [vtkusers] Re: raycast questions Message-ID: Hi Nico, VTK seems to only be able to render to an image file (or an image data) by rendering using the graphics card, and then grabbing the buffer off the card. However, for most applications that is fine. The key is to use the vtkWindowToImageFilter class. You may also find vtkRenderLargeImage helpful. I haven't actually tried that with Volume rendered stuff - it works on polydata models just fine. Let me know how it works on Vol rendered. vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); if(strlen(outfile)>0) { renWin->OffScreenRenderingOn(); renWin->Render(); vtkWindowToImageFilter *w2i=vtkWindowToImageFilter::New(); w2i->SetInput(renWin); vtkTIFFWriter *iw=vtkTIFFWriter::New(); iw->SetInput(w2i->GetOutput()); iw->SetFileName(outfile); iw->Write(); iw->Delete(); w2i->Delete(); } else { renWin->Render(); iren->Start(); } Apparently, you can also write to a RIB(?) file and use Renderman or Blue Moon Ray tracer to render it. I haven't tried that myself. --rupert b. >Date: Tue, 19 Aug 2003 08:35:50 +0200 >From: "Nico Vermaas" >To: < > >Subject: [vtkusers] raycast questions > >hi, > >I am displaying my ImageData cube with a raycast function.=20 >(1) Is there a way to write the result of that raycast back to a >vtkImageDa= >ta again? So that I get a new data cube with the max pixels projected on = >the outside? >(2) Is there a way to find out which x,y,z pixel was responsible for the = >maximum projection on the outside? >(3) Is there a way to 'shoot' a line through a cube and get back the = >highest value it encounters? (I thought the picking might work in that = >way, but it doesn't seem to work like this). > >... >vtkVolumeRayCastMIPFunction *function =3D >vtkVolumeRayCastMIPFunction::New(= >); >vtkVolumeRayCastMapper *mapper =3D vtkVolumeRayCastMapper::New(); >mapper->SetVolumeRayCastFunction(function); >mapper->SetInput(myImageData); >actorVolume->SetMapper(mapper); >... > >Nico _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 19 07:44:25 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 19 Aug 2003 13:44:25 +0200 Subject: [vtkusers] vtkXRenderWindowInteractor bug In-Reply-To: <3F416E13.70004@elemtech.com> References: <3F416E13.70004@elemtech.com> Message-ID: <3F420D99.3060405@creatis.insa-lyon.fr> Clinton, This is not a bug, X11RenderWindow uses 'XLookupString' to translate the key, whereas the Win32RenderWindow uses a tab: "Virtual Key Code to Unix KeySym Conversion" I guess if you don't call the 'XLookupString' you may get the 'real' key event. HTH mathieu Clinton Stimpson wrote: > I'm using VTK 4.2 -- I can get the shift-tab event on Windows but I > don't get such an event for X11. > > On Windows, I get > Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "Tab" > for a tab. > > On X11, I get > Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "\t" > for a tab. > > > On Windows, I get > Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == "Tab" > for a shift-tab. > > On X11, I get > Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == NULL > for a shift-tab. > > That seems inconsistent to me and I need this to work right. > > Clint > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From Patrick.Brockmann at ipsl.jussieu.fr Tue Aug 19 08:43:48 2003 From: Patrick.Brockmann at ipsl.jussieu.fr (Patrick Brockmann) Date: Tue, 19 Aug 2003 14:43:48 +0200 Subject: [vtkusers] Multiple renderers and offscreen Message-ID: <3F421B84.8060900@ipsl.jussieu.fr> Hi all, ************************************************* Is there a way to save in an offscreen mode one renderwindow with two renderers into a single PNG image and a PS file ? ************************************************* I have identified the vtkPNGWriter, vtkGL2PSExporter, and vtkXOpenGLOffScreenRenderWindow compounds to make the works but I have a problem during conversion of renderers. I am using vtkXOpenGLOffScreenRenderWindow from Glen Lehmann (http://www.imaging.robarts.ca/~glehmann/OffScreen/OffScreen.html) You can find my materials from: http://dods.ipsl.jussieu.fr/brocksce/vtk_pb01 My results are for now: - interactively all the renderers are correctly converted in PNG and in PS despite the specification as input for the vtkPNGWriter of a vtkRenderLargeImage with a single vtkRenderer as input. See tworenderers.py and results tworenderers.png, tworenderers.ps - in the offscreen mode, using vtkXOpenGLOffScreenRenderWindow instead of vtkRenderWindow, I got only one renderer converted (which seems normal) in PNG and a PS file correct despite the message: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Resource id in failed request: 0x2200003 Serial number of failed request: 36 Current serial number in output stream: 40 Hope that someone could help on this. Patrick -- mailto:Patrick.Brockmann at cea.fr 01.69.08.40.09 --> LSCE (Orme des merisiers 701, Bureau 50) 01.44.27.21.10 --> IPSL (Jussieu, Tour 26, 4eme) http://www.ipsl.jussieu.fr/~brocksce/ From Patrick.Brockmann at ipsl.jussieu.fr Tue Aug 19 08:44:31 2003 From: Patrick.Brockmann at ipsl.jussieu.fr (Patrick Brockmann) Date: Tue, 19 Aug 2003 14:44:31 +0200 Subject: [vtkusers] Axes update Message-ID: <3F421BAF.3010601@ipsl.jussieu.fr> Hi all again, ************************************************* Is there a way to adjust the size of an axis depending to its numerical values ? ************************************************* You can find my materials from: http://dods.ipsl.jussieu.fr/brocksce/vtk_pb02 My results are for now: - When zooming inside the center renderer, I have a correct update of axis. - When I press key "1", I can set the position and the focal point of the camera to a "nicer" position (round) and update axis labels. Now, I would like to get the size of the axis adpated to the new "nice" numerical values. Is there a way to do this ? By the way how to get tick marks and labels of the left ? Hope that someone could help on this. Patrick -- mailto:Patrick.Brockmann at cea.fr 01.69.08.40.09 --> LSCE (Orme des merisiers 701, Bureau 50) 01.44.27.21.10 --> IPSL (Jussieu, Tour 26, 4eme) http://www.ipsl.jussieu.fr/~brocksce/ From clinton at elemtech.com Tue Aug 19 10:12:16 2003 From: clinton at elemtech.com (Clinton Stimpson) Date: Tue, 19 Aug 2003 08:12:16 -0600 Subject: [vtkusers] vtkXRenderWindowInteractor bug In-Reply-To: <3F420D99.3060405@creatis.insa-lyon.fr> References: <3F416E13.70004@elemtech.com> <3F420D99.3060405@creatis.insa-lyon.fr> Message-ID: <1061302336.3f423040d5f06@webmail.xmission.com> I'm not quite sure how you figure it isn't a bug. I thought vtk was supposed to provide me with a consistent method to know what events are. And all I need to do is provide some implementation in my vtkInteractoStyle class to do stuff. I shouldn't have to worry about differences between the OS's. Do you have any suggestions for working around this? Make my own vtkXRenderWindowInteractor class? Thanks, Clint Quoting Mathieu Malaterre : > Clinton, > This is not a bug, X11RenderWindow uses 'XLookupString' to translate > the key, whereas the Win32RenderWindow uses a tab: > "Virtual Key Code to Unix KeySym Conversion" > > I guess if you don't call the 'XLookupString' you may get the 'real' > key event. > > HTH > mathieu > > > Clinton Stimpson wrote: > > I'm using VTK 4.2 -- I can get the shift-tab event on Windows but I > > don't get such an event for X11. > > > > On Windows, I get > > Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "Tab" > > for a tab. > > > > On X11, I get > > Interactor->GetKeyCode() == 9, Interactor->GetKeySym() == "\t" > > for a tab. > > > > > > On Windows, I get > > Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == "Tab" > > for a shift-tab. > > > > On X11, I get > > Interactor->GetKeyCode() == 0, Interactor->GetKeySym() == NULL > > for a shift-tab. > > > > That seems inconsistent to me and I need this to work right. > > > > Clint > > > > _______________________________________________ > > This is the private VTK discussion list. Please keep messages on-topic. > > > Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > -- > Mathieu Malaterre > CREATIS > 28 Avenue du Doyen LEPINE > B.P. Lyon-Montchat > 69394 Lyon Cedex 03 > http://www.creatis.insa-lyon.fr/~malaterre/ > > > From fhuguet at scconsultants.com Tue Aug 19 10:38:49 2003 From: fhuguet at scconsultants.com (=?iso-8859-1?Q?Fr=E9d=E9ric_HUGUET?=) Date: Tue, 19 Aug 2003 16:38:49 +0200 Subject: [vtkusers] Drawing a mesh with vtk Message-ID: <000801c3665f$9ac58cb0$1ac809c0@ATHENA> Hi deras vtkusers, i would like to read a mesh file (points coordinates and mesh caracteristics) and then draw it under a simple SDI MFC application. So my idea was the following : read the mesh file, and use the vtk Mesh structure to save data. Mesh *m_pMaillage3D; then here is the code of the function which read the mesh file : int CvtkMaillage::ReadMesh(char *nom_fichier){ FILE *ft; long i,nb_elt_cot; char buffer[256]; int dim_noe, dim_elt,nb_elt; long fin; int nb_car_lu2=0; int n1,n2,n3,n4; vtkIdType Id, nb_pts_cell; vtkIdType *IdList; vtkTetra* Element_Courant = vtkTetra::New(); if((ft=fopen(nom_fichier,"r"))!=NULL) { fgets(buffer,256,ft); sscanf(buffer,"%d %d %d %d", &this->m_pMaillage3D->vertices, &dim_noe, &this->m_pMaillage3D->faces, &dim_elt) ; nb_elt_cot = this->m_pMaillage3D->faces; //Initialisation du tableau des points this->m_pMaillage3D->vertex = new Vector[this->m_pMaillage3D->vertices]; //Tableau de connectivit? des ?l?ments this->m_pMaillage3D->aCellArray = vtkCellArray::New(); for(i = 0 ; im_pMaillage3D->vertices ; i++) { fgets(buffer,256,ft); traitement_texte_reel(buffer); sscanf(buffer,"%lf %lf %lf",&(this->m_pMaillage3D->vertex[i][0]),&(this->m_pMaillage3D->vertex[i][1]),&(this->m_pMaillage3D->vertex[i][2])); } Element_Courant->PointIds->Initialize(); Element_Courant->PointIds->Allocate(4); fin = - 1; for(i=0;iPointIds->InsertId(0, n1); Element_Courant->PointIds->InsertId(1, n2); Element_Courant->PointIds->InsertId(2, n3); Element_Courant->PointIds->InsertId(3, n4); Id = this->m_pMaillage3D->aCellArray->InsertNextCell(Element_Courant); /*maillage3D.topologie.tab_typeelt[i]=1;*/ if(fin==-1 && n4==0) fin=i; } if(fin!=-1) { nb_elt=fin; this->m_pMaillage3D->faces=nb_elt_cot-fin; this->m_pMaillage3D->face = new Face[this->m_pMaillage3D->faces]; for(i = 0 ; i < this->m_pMaillage3D->faces; i++) { this->m_pMaillage3D->aCellArray->GetCell(fin + i, nb_pts_cell, IdList); this->m_pMaillage3D->face[i].a = IdList[0]; this->m_pMaillage3D->face[i].b = IdList[1]; this->m_pMaillage3D->face[i].c = IdList[2]; //free(maillage3D.topologie.tab_elt[fin+i]); } } else { nb_elt=nb_elt_cot; } fclose(ft); return 1; } return 0; } as you can see, i first save number of vertices and number of faces. Then i first use m_pMaillage3D->vertex to save points coordinates. Then i use m_pMaillage3D->aCellArray to save elements connectivity of the mesh and m_pMaillage3D->face to save face. When I saved this data, i build a vtkActor using a vtk3DSImporter. I generate PolyData using vtk3DSImporter::GeneratePolyData. Then i build the actor as usual in vtk. But now mesh cant be drawn although i call a CView::OnPaint overroden method which call the vtkRenderer. Could you tell me if the data structures and the general idea to save my mesh in VTK is good ? How could I do better this method ? This project cant demonstrate my company that VTK is a useful library :) Thanks a lot, Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Tue Aug 19 11:01:04 2003 From: dean.inglis at camris.ca (Dean Inglis) Date: Tue, 19 Aug 2003 11:01:04 -0400 Subject: [vtkusers] Scalar Bar & Text Dragbility Problem Message-ID: Chris, > I've set a scalarbar to be dragable (actor1.DragableOn();), but it is >not dragable. Does anyone know about this? Is it a vtk bug or is there some >other setting I'm missing? I've had the same problem with a vtkTextActor. there is a widget, vtkScalarBarWidget that allows you to do this. See /Hybrid/Testing/Cxx/TestScalarBarWidget.cxx for details Dean From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 19 10:31:33 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 19 Aug 2003 16:31:33 +0200 Subject: [vtkusers] vtkXRenderWindowInteractor bug In-Reply-To: <1061302336.3f423040d5f06@webmail.xmission.com> References: <3F416E13.70004@elemtech.com> <3F420D99.3060405@creatis.insa-lyon.fr> <1061302336.3f423040d5f06@webmail.xmission.com> Message-ID: <3F4234C5.2080402@creatis.insa-lyon.fr> Clinton Stimpson wrote: > I'm not quite sure how you figure it isn't a bug. I thought vtk was > supposed to provide me with a consistent method to know what events are. > And all I need to do is provide some implementation in my vtkInteractoStyle > class to do stuff. I shouldn't have to worry about differences between the > OS's. > > Do you have any suggestions for working around this? Make my own > vtkXRenderWindowInteractor class? Try this patch: http://www.creatis.insa-lyon.fr/~malaterre/vtk/keysym.patch or directly: http://www.creatis.insa-lyon.fr/~malaterre/vtk/vtkXRenderWindowInteractor.cxx You need to rebuild VTK then. HTH mathieu From g.gorman at imperial.ac.uk Tue Aug 19 11:10:47 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Tue, 19 Aug 2003 16:10:47 +0100 Subject: [vtkusers] XML file format description In-Reply-To: <3F41D265.4020009@creatis.insa-lyon.fr> References: <1061254274.24521.38.camel@debido.vic.cmis.csiro.au> <3F41D265.4020009@creatis.insa-lyon.fr> Message-ID: <3F423DF7.4050907@imperial.ac.uk> ...but really it's a good idea to use the vtkXMLWriter/Reader class's instead http://www.vtk.org/doc/release/4.2/html/classvtkXMLWriter.html http://www.vtk.org/doc/release/4.2/html/classvtkXMLReader.html It will life a whole lot less complicated... cheers g Mathieu Malaterre wrote: > Craig N. Scott wrote: > >> Hi all. Is there an online document describing the new Vtk XML file >> formats (not just examples)? I need to be able to read and write them in >> my own app but couldn't find anything with a quick search through the >> archives. Thanks. >> > > > http://vtk.org/VTK/pdf/file-formats.pdf > > HTH > mathieu > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- ---------------------------------------------------------- Gerard Gorman (PhD Student) Applied Modelling and Computation Group Earth Science and Engineering Imperial College Prince Consort Road Tel. 00 44 +207 594 9323 London SW7 2BP Fax. 00 44 +207 594 9321 U.K. o~o A good slogan beats a good solution. -----------------------w-v-w------------------------------ From j.robinson at kepler-systems.com Tue Aug 19 11:17:52 2003 From: j.robinson at kepler-systems.com (James C. Robinson) Date: Tue, 19 Aug 2003 16:17:52 +0100 Subject: [vtkusers] Coordinates on a surface Message-ID: Hi All, I have a very specific problem which I would like to solve. I am using an MFC class derived window (CView) to view an unstructured grid (3D FE mesh - 20 noded hexahedra converted to 8 noded). I wanted to have the facility to output the coordinates of the point on the surface under the mouse cursor as the mouse moves. I looked up the doc and saw the classes derived from vtkAbstractPicker. I tried vtkWorldPointPicker, vtkPicker, and vtkCellPicker. Here is some of the code I use in the WindowProc of my vtkMFCView derived CView: Firstly, I try to output the coords when "p" is pressed (NB: I have interrupted a lot of the default interactor functionality so that my program conforms with an previous version) using the vtkInteractor picker: if (message == WM_CHAR) // Don't allow the toggle options for a standard VTK window. { TCHAR chCharCode = (TCHAR) wParam; // character code // Look for "f" or "F" for the "fly" facility. if ((chCharCode != 70)&&(chCharCode != 102)) // Look for "p" or "P" for the "pick" facility. (Hopefully to invoke the vtkCellPicker { if ((chCharCode != 80)&&(chCharCode != 112)) { return vtkMFCView::WindowProc(message, wParam, lParam); } else { pPicker = (vtkCellPicker*)(this->Interactor->GetPicker()); wz = 0.0 ; wx = float(LOWORD(lParam)); /* Saves the current value */ wy = float(HIWORD(lParam)); pPicker->Pick(wx,wy,wz,Renderer) ; pPickPos = pPicker->GetPickPosition() ; coords.Format(" X:%7.2f Y:%7.2f Z:%7.2f", *(pPickPos+0),*(pPickPos+1),*(pPickPos+2)) ; baseframe->p_wndStatusBar->SetPaneText(1,coords) ; } } } I also try to do it dynamically as the mouse moves across the window using a vtkCellPicker that I instantiate as part of my vtkMFCView derived CView: if (message == WM_MOUSEMOVE) { if (Panning||Zooming||Rotating) { GetDocument()->ViewAltered() ;// Default title if view changes } else { wz = 0.0 ; wx = float(LOWORD(lParam)); /* Saves the current value */ wy = float(HIWORD(lParam)); pCellPicker->Pick(wx,wy,wz,Renderer) ; pPickPos = pCellPicker->GetPickPosition() ; coords.Format(" x:%7.2f y:%7.2f z:%7.2f", *(pPickPos+0),*(pPickPos+1),*(pPickPos+2)) ; baseframe->p_wndStatusBar->SetPaneText(1,coords) ; } } The behaviour of the output from these procedures is slightly different, but both erroneous. (Almost) invariably the "x" coordinate outputted is correct. However, the y coordinate is often incorrect and the orientation of the Y axis is invariably inverted. The "z" coordinate is inconsistent. The quality of the outputted coordinates seems to depend on the level of zoom and the camera orientation. NB: I have set the Tolerance to 0.0001 for my own vtkCellPicker, but I get a crash when I try to set the tolerance of the vtkInteractor's picker. I would appreciate any help. For this functionality to be useful it must be consistently accurate. Many thanks in advance, Jim ______________________ James C. Robinson, PhD, Chartered Engineer, Kepler Simulation Systems Ltd., Unit 10, Melbourne Business Park, Model Farm Road, Cork, Eire Tel: +353-21-4822028 Tel: +353-21-4817267 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler-systems.com ______________________ From g.gorman at imperial.ac.uk Tue Aug 19 11:18:47 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Tue, 19 Aug 2003 16:18:47 +0100 Subject: [vtkusers] VTK File with Multiple Wariables ASCII to Binary Problem In-Reply-To: <5.2.1.1.0.20030818104953.00b7daa0@cripplecreek.sec.noaa.gov> References: <5.2.1.1.0.20030818104953.00b7daa0@cripplecreek.sec.noaa.gov> Message-ID: <3F423FD7.5020601@imperial.ac.uk> Basically what's happening is that when you do a GetOutput() only the active SCALAR, VECTOR and TENSOR get passed back from vtkStructuredGridReader/vtkStructuredGridWriter. Try printing out fileIn.GetOutput() My own experience is that vtkXML...GridReader/vtkXML...GridWriter are much handier because it classifies all non-active SCALARS/./. as arrays and everything gets passed along nicely. cheers g Chris Hood wrote: > I've created a VTK file with mutilple variables in ASCII format that > my VTK program reads fine, but when I try to convert it to binary format > to improve the speed, it only creates a file with the point locations > and the first variable. How do I get all the variables in there? Is this > a vtk bug that'll be fixed in a future version? I'll put a copy of the > function I'm using below. > I'm using vtk with java on xp. > > > void BianryConversion(String filename) { > vtkStructuredGridReader fileIn = new vtkStructuredGridReader(); > fileIn.SetFileName(filename); > //vtkStructuredGrid data = fileIn.GetOutput(); > vtkStructuredGridWriter fileOut = new vtkStructuredGridWriter(); > fileOut.SetFileName(filename); > fileOut.SetFileTypeToBinary(); > fileOut.SetInput(fileIn.GetOutput()); > fileOut.Write(); > } > > > ____________________________________ > Chris Hood > Graduate Student Research Assistant > University of Colorado, Boulder > Space Environment Center - NOAA > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- ---------------------------------------------------------- Gerard Gorman (PhD Student) Applied Modelling and Computation Group Earth Science and Engineering Imperial College Prince Consort Road Tel. 00 44 +207 594 9323 London SW7 2BP Fax. 00 44 +207 594 9321 U.K. o~o A good slogan beats a good solution. -----------------------w-v-w------------------------------ From dan at chalkie.org.uk Tue Aug 19 08:14:50 2003 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Tue, 19 Aug 2003 15:14:50 +0300 Subject: [vtkusers] hardware stereo swapped LR images in raycast, but not 2D texture in volume rendering Message-ID: Hi , I am experiencing a strange stereo problem using VTK with the mayavi frontend, concerning display of hardware stereo using a crystaleyes glasses system on a redhat linux 8.0 box with ATI radeon 7500, and the Xig.com Xserver for quad buffered stereo. When I load in the IronProtein.vtk example file and use the new Mayavi module volume by Gerard Gorman (see mayavi list recently) then turn on the SetStereoTypetoCrystalEyes and StereoRenderOn in the Configure vtkXOpenGLRenderWindow dialog box Now when I rotate the data set , I think the faster vtkVolumeTextureMapper2D is used. In hardware stereo this looks correct (but it is fuzzy so a bit hard to tell) however, when the rotation is finished the slower vtkVolumeRayCastMapper is used for a nice rendered image. When rendering is finished the left and right images are displayed incorrectly! What the dialog boxes think is the right image is actually the left image, and vice versa. This behavior is also seen with a python script I cobbled together to display stacks of tiff images using ivtk from mayavi. Is the problem a bug in the vtkVolumeTextureMapper2D or somewhere upstream? Hardware stereo functions correctly in other software such as pymol and bodil. Previously I have applied a little hack to mayavi to enable stereo viewing as suggested by Prabhu Ramachandran. also SetStereoTypeToLeft gives the same incorrect/swapped double image as SetStereoTypetoCrystalEyes. but SetStereoTypeToRight only displays 1 image to both eyes. When StereoRenderOn is turned off, or not turned on, same thing, only the right eye sees and image, and the screen is blank to the left eye, casing a flickering, or half intensity image. I don't know if the hack to mayavi has caused this problem? I don't think the flickering happened before I applied the hack. any ideas VTK stereo folks? cheers Dan Dr. Daniel James White BSc. (Hons.) PhD Cell Biology Department of biological and environmental science PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 (0)14 260 4183 (work) +358 (0)414740463 (mob) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From ben.held at staarinc.com Tue Aug 19 13:37:29 2003 From: ben.held at staarinc.com (Ben Held) Date: Tue, 19 Aug 2003 12:37:29 -0500 Subject: [vtkusers] vtkQuadraticTetra - has it ever been used/tested? Message-ID: Hello, I am trying to add support for quadratic tets to my VTK based program. I have tried both the 4.2 release and the nightly versions. They all have a problem in which vtkPolyData::ComputeBounds() crashes when I have vtkQuadraticTetra present. Has anyone successfully used this class? Ben Ben Held Simulation Technology & Applied Research, Inc. 11520 N. Port Washington Rd., Suite 101B Mequon, WI 53092 P: +1 (262) 240-0291 x101 F: +1 (262) 240-0294 W: http://www.staarinc.com From g.scott at oneteldsl.net Tue Aug 19 15:01:42 2003 From: g.scott at oneteldsl.net (Greg Scott) Date: Tue, 19 Aug 2003 20:01:42 +0100 Subject: [vtkusers] SetPixelAspect works on VTK 4.0 but not 4.2? Message-ID: <006201c36684$541cddc0$0500a8c0@Greg> I was hoping the VTK contributors could confirm whether SetPixelAspect is known not to work in version 4.2? I have been unsuccessful in getting it to work using 4.2. I have been told that it has worked in 4.0 but ceased to work in 4.2. If anyone could explain the situation, and whether it might be fixed, or if it is fixed in the nightly versions, I would be most grateful. Thank you. Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.inglis at camris.ca Tue Aug 19 15:29:02 2003 From: dean.inglis at camris.ca (Dean Inglis) Date: Tue, 19 Aug 2003 15:29:02 -0400 Subject: [vtkusers] Coordinates on a surface Message-ID: Hi James, I actually created a widget that I call vtkPropTracerWidget that does essentially what you want. It uses an internal vtkPropPicker: this->Prop = NULL; this->PropPicker = vtkPropPicker::New(); this->PropPicker->PickFromListOn(); in your case, you would set this->Prop to your mesh and add the prop to the picker: this->PropPicker->InitializePickList(); this->PropPicker->AddPickList(this->Prop); > also try to do it dynamically as the mouse moves across the window using a >tkCellPicker that I instantiate as part of my vtkMFCView derived CView: this is probably the way to go. Your problem with the y-coord can be easily resolved be getting the display window height in pixels, say DWH, and setting wx = float(LOWORD(lParam)); wy = DWH - float(HIWORD(lParam)) + 1.0f; /* now add in some more vtk stuff... */ if( !this->PropPicker->PickProp(wx,wy,Renderer) ){ return; } if( this->Prop != this->PropPicker->GetProp() ){ return; } float pos[3]; this->PropPicker->GetPickPosition(pos); /* use pos to query the data however you see fit ... */ Dean From alinnen at globalkiosk.com Tue Aug 19 18:40:06 2003 From: alinnen at globalkiosk.com (Aaron Linnen) Date: Tue, 19 Aug 2003 16:40:06 -0600 Subject: [vtkusers] Is VTK applicable to a CAD like program? Message-ID: <3F42A746.9090202@globalkiosk.com> I'm hoping to pick your brains about a software that I'm currently working on, for any ideas and for where VTK might fit in best. The program is a domain specific CAD like program for the design of etched stonework, mostly monuments. The program has a collection of elements (line drawings) that can be placed on the stone, as well as allowing text items to be created and edited. The program has been in use for a number of years and the current design simply lets you edit the main surfaces of the stone as a flat surface, then has a (hand written, and poorly at that) perspective view. The program currently doesn't hand more complicated stones (e.g. made out of several stones, or oddly shaped with curves) It was in looking to rewrite and improve the perspective view that I started looking into VTK. To make use of it, I would need to make actual 3d models for the various stones. Looking into this I had the idea that maybe VTK could help with the editing portion too. My rough idea was if I was making the the 3d models anyways, I should be able to get VTK to generate the shape of the various surfaces that I could use as textures for the 3d view. So the editing would be on the 2d texture maps for now and not need much training for the users. So I'm wondering if given a shape, say a stone vase with 2 flat sides front and back and 2 rounded sides, looking like this in a top down view: ___ (___) (please excuse my feeble attempts at ASCII art!) a) can I tag the 3d model data so that I know which polygons compose each of the 4 sides? What file format handles this nicely? b) can I get the texture shape needed for each of the sides (which may be composed of several polygons) c) would there be a way to handle pictures that wrap one 2 (or more) of the sides? d) what if this vase had a top that can also be engraved? Now a) needs to be able to mark 5 sides, c) potentially might need to wrap something on the front, top and right side for example. e) is there an accurate method of knowing where something is on the texture maps to on the 3d model? Say I needed to add a border exactly 1 inch from the top of the vase? Well, as usual, writing it out has helped my already. If anyone has pointers or ideas on this it would be great. Particular parts of VTK that would apply would be appreciated too. Completely different methods are also welcomed :) If this is deemed too of topic for this list, I apologize and people can follow up off-list if that's more appropriate. Thanks, Aaron From Matthias.Guenther at AdvancedMRI.com Tue Aug 19 19:26:28 2003 From: Matthias.Guenther at AdvancedMRI.com (Matthias Guenther) Date: Tue, 19 Aug 2003 16:26:28 -0700 Subject: [vtkusers] Unresolved symbols in "vtkHybridInstantiator" Message-ID: <3F42B224.CFD65582@AdvancedMRI.com> Hi all, I'm having trouble compiling vtk 4.2.1 on a laptop with VC++6 SP5 running Windows XP. It seems to miss some symbols in vtkHybridInstantiator.obj: Creating library C:\Software\vtk\VTK-4.2.1bin\bin\RelWithDebInfo/vtkHybrid.lib and object C:\Software\vtk\VTK-4.2.1bin\bin\RelWithDebInfo/vtkHybrid.exp vtkHybridInstantiator.obj : error LNK2001: unresolved external symbol "class vtkObject * __cdecl vtkInstantiatorvtkPushPipelineNew(void)" (?vtkInstantiatorvtkPushPipelineNew@@YAPAVvtkObject@@XZ) vtkHybridInstantiator.obj : error LNK2001: unresolved external symbol "class vtkObject * __cdecl vtkInstantiatorvtkPushImageReaderNew(void)" (?vtkInstantiatorvtkPushImageReaderNew@@YAPAVvtkObject@@XZ) vtkHybridInstantiator.obj : error LNK2001: unresolved external symbol "class vtkObject * __cdecl vtkInstantiatorvtkPushImageFilterSampleNew(void)" (?vtkInstantiatorvtkPushImageFilterSampleNew@@YAPAVvtkObject@@XZ) C:\Software\vtk\VTK-4.2.1bin\bin\RelWithDebInfo/vtkHybrid.dll : fatal error LNK1120: 3 unresolved externals Could anybody please help me with this? Bye, Matthias From cpanagio at cs.ucl.ac.uk Tue Aug 19 19:40:17 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Wed, 20 Aug 2003 00:40:17 +0100 Subject: [vtkusers] HELP WITH vtkOBBTree::IntersectWithLine(...) Message-ID: <3F42B561.6050603@cs.ucl.ac.uk> guys I have a volume (which is not staigthforwart - its a litle complicated model, actualy it represent a human liver) I have a series of rays casted from the center of mass of the volume (so i have the first point (centroid) and the last point of each ray) I want to detect intersections with the volume for which I have created an vtkOBBTree. I use IntersectWithLine(rayStart, rayEnd, tolerance, t,intresectCoordinate[3],cellParametricCoordinate[3],subId) method and I get some results. The problem is that the results I get are the first intersections with the volume. Is there any way to get ALL points (sequence of entrance and exit points) of the volume that are intersected with this line? I saw that there is a method called IntersectWithLine(raystart,rayend,*vtkPoints,cellIds) . Does this do what I want? If you have any suggestions or if you have counter a problem like this before I would really appreciate your help as I am running out of time with a project and it is the last thing I have to do! thanks indeed christos From lixinghua at china.com Tue Aug 19 21:14:54 2003 From: lixinghua at china.com (LiXingHua) Date: Wed, 20 Aug 2003 09:14:54 +0800 (CST) Subject: [vtkusers] mailing list Message-ID: From xsun at moffitt.usf.edu Tue Aug 19 21:54:43 2003 From: xsun at moffitt.usf.edu (Sun, Xue Jun) Date: Tue, 19 Aug 2003 21:54:43 -0400 Subject: [vtkusers] Help on vtkTIFFReader Message-ID: <01F78534EFBD4E4C938B21471D5C4F8B8697EB@m-ex1.hlm.ad.moffitt.usf.edu> How to get R, G, B data of color image by vtkTIFFReader? Your kind help is greatly appreciated. Sun XJ ###################################################################### This transmission may be confidential or protected from disclosure and is only for review and use by the intended recipient. Access by anyone else is unauthorized. Any unauthorized reader is hereby notified that any review, use, dissemination, disclosure or copying of this information, or any act or omission taken in reliance on it, is prohibited and may be unlawful. If you received this transmission in error, please notify the sender immediately. Thank you. ###################################################################### From schwarz at evl.uic.edu Tue Aug 19 23:12:46 2003 From: schwarz at evl.uic.edu (Nicholas Schwarz) Date: Tue, 19 Aug 2003 22:12:46 -0500 (CDT) Subject: [vtkusers] vtkWin32OpenGLRenderWindow GetEventPending Bug Message-ID: Hi, I attempted to stop a long render when the user interacts with an object by using a callback and the AbortCheckMethod of vtkRenderWindow. Below is my C++ adaptation of the Tcl code on pages 257-258 of "The VTK User's Guide" for VTK 4.2. First, I made a callback class like this: class InteractionCallBack : public vtkCommand { public: static InteractionCallBack* New() { return new InteractionCallBack; } virtual void Execute(vtkObject* caller, unsigned long, void* data) { vtkRenderWindow* renWin = vtkRenderWindow::SafeDownCast(caller); if (renWin -> GetEventPending()) { renWin -> SetAbortRender(1); } } }; Later on in my code I added an observer for AbortCheckEvent like this: InteractionCallBack* icb = InteractionCallBack::New(); renWin -> AddObserver(vtkCommand::AbortCheckEvent, icb); Of course, I included vtkRenderWindow.h, vtkCommand.h, and all the rest. This does not work in Windows. (It does work in Linux.) The render is not aborted when the user attempts to interact with the object. From testing I determined that the GetEventPending() method in my instance of vtkRenderWindow never returns 1; it always returns 0. I tested this code int vtkWin32OpenGLRenderWindow::GetEventPending() { MSG msg; if (PeekMessage(&msg,this->WindowId,WM_MOUSEFIRST,WM_MOUSELAST,PM_NOREMOVE)) { if ((msg.message == WM_LBUTTONDOWN) || (msg.message == WM_RBUTTONDOWN) || (msg.message == WM_MBUTTONDOWN)) { return 1; } } return 0; } from vtkWin32OpenGLRenderWindow (rev 1.115), and determined that the outside if statement does evaluate to true on the following events: WM_MOUSEFIRST, WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_RBUTTONDBLCLK, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_MBUTTONDBLCLK, WM_MOUSEWHEEL, and WM_MOUSELAST. That is what it should do. But, the inner if statement does not evaluate to true because 'msg.message' always evaluates to 0x0200, WM_MOUSEMOVE. It never evaluates to a mouse button down event, so it never returns 1. I noticed that the current GetEventPending() method was added in rev. 1.89, and replaces this (from rev. 1.88) int vtkWin32OpenGLRenderWindow::GetEventPending() { MSG msg; return PeekMessage(&msg,this->WindowId,WM_LBUTTONDOWN,WM_MBUTTONDOWN,PM_NOREMOVE); } which DOES work properly. The way GetEventPending() is in rev. 1.115 should work, but it dosen't, and I don't know why. The current GetEventPending() implementation should also be better than 1.88's because it is only supposed to respond to button down events, but again, it dosen't work. Has anyone successfully gotten a revision newer than 1.88 to work properly, or has experienced this same problem? ------------------------------------------------------------------------- Nicholas Schwarz Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu Department of Computer Science Telephone: 312-996-3002 University of Illinois at Chicago Facsimile: 312-413-7585 ------------------------------------------------------------------------- From prabhu at aero.iitm.ernet.in Wed Aug 20 03:18:37 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 20 Aug 2003 12:48:37 +0530 Subject: [vtkusers] Re: [MayaVi-users] hardware stereo swapped LR images in raycast, but not 2D texture in volume rendering In-Reply-To: References: Message-ID: <16195.8397.949184.691504@monster.linux.in> >>>>> "DJW" == Daniel James White PhD writes: [snip] DJW> Now when I rotate the data set , I think the faster DJW> vtkVolumeTextureMapper2D is used. In hardware stereo this DJW> looks correct (but it is fuzzy so a bit hard to tell) Well, only the vtkVolumeRayCastCompositeFunction is used. The texture mapper is not used here. When interacting it renders faster and fuzzier. DJW> however, when the rotation is finished the slower DJW> vtkVolumeRayCastMapper is used for a nice rendered image. DJW> When rendering is finished the left and right images are DJW> displayed incorrectly! What the dialog boxes think is the DJW> right image is actually the left image, and vice versa. DJW> This behavior is also seen with a python script I cobbled DJW> together to display stacks of tiff images using ivtk from DJW> mayavi. DJW> Is the problem a bug in the vtkVolumeTextureMapper2D or DJW> somewhere upstream? I don't have the hardware to check but it must be with the vtkVolumeRayCastMapper or the way its being used in the module. If you can reduce the test program to something that is easily reproducible with standard data like the ironProt.vtk file and without any of the MayaVi stuff it would easier for a VTK developer with knowledge of the VolumeMapper internals to respond. If you have difficulty with that mail me off-list. cheers, prabhu From j.mccoy at gmx.de Wed Aug 20 04:22:52 2003 From: j.mccoy at gmx.de (joseph mccoy) Date: Wed, 20 Aug 2003 10:22:52 +0200 Subject: [vtkusers] vtkFieldDataToAttributeDataFilter with vtk4.2 -->Bug in vtkMergeDataObjectFilter? References: <009a01c3662f$480af6c0$1a01a8c0@cad> Message-ID: <001801c366f4$403b3020$1a01a8c0@cad> Hi All, finally i found a solution for my problem, although i'm not quite sure if it is a good one. in vtk4.0 the vtkMergeDataObjectFilter checked three kind of outputfileds: VTK_CELL_DATA_FIELD, VTK_POINT_DATA_FIELD and VTK_DATA_OBJECT_FIELD. in newer versions, it doesn't check for data_object_field any more, therefore my fielddata wasn't recognized. after putting else { output->SetFieldData(fd); } as third option on the end of the execute() - checks, the merging works fine again. maybe this is helpful for someone who experience similar problems. Hi All, i allready posted this question some time ago, but nobody answerd it. so i stepped once more through the faq's, the doc's and the vtk- sourcecode, but still i don't find an answer. so i'm posting it again, maybe someone can help me now. here is the problem: i have a geometry, stored in one unstructured grid data-file, and a lot of scalar attributes, stored in different fielddata - files. with vtk4.0 i was able to merge the geometry with one of the attribute files using : vtkDataSetReader/vtkDataObjectReader -> vtkMergeDataObjectFilter-> FieldDataToAttributeDataFilter that worked fine. with vtk4.2 i allways get the error message: vtkFieldDataToAttributeDataFilter (0x0182EDB0): Can't find array/component requested please tell me, if you have any ideas what the problem could be. Thanks! PS: i use VS++ 6.0 on Windows2000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From phoenixzz at sina.com Wed Aug 20 05:32:17 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 17:32:17 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820093135.72C6A1AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From marcelluswalace at hotmail.com Wed Aug 20 05:58:32 2003 From: marcelluswalace at hotmail.com (marcellus walace) Date: Wed, 20 Aug 2003 11:58:32 +0200 Subject: [vtkusers] A question of life :))) Message-ID: Hi all, I'm a new vtk users and I've some questions: Who can I write raw files? Regards, _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From berk.geveci at kitware.com Wed Aug 20 07:59:21 2003 From: berk.geveci at kitware.com (Berk Geveci) Date: 20 Aug 2003 07:59:21 -0400 Subject: [vtkusers] vtkFieldDataToAttributeDataFilter with vtk4.2 In-Reply-To: <009a01c3662f$480af6c0$1a01a8c0@cad> References: <009a01c3662f$480af6c0$1a01a8c0@cad> Message-ID: <1061380761.12084.2.camel@caemlyn.kitwarein.com> Hi, vtkFieldDataToAttributeDataFilter is being deprecated. I recommend using vtkAssignAttribute and vtkRearrangeFields instead. -Berk On Tue, 2003-08-19 at 04:52, joseph mccoy wrote: > Hi All, > > i allready posted this question some time ago, but nobody answerd it. so i stepped once more through the faq's, the doc's and the vtk- sourcecode, but still i don't find an answer. so i'm posting it again, maybe someone can help me now. > here is the problem: > i have a geometry, stored in one unstructured grid data-file, and a lot of scalar attributes, stored in different fielddata - files. with vtk4.0 i was able to merge the geometry with one of the attribute files using : > vtkDataSetReader/vtkDataObjectReader -> vtkMergeDataObjectFilter-> FieldDataToAttributeDataFilter > > that worked fine. with vtk4.2 i allways get the error message: > vtkFieldDataToAttributeDataFilter (0x0182EDB0): Can't find array/component requested > > please tell me, if you have any ideas what the problem could be. Thanks! > > PS: i use VS++ 6.0 on Windows2000 From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820132849.BAF211AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820133525.86A691AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820135525.984D61AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From j.robinson at kepler-systems.com Wed Aug 20 10:03:10 2003 From: j.robinson at kepler-systems.com (James C. Robinson) Date: Wed, 20 Aug 2003 15:03:10 +0100 Subject: [vtkusers] RE: Coordinates on a surface In-Reply-To: <20030820124907.LFXB12481.tomts11-srv.bellnexxia.net@[209.226.175.135]> Message-ID: Dean, Thanks for the quick response. I have left out the 1.0 simply because at the scale of interaction with the screen, 1 pixel/300 (approx height of vtk window in pixels) effectively means a % error of position of order 0.3%. There is obviously a definitive mapping, but at this stage I couldn't be bothered. I am surprised (and slightly peeved) that the mapping (y* = LWD - y) isn't taken care of by the vtkPicker and I have yet to find the documentation that explains this. The documentation for vtkPicker states: virtual int vtkPicker::Pick ( float selectionX, float selectionY, float selectionZ, vtkRenderer * renderer ) [virtual] Perform pick operation with selection point provided. Normally the first two values for the selection point are x-y pixel coordinate, and the third value is =0. Return non-zero if something was successfully picked. Which is clearly stating that you give the x,y pixel coords. Everybody knows that (at least of MS Windows) the origin is in the top left hand corner of the window, so why not make it clear that it is now display coordinates!!?? Anyway, it isn't your problem, I am just venting (possibly misplaced) frustration. Many thanks again. Regards, Jim ______________________ James C. Robinson, PhD, Chartered Engineer, Kepler Simulation Systems Ltd., Unit 10, Melbourne Business Park, Model Farm Road, Cork, Eire Tel: +353-21-4822028 Tel: +353-21-4817267 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler-systems.com ______________________ -----Original Message----- From: dean.inglis at camris.ca [mailto:dean.inglis at camris.ca] Sent: 20 August 2003 13:49 To: j.robinson at kepler-systems.com Subject: Re: Coordinates on a surface James, the one (could be + or - depending) may or may not be necessary depending on whether the display coords are zero or 1 based, and whether the display window height is given in terms of total pixels or maximum pixel index. I believe vtk interactors handle this issue for you automatically whereas in your code you are bypassing them. Dean > > From: "James C. Robinson" > Date: 2003/08/20 Wed AM 05:16:00 GMT-04:00 > To: > Subject: Coordinates on a surface > > > Dean, > > Many thanks for the ideas. I will set about implementing a change in my > code. My guess is that the structures/objects that I have in place will > work, but that the y coord was the problem. Where in the documentation does > it tell us that we have to transform the display coordinates in that > manner??? > > Regards, > > Jim > > PS: What is the "+1.0f" for? (adding a 1) - is the range of the screen 1 - > DWH?? > ______________________ > > James C. Robinson, PhD, > Chartered Engineer, > Kepler Simulation Systems Ltd., > Unit 10, > Melbourne Business Park, > Model Farm Road, > Cork, > Eire > > Tel: +353-21-4822028 > Tel: +353-21-4817267 > Tel: +353-87-2393010 > Fax: +353-21-4822721 > E-mail: j.robinson at kepler-systems.com > ______________________ > > > From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820142854.AC5BD1AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From marcelluswalace at hotmail.com Wed Aug 20 10:51:41 2003 From: marcelluswalace at hotmail.com (marcellus walace) Date: Wed, 20 Aug 2003 16:51:41 +0200 Subject: [vtkusers] (no subject) Message-ID: HI vtkusers, I want to view sagittal coronal and transverl slcie of a volume and I'm using vtkLookupTable. But when I try to compile I've a linkage error can you help me: The linkage error: DicomImageViewer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkLookupTable * __cdecl vtkLookupTable::New(void)" (__imp_?New at vtkLookupTable@@SAPAV1 at XZ) Debug/DicomImageViewer.exe : fatal error LNK1120: 1 unresolved externals My code: // create a b/w lookup table vtkLookupTable *bwLut = vtkLookupTable::New(); bwLut->SetTableRange (0, 2000); bwLut->SetSaturationRange (0, 0); bwLut->SetHueRange (0, 0); bwLut->SetValueRange (0, 1); bwLut->Build (); Help please Regards _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820151526.490771AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From joes at isi.uu.nl Wed Aug 20 12:02:58 2003 From: joes at isi.uu.nl (Joes Staal) Date: Wed, 20 Aug 2003 18:02:58 +0200 Subject: [vtkusers] How to remove a CellArray from a vtkPolyDataSet? Message-ID: <6.0.0.14.0.20030820175653.02774e00@pop.xs4all.nl> Hi, I am making a tool in which a vtkPolyDataSet consisting of N tubes is shown. I want that a user can click on a tube that the whole tube is e.g. colored in another color. I have put a vtkCellPicker in an interactor and can get in this way the pickpostion, coordinates, cellid and the subid (I have no clue what the subid is, but I guess that is not important to my question): float* pickpos = pPicker->GetPickPosition(); float* pcoord = pPicker->GetPCoords(); int cellid = pPicker->GetCellId(); int subid = pPicker->GetSubId(); Now, how do I get from the CellId to the vtkCellArray it belongs to? Regards, Joes. From phoenixzz at sina.com Wed Aug 20 09:29:34 2003 From: phoenixzz at sina.com (=?GB2312?Q?=CE=CC=CF=FE=D2=E3?=) Date: Wed, 20 Aug 2003 21:29:34 +0800 Subject: [vtkusers] How to create a vtkActor from vtkPolyData with scalar Message-ID: <20030820161526.B0FB01AB14@public.kitware.com> vtkusers?hi? I have a trouble about scalar. I have a vtkPolyData with scalar and How can I create a vtkActor from this vtkPolyData with scalar. I try to tranform the vtkPolyData to vtkPolyDataMapper but the vtkPolyDataMapper has no scalar. Please help me! ????????phoenixzz at sina.com ??????????2003-08-20 From mista.tapas at gmx.net Wed Aug 20 12:29:14 2003 From: mista.tapas at gmx.net (Florian Schmidt) Date: Wed, 20 Aug 2003 18:29:14 +0200 Subject: [vtkusers] vtkImageCast Extent-problem Message-ID: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> Hi, i have a volume rendering pipeline which is very basic and the first step in it is a vtkImageCast to get the data into unsigned short format. Now here's the problem: The first vtkImageData which is fed into the pipeline is rendered correctly, but when i lateron change the input of the vtkImageCast to a new vtkImageData [with a different Extent], somehow only the old extent is rendered. Here's some more details: First i setup the rendering pipeline with some dummy data which is vtkImageData with an extent like 0,32,0,32,0,32. Lateron upon user interaction i want to render a volume of extent 0,256,0,128,0,64, but only the part of this imagedata which fits into the 0,32,0,32,0,32 extent is rendered.. what am i doing wrong? Can i somehow tell the pipeline to propagate the changed extent from the start to the end? If you need more details or example code, let me know.. T.I.A. Florian Schmidt From baghdadi at sickkids.ca Wed Aug 20 12:38:59 2003 From: baghdadi at sickkids.ca (Leila Baghdadi) Date: Wed, 20 Aug 2003 12:38:59 -0400 (EDT) Subject: [vtkusers] vtkImageCast Extent-problem In-Reply-To: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> Message-ID: Florian I believe you must call Update() and/or UpdateInformation() or even Modified() to somehow let the pipeline know that the data has changed hope this helps Leila On Wed, 20 Aug 2003, Florian Schmidt wrote: > > Hi, > > i have a volume rendering pipeline which is very basic and the first step in it is a vtkImageCast to get the data into unsigned short format. Now here's the problem: > > The first vtkImageData which is fed into the pipeline is rendered correctly, but when i lateron change the input of the vtkImageCast to a new vtkImageData [with a different Extent], somehow only the old extent is rendered. > > Here's some more details: First i setup the rendering pipeline with some dummy data which is vtkImageData with an extent like 0,32,0,32,0,32. Lateron upon user interaction i want to render a volume of extent 0,256,0,128,0,64, but only the part of this imagedata which fits into the 0,32,0,32,0,32 extent is rendered.. what am i doing wrong? Can i somehow tell the pipeline to propagate the changed extent from the start to the end? > > If you need more details or example code, let me know.. > > T.I.A. Florian Schmidt > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From king.benjamin at mh-hannover.de Wed Aug 20 13:43:47 2003 From: king.benjamin at mh-hannover.de (Benjamin King) Date: Wed, 20 Aug 2003 18:43:47 +0100 Subject: [vtkusers] vtkImageCast Extent-problem In-Reply-To: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> References: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> Message-ID: Hi Florian, your problem is caused by the vtkVolumeMapper class. It uses a vtkImageClip object whose extent isn't reset correctly when the input changes. There is a new method vtkVolumeMapper::SetUseImageClipper that looks promising. I didn't test it, but you can try to switch the vtkImageClip off. If this doesn't work, there is some code in vtkVolumeMapper::SetInput that resets the extent of the vtkImageClip which has been commented out. You can try to put that back in. Hope it helps, Benjamin On Wed, 20 Aug 2003 18:29:14 +0200, Florian Schmidt wrote: > > Hi, > > i have a volume rendering pipeline which is very basic and the first step > in it is a vtkImageCast to get the data into unsigned short format. Now > here's the problem: > > The first vtkImageData which is fed into the pipeline is rendered > correctly, but when i lateron change the input of the vtkImageCast to a > new vtkImageData [with a different Extent], somehow only the old extent > is rendered. > > Here's some more details: First i setup the rendering pipeline with some > dummy data which is vtkImageData with an extent like 0,32,0,32,0,32. > Lateron upon user interaction i want to render a volume of extent > 0,256,0,128,0,64, but only the part of this imagedata which fits into the > 0,32,0,32,0,32 extent is rendered.. what am i doing wrong? Can i somehow > tell the pipeline to propagate the changed extent from the start to the > end? > > If you need more details or example code, let me know.. > > T.I.A. Florian Schmidt > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Benjamin King Institut f?r Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From mista.tapas at gmx.net Wed Aug 20 13:21:00 2003 From: mista.tapas at gmx.net (Florian Schmidt) Date: Wed, 20 Aug 2003 19:21:00 +0200 Subject: [vtkusers] vtkImageCast Extent-problem In-Reply-To: References: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> Message-ID: <20030820192100.529f92e9.mista.tapas@gmx.net> On Wed, 20 Aug 2003 12:38:59 -0400 (EDT) Leila Baghdadi wrote: > Florian > > I believe you must call Update() and/or UpdateInformation() or even > Modified() to somehow let the pipeline know that the data has changed > I did call Update() on pretty much every part of the pipeline allready. Didn't help. I'll give Modified() also a try.. Thanks for your help :) Regards Florian Schmidt From mista.tapas at gmx.net Wed Aug 20 13:25:03 2003 From: mista.tapas at gmx.net (Florian Schmidt) Date: Wed, 20 Aug 2003 19:25:03 +0200 Subject: [vtkusers] vtkImageCast Extent-problem In-Reply-To: References: <20030820182914.6bdcbb2b.mista.tapas@gmx.net> Message-ID: <20030820192503.43190de8.mista.tapas@gmx.net> On Wed, 20 Aug 2003 18:43:47 +0100 Benjamin King wrote: > Hi Florian, > > your problem is caused by the vtkVolumeMapper class. It uses a vtkImageClip > object whose extent isn't reset correctly when the input changes. There is > a new method vtkVolumeMapper::SetUseImageClipper that looks promising. I > didn't test it, but you can try to switch the vtkImageClip off. > If this doesn't work, there is some code in vtkVolumeMapper::SetInput that > resets the extent of the vtkImageClip which has been commented out. You can > try to put that back in. Thanks for the infos :) I will give this a try tomorrow [when i'm back at work]. Regards, Florian Schmidt From dean.inglis at camris.ca Wed Aug 20 13:30:22 2003 From: dean.inglis at camris.ca (Dean Inglis) Date: Wed, 20 Aug 2003 13:30:22 -0400 Subject: [vtkusers] vtkImageCast Extent-problem Message-ID: Florian, try UpdateWholeExtent() on all your pipeline classes instead of Update() ... Dean From schwarz at evl.uic.edu Wed Aug 20 14:31:46 2003 From: schwarz at evl.uic.edu (Nicholas Schwarz) Date: Wed, 20 Aug 2003 13:31:46 -0500 (CDT) Subject: [vtkusers] Re: hardware stereo swapped LR images in raycast, but not 2D texture, in volume rendering In-Reply-To: <20030820082201.1697.48353.Mailman@public.kitware.com> Message-ID: Hi, I am also experiencing reversed stereo pairs (i.e. the left eye is displayed where the right eye should be, and the right eye is displayed where the left eye should be) when using RayCasting in CrystalEyes mode. I do not think it has anything to do with you're mayavi stuff because I'm not using it. I do think the problem might be in vtkVolumeRayCastMapper. I posted a message about this on 11 August 2003 here http://public.kitware.com/pipermail/vtkusers/2003-August/019505.html, but I still don't have a solution. If you discover a fix please let me know. ------------------------------------------------------------------------- Nicholas Schwarz Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu Department of Computer Science Telephone: 312-996-3002 University of Illinois at Chicago Facsimile: 312-413-7585 ------------------------------------------------------------------------- > Date: Tue, 19 Aug 2003 15:14:50 +0300 > From: "Dr. Daniel James White PhD" > To: mayavi-users at lists.sourceforge.net, vtkusers at vtk.org > Subject: [vtkusers] hardware stereo swapped LR images in raycast, but not 2D texture in volume rendering > > Hi , > > I am experiencing a strange stereo problem using VTK with the mayavi=20 > frontend, > concerning display of hardware stereo using a crystaleyes glasses system > on a redhat linux 8.0 box with ATI radeon 7500, and the Xig.com Xserver=20= > > for quad buffered stereo. > > When I load in the IronProtein.vtk example file > and use the new Mayavi module > volume > by Gerard Gorman (see mayavi list recently) > > then turn on the > SetStereoTypetoCrystalEyes > and > StereoRenderOn > in the > Configure vtkXOpenGLRenderWindow > dialog box > > Now when I rotate the data set , I think the faster=20 > vtkVolumeTextureMapper2D is used. > In hardware stereo this looks correct (but it is fuzzy so a bit hard to=20= > > tell) > > however, when the rotation is finished the slower > vtkVolumeRayCastMapper is used for a nice rendered image. > When rendering is finished the left and right images are displayed=20 > incorrectly! > What the dialog boxes think is the right image is actually the left=20 > image, and vice versa. > > This behavior is also seen with a python script I cobbled together to=20 > display stacks of tiff images > using ivtk from mayavi. > > Is the problem a bug in the vtkVolumeTextureMapper2D or somewhere=20 > upstream? > > Hardware stereo functions correctly in other software such as pymol and=20= > > bodil. > > Previously I have applied a little hack to mayavi to enable stereo=20 > viewing as suggested by > Prabhu Ramachandran. > > also SetStereoTypeToLeft gives the same incorrect/swapped double image=20= > > as SetStereoTypetoCrystalEyes. > but SetStereoTypeToRight only displays 1 image to both eyes. > > When StereoRenderOn is turned off, or not turned on, same thing, > only the right eye sees and image, and the screen is blank to the left=20= > > eye, casing a flickering, or half intensity image. > > I don't know if the hack to mayavi has caused this problem? > I don't think the flickering happened before I applied the hack. > > any ideas VTK stereo folks? > > cheers > > Dan > > > Dr. Daniel James White BSc. (Hons.) PhD > Cell Biology > Department of biological and environmental science > PO Box 35 > University of Jyv=E4skyl=E4 > Jyv=E4skyl=E4 FIN 40014 > Finland > +358 (0)14 260 4183 (work) > +358 (0)414740463 (mob) > > http://www.chalkie.org.uk > dan at chalkie.org.uk > white at cc.jyu.fi From jvard at tcd.ie Wed Aug 20 15:45:57 2003 From: jvard at tcd.ie (John Vard) Date: Wed, 20 Aug 2003 19:45:57 +0000 Subject: [vtkusers] Extracting Point Coordinate Data??? Message-ID: <200308201945.57781.jvard@tcd.ie> Dear Users I've set up a situation where I have one unstructured grid and polydata in the form of 3 points. I'm looking to transform both thereby maintaining the coordinate relationship. I've used two separate vtkTransformFilter's which works fine. My problem concerns the retrieval of the new 3D point coordinates from the Filter. Is there an object member that outputs the new point data in array form?? -- Regards John Vard From Chris.Hood at noaa.gov Wed Aug 20 17:53:44 2003 From: Chris.Hood at noaa.gov (Chris Hood) Date: Wed, 20 Aug 2003 15:53:44 -0600 Subject: [vtkusers] Scalar Bar & Text Dragbility Problem In-Reply-To: Message-ID: <5.2.1.1.0.20030820155246.014883f8@cripplecreek.sec.noaa.gov> I switch the scalarBarActor to a scalarBarWidget, but nothing changed. It's still not dragable. At 11:01 AM 8/19/2003 -0400, you wrote: >Chris, > > > I've set a scalarbar to be dragable (actor1.DragableOn();), but it is > >not dragable. Does anyone know about this? Is it a vtk bug or is there some > >other setting I'm missing? I've had the same problem with a vtkTextActor. > >there is a widget, vtkScalarBarWidget that allows you to do this. >See /Hybrid/Testing/Cxx/TestScalarBarWidget.cxx for details > >Dean ____________________________________ Chris Hood Graduate Student Research Assistant University of Colorado, Boulder Space Environment Center - NOAA From David.Pont at ForestResearch.co.nz Wed Aug 20 17:59:43 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Thu, 21 Aug 2003 09:59:43 +1200 Subject: [vtkusers] Is VTK applicable to a CAD like program? Message-ID: Hi Aaron, interesting problem, I am not sure vtk can do what you want, although I have never worked with textures... so take what follows with plenty of salt... If you just want to attach different textures to 3D models the answer is yes, although there will be a bit of effort to understand and correctly manipulate texture coordinates to get the desired placement. If you want to actually etch the surface of the models, ie deform the geometry, this may be possible if you can dive into the C++ code and cut and paste existing bits of functionality into a class to do it. -If you want to pursue this read up on textures and texture coordinates: point your browser at: http://public.kitware.com/VTK/doc/release/4.0/html/classes.html and search on the page for 'Texture' -It is up to you to segment the different parts of the model. Seperate pieces (polydata), each mapped to a seperate vtk Actor, each with its own texture (possibly blank) is probably the way to go. -I have a suspicion there may be a limit of 1 texture per actor in vtk, so 1 actor per part would avoid this limit. Assign each part a texture, then let the user modify it... -to actually deform (etch) the model surfaces: vtkWarp* classes might do something useful, but I suspect you would have to make a new class that does exactly what they do but using texture as input... ie a new class 'vtkWarpTexture'... start with vtlWarpScalar, find the bit where it gets a scalar and change it to get a scalar from a texture via a texture coordinate... However for your application this implies the model surface would need very high point density to reproduce an etched line... perhaps a class that creates sufficient new polygons to reproduce the new surface... (search the web for 'offset surfaces')... regards Dave Pont Aaron Linnen cc: Sent by: Subject: [vtkusers] Is VTK applicable to a CAD like program? vtkusers-admin@ vtk.org 20/08/2003 10:40 I'm hoping to pick your brains about a software that I'm currently working on, for any ideas and for where VTK might fit in best. The program is a domain specific CAD like program for the design of etched stonework, mostly monuments. The program has a collection of elements (line drawings) that can be placed on the stone, as well as allowing text items to be created and edited. The program has been in use for a number of years and the current design simply lets you edit the main surfaces of the stone as a flat surface, then has a (hand written, and poorly at that) perspective view. The program currently doesn't hand more complicated stones (e.g. made out of several stones, or oddly shaped with curves) It was in looking to rewrite and improve the perspective view that I started looking into VTK. To make use of it, I would need to make actual 3d models for the various stones. Looking into this I had the idea that maybe VTK could help with the editing portion too. My rough idea was if I was making the the 3d models anyways, I should be able to get VTK to generate the shape of the various surfaces that I could use as textures for the 3d view. So the editing would be on the 2d texture maps for now and not need much training for the users. So I'm wondering if given a shape, say a stone vase with 2 flat sides front and back and 2 rounded sides, looking like this in a top down view: ___ (___) (please excuse my feeble attempts at ASCII art!) a) can I tag the 3d model data so that I know which polygons compose each of the 4 sides? What file format handles this nicely? b) can I get the texture shape needed for each of the sides (which may be composed of several polygons) c) would there be a way to handle pictures that wrap one 2 (or more) of the sides? d) what if this vase had a top that can also be engraved? Now a) needs to be able to mark 5 sides, c) potentially might need to wrap something on the front, top and right side for example. e) is there an accurate method of knowing where something is on the texture maps to on the 3d model? Say I needed to add a border exactly 1 inch from the top of the vase? Well, as usual, writing it out has helped my already. If anyone has pointers or ideas on this it would be great. Particular parts of VTK that would apply would be appreciated too. Completely different methods are also welcomed :) If this is deemed too of topic for this list, I apologize and people can follow up off-list if that's more appropriate. Thanks, Aaron _______________________________________________ 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://www.vtk.org/mailman/listinfo/vtkusers From Kevin.Wright at ansys.com Wed Aug 20 16:20:23 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Wed, 20 Aug 2003 16:20:23 -0400 Subject: [vtkusers] Destroying a stand-alone RenderWindow Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDCA4@waterfall.waterloo.cfx.co> Hi All, I have a Win32 application that creates a render window as a separate window. I would like the user to be able to kill this window without exiting the whole program, but when the render window is destroyed using the window manager controls (issuing a WM_DESTROY, I assume), it kills the whole application. Is there any way to make it only kill the render window and leave the rest of the application running? Thanks, Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zxem at my169.com Fri Aug 22 23:54:10 2003 From: zxem at my169.com (Xin Zhao) Date: Sat, 23 Aug 2003 3:54:10 +0000 Subject: [vtkusers] Two renderer in One window Message-ID: Dear VTKall, I try to put two renderer object in one render window. I use Java and vtkPanel class. How can I change the vtkPanel to achieve it. And whether I can add more renderer object into render window at run time? Thanks! ????????????????????????????Xin Zhao ????????????????????????????zxem at my169.com ??????????????????????????????????2003-08-15 -- X Zhao Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello Street, Sheffield S1 4DP Telephone +44 (0)114 278 9436 Email acp02xz at sheffield.ac.uk From zxem at my169.com Sat Aug 23 01:05:40 2003 From: zxem at my169.com (Xin Zhao) Date: Sat, 23 Aug 2003 5:5:40 +0000 Subject: [vtkusers] Change isosurface color Message-ID: Dear VTKall, I want to change the isosurface color. The default color is blue. I have used "volActor.GetProperty().SetColor(0,1,1);". But it did not work. Does anyone can help me. Thanks! ????????????????????????????Xin Zhao ????????????????????????????zxem at my169.com ??????????????????????????????????2003-08-15 -- X Zhao Department of Computer Science, University of Sheffield, Regent Court, 211 Portobello Street, Sheffield S1 4DP Telephone +44 (0)114 278 9436 Email acp02xz at sheffield.ac.uk From minsu.kim at yumail.ac.kr Thu Aug 21 01:52:46 2003 From: minsu.kim at yumail.ac.kr (Min-Su KIM) Date: Thu, 21 Aug 2003 14:52:46 +0900 Subject: [vtkusers] Two renderer in One window References: Message-ID: <001701c367a8$7e95f7b0$31a7e5a5@PortableMinSu> Enjoy THIS in c++ code :) ---- vtkPolyDataReader *Reader = vtkPolyDataReader::New(); Reader->SetFileName("Model1.vtk"); Reader->Update(); vtkPolyDataReader *Reader2 = vtkPolyDataReader::New(); Reader->SetFileName("Model2.vtk"); Reader->Update(); //vtkTransform vtkTransform *Transform = vtkTransform::New(); Transform->Identity(); Transform->RotateX(-90); Transform->RotateY(0); Transform->RotateZ(90); //vtkTransformPolyDataFilter for Original vtkTransformPolyDataFilter *RotationSource = vtkTransformPolyDataFilter::New(); RotationSource->SetTransform(Transform); RotationSource->SetInput(Reader->GetOutput()); RotationSource->Update(); //vtkTransformPolyDataFilter for Target vtkTransformPolyDataFilter *RotationTarget = vtkTransformPolyDataFilter::New(); RotationTarget->SetTransform(Transform); RotationTarget->SetInput(Reader2->GetOutput()); RotationTarget->Update(); //Mapper for Source vtkPolyDataMapper *MapperSource = vtkPolyDataMapper::New(); MapperSource->SetInput(RotationSource->GetOutput()); MapperSource->Update(); //Mapper for Target vtkPolyDataMapper *MapperTarget = vtkPolyDataMapper::New(); MapperTarget->SetInput(RotationTarget->GetOutput()); MapperTarget->Update(); //Actor for Source vtkActor *ActorSource =vtkActor::New(); ActorSource->SetMapper(MapperSource); ActorSource->GetProperty()->SetColor(0.6,0.4,0.7); //Actor for Target vtkActor *ActorTarget =vtkActor::New(); ActorTarget->SetMapper(MapperTarget); ActorTarget->GetProperty()->SetColor(0.89, 0.81, 0.34); //Renderer for Source vtkRenderer *RendererSource = vtkRenderer::New(); RendererSource->SetViewport(0.0,0.0,0.5,1.0); RendererSource->AddActor(ActorSource); RendererSource->SetBackground(0,0,0); //Renderer for Target vtkRenderer *RendererTarget = vtkRenderer::New(); RendererTarget->SetViewport(0.5,0.0,1.0,1.0); RendererTarget->AddActor(ActorTarget); RendererTarget->SetBackground(0,0,0); //Camera for synchronization between two renderers vtkCamera *Camera = vtkCamera::New(); RendererTarget->SetActiveCamera(RendererSource->GetActiveCamera()); //RenderWindow vtkRenderWindow *renWindow = vtkRenderWindow::New(); renWindow->AddRenderer(RendererSource); renWindow->AddRenderer(RendererTarget); renWindow->SetSize(600,300); //User's (keyboard and mouse) interactor vtkRenderWindowInteractor *WindowInteractor = vtkRenderWindowInteractor::New(); WindowInteractor->SetRenderWindow(renWindow); cout << "Keyboard and Mouse Interaction ... ON " << endl; //Visualization Starts renWindow->Render(); cout << "Visualization ... Start" << endl; //Description for RenderWindowInterator cout << " S : Surface " << endl << " W : Wireframe" << endl; cout << " Left Mouse : Rotation" << endl; cout << " Right Mouse : Zoom" << endl; cout << " Shift + Mouse : Translation" << endl; cout << " E or Q : QUIT the Visualization" << endl; WindowInteractor->Start(); //Destructor after visualization WindowInteractor->Delete(); renWindow->Delete(); RendererSource->Delete(); RendererTarget->Delete(); ActorSource->Delete(); ActorTarget->Delete(); MapperSource->Delete(); MapperTarget->Delete(); RotationSource->Delete(); RotationTarget->Delete(); ---- ============================================ Min-Su Kim min-su.kim at creatis.insa-lyon.fr minsu.kim at yumail.ac.kr Tel (33) 4 72 43 64 69 (33) 6 61 23 74 44 Fax (33) 4 72 43 85 26 CREATIS INSA Batiment Blaise Pascal 20 Avenue Einstein 69621 Villeurbanne cedex FRANCE URL http://www-creatis.insa-lyon.fr MSN kmsrefugee at hotmail.com ============================================ ----- Original Message ----- From: "Xin Zhao" To: Sent: Saturday, August 23, 2003 12:54 PM Subject: [vtkusers] Two renderer in One window > Dear VTKall, > > I try to put two renderer object in one render window. > I use Java and vtkPanel class. How can I change the vtkPanel to achieve it. > And whether I can add more renderer object into render window at run time? > > Thanks! > > ??????????????Xin Zhao > ??????????????zxem at my169.com > ?????????????????2003-08-15 > > -- > X Zhao > Department of Computer Science, University of Sheffield, > Regent Court, 211 Portobello Street, Sheffield S1 4DP > Telephone +44 (0)114 278 9436 > Email acp02xz at sheffield.ac.uk > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > From dan at chalkie.org.uk Thu Aug 21 03:53:14 2003 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Thu, 21 Aug 2003 10:53:14 +0300 Subject: [vtkusers] Re: vtkVolumeRayCastMapper bug? in hardware stereo In-Reply-To: <20030820183201.1302.62707.Mailman@public.kitware.com> Message-ID: <847B3935-D3AC-11D7-9AC6-000393686412@chalkie.org.uk> Dear vtkVolumeRayCastMapper people, It looks like several people are experiencing a bug in vtkVolumeRayCastMapper or a related class which is causing hardware stereo L and R images to be swapped, see below. my machine setup is described below (2nd message) Is it possible to fix this, as it would be reall nice if my VTK applications had working hardware stereo! cheers Dan > Message: 17 > Date: Wed, 20 Aug 2003 13:31:46 -0500 (CDT) > From: Nicholas Schwarz > Reply-To: Nicholas Schwarz > To: vtkusers at vtk.org > Subject: [vtkusers] Re: hardware stereo swapped LR images in raycast, > but not 2D texture, in volume rendering > > Hi, > > I am also experiencing reversed stereo pairs (i.e. the left eye is > displayed where the right eye should be, and the right eye is displayed > where the left eye should be) when using RayCasting in CrystalEyes > mode. I > do not think it has anything to do with you're mayavi stuff because I'm > not using it. I do think the problem might be in > vtkVolumeRayCastMapper. > > I posted a message about this on 11 August 2003 here > http://public.kitware.com/pipermail/vtkusers/2003-August/019505.html, > but > I still don't have a solution. > > If you discover a fix please let me know. > > ----------------------------------------------------------------------- > -- > Nicholas Schwarz > Electronic Visualization Laboratory E-Mail: > schwarz at evl.uic.edu > Department of Computer Science Telephone: 312-996-3002 > University of Illinois at Chicago Facsimile: 312-413-7585 > ----------------------------------------------------------------------- > -- > >> Date: Tue, 19 Aug 2003 15:14:50 +0300 >> From: "Dr. Daniel James White PhD" >> To: mayavi-users at lists.sourceforge.net, vtkusers at vtk.org >> Subject: [vtkusers] hardware stereo swapped LR images in raycast, but >> not 2D texture in volume rendering >> >> Hi , >> >> I am experiencing a strange stereo problem using VTK with the >> mayavi=20 >> frontend, >> concerning display of hardware stereo using a crystaleyes glasses >> system >> on a redhat linux 8.0 box with ATI radeon 7500, and the Xig.com >> Xserver=20= >> >> for quad buffered stereo. >> >> When I load in the IronProtein.vtk example file >> and use the new Mayavi module >> volume >> by Gerard Gorman (see mayavi list recently) >> >> then turn on the >> SetStereoTypetoCrystalEyes >> and >> StereoRenderOn >> in the >> Configure vtkXOpenGLRenderWindow >> dialog box >> >> Now when I rotate the data set , I think the faster=20 >> vtkVolumeTextureMapper2D is used. >> In hardware stereo this looks correct (but it is fuzzy so a bit hard >> to=20= >> >> tell) >> >> however, when the rotation is finished the slower >> vtkVolumeRayCastMapper is used for a nice rendered image. >> When rendering is finished the left and right images are displayed=20 >> incorrectly! >> What the dialog boxes think is the right image is actually the left=20 >> image, and vice versa. >> >> This behavior is also seen with a python script I cobbled together >> to=20 >> display stacks of tiff images >> using ivtk from mayavi. >> >> Is the problem a bug in the vtkVolumeTextureMapper2D or somewhere=20 >> upstream? >> >> Hardware stereo functions correctly in other software such as pymol >> and=20= >> >> bodil. >> >> Previously I have applied a little hack to mayavi to enable stereo=20 >> viewing as suggested by >> Prabhu Ramachandran. >> >> also SetStereoTypeToLeft gives the same incorrect/swapped double >> image=20= >> >> as SetStereoTypetoCrystalEyes. >> but SetStereoTypeToRight only displays 1 image to both eyes. >> >> When StereoRenderOn is turned off, or not turned on, same thing, >> only the right eye sees and image, and the screen is blank to the >> left=20= >> >> eye, casing a flickering, or half intensity image. >> >> I don't know if the hack to mayavi has caused this problem? >> I don't think the flickering happened before I applied the hack. >> >> any ideas VTK stereo folks? >> >> cheers >> >> Dan >> >> >> Dr. Daniel James White BSc. (Hons.) PhD >> Cell Biology >> Department of biological and environmental science >> PO Box 35 >> University of Jyv=E4skyl=E4 >> Jyv=E4skyl=E4 FIN 40014 >> Finland >> +358 (0)14 260 4183 (work) >> +358 (0)414740463 (mob) >> >> http://www.chalkie.org.uk >> dan at chalkie.org.uk >> white at cc.jyu.fi Dr. Daniel James White BSc. (Hons.) PhD Cell Biology Department of biological and environmental science PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 (0)14 260 4183 (work) +358 (0)414740463 (mob) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From seanru_nigu at yahoo.es Thu Aug 21 09:40:48 2003 From: seanru_nigu at yahoo.es (=?iso-8859-1?q?Sergio=20Andr=E9s?=) Date: Thu, 21 Aug 2003 15:40:48 +0200 (CEST) Subject: [vtkusers] Can I add new tags to my VTK XML file?? Message-ID: <20030821134048.80190.qmail@web21505.mail.yahoo.com> Hi everybody! My problem is that I would like to add some information to may VTK file (XML format) about the number of dimensions of points that I am working with. That is, 2D or 3D. I thought that it will be possible to write a new XML tag or attribute (for instance, '') on a VTK file. But now I don't know how recover this information, except by first parsing the XML and then read it with vtkXMLPolyDataReader, so I will have to read it twice. If anybody knows something more about this (extra info in VTK file), I would appreciate some help. Thanks!! Sergio. ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From senet at v2t.de Thu Aug 21 10:54:34 2003 From: senet at v2t.de (Christian M. Senet (V2T)) Date: Thu, 21 Aug 2003 16:54:34 +0200 Subject: [vtkusers] vtkActor2D Message-ID: <5.2.1.1.0.20030821165042.00b26100@post.strato.de> Hi there, we have some problems creating axes with vtkActor2D. It seems to be, that the rounding works not very adequate. (For example, if we have 543 pixel the axis gives back 600 pixel. Has anybody a solution for that problem? Christian From schwarz at evl.uic.edu Thu Aug 21 13:39:35 2003 From: schwarz at evl.uic.edu (Nicholas Schwarz) Date: Thu, 21 Aug 2003 12:39:35 -0500 (CDT) Subject: [vtkusers] vtkVolumeRayCastMapper bug? in hardware stereo In-Reply-To: <20030821102545.18844.91612.Mailman@public.kitware.com> Message-ID: Hi, If you are only using ray casting you can attempt to "correct" the swapped eyes by setting the camera's eye angle to a negative number like this 'ren -> GetActiveCamera() -> SetEyeAngle(-2.0);' where 'ren' is of type vtkRenderer*. This will only work if you are using VTK's flawed ray casting methods. If you try to intermix a ray casted image with polygonal objects (or anything else in VTK that properly generates stereo pairs) and have a negative eye angle the stereo pairs for the polygonal objects (or the correctly generated paris) will be reversed. ------------------------------------------------------------------------- Nicholas Schwarz Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu Department of Computer Science Telephone: 312-996-3002 University of Illinois at Chicago Facsimile: 312-413-7585 ------------------------------------------------------------------------- > Message: 8 > Date: Thu, 21 Aug 2003 10:53:14 +0300 > From: "Dr. Daniel James White PhD" > To: vtkusers at vtk.org > Subject: [vtkusers] Re: vtkVolumeRayCastMapper bug? in hardware stereo > > Dear vtkVolumeRayCastMapper people, > > It looks like several people are experiencing a bug in > vtkVolumeRayCastMapper > or a related class which is causing hardware stereo L and R images to =20= > > be swapped, see below. > > my machine setup is described below (2nd message) > > Is it possible to fix this, as it would be reall nice if my VTK =20 > applications had working hardware stereo! > > cheers > > Dan From John.Dubois at med.ge.com Thu Aug 21 16:16:36 2003 From: John.Dubois at med.ge.com (Dubois, John R (MED)) Date: Thu, 21 Aug 2003 15:16:36 -0500 Subject: [vtkusers] Simple questions? Message-ID: Sorry to bother you all, but I am new to vtk and I have a few questions that I can't find answers to in the FAQs and I haven't had much luck searching the archives. Well here are my questions: 1. What is the deal with this New() and Delete() functions and hiding the constructors? Why not simply overload the standard new and delete (and new[] and delete[]) for the class? Doesn't this New() and Delete() break the normal C++ allocation and free mechanisim? Consider this vtkActor* actors = new vtkActor[100];. This is not an unreasonable thing to do, I suspect, but can't be done with the current design. Is there a compelling reason why custom method "New()" whas chosen over the standard native "operator new()"? 2. There appears to be a few bugs in the smart pointer architecture, or am I missing something? Why does the reference count start at 1? This causes the smart pointer clean up to fail; consider the trivial case of: {vtkSmartPointer cone = vtkConeSource::New();}. The operator =() increments the reference count to 2 so than when cone goes out of scope at } the reference count is only decremented to 1 and the object is leaked. 3. The assignment operator for smart pointers calls Swap on a const reference. Swap() is not a const member. Is it not poor style to modify your const arguments? 4. There is no vtkSmartPointer& operator=(const vtkSmartPointer& r) defined so assignments between vtkSmartPointers will not reference count properly (Register is not called on the RHS and the LHS is not UnRegister()ed). 5. Why isn't the type bool used in the library? I've seen a few functions that appear to be "yes/no" kinds of functions but they return int. This makes it impossible to overload or specialize for bool types. Is there a good reason for not using bool? 6. Is there a bug in SetNthOutput? I seems to cause a Register() call to "this" (itself) - the object effectively references itself so it can never be deleted. In the tests I did the object was in fact leaked (with a reference count of 2 - one for the reference count initialization and one for the self-reference). Any help with this would be appreciated. GE logoGE Medical Systems _______________________________________________ John Dubois Software Programmer Functional and Molecular Imaging Phone: 519-858-5009 E-mail: John.Dubois at med.ge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John R Dubois (MED) (E-mail).vcf Type: application/octet-stream Size: 359 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GE48.gif Type: image/gif Size: 1151 bytes Desc: not available URL: From cpanagio at cs.ucl.ac.uk Thu Aug 21 17:47:41 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Thu, 21 Aug 2003 22:47:41 +0100 Subject: [vtkusers] HELP! pixel values from image data Message-ID: <3F453DFD.9060405@cs.ucl.ac.uk> hi all could someone "enlighten" me how could i access the pixel values of an image returned from the image reader? (256x256 image, is there any simple way to get the 256x256 array and lets say get the pixel value for pixel [18,48]?) in addition, if i use file prefix and the reader reads a number of slices is it possible to retrieve the array for a specific slice? i would really appreciate any response chris From will.schroeder at kitware.com Thu Aug 21 17:53:20 2003 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 21 Aug 2003 17:53:20 -0400 Subject: [vtkusers] Change isosurface color In-Reply-To: Message-ID: <5.1.0.14.0.20030821175200.039a7d48@pop.biz.rr.com> If there are scalars in the data then you have to use ScalarVisibilityOff() on the mapper. If on, the scalars color the object. If disabled with ScalarVisibilityOff(), then the actor controls the color. Will At 05:05 AM 8/23/2003 +0000, Xin Zhao wrote: >Dear VTKall, > > I want to change the isosurface color. The default color is blue. > > I have used "volActor.GetProperty().SetColor(0,1,1);". > But it did not work. > > Does anyone can help me. > > Thanks! > William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Aug 22 03:24:30 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 22 Aug 2003 09:24:30 +0200 Subject: [vtkusers] HELP! pixel values from image data In-Reply-To: <3F453DFD.9060405@cs.ucl.ac.uk> References: <3F453DFD.9060405@cs.ucl.ac.uk> Message-ID: <3F45C52E.1@creatis.insa-lyon.fr> Christos, Please search the mailing list archive before asking a question, thanks. Have a look at a previous post: http://public.kitware.com/pipermail/vtkusers/2003-June/018476.html HTH mathieu Christos Panagiotou wrote: > hi all > > could someone "enlighten" me how could i access the pixel values of an > image returned from the image reader? > (256x256 image, is there any simple way to get the 256x256 array and > lets say get the pixel value for pixel [18,48]?) > > in addition, if i use file prefix and the reader reads a number of > slices is it possible to retrieve the array for a specific slice? > > i would really appreciate any response > > chris > > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From vermaas at astron.nl Fri Aug 22 04:07:57 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 22 Aug 2003 10:07:57 +0200 Subject: [vtkusers] rotating camera around focalpoint, how? Message-ID: Is there a simple way to rotate the camera around the focalpoint? When I use roll, pitch, yaw etc. the cam just starts looking in another direction. (I do not want to rotate my data because then the x,y,z coords will change right?) From marcio_mathias at yahoo.com Fri Aug 22 05:27:35 2003 From: marcio_mathias at yahoo.com (Marcio Antonio Mathias) Date: Fri, 22 Aug 2003 02:27:35 -0700 (PDT) Subject: [vtkusers] HELP! pixel values from image data In-Reply-To: <3F453DFD.9060405@cs.ucl.ac.uk> Message-ID: <20030822092735.58891.qmail@web14206.mail.yahoo.com> Hi, Cristos, I am not an expert in VTK but I got some help in a similar problem when trying to retrieve an specific value from a 3D matrix stored in a data file. Please check the method "GetScalarComponentAsFloat" (thanks Mathieu). It might solve your problem. /Marcio. --- Christos Panagiotou wrote: > hi all > > could someone "enlighten" me how could i access the > pixel values of an > image returned from the image reader? > (256x256 image, is there any simple way to get the > 256x256 array and > lets say get the pixel value for pixel [18,48]?) > > in addition, if i use file prefix and the reader > reads a number of > slices is it possible to retrieve the array for a > specific slice? > > i would really appreciate any response > > chris > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers ===== Marcio Antonio Mathias Registered Linux user number 248543 Get counted: http://counter.li.org/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From vermaas at astron.nl Fri Aug 22 07:59:33 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 22 Aug 2003 13:59:33 +0200 Subject: [vtkusers] how do I traverse a probe (a line) result to get the values? Message-ID: Hi, I shoot a line (a vtkLineSource) through a cube as a vtkProbeFilter and I get a nice xyplot with the values of the scalars on that line when I connect the probe to the xyplot like this: myLine->SetPoint1(x1,y1,z1); myLine->SetPoint2(x2,y2,z2); myProbe->SetInput((vtkDataSet*) myLine->GetOutput()); myProbe->SetSource((vtkDataSet*)myImageData); myXYplot->AddInput(myProbe->GetOutput()); QUESTION: But how can I traverse this output to read those values myself? (I try to find the highest pixel value in datacube this way, in the direction of a pick. It seems like a terribly elaborate way of doing it, but I cannot find a better way, so if anybody has suggestions please let me know). Nico From tarjeik at chemcon.no Fri Aug 22 08:07:48 2003 From: tarjeik at chemcon.no (Tarjei Knapstad) Date: 22 Aug 2003 14:07:48 +0200 Subject: [vtkusers] Getting the scene into view Message-ID: <1061554069.28284.65.camel@cc-intern01> Is there an easy way to move the Camera so that all the currently renderered objects are displayed in the current view? (I've noticed this happens in some of the examples when you press the spacebar in a vtkRenderWindowInteractor, but I haven't been able to track down where it actually happens). Thanks, -- Tarjei From jvard at tcd.ie Fri Aug 22 09:44:57 2003 From: jvard at tcd.ie (John Vard) Date: Fri, 22 Aug 2003 13:44:57 +0000 Subject: [vtkusers] Point coordinates from TransformFilter?? Message-ID: <200308221344.57839.jvard@tcd.ie> How can I retrieve point coordinates (x,y,z) from the output of the TranformFilter. I could write to file and re-read the new transformed coordinates with method -> GetPoint(ptId,x) but that just seems too elaborate. There must be a way of querying the TFilter for the new point positions?? I'd appreciate any help -- Ta John From philippe.pouletaut at utc.fr Fri Aug 22 09:07:50 2003 From: philippe.pouletaut at utc.fr (Philippe Pouletaut) Date: Fri, 22 Aug 2003 15:07:50 +0200 Subject: [vtkusers] vtkContourFilter and vtkSampleFunction with vtk4.2 on Windows Message-ID: <002101c368ae$63c41960$120412ac@utc> I have tested the example 2 (visualising a quadric function) shown in the web site (http://www.vtk.org/example-code.php) with vtk4.2. But I cannot compile the C++ file with VisualC++ because of problem of type compatibility between vtkContourFilter and vtkSampleFunction : the compiler indicates that he cannot convert the input from 'class vtkImageData *' to 'class vtkDataSet *'. I have indicated to VisualC++ the include library : c:\Program Files\vtk42\include\vtk. I give in the following the lines of program : ======================================================== #include "vtkProperty.h" #include "vtkQuadric.h" #include "vtkSampleFunction.h" #include "vtkContourFilter.h" #include "vtkOutlineFilter.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkRenderWindow.h" #include "vtkRenderer.h" #include "vtkRenderWindowInteractor.h" void main () { // create the quadric function definition vtkQuadric *quadric = vtkQuadric::New(); quadric->SetCoefficients(.5,1,.2,0,.1,0,0,.2,0,0); // sample the quadric function vtkSampleFunction *sample = vtkSampleFunction::New(); sample->SetSampleDimensions(50,50,50); sample->SetImplicitFunction(quadric); // Create five surfaces F(x,y,z) = constant between range specified vtkContourFilter *contours = vtkContourFilter::New(); contours->SetInput(sample->GetOutput()); ======================================================== The last line doesn't work. The same problem occurs with vtkSampleFunction as input for vtkOutlineFilter. Can anyone help me ? I thank you for your next reply or for your attention. Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: From vermaas at astron.nl Fri Aug 22 10:00:16 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 22 Aug 2003 16:00:16 +0200 Subject: [vtkusers] how do I traverse a probe (a line) result to get thevalues? Message-ID: Hi I am afraid that I get an error when I try that: "no matching function call to 'vtkDataArray::GetValue(int &)'" and is there a way to get the number of points in the probe? where you have put the '?' ? Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== >>> "Jean M. Favre" 08/22/03 14:31 PM >>> Nico Vermaas wrote: > myXYplot->AddInput(myProbe->GetOutput()); > > QUESTION: But how can I traverse this output to read those values myself? > for(i=0; i < ?; i++) Probe0->GetOutput()->GetPointData()->GetScalars()->GetValue(i) -- Dr. Jean M. Favre, email:favre at cscs.ch http://www.cscs.ch/people/Favre.html CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40 Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 From mcguinpg at maths.tcd.ie Fri Aug 22 10:10:33 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Fri, 22 Aug 2003 15:10:33 +0100 (BST) Subject: [vtkusers] vtkContourFilter and vtkSampleFunction with vtk4.2 on Windows In-Reply-To: <002101c368ae$63c41960$120412ac@utc> Message-ID: Try including: #include "vtkDataSet.h" #include "vtkImageData.h" and use this: vtkContourFilter *contours = vtkContourFilter::New(); contours->SetInput((vtkDataSet *)sample->GetOutput()); On Fri, 22 Aug 2003, Philippe Pouletaut wrote: > I have tested the example 2 (visualising a quadric function) shown in the web site (http://www.vtk.org/example-code.php) with vtk4.2. > But I cannot compile the C++ file with VisualC++ because of problem of type compatibility between vtkContourFilter and vtkSampleFunction : the compiler indicates that he cannot convert the input from 'class vtkImageData *' to 'class vtkDataSet *'. > I have indicated to VisualC++ the include library : c:\Program Files\vtk42\include\vtk. > > I give in the following the lines of program : > > ======================================================== > #include "vtkProperty.h" > #include "vtkQuadric.h" > #include "vtkSampleFunction.h" > #include "vtkContourFilter.h" > #include "vtkOutlineFilter.h" > #include "vtkPolyDataMapper.h" > #include "vtkActor.h" > #include "vtkRenderWindow.h" > #include "vtkRenderer.h" > #include "vtkRenderWindowInteractor.h" > > void main () > { > // create the quadric function definition > vtkQuadric *quadric = vtkQuadric::New(); > quadric->SetCoefficients(.5,1,.2,0,.1,0,0,.2,0,0); > > // sample the quadric function > vtkSampleFunction *sample = vtkSampleFunction::New(); > sample->SetSampleDimensions(50,50,50); > sample->SetImplicitFunction(quadric); > > // Create five surfaces F(x,y,z) = constant between range specified > vtkContourFilter *contours = vtkContourFilter::New(); > contours->SetInput(sample->GetOutput()); > ======================================================== > > The last line doesn't work. > The same problem occurs with vtkSampleFunction as input for vtkOutlineFilter. > > Can anyone help me ? > > I thank you for your next reply or for your attention. > > Philippe > > > > From ptrigueiros at tvtel.pt Fri Aug 22 12:19:15 2003 From: ptrigueiros at tvtel.pt (Paulo Trigueiros) Date: Fri, 22 Aug 2003 17:19:15 +0100 Subject: [vtkusers] CMake errors Message-ID: <3F464283.2080502@tvtel.pt> I can't use cmake to compile anything. I receive a lot of errors that I can't understand. is there anyone who can help me? Can't I use Visual C++ to compile the vtk examples from the book? How do I do that? From philippe.pouletaut at utc.fr Fri Aug 22 12:17:44 2003 From: philippe.pouletaut at utc.fr (Philippe Pouletaut) Date: Fri, 22 Aug 2003 18:17:44 +0200 Subject: [vtkusers] vtkContourFilter and vtkSampleFunction with vtk4.2 on Windows References: Message-ID: <005d01c368c9$fedff070$120412ac@utc> Trying including: #include "vtkDataSet.h" #include "vtkImageData.h" and using this: vtkContourFilter *contours = vtkContourFilter::New(); contours->SetInput((vtkDataSet *)sample->GetOutput()); and compiling. It works !!! Thank you very much for your smart tip. Philippe From billlist at nycap.rr.com Fri Aug 22 12:37:08 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 22 Aug 2003 12:37:08 -0400 Subject: [vtkusers] CMake errors In-Reply-To: <3F464283.2080502@tvtel.pt> Message-ID: <5.2.0.9.0.20030822123357.05631ec8@pop.nycap.rr.com> A specific problem would be more useful if you want to get help. For example: I did this: 1. xxxxx 2. xxxxx And it gave the following error: xxxxxx CMake does not compile anything. It produces visual studio project files for use with VTK. So, you can use visual studio and cmake, or if you know enough about visual studio, you can create your own project files. However, since VTK is a large package, it is easier to create project files with cmake. -Bill At 12:19 PM 8/22/2003, Paulo Trigueiros wrote: >I can't use cmake to compile anything. >I receive a lot of errors that I can't understand. >is there anyone who can help me? >Can't I use Visual C++ to compile the vtk examples from the book? >How do I do that? > > > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From BRETT.MOORE at ttu.edu Sat Aug 23 16:13:27 2003 From: BRETT.MOORE at ttu.edu (Moore, Brett) Date: Sat, 23 Aug 2003 15:13:27 -0500 Subject: [vtkusers] Help with vtkDelaunay3D - example does not compile. Message-ID: <342EE1B9B362214BA686DEDD1506C2F81AB41A@BRIAREUS.net.ttu.edu> Hi, I need to mesh a 3D point cloud, and I have attempted to replicate the /Examples/Modelling/Tcl/Delaunay3D.tcl in c++ (redhat 9, gcc 3.2.2, VTK 4.2.2): #include "vtkCamera.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkPolyData.h" #include "vtkPolyDataMapper.h" #include "vtkDataSetMapper.h" #include "vtkActor.h" #include "vtkPolyDataMapper.h" #include "vtkBMPWriter.h" #include "vtkDelaunay3D.h" #include "vtkShrinkFilter.h" #include "vtkPoints.h" vtkDelaunay3D *del3D = NULL; vtkDataSetMapper *mapper = NULL; vtkShrinkFilter *shrink = NULL; vtkPolyData *poly = NULL; vtkPoints *points = NULL; points = vtkPoints::New(); for (i=0;i InsertPoint(i, x,y,z); } poly = vtkPolyData::New(); poly -> SetPoints(points); del3D = vtkDelaunay3D::New(); del3D -> SetInput(poly); del3D -> SetTolerance(0.01); del3D -> SetAlpha(0.2); del3D -> BoundingTriangulationOff(); shrink = vtkShrinkFilter::New(); shrink -> SetInput(del3D -> GetOutput()); shrink -> SetShrinkFactor(0.9); mapper = vtkDataSetMapper::New(); mapper -> SetInput(shrink -> GetOutput()); Unfortunately, the above fails to compile: g++ -g -Wno-deprecated -c surface.cpp -I/usr/local/include/vtk surface.cpp: In function `int main(int, char**)': surface.cpp:178: no matching function for call to `vtkShrinkFilter::SetInput( vtkUnstructuredGrid*)' /usr/local/include/vtk/vtkDataSetToUnstructuredGridFilter.h:43: candidates are: virtual void vtkDataSetToUnstructuredGridFilter::SetInput(vtkDataSet*) surface.cpp:182: no matching function for call to `vtkDataSetMapper::SetInput( vtkUnstructuredGrid*)' /usr/local/include/vtk/vtkDataSetMapper.h:59: candidates are: void vtkDataSetMapper::SetInput(vtkDataSet*) The same sort of errors occur if I omit the shrink step and pass del3D -> GetOutput() directly to mapper. Any ideas? This one is killing me!. Thanks, Brett From craig.scott at csiro.au Sun Aug 24 20:00:45 2003 From: craig.scott at csiro.au (Craig N. Scott) Date: 25 Aug 2003 10:00:45 +1000 Subject: [vtkusers] Getting the scene into view In-Reply-To: <1061554069.28284.65.camel@cc-intern01> References: <1061554069.28284.65.camel@cc-intern01> Message-ID: <1061769645.19033.20.camel@debido.vic.cmis.csiro.au> If you are using the vtkInteractorStyleSwitch as your interactor, pressing the "r" key should do what you want. Have a look at: http://www.vtk.org/doc/release/4.2/html/classvtkInteractorStyle.html#_details On Fri, 2003-08-22 at 22:07, Tarjei Knapstad wrote: > Is there an easy way to move the Camera so that all the currently > renderered objects are displayed in the current view? (I've noticed this > happens in some of the examples when you press the spacebar in a > vtkRenderWindowInteractor, but I haven't been able to track down where > it actually happens). > > Thanks, > -- > Tarjei > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- Dr Craig Scott, CSIRO (CMIS) Melbourne, Australia From daz111 at rsphysse.anu.edu.au Sun Aug 24 20:21:45 2003 From: daz111 at rsphysse.anu.edu.au (Darren Freeman) Date: 25 Aug 2003 10:21:45 +1000 Subject: [vtkusers] Building the examples Message-ID: <1061770904.2073.34.camel@asterix.anu.edu.au> Dear List, I admit that this may sound obvious to some people. I go through the installation procedure in the manual, for Linux. I definitely enabled building the examples from cmake -i. I poke about looking for executables, thinking I should find some examples to run. I get totally stumped and do a find for any executables in the VTK directory. All I find is tcl and Python scripts and such, no actual executables I can run. So I don't know what's going on. Make seems to be building cmake.depends as it anounces "cmake.depends is up-to-date" when it finishes successfully. Make all does the same. But no instructions I have found indicate to me that I have to do any more than that. The libraries seem to be built OK. My system: Mandrake Linux 9.1 on a Celeron PC gcc 3.3.1-1mdk GNU Make 3.80 Any clues? Thanks, Darren From dgobbi at imaging.robarts.ca Sun Aug 24 21:23:23 2003 From: dgobbi at imaging.robarts.ca (David Gobbi) Date: Sun, 24 Aug 2003 21:23:23 -0400 Subject: [vtkusers] Building the examples In-Reply-To: <1061770904.2073.34.camel@asterix.anu.edu.au> Message-ID: Hi Darren, The executables are put in the 'bin' directory, along with the libraries. - David On 25 Aug 2003, Darren Freeman wrote: > Dear List, > > I admit that this may sound obvious to some people. > > I go through the installation procedure in the manual, for Linux. I > definitely enabled building the examples from cmake -i. > > I poke about looking for executables, thinking I should find some > examples to run. I get totally stumped and do a find for any executables > in the VTK directory. All I find is tcl and Python scripts and such, no > actual executables I can run. > > So I don't know what's going on. Make seems to be building cmake.depends > as it anounces "cmake.depends is up-to-date" when it finishes > successfully. Make all does the same. But no instructions I have found > indicate to me that I have to do any more than that. The libraries seem > to be built OK. > > My system: > Mandrake Linux 9.1 on a Celeron PC > gcc 3.3.1-1mdk > GNU Make 3.80 > > Any clues? > > Thanks, > Darren > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From daz111 at rsphysse.anu.edu.au Sun Aug 24 22:37:49 2003 From: daz111 at rsphysse.anu.edu.au (Darren Freeman) Date: 25 Aug 2003 12:37:49 +1000 Subject: [vtkusers] Building the examples In-Reply-To: References: Message-ID: <1061779069.2059.104.camel@asterix.anu.edu.au> On Mon, 2003-08-25 at 11:23, David Gobbi wrote: > Hi Darren, > > The executables are put in the 'bin' directory, along with the libraries. What are the examples called? I don't see anything obvious: --------8<--------8<--------8<-------- ./ libvtkCommonPython.so* libvtkGraphicsPython.so* libvtkpng.so* RenderingCxxTests* ../ libvtkCommon.so* libvtkGraphics.so* libvtkRenderingPython.so* TestCxxFeatures* CommonCxxTests* libvtkexpat.so* libvtkImagingPython.so* libvtkRenderingPythonTkWidgets.so* TestInstantiator* FilteringCxxTests* libvtkFilteringPython.so* libvtkImaging.so* libvtkRendering.so* TimeRenderer* GraphicsCxxTests* libvtkFiltering.so* libvtkIOPython.so* libvtktiff.so* TimeRenderer2* ImagingCxxTests* libvtkfreetype.so* libvtkIO.so* libvtkzlib.so* vtkpython* IOCxxTests* libvtkftgl.so* libvtkjpeg.so* mkg3states* vtkWrapPython* --------8<--------8<--------8<-------- > - David Darren From lost_bits1110 at hotmail.com Sun Aug 24 23:12:06 2003 From: lost_bits1110 at hotmail.com (bob green) Date: Mon, 25 Aug 2003 03:12:06 +0000 Subject: [vtkusers] getting started... Message-ID: Hello.......... I am a newbie at VTK.... I am programming using VC++ 6.0 on WinXP and I believe I have downloaded most of the necessary files already off of the vtk home page... So one of the zip files I downloaded off their page contains the 'vtk42' folder, in which there is a folder called 'Examples' in which there is another folder called 'Tutorial' in which there are several examples going from most basic to more advanced in more folders called 'Step 1', 'Step 2' etc... So many of you may have run into this when you were getting started... So I tried running the Cone.cxx file they provide in 'Step 1' but I get the following link errors: Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)" (__imp_?Azimuth at vtkCamera@@QAEXN at Z) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)" (__imp_?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkActor * __cdecl vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkPolyData * __thiscall vtkPolyDataSource::GetOutput(void)" (__imp_?GetOutput at vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ) Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkConeSource * __cdecl vtkConeSource::New(void)" (__imp_?New at vtkConeSource@@SAPAV1 at XZ) Debug/Cone.exe : fatal error LNK1120: 10 unresolved externals Error executing link.exe. So as you can tell.. I am really a newbie... but if someone could help me with my silly question then that would be just great................! I just need a push start..!! Also, I don't have the books they suggest for learning VTK.. can anyone recommend any good sites or anything from where I can learn..?? Thanks a million... - lost bits _________________________________________________________________ Get MSN 8 and enjoy automatic e-mail virus protection. http://join.msn.com/?page=features/virus From BRETT.MOORE at ttu.edu Mon Aug 25 01:18:02 2003 From: BRETT.MOORE at ttu.edu (Moore, Brett) Date: Mon, 25 Aug 2003 00:18:02 -0500 Subject: [vtkusers] Help with 3D triangulation process Message-ID: <342EE1B9B362214BA686DEDD1506C2F81AB41E@BRIAREUS.net.ttu.edu> Hi, Now that I can compile my program, I have run into a bit of a problem with my process. I would like to triangulate a 3D point cloud to recover the object's surface. (Data were obtained using laser scanninng.) My first attempt works (sort of): 1. Build a vtkPointSet 2. Pass the point set to vtkDelaunay3D 3. Pass the vtkDelaunay3D output to vtkDataSetMapper 4. Render The method's output does not look very good. Furthermore, the dataset consists of 500,000 data points and should be a prime candidate for mesh optimization. (The points are sampled at a high resolution - large regions of the object will be approximately planar). I attempted this: 3. Pass the vtkDelauany3D output to vtkUnstructuredGridToPolyDataFilter 4. Apply a vtkTriangleFilter 5. Decimate 6. Pass the decimated mesh to vykPolyDataMapper 7. Render I realize that there are several things wrong with the above (but maybe it outlines the process I need). To summarize, I believe I need a means to extract 2D triangles from the triangulated tetrahedral cells. (thus the vtkUnstructuredGridToPolyDataFilter step - but this class seems to be abstract). Once the 2D triangles are obtained, I think the decimation and rendering steps are straightforward. I appreciate any guidance. Thanks, Brett From bilik at eng.tau.ac.il Mon Aug 25 04:50:14 2003 From: bilik at eng.tau.ac.il (Anton Bilik) Date: Mon, 25 Aug 2003 11:50:14 +0300 Subject: [vtkusers] Fw: Welcome to the "vtkusers" mailing list Message-ID: <200308250850.h7P8oEk18289@dada.eng.tau.ac.il> Hello All ! I'm trying to install VTK on Linux and when I run make I'm getting an error message : "make[1]: *** No rule to make target `DART_ROOT-NOTFOUND/Source/Client/Utility.conf.in', needed by `cmake.depends'. Stop." What can I do about it ? Thanks for help. Anton. From bilik at eng.tau.ac.il Mon Aug 25 05:10:06 2003 From: bilik at eng.tau.ac.il (Anton Bilik) Date: Mon, 25 Aug 2003 12:10:06 +0300 Subject: [vtkusers] (no subject) Message-ID: <200308250910.h7P9A6c24918@dada.eng.tau.ac.il> ------------- Forwarded message follows ------------- Hello All ! I'm trying to install VTK on Linux and when I run make I'm getting an error message : "make[1]: *** No rule to make target `DART_ROOT-NOTFOUND/Source/Client/Utility.conf.in', needed by `cmake.depends'. Stop." What can I do about it ? Thanks for help. Anton. From bilik at eng.tau.ac.il Mon Aug 25 05:48:19 2003 From: bilik at eng.tau.ac.il (Anton Bilik) Date: Mon, 25 Aug 2003 12:48:19 +0300 Subject: [vtkusers] HELP ! ! ! VTK Installation problem Message-ID: <200308250948.h7P9mJA03981@dada.eng.tau.ac.il> Hello All ! I'm trying to install VTK and when I run make after I installed cmake I get this error message : "make[1]: *** No rule to make target `DART_ROOT-NOTFOUND/Source/Client/Utility.conf.in', needed by `cmake.depends'. Stop." what should I do? Thanks for a help. Anton. From cpanagio at cs.ucl.ac.uk Mon Aug 25 05:54:56 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Mon, 25 Aug 2003 10:54:56 +0100 Subject: [vtkusers] urgent help with cellArray Message-ID: <3F49DCF0.6010903@cs.ucl.ac.uk> ladies and gentlemen !!! i am confused with something probably simple and i have to submit a project in exactly 2 weeks time! (the answer to the next thing finishes my project - so i really want some help) could please someone tell me how can i create a vtkPolygon cell which i dont know the number of its points from the start? I get one xyz point and its id per time. is there any method that i can add THIS point with THIS id in the polygon and later on i could add another one? (i can also gather all the points in a vtkPoints object using the insertPoint(ID,X,Y,Z) - can i add them all in one go?) is it the initialize() method what am i looking for? could please someone tell me how this works (if it is the one?) (with the above i am creating a number of polygons (which again i dont know their number from the start) and i add them to a vtkCellArray, can someone explain to me how do i use the UpdateCellCount() method? do i use it before the InsertNextCell or after?) I am trying all the above as i want to use the _*vtkVoxelContoursToSurfaceFilter*_ and i looked the example that the web page has, however i dont have the number of points of its polygon and the number of polygons from the start.... :-\ I will really really be greatful to anyone that answers my post sorry for its length all the best chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From anne.kerveillant at laposte.net Mon Aug 25 06:52:37 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Mon, 25 Aug 2003 12:52:37 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Perspective_transformation?= Message-ID: Hi, I would like to change a view with a perspective transformation but I don't want to modifie the object. Is it possible to change the perspective of a renderer or a camera? and how can I do that? Thanks a lot Anne Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Janne.Hamalainen at hus.fi Mon Aug 25 08:41:36 2003 From: Janne.Hamalainen at hus.fi (=?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?=) Date: Mon, 25 Aug 2003 14:41:36 +0200 Subject: [vtkusers] Blending two volumes Message-ID: <57DADDD9B062454A82284FE2A5B97A36055828D7@muikku2.hus.fi> Hi all, I have a following situation: I have two vtkImageData objects (tomographic medical data) that I want to display using volume rendering. I would want to blend them (as with vtkImageBlend), so that both objects would have different colors, e.g., so that I had a gray translucent data set and inside that an opaque green area. I have done the same thing for 2D slices extracted from the volume by mapping the original intensity levels of the images to colors with vtkImageMapToColors (using a different vtkLookupTable for both) and combining the results with vtkImageBlend. The results can be shown easily with 2D texture mapping. For 3D rendering this doesn't seem a possible way to do things. I can of course map the volumes to different colors and blend them, but volume rendering seems to assume that the mapped data has no colors, but instead a vtkColorTransferFunction is used to map the intensity levels. Different color transfers can be specified for each component of the input data, but I don't understand how this is interpreted. Is it simply that you can specify what component to use for volume rendering? And is there any way to use the original color components of the input vtkImageData in volume rendering to get the desired effect? I also tried rendering (ray casting) the two volumes to a same scene using a different color transfer for both, but the results weren't satisfactory. The volume that was rendered last (it is inside the other volume) is not veiled by the other translucent volume, but instead is shown as though it were outside it. The toggle IntermixIntersectingGeometry is on, although I would guess that it hasn't any effect on volumes, right? If anyone 1. knows a way to volume render colored image data (or knows that it is not possible), or 2. knows if there is a way to render multiple volumes to a same scene so that overlapping parts are blended, I would gladly accept any information, -Janne -- Janne H?m?l?inen Research Assistant Helsinki University Central Hospital X-ray Department email janne.hamalainen at hus.fi From bilik at eng.tau.ac.il Mon Aug 25 07:51:29 2003 From: bilik at eng.tau.ac.il (Anton Bilik) Date: Mon, 25 Aug 2003 14:51:29 +0300 Subject: [vtkusers] Dart for VTK ?!? Message-ID: <200308251151.h7PBpT311308@dada.eng.tau.ac.il> Hello All ! Where can I find a Dart for VTK which should work at Linux Red-Hat OS,and what version of Dart it should be ? Thanks for help. Anton. From liuqiang at pmail.ntu.edu.sg Mon Aug 25 08:38:37 2003 From: liuqiang at pmail.ntu.edu.sg (#LIU QIANG#) Date: Mon, 25 Aug 2003 20:38:37 +0800 Subject: [vtkusers] How to Change the Coordinate of the Points? Message-ID: <052033A55521254893A4E2041957E1D037F077@mail03.student.main.ntu.edu.sg> Hi all, I want to animate a vtkPolyData by change the coordinates of the points in the PolyData. But I can't find the function call to set the coordinates of the points. Can anyone tell me how to do it? Or any other method to animate the object? Thanks a lot. Regards, Patrick From vermaas at astron.nl Mon Aug 25 08:43:47 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Mon, 25 Aug 2003 14:43:47 +0200 Subject: [vtkusers] rotating camera around focalpoint, how? Message-ID: Is there a simple way to rotate the camera around the focalpoint? When I use roll, pitch, yaw etc. the cam just starts looking in another direction. (I do not want to rotate my data because then the x,y,z coords will change right?) From vermaas at astron.nl Mon Aug 25 08:47:34 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Mon, 25 Aug 2003 14:47:34 +0200 Subject: [vtkusers] getting the brightest pixel? Message-ID: q: Is there a way to 'shoot' a line through a image datacube and get back the location (x,y,z) of the brightest pixel? Or even better, the first pixel with a user defined treshold value? From I.deBoer at polytec.de Mon Aug 25 08:49:31 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 25 Aug 2003 14:49:31 +0200 Subject: AW: [vtkusers] How to Change the Coordinate of the Points? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAEE@02polywbr.waldbronn.polytec.de> > I want to animate a vtkPolyData by change the coordinates of > the points in the PolyData. But I can't find the function > call to set the coordinates of the points. Can anyone tell me > how to do it? use SetPoints() greets Ingo From ramakrishna.prakash at quest-global.com Mon Aug 25 08:51:21 2003 From: ramakrishna.prakash at quest-global.com (Shyam Prakash) Date: Mon, 25 Aug 2003 18:21:21 +0530 Subject: [vtkusers] rotating camera around focalpoint, how? In-Reply-To: Message-ID: <005901c36b07$957b3a50$730ba8c0@questglobal.com> vtkCamera.Azimuth(angle) -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of Nico Vermaas Sent: Monday, August 25, 2003 6:14 PM To: vtkusers at vtk.org Subject: [vtkusers] rotating camera around focalpoint, how? Is there a simple way to rotate the camera around the focalpoint? When I use roll, pitch, yaw etc. the cam just starts looking in another direction. (I do not want to rotate my data because then the x,y,z coords will change right?) _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From I.deBoer at polytec.de Mon Aug 25 08:54:02 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 25 Aug 2003 14:54:02 +0200 Subject: AW: [vtkusers] rotating camera around focalpoint, how? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAEF@02polywbr.waldbronn.polytec.de> > Is there a simple way to rotate the camera around the > focalpoint? When I use roll, pitch, yaw etc. the cam just > starts looking in another direction. > (I do not want to rotate my data because then the x,y,z > coords will change right?) shouldn't you use only then roll, elevation and azimuth ? some thing like: ViewCameraSetAngles(float fElevation, float fAzimuth, float fRoll) { float *faAngles = m_pvtkCamera->GetOrientation(); float fE = faAngles[0]; float fA = faAngles[1]; float fR = faAngles[2]; m_pvtkCamera->Roll(-fR); m_pvtkCamera->Elevation(-fE); m_pvtkCamera->Azimuth(+fA); m_pvtkCamera->Elevation(fElevation); m_pvtkCamera->Azimuth(-fAzimuth); m_pvtkCamera->Roll(fRoll); m_pvtkCamera->Modified(); } with this you can set absolut angles, because the function only take angles to their current value. greets Ingo From I.deBoer at polytec.de Mon Aug 25 08:58:00 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 25 Aug 2003 14:58:00 +0200 Subject: AW: [vtkusers] Perspective transformation Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAF0@02polywbr.waldbronn.polytec.de> > I would like to change a view with a perspective transformation but I don't want > to modifie the object. Is it possible to change the perspective of a renderer or > a camera? and how can I do that? vtkCamera->SetParallelProjection(on/off); greets Ingo From I.deBoer at polytec.de Mon Aug 25 09:00:11 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 25 Aug 2003 15:00:11 +0200 Subject: AW: [vtkusers] getting started... Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAF1@02polywbr.waldbronn.polytec.de> Hi, > So as you can tell.. I am really a newbie... but if someone > could help me You included the header files, but it seems that you forgott to link the libraries... take a look at the project settings of the MFC samples... greets Ingo From vermaas at astron.nl Mon Aug 25 09:00:27 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Mon, 25 Aug 2003 15:00:27 +0200 Subject: AW: [vtkusers] rotating camera around focalpoint, how? Message-ID: Ingo, Shyam, Thanks... that was it.. Nico From anne.kerveillant at laposte.net Mon Aug 25 09:04:20 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Mon, 25 Aug 2003 15:04:20 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Re:Re:_[vtkusers]_Perspective_transformation_?= Message-ID: Hi, Thanks for your advice but with this function I can't give my parameters for the transformation, can I? Anne Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.deBoer at polytec.de Mon Aug 25 09:16:58 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Mon, 25 Aug 2003 15:16:58 +0200 Subject: AW: Re: [vtkusers] Perspective transformation Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCAF2@02polywbr.waldbronn.polytec.de> > Thanks for your advice but with this function I can't give my parameters for > the transformation, can I? what parameters ? you can do lots with the vtkCamera object... greets Ingo From Kevin.Wright at ansys.com Mon Aug 25 09:19:50 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Mon, 25 Aug 2003 09:19:50 -0400 Subject: [vtkusers] How to Change the Coordinate of the Points? Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDEBD@waterfall.waterloo.cfx.co> > I want to animate a vtkPolyData by change the coordinates of > the points in the PolyData. But I can't find the function > call to set the coordinates of the points. Can anyone tell me > how to do it? Or any other method to animate the object? Once the polydata has valid points in it: vtkPoints *pts = polyData->GetPoints(); pts->SetPoint(n,x,y,z); polyData->Modified(); Kevin. From anne.kerveillant at laposte.net Mon Aug 25 09:23:57 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Mon, 25 Aug 2003 15:23:57 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Re:AW:_Re:_[vtkusers]_Perspective_transformation?= Message-ID: I have to transform the actual view coordinates (xMin=-1, xMax=1, yMin=-1, yMax=1) into new ones : xMin=0, xMax=2, yMin=-1, yMax=1. Anne > > Thanks for your advice but with this function I can't give my parameters for > > the transformation, can I? > what parameters ? > you can do lots with the vtkCamera object... > > greets > Ingo > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhou at isg.cs.uni-magdeburg.de Mon Aug 25 09:30:29 2003 From: zhou at isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Mon, 25 Aug 2003 15:30:29 +0200 Subject: [vtkusers] information about NVIDIA Geforce FX prgramming materils Message-ID: <3F4A2B93.5868.5D28E47@localhost> Hi, all, Does anyone know where I can get the introduction materils about NVIDIA GeForce FX and its prgramming information? I have read some pages in NVIDIA.com, but there is not much about programming for Geforce FX. Thank you in advance. JL From anne.kerveillant at laposte.net Mon Aug 25 09:51:39 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Mon, 25 Aug 2003 15:51:39 +0200 Subject: [vtkusers] =?iso-8859-1?Q?AW:_AW:_Re:_[vtkusers]_Perspective_transformation?= Message-ID: May be I asked the wrong question, here is my problem : I have to program a Holobench, this sort of screen that has one screen vertical and one screen horizontal. The object (a VRML file) is the same for the two screens but the view is not the same for the horizontal one. That means that I should transform what appears on the horizontal screen, so that the I have a perspective aspect. I hope you will understand with the drawing I made Anne Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: perspective transformation.bmp Type: image/bmp Size: 41022 bytes Desc: not available URL: From dan at chalkie.org.uk Mon Aug 25 10:05:41 2003 From: dan at chalkie.org.uk (Dr. Daniel James White PhD) Date: Mon, 25 Aug 2003 17:05:41 +0300 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #2035 - 18 msgs In-Reply-To: <20030825135202.11736.27615.Mailman@public.kitware.com> Message-ID: <3650BF28-D705-11D7-9AA1-000393686412@chalkie.org.uk> Hi Janne, try using the Mayavi VTK frontend, with the experimental volume module, see the mayavi mailing list for this. Dan On Monday, August 25, 2003, at 04:52 PM, vtkusers-request at vtk.org wrote: > > Message: 2 > From: =?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?= > To: "'vtkusers at vtk.org'" > Date: Mon, 25 Aug 2003 14:41:36 +0200 > Subject: [vtkusers] Blending two volumes > > Hi all, > > I have a following situation: I have two vtkImageData objects = > (tomographic > medical data) that I want to display using volume rendering. I would = > want to > blend them (as with vtkImageBlend), so that both objects would have > different colors, e.g., so that I had a gray translucent data set and = > inside > that an opaque green area.=20 > > I have done the same thing for 2D slices extracted from the volume by > mapping the original intensity levels of the images to colors with > vtkImageMapToColors (using a different vtkLookupTable for both) and > combining the results with vtkImageBlend. The results can be shown = > easily > with 2D texture mapping. For 3D rendering this doesn't seem a possible > = > way > to do things. I can of course map the volumes to different colors and = > blend > them, but volume rendering seems to assume that the mapped data has no > colors, but instead a vtkColorTransferFunction is used to map the = > intensity > levels. Different color transfers can be specified for each component = > of the > input data, but I don't understand how this is interpreted. Is it = > simply > that you can specify what component to use for volume rendering? And is > there any way to use the original color components of the input = > vtkImageData > in volume rendering to get the desired effect?=20 > > I also tried rendering (ray casting) the two volumes to a same scene = > using a > different color transfer for both, but the results weren't = > satisfactory. The > volume that was rendered last (it is inside the other volume) is not = > veiled > by the other translucent volume, but instead is shown as though it were > outside it. The toggle IntermixIntersectingGeometry is on, although I = > would > guess that it hasn't any effect on volumes, right? > > If anyone 1. knows a way to volume render colored image data (or knows > = > that > it is not possible), or 2. knows if there is a way to render multiple > volumes to a same scene so that overlapping parts are blended, I would > gladly accept any information, > > -Janne > > Dr. Daniel James White BSc. (Hons.) PhD Cell Biology Department of biological and environmental science PO Box 35 University of Jyv?skyl? Jyv?skyl? FIN 40014 Finland +358 (0)14 260 4183 (work) +358 (0)414740463 (mob) http://www.chalkie.org.uk dan at chalkie.org.uk white at cc.jyu.fi From donna at pulvinar.wustl.edu Mon Aug 25 14:32:02 2003 From: donna at pulvinar.wustl.edu (Donna Hanlon) Date: Mon, 25 Aug 2003 13:32:02 -0500 Subject: [vtkusers] Building the examples Message-ID: <3F4A5622.1000101@pulvinar.wustl.edu> Hi Darren, One executable is vtkpython, which is a vtk-wrapped version of your python interpreter. You may find python works better than vtkpython, depending on your platform. Try both: python assembly.py ... or: vtkpython assembly.py If you can't find assembly.py in your source, download it from here: http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Examples/Rendering/Python/assembly.py Donna Darren wrote: > On Mon, 2003-08-25 at 11:23, David Gobbi wrote: > >> Hi Darren, >> >> The executables are put in the 'bin' directory, along with the libraries. > > > What are the examples called? I don't see anything obvious: > > --------8<--------8<--------8<-------- > ./ libvtkCommonPython.so* libvtkGraphicsPython.so* > libvtkpng.so* RenderingCxxTests* > ../ libvtkCommon.so* libvtkGraphics.so* > libvtkRenderingPython.so* TestCxxFeatures* > CommonCxxTests* libvtkexpat.so* libvtkImagingPython.so* > libvtkRenderingPythonTkWidgets.so* TestInstantiator* > FilteringCxxTests* libvtkFilteringPython.so* libvtkImaging.so* > libvtkRendering.so* TimeRenderer* > GraphicsCxxTests* libvtkFiltering.so* libvtkIOPython.so* > libvtktiff.so* TimeRenderer2* > ImagingCxxTests* libvtkfreetype.so* libvtkIO.so* > libvtkzlib.so* vtkpython* > IOCxxTests* libvtkftgl.so* libvtkjpeg.so* > mkg3states* vtkWrapPython* > --------8<--------8<--------8<-------- From brad.king at kitware.com Mon Aug 25 16:59:43 2003 From: brad.king at kitware.com (Brad King) Date: Mon, 25 Aug 2003 16:59:43 -0400 (EDT) Subject: [vtkusers] HELP ! ! ! VTK Installation problem In-Reply-To: <200308250948.h7P9mJA03981@dada.eng.tau.ac.il> Message-ID: Anton, > I'm trying to install VTK and when I run make after I installed cmake I > get this error message : "make[1]: *** No rule to make target > `DART_ROOT-NOTFOUND/Source/Client/Utility.conf.in', needed by > `cmake.depends'. Stop." what should I do? What version of cmake are you using? -Brad From alinnen at globalkiosk.com Mon Aug 25 18:06:40 2003 From: alinnen at globalkiosk.com (Aaron Linnen) Date: Mon, 25 Aug 2003 16:06:40 -0600 Subject: [vtkusers] Is VTK applicable to a CAD like program? In-Reply-To: References: Message-ID: <3F4A8870.70901@globalkiosk.com> Thanks for the thoughts and pointers, David. I think actually deforming would be ideal, but too much to shoot for on this go around. I'm going away for a week and will ruminate on this and see what I can come up with. Aaron David.Pont at ForestResearch.co.nz wrote: >Hi Aaron, > interesting problem, I am not sure vtk can do what you want, although I >have never worked with textures... so take what follows with plenty of >salt... >If you just want to attach different textures to 3D models the answer is >yes, although there will be a bit of effort to understand and correctly >manipulate texture coordinates to get the desired placement. If you want to >actually etch the surface of the models, ie deform the geometry, this may >be possible if you can dive into the C++ code and cut and paste existing >bits of functionality into a class to do it. > >-If you want to pursue this read up on textures and texture coordinates: >point your browser at: >http://public.kitware.com/VTK/doc/release/4.0/html/classes.html and search >on the page for 'Texture' >-It is up to you to segment the different parts of the model. Seperate >pieces (polydata), each mapped to a seperate vtk Actor, each with its own >texture (possibly blank) is probably the way to go. >-I have a suspicion there may be a limit of 1 texture per actor in vtk, so >1 actor per part would avoid this limit. Assign each part a texture, then >let the user modify it... >-to actually deform (etch) the model surfaces: vtkWarp* classes might do >something useful, but I suspect you would have to make a new class that >does exactly what they do but using texture as input... ie a new class >'vtkWarpTexture'... start with vtlWarpScalar, find the bit where it gets a >scalar and change it to get a scalar from a texture via a texture >coordinate... However for your application this implies the model surface >would need very high point density to reproduce an etched line... perhaps a >class that creates sufficient new polygons to reproduce the new surface... >(search the web for 'offset surfaces')... > > regards > Dave Pont > > > > > > Aaron Linnen > kiosk.com> cc: > Sent by: Subject: [vtkusers] Is VTK applicable to a CAD like program? > vtkusers-admin@ > vtk.org > > > 20/08/2003 > 10:40 > > > > > > >I'm hoping to pick your brains about a software that I'm currently >working on, for any ideas and for where VTK might fit in best. > >The program is a domain specific CAD like program for the design of >etched stonework, mostly monuments. The program has a collection of >elements (line drawings) that can be placed on the stone, as well as >allowing text items to be created and edited. > >The program has been in use for a number of years and the current design >simply lets you edit the main surfaces of the stone as a flat surface, >then has a (hand written, and poorly at that) perspective view. The >program currently doesn't hand more complicated stones (e.g. made out >of several stones, or oddly shaped with curves) > >It was in looking to rewrite and improve the perspective view that I >started looking into VTK. To make use of it, I would need to make >actual 3d models for the various stones. Looking into this I had the >idea that maybe VTK could help with the editing portion too. > >My rough idea was if I was making the the 3d models anyways, I should be >able to get VTK to generate the shape of the various surfaces that I >could use as textures for the 3d view. So the editing would be on the 2d >texture maps for now and not need much training for the users. > >So I'm wondering if given a shape, say a stone vase with 2 flat sides >front and back and 2 rounded sides, looking like this in a top down view: > ___ >(___) (please excuse my feeble attempts at ASCII art!) > a) can I tag the 3d model data so that I know which polygons compose >each of the 4 sides? What file format handles this nicely? > b) can I get the texture shape needed for each of the sides (which may >be composed of several polygons) > c) would there be a way to handle pictures that wrap one 2 (or more) >of the sides? > d) what if this vase had a top that can also be engraved? Now a) needs >to be able to mark 5 sides, c) potentially might need to wrap something >on the front, top and right side for example. > e) is there an accurate method of knowing where something is on the >texture maps to on the 3d model? Say I needed to add a border exactly 1 >inch from the top of the vase? > >Well, as usual, writing it out has helped my already. If anyone has >pointers or ideas on this it would be great. Particular parts of VTK >that would apply would be appreciated too. Completely different methods >are also welcomed :) > >If this is deemed too of topic for this list, I apologize and people can >follow up off-list if that's more appropriate. > >Thanks, >Aaron > > > >_______________________________________________ >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://www.vtk.org/mailman/listinfo/vtkusers > > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > From vermaas at astron.nl Tue Aug 26 02:26:38 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Tue, 26 Aug 2003 08:26:38 +0200 Subject: [vtkusers] getting the brightest pixel? Message-ID: Hi I am using vtkVolumeRayCastMIPFunction and that shows the maximum values nicely, but... what I want to find out is *which* pixels (in x,y,z world coords) are responsible for those maximum pixels. To be more precise, I want to be able to point at a location on/in the cube and get back the x,y,z of the highest value responsible for that pixel. I am trying a probe of a line from the camera location to the picking location, but because the pick just ends 'somewhere' in the cube that doesn't work to good. I have to extend the line past the picking location to be sure that it goes through the entire cube. It all feels a bit too elaborate, like there should be a much easier way to do this. And I have a hard time getting x,y,z information from that probe line. Nico >>> Benjamin King 08/26/03 09:07am >>> Hi Nico, a vtkVolumeRayCastMIPFunction might do what you want. Unfortunately when I had to do something similar a while ago I found it to be very intertwined with the vtkVolumeRayCastMapper class. But then again it might have been my inferior C++ skills =) Best regards, Benjamin On Mon, 25 Aug 2003 14:47:34 +0200, Nico Vermaas wrote: > q: Is there a way to 'shoot' a line through a image datacube and get back > the location (x,y,z) of the brightest pixel? Or even better, the first > pixel with a user defined treshold value? -- Benjamin King Institut fnr Medizinische Informatik Medizinische Hochschule Hannover Tel.: +49 511 532-2663 From Janne.Hamalainen at hus.fi Tue Aug 26 04:15:24 2003 From: Janne.Hamalainen at hus.fi (=?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?=) Date: Tue, 26 Aug 2003 10:15:24 +0200 Subject: [vtkusers] =?iso-8859-1?Q?VS=3A_=C4vtkusers=C5_Re=3A_vtkusers_digest=2C_V?= =?iso-8859-1?Q?ol_1_=232035_-_18_msgs?= Message-ID: <57DADDD9B062454A82284FE2A5B97A36055828D8@muikku2.hus.fi> Thanks for the answer, the Mayavi frontend seems interesting. Anyhow, I need to find the way to do the thing myself. We are developping our own software package, and I need to implement this feature to the existing software. I took only a quick glance at Mayavi, and I couldn't yet find where they blend volumes. I'm still open for any suggestions on how to blend two volumes so that both would have different color (please, see my original message at the end of this message). -Janne > ---------- > L?hett?j?: Dr. Daniel James White PhD[SMTP:dan at chalkie.org.uk] > L?hetetty: 25. elokuuta 2003 17:05 > Vastaanottaja: vtkusers at vtk.org > Aihe: ?vtkusers? Re: vtkusers digest, Vol 1 #2035 - 18 msgs > > Hi Janne, > > try using the Mayavi VTK frontend, with the experimental volume module, > see the mayavi mailing list for this. > > Dan > > On Monday, August 25, 2003, at 04:52 PM, vtkusers-request at vtk.org wrote: > > > > > Message: 2 > > From: =?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?= > > To: "'vtkusers at vtk.org'" > > Date: Mon, 25 Aug 2003 14:41:36 +0200 > > Subject: [vtkusers] Blending two volumes > > > > Hi all, > > > > I have a following situation: I have two vtkImageData objects = > > (tomographic > > medical data) that I want to display using volume rendering. I would = > > want to > > blend them (as with vtkImageBlend), so that both objects would have > > different colors, e.g., so that I had a gray translucent data set and = > > inside > > that an opaque green area.=20 > > > > I have done the same thing for 2D slices extracted from the volume by > > mapping the original intensity levels of the images to colors with > > vtkImageMapToColors (using a different vtkLookupTable for both) and > > combining the results with vtkImageBlend. The results can be shown = > > easily > > with 2D texture mapping. For 3D rendering this doesn't seem a possible > > = > > way > > to do things. I can of course map the volumes to different colors and = > > blend > > them, but volume rendering seems to assume that the mapped data has no > > colors, but instead a vtkColorTransferFunction is used to map the = > > intensity > > levels. Different color transfers can be specified for each component = > > of the > > input data, but I don't understand how this is interpreted. Is it = > > simply > > that you can specify what component to use for volume rendering? And is > > there any way to use the original color components of the input = > > vtkImageData > > in volume rendering to get the desired effect?=20 > > > > I also tried rendering (ray casting) the two volumes to a same scene = > > using a > > different color transfer for both, but the results weren't = > > satisfactory. The > > volume that was rendered last (it is inside the other volume) is not = > > veiled > > by the other translucent volume, but instead is shown as though it were > > outside it. The toggle IntermixIntersectingGeometry is on, although I = > > would > > guess that it hasn't any effect on volumes, right? > > > > If anyone 1. knows a way to volume render colored image data (or knows > > = > > that > > it is not possible), or 2. knows if there is a way to render multiple > > volumes to a same scene so that overlapping parts are blended, I would > > gladly accept any information, > > > > -Janne > > > > > Dr. Daniel James White BSc. (Hons.) PhD > Cell Biology > Department of biological and environmental science > PO Box 35 > University of Jyv?skyl? > Jyv?skyl? FIN 40014 > Finland > +358 (0)14 260 4183 (work) > +358 (0)414740463 (mob) > > http://www.chalkie.org.uk > dan at chalkie.org.uk > white at cc.jyu.fi > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From J.Sugrue at pilz.ie Tue Aug 26 04:23:31 2003 From: J.Sugrue at pilz.ie (J.Sugrue at pilz.ie) Date: Tue, 26 Aug 2003 09:23:31 +0100 Subject: [vtkusers] Using X3D with VTK? Message-ID: Hi. I've used VTK already in my Java project, and it seems to have done quite well. However, a new requirement is that I need to be able to read X3D format. Is VTK able to do this? Will I have to write an extension to VTK to make this possible? If so, could you please point me to a resource explaining how this could be done. Thanks in advance. James From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 26 04:23:47 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 26 Aug 2003 10:23:47 +0200 Subject: [vtkusers] Using X3D with VTK? In-Reply-To: References: Message-ID: <3F4B1913.1070509@creatis.insa-lyon.fr> J.Sugrue at pilz.ie wrote: > Hi. > > I've used VTK already in my Java project, and it seems to have done quite > well. > However, a new requirement is that I need to be able to read X3D format. > > Is VTK able to do this? Will I have to write an extension to VTK to make > this possible? If so, could you please point me to a resource explaining > how this could be done. > James, Here is the list of 3D files format supported by VTK: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.002.htp I guess you'll need to write your own ! My suggestion, read first the VRML import/export filter this might fit your need. Furthermore as X3D seems to be close to VRML, this should also be 'easy' to write a file reader for it. Finally: http://www.wotsit.org/ has some good references. HTH mathieu From mekic at gris.uni-tuebingen.de Tue Aug 26 05:59:12 2003 From: mekic at gris.uni-tuebingen.de (Melissa Mekic) Date: Tue, 26 Aug 2003 11:59:12 +0200 (CEST) Subject: [vtkusers] Color for vtkPoints Message-ID: Hi, I use vtkPoints to create Points. Now, I want to create different colors for each point. Can somebody tell me, how to set these colors? Thank you. Melissa From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 26 06:54:25 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 26 Aug 2003 12:54:25 +0200 Subject: [vtkusers] __nvsym13584 () from /usr/lib/libGLcore.so.1 Message-ID: <3F4B3C61.2010607@creatis.insa-lyon.fr> Hi all, I am trying to fix this seg fault (*). I would like to know if anybody has already seen this kind of stuff ? (I am working on linux RH 7.3, nvidia 4496). Basically, what I do is: render a 3D object, then with the mouse draw a 2D polygon (that later will extrude a cylinder like object with my 3D object). I tried to : 1. Simplify the code, but as soon as it is outside of the main app, I can't reproduce the seg fault. 2. Use Mesa instead, but I am getting another problem(**) Thanks for your help, mathieu (*) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 18860)] 0x423a76db in __nvsym13584 () from /usr/lib/libGLcore.so.1 (gdb) bt #0 0x423a76db in __nvsym13584 () from /usr/lib/libGLcore.so.1 #1 0x40a1c4d3 in vtkOpenGLPolyDataMapper2D::RenderOverlay (this=0x8825f88, viewport=0x812ecd0, actor=0x8826158) at /home/malat/Kitware/VTK/Common/vtkPoints.h:123 #2 0x4162400d in vtkActor2D::RenderOverlay (this=0x8826158, viewport=0x812ecd0) at /home/malat/Kitware/VTK/Common/vtkActor2D.cxx:102 #3 0x409bc06b in vtkRenderer::UpdateGeometry (this=0x812ecd0) at /home/malat/Kitware/VTK/Rendering/vtkRenderer.cxx:467 #4 0x40a1fecb in vtkOpenGLRenderer::DeviceRender (this=0x812ecd0) at /home/malat/Kitware/VTK/Rendering/vtkOpenGLRenderer.cxx:176 #5 0x409bb7fd in vtkRenderer::Render (this=0x812ecd0) at /home/malat/Kitware/VTK/Rendering/vtkRenderer.cxx:230 #6 0x409c0f51 in vtkRendererCollection::Render (this=0x811f3e8) at /home/malat/Kitware/VTK/Rendering/vtkRendererCollection.cxx:54 #7 0x409af00c in vtkRenderWindow::DoStereoRender (this=0x811f618) at /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:632 #8 0x409aefbc in vtkRenderWindow::DoFDRender (this=0x811f618) at /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:620 #9 0x409aec68 in vtkRenderWindow::DoAARender (this=0x811f618) at /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:514 #10 0x409ae59b in vtkRenderWindow::Render (this=0x811f618) at /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:341 #11 0x40a28e58 in vtkXOpenGLRenderWindow::Render (this=0x811f618) at /home/malat/Kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1314 #12 0x40759598 in wxVTKRenderWindowInteractor::Render (this=0x811bad0) at /home/malat/wxMaracas/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx:538 #13 0x40965c2d in vtkInteractorStyle::StopState (this=0x8826328) at /home/malat/Kitware/VTK/Rendering/vtkInteractorStyle.cxx:415 #14 0x4096d403 in vtkInteractorStyleImage::EndWindowLevel (this=0x8826328) at /home/malat/Kitware/VTK/Rendering/vtkInteractorStyleImage.cxx:64 #15 0x4096d61e in vtkInteractorStyleImage::OnLeftButtonUp (this=0x8826328) at /home/malat/Kitware/VTK/Rendering/vtkInteractorStyleImage.cxx:150 #16 0x409670b5 in vtkInteractorStyle::ProcessEvents (event=12, clientdata=0x8826328) at /home/malat/Kitware/VTK/Rendering/vtkInteractorStyle.cxx:1017 #17 0x4162f086 in vtkCallbackCommand::Execute (this=0x88263d0, caller=0x811bc78, event=12, callData=0x0) at /home/malat/Kitware/VTK/Common/vtkCallbackCommand.cxx:44 #18 0x416bbb61 in vtkSubjectHelper::InvokeEvent (this=0x811edd0, event=12, callData=0x0, self=0x811bc78) at /home/malat/Kitware/VTK/Common/vtkObject.cxx:484 #19 0x416bbede in vtkObject::InvokeEvent (this=0x811bc78, event=12, callData=0x0) at /home/malat/Kitware/VTK/Common/vtkObject.cxx:625 #20 0x40759460 in wxVTKRenderWindowInteractor::OnButtonUp (this=0x811bad0, event=@0xbfffd770) at /home/malat/wxMaracas/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx:492 #21 0x403f1218 in wxEvtHandler::SearchEventTable () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #22 0x403f1090 in wxEvtHandler::ProcessEvent () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #23 0x403b10ec in gtk_window_button_release_callback () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #24 0x41cb0a9c in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0 #25 0x41ce4406 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0 #26 0x41ce373d in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0 #27 0x41ce14f5 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #28 0x41d1bb69 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0 #29 0x41cb09f5 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0 #30 0x41cafa1f in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0 #31 0x41d60d6f in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0 #32 0x41d96773 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0 #33 0x41d96d39 in g_main_iterate () from /usr/lib/libglib-1.2.so.0 #34 0x41d96eec in g_main_run () from /usr/lib/libglib-1.2.so.0 #35 0x41caf2e3 in gtk_main () from /usr/lib/libgtk-1.2.so.0 #36 0x403662c6 in wxApp::MainLoop () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #37 0x403b8378 in wxAppBase::OnRun () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #38 0x40366a2d in wxEntry () from /opt/wxgtk240/lib/libwx_gtk-2.4.so #39 0x0804cff4 in main (argc=1, argv=0xbfffde34) at /home/malat/wxMaracas/test/main.cpp:15 #40 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) (**) http://sourceforge.net/mailarchive/forum.php?thread_id=3020695&forum_id=5153 From jeff at cdnorthamerica.com Tue Aug 26 07:29:09 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 26 Aug 2003 07:29:09 -0400 Subject: [vtkusers] __nvsym13584 () from /usr/lib/libGLcore.so.1 In-Reply-To: <3F4B3C61.2010607@creatis.insa-lyon.fr> References: <3F4B3C61.2010607@creatis.insa-lyon.fr> Message-ID: <3F4B4485.4020003@cdnorthamerica.com> is your app multi-threaded? -Jeff Mathieu Malaterre wrote: > Hi all, > > I am trying to fix this seg fault (*). I would like to know if > anybody has already seen this kind of stuff ? (I am working on linux > RH 7.3, nvidia 4496). > > Basically, what I do is: render a 3D object, then with the mouse > draw a 2D polygon (that later will extrude a cylinder like object with > my 3D object). > > I tried to : > 1. Simplify the code, but as soon as it is outside of the main > app, I can't reproduce the seg fault. > 2. Use Mesa instead, but I am getting another problem(**) > > Thanks for your help, > mathieu > > > (*) > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1024 (LWP 18860)] > 0x423a76db in __nvsym13584 () from /usr/lib/libGLcore.so.1 > (gdb) bt > #0 0x423a76db in __nvsym13584 () from /usr/lib/libGLcore.so.1 > #1 0x40a1c4d3 in vtkOpenGLPolyDataMapper2D::RenderOverlay > (this=0x8825f88, viewport=0x812ecd0, actor=0x8826158) at > /home/malat/Kitware/VTK/Common/vtkPoints.h:123 > #2 0x4162400d in vtkActor2D::RenderOverlay (this=0x8826158, > viewport=0x812ecd0) at /home/malat/Kitware/VTK/Common/vtkActor2D.cxx:102 > #3 0x409bc06b in vtkRenderer::UpdateGeometry (this=0x812ecd0) at > /home/malat/Kitware/VTK/Rendering/vtkRenderer.cxx:467 > #4 0x40a1fecb in vtkOpenGLRenderer::DeviceRender (this=0x812ecd0) at > /home/malat/Kitware/VTK/Rendering/vtkOpenGLRenderer.cxx:176 > #5 0x409bb7fd in vtkRenderer::Render (this=0x812ecd0) at > /home/malat/Kitware/VTK/Rendering/vtkRenderer.cxx:230 > #6 0x409c0f51 in vtkRendererCollection::Render (this=0x811f3e8) at > /home/malat/Kitware/VTK/Rendering/vtkRendererCollection.cxx:54 > #7 0x409af00c in vtkRenderWindow::DoStereoRender (this=0x811f618) at > /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:632 > #8 0x409aefbc in vtkRenderWindow::DoFDRender (this=0x811f618) at > /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:620 > #9 0x409aec68 in vtkRenderWindow::DoAARender (this=0x811f618) at > /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:514 > #10 0x409ae59b in vtkRenderWindow::Render (this=0x811f618) at > /home/malat/Kitware/VTK/Rendering/vtkRenderWindow.cxx:341 > #11 0x40a28e58 in vtkXOpenGLRenderWindow::Render (this=0x811f618) at > /home/malat/Kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1314 > #12 0x40759598 in wxVTKRenderWindowInteractor::Render (this=0x811bad0) > at > /home/malat/wxMaracas/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx:538 > > #13 0x40965c2d in vtkInteractorStyle::StopState (this=0x8826328) at > /home/malat/Kitware/VTK/Rendering/vtkInteractorStyle.cxx:415 > #14 0x4096d403 in vtkInteractorStyleImage::EndWindowLevel > (this=0x8826328) at > /home/malat/Kitware/VTK/Rendering/vtkInteractorStyleImage.cxx:64 > #15 0x4096d61e in vtkInteractorStyleImage::OnLeftButtonUp > (this=0x8826328) at > /home/malat/Kitware/VTK/Rendering/vtkInteractorStyleImage.cxx:150 > #16 0x409670b5 in vtkInteractorStyle::ProcessEvents (event=12, > clientdata=0x8826328) at > /home/malat/Kitware/VTK/Rendering/vtkInteractorStyle.cxx:1017 > #17 0x4162f086 in vtkCallbackCommand::Execute (this=0x88263d0, > caller=0x811bc78, event=12, callData=0x0) at > /home/malat/Kitware/VTK/Common/vtkCallbackCommand.cxx:44 > #18 0x416bbb61 in vtkSubjectHelper::InvokeEvent (this=0x811edd0, > event=12, callData=0x0, self=0x811bc78) at > /home/malat/Kitware/VTK/Common/vtkObject.cxx:484 > #19 0x416bbede in vtkObject::InvokeEvent (this=0x811bc78, event=12, > callData=0x0) at /home/malat/Kitware/VTK/Common/vtkObject.cxx:625 > #20 0x40759460 in wxVTKRenderWindowInteractor::OnButtonUp > (this=0x811bad0, event=@0xbfffd770) at > /home/malat/wxMaracas/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx:492 > > #21 0x403f1218 in wxEvtHandler::SearchEventTable () from > /opt/wxgtk240/lib/libwx_gtk-2.4.so > #22 0x403f1090 in wxEvtHandler::ProcessEvent () from > /opt/wxgtk240/lib/libwx_gtk-2.4.so > #23 0x403b10ec in gtk_window_button_release_callback () from > /opt/wxgtk240/lib/libwx_gtk-2.4.so > #24 0x41cb0a9c in gtk_marshal_BOOL__POINTER () from > /usr/lib/libgtk-1.2.so.0 > #25 0x41ce4406 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0 > #26 0x41ce373d in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0 > #27 0x41ce14f5 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 > #28 0x41d1bb69 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0 > #29 0x41cb09f5 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0 > #30 0x41cafa1f in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0 > #31 0x41d60d6f in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0 > #32 0x41d96773 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0 > #33 0x41d96d39 in g_main_iterate () from /usr/lib/libglib-1.2.so.0 > #34 0x41d96eec in g_main_run () from /usr/lib/libglib-1.2.so.0 > #35 0x41caf2e3 in gtk_main () from /usr/lib/libgtk-1.2.so.0 > #36 0x403662c6 in wxApp::MainLoop () from > /opt/wxgtk240/lib/libwx_gtk-2.4.so > #37 0x403b8378 in wxAppBase::OnRun () from > /opt/wxgtk240/lib/libwx_gtk-2.4.so > #38 0x40366a2d in wxEntry () from /opt/wxgtk240/lib/libwx_gtk-2.4.so > #39 0x0804cff4 in main (argc=1, argv=0xbfffde34) at > /home/malat/wxMaracas/test/main.cpp:15 > #40 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 > (gdb) > > > > (**) > http://sourceforge.net/mailarchive/forum.php?thread_id=3020695&forum_id=5153 > > > _______________________________________________ > This is the private VTK discussion list. Please keep messages > on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From cnavarro at ncsa.uiuc.edu Tue Aug 26 08:09:31 2003 From: cnavarro at ncsa.uiuc.edu (Christopher M. Navarro) Date: Tue, 26 Aug 2003 07:09:31 -0500 (CDT) Subject: [vtkusers] socket send errors Message-ID: When sending numerous data sets over a socket(vtkSocketCommunicator) from a java client to a c++ server I have been seeing some errors that occasionally show up. I have 17 polydata sets that I'm sending from a java client and ocassionally I get tag mismatch errors where the tag that the c++ client thinks it gets is some large and bogus number (5391674) or something on that order. Usually the first send or maybe the first few sends will work fine but then on a 4th or 5th send of the data a tag mismatch error occurs. To temporarily resolve the issue I close the socket connection and then reopen it midway between the sends (it always stopped on the 8th data set without fail). Any ideas as to what this could be? For an idea on the size of the data, when written to file it's about 228kb. regards, chris From g.gorman at imperial.ac.uk Tue Aug 26 08:22:48 2003 From: g.gorman at imperial.ac.uk (Gerard Gorman) Date: Tue, 26 Aug 2003 13:22:48 +0100 Subject: [vtkusers] VS: =?ISO-8859-1?Q?=C4vtkusers=C5_Re=3A_vtkus?= =?ISO-8859-1?Q?ers_digest=2C_Vol_1_=232035_-_18_msgs?= In-Reply-To: <57DADDD9B062454A82284FE2A5B97A36055828D8@muikku2.hus.fi> References: <57DADDD9B062454A82284FE2A5B97A36055828D8@muikku2.hus.fi> Message-ID: <3F4B5118.2060805@imperial.ac.uk> H?m?l?inen Janne wrote: > Thanks for the answer, the Mayavi frontend seems interesting. Anyhow, I need > to find the way to do the thing myself. We are developping our own software > package, and I need to implement this feature to the existing software. I > took only a quick glance at Mayavi, and I couldn't yet find where they blend > volumes. Well to answer your mayavi question, inside mayavi you can open multiable files at the same time, or indeed open multiable instances of the same file. So long as your coordinates are ok (or your origins are ok), the multiable objects will be displayed together (nicely blended etc). This is quite nice in mayavi because each object/file has its own visualization manager so you can operate on each object independantly from the rest which, when mixed with a bit of imagination, can yield some stunning effects. You might find a simular approach useful. cheers g > > I'm still open for any suggestions on how to blend two volumes so that both > would have different color (please, see my original message at the end of > this message). > > -Janne > > > > >>---------- >>L?hett?j?: Dr. Daniel James White PhD[SMTP:dan at chalkie.org.uk] >>L?hetetty: 25. elokuuta 2003 17:05 >>Vastaanottaja: vtkusers at vtk.org >>Aihe: ?vtkusers? Re: vtkusers digest, Vol 1 #2035 - 18 msgs >> >>Hi Janne, >> >>try using the Mayavi VTK frontend, with the experimental volume module, >>see the mayavi mailing list for this. >> >>Dan >> >>On Monday, August 25, 2003, at 04:52 PM, vtkusers-request at vtk.org wrote: >> >> >>>Message: 2 >>>From: =?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?= >>>To: "'vtkusers at vtk.org'" >>>Date: Mon, 25 Aug 2003 14:41:36 +0200 >>>Subject: [vtkusers] Blending two volumes >>> >>>Hi all, >>> >>>I have a following situation: I have two vtkImageData objects = >>>(tomographic >>>medical data) that I want to display using volume rendering. I would = >>>want to >>>blend them (as with vtkImageBlend), so that both objects would have >>>different colors, e.g., so that I had a gray translucent data set and = >>>inside >>>that an opaque green area.=20 >>> >>>I have done the same thing for 2D slices extracted from the volume by >>>mapping the original intensity levels of the images to colors with >>>vtkImageMapToColors (using a different vtkLookupTable for both) and >>>combining the results with vtkImageBlend. The results can be shown = >>>easily >>>with 2D texture mapping. For 3D rendering this doesn't seem a possible >>>= >>>way >>>to do things. I can of course map the volumes to different colors and = >>>blend >>>them, but volume rendering seems to assume that the mapped data has no >>>colors, but instead a vtkColorTransferFunction is used to map the = >>>intensity >>>levels. Different color transfers can be specified for each component = >>>of the >>>input data, but I don't understand how this is interpreted. Is it = >>>simply >>>that you can specify what component to use for volume rendering? And is >>>there any way to use the original color components of the input = >>>vtkImageData >>>in volume rendering to get the desired effect?=20 >>> >>>I also tried rendering (ray casting) the two volumes to a same scene = >>>using a >>>different color transfer for both, but the results weren't = >>>satisfactory. The >>>volume that was rendered last (it is inside the other volume) is not = >>>veiled >>>by the other translucent volume, but instead is shown as though it were >>>outside it. The toggle IntermixIntersectingGeometry is on, although I = >>>would >>>guess that it hasn't any effect on volumes, right? >>> >>>If anyone 1. knows a way to volume render colored image data (or knows >>>= >>>that >>>it is not possible), or 2. knows if there is a way to render multiple >>>volumes to a same scene so that overlapping parts are blended, I would >>>gladly accept any information, >>> >>>-Janne >>> >>> >> >>Dr. Daniel James White BSc. (Hons.) PhD >>Cell Biology >>Department of biological and environmental science >>PO Box 35 >>University of Jyv?skyl? >>Jyv?skyl? FIN 40014 >>Finland >>+358 (0)14 260 4183 (work) >>+358 (0)414740463 (mob) >> >>http://www.chalkie.org.uk >>dan at chalkie.org.uk >>white at cc.jyu.fi >> >>_______________________________________________ >>This is the private VTK discussion list. >>Please keep messages on-topic. Check the FAQ at: >> >>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: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- ---------------------------------------------------------- Gerard Gorman (PhD Student) Applied Modelling and Computation Group Earth Science and Engineering Imperial College Prince Consort Road Tel. 00 44 +207 594 9323 London SW7 2BP Fax. 00 44 +207 594 9321 U.K. o~o A good slogan beats a good solution. -----------------------w-v-w------------------------------ From vermaas at astron.nl Tue Aug 26 10:21:43 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Tue, 26 Aug 2003 16:21:43 +0200 Subject: [vtkusers] casting one ray? Message-ID: How can I cast one ray from one screen location? From tarjeik at chemcon.no Tue Aug 26 11:40:49 2003 From: tarjeik at chemcon.no (Tarjei Knapstad) Date: 26 Aug 2003 17:40:49 +0200 Subject: [vtkusers] Getting the scene into view In-Reply-To: <1061769645.19033.20.camel@debido.vic.cmis.csiro.au> References: <1061554069.28284.65.camel@cc-intern01> <1061769645.19033.20.camel@debido.vic.cmis.csiro.au> Message-ID: <1061912449.547.41.camel@cc-intern01> On Mon, 2003-08-25 at 02:00, Craig N. Scott wrote: > If you are using the vtkInteractorStyleSwitch as your interactor, > pressing the "r" key should do what you want. Have a look at: > > http://www.vtk.org/doc/release/4.2/html/classvtkInteractorStyle.html#_details > Thanks Craig! I also got a tip on vtkRenderer::ResetCamera() which works like a charm. Cheers, -- Tarjei From jfavre at cscs.ch Tue Aug 26 11:49:22 2003 From: jfavre at cscs.ch (Jean M. Favre) Date: Tue, 26 Aug 2003 17:49:22 +0200 Subject: [vtkusers] casting one ray? References: Message-ID: <3F4B8182.4B6B80DA@cscs.ch> Nico Vermaas wrote: > > How can I cast one ray from one screen location? > How about the following manual page: virtual int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) Perform pick operation with selection point provided. Normally the first two values for the selection point are x-y pixel coordinate, and the third value is =0. Return non-zero if something was successfully picked. -- Dr. Jean M. Favre, email:favre at cscs.ch http://www.cscs.ch/people/Favre.html CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40 Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 From frantzdale at intelligent-imaging.com Tue Aug 26 12:05:28 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Tue, 26 Aug 2003 09:05:28 -0700 Subject: [vtkusers] Volume Rendering with Colored Data? Message-ID: <1CA9269C-D7DF-11D7-8697-0003938371AE@intelligent-imaging.com> I'm trying to extend the SimpleTextureMap2D example to be used with color data. I tried changing the data file to use COLOR_SCALARS, but couldn't get that to work. Looking at the class diagrams it looks like vtkVolumeTexturreMapper2D should have access to an RGB texture somehow, but how? --Ben From Yang at AGIUSA.COM Tue Aug 26 12:39:00 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Tue, 26 Aug 2003 11:39:00 -0500 Subject: [vtkusers] 2D scattered points Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687DE@mail.exchngsvr.agiusa.com> Hi vtkusers, I have a data set with (x, y) coordinates and it is associated with a scalar array that is used to color the points. I can render these points on a plane in 3D by setting z=0 for all points. But I really want to get a static 2D image with Rotate, Traslate and Zoom DISABLED (similar to VTK\Examples\Annotation\Tcl\xyPlot.tcl). Will someone please give me some tips or code snippets? Thank you. Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yang at AGIUSA.COM Tue Aug 26 12:42:11 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Tue, 26 Aug 2003 11:42:11 -0500 Subject: [vtkusers] Color for vtkPoints Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687DF@mail.exchngsvr.agiusa.com> Look at this example I posted earlier. It will get you started. http://article.gmane.org/gmane.comp.lib.vtk.user/6761/match=points+scalar+color -----Original Message----- From: Melissa Mekic [mailto:mekic at gris.uni-tuebingen.de] Sent: Tuesday, August 26, 2003 4:59 AM To: VTK-User Subject: [vtkusers] Color for vtkPoints Hi, I use vtkPoints to create Points. Now, I want to create different colors for each point. Can somebody tell me, how to set these colors? Thank you. Melissa _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From kshivann at engineering.uiowa.edu Tue Aug 26 12:55:13 2003 From: kshivann at engineering.uiowa.edu (kshivann) Date: Tue, 26 Aug 2003 11:55:13 -0500 Subject: [vtkusers] setaxes function Message-ID: <3F44A9E8@webmail.engineering.uiowa.edu> hi all, i am searching for a function which shows directions of xyz axes in any given viewport. function 'setaxes' is supposed to do the same but is not implemented. are there any other functions. thanks kiran From sophie_linfei at hotmail.com Tue Aug 26 14:27:48 2003 From: sophie_linfei at hotmail.com (=?gb2312?B?Wmh1IEFsbGVuIC0g8t3y9g==?=) Date: Wed, 27 Aug 2003 02:27:48 +0800 Subject: [vtkusers] A hole on the surface built from 2D contours. Message-ID: Hi all, I'm trying to build the 3D surface from a set of parallel planar 2D contours using vtkVoxelContoursToSurfaceFilter. The problem is, sometimes there will be a hole on the surface. Thus I will get a non-close polygon when I cut the the surface with vtkCutter. vtkVoxelContoursToSurfaceFilter has a lot of limitations and needs integral values.Are there any other classes in VTK can generate 3D surfaces from 3D contours? Thanks a lot. Sophie _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn From sophie_linfei at hotmail.com Tue Aug 26 14:31:19 2003 From: sophie_linfei at hotmail.com (=?gb2312?B?Wmh1IEFsbGVuIC0g8t3y9g==?=) Date: Wed, 27 Aug 2003 02:31:19 +0800 Subject: [vtkusers] How to link unsorted lines into polygons. Message-ID: Hi everybody, The cutting result of a plane and a surface using vtkCutter is a set of unsorted lines, are there any tools in VTK which can link them into polygons? Thanks alot. Sophie _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.msn.com/cn From sophie_linfei at hotmail.com Tue Aug 26 14:32:40 2003 From: sophie_linfei at hotmail.com (=?gb2312?B?Wmh1IEFsbGVuIC0g8t3y9g==?=) Date: Wed, 27 Aug 2003 02:32:40 +0800 Subject: [vtkusers] How to get the intersection point of a polygon and a plane? Message-ID: How to get the intersection point of a polygon and a plane? Thanks a lot. _________________________________________________________________ ???? MSN Explorer: http://explorer.msn.com/lccn/ From ebachta at iupui.edu Tue Aug 26 15:15:28 2003 From: ebachta at iupui.edu (Ed Bachta) Date: 26 Aug 2003 14:15:28 -0500 Subject: [vtkusers] Reading subsets from vtk files Message-ID: <1061925327.23895.27.camel@jackson.uits.iupui.edu> Hello vtkusers, I've been searching the docs and archives to find out if VTK supports reading subsets of a dataset from file, but I still can't see how to do it. For example, if I have a huge set of volume data saved in binary VTK format as vtkStructuredPoints, and I just want to visualize a subset, is there some way to set extents on the reader so that it only reads the data I'm interested in looking at? This was my best guess, but it doesn't seem to work: print "Setting up..." reader = vtk.vtkStructuredPointsReader() #data = vtk.vtkStructuredPoints() <- doesn't work either data = reader.GetOutput() data.SetOrigin(0,0,0) data.SetSpacing(1,1,1) data.SetExtent(0, 319, 0, 319, 0, 0) reader.ComputeInputUpdateExtents(data) reader.SetFileName("/usr/local/data/Blondin/St12dS.1193.vtk") reader.UpdateWholeExtent() print "Reading..." reader.Update() extent = reader.GetOutput().GetExtent() print extent print "Done." The extent ends up as (0, 319, 0, 319, 0, 319) -- Ed Bachta Technical Lead Visualization and Interactive Spaces Lab, Pervasive Technology Labs at Indiana University http://vis.iu.edu From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 26 13:09:45 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 26 Aug 2003 19:09:45 +0200 Subject: [vtkusers] 2D scattered points In-Reply-To: <6AC51773FA304E469DEE9569AF903E5B1687DE@mail.exchngsvr.agiusa.com> References: <6AC51773FA304E469DEE9569AF903E5B1687DE@mail.exchngsvr.agiusa.com> Message-ID: <3F4B9459.60307@creatis.insa-lyon.fr> Xianjin Yang wrote: > Hi vtkusers, > > I have a data set with (x, y) coordinates and it is associated with a > scalar array that is used to color the points. I can render these points > on a plane in 3D by setting z=0 for all points. But I really want to get > a static 2D image with Rotate, Traslate and Zoom DISABLED (similar to > VTK\Examples\Annotation\Tcl\xyPlot.tcl). Will someone please give me > some tips or code snippets? Thank you. > > Yang > > > Yang, You can play with AddObserver and RemoveObserver to disable any behavior you don't like. (have a look in particular to vtkInteractorStyleImage ) You might also have a look at vtkImageViewer or if you prefer, here is a sample code: ############################# package require vtk # Image pipeline vtkPNGReader reader reader SetDataSpacing 0.8 0.8 1.5 reader SetFileName $VTK_DATA_ROOT/Data/fullhead15.png vtkImageShiftScale shiftScale shiftScale SetInput [reader GetOutput] shiftScale SetShift 0 shiftScale SetScale 0.07 shiftScale SetOutputScalarTypeToUnsignedChar vtkImageActor ia ia SetInput [shiftScale GetOutput] vtkImageMapper bboxMapper bboxMapper SetInput [shiftScale GetOutput] vtkActor2D bboxActor bboxActor SetMapper bboxMapper vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren ren AddActor ia ren SetBackground 0.1 0.2 0.4 renWin SetSize 400 400 renWin Render ############################# HTH mathieu From c.p.botha at ewi.tudelft.nl Tue Aug 26 16:52:39 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Tue, 26 Aug 2003 22:52:39 +0200 Subject: [vtkusers] How to link unsorted lines into polygons. In-Reply-To: References: Message-ID: <3F4BC897.9050806@ewi.tudelft.nl> Zhu Allen - ?? wrote: > The cutting result of a plane and a surface using vtkCutter is a set of > unsorted lines, are there any tools in VTK which can link them into > polygons? The vtkStripper filter does what you want. Have a look at the ClipCow example. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Aug 26 14:28:44 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 26 Aug 2003 20:28:44 +0200 Subject: [vtkusers] How to link unsorted lines into polygons. In-Reply-To: References: Message-ID: <3F4BA6DC.7070100@creatis.insa-lyon.fr> Sophie, Please search the mailing list first: http://public.kitware.com/pipermail/vtkusers/2003-March/016420.html HTH mathieu Zhu Allen - ?? wrote: > Hi everybody, > > The cutting result of a plane and a surface using vtkCutter is a set of > unsorted lines, are there any tools in VTK which can link them into > polygons? > Thanks alot. > > Sophie > > _________________________________________________________________ > ?????????????? MSN Messenger: http://messenger.msn.com/cn > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From frantzdale at intelligent-imaging.com Tue Aug 26 20:52:33 2003 From: frantzdale at intelligent-imaging.com (Ben FrantzDale) Date: Tue, 26 Aug 2003 17:52:33 -0700 Subject: [vtkusers] Rendering vtkImageData In-Reply-To: <62DD37292ED5464CBB142913FC65F8AB05C36329@BANMLVEM01.e2k.ad.ge.com> Message-ID: You probably want to look at the volume rendering examples in Examples/VolumeRendering/. --Ben On Monday, August 18, 2003, at 04:32 AM, Asnani, Narendra (CORP, GEITC) wrote: > Hi All, > > I have a 3D volume in the form of vtkImageData. It will be really a > great help if anyone can help me in finding out the appropriate > visualization pipeline to view the 3D rendered object. > > Thanks in advance. > Narendra > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From skboyd at ucalgary.ca Tue Aug 26 22:57:32 2003 From: skboyd at ucalgary.ca (Steve Boyd) Date: Tue, 26 Aug 2003 19:57:32 -0700 Subject: [vtkusers] vtkImageData: How to set the scalar pointer Message-ID: <3F4C1E1C.B818033A@ucalgary.ca> Hi, How can I modify the pointer to the scalar data in vtkImageData? In a reader class I'm working on, the image data is already in memory (from a C function). Previously, I've been allocating memory in my vtkImageData class and then copying to that allocated memory, but this requires two copies of the image data in memory at the same time. Can't I just set the vtkImageData pointer to point at the data already in memory (taking care to set extents, dim, etc)? I want to do something like this: vtkImageData *data = this->GetOutput(); data->SetScalarTypeToChar(); data->SetDimensions(10,10,10); data->SetScalarPointer( *mydata ); // SetScalarPointer() does not exist WHERE: mydata is an array of 1000 char. I know there is a function to "GetScalarPointer()", but can't figure out how to modify the pointer. HELP Please! Cheers, Steve From vermaas at astron.nl Wed Aug 27 03:36:46 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Wed, 27 Aug 2003 09:36:46 +0200 Subject: [vtkusers] Re: casting one ray Message-ID: Hi, But then I am back to square 1 with my original problem for which I am trying to find a solution. Let me explain. I am picking on a MIP raycasted volume, but the result is not the maximum pixel along the ray, but a pixel somewhere in the middle of the volume. I don't know where and why the ray stops or why it takes that particular pixel. Is there some way to configure the pick? To tell it to go on until it finds some threshhold? Or to return the pixel with the maximum/minimum/average value along the ray? Or is there another way to cast one ray and get back the MIP result? Nico ------------- Date: Tue, 26 Aug 2003 17:49:22 +0200 From: "Jean M. Favre" Organization: CSCS To: Nico Vermaas Cc: vtkusers at public.kitware.com Subject: Re: [vtkusers] casting one ray? Nico Vermaas wrote: > > How can I cast one ray from one screen location? > How about the following manual page: virtual int vtkPicker::Pick(float selectionX, float selectionY, float selectionZ, vtkRenderer *renderer) Perform pick operation with selection point provided. Normally the first two values for the selection point are x-y pixel coordinate, and the third value is =0. Return non-zero if something was successfully picked. -- Dr. Jean M. Favre, email:favre at cscs.ch http://www.cscs.ch/people/Favre.html CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40 Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 --__--__-- From john.biddiscombe at mirada-solutions.com Wed Aug 27 04:52:33 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Wed, 27 Aug 2003 09:52:33 +0100 Subject: [vtkusers] Re: casting one ray Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B7754281B46@oxcore01.mirada-solutions.com> Just use a probefilter and a linesource with plenty of samples on it, then loop over each probed value to find the max. You can set the line source based on camera view direction and pixel location of screen pixel in world space. JB > -----Original Message----- > From: Nico Vermaas [mailto:vermaas at astron.nl] > Sent: 27 August 2003 08:37 > To: vtkusers at vtk.org > Subject: [vtkusers] Re: casting one ray > > > Hi, > > But then I am back to square 1 with my original problem for > which I am trying to find a solution. > Let me explain. > > I am picking on a MIP raycasted volume, but the result is not > the maximum pixel along the ray, but a pixel somewhere in the > middle of the volume. I don't know where and why the ray > stops or why it takes that particular pixel. > > Is there some way to configure the pick? To tell it to go on > until it finds some threshhold? Or to return the pixel with > the maximum/minimum/average value along the ray? > > Or is there another way to cast one ray and get back the MIP result? > > Nico > > > ------------- > Date: Tue, 26 Aug 2003 17:49:22 +0200 > From: "Jean M. Favre" > Organization: CSCS > To: Nico Vermaas > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] casting one ray? > > Nico Vermaas wrote: > > > > How can I cast one ray from one screen location? > > > > How about the following manual page: > > virtual int vtkPicker::Pick(float selectionX, > float selectionY, > float selectionZ, > vtkRenderer *renderer) > > Perform pick operation with selection point provided. > Normally the > first two values for the selection point are x-y pixel coordinate, and > the third value is =0. Return non-zero if something was successfully > picked. > > -- > Dr. Jean M. Favre, email:favre at cscs.ch > http://www.cscs.ch/people/Favre.html > CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40 > Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 > > --__--__-- > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Aug 27 03:55:00 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 27 Aug 2003 09:55:00 +0200 Subject: [vtkusers] vtkImageData: How to set the scalar pointer In-Reply-To: <3F4C1E1C.B818033A@ucalgary.ca> References: <3F4C1E1C.B818033A@ucalgary.ca> Message-ID: <3F4C63D4.9030000@creatis.insa-lyon.fr> Steve, You may have a look at vtkImageImport: http://www.vtk.org/doc/nightly/html/classvtkImageImport.html Or else, usarray = vtkUnsignedShortArray::New( ); usarray->SetNumberOfComponents( 1 ); usarray->SetArray( ( ushort* )( my_c_array ), size, 1 ); //Pay attention in particular to the last param of SetArray: //http://www.vtk.org/doc/nightly/html/classvtkUnsignedShortArray.html#z798_0 vtk = vtkImageData::New(); vtk->SetDimensions( blabla ); vtk->SetSpacing( blabla ); vtk->SetScalarType( VTK_UNSIGNED_SHORT ); vtk->GetPointData( )->SetScalars( usarray ); usarray->Delete( ); HTH mathieu Steve Boyd wrote: > Hi, > > How can I modify the pointer to the scalar data in vtkImageData? In a > reader class I'm working on, the image data is already in memory (from a > C function). Previously, I've been allocating memory in my vtkImageData > class and then copying to that allocated memory, but this requires two > copies of the image data in memory at the same time. Can't I just set > the vtkImageData pointer to point at the data already in memory (taking > care to set extents, dim, etc)? > > I want to do something like this: > > vtkImageData *data = this->GetOutput(); > data->SetScalarTypeToChar(); > data->SetDimensions(10,10,10); > data->SetScalarPointer( *mydata ); // SetScalarPointer() does not > exist > > WHERE: mydata is an array of 1000 char. > > I know there is a function to "GetScalarPointer()", but can't figure out > how to modify the pointer. > > HELP Please! > > Cheers, > > Steve > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From vermaas at astron.nl Wed Aug 27 05:04:19 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Wed, 27 Aug 2003 11:04:19 +0200 Subject: [vtkusers] Re: casting one ray Message-ID: Hi John, That is what I tried also. In fact I take a line from the camera worldcoords to the picked point worldcoords. I do get some good results when I display that probe in a xyplot, I can see the values on the ray then (and I can see that the pick indeed does not stop at the max pixel, but goes right through). But.. how do I loop over those values? How do I get to that data in the probe? Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== >>> "John Biddiscombe" 08/27/03 10:53 AM >>> Just use a probefilter and a linesource with plenty of samples on it, then loop over each probed value to find the max. You can set the line source based on camera view direction and pixel location of screen pixel in world space. JB > -----Original Message----- > From: Nico Vermaas [mailto:vermaas at astron.nl] > Sent: 27 August 2003 08:37 > To: vtkusers at vtk.org > Subject: [vtkusers] Re: casting one ray > > > Hi, > > But then I am back to square 1 with my original problem for > which I am trying to find a solution. > Let me explain. > > I am picking on a MIP raycasted volume, but the result is not > the maximum pixel along the ray, but a pixel somewhere in the > middle of the volume. I don't know where and why the ray > stops or why it takes that particular pixel. > > Is there some way to configure the pick? To tell it to go on > until it finds some threshhold? Or to return the pixel with > the maximum/minimum/average value along the ray? > > Or is there another way to cast one ray and get back the MIP result? > > Nico > > > ------------- > Date: Tue, 26 Aug 2003 17:49:22 +0200 > From: "Jean M. Favre" > Organization: CSCS > To: Nico Vermaas > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] casting one ray? > > Nico Vermaas wrote: > > > > How can I cast one ray from one screen location? > > > > How about the following manual page: > > virtual int vtkPicker::Pick(float selectionX, > float selectionY, > float selectionZ, > vtkRenderer *renderer) > > Perform pick operation with selection point provided. > Normally the > first two values for the selection point are x-y pixel coordinate, and > the third value is =0. Return non-zero if something was successfully > picked. > > -- > Dr. Jean M. Favre, email:favre at cscs.ch > http://www.cscs.ch/people/Favre.html > CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40 > Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82 > > --__--__-- > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From j.mccoy at gmx.de Wed Aug 27 05:36:43 2003 From: j.mccoy at gmx.de (joseph mccoy) Date: Wed, 27 Aug 2003 11:36:43 +0200 Subject: [vtkusers] (no subject) Message-ID: <001b01c36c7e$b9fd9a30$1a01a8c0@cad> Hi All, sorry for this maybe very silly question, but i don't have any experience with cmake at all. here's my question: i have slightly changed some of the vtk- files (vtkStreamer and vtkStreamLine), but i don't want to replace the original files. instead i'd like to add my changed files (maybe vtkMyStreamer or something like that) so i'm able to use both. so i was wondering if i have to add those files to the cmakelist.txt and recompile the whole thing or if it is enough to add the files within vc++ (like prpject/add/files..) and recompile only the changed dlls. thanks Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yann.CEZARD at ifp.fr Wed Aug 27 05:47:54 2003 From: Yann.CEZARD at ifp.fr (CEZARD Yann) Date: Wed, 27 Aug 2003 11:47:54 +0200 Subject: [vtkusers] VTK 4.2 and Python 2.3 on Windows problem Message-ID: <488C02265C6AD611BF200002A542182F04035094@irnts22.ifp.fr> Hi ! I've recently decided to make some tests with Python 2.3, which is sayed to be faster than 2.2. As I am using Python for prototyping with VTK, I have compiled VTK 4.2 using Visual Studio .NET on Windows NT. The build is successful, but when I want to launch MayaVi, or even the test_vtk.py script to test the VTK installation, I have a read error (memory cannot be read at address...). ################################################## D:\User\cezardy\Logiciels\MayaVi\CVS\mayavi\doc>python test_vtk.py Testing if Tkinter is available... OK - you have Tkinter TclVersion = 8.4, TkVersion = 8.4 Testing if your overall installation is OK ... OK, your installation seems fine! Testing if VTK can be imported ... OK, vtkpython found. Testing if vtkCubeAxesActor2D can be instantiated ... OK, vtkCubeAxesActor2D can be instantiated. Testing a sample vtk program. You should see a 300x300 pixel window with a black background and with a magenta coloured Cone. You can interact with the cone using the mouse. To quit the test press q on the window. If this test is successful then the basic vtkpython installation is OK. Testing if vtkRenderWidget can be imported... OK, vtkRenderWidget found. Testing a sample vtk program that uses the vtkTkRenderWidget. You should see a 300x300 pixel window with a black background and with a magenta coloured Cone. You can interact with the cone using the mouse. To quit the test press q on the window. If this test is successful then the vtkpython installation is OK. You should be able to use Tkinter and VTK properly. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Here there is no window displayed, and a dialog box says that the memory cannot be read... than python quits ############################################################# So my question is : Does anybody succeed in compiling VTK for windows and Python 2.3 ? Am I missing something ? I must precise that I have already updated the "vtkLoadPythonTkWidgets.py" script to the CVS version. Thanks for any Help ! Yann Cezard From julien.hamaide at tcts.fpms.ac.be Wed Aug 27 06:04:33 2003 From: julien.hamaide at tcts.fpms.ac.be (Julien Hamaide) Date: Wed, 27 Aug 2003 12:04:33 +0200 Subject: [vtkusers] vtkCamera reset problem Message-ID: I'd like to reset camera, but the vtkRenderer::ResetCamera function only reset modifcation made by the zoom and translate button, and not the rotate button. How can I reset the camera to her original position? Thanks Julien Hamaide Tcts Lab - Multitel Asbl. Faculte Polytechnique de Mons Parc Initialis - Avenue Nicolas Copernic,1 7000 - Mons Belgium http://tcts.fpms.ac.be tel +32 65 37 47 43 email : julien.hamaide at tcts.fpms.ac.be From john.biddiscombe at mirada-solutions.com Wed Aug 27 06:07:34 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Wed, 27 Aug 2003 11:07:34 +0100 Subject: [vtkusers] Re: casting one ray Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B7754281B47@oxcore01.mirada-solutions.com> Set the start and end point to the nearest and farthest points of the volume (as viweed by the ray). Set the resolution of the linesource to be as high as the pixel size so that you sample each voxel as you pass through, then probe->update(); vtkPolyData *vals = probe->GetOutput() (assum,ing probe output is float data, which may not be correct if the volume has unsigned short or somthig) vtkFloatArray *scalars = vals->GetScalars(); for (int i=0; iGetNumberOfTuples(); i++) { float val = scalars->GetTuple(i); } you'll need to play around with what I've typed as I've just done it quickly from memory and it's probably wrong, but that's the general idea. For faster iteration you can vtkFloatArray *scalars = vals->GetScalars(); float *floatdat = (float*)scalars->GetVoidPointer(); or getPointer if it's a vtkfloatarray etc etc JB RPD : A drag drop front end for vtk www.skippingmouse.co.uk > -----Original Message----- > From: Nico Vermaas [mailto:vermaas at astron.nl] > Sent: 27 August 2003 10:04 > To: John Biddiscombe; vtkusers at vtk.org > Subject: RE: [vtkusers] Re: casting one ray > > > Hi John, > > That is what I tried also. In fact I take a line from the > camera worldcoords to the picked point worldcoords. I do get > some good results when I display that probe in a xyplot, I > can see the values on the ray then (and I can see that the > pick indeed does not stop at the max pixel, but goes right through). > > But.. how do I loop over those values? How do I get to that > data in the probe? > > Nico > > ==================================================== > Nico Vermaas > ASTRON - Westerbork Synthesis Radio Telescope > Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands > > tel: +31 593 598710 > vermaas at astron.nl > ==================================================== > > >>> "John Biddiscombe" > 08/27/03 10:53 AM >>> > Just use a probefilter and a linesource with plenty of > samples on it, then loop over each probed value to find the > max. You can set the line source based on camera view > direction and pixel location of screen pixel in world space. > > JB > > > > -----Original Message----- > > From: Nico Vermaas [mailto:vermaas at astron.nl] > > Sent: 27 August 2003 08:37 > > To: vtkusers at vtk.org > > Subject: [vtkusers] Re: casting one ray > > > > > > Hi, > > > > But then I am back to square 1 with my original problem for > > which I am trying to find a solution. > > Let me explain. > > > > I am picking on a MIP raycasted volume, but the result is not > > the maximum pixel along the ray, but a pixel somewhere in the > > middle of the volume. I don't know where and why the ray > > stops or why it takes that particular pixel. > > > > Is there some way to configure the pick? To tell it to go on > > until it finds some threshhold? Or to return the pixel with > > the maximum/minimum/average value along the ray? > > > > Or is there another way to cast one ray and get back the MIP result? > > > > Nico > > > > > > ------------- > > Date: Tue, 26 Aug 2003 17:49:22 +0200 > > From: "Jean M. Favre" > > Organization: CSCS > > To: Nico Vermaas > > Cc: vtkusers at public.kitware.com > > Subject: Re: [vtkusers] casting one ray? > > > > Nico Vermaas wrote: > > > > > > How can I cast one ray from one screen location? > > > > > > > How about the following manual page: > > > > virtual int vtkPicker::Pick(float selectionX, > > float selectionY, > > float selectionZ, > > vtkRenderer *renderer) > > > > Perform pick operation with selection point provided. > > Normally the > > first two values for the selection point are x-y pixel > coordinate, and > > the third value is =0. Return non-zero if something was successfully > > picked. > > > > -- > > Dr. Jean M. Favre, email:favre at cscs.ch > > http://www.cscs.ch/people/Favre.html > > CSCS, Swiss Center for Scientific Computing | Tel: +41 > (91) 610.82.40 > > Via Cantonale, 6928 Manno, Switzerland | Fax: +41 > (91) 610.82.82 > > > > --__--__-- > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > > 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: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From ramakrishna.prakash at quest-global.com Wed Aug 27 06:22:59 2003 From: ramakrishna.prakash at quest-global.com (Shyam Prakash) Date: Wed, 27 Aug 2003 15:52:59 +0530 Subject: [vtkusers] vtkCamera reset problem In-Reply-To: Message-ID: <002b01c36c85$304cde20$730ba8c0@questglobal.com> Just a guess. You can remember initial camera position and do Cam->SetPosition(initPosition); every time when you want to reset. --Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of Julien Hamaide Sent: Wednesday, August 27, 2003 3:35 PM To: VTK user list Subject: [vtkusers] vtkCamera reset problem I'd like to reset camera, but the vtkRenderer::ResetCamera function only reset modifcation made by the zoom and translate button, and not the rotate button. How can I reset the camera to her original position? Thanks Julien Hamaide Tcts Lab - Multitel Asbl. Faculte Polytechnique de Mons Parc Initialis - Avenue Nicolas Copernic,1 7000 - Mons Belgium http://tcts.fpms.ac.be tel +32 65 37 47 43 email : julien.hamaide at tcts.fpms.ac.be _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From j.mccoy at gmx.de Wed Aug 27 07:28:10 2003 From: j.mccoy at gmx.de (joseph mccoy) Date: Wed, 27 Aug 2003 13:28:10 +0200 Subject: [vtkusers] adding files to existing vtk4.x using vc++ on win2000 Message-ID: <003801c36c8e$4bee2540$1a01a8c0@cad> Hi All, sorry for this maybe very silly question, but i don't have any experience with cmake at all. here's my question: i have slightly changed some of the vtk- files (vtkStreamer and vtkStreamLine), but i don't want to replace the original files. instead i'd like to add my changed files (maybe vtkMyStreamer or something like that) so i'm able to use both. so i was wondering if i have to add those files to the cmakelist.txt and recompile the whole thing or if it is enough to add the files within vc++ (like prpject/add/files..) and recompile only the changed dlls. thanks Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: From fgrim at norby.dyndns.org Wed Aug 27 10:25:02 2003 From: fgrim at norby.dyndns.org (Frederick Grim) Date: 27 Aug 2003 10:25:02 -0400 Subject: [vtkusers] build failure in hybrid Message-ID: <1061994302.14864.61.camel@golgatha.norby.dyndns.org> Howdy, I can't seem to build vtk. I am using gentoo linux with lam-mpi. My CMakeCache.txt is included beneath the warnings. The error I get is: /home/hal9000/VTK-4.2.2/Rendering: building default_target Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkRendering.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkRenderingJava.so... Building shared module /home/hal9000/VTK-4.2.2/bin/libvtkRenderingPython.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkRenderingPythonTkWidgets.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkRenderingTCL.so... /home/hal9000/VTK-4.2.2/Hybrid: building default_target Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkHybrid.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkHybridJava.so... Building shared module /home/hal9000/VTK-4.2.2/bin/libvtkHybridPython.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so... /home/hal9000/VTK-4.2.2/Parallel: building default_target Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkParallel.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkParallelJava.so... Building shared module /home/hal9000/VTK-4.2.2/bin/libvtkParallelPython.so... Building shared library /home/hal9000/VTK-4.2.2/bin/libvtkParallelTCL.so... /home/hal9000/VTK-4.2.2/Wrapping/Tcl: building default_target Building executable /home/hal9000/VTK-4.2.2/bin/pvtk... /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::New()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::SetExecutionToOutputRatio(vtkProcessObject*, int)' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::SetInputToExecutionRatio(vtkProcessObject*, int, int)' /home/hal9000/VTK-4.2.2/bin/libvtkHybrid.so: undefined reference to `vtkInstantiatorvtkPushImageFilterSampleNew()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushImageReader::Run()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::Run(vtkSource*)' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushImageReader::New()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushImageFilterSample::New()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::AddWindow(vtkRenderWindow*)' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::AddPusher(vtkProcessObject*)' /home/hal9000/VTK-4.2.2/bin/libvtkHybrid.so: undefined reference to `vtkInstantiatorvtkPushImageReaderNew()' /home/hal9000/VTK-4.2.2/bin/libvtkHybrid.so: undefined reference to `vtkInstantiatorvtkPushPipelineNew()' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushPipeline::Push(vtkSource*)' /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to `vtkPushImageReader::Push()' collect2: ld returned 1 exit status make[3]: *** [/home/hal9000/VTK-4.2.2/bin/pvtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 -------------- next part -------------- # This is the CMakeCache file. # For build in directory: /home/hal9000/VTK-4.2.2 # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a variable in the cache. # TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Path to a program. BASH:FILEPATH=/bin/bash //Build the documentation (Doxygen). BUILD_DOCUMENTATION:BOOL=ON //Build VTK examples. BUILD_EXAMPLES:BOOL=ON //Build VTK with shared libraries. BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=ON //Path to a program. CMAKE_AR:FILEPATH=/usr/bin/ar //For backwards compatibility, what version of CMake commands and // syntax should this version of CMake allow. CMAKE_BACKWARDS_COMPATIBILITY:STRING=1.8 //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. // CMAKE_BUILD_TYPE:STRING=None //Path to a program. CMAKE_CTEST_COMMAND:FILEPATH=/usr/bin/ctest //C++ compiler CMAKE_CXX_COMPILER:STRING=/usr/bin/hcp //Flags used by the compiler during all build types. CMAKE_CXX_FLAGS:STRING=' -march=pentium3 -O3 -pipe -fomit-frame-pointer -Wno-deprecated ' //Flags used by the compiler during debug builds. CMAKE_CXX_FLAGS_DEBUG:STRING=-g //Flags used by the compiler during release minsize builds. CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os //Flags used by the compiler during release builds (/MD /Ob1 /Oi // /Ot /Oy /Gs will produce slightly less optimized but smaller // files). CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 //Flags used by the compiler during Release with Debug Info builds. // CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g //C compiler CMAKE_C_COMPILER:STRING=/usr/bin/hcc //Flags for C compiler. CMAKE_C_FLAGS:STRING=' -march=pentium3 -O3 -pipe -fomit-frame-pointer ' //Flags used by the compiler during debug builds. CMAKE_C_FLAGS_DEBUG:STRING=-g //Flags used by the compiler during release minsize builds. CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os //Flags used by the compiler during release builds (/MD /Ob1 /Oi // /Ot /Oy /Gs will produce slightly less optimized but smaller // files). CMAKE_C_FLAGS_RELEASE:STRING=-O3 //Flags used by the compiler during Release with Debug Info builds. // CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g //Flags used by the linker. CMAKE_EXE_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. // CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Use HP pthreads. CMAKE_HP_PTHREADS:BOOL= //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake //Flags used by the linker during the creation of modules. CMAKE_MODULE_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. // CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib //Flags used by the linker during the creation of dll's. CMAKE_SHARED_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. // CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= //If set, runtime paths are not added when using shared libraries. // CMAKE_SKIP_RPATH:BOOL=NO //Thread library used. CMAKE_THREAD_LIBS:STRING=-pthread //Use the pthreads library. CMAKE_USE_PTHREADS:BOOL=1 //Use sproc libs. CMAKE_USE_SPROC:BOOL= //Use the win32 thread library. CMAKE_USE_WIN32_THREADS:BOOL= //If this value is on, makefiles will be generated without the // .SILENT directive, and all commands will be echoed to the console // during the make. This is useful for debugging only. CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE //X11 extra flags. CMAKE_X_CFLAGS:STRING=-I/usr/X11R6/include //Libraries and options used in X11 programs. CMAKE_X_LIBS:STRING=-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so //Path to program used to compress files for transfer to the dart // server COMPRESSIONCOMMAND:FILEPATH=/bin/gzip //Path to a program. CP:FILEPATH=/bin/cp //Path to a program. CVSCOMMAND:FILEPATH=/usr/bin/cvs //Options passed to the cvs update command. CVS_UPDATE_OPTIONS:STRING=-d -A -P //Limit of reported errors, -1 reports all. DART_BUILD_ERROR_REPORT_LIMIT:BOOL=OFF //Limit of reported warnings, -1 reports all. DART_BUILD_WARNING_REPORT_LIMIT:BOOL=OFF //If you have Dart installed, where is it located? DART_ROOT:PATH=DART_ROOT-NOTFOUND //Time alloted for a test before Dart will kill the test. DART_TESTING_TIMEOUT:STRING=1500 //Show the actual output of the build, or if off show a . for each // 1024 bytes. DART_VERBOSE_BUILD:BOOL=OFF //Should Dart server send email when build errors are found in // Continuous builds? DELIVER_CONTINUOUS_EMAIL:BOOL=Off //Build the HTML Help file (CHM). DOCUMENTATION_HTML_HELP:BOOL=ON //Build a compressed tar archive of the HTML doc. DOCUMENTATION_HTML_TARZ:BOOL=OFF //Path to a program. DOT:FILEPATH=/usr/bin/dot //Missing description DOT_PATH:FILEPATH=/usr/bin //Path to a program. DOXYGEN:FILEPATH=/usr/bin/doxygen //Single output directory for building all executables. EXECUTABLE_OUTPUT_PATH:PATH=/home/hal9000/VTK-4.2.2/bin //What is the path where the file expat.h can be found EXPAT_INCLUDE_DIR:PATH=/usr/include //Where can the expat library be found EXPAT_LIBRARY:FILEPATH=/usr/lib/libexpat.so //Path to a program. GNUPLOT:FILEPATH=/usr/bin/gnuplot //Path to gunzip executable GUNZIPCOMMAND:FILEPATH=/bin/gunzip //Path to a program. GZIP:FILEPATH=/bin/gzip //Path to java command, used by the Dart server to create html. // JAVACOMMAND:FILEPATH=/usr/local/blackdown-jdk-1.4.1/bin/java //Path to a program. JAVA_ARCHIVE:FILEPATH=/usr/local/blackdown-jdk-1.4.1/bin/jar //What is the path where the file jawt.h can be found JAVA_AWT_INCLUDE_PATH:PATH=/usr/local/blackdown-jdk-1.4.1/include //Where can the jawt library be found JAVA_AWT_LIBRARY:FILEPATH=/usr/local/blackdown-jdk-1.4.1/jre/lib/i386/libjawt.so //Path to a program. JAVA_COMPILE:FILEPATH=/usr/local/blackdown-jdk-1.4.1/bin/javac //What is the path where the file jni.h can be found JAVA_INCLUDE_PATH:PATH=/usr/local/blackdown-jdk-1.4.1/include //What is the path where the file jni_md.h can be found JAVA_INCLUDE_PATH2:PATH=/usr/local/blackdown-jdk-1.4.1/include/linux //Path to a program. JAVA_RUNTIME:FILEPATH=/usr/local/blackdown-jdk-1.4.1/bin/java //What is the path where the file jpeglib.h can be found JPEG_INCLUDE_DIR:PATH=/usr/include //Where can the jpeg library be found JPEG_LIBRARY:FILEPATH=/usr/lib/libjpeg.so //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH=/home/hal9000/VTK-4.2.2/bin //Command used to build entire project from the command line. MAKECOMMAND:STRING=/usr/bin/gmake -i //Missing description MPI_EXTRA_LIBRARY:FILEPATH=/usr/lib/liblam.a //What is the path where the file mpi.h can be found MPI_INCLUDE_PATH:PATH=/usr/include //Where can one of the mpi or mpich libraries be found MPI_LIBRARY:FILEPATH=/usr/lib/libmpi.a //Path to a program. MV:FILEPATH=/bin/mv //What is the path where the file GL/gl.h can be found OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include //Where can one of the MesaGL or GL libraries be found OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libMesaGL.so //Where can one of the MesaGLU or GLU libraries be found OPENGL_glu_LIBRARY:FILEPATH=/usr/lib/libMesaGLU.so //What is the path where the file GL/xmesa.h can be found OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/include //Path to a program. PERL_EXECUTABLE:FILEPATH=/usr/bin/perl //Where can the png library be found PNG_LIBRARY:FILEPATH=/usr/lib/libpng.so //What is the path where the file png.h can be found PNG_PNG_INCLUDE_DIR:PATH=/usr/include //Path to Rational purify command, used for memory error detection. // PURIFYCOMMAND:FILEPATH=PURIFYCOMMAND-NOTFOUND //Path to a program. PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.2 //What is the path where the file Python.h can be found PYTHON_INCLUDE_PATH:PATH=/usr/include/python2.2 //Where can one of the python23, python2.3, python22, python2.2, // python21, python2.1, python20, python2.0, python16, python1.6, // python15 or python1.5 libraries be found PYTHON_LIBRARY:FILEPATH=/usr/lib/python2.2/config/libpython2.2.a //Utility library needed for vtkpython PYTHON_UTIL_LIBRARY:FILEPATH=/usr/lib/libutil.so //Path to a program. RM:FILEPATH=/bin/rm //Path to scp command, used by some Dart clients for submitting // results to a Dart server (when not using ftp for submissions) // SCPCOMMAND:FILEPATH=/usr/bin/scp //Name of the computer/site where compile is being run SITE:STRING=golgatha //Path to a program. TAR:FILEPATH=/bin/tar //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/usr/include //Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82, // tcl8.2, tcl80 or tcl8.0 libraries be found TCL_LIBRARY:FILEPATH=/usr/lib/libtcl.so //Path to a program. TCL_TCLSH:FILEPATH=/usr/bin/tclsh //What is the path where the file tiff.h can be found TIFF_INCLUDE_DIR:PATH=/usr/include //Where can the tiff library be found TIFF_LIBRARY:FILEPATH=/usr/lib/libtiff.so //What is the path where the file tk.h can be found TK_INCLUDE_PATH:PATH=/usr/include //Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2, // tk80 or tk8.0 libraries be found TK_LIBRARY:FILEPATH=/usr/lib/libtk.so //Where can the vli library be found VLI_LIBRARY_FOR_VG500:FILEPATH=VLI_LIBRARY_FOR_VG500-NOTFOUND //Where can the vli3 library be found VLI_LIBRARY_FOR_VP1000:FILEPATH=VLI_LIBRARY_FOR_VP1000-NOTFOUND //Value Computed by CMake VTKEXPAT_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/expat //Value Computed by CMake VTKEXPAT_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/expat //Value Computed by CMake VTKFREETYPE_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/freetype //Value Computed by CMake VTKFREETYPE_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/freetype //Value Computed by CMake VTKFTGL_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/ftgl //Value Computed by CMake VTKFTGL_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/ftgl //Value Computed by CMake VTKJPEG_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/jpeg //Value Computed by CMake VTKJPEG_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/jpeg //Value Computed by CMake VTKPNG_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/png //Value Computed by CMake VTKPNG_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/png //Value Computed by CMake VTKTIFF_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/tiff //Value Computed by CMake VTKTIFF_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/tiff //Value Computed by CMake VTKZLIB_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/zlib //Value Computed by CMake VTKZLIB_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2/Utilities/zlib //Value Computed by CMake VTK_BINARY_DIR:STATIC=/home/hal9000/VTK-4.2.2 //What is the path where the file VTKData.readme can be found VTK_DATA_ROOT:PATH=/home/hal9000/VTKData-release-4-2 //Build leak checking support into VTK. VTK_DEBUG_LEAKS:BOOL=OFF //Disables the automatic initialization of Tk widgets when loading // the rendering library. VTK_DISABLE_TK_INIT:BOOL= //Path to a program. VTK_MPIRUN_EXE:FILEPATH=/usr/bin/mpirun //Maximum number of processors available to run parallel applications. // VTK_MPI_MAX_NUMPROCS:STRING=2 //Flags used by MPI start program. VTK_MPI_POSTFLAGS:STRING= //Flags used by MPI start program. VTK_MPI_PREFLAGS:STRING=-np 2 //The opengl library being used supports off screen Mesa calls. // VTK_OPENGL_HAS_OSMESA:BOOL=OFF //Path to an internal program. VTK_PARSE_JAVA_EXE:FILEPATH=/home/hal9000/VTK-4.2.2/bin/vtkParseJava //Value Computed by CMake VTK_SOURCE_DIR:STATIC=/home/hal9000/VTK-4.2.2 //Build VTK with 64 bit ids VTK_USE_64BIT_IDS:BOOL=OFF //Use the ANSI standard iostream library. VTK_USE_ANSI_STDLIB:BOOL=ON //Build the vtkHybrid kit. VTK_USE_HYBRID:BOOL=ON //Use mangled Mesa with OpenGL. VTK_USE_MANGLED_MESA:BOOL=OFF //Use Message Passing Interface (MPI) library for parallel support. // VTK_USE_MPI:BOOL=1 //Build the vtkParallel kit. VTK_USE_PARALLEL:BOOL=ON //Build the vtkPatented kit. These classes are patented and may // require a license to use. VTK_USE_PATENTED:BOOL=OFF //Build the vtkRendering kit. Needed for displaying data. VTK_USE_RENDERING:BOOL=ON //Use the system's expat library. VTK_USE_SYSTEM_EXPAT:BOOL=ON //Use the system's jpeg library. VTK_USE_SYSTEM_JPEG:BOOL=ON //Use the system's png library. VTK_USE_SYSTEM_PNG:BOOL=ON //Use the system's tiff library. VTK_USE_SYSTEM_TIFF:BOOL=ON //Use the system's zlib library. VTK_USE_SYSTEM_ZLIB:BOOL=ON //Build VTK with VolumePro support. VTK_USE_VOLUMEPRO:BOOL=ON //Where can the hints file be found VTK_WRAP_HINTS:FILEPATH=/home/hal9000/VTK-4.2.2/Wrapping/hints //Wrap VTK classes into the Java language. VTK_WRAP_JAVA:BOOL=ON //Path to an internal program. VTK_WRAP_JAVA_EXE:FILEPATH=/home/hal9000/VTK-4.2.2/bin/vtkWrapJava //Wrap VTK classes into the Python language. VTK_WRAP_PYTHON:BOOL=ON //Path to an internal program. VTK_WRAP_PYTHON_EXE:FILEPATH=/home/hal9000/VTK-4.2.2/bin/vtkWrapPython //Wrap VTK classes into the TCL language. VTK_WRAP_TCL:BOOL=ON //Path to an internal program. VTK_WRAP_TCL_EXE:FILEPATH=/home/hal9000/VTK-4.2.2/bin/vtkWrapTcl //Path to a program. WGET_EXECUTABLE:FILEPATH=/usr/bin/wget //What is the path where the file X11/X.h can be found X11_X11_INCLUDE_PATH:PATH=/usr/X11R6/include //Where can the X11 library be found X11_X11_LIB:FILEPATH=/usr/X11R6/lib/libX11.so //Where can the Xext library be found X11_Xext_LIB:FILEPATH=/usr/X11R6/lib/libXext.so //What is the path where the file X11/Xlib.h can be found X11_Xlib_INCLUDE_PATH:PATH=/usr/X11R6/include //What is the path where the file X11/Xutil.h can be found X11_Xutil_INCLUDE_PATH:PATH=/usr/X11R6/include //What is the path where the file zlib.h can be found ZLIB_INCLUDE_DIR:PATH=/usr/include //Where can the z library be found ZLIB_LIBRARY:FILEPATH=/usr/lib/libz.so //Dependencies for the target vtkCommonJava_LIB_DEPENDS:STATIC=vtkCommon; //Dependencies for the target vtkCommonPython_LIB_DEPENDS:STATIC=/usr/lib/python2.2/config/libpython2.2.a;vtkCommon; //Dependencies for the target vtkCommonTCL_LIB_DEPENDS:STATIC=/usr/lib/libtcl.so;vtkCommon; //Dependencies for the target vtkCommon_LIB_DEPENDS:STATIC=-pthread;-ldl;-lm; //Dependencies for the target vtkFilteringJava_LIB_DEPENDS:STATIC=vtkCommonJava;vtkFiltering; //Dependencies for the target vtkFilteringPython_LIB_DEPENDS:STATIC=vtkCommonPython;vtkFiltering; //Dependencies for the target vtkFilteringTCL_LIB_DEPENDS:STATIC=vtkCommonTCL;vtkFiltering;/usr/lib/libtcl.so; //Dependencies for the target vtkFiltering_LIB_DEPENDS:STATIC=vtkCommon; //Dependencies for the target vtkGraphicsJava_LIB_DEPENDS:STATIC=vtkCommonJava;vtkFilteringJava;vtkGraphics; //Dependencies for the target vtkGraphicsPython_LIB_DEPENDS:STATIC=vtkFilteringPython;vtkCommonPython;vtkGraphics; //Dependencies for the target vtkGraphicsTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkGraphics;/usr/lib/libtcl.so; //Dependencies for the target vtkGraphics_LIB_DEPENDS:STATIC=vtkFiltering; //Dependencies for the target vtkHybridJava_LIB_DEPENDS:STATIC=vtkHybrid;vtkRenderingJava;vtkIOJava; //Dependencies for the target vtkHybridPython_LIB_DEPENDS:STATIC=vtkRenderingPython;vtkIOPython;/usr/lib/libMesaGLU.so;/usr/X11R6/lib/libMesaGL.so;-lSM;-lICE;-lSM;-lICE;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;vtkHybrid; //Dependencies for the target vtkHybridTCL_LIB_DEPENDS:STATIC=vtkHybrid;vtkRenderingTCL;vtkIOTCL; //Dependencies for the target vtkHybrid_LIB_DEPENDS:STATIC=vtkRendering;vtkIO; //Dependencies for the target vtkIOJava_LIB_DEPENDS:STATIC=vtkCommonJava;vtkFilteringJava;vtkIO; //Dependencies for the target vtkIOPython_LIB_DEPENDS:STATIC=vtkFilteringPython;vtkCommonPython;vtkIO; //Dependencies for the target vtkIOTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkIO;/usr/lib/libtcl.so; //Dependencies for the target vtkIO_LIB_DEPENDS:STATIC=vtkFiltering;/usr/lib/libpng.so;/usr/lib/libz.so;/usr/lib/libz.so;/usr/lib/libjpeg.so;/usr/lib/libtiff.so;/usr/lib/libexpat.so; //Dependencies for the target vtkImagingJava_LIB_DEPENDS:STATIC=vtkCommonJava;vtkFilteringJava;vtkImaging; //Dependencies for the target vtkImagingPython_LIB_DEPENDS:STATIC=vtkFilteringPython;vtkCommonPython;vtkImaging; //Dependencies for the target vtkImagingTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkImaging;/usr/lib/libtcl.so; //Dependencies for the target vtkImaging_LIB_DEPENDS:STATIC=vtkFiltering; //Dependencies for the target vtkParallelJava_LIB_DEPENDS:STATIC=vtkParallel;vtkRenderingJava;vtkIOJava; //Dependencies for the target vtkParallelPython_LIB_DEPENDS:STATIC=vtkIOPython;vtkRenderingPython;/usr/lib/libMesaGLU.so;/usr/X11R6/lib/libMesaGL.so;-lSM;-lICE;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;vtkParallel; //Dependencies for the target vtkParallelTCL_LIB_DEPENDS:STATIC=vtkParallel;vtkIOTCL;vtkRenderingTCL; //Dependencies for the target vtkParallel_LIB_DEPENDS:STATIC=/usr/lib/libmpi.a;/usr/lib/liblam.a;vtkRendering;vtkIO; //Dependencies for the target vtkRenderingJava_LIB_DEPENDS:STATIC=vtkImagingJava;vtkGraphicsJava;vtkRendering;/usr/local/blackdown-jdk-1.4.1/jre/lib/i386/libjawt.so; //Dependencies for the target vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=vtkRendering;/usr/lib/libtcl.so;/usr/lib/libtk.so; //Dependencies for the target vtkRenderingPython_LIB_DEPENDS:STATIC=vtkGraphicsPython;vtkImagingPython;vtkRendering; //Dependencies for the target vtkRenderingTCL_LIB_DEPENDS:STATIC=vtkGraphicsTCL;vtkImagingTCL;vtkRendering;/usr/lib/libtcl.so;/usr/lib/libtk.so; //Dependencies for the target vtkRendering_LIB_DEPENDS:STATIC=vtkGraphics;vtkImaging;/usr/lib/libMesaGLU.so;/usr/X11R6/lib/libMesaGL.so;-lSM;-lICE;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;vtkftgl;vtkfreetype;-lXt;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so; //Dependencies for target vtkexpat_LIB_DEPENDS:STATIC= //Dependencies for target vtkfreetype_LIB_DEPENDS:STATIC= //Dependencies for the target vtkftgl_LIB_DEPENDS:STATIC=/usr/lib/libMesaGLU.so;/usr/X11R6/lib/libMesaGL.so;-lSM;-lICE;-lSM;-lICE;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so;vtkfreetype; //Dependencies for target vtkjpeg_LIB_DEPENDS:STATIC= //Dependencies for the target vtkpng_LIB_DEPENDS:STATIC=vtkzlib; //Dependencies for the target vtktiff_LIB_DEPENDS:STATIC=vtkzlib;vtkjpeg; //Dependencies for target vtkzlib_LIB_DEPENDS:STATIC= ######################## # INTERNAL cache entries ######################## //Executable to project name. /home/hal9000/VTK-4.2.2/bin/vtkParseJava:INTERNAL=vtkParseJava //Executable to project name. /home/hal9000/VTK-4.2.2/bin/vtkWrapJava:INTERNAL=vtkWrapJava //Executable to project name. /home/hal9000/VTK-4.2.2/bin/vtkWrapPython:INTERNAL=vtkWrapPython //Executable to project name. /home/hal9000/VTK-4.2.2/bin/vtkWrapTcl:INTERNAL=vtkWrapTcl //Advanced flag for variable: BASH BASH-ADVANCED:INTERNAL=1 //Advanced flag for variable: BUILD_DOCUMENTATION BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 //Advanced flag for variable: BUILD_TESTING BUILD_TESTING-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE CMAKE_ANSI_FOR_SCOPE:INTERNAL=TRUE //Have include iostream CMAKE_ANSI_STREAM_HEADERS:INTERNAL=1 //Advanced flag for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //What is the target build tool cmake is generating for. CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/gmake //This is the directory where this CMakeCahe.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/home/hal9000/VTK-4.2.2 //Major version of cmake used to create the current loaded cache // CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1 //Minor version of cmake used to create the current loaded cache // CMAKE_CACHE_MINOR_VERSION:INTERNAL=8 //Major version of cmake used to create the current loaded cache // CMAKE_CACHE_RELEASE_VERSION:INTERNAL=beta //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/bin/cmake //Advanced flag for variable: CMAKE_CTEST_COMMAND CMAKE_CTEST_COMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE CMAKE_CXX_COMPILER_WORKS:INTERNAL=TRUE //Advanced flag for variable: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE CMAKE_C_COMPILER_WORKS:INTERNAL=TRUE //Advanced flag for variable: CMAKE_C_FLAGS CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL // CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO // CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Have include sstream CMAKE_HAS_ANSI_STRING_STREAM:INTERNAL=1 //Is X11 around. CMAKE_HAS_X:INTERNAL=1 //Have function connect CMAKE_HAVE_CONNECT:INTERNAL=1 //Have function gethostbyname CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1 //Have include limits.h CMAKE_HAVE_LIMITS_H:INTERNAL=1 //Have include pthread.h CMAKE_HAVE_PTHREAD_H:INTERNAL=1 //Have function remove CMAKE_HAVE_REMOVE:INTERNAL=1 //Have function shmat CMAKE_HAVE_SHMAT:INTERNAL=1 //Have include sys/prctl.h CMAKE_HAVE_SYS_PRCTL_H:INTERNAL=1 //Have include unistd.h CMAKE_HAVE_UNISTD_H:INTERNAL=1 //Start directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/home/hal9000/VTK-4.2.2 //Advanced flag for variable: CMAKE_HP_PTHREADS CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 //Have library ICE CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER:INTERNAL=1 //Advanced flag for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL // CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE // CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO // CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Does the compiler support ansi for scope. CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL=0 //Does the compiler support headers like iostream. CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL=0 //Does the compiler support std::. CMAKE_NO_STD_NAMESPACE:INTERNAL=0 //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/usr/share/CMake //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL // CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE // CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO // CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //Result of TRY_RUN CMAKE_SIZEOF_CHAR:INTERNAL=1 //Result of TRY_RUN CMAKE_SIZEOF_DOUBLE:INTERNAL=8 //Result of TRY_RUN CMAKE_SIZEOF_FLOAT:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_INT:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_LONG:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_SHORT:INTERNAL=2 //Result of TRY_RUN CMAKE_SIZEOF_VOID_P:INTERNAL=4 //Advanced flag for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE CMAKE_STD_NAMESPACE:INTERNAL=TRUE //Advanced flag for variable: CMAKE_THREAD_LIBS CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 //uname command CMAKE_UNAME:INTERNAL=/bin/uname //Advanced flag for variable: CMAKE_USE_PTHREADS CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_SPROC CMAKE_USE_SPROC-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_WIN32_THREADS CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 //Result of TRY_RUN CMAKE_WORDS_BIGENDIAN:INTERNAL=0 //Advanced flag for variable: CMAKE_X_CFLAGS CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_LIBS CMAKE_X_LIBS-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE COMPILE_OK:INTERNAL=TRUE //Advanced flag for variable: COMPRESSIONCOMMAND COMPRESSIONCOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: CP CP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CVSCOMMAND CVSCOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: CVS_UPDATE_OPTIONS CVS_UPDATE_OPTIONS-ADVANCED:INTERNAL=1 //Path to an executable CommonCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common/Testing/Cxx //Advanced flag for variable: DART_BUILD_ERROR_REPORT_LIMIT DART_BUILD_ERROR_REPORT_LIMIT-ADVANCED:INTERNAL=1 //Advanced flag for variable: DART_BUILD_WARNING_REPORT_LIMIT DART_BUILD_WARNING_REPORT_LIMIT-ADVANCED:INTERNAL=1 //Advanced flag for variable: DART_ROOT DART_ROOT-ADVANCED:INTERNAL=1 //Advanced flag for variable: DART_TESTING_TIMEOUT DART_TESTING_TIMEOUT-ADVANCED:INTERNAL=1 //Advanced flag for variable: DART_VERBOSE_BUILD DART_VERBOSE_BUILD-ADVANCED:INTERNAL=1 //Advanced flag for variable: DELIVER_CONTINUOUS_EMAIL DELIVER_CONTINUOUS_EMAIL-ADVANCED:INTERNAL=1 //Advanced flag for variable: DOCUMENTATION_HTML_HELP DOCUMENTATION_HTML_HELP-ADVANCED:INTERNAL=1 //Advanced flag for variable: DOCUMENTATION_HTML_TARZ DOCUMENTATION_HTML_TARZ-ADVANCED:INTERNAL=1 //Advanced flag for variable: DOT DOT-ADVANCED:INTERNAL=1 //Advanced flag for variable: DOT_PATH DOT_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: DOXYGEN DOXYGEN-ADVANCED:INTERNAL=1 //Advanced flag for variable: EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: EXPAT_INCLUDE_DIR EXPAT_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: EXPAT_LIBRARY EXPAT_LIBRARY-ADVANCED:INTERNAL=1 //Path to an executable FilteringCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Filtering/Testing/Cxx //Advanced flag for variable: GNUPLOT GNUPLOT-ADVANCED:INTERNAL=1 //Advanced flag for variable: GUNZIPCOMMAND GUNZIPCOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: GZIP GZIP-ADVANCED:INTERNAL=1 //Path to an executable GenericCommunicator_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Path to an executable GraphicsCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Graphics/Testing/Cxx //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_CHAR:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_DOUBLE:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_FLOAT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_INT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_LONG:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_SHORT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_VOID_P:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_WORDS_BIGENDIAN:INTERNAL=TRUE //Path to an executable HybridCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Hybrid/Testing/Cxx //Path to an executable IOCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/IO/Testing/Cxx //Path to an executable ImagingCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Imaging/Testing/Cxx //Advanced flag for variable: JAVACOMMAND JAVACOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_ARCHIVE JAVA_ARCHIVE-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_AWT_INCLUDE_PATH JAVA_AWT_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_AWT_LIBRARY JAVA_AWT_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_COMPILE JAVA_COMPILE-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH2 JAVA_INCLUDE_PATH2-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_RUNTIME JAVA_RUNTIME-ADVANCED:INTERNAL=1 //Advanced flag for variable: JPEG_INCLUDE_DIR JPEG_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: JPEG_LIBRARY JPEG_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: LIBRARY_OUTPUT_PATH LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: MAKECOMMAND MAKECOMMAND-ADVANCED:INTERNAL=1 //Path to an executable MPIGroups_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Advanced flag for variable: MPI_EXTRA_LIBRARY MPI_EXTRA_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: MPI_INCLUDE_PATH MPI_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: MPI_LIBRARY MPI_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: MV MV-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_INCLUDE_DIR OPENGL_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_gl_LIBRARY OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_glu_LIBRARY OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_xmesa_INCLUDE_DIR OPENGL_xmesa_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: PERL_EXECUTABLE PERL_EXECUTABLE-ADVANCED:INTERNAL=1 //Advanced flag for variable: PNG_LIBRARY PNG_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: PNG_PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: PURIFYCOMMAND PURIFYCOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: PYTHON_EXECUTABLE PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1 //Path to an executable ParallelIsoTest_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Path to an executable ParallelIso_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Examples/ParallelProcessing/Generic/Cxx //Path to an executable PipelineParallelism_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Examples/ParallelProcessing/Generic/Cxx //Advanced flag for variable: RM RM-ADVANCED:INTERNAL=1 //Path to an executable RenderingCxxTests_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering/Testing/Cxx //Advanced flag for variable: SCPCOMMAND SCPCOMMAND-ADVANCED:INTERNAL=1 //Advanced flag for variable: SITE SITE-ADVANCED:INTERNAL=1 //Path to an executable SocketClient_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Path to an executable SocketServer_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Advanced flag for variable: TAR TAR-ADVANCED:INTERNAL=1 //This value is not used by VTK. TCL_LIBRARY_DEBUG:INTERNAL=TCL_LIBRARY_DEBUG-NOTFOUND //This value is not used by VTK. TCL_STUB_LIBRARY:INTERNAL=/usr/lib/libtclstub.a //This value is not used by VTK. TCL_STUB_LIBRARY_DEBUG:INTERNAL=TCL_STUB_LIBRARY_DEBUG-NOTFOUND //Advanced flag for variable: TCL_TCLSH TCL_TCLSH-ADVANCED:INTERNAL=1 //Result of TRY_COMPILE THREADS_HAVE_PTHREAD_ARG:INTERNAL=TRUE //Result of TRY_RUN THREADS_PTHREAD_ARG:INTERNAL=2 //Advanced flag for variable: TIFF_INCLUDE_DIR TIFF_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: TIFF_LIBRARY TIFF_LIBRARY-ADVANCED:INTERNAL=1 //This value is not used by VTK. TK_LIBRARY_DEBUG:INTERNAL=TK_LIBRARY_DEBUG-NOTFOUND //This value is not used by VTK. TK_STUB_LIBRARY:INTERNAL=/usr/lib/libtkstub.a //This value is not used by VTK. TK_STUB_LIBRARY_DEBUG:INTERNAL=TK_STUB_LIBRARY_DEBUG-NOTFOUND //This value is not used by VTK. TK_WISH:INTERNAL=/usr/bin/wish //Path to an executable TaskParallelismWithPorts_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Examples/ParallelProcessing/Generic/Cxx //Path to an executable TaskParallelism_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Examples/ParallelProcessing/Generic/Cxx //Path to an executable TestCxxFeatures_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common/Testing/Cxx //Path to an executable TestInstantiator_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common/Testing/Cxx //Path to an executable TestPStream_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Path to an executable ThreadedCommunicator_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel/Testing/Cxx //Path to an executable TimeRenderer2_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering/Testing/Cxx //Path to an executable TimeRenderer_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering/Testing/Cxx //Advanced flag for variable: VLI_LIBRARY_FOR_VG500 VLI_LIBRARY_FOR_VG500-ADVANCED:INTERNAL=1 //Advanced flag for variable: VLI_LIBRARY_FOR_VP1000 VLI_LIBRARY_FOR_VP1000-ADVANCED:INTERNAL=1 //Path to an executable VTKJavaExecutable_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping/Java //Support for C++ type bool VTK_COMPILER_HAS_BOOL:INTERNAL=1 //Advanced flag for variable: VTK_DEBUG_LEAKS VTK_DEBUG_LEAKS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_DISABLE_TK_INIT VTK_DISABLE_TK_INIT-ADVANCED:INTERNAL=1 //Support for C++ explict templates VTK_EXPLICIT_TEMPLATES:INTERNAL=1 //Advanced flag for variable: VTK_MPIRUN_EXE VTK_MPIRUN_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_MPI_MAX_NUMPROCS VTK_MPI_MAX_NUMPROCS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_MPI_POSTFLAGS VTK_MPI_POSTFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_MPI_PREFLAGS VTK_MPI_PREFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_OPENGL_HAS_OSMESA VTK_OPENGL_HAS_OSMESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_PARSE_JAVA_EXE VTK_PARSE_JAVA_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_64BIT_IDS VTK_USE_64BIT_IDS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_ANSI_STDLIB VTK_USE_ANSI_STDLIB-ADVANCED:INTERNAL=1 //Build classes using Carbon API. VTK_USE_CARBON:INTERNAL= //Build classes using Cocoa API. VTK_USE_COCOA:INTERNAL= //Advanced flag for variable: VTK_USE_MANGLED_MESA VTK_USE_MANGLED_MESA-ADVANCED:INTERNAL=1 //Use Matrox Imaging Library for video input. VTK_USE_MATROX_IMAGING:INTERNAL= //Advanced flag for variable: VTK_USE_MPI VTK_USE_MPI-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_SYSTEM_EXPAT VTK_USE_SYSTEM_EXPAT-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_SYSTEM_JPEG VTK_USE_SYSTEM_JPEG-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_SYSTEM_PNG VTK_USE_SYSTEM_PNG-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_SYSTEM_TIFF VTK_USE_SYSTEM_TIFF-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_SYSTEM_ZLIB VTK_USE_SYSTEM_ZLIB-ADVANCED:INTERNAL=1 //Use Video for Windows for video input. VTK_USE_VIDEO_FOR_WINDOWS:INTERNAL= //Advanced flag for variable: VTK_USE_VOLUMEPRO VTK_USE_VOLUMEPRO-ADVANCED:INTERNAL=1 //Build classes for the X11 window system. VTK_USE_X:INTERNAL= //Advanced flag for variable: VTK_WRAP_HINTS VTK_WRAP_HINTS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_JAVA_EXE VTK_WRAP_JAVA_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_PYTHON_EXE VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_TCL_EXE VTK_WRAP_TCL_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: WGET_EXECUTABLE WGET_EXECUTABLE-ADVANCED:INTERNAL=1 //Have library /usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext.so // X11_LIB_X11_SOLO:INTERNAL=1 //Advanced flag for variable: X11_X11_INCLUDE_PATH X11_X11_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_X11_LIB X11_X11_LIB-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_Xext_LIB X11_Xext_LIB-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_Xlib_INCLUDE_PATH X11_Xlib_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_Xutil_INCLUDE_PATH X11_Xutil_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: ZLIB_INCLUDE_DIR ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: ZLIB_LIBRARY ZLIB_LIBRARY-ADVANCED:INTERNAL=1 //Path to an executable mkg3states_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/tiff //Path to an executable pvtk_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping/Tcl //Path to an executable pvtkpython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping/Python //Path to a library vtkCommonJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common //Whether a library is static, shared or module. vtkCommonJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommonPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common //Whether a library is static, shared or module. vtkCommonPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkCommonTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common //Whether a library is static, shared or module. vtkCommonTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommon_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Common //Whether a library is static, shared or module. vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Filtering //Whether a library is static, shared or module. vtkFilteringJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Filtering //Whether a library is static, shared or module. vtkFilteringPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkFilteringTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Filtering //Whether a library is static, shared or module. vtkFilteringTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFiltering_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Filtering //Whether a library is static, shared or module. vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Graphics //Whether a library is static, shared or module. vtkGraphicsJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Graphics //Whether a library is static, shared or module. vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkGraphicsTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Graphics //Whether a library is static, shared or module. vtkGraphicsTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphics_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Graphics //Whether a library is static, shared or module. vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Hybrid //Whether a library is static, shared or module. vtkHybridJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Hybrid //Whether a library is static, shared or module. vtkHybridPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkHybridTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Hybrid //Whether a library is static, shared or module. vtkHybridTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybrid_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Hybrid //Whether a library is static, shared or module. vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/IO //Whether a library is static, shared or module. vtkIOJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/IO //Whether a library is static, shared or module. vtkIOPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkIOTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/IO //Whether a library is static, shared or module. vtkIOTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIO_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/IO //Whether a library is static, shared or module. vtkIO_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Imaging //Whether a library is static, shared or module. vtkImagingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Imaging //Whether a library is static, shared or module. vtkImagingPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkImagingTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Imaging //Whether a library is static, shared or module. vtkImagingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImaging_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Imaging //Whether a library is static, shared or module. vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel //Whether a library is static, shared or module. vtkParallelJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel //Whether a library is static, shared or module. vtkParallelPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkParallelTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel //Whether a library is static, shared or module. vtkParallelTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallel_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Parallel //Whether a library is static, shared or module. vtkParallel_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkParseJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping //Path to a library vtkRenderingJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering //Whether a library is static, shared or module. vtkRenderingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPythonTkWidgets_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering //Whether a library is static, shared or module. vtkRenderingPythonTkWidgets_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering //Whether a library is static, shared or module. vtkRenderingPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkRenderingTCL_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering //Whether a library is static, shared or module. vtkRenderingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRendering_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Rendering //Whether a library is static, shared or module. vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkWrapJava_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping //Path to an executable vtkWrapPython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping //Path to an executable vtkWrapTcl_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping //Path to an executable vtk_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping/Tcl //Path to a library vtkexpat_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/expat //Whether a library is static, shared or module. vtkexpat_LIBRARY_TYPE:INTERNAL=STATIC //Path to a library vtkfreetype_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/freetype //Whether a library is static, shared or module. vtkfreetype_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkftgl_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/ftgl //Whether a library is static, shared or module. vtkftgl_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkjpeg_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/jpeg //Whether a library is static, shared or module. vtkjpeg_LIBRARY_TYPE:INTERNAL=STATIC //Path to a library vtkpng_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/png //Whether a library is static, shared or module. vtkpng_LIBRARY_TYPE:INTERNAL=STATIC //Path to an executable vtkpython_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Wrapping/Python //Path to a library vtktiff_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/tiff //Whether a library is static, shared or module. vtktiff_LIBRARY_TYPE:INTERNAL=STATIC //Path to a library vtkzlib_CMAKE_PATH:INTERNAL=/home/hal9000/VTK-4.2.2/Utilities/zlib //Whether a library is static, shared or module. vtkzlib_LIBRARY_TYPE:INTERNAL=STATIC -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From tk.sinha at vanderbilt.edu Wed Aug 27 12:04:57 2003 From: tk.sinha at vanderbilt.edu (Tuhin Sinha) Date: Wed, 27 Aug 2003 11:04:57 -0500 Subject: [vtkusers] adding files to existing vtk4.x using vc++ on win2000 In-Reply-To: <003801c36c8e$4bee2540$1a01a8c0@cad> References: <003801c36c8e$4bee2540$1a01a8c0@cad> Message-ID: <200308271104.57230.tk.sinha@vanderbilt.edu> Look at VTK_SRC_DIR/Examples/Build/vtkLocal and VTK_SRC_DIR/Examples/Build/vtkMy. Hope that helps. TKS On Wednesday 27 August 2003 06:28, joseph mccoy wrote: > Hi All, > > sorry for this maybe very silly question, but i don't have any experience > with cmake at all. here's my question: > > i have slightly changed some of the vtk- files (vtkStreamer and > vtkStreamLine), but i don't want to replace the original files. instead i'd > like to add my changed files (maybe vtkMyStreamer or something like that) > so i'm able to use both. so i was wondering if i have to add those files to > the cmakelist.txt and recompile the whole thing or if it is enough to add > the files within vc++ (like prpject/add/files..) and recompile only the > changed dlls. > > thanks > > Joseph From brad.king at kitware.com Wed Aug 27 12:36:21 2003 From: brad.king at kitware.com (Brad King) Date: Wed, 27 Aug 2003 12:36:21 -0400 (EDT) Subject: [vtkusers] build failure in hybrid In-Reply-To: <1061994302.14864.61.camel@golgatha.norby.dyndns.org> Message-ID: > I can't seem to build vtk. I am using gentoo linux with lam-mpi. My > CMakeCache.txt is included beneath the warnings. The error I get is: [snip] > Building executable /home/hal9000/VTK-4.2.2/bin/pvtk... > /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to > `vtkPushPipeline::New()' I think this has been fixed in VTK 4.2.3. -Brad From seanru_nigu at yahoo.es Wed Aug 27 14:22:47 2003 From: seanru_nigu at yahoo.es (=?iso-8859-1?q?Sergio=20Andr=E9s?=) Date: Wed, 27 Aug 2003 20:22:47 +0200 (CEST) Subject: [vtkusers] How does vtkPolygon::EvaluatePosition(..) works ????? Message-ID: <20030827182247.91304.qmail@web21508.mail.yahoo.com> Hi all, I would like to know what the parameters of this function means... specially 'subId', that appears in some methods... Can anyone help me, please?? Thanks... Sergio. ___________________________________________________ Yahoo! Messenger - Nueva versi?n GRATIS Super Webcam, voz, caritas animadas, y m?s... http://messenger.yahoo.es From amy.henderson at kitware.com Wed Aug 27 14:30:03 2003 From: amy.henderson at kitware.com (Amy Henderson) Date: Wed, 27 Aug 2003 14:30:03 -0400 Subject: [vtkusers] How does vtkPolygon::EvaluatePosition(..) works ????? In-Reply-To: <20030827182247.91304.qmail@web21508.mail.yahoo.com> Message-ID: <5.1.0.14.0.20030827142903.032bfe40@pop.biz.rr.com> Take a look at the documentation for this method in vtkCell (the superclass of vtkPolygon) for an explanation of the parameters for this method. - Amy At 08:22 PM 8/27/2003 +0200, Sergio Andr?s wrote: >Hi all, > >I would like to know what the parameters of this >function means... >specially 'subId', that appears in some methods... > >Can anyone help me, please?? > >Thanks... > >Sergio. > >___________________________________________________ >Yahoo! Messenger - Nueva versi?n GRATIS >Super Webcam, voz, caritas animadas, y m?s... >http://messenger.yahoo.es >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From klondenberg at avidllc.biz Wed Aug 27 16:10:30 2003 From: klondenberg at avidllc.biz (Kelly Londenberg) Date: Wed, 27 Aug 2003 16:10:30 -0400 Subject: [vtkusers] Build failure for libvtkHybrid.dylib Message-ID: <81C48510-D8CA-11D7-AFB4-000393DB2B82@avidllc.biz> I've been trying to compile VTK 4.2.2 on Mac OS 10.2.6 for use with MayaVi and have run into a problem that I've not been able to solve. The build of the hybrid library is failing with the following message: Building shared library /Users/klonden/VTK-4.2.2/bin/libvtkHybrid.dylib... ld: Undefined symbols: vtkInstantiatorvtkPushPipelineNew() vtkInstantiatorvtkPushImageReaderNew() vtkInstantiatorvtkPushImageFilterSampleNew() /usr/bin/libtool: internal link edit command failed make[3]: *** [/Users/klonden/VTK-4.2.2/bin/libvtkHybrid.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Hybrid] Error 2 make: *** [default_target] Error 2 Where are these functions defined? Thanks for the help, Kelly -- W. Kelly Londenberg AVID LLC 7100 George Washington Memorial Hwy, Suite 6 Yorktown, VA 23692-4841 (757)886-2611 (757)886-2615 (fax) From jbiddiscombe at skippingmouse.co.uk Wed Aug 27 16:51:38 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 27 Aug 2003 21:51:38 +0100 Subject: [vtkusers] vtkWin32OpenGLRenderWindow GetEventPending Bug References: Message-ID: <068601c36cdd$03d04960$0100a8c0@tigger> Nicholas I've just committed a fix (of sorts) for this. All I've added is an extra PeekMessage with REMOVE set to true if the message waiting is a MOUSEMOVE one. It seems that the Mousedown/up never get to us because there's always a mousemove first. Once the mousemove gets in there...it jams the pipe as it were and we can't move on. Flushing it out seems to dramatically improve things. JB RPD - A Graphical Pipeline Editor for VTK http://www.skippingmouse.co.uk ----- Original Message ----- From: "Nicholas Schwarz" To: Sent: Wednesday, August 20, 2003 4:12 AM Subject: [vtkusers] vtkWin32OpenGLRenderWindow GetEventPending Bug > Hi, > > I attempted to stop a long render when the user interacts with an object > by using a callback and the AbortCheckMethod of vtkRenderWindow. Below is > my C++ adaptation of the Tcl code on pages 257-258 of "The VTK User's > Guide" for VTK 4.2. > > First, I made a callback class like this: > > class InteractionCallBack : public vtkCommand { > > public: > > static InteractionCallBack* New() { > return new InteractionCallBack; > } > > virtual void Execute(vtkObject* caller, unsigned long, void* data) { > vtkRenderWindow* renWin = vtkRenderWindow::SafeDownCast(caller); > if (renWin -> GetEventPending()) { > renWin -> SetAbortRender(1); > } > } > > }; > > Later on in my code I added an observer for AbortCheckEvent like this: > > InteractionCallBack* icb = InteractionCallBack::New(); > renWin -> AddObserver(vtkCommand::AbortCheckEvent, icb); > > Of course, I included vtkRenderWindow.h, vtkCommand.h, and all the rest. > > This does not work in Windows. (It does work in Linux.) The render is not > aborted when the user attempts to interact with the object. From testing I > determined that the GetEventPending() method in my instance of > vtkRenderWindow never returns 1; it always returns 0. > > I tested this code > > int vtkWin32OpenGLRenderWindow::GetEventPending() > { > MSG msg; > > if (PeekMessage(&msg,this->WindowId,WM_MOUSEFIRST,WM_MOUSELAST,PM_NOREMOVE)) > { > if ((msg.message == WM_LBUTTONDOWN) || > (msg.message == WM_RBUTTONDOWN) || > (msg.message == WM_MBUTTONDOWN)) > { > return 1; > } > } > > return 0; > } > > from vtkWin32OpenGLRenderWindow (rev 1.115), and determined that the > outside if statement does evaluate to true on the following events: > > WM_MOUSEFIRST, > WM_MOUSEMOVE, > WM_LBUTTONDOWN, > WM_LBUTTONUP, > WM_LBUTTONDBLCLK, > WM_RBUTTONDOWN, > WM_RBUTTONUP, > WM_RBUTTONDBLCLK, > WM_MBUTTONDOWN, > WM_MBUTTONUP, > WM_MBUTTONDBLCLK, > WM_MOUSEWHEEL, and > WM_MOUSELAST. > > That is what it should do. But, the inner if statement does not evaluate > to true because 'msg.message' always evaluates to 0x0200, WM_MOUSEMOVE. It > never evaluates to a mouse button down event, so it never returns 1. > > I noticed that the current GetEventPending() method was added in rev. > 1.89, and replaces this (from rev. 1.88) > > int vtkWin32OpenGLRenderWindow::GetEventPending() > { > MSG msg; > > return PeekMessage(&msg,this->WindowId,WM_LBUTTONDOWN,WM_MBUTTONDOWN,PM_NOREMOVE); > } > > which DOES work properly. > > The way GetEventPending() is in rev. 1.115 should work, but it dosen't, > and I don't know why. The current GetEventPending() implementation should > also be better than 1.88's because it is only supposed to respond to > button down events, but again, it dosen't work. > > Has anyone successfully gotten a revision newer than 1.88 to work > properly, or has experienced this same problem? > > ------------------------------------------------------------------------- > Nicholas Schwarz > Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu > Department of Computer Science Telephone: 312-996-3002 > University of Illinois at Chicago Facsimile: 312-413-7585 > ------------------------------------------------------------------------- > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From cpanagio at cs.ucl.ac.uk Wed Aug 27 17:06:49 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Wed, 27 Aug 2003 22:06:49 +0100 Subject: [vtkusers] URGENT HELP! vtkCellArray Message-ID: <3F4D1D69.3000406@cs.ucl.ac.uk> guys sorry for posting this twice but i am stack and out of time! i am confused with something probably simple and i have to submit a project in exactly 2 weeks time! (the answer to the next thing finishes my project - so i really want some help) could please someone tell me how can i create a vtkPolygon cell which i dont know the number of its points from the start? I get one xyz point and its id per time. is there any method that i can add THIS point with THIS id in the polygon and later on i could add another one? (i can also gather all the points in a vtkPoints object using the insertPoint(ID,X,Y,Z) - can i add them all in one go?) is it the initialize() method what am i looking for? could please someone tell me how this works (if it is the one?) (with the above i am creating a number of polygons (which again i dont know their number from the start) and i add them to a vtkCellArray, can someone explain to me how do i use the UpdateCellCount() method? do i use it before the InsertNextCell or after?) I am trying all the above as i want to use the _*vtkVoxelContoursToSurfaceFilter*_ and i looked the example that the web page has, however i dont have the number of points of its polygon and the number of polygons from the start.... :-\ I will really really be greatful to anyone that answers my post sorry for its length all the best chris From Yang at AGIUSA.COM Wed Aug 27 18:12:08 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Wed, 27 Aug 2003 17:12:08 -0500 Subject: [vtkusers] Add two renderers to vtkBorlandRenderWindow Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687E3@mail.exchngsvr.agiusa.com> Hi vtkusers, I am trying to add two renderers to the same vtkBorlandRenderWindow (RenWin). The relevant part of the pipeline may look like this RenWin->GetRenderer()->SetViewport(0.0, 0.0, 0.5, 1.0) RenWin->GetRenderer()->AddActor(actor1) RenWin->GetRenderer()->SetViewport(0.5, 0.0, 1.0, 1.0) RenWin->GetRenderer()->AddActor(actor2) By doing it this way, I wonder how many renderers I would get. How do I distinguish between or identify two renderes? Is there any way to define two renderers explicitly and add them to RenWin? Let me assume I have two Renderers in RenWin, I wonder which Renderer I would get when I call RenWin->GetRenderer(). I am using VTK with BCB6 on WinXP. Thank you for your help in advance. Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpanagio at cs.ucl.ac.uk Wed Aug 27 20:18:11 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Thu, 28 Aug 2003 01:18:11 +0100 Subject: [vtkusers] see-through volume (top bottom slice untriangulated) Message-ID: <3F4D4A43.9040308@cs.ucl.ac.uk> guys is there any "easy" way to fill the top and bottom of a volume? i have created a volume from multiple slices with contours however the top and bottom are not triangulated (this is logical as they are contours and they are empty) is there now any easy way to triangulate the the top and bottom? note that one slice might have maximum 2 contours so there might be two top and bottom locations in different z depth... lets say that the volume looks like this -------- slice 0 --- ---------- ----------- slice 1 | ------------------------ | ------------------------ | ----------- ---------- Z ------- ------- | --- ---- slice 7 | -- slice 8 --- when i rotate the volume it is see-through from top to bottom i would appreciate any help thanks christos From paul at opes.com.au Wed Aug 27 20:45:10 2003 From: paul at opes.com.au (Paul Tait) Date: Thu, 28 Aug 2003 08:45:10 +0800 Subject: [vtkusers] Re: adding files to existing vtk4.x using vc++ on win2000 Message-ID: <000f01c36cfd$ac2c3590$c50aa8c0@deepthroat> First thing DONT DO IT but if you have to ;-) The C++ way is Derive a new class from the approriate vtk base class and override the methods you want to change. Add the new files to your VC project not to VTK Next share the code Paul From ystarrev at uwo.ca Wed Aug 27 23:44:41 2003 From: ystarrev at uwo.ca (Yves Starreveld) Date: Wed, 27 Aug 2003 23:44:41 -0400 Subject: [vtkusers] VTK on OSX with Python 2.3 Message-ID: > OSX'ers: > > I have committed the changes required for the above build to CVS. > It has been verified to work with older versions of CMake and Python. > Those interested can find details on the changes at: > http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Common/ > CMakeLists.txt?cvsroot=VTK > > Now on to that wheel-mouse thing! > > Yves > From joes at isi.uu.nl Thu Aug 28 06:01:03 2003 From: joes at isi.uu.nl (Joes Staal) Date: Thu, 28 Aug 2003 12:01:03 +0200 Subject: [vtkusers] How to split cells in vtkPolyData? Message-ID: <5.2.0.9.2.20030828115054.01df3a70@mail-int.azu.nl> Hi, I have a vtkPolyData that I made the following way: // create vtk points and cellarray datastructure vtkPoints *pPoints = vtkPoints::New(); pPoints->SetNumberOfPoints(iTotalPoints); vtkCellArray *pCellArray = vtkCellArray::New(); Then in a loop I insert N cells in the following way: pCellArray->InsertNextCell(size[i]); And in a loop over size[i] I add the coordinates and the point index: pPoints->SetPoint(iPointIndex, x, y, z); pCellArray->InsertCellPoint(iPointIndex); iPointIndex is incremented by one after every loop over size[i]. The vtkPolyData is made by: pPolyData->SetPoints(pPoints); pPolyData->SetLines(pCellArray); Having such a vktPolyData, I sometimes want to split e.g. cell number j in two sets in the following way. The first part of cell number j is replaced by points 0 upto k, the second part of cell j is put in a new cell that is put at the end of the poly data. Can someone point me out how I should do that? Regards, Joes. From anne.kerveillant at laposte.net Thu Aug 28 09:55:52 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Thu, 28 Aug 2003 15:55:52 +0200 Subject: [vtkusers] =?iso-8859-1?Q?MFC_sample_app_error?= Message-ID: Hi Martin and all other Vtk users, I have the same problem as you had in March : I can compile the MFC sample app but not run it : (MFC42D.DLL): 0xC0000005: Access Violation. How did you fix your problem? Can anyone else help me? Thanks Anne Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.deBoer at polytec.de Thu Aug 28 10:03:37 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Thu, 28 Aug 2003 16:03:37 +0200 Subject: AW: [vtkusers] MFC sample app error Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD99CCB14@02polywbr.waldbronn.polytec.de> > I have the same problem as you had in March : I can compile the MFC sample app but not > run it : (MFC42D.DLL): 0xC0000005: Access Violation. > How did you fix your problem? Can anyone else help me? Hmm.. I don't have problems with .net 2002... What does the call stack say when you run the app in debug mode ? In which functions is the problem ? greets Ingo From anne.kerveillant at laposte.net Thu Aug 28 10:13:40 2003 From: anne.kerveillant at laposte.net (=?iso-8859-1?Q?Anne_Kerveillant?=) Date: Thu, 28 Aug 2003 16:13:40 +0200 Subject: [vtkusers] =?iso-8859-1?Q?Re:_AW:_[vtkusers]_MFC_sample_app_error?= Message-ID: I work with VC++ 6.0 and I try to load the sample VTK\Examples\GUI\Win32\SampleMFC. The problem is in the WinMain function of MFC + pThread 0x00000000 {CWinThread h=??? proc=???} at the line // Perform specific initializations if (!pThread->InitInstance()) EAX = 00000001 EBX = 7FFDF000 ECX = 00000000 EDX = 00000000 ESI = 00000000 EDI = 00000000 EIP = 5F43351B ESP = 0012FEF0 EBP = 0012FF08 EFL = 00000246 CS = 001B DS = 0023 ES = 0023 SS = 0023 FS = 0038 GS = 0000 OV=0 UP=0 EI=1 PL=0 ZR=1 AC=0 PE=1 CY=0 I tried to look to the archive and I found that someone had already such a problem but it is not explain how to resolve it. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- An HTML attachment was scrubbed... URL: From smitty at kcc.com Thu Aug 28 11:18:49 2003 From: smitty at kcc.com (Tom G. Smith (Smitty)) Date: Thu, 28 Aug 2003 10:18:49 -0500 (CDT) Subject: [vtkusers] Issues with VTK 4.2 Message-ID: Hello vtkusers at public.kitware.com, I just installed VTK 4.2 on a RedHat 9.0 system. We've been using VTK for a number of years now, since VTK Version 2.4, and it's never gotten any easier to install and configure. Here are several issues: 1. During the cmake -i, it prompts you to BUILD_SHARED_LIBS, with the default of OFF. If you don't change it to ON and subsequently override VTK_WRAP_PYTHON to ON, it waits another 30 prompts or so before it dies with the error, "VTK_WRAP_PYTHON requires BUILD_SHARED_LIBS to be ON." Then you have to go through the whole tedious set of prompts from the beginning again. 2. I left VTK_USE_HYBRID and VTK_USE_PARALLEL both at OFF, but set VTK_WRAP_TCL to ON. When the cmake finished and I try to run any of the Tcl examples, they work, but I get these messages every time: bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl can't find package vtkHybridTCL 4.2 can't find package vtkParallelTCL 4.2 3. It works, but I get these messages if I run vtk anywhere but directly at the console. These messages have been around since VTK 4.0. They did not appear prior to that version. bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl Xlib: connection to ":0.0" refused by server Xlib: No protocol specified 4. Some of the tcl examples don't work at all. I've only listed a few that I tried which failed; there are lots more that don't work: bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl Error in startup script: invalid command name "vtkProcrustesAlignmentFilter" while executing "vtkProcrustesAlignmentFilter procrustes1" (file "/opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl" line 49) bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/hello.tcl can't find package vtkHybridTCL 4.2 can't find package vtkParallelTCL 4.2 Error in startup script: invalid command name "vtkImplicitModeller" while executing "vtkImplicitModeller imp" (file "/opt/vtk/Examples/Modelling/Tcl/hello.tcl" line 24) ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From haack at rz.rwth-aachen.de Thu Aug 28 11:32:21 2003 From: haack at rz.rwth-aachen.de (Mathias Haack) Date: Thu, 28 Aug 2003 17:32:21 +0200 Subject: [vtkusers] Breaking the pipeline Message-ID: <246ec214b4.214b4246ec@post.rwth-aachen.de> Hi all, I have the following pipeline with VTK 4.0.2: png image -> vtkPNGReader -> vtkImageData -> vtkImageActor -> ... -> display It works as it is supposed to be. Now I want to alter the vtkImageData using an image filter like vtkImageFlip, first I deepcopy the vtkImageData, using vtkImageFlip and deep copy it back to the vtkImageData. The result is an unchanged image on my display. I suppose the pipeline will read the image again (or use the cached image from the reader). I need to break the connection between the image reader and vtkImageData. How can I achieve this? Matthias -------------- next part -------------- A non-text attachment was scrubbed... Name: mhaack at rz.rwth-aachen.de.vcf Type: text/x-vcard Size: 109 bytes Desc: Card for Mathias Haack URL: From glehmann at imaging.robarts.ca Thu Aug 28 11:48:12 2003 From: glehmann at imaging.robarts.ca (Glen Lehmann) Date: Thu, 28 Aug 2003 11:48:12 -0400 Subject: [vtkusers] Breaking the pipeline In-Reply-To: <246ec214b4.214b4246ec@post.rwth-aachen.de> References: <246ec214b4.214b4246ec@post.rwth-aachen.de> Message-ID: <3F4E243C.9040601@imaging.robarts.ca> Hi Mathias, You likely need to call imageData->Update after you reset it's input. Cheers, Glen Mathias Haack wrote: >Hi all, > >I have the following pipeline with VTK 4.0.2: >png image -> vtkPNGReader -> vtkImageData -> vtkImageActor -> ... -> display > >It works as it is supposed to be. Now I want to alter the vtkImageData using >an image filter like vtkImageFlip, first I deepcopy the vtkImageData, >using vtkImageFlip and deep copy it back to the vtkImageData. >The result is an unchanged image on my display. I suppose the pipeline will >read the image again (or use the cached image from the reader). > >I need to break the connection between the image reader and vtkImageData. > >How can I achieve this? > > >Matthias > > > From baghdadi at sickkids.ca Thu Aug 28 11:39:00 2003 From: baghdadi at sickkids.ca (Leila Baghdadi) Date: Thu, 28 Aug 2003 11:39:00 -0400 (EDT) Subject: [vtkusers] Issues with VTK 4.2 In-Reply-To: Message-ID: Hey Tom I am afraid, I am gonna have to disagree with your comment " it's never gotten any easier to install and configure". I have vtk on two machines with redhat 9.0 in one and windows 2000 in another and I can tell you I have not experienced any problems compiling or building vtk in either of my machines. Eventhough, you have posted a list of all the problems, I must say at least the introduction of Cmake has made everyone's life much easier. Leila On Thu, 28 Aug 2003, Tom G. Smith (Smitty) wrote: > Hello vtkusers at public.kitware.com, > > I just installed VTK 4.2 on a RedHat 9.0 system. We've been using > VTK for a number of years now, since VTK Version 2.4, and it's never > gotten any easier to install and configure. Here are several > issues: > > 1. During the cmake -i, it prompts you to BUILD_SHARED_LIBS, > with the default of OFF. If you don't change it to ON and > subsequently override VTK_WRAP_PYTHON to ON, it waits > another 30 prompts or so before it dies with the error, > "VTK_WRAP_PYTHON requires BUILD_SHARED_LIBS to be ON." > Then you have to go through the whole tedious set of prompts > from the beginning again. > > 2. I left VTK_USE_HYBRID and VTK_USE_PARALLEL both at OFF, but > set VTK_WRAP_TCL to ON. When the cmake finished and I > try to run any of the Tcl examples, they work, but I get > these messages every time: > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl > can't find package vtkHybridTCL 4.2 > can't find package vtkParallelTCL 4.2 > > 3. It works, but I get these messages if I run vtk anywhere but > directly at the console. These messages have been around > since VTK 4.0. They did not appear prior to that version. > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > 4. Some of the tcl examples don't work at all. I've only listed a few > that I tried which failed; there are lots more that don't work: > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl > Error in startup script: invalid command name > "vtkProcrustesAlignmentFilter" while executing > "vtkProcrustesAlignmentFilter procrustes1" (file > "/opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl" > line 49) > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/hello.tcl > can't find package vtkHybridTCL 4.2 can't find package > vtkParallelTCL 4.2 Error in startup script: invalid command > name "vtkImplicitModeller" while executing "vtkImplicitModeller > imp" (file "/opt/vtk/Examples/Modelling/Tcl/hello.tcl" line 24) > > > > ------------------------------------------------------------------------------ > This e-mail is intended for the use of the addressee(s) only and may contain > privileged, confidential, or proprietary information that is exempt from > disclosure under law. If you have received this message in error, please > inform us promptly by reply e-mail, then delete the e-mail and destroy any > printed copy. Thank you. > ============================================================================== > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From billlist at nycap.rr.com Thu Aug 28 12:00:42 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Thu, 28 Aug 2003 12:00:42 -0400 Subject: [vtkusers] Issues with VTK 4.2 In-Reply-To: Message-ID: <5.2.0.9.0.20030828115806.03e830a0@pop.nycap.rr.com> At 11:18 AM 8/28/2003, Tom G. Smith (Smitty) wrote: >Hello vtkusers at public.kitware.com, > >I just installed VTK 4.2 on a RedHat 9.0 system. We've been using >VTK for a number of years now, since VTK Version 2.4, and it's never >gotten any easier to install and configure. Here are several >issues: > >1. During the cmake -i, it prompts you to BUILD_SHARED_LIBS, > with the default of OFF. If you don't change it to ON and > subsequently override VTK_WRAP_PYTHON to ON, it waits > another 30 prompts or so before it dies with the error, > "VTK_WRAP_PYTHON requires BUILD_SHARED_LIBS to be ON." > Then you have to go through the whole tedious set of prompts > from the beginning again. You may want to try ccmake instead of cmake -i, the interface is much nicer. >2. I left VTK_USE_HYBRID and VTK_USE_PARALLEL both at OFF, but > set VTK_WRAP_TCL to ON. When the cmake finished and I > try to run any of the Tcl examples, they work, but I get > these messages every time: > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl > can't find package vtkHybridTCL 4.2 > can't find package vtkParallelTCL 4.2 This may be fixed in 4.2.3, but I will check. >3. It works, but I get these messages if I run vtk anywhere but > directly at the console. These messages have been around > since VTK 4.0. They did not appear prior to that version. > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified This is not a vtk issue. This is an X11 issue. Can you run other opengl based applications and have them work? >4. Some of the tcl examples don't work at all. I've only listed a few > that I tried which failed; there are lots more that don't work: > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl > Error in startup script: invalid command name > "vtkProcrustesAlignmentFilter" while executing > "vtkProcrustesAlignmentFilter procrustes1" (file > "/opt/vtk/Examples/Modelling/Tcl/procrustesAlignment.tcl" > line 49) > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/hello.tcl > can't find package vtkHybridTCL 4.2 can't find package > vtkParallelTCL 4.2 Error in startup script: invalid command > name "vtkImplicitModeller" while executing "vtkImplicitModeller > imp" (file "/opt/vtk/Examples/Modelling/Tcl/hello.tcl" line 24) > > Some of the tcl examples require hybrid or parallel, so if you don't build them, they will not run. -Bill From ebachta at iupui.edu Thu Aug 28 14:28:28 2003 From: ebachta at iupui.edu (Ed Bachta) Date: 28 Aug 2003 13:28:28 -0500 Subject: [vtkusers] python wrapping local classes Message-ID: <1062095308.3166.30.camel@jackson.uits.iupui.edu> Hello vtkusers, I'm trying to add a class to my VTK build. I was able to add it to a directory called Local and build a C++ .so nicely by following the suggestions in the VTK README. I can even create a C++ application that uses the class. However, I'm having trouble with the python wrapping. I seem to get a libvtkLocalPython.so in the bin directory, but when I try using my class in a script I have problems. First, it doesn't seem to be in the vtk module: ----- [ebachta at jackson Blondin]$ vtkpython vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 01:45:05 $ (GMT) Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import vtk >>> ren = vtk.vtkRenderer() >>> h = vtk.vtkHistogramColorBar() Traceback (most recent call last): File "", line 1, in ? AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' ----- And if I try loading from the python library for Local directly it has problems with undefined symbols: ----- >>> from libvtkLocalPython import * Traceback (most recent call last): File "", line 1, in ? ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined symbol: PyVTKClass_vtkActor2DNew ----- I'm suspecting that I'm missing something in my Local/CMakeLists.txt, but I don't know what that would be. I'm working on a Linux box. -- Ed Bachta Technical Lead Visualization and Interactive Spaces Lab, Pervasive Technology Labs at Indiana University http://vis.iu.edu From baghdadi at sickkids.ca Thu Aug 28 14:30:32 2003 From: baghdadi at sickkids.ca (Leila Baghdadi) Date: Thu, 28 Aug 2003 14:30:32 -0400 (EDT) Subject: [vtkusers] python wrapping local classes In-Reply-To: <1062095308.3166.30.camel@jackson.uits.iupui.edu> Message-ID: Hi Ed you must try loading from vtkpython import * from libvtkLocalPython import * hope this helps Leila On 28 Aug 2003, Ed Bachta wrote: > > Hello vtkusers, > > I'm trying to add a class to my VTK build. I was able to add it to a > directory called Local and build a C++ .so nicely by following the > suggestions in the VTK README. I can even create a C++ application that > uses the class. However, I'm having trouble with the python wrapping. I > seem to get a libvtkLocalPython.so in the bin directory, but when I try > using my class in a script I have problems. First, it doesn't seem to be > in the vtk module: > > ----- > [ebachta at jackson Blondin]$ vtkpython > vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 > 01:45:05 $ > (GMT) > Python 2.2.2 (#1, Feb 24 2003, 19:13:11) > [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import vtk > >>> ren = vtk.vtkRenderer() > >>> h = vtk.vtkHistogramColorBar() > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' > ----- > > And if I try loading from the python library for Local directly it has > problems with undefined symbols: > > ----- > >>> from libvtkLocalPython import * > Traceback (most recent call last): > File "", line 1, in ? > ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined > symbol: PyVTKClass_vtkActor2DNew > ----- > > I'm suspecting that I'm missing something in my Local/CMakeLists.txt, > but I don't know what that would be. I'm working on a Linux box. > > From ebachta at iupui.edu Thu Aug 28 14:46:22 2003 From: ebachta at iupui.edu (Ed Bachta) Date: 28 Aug 2003 13:46:22 -0500 Subject: [vtkusers] python wrapping local classes In-Reply-To: References: Message-ID: <1062096382.3166.37.camel@jackson.uits.iupui.edu> Thanks for the suggestion, but that didn't do it... [ebachta at jackson vtkHistogramColorBar]$ vtkpython vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 01:45:05 $ (GMT) Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from vtkpython import * >>> ren = vtk.vtkRenderer() >>> hcb = vtk.vtkHistogramColorBar() Traceback (most recent call last): File "", line 1, in ? AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' >>> from libvtkLocalPython import * Traceback (most recent call last): File "", line 1, in ? ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined symbol: PyVTKClass_vtkActor2DNew >>> Btw, this is what my Local/CMakeLists.txt looks like (before the "common section" that I pasted in): SET(KIT Local) SET(UKIT LOCAL) SET(KIT_PYTHON_LIBS vtkCommonPython) SET(KIT_LIBS vtkCommon) SET( Kit_SRCS vtkHistogramColorBar.cxx ) SET(Kit_EXTRA_SRCS) SET(Kit_EXTRA_CMDS) SET(Kit_TCL_EXTRA_SRCS) SET(Kit_PYTHON_EXTRA_SRCS) SET(Kit_JAVA_EXTRA_SRCS) - Ed On Thu, 2003-08-28 at 13:30, Leila Baghdadi wrote: > Hi Ed > > you must try loading > > from vtkpython import * > from libvtkLocalPython import * > > > hope this helps > > > Leila > > On 28 Aug 2003, Ed Bachta wrote: > > > > > Hello vtkusers, > > > > I'm trying to add a class to my VTK build. I was able to add it to a > > directory called Local and build a C++ .so nicely by following the > > suggestions in the VTK README. I can even create a C++ application that > > uses the class. However, I'm having trouble with the python wrapping. I > > seem to get a libvtkLocalPython.so in the bin directory, but when I try > > using my class in a script I have problems. First, it doesn't seem to be > > in the vtk module: > > > > ----- > > [ebachta at jackson Blondin]$ vtkpython > > vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 > > 01:45:05 $ > > (GMT) > > Python 2.2.2 (#1, Feb 24 2003, 19:13:11) > > [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import vtk > > >>> ren = vtk.vtkRenderer() > > >>> h = vtk.vtkHistogramColorBar() > > Traceback (most recent call last): > > File "", line 1, in ? > > AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' > > ----- > > > > And if I try loading from the python library for Local directly it has > > problems with undefined symbols: > > > > ----- > > >>> from libvtkLocalPython import * > > Traceback (most recent call last): > > File "", line 1, in ? > > ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined > > symbol: PyVTKClass_vtkActor2DNew > > ----- > > > > I'm suspecting that I'm missing something in my Local/CMakeLists.txt, > > but I don't know what that would be. I'm working on a Linux box. > > > > > > From prabhu at aero.iitm.ernet.in Thu Aug 28 14:49:04 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 29 Aug 2003 00:19:04 +0530 Subject: [vtkusers] python wrapping local classes In-Reply-To: <1062095308.3166.30.camel@jackson.uits.iupui.edu> References: <1062095308.3166.30.camel@jackson.uits.iupui.edu> Message-ID: <16206.20128.580988.444960@monster.linux.in> >>>>> "EB" == Ed Bachta writes: [snip] EB> Traceback (most recent call last): EB> File "", line 1, in ? EB> AttributeError: 'module' object has no attribute EB> 'vtkHistogramColorBar' ----- 'import vtk' will only import the standard VTK Python modules. You'll have to import the local kit separately. [snip] >>>> from libvtkLocalPython import * EB> Traceback (most recent call last): EB> File "", line 1, in ? EB> ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: EB> undefined symbol: PyVTKClass_vtkActor2DNew ----- EB> I'm suspecting that I'm missing something in my EB> Local/CMakeLists.txt, but I don't know what that would be. I'm EB> working on a Linux box. You'll need to link libvtkLocalPython.so atleast to libvtkCommonPython. Add any other libraries depending on what parts of VTK you use. cheers, prabhu From prabhu at aero.iitm.ernet.in Thu Aug 28 14:51:09 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 29 Aug 2003 00:21:09 +0530 Subject: [vtkusers] python wrapping local classes In-Reply-To: References: <1062095308.3166.30.camel@jackson.uits.iupui.edu> Message-ID: <16206.20253.554459.428013@monster.linux.in> >>>>> "LB" == Leila Baghdadi writes: LB> Hi Ed you must try loading LB> from vtkpython import * That will work but if you are using VTK 4.0 and above using import vtk is recommended. cheers, prabhu From haack at rz.rwth-aachen.de Thu Aug 28 14:53:56 2003 From: haack at rz.rwth-aachen.de (Matthias Haack) Date: Thu, 28 Aug 2003 20:53:56 +0200 Subject: [vtkusers] Breaking the pipeline In-Reply-To: <3F4E243C.9040601@imaging.robarts.ca> References: <246ec214b4.214b4246ec@post.rwth-aachen.de> <3F4E243C.9040601@imaging.robarts.ca> Message-ID: <3F4E4FC4.7020901@rz.rwth-aachen.de> Hi Glen, the clue is, the vtkImageData is the output of a vtkPNGReader and that's not changed, I just want to disable it to prevent the pipeline to access it when something is changed. And I tried the imageData->Update() but this does not help: The rendered image is not updated when I deep copy another image (flipped version of the original) to the original image and then do an update. It seems that the copy is not recognized. Matthias Glen Lehmann wrote: > Hi Mathias, > > You likely need to call imageData->Update after you reset it's input. > > Cheers, > Glen > > Mathias Haack wrote: > >> Hi all, >> >> I have the following pipeline with VTK 4.0.2: >> png image -> vtkPNGReader -> vtkImageData -> vtkImageActor -> ... -> >> display >> >> It works as it is supposed to be. Now I want to alter the vtkImageData >> using >> an image filter like vtkImageFlip, first I deepcopy the vtkImageData, >> using vtkImageFlip and deep copy it back to the vtkImageData. >> The result is an unchanged image on my display. I suppose the pipeline >> will >> read the image again (or use the cached image from the reader). >> >> I need to break the connection between the image reader and vtkImageData. >> >> How can I achieve this? >> >> >> Matthias >> >> >> > > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From ebachta at iupui.edu Thu Aug 28 15:11:35 2003 From: ebachta at iupui.edu (Ed Bachta) Date: 28 Aug 2003 14:11:35 -0500 Subject: [vtkusers] python wrapping local classes In-Reply-To: References: Message-ID: <1062097895.3166.50.camel@jackson.uits.iupui.edu> Okay, I've got it now. It seems I just had to wipe out an earlier build of libvtkLocalPython.so that I had built before adding the lines to include vtkCommonPython in my CMakeLists.txt... I thought cmake would force a rebuild if a CMakeLists.txt changes. Thanks for the help though, Leila and Prabhu. :) - Ed On Thu, 2003-08-28 at 13:53, Leila Baghdadi wrote: > Ed how are you compling this, I have a couple of my own classes in > > /../VTK/Examples/Build/vtkLocal > > and I have no problems compiling or linking them. > > I think I just did a ccmake in this directory and built it separately from > vtk. Also in top of your CMakeLists.txt you must add which modules and > which classes (manually) > ************************************************************** > CMAKE_MINIMUM_REQUIRED(VERSION 1.6) > > # Set the project/library name here. Classes should be declared as > # "class vtkLocal_EXPORT vtkFoo", where vtkLocal is the name of the > # project set here. > PROJECT(vtkLocal) > > # Set your list of sources here. Do not change the name of the > # vtkLocal_SRCS variable. > SET(vtkLocal_SRCS > vtkLocalExample.cxx > vtkImageCanvasSource.cxx > ) > > # List the kits from VTK that are needed by this project. > SET(vtkLocal_LIBS > vtkCommon > vtkImaging > ) > > ******************************************** > > > you can send me your class and I will see if I run to similar problems if > I try to compile it. > > HTH > > Leila > > On 28 Aug 2003, Ed Bachta wrote: > > > > > Thanks for the suggestion, but that didn't do it... > > > > [ebachta at jackson vtkHistogramColorBar]$ vtkpython > > vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 > > 01:45:05 $ > > (GMT) > > Python 2.2.2 (#1, Feb 24 2003, 19:13:11) > > [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> from vtkpython import * > > >>> ren = vtk.vtkRenderer() > > >>> hcb = vtk.vtkHistogramColorBar() > > Traceback (most recent call last): > > File "", line 1, in ? > > AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' > > >>> from libvtkLocalPython import * > > Traceback (most recent call last): > > File "", line 1, in ? > > ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined > > symbol: PyVTKClass_vtkActor2DNew > > >>> > > > > Btw, this is what my Local/CMakeLists.txt looks like (before the "common > > section" that I pasted in): > > > > SET(KIT Local) > > SET(UKIT LOCAL) > > SET(KIT_PYTHON_LIBS vtkCommonPython) > > SET(KIT_LIBS vtkCommon) > > > > SET( Kit_SRCS > > vtkHistogramColorBar.cxx > > ) > > > > SET(Kit_EXTRA_SRCS) > > SET(Kit_EXTRA_CMDS) > > SET(Kit_TCL_EXTRA_SRCS) > > SET(Kit_PYTHON_EXTRA_SRCS) > > SET(Kit_JAVA_EXTRA_SRCS) > > > > > > - Ed > > > > On Thu, 2003-08-28 at 13:30, Leila Baghdadi wrote: > > > Hi Ed > > > > > > you must try loading > > > > > > from vtkpython import * > > > from libvtkLocalPython import * > > > > > > > > > hope this helps > > > > > > > > > Leila > > > > > > On 28 Aug 2003, Ed Bachta wrote: > > > > > > > > > > > Hello vtkusers, > > > > > > > > I'm trying to add a class to my VTK build. I was able to add it to a > > > > directory called Local and build a C++ .so nicely by following the > > > > suggestions in the VTK README. I can even create a C++ application that > > > > uses the class. However, I'm having trouble with the python wrapping. I > > > > seem to get a libvtkLocalPython.so in the bin directory, but when I try > > > > using my class in a script I have problems. First, it doesn't seem to be > > > > in the vtk module: > > > > > > > > ----- > > > > [ebachta at jackson Blondin]$ vtkpython > > > > vtk version 4.3.0, vtk source $Revision: 1.1610 $, $Date: 2003/06/23 > > > > 01:45:05 $ > > > > (GMT) > > > > Python 2.2.2 (#1, Feb 24 2003, 19:13:11) > > > > [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 > > > > Type "help", "copyright", "credits" or "license" for more information. > > > > >>> import vtk > > > > >>> ren = vtk.vtkRenderer() > > > > >>> h = vtk.vtkHistogramColorBar() > > > > Traceback (most recent call last): > > > > File "", line 1, in ? > > > > AttributeError: 'module' object has no attribute 'vtkHistogramColorBar' > > > > ----- > > > > > > > > And if I try loading from the python library for Local directly it has > > > > problems with undefined symbols: > > > > > > > > ----- > > > > >>> from libvtkLocalPython import * > > > > Traceback (most recent call last): > > > > File "", line 1, in ? > > > > ImportError: /usr/local/src/VTK/bin/libvtkLocalPython.so: undefined > > > > symbol: PyVTKClass_vtkActor2DNew > > > > ----- > > > > > > > > I'm suspecting that I'm missing something in my Local/CMakeLists.txt, > > > > but I don't know what that would be. I'm working on a Linux box. > > > > > > > > > > > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > From amy.henderson at kitware.com Thu Aug 28 15:15:05 2003 From: amy.henderson at kitware.com (Amy Henderson) Date: Thu, 28 Aug 2003 15:15:05 -0400 Subject: [vtkusers] Breaking the pipeline In-Reply-To: <3F4E4FC4.7020901@rz.rwth-aachen.de> References: <3F4E243C.9040601@imaging.robarts.ca> <246ec214b4.214b4246ec@post.rwth-aachen.de> <3F4E243C.9040601@imaging.robarts.ca> Message-ID: <5.1.0.14.0.20030828151248.032f4b30@pop.biz.rr.com> Why not change the input to the vtkImageActor? The new pieline would look like: vtkPNGReader -> vtkImageFlip -> vtkImageActor Then there's no need for copying the data. - Amy At 08:53 PM 8/28/2003 +0200, Matthias Haack wrote: >Hi Glen, > >the clue is, the vtkImageData is the output of a vtkPNGReader and that's >not changed, I just want to disable it to prevent the pipeline to access >it when something is changed. > >And I tried the imageData->Update() but this does not help: > >The rendered image is not updated when I deep copy another image (flipped >version of the original) to the original image and then do an update. > >It seems that the copy is not recognized. > > >Matthias > > >Glen Lehmann wrote: >>Hi Mathias, >>You likely need to call imageData->Update after you reset it's input. >>Cheers, >>Glen >>Mathias Haack wrote: >> >>>Hi all, >>> >>>I have the following pipeline with VTK 4.0.2: >>>png image -> vtkPNGReader -> vtkImageData -> vtkImageActor -> ... -> display >>> >>>It works as it is supposed to be. Now I want to alter the vtkImageData using >>>an image filter like vtkImageFlip, first I deepcopy the vtkImageData, >>>using vtkImageFlip and deep copy it back to the vtkImageData. >>>The result is an unchanged image on my display. I suppose the pipeline will >>>read the image again (or use the cached image from the reader). >>> >>>I need to break the connection between the image reader and vtkImageData. >>> >>>How can I achieve this? >>> >>> >>>Matthias >>> >>> >> >>_______________________________________________ >>This is the private VTK discussion list. Please keep messages on-topic. >>Check the FAQ at: >>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: >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers From Kevin.Wright at ansys.com Thu Aug 28 15:29:19 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Thu, 28 Aug 2003 15:29:19 -0400 Subject: [vtkusers] Breaking the pipeline Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDCA8@waterfall.waterloo.cfx.co> > the clue is, the vtkImageData is the output of a vtkPNGReader > and that's > not changed, I just want to disable it to prevent the > pipeline to access > it when something is changed. You could just split the pipeline, and take the output of the reader, pass it through the image flip, and then change the input of the actor to point to the flipped data, instead of the original, or create a whole new actor and set the visibility of them on and off to prevent unneccessary updates. If there's some reason why you need to keep the same pipeline you could maybe try something like this: If you take the output of the image reader and Register it, then call SetOutput on the reader and set it to null, then I think you will have broken the pipeline, and you will still have a copy of the original data, which you can use to build a new pipeline (rather than copying different data back into the original image structure, I would recommend just changing the pipeline to pass that data through another filter and into the mapper. So... vtkImageData *img = imageReader->GetOutput(); img->Register(0); imageReader->SetOutput(0); imageFlip->SetInput(img); actor->SetInput(imageFlip->GetOutput()); I've never tried anything like that, but it might work. Kevin. From fgrim at norby.dyndns.org Thu Aug 28 19:40:57 2003 From: fgrim at norby.dyndns.org (Frederick Grim) Date: Thu, 28 Aug 2003 19:40:57 -0400 Subject: [vtkusers] build failure in hybrid In-Reply-To: References: <1061994302.14864.61.camel@golgatha.norby.dyndns.org> Message-ID: <20030828234056.GA5045@norby.dyndns.org> So Brad King was all like, and shit: > > I can't seem to build vtk. I am using gentoo linux with lam-mpi. My > > CMakeCache.txt is included beneath the warnings. The error I get is: > [snip] > > Building executable /home/hal9000/VTK-4.2.2/bin/pvtk... > > /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to > > `vtkPushPipeline::New()' > > I think this has been fixed in VTK 4.2.3. And so it has... thanks Fred > > -Brad > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- #!/usr/bin/perl -sp0777i From Matthias.Guenther at AdvancedMRI.com Thu Aug 28 19:55:22 2003 From: Matthias.Guenther at AdvancedMRI.com (Matthias Guenther) Date: Thu, 28 Aug 2003 16:55:22 -0700 Subject: [vtkusers] build failure in hybrid References: <1061994302.14864.61.camel@golgatha.norby.dyndns.org> <20030828234056.GA5045@norby.dyndns.org> Message-ID: <3F4E966A.5D1B2424@AdvancedMRI.com> Frederick Grim wrote: > > So Brad King was all like, and shit: > > > I can't seem to build vtk. I am using gentoo linux with lam-mpi. My > > > CMakeCache.txt is included beneath the warnings. The error I get is: > > [snip] > > > Building executable /home/hal9000/VTK-4.2.2/bin/pvtk... > > > /home/hal9000/VTK-4.2.2/bin/libvtkHybridTCL.so: undefined reference to > > > `vtkPushPipeline::New()' > > > > I think this has been fixed in VTK 4.2.3. > And so it has... thanks > Good to know ;-). I am just wondering where to find this version vtk 4.2.3. I was only able to find vtk 4.2.2 Bye, Matthias > Fred > > > > > -Brad > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > -- > #!/usr/bin/perl -sp0777i 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) > > ------------------------------------------------------------------------ > Part 1.2Type: application/pgp-signature -- Dr. Matthias Guenther Advanced MRI Technologies 652 Petaluma Av., Suite J Sebastopol, CA 95472, USA Tel.: 001 - (707) 829 2933 From A.C.J.Usher at damtp.cam.ac.uk Thu Aug 28 21:26:28 2003 From: A.C.J.Usher at damtp.cam.ac.uk (Andrew Usher) Date: Fri, 29 Aug 2003 02:26:28 +0100 (BST) Subject: [vtkusers] Update on ContourFilter Message-ID: Hi, I'm trying to get a contour filter to update within a loop but keep getting the error: >> ERROR: In /usr/local/VTK-4.2.2/Graphics/vtkPolyDataNormals.cxx, line 88 >> vtkPolyDataNormals (0x805bc48): No data to generate normals for! with the code: for (int ii=1; ii<5; ii++) { cntrFilter->GenerateValues(ii, range); renWin->Render(); } This is a trivial example but I just wondered how to do this. I've tried to use cntrFilter->ReleaseDataFlagOff(); but with the same error. I've used cntrFilter->SetInput(myData) earlier in my code which has produced a rendering as expected but it's just when I try to repeat the call to GenerateValues() and I thought someone will have done something similar before, such as an animation? Thanks very much, Andrew From cpanagio at cs.ucl.ac.uk Thu Aug 28 21:55:55 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Fri, 29 Aug 2003 02:55:55 +0100 Subject: [vtkusers] help with updateCellCount Message-ID: <3F4EB2AB.7070708@cs.ucl.ac.uk> hey there i have a problem with vtkCellArray i am trying to implement something like the following: cellArray->InsertNextCell(?) cellArray->InsertCellPoint(id) i dont know the number of points at the time i create the cell... how can i use UpdateCellCount to do this? is it something like: x=1 cellArray->InsertNextCell(x) cellArray->InsertCellPoint(id) cellArray->UpdateCellCount(x+1) or for(int id=0;id<80;id++){ cellArray->InsertNextCell(10000) // just a big number cellArray->InsertCellPoint(id) } cellArray->UpdateCellCount(79) // to reduce number of cells? and if it is something like the above how do i close the cell? is it called automatically when i call InsertNextCell again? i successfuly populate the first cell however after this, the next cells have 0 number of points inside i dont get it... i would appreciate any help i am really stack in this 3-4 days now and i dont know what i do wrong thanks chris From haack at rz.rwth-aachen.de Fri Aug 29 03:00:13 2003 From: haack at rz.rwth-aachen.de (Matthias Haack) Date: Fri, 29 Aug 2003 09:00:13 +0200 Subject: [vtkusers] Breaking the pipeline In-Reply-To: <5CDA05569A72F14C8878FD96F2A7F4616FDCA8@waterfall.waterloo.cfx.co> References: <5CDA05569A72F14C8878FD96F2A7F4616FDCA8@waterfall.waterloo.cfx.co> Message-ID: <3F4EF9FD.6020802@rz.rwth-aachen.de> Hi Kevin and all the others who helped, with a slightly modification your suggestion works although the img->Register(0) looks weird to me. I do it like this (imData is the image which is set as an input to a vtkImageActor): vtkImageData* temp = vtkImageData::New(); flip->SetInput(temp); temp->DeepCopy(imData); temp = flip->GetOutput(); temp->Update(); imData->DeepCopy(temp); flip->RemoveAllInputs(); temp->Register(0); temp->Delete(); So I never need to put my finger on the vtkImageActor which suits my current implementation although I do two deep copies. The main problem is that I currently only have access to the vtkImageData in my data object and the display is done in another class using vtkImageActor but this might change and then there would be no vtkImageActor needed. If someone knows how to do it with less copies, please let me know. Matthias Kevin Wright wrote: > vtkImageData *img = imageReader->GetOutput(); > img->Register(0); > imageReader->SetOutput(0); > > imageFlip->SetInput(img); > actor->SetInput(imageFlip->GetOutput()); > > I've never tried anything like that, but it might work. From Kevin.Wright at ansys.com Fri Aug 29 09:09:40 2003 From: Kevin.Wright at ansys.com (Kevin Wright) Date: Fri, 29 Aug 2003 09:09:40 -0400 Subject: [vtkusers] Breaking the pipeline Message-ID: <5CDA05569A72F14C8878FD96F2A7F4616FDCA9@waterfall.waterloo.cfx.co> > with a slightly modification your suggestion works although the > img->Register(0) looks weird to me. Register adds one to the reference count. The argument is just to specify which object is doing the registering, or you can put null (0) as the argument. The point was to remove the image data as the output of the filter without it resulting in the image data being deleted. That being said, I'm not sure that the Register in this case is doing anything. > vtkImageData* temp = vtkImageData::New(); > flip->SetInput(temp); > temp->DeepCopy(imData); > temp = flip->GetOutput(); > temp->Update(); > imData->DeepCopy(temp); > flip->RemoveAllInputs(); > temp->Register(0); > temp->Delete(); If you're intent on using the deep copy instead of creating another pipeline, then I think you only need one deep copy: flip->SetInput(imData); vtkImageData *temp = flip->GetOutput(); flip->Update(); imData->DeepCopy(temp); flip->Delete(); Just a note that I think the main reason this is causing you so much trouble is that it is not the way a pipeline setup is supposed to be used. If you maintain a handle to the actors, then there are much cleaner and more efficient ways that this could be accomplished. Hope that helps, Kevin. From dean.inglis at camris.ca Fri Aug 29 10:14:06 2003 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Fri, 29 Aug 2003 10:14:06 -0400 Subject: [vtkusers] Add two renderers to vtkBorlandRenderWindow Message-ID: <20030829141406.IAOS684.tomts16-srv.bellnexxia.net@[209.226.175.249]> Hi Yang, Take a look at /Examples/GUI/Win32/vtkBorland/Package/vtkBorlandRenderWindow.h You should note that there is only one render window, and one renderer. There currently is no API for adding renderers, although this could be done by adding a vtkRendererCollection member item to this class. If you are interested in doing this you could create your own a modified vtkBorlandRenderWindow, or just drop two vtkBorlandRenderWindow on your project's form ... Dean From lowekab at mail.nlm.nih.gov Fri Aug 29 10:45:02 2003 From: lowekab at mail.nlm.nih.gov (Bradley Lowekamp) Date: Fri, 29 Aug 2003 10:45:02 -0400 Subject: [vtkusers] MacOS X Carbon Window Messaging Problem Message-ID: <5F113CD4-DA2F-11D7-9274-000A9578B08C@mail.nlm.nih.gov> Hello, I think that this is more of a general OSX problem and I don't understand somethings about the bundling .app framework stuff. So I have compiled a recent CVS version of VTK on OSX with Carbon and a recent version of Tcl/Tk. And it compiles ok. The problem is that whether I run a Tcl or a C++ VTK windowed application I don't appear to be getting any messages for the OS; the app just sits there not doing anything, not getting focus...dead like. I put one of the applications in a hacked together *.app bundle and it seemed to work ok then. It seems like I should be able to get executables to work with out a bundle; especially Tcl scripts. (hrmm... perhaps with an open command? I should try that.) Does anyone know what is required to get a native OS X windowed app running good? Get a good URL with the info? Also is there a way to make these app bundles with CMake? >Thanks Brad From Yang at AGIUSA.COM Fri Aug 29 10:46:48 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Fri, 29 Aug 2003 09:46:48 -0500 Subject: [vtkusers] Add two renderers to vtkBorlandRenderWindow Message-ID: <6AC51773FA304E469DEE9569AF903E5B1687E8@mail.exchngsvr.agiusa.com> Hi Dean, Thanks for your advice. In the demo project of vtkBorlandRenderWindow, I found that one can do something like this BorlandRenderWindow->GetRenderWindow()->AddRenderer(ren1); I got what I expected on the screen by doing this. But I got access violation errors in several OpenGL-related vtk classes when I exited my program. Is it OK to add another renderer this way? Say, BorlandRenderWindow->GetRenderWindow()->AddRenderer(ren2); When I do this: BorlandRenderWindow->GetRenderer(), I do not know which renderer I would end up with. Yang -----Original Message----- From: dean.inglis at camris.ca [mailto:dean.inglis at camris.ca] Sent: Friday, August 29, 2003 9:14 AM To: vtkusers at vtk.org Subject: Re: [vtkusers] Add two renderers to vtkBorlandRenderWindow Hi Yang, Take a look at /Examples/GUI/Win32/vtkBorland/Package/vtkBorlandRenderWindow.h You should note that there is only one render window, and one renderer. There currently is no API for adding renderers, although this could be done by adding a vtkRendererCollection member item to this class. If you are interested in doing this you could create your own a modified vtkBorlandRenderWindow, or just drop two vtkBorlandRenderWindow on your project's form ... Dean _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From smitty at kcc.com Fri Aug 29 10:56:09 2003 From: smitty at kcc.com (Tom G. Smith (Smitty)) Date: Fri, 29 Aug 2003 09:56:09 -0500 (CDT) Subject: [vtkusers] PerlVTK? Message-ID: Hello vtkusers at public.kitware.com, Does anyone know if PerlVTK is viable, and where one might obtain a copy? A search on Google brings up links that no longer exist, e.g. http://www.math.umd.edu/%7Erdl/PerlVTK/. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From peterpfister at mac.com Fri Aug 29 11:58:58 2003 From: peterpfister at mac.com (Peter Pfister) Date: Fri, 29 Aug 2003 17:58:58 +0200 (CEST) Subject: [vtkusers] MacOSX ld: Undefined symbols (glX) libvtkRenderingJava.dylib In-Reply-To: <20030829151201.1461.51138.Mailman@public.kitware.com> References: <20030829151201.1461.51138.Mailman@public.kitware.com> Message-ID: Hello vtkusers List The following error occurs when compiling VTK on a MacOS X 10.2.6 computer /VTK/Rendering: building default_target Building shared library /VTK/bin/libvtkRenderingJava.dylib... ld: Undefined symbols: _glXChooseVisual _glXCreateContext _glXDestroyContext _glXGetClientString _glXGetConfig _glXGetCurrentContext _glXIsDirect _glXMakeCurrent _glXQueryExtension _glXQueryExtensionsString _glXQueryServerString _glXSwapBuffers /usr/bin/libtool: internal link editcommand failed make[3]: ***[/VTK/bin/libvtkRenderingJava.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 Does anyone know what could be done to fix the problem? Any help would be appreciated. Kind Regards Peter From jsundar at siue.edu Fri Aug 29 12:35:26 2003 From: jsundar at siue.edu (jsundar at siue.edu) Date: Fri, 29 Aug 2003 11:35:26 -0500 Subject: [vtkusers] Downloading from CVS Message-ID: <1062174926.3f4f80ce1c325@webmail1.isg.siue.edu> Hey all, How do I download files from cvs.I want to download http://public.kitware.com/cgi- bin/cvsweb.cgi/~checkout~/VTK/Hybrid/Testing/tcl/VRMLImporter.tcl. Now how do I do it because it keeps saying access denied. Regards, Jayashree ------------------------------------------------- SIUE Web Mail From garsha at itg.uiuc.edu Fri Aug 29 14:42:24 2003 From: garsha at itg.uiuc.edu (Karl Garsha) Date: Fri, 29 Aug 2003 13:42:24 -0500 Subject: [Fwd: Re: [vtkusers] MacOS X Carbon Window Messaging Problem] Message-ID: <3F4F9E90.1060203@itg.uiuc.edu> -------- Original Message -------- Subject: Re: [vtkusers] MacOS X Carbon Window Messaging Problem Date: Fri, 29 Aug 2003 13:03:36 -0500 From: Karl Garsha To: Bradley Lowekamp References: <5F113CD4-DA2F-11D7-9274-000A9578B08C at mail.nlm.nih.gov> Greetings Brad, Getting native windowing support to work with Tcl/Tk, or Python/Tkinter, or Python wxWindows requires that the script is started by drag/dropping on a GUI version of the interpreter, or (in the case of Python2.3) starting from the command line while explicitly specifiying the GUI version of the interpreter (pythonw script which points to python.app). I don't really use Tcl, but there should be a "Wish Shell" icon in the utilities directory in Applications. Try dropping a Tcl/Tk VTK example on this icon--a GUI interpreter will open and you should be able to give focus to Tk windows. This is some wierd thing with Quartz--you can't seem to start native windowing applications from a command line interpreter yet. If you build Tcl/Tk and/or Python/Tkinter for X11 things will work normally in the X11 environment. If you want to start a Tcl/Tk Carbon application from a terminal window, you may be able to do so with a command like "wish8.4 vtkapp" (rather than "tclsh8.4 vtkapp") if your display environment variable is configured correctly. -Karl Bradley Lowekamp wrote: > Hello, > I think that this is more of a general OSX problem and I don't > understand somethings about the bundling .app framework stuff. So I > have compiled a recent CVS version of VTK on OSX with Carbon and a > recent version of Tcl/Tk. And it compiles ok. The problem is that > whether I run a Tcl or a C++ VTK windowed application I don't appear > to be getting any messages for the OS; the app just sits there not > doing anything, not getting focus...dead like. I put one of the > applications in a hacked together *.app bundle and it seemed to work > ok then. It seems like I should be able to get executables to work > with out a bundle; especially Tcl scripts. (hrmm... perhaps with an > open command? I should try that.) Does anyone know what is required to > get a native OS X windowed app running good? Get a good URL with the > info? > Also is there a way to make these app bundles with CMake? > > >Thanks > Brad > > _______________________________________________ > This is the private VTK discussion list. Please keep messages > on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- Karl Garsha Light Microscopy Specialist Imaging Technology Group Beckman Institute for Advanced Science and Technology University of Illinois at Urbana-Champaign 405 North Mathews Avenue Urbana, IL 61801 Office: B650J Phone: 217.244.6292 Fax: 217.244.6219 Mobile: 217.390.1874 www.itg.uiuc.edu -- Karl Garsha Light Microscopy Specialist Imaging Technology Group Beckman Institute for Advanced Science and Technology University of Illinois at Urbana-Champaign 405 North Mathews Avenue Urbana, IL 61801 Office: B650J Phone: 217.244.6292 Fax: 217.244.6219 Mobile: 217.390.1874 www.itg.uiuc.edu From smitty at kcc.com Fri Aug 29 16:47:50 2003 From: smitty at kcc.com (Tom G. Smith (Smitty)) Date: Fri, 29 Aug 2003 15:47:50 -0500 (CDT) Subject: [vtkusers] How do I get rid of "obsoleted" messages? Message-ID: How do I get rid of these messages? bash-2.05b$ vtk canoe.tcl ERROR: In /home/contrib/vtk/VTK-4.2.2/Rendering/vtkRenderWindowInteractor.cxx, line 455 vtkXRenderWindowTclInteractor (0x816fec0): SetUserMethod was obsoleted for version "4.2" and will be removed in a future version ERROR: In /home/contrib/vtk/VTK-4.2.2/Rendering/vtkRenderWindowInteractor.cxx, line 474 vtkXRenderWindowTclInteractor (0x816fec0): SetUserMethodArgDelete was obsoleted for version "4.2" and will be removed in a future version ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From dean.inglis at camris.ca Fri Aug 29 18:51:34 2003 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Fri, 29 Aug 2003 18:51:34 -0400 Subject: [vtkusers] Add two renderers to vtkBorlandRenderWindow Message-ID: <20030829225134.IVQM21445.tomts7-srv.bellnexxia.net@[209.226.175.135]> Yang, one thing you should do with vtk/borland gui apps is in the destructor of the form that contains the renderwindow component, do something along the following lines: void __fastcall TMainForm::FormDestroy(TObject *Sender) { vtkRenderer* ren = m_BorlandRenderWindow->GetRenderer(); ren->GetProps()->RemoveAllItems(); vtkRenderWindow* renwin = m_BorlandRenderWindow->GetRenderWindow(); m_Actor->ReleaseGraphicsResources(renwin); m_Actor->Delete(); } I would still say it is necessary to modify or subclass this component to set/get multiple renderers though... Dean > > From: Xianjin Yang > Date: 2003/08/29 Fri AM 10:46:48 GMT-04:00 > To: "'dean.inglis at camris.ca'" , vtkusers at vtk.org > Subject: RE: [vtkusers] Add two renderers to vtkBorlandRenderWindow > > Hi Dean, > > Thanks for your advice. In the demo project of vtkBorlandRenderWindow, I found > that one can do something like this > > BorlandRenderWindow->GetRenderWindow()->AddRenderer(ren1); > > I got what I expected on the screen by doing this. But I got access violation > errors in several OpenGL-related vtk classes when I exited my program. > > Is it OK to add another renderer this way? Say, > BorlandRenderWindow->GetRenderWindow()->AddRenderer(ren2); > > When I do this: BorlandRenderWindow->GetRenderer(), I do not know which renderer > I would end up with. > > Yang > > > -----Original Message----- > From: dean.inglis at camris.ca [mailto:dean.inglis at camris.ca] > Sent: Friday, August 29, 2003 9:14 AM > To: vtkusers at vtk.org > Subject: Re: [vtkusers] Add two renderers to vtkBorlandRenderWindow > > > > Hi Yang, > > Take a look at /Examples/GUI/Win32/vtkBorland/Package/vtkBorlandRenderWindow.h > > You should note that there is only one render window, and one renderer. There > currently is no API for adding renderers, although this could be done by adding > a vtkRendererCollection member item to this class. If you are interested in > doing this you could create your own a modified vtkBorlandRenderWindow, or just > drop two vtkBorlandRenderWindow on your project's form ... > > Dean > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From jsundar at siue.edu Fri Aug 29 20:30:28 2003 From: jsundar at siue.edu (jsundar at siue.edu) Date: Fri, 29 Aug 2003 19:30:28 -0500 Subject: [vtkusers] unable to render vtk in java swing Message-ID: <1062203428.3f4ff02496489@webmail1.isg.siue.edu> Hi all, I have a problem in getting simpleVTK.java to run .I get the following error Does anyone know of a solution? Regards, Jayashree An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f8913a Function name=RtlLeaveCriticalSection Library=C:\WINNT\system32\ntdll.dll Current Java thread: at vtk.vtkPanel.UnLock(Native Method) at vtk.vtkPanel.Render(vtkPanel.java:138) at vtk.vtkPanel.paint(vtkPanel.java:151) at sun.awt.RepaintArea.paint(RepaintArea.java:293) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:191) at java.awt.Component.dispatchEventImpl(Component.java:2658) at java.awt.Component.dispatchEvent(Component.java:2492) at java.awt.EventQueue.dispatchEvent(EventQueue.java:334) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:93) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88) at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) Regards, Jayashree ------------------------------------------------- SIUE Web Mail From jsundar at siue.edu Fri Aug 29 20:37:37 2003 From: jsundar at siue.edu (jsundar at siue.edu) Date: Fri, 29 Aug 2003 19:37:37 -0500 Subject: [vtkusers] vtk with swing Message-ID: <1062203857.3f4ff1d1b11fb@webmail1.isg.siue.edu> Hi all, I tried executing simpleVTK.java and it keeps giving me the error that I pasted below.Can anyone help me in this regard. Regards, Jayashree An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f8913a Function name=RtlLeaveCriticalSection Library=C:\WINNT\system32\ntdll.dll Current Java thread: at vtk.vtkPanel.UnLock(Native Method) at vtk.vtkPanel.Render(vtkPanel.java:138) at vtk.vtkPanel.paint(vtkPanel.java:151) at sun.awt.RepaintArea.paint(RepaintArea.java:293) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:191) at java.awt.Component.dispatchEventImpl(Component.java:2658) at java.awt.Component.dispatchEvent(Component.java:2492) at java.awt.EventQueue.dispatchEvent(EventQueue.java:334) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:93) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88) at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) ------------------------------------------------- SIUE Web Mail From yxliu at fudan.edu.cn Sat Aug 30 06:31:38 2003 From: yxliu at fudan.edu.cn (yxliu) Date: Sat, 30 Aug 2003 18:31:38 +0800 Subject: [vtkusers] (no subject) Message-ID: <000801c36ee1$e59cc7a0$1f64a8c0@YXLIU> Hi Vtkusers: I use vtkdelaunay3D class to generate a tetrahedron mesh. Howerer I want know how to obtain the boundary cells which located on the surface in the mesh thanks in advance! yxliu. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prophecy at corpranet.net Sat Aug 30 12:26:31 2003 From: prophecy at corpranet.net (Justace Clutter) Date: 30 Aug 2003 11:26:31 -0500 Subject: [vtkusers] ASCII Data Conversion Message-ID: <1062260791.3274.4.camel@laptop> Hey all, I am very new to using VTK tools. I have a data set that I have generated from a ROOT file that is space delimited. x0 y0 z0 x1 y1 z1 I would like to view this dataset in 3D so that I can get a feel for its behavior. Is there a simple way to convert this dataset to a VTK dataset. I have done some looking online but have not found any single convenient way to do this. The dataset as it stands now is 22 megs in size, 1,406,976 points. Any help in this would be greatly appreciated. Justace Clutter From craig.scott at csiro.au Sun Aug 31 03:26:08 2003 From: craig.scott at csiro.au (Craig N. Scott) Date: 31 Aug 2003 17:26:08 +1000 Subject: [vtkusers] Issues with VTK 4.2 In-Reply-To: References: Message-ID: <1062314768.7114.1.camel@debido.vic.cmis.csiro.au> On Fri, 2003-08-29 at 01:18, Tom G. Smith (Smitty) wrote: > 3. It works, but I get these messages if I run vtk anywhere but > directly at the console. These messages have been around > since VTK 4.0. They did not appear prior to that version. > > bash-2.05b$ vtk /opt/vtk/Examples/Modelling/Tcl/faultLines.tcl > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified I get these messages when I don't have my DISPLAY variable set correctly after ssh'ing. YMMV. -- Dr Craig Scott, CSIRO (CMIS) Melbourne, Australia From haack at rz.rwth-aachen.de Sun Aug 31 07:43:22 2003 From: haack at rz.rwth-aachen.de (Matthias Haack) Date: Sun, 31 Aug 2003 13:43:22 +0200 Subject: [vtkusers] Breaking the pipeline In-Reply-To: <5CDA05569A72F14C8878FD96F2A7F4616FDCA9@waterfall.waterloo.cfx.co> References: <5CDA05569A72F14C8878FD96F2A7F4616FDCA9@waterfall.waterloo.cfx.co> Message-ID: <3F51DF5A.9030901@rz.rwth-aachen.de> Hi Kevin, Kevin Wright wrote: > If you're intent on using the deep copy instead of creating another pipeline, > then I think you only need one deep copy: > flip->SetInput(imData); > vtkImageData *temp = flip->GetOutput(); > flip->Update(); > imData->DeepCopy(temp); > flip->Delete(); yes well I must admit that I did not saw this as I wrote my last message. > Just a note that I think the main reason this is causing you so much > trouble is that it is not the way a pipeline setup is supposed to be used. > If you maintain a handle to the actors, then there are > much cleaner and more efficient ways that this could be accomplished. Yes, you're right this is not the supposed way to setup a pipeline but in my application data and filters are two separate objects (and the visualization is another one). But I do not want to have a reference to a vtkActor in my data objects because my data objects don't know anything about how they will be rendered. At the moment I'm using a vtkActor but this might change to other concepts because the display is done in 3D and the scenegraph I use has still problems with OpenGL nodes at the moment. Thanks a lot for your help with the pipeline, it even helped me to understand the pipeline a little better (and what's implicitely done while updating the pipeline). Matthias From haack at rz.rwth-aachen.de Sun Aug 31 07:58:17 2003 From: haack at rz.rwth-aachen.de (Matthias Haack) Date: Sun, 31 Aug 2003 13:58:17 +0200 Subject: [vtkusers] vtkImageMathematics Message-ID: <3F51E2D9.1000901@rz.rwth-aachen.de> Hi, I tried to use the class vtkImageMathematics to invert the image colors. At the moment I do not really understand what to do with the two inputs in this case because an invert operation only need one image (or: What does the vtkImageMathematics invert operation really do?) I fed an image to input number one, set the operation to invert and fetched the resulting image from vtkImageMathematics via GetOutput() but the image was only black and not inverted. I used vtkImageActor and a vtkRendererWindow to render it. Can anyone explain to me what I did wrong? I'm using vtk 4.0.2. Here's an example (the reader has definitely a valid image as filename, I also stripped includes and variable definitions): imData = pngReader->GetOutput(); imData->Update(); imData->Register(0); pngReader->SetOutput(0); pngReader->Delete(); imActor = vtkImageActor::New(); imActor->SetInput(imData); renderer= vtkRenderer::New(); renderer->AddProp(imActor); renWindow = vtkRenderWindow::New(); renWindow->AddRenderer(renderer); int i=1; while(i<10) { renWindow->Render(); sleep(1); vtkImageMathematics* math = vtkImageMathematics::New(); math->SetOperationToInvert(); vtkImageData* temp = vtkImageData::New(); math->SetInput1(imData); temp = math->GetOutput(); temp->Update(); imData->DeepCopy(temp); math->RemoveAllInputs(); temp->Register(0); temp->Delete(); math->Delete(); } As I wrote above, the resulting image is fully black. thanks in advance Matthias From hel_carvalho at hotmail.com Sun Aug 31 12:48:43 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Sun, 31 Aug 2003 17:48:43 +0100 Subject: [vtkusers] constructing surface with vtkPoints Message-ID: Hi users, Im trying to create a closed 3d surface with exactly the same number of points that i provide with a set vtkPoints I created. I've tried doing that with vtkSurfaceReconstructionFilter, but it construct a new polydata with a diferent number of points. So i would like to build some polys with the vtkpoints so i can build a polydata with the same points of the vtkPoints. Anyway i can do that?? thanks in advanced, Helder Carvalho _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From raman_nagarajan at vsnl.net Sun Aug 31 12:48:01 2003 From: raman_nagarajan at vsnl.net (R.Nagarajan) Date: Sun, 31 Aug 2003 22:18:01 +0530 Subject: [vtkusers] My first Query Message-ID: <001001c36fdf$a4ba9fb0$227041db@technica1abe4b> I am trying to develop a treatment planning software for radiotherapy. I already have a VC++ project to which I wish to interface VTK through DICOM file reading capability. Could some one help me with this interface (with some code example) I did buy the users guide and am not getting much out of it for this. Thank you R.Nagarajan raman_nagarajan at vsnl.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From kshivann at engineering.uiowa.edu Sun Aug 31 15:25:50 2003 From: kshivann at engineering.uiowa.edu (kshivann) Date: Sun, 31 Aug 2003 14:25:50 -0500 Subject: [vtkusers] vtktriangle->IntersectWithLIne Message-ID: <3F476DF0@webmail.engineering.uiowa.edu> hi all, i was trying to use IntersectWithLine function of vtkTriangle. can anyone give me the descriptions of the arguments that are being passed in. thanks kiran