From smnguyen at uci.edu Mon Jun 2 00:01:04 2003 From: smnguyen at uci.edu (smnguyen at uci.edu) Date: Sun, 1 Jun 2003 20:01:04 -0800 Subject: [vtkusers] vtkRenderWindow not responding Message-ID: <1054522864.smmsdV1.1.2@smtp.uci.edu> Hi everyone... I have a quick problem, that hopefully some generous person will respond to. I am running WinXP and have vtk 4.2. I wrote a class that is use to display a mud game that my friends and I implemented. Everything works in that sense, but every time I click on something that is outside the display window like the C++ console opened by VS, the vtkRenderWindow stop responding even though my mudd application is telling it to render(). Can someone tell me how to keep the vtkRenderWindow responding? Steven smnguyen at uci.edu From shahed at isb.paknet.com.pk Mon Jun 2 01:59:37 2003 From: shahed at isb.paknet.com.pk (shahid) Date: Mon, 2 Jun 2003 10:59:37 +0500 Subject: [vtkusers] bug in vtkInteractorStyleFlight ? In-Reply-To: Message-ID: try creating and attaching new interactor first and then deleting the old one. I am not sure but it may help. shahed -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Jean-Dominique Barnichon Sent: Saturday, May 31, 2003 2:53 AM To: vtkusers at public.kitware.com Subject: [vtkusers] bug in vtkInteractorStyleFlight ? Hi, I am developing a soft with VC++ 6.0 and vtk4.0, in which I want the user to be able to choose between several interaction modes (joystick, trackball, flight). Everything works fine in most cases, i.e. the user is able to change the interaction mode. However, from time to time, the program crashes on such a change without any explicit message. The "strange" thing is that when a crash occurs, it is always on the selection of the flight mode, never for the other modes. As the code responsible (see herebelow) of changing the interaction mode looks pretty much the same in the 3 cases, I am wondering if this could be a problem/bug in vtkInteractorStyleFlight. Does anybody has already experienced such a problem, or has any idea of where it could come from? Thanks, Jean-Do When the user changes the interaction mode, the current mode is deleted, a new one is created and assigned to the interactor. // Joystick interaction mode void CMyView::OnJoystick() { if (this->Interactor) { this->Interactor->GetInteractorStyle()->Delete(); } vtkInteractorStyleTrackball* JoystickStyle = vtkInteractorStyleTrackball::New(); JoystickStyle->SetTrackballModeToJoystick(); this->Interactor->SetInteractorStyle(JoystickStyle); } // Flight interaction mode void CMyView::OnPilot() { if (this->Interactor) { this->Interactor->GetInteractorStyle()->Delete(); } vtkInteractorStyleFlight* FlightStyle = vtkInteractorStyleFlight::New(); double data[3]={0,0,1}; FlightStyle->SetFixedUpVector(data); FlightStyle->FixUpVectorOn(); this->Interactor->SetInteractorStyle(FlightStyle); } // Trackball interaction mode void CMyView::OnTrackball() { if (this->Interactor) { this->Interactor->GetInteractorStyle()->Delete(); } vtkInteractorStyleTrackball* TrackballStyle = vtkInteractorStyleTrackball::New(); TrackballStyle->SetTrackballModeToTrackball(); this->Interactor->SetInteractorStyle(TrackballStyle); } _______________________________________________ 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 From s_amit4u at rediffmail.com Mon Jun 2 04:25:40 2003 From: s_amit4u at rediffmail.com (amit shrivastava) Date: 2 Jun 2003 08:25:40 -0000 Subject: [vtkusers] Please help! Texture mapping a cube. Message-ID: <20030602082540.10029.qmail@webmail30.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From joettaa at hotmail.com Mon Jun 2 08:06:17 2003 From: joettaa at hotmail.com (Joetta Anderson) Date: Mon, 02 Jun 2003 05:06:17 -0700 Subject: [vtkusers] Re build of RUN_TESTS for VTK-4.2.2 Message-ID: Hi, I am upgrading VTK from version 4.0 to 4.2.2. I am using Visual Studio 7 to build VTK and had a successful ALL_BUILD, however, upon trying to build the RUN_TESTS the build gets hung up on "Testing dicer-image" (see below). I am also using the VTKData-release-4-2. Testing Delaunay3D-image Passed Testing dicer-image ^CTerminate batch job (Y/N)? I did a search in my installed VTK by file and word and found no such reference to dicer-image. I also tried doing a search on the kitware search site but came up empty as well. Of note, I was able to do a build of RUN_TESTS on VTK-4.0 with VTK40_data without any hanging up and the majority of tests passing. Any suggestions? Thanks, J Anderson _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From billlist at nycap.rr.com Mon Jun 2 09:20:55 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 02 Jun 2003 09:20:55 -0400 Subject: [vtkusers] CMake error? In-Reply-To: <20030531022813.M9398@stmail.cgu.edu.tw> Message-ID: <5.2.0.9.0.20030602091937.04763a88@pop.nycap.rr.com> What OS/compiler are you trying to use? This error means that cmake could not find the compiler or a make program. Before running ccmake, set CC= c compiler CXX= cxx compiler And make sure gmake or make is in your path. -Bill At 10:33 PM 5/30/2003, b8903208 wrote: > > when i ccmake , it shows some error , but i don't know how to setting this > > CMake Error: EnableLanguage was unable to find a CMAKE_MAKE_PROGRAM > > CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage > > CMake Error: Error in cmake code at > /export/home1/homhom/VTK/VTK-4.2.2/Common/CMakeLists.txt:223: > Unknown CMake command "VTK_MAKE_INSTANTIATOR2". > > 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://public.kitware.com/mailman/listinfo/vtkusers From gli8 at ford.com Mon Jun 2 10:54:19 2003 From: gli8 at ford.com (Li, Guosong (G.)) Date: Mon, 2 Jun 2003 10:54:19 -0400 Subject: [vtkusers] How to create stand alone executable file Message-ID: <83E1CD0332D1D41180BD0002B3153E5D0AF9275A@na1ecm12.dearborn.ford.com> Thanks to Nigel Nunn, Garrett Cope, and Qing Hu for their kindly reply. I still have problem. When I start CMake, there are only four lines of Cache values: CMAKE_BACKWARDS_COMPATIBILITY EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH VTK_DIR Many cache values as show in the User's Guide such as BUILD_EXAMPLES BUILD_SHARED_LIBS BUILD_TESTING DART_ROOT VTK_DATA_ROOT ..... does not appear in the CMake interface window, so I cannot change "BUILD_SHARED_LIBS" value from "On" to "OFF". Even I check Show Advanced Values box, those cache items still does not appear. I installed CMake using a CD from VTK. The version is "CMake 1.6 - patch 5". Thanks you for your help! Guosong Li Thanks, Guosong Li From sxa at fluent.com Mon Jun 2 11:48:58 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Mon, 2 Jun 2003 11:48:58 -0400 Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! Message-ID: <001801c3291e$7b11d5f0$8ae4e9c0@sxapc> Greetings, As said last week, vtkFeatureEdges needs to be modified to eliminate the fact that it uses vtkMergePoints the "slow\memory costly" operation that isn't necessary. (Merging points !) I just need a bit of help for line 331 and the re-implementation of the function FeatureEdges::InsertUniquePoint(...) which is now localy implemented. I guess it just need to provide a point index ... but i am not sure how to do that efficiently. The vtk (.h, .cxx) files and classes were temporarly renamed to facilitate our compilation process... We would need this for today so if someone could help it would be "Really" great !! Thanks for any help ! (See attachments ) _____________________________________ Seb -------------- next part -------------- A non-text attachment was scrubbed... Name: iceFeatureEdges.h Type: application/octet-stream Size: 5453 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iceFeatureEdges.cxx Type: application/octet-stream Size: 12511 bytes Desc: not available URL: From turner at crd.ge.com Mon Jun 2 12:18:42 2003 From: turner at crd.ge.com (Turner, Wesley D (Research)) Date: Mon, 2 Jun 2003 12:18:42 -0400 Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! Message-ID: <89C29CB44339F649BC3277392DB522D50559E0E7@xmb01crdge.crd.ge.com> Sebastien, I don't know if this helps, but I had a similar problem with a VTK filter and solved it much easier by just defining a vtkNullLocator. The locator does nothing on an InsertUniquePoint, except to do an InsertNextPoint. I.e. no merging occurs because every point is assumed to be unique. Then given a vtkFeatureEdges instantiation, f, and a vtkNullLocator instantiation n, you would just do f->SetLocator(n). I have included the code below, if it looks to be of general interest, it can be checked into the repository. -----Original Message----- From: Sebastien Auclair [mailto:sxa at fluent.com] Sent: Monday, June 02, 2003 11:49 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! Greetings, As said last week, vtkFeatureEdges needs to be modified to eliminate the fact that it uses vtkMergePoints the "slow\memory costly" operation that isn't necessary. (Merging points !) I just need a bit of help for line 331 and the re-implementation of the function FeatureEdges::InsertUniquePoint(...) which is now localy implemented. I guess it just need to provide a point index ... but i am not sure how to do that efficiently. The vtk (.h, .cxx) files and classes were temporarly renamed to facilitate our compilation process... We would need this for today so if someone could help it would be "Really" great !! Thanks for any help ! (See attachments ) _____________________________________ Seb begin 600 vtkNullLocator.h M+RH]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]#0H-"B`@4')O9W)A;3H@ M("!6:7-U86QI>F%T:6]N(%1O;VQK:70-"B`@36]D=6QE.B`@("`D4D-39FEL M93H@=G1K3G5L;$QO8V%T;W(N:"QV("0-"B`@3&%N9W5A9V4Z("!#*RL-"B`@ M1&%T93H@("`@("`D1&%T93H@,C`P,B\P-B\Q."`Q-#HU.3HR,B`D#0H@(%9E M7)I M9VAT+G1X="!O2!O9B!-15)#2$%.5$%"24Q)5%D@ M;W(@1DE43D534R!&3U(@02!005)424-53$%2(`T*("`@("!055)03U-%+B`@ M4V5E('1H92!A8F]V92!C;W!Y2!C;VEN8VED M96YT('!O:6YT2!L;V-A M=&4@<&]I;G1S(&EN(#-$+ at T*+R\@5&AE('!R:6UA%LS72P@=G1K2614>7!E M("9P=$ED*3L-"B`@#0IPWT[#0H@('YV=&M.=6QL3&]C871OF%T:6]N(%1O;VQK:70-"B`@36]D=6QE.B`@("`D4D-39FEL M93H@=G1K3G5L;$QO8V%T;W(N8WAX+'8@)`T*("!,86YG=6%G93H@($,K*PT* M("!$871E.B`@("`@("1$871E.B`R,#`R+S`V+S$X(#$T.C4Y.C(W("0-"B`@ M5F5R7)I9VAT("AC M*2`Q.3DS+3(P,#(@2V5N($UA7)I9VAT M+FAT;2!F;W(@9&5T86EL2YH(@T*#0IV=&M#>'A2979I John, I am almost pleased of your answer, though it does not solve my problem. Just to know, have you any idea on the approximate date at which this bug could be fixed/how much work it would require? By the way, as suggested by Shaded, I try creating and attaching new interactor first and then deleting the old one afterwards (which sounds better I agree). Unfortunately, it does not change anything (not surprising after your answer). Jean-Do -----Message d'origine----- De : John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk] Envoy? : samedi 31 mai 2003 09:47 ? : Jean-Dominique Barnichon; vtkusers at public.kitware.com Objet : Re: [vtkusers] bug in vtkInteractorStyleFlight ? Flight mode isn't working right now. I need to find time to fix it, JB ----- Original Message ----- From: "Jean-Dominique Barnichon" To: Sent: Friday, May 30, 2003 10:52 PM Subject: [vtkusers] bug in vtkInteractorStyleFlight ? > Hi, > > I am developing a soft with VC++ 6.0 and vtk4.0, in which I want the user to > be able to choose between several interaction modes (joystick, trackball, > flight). > > Everything works fine in most cases, i.e. the user is able to change the > interaction mode. However, from time to time, the program crashes on such a > change without any explicit message. > The "strange" thing is that when a crash occurs, it is always on the > selection of the flight mode, never for the other modes. As the code > responsible (see herebelow) of changing the interaction mode looks pretty > much the same in the 3 cases, I am wondering if this could be a problem/bug > in vtkInteractorStyleFlight. > > Does anybody has already experienced such a problem, or has any idea of > where it could come from? > > Thanks, > Jean-Do > > When the user changes the interaction mode, the current mode is deleted, a > new one is created and assigned to the interactor. > > // Joystick interaction mode > void CMyView::OnJoystick() > { if (this->Interactor) { > this->Interactor->GetInteractorStyle()->Delete(); } > vtkInteractorStyleTrackball* JoystickStyle = > vtkInteractorStyleTrackball::New(); > JoystickStyle->SetTrackballModeToJoystick(); > this->Interactor->SetInteractorStyle(JoystickStyle); > } > > // Flight interaction mode > void CMyView::OnPilot() > { if (this->Interactor) { > this->Interactor->GetInteractorStyle()->Delete(); } > vtkInteractorStyleFlight* FlightStyle = vtkInteractorStyleFlight::New(); > double data[3]={0,0,1}; > FlightStyle->SetFixedUpVector(data); > FlightStyle->FixUpVectorOn(); > this->Interactor->SetInteractorStyle(FlightStyle); > } > > // Trackball interaction mode > void CMyView::OnTrackball() > { if (this->Interactor) { > this->Interactor->GetInteractorStyle()->Delete(); } > vtkInteractorStyleTrackball* TrackballStyle = > vtkInteractorStyleTrackball::New(); > TrackballStyle->SetTrackballModeToTrackball(); > this->Interactor->SetInteractorStyle(TrackballStyle); > } > > > > _______________________________________________ > 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 > From billlist at nycap.rr.com Mon Jun 2 15:20:34 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 02 Jun 2003 15:20:34 -0400 Subject: [vtkusers] How to create stand alone executable file Message-ID: <5.2.0.9.0.20030602151932.01f80cf0@pop.nycap.rr.com> The problem is in the way you built VTK, not in the way you built the executable. You need to re-run cmake on VTK and set the cache value BUILD_SHARED_LIBS to OFF, then rebuild VTK. Then re-link your executable. -Bill At 10:54 AM 6/2/2003, Li, Guosong (G.) wrote: >Thanks to Nigel Nunn, Garrett Cope, and Qing Hu for their kindly reply. > >I still have problem. > >When I start CMake, there are only four lines of Cache values: > >CMAKE_BACKWARDS_COMPATIBILITY >EXECUTABLE_OUTPUT_PATH >LIBRARY_OUTPUT_PATH >VTK_DIR > >Many cache values as show in the User's Guide such as > >BUILD_EXAMPLES >BUILD_SHARED_LIBS >BUILD_TESTING >DART_ROOT >VTK_DATA_ROOT >..... > >does not appear in the CMake interface window, so I >cannot change "BUILD_SHARED_LIBS" value from "On" to "OFF". > >Even I check Show Advanced Values box, those cache items still >does not appear. > >I installed CMake using a CD from VTK. The version is "CMake 1.6 - patch 5". > >Thanks you for your help! > >Guosong Li > > > >Thanks, > >Guosong Li > >_______________________________________________ >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 From sxa at fluent.com Mon Jun 2 15:46:07 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Mon, 2 Jun 2003 15:46:07 -0400 Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! References: <89C29CB44339F649BC3277392DB522D50559E0E7@xmb01crdge.crd.ge.com> Message-ID: <005401c3293f$9c451f40$8ae4e9c0@sxapc> Looks like it works just great ! Provided that a SetDivision (0,0,0) is also used to avoid having 500 K used for each vtkFeatureEdges instances. Thanks for your help Wesley ! __________________________________ Seb ----- Original Message ----- From: "Turner, Wesley D (Research)" To: "'Sebastien Auclair'" ; Sent: Monday, June 02, 2003 12:18 PM Subject: RE: [vtkusers] Need help for modification in vtkFeatureEdges ! > Sebastien, > > I don't know if this helps, but I had a similar problem with a VTK filter > and solved it much easier by just defining a vtkNullLocator. The locator > does nothing on an InsertUniquePoint, except to do an InsertNextPoint. I.e. > no merging occurs because every point is assumed to be unique. Then given a > vtkFeatureEdges instantiation, f, and a vtkNullLocator instantiation n, you > would just do f->SetLocator(n). I have included the code below, if it looks > to be of general interest, it can be checked into the repository. > > > > -----Original Message----- > From: Sebastien Auclair [mailto:sxa at fluent.com] > Sent: Monday, June 02, 2003 11:49 AM > To: vtkusers at public.kitware.com > Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! > > > Greetings, > > As said last week, vtkFeatureEdges needs to be modified to eliminate the > fact that it uses vtkMergePoints the "slow\memory costly" operation that > isn't necessary. (Merging points !) > > I just need a bit of help for line 331 and the re-implementation of the > function FeatureEdges::InsertUniquePoint(...) which is now localy > implemented. > I guess it just need to provide a point index ... but i am not sure how to > do that efficiently. > > The vtk (.h, .cxx) files and classes were temporarly renamed to facilitate > our compilation process... > > We would need this for today so if someone could help it would be "Really" > great !! > > Thanks for any help ! > > (See attachments ) > _____________________________________ > Seb > > > From sxa at fluent.com Mon Jun 2 16:26:36 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Mon, 2 Jun 2003 16:26:36 -0400 Subject: [vtkusers] Removing cells inside solids ! Message-ID: <007f01c32945$43c4d080$8ae4e9c0@sxapc> Sorry for this repost but we never had any answers and it is now becoming a critical issue for us. Is there a filter that would remove the facets inside a solid ? Let say i have a square formed with two triangles. (See attached image ) I extrude this square to get a cube. Because ALL edges are extruded to produce facets, the resulting cube will have an unacessary internal diagonal facet. Is there a vtkFilter that could remove those internal topologies ? Thanks ! _____________________________________ Seb -------------- next part -------------- A non-text attachment was scrubbed... Name: cube.jpg Type: image/jpeg Size: 31946 bytes Desc: not available URL: From straw_dog at hotmail.com Mon Jun 2 16:36:16 2003 From: straw_dog at hotmail.com (straw dog) Date: Mon, 02 Jun 2003 16:36:16 -0400 Subject: [vtkusers] Java / compilation of VTK4.2.2 Message-ID: Thanks very much, this works. Or, that is to say, it gets me to a new problem. Now Java segfaults. Has anyone seen this problem before? TIA rupert b. McGill Centre for Intelligent Machines rbrook at doggett{Java}java Cone An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4CDEE804 Function=_ZN12vtkHashTable12AddHashEntryEPvS0_+0x52 Library=/usr/data/rupe/VTK/vtk4.2/lib/vtk/libvtkCommonJava.so Current Java thread: at vtk.vtkPolyData.VTKCastInit(Native Method) at vtk.vtkPolyDataSource.GetOutput_2(Native Method) at vtk.vtkPolyDataSource.GetOutput(vtkPolyDataSource.java:20) at Cone.main(Cone.java:46) Dynamic libraries: 08048000-0804e000 r-xp 00000000 03:03 32655 /usr/local/j2sdk1.4.1/bin/java 0804e000-0804f000 rw-p 00005000 03:03 32655 /usr/local/j2sdk1.4.1/bin/java ......list goes on >From: Jarek Sacha >To: straw dog , vtkusers at public.kitware.com >Subject: Re: [vtkusers] Java / compilation of VTK4.2.2 >Date: Fri, 30 May 2003 14:16:10 -0700 (PDT) > >--- straw dog wrote: > > Hi, > > > > I'm a VTVTKewbie, just building VTVTKor the first time. a quick > > question: > > > > - i can't get the Java stuff working. The build seems okokbut when i > > try > > the Tutorial Step1 example i get this. I'm using JDJDK4.1 from > > BlBlackdown > > under RH8.0. > > > > rbrbrookodoggettava}jajavaone > > Exception in thread "main" jajavaalangnUnsatisfiedLinkErrorno > > vtvtkCommonJava > > in jajavaibrary.path > > at jajavaalanglClassLoaderoloadLibrarylClassLoaderajava403) > > at jajavaalanguntime.loloadLibraryRuntime.jajava88) > > at jajavaalangystem.loloadLibraryystem.jajava32) > > at Cone. >In this case, Java cannot find VTVTKhared (dynamic) libraries. Those are >actually not Java but C++ libraries. Look where you have >lilibvtkCommonJavao and sisimilaribraries. This could be 'bin' >subdirectory of you VTVTKuild directory. Add that directory to you >LDLDIBRARY_PATH variable. AlAlternativelyou can specify it as >'jajavaibrary.path' parameter when running JVJVM >jajavaDjDjavaibrary.path=some_didirectoryone >You can spspecifyore then one directory if you separate them by a colon >(same convention as used by LDLDIBRARY_PATH). > > > > > I'm not so good with Java. whats the jajavaibrary.path. CLCLASSPATH >This is a directory there Java looks for shared libraries (on PC those >will be DLDLLs > > > but > > this class - vtvtkCommonJavais not in any jar file i can find. >See above, this is just a core of a library name, in this case >lilibvtkCommonJavao. > > > > > The vtvtkuild is otherwise good. Python, TcTclnd C++ are happy. > > > > thanks > > Rupert Brooks > > McGill CeCentreor Intelligent Machines _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From David.Pont at ForestResearch.co.nz Mon Jun 2 18:08:28 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Tue, 3 Jun 2003 10:08:28 +1200 Subject: [vtkusers] Removing cells inside solids ! Message-ID: Hi Sebastien, what about using vtkFeatureEdges with BoundaryEdgesOn (and the others off) on the 'square', before extruding? regards Dave Pont |--------+---------------------------------> | | "Sebastien Auclair" | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 03/06/2003 08:26 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [vtkusers] Removing cells inside solids ! | >------------------------------------------------------------------------------------------------------------| Sorry for this repost but we never had any answers and it is now becoming a critical issue for us. Is there a filter that would remove the facets inside a solid ? Let say i have a square formed with two triangles. (See attached image ) I extrude this square to get a cube. Because ALL edges are extruded to produce facets, the resulting cube will have an unacessary internal diagonal facet. Is there a vtkFilter that could remove those internal topologies ? Thanks ! _____________________________________ Seb (See attached file: cube.jpg) -------------- next part -------------- A non-text attachment was scrubbed... Name: cube.jpg Type: image/jpeg Size: 31946 bytes Desc: not available URL: From bonner10 at llnl.gov Mon Jun 2 19:40:45 2003 From: bonner10 at llnl.gov (Michael Bonner) Date: Mon, 02 Jun 2003 16:40:45 -0700 Subject: [vtkusers] off screen rendering Message-ID: <5.0.0.25.2.20030602161651.0236fc30@poptop.llnl.gov> VTK users: Im trying to render & save a picture of a large scene (>10,000 actors) off screen. I am using the wintel pre-compilied vtk binaries, and I have done nothing other than call vtkRenderWindow::SetOffScreenRendering(int). Everything works fine (I can save tiff's and pnm's) when I have a small number of actors, but when I increase the number, a seg. fault or a paging fault is produced during the call to vtkRenderWindow::Render. It is using only about a quarter of my avail. memory. I have also ported my application to a intel linux cluster running redhat 7.3, these computers have 4 times the amount of ram as my local machine. That version will load the entire scene, but it will abort with a core dump or seg. fault while taking the picture. Both versions work fine with on screen rendering. Are there limitations within Mesa that limit the size of the scene, I have seen limits on the dimension in pixels, but nothing related to the amount of memory? If anyone has any idea what is going on I would greatly appreciate any help at all. Thanks a lot, Mike Bonner From ramakrishna.prakash at quest-global.com Tue Jun 3 00:02:24 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 3 Jun 2003 09:32:24 +0530 Subject: [vtkusers] Identifying cells on a plane Message-ID: <001901c32984$f1217730$de0ba8c0@qtwblr01.questglobal.com> Hi, I am trying to identify the cells lying on a plane. Say, I pick a cell by mouse click. Now is it possible to identify all the cells which are lying on that plane same as the picked cell? Can some body give me a solution. Thanks Shyam From chandran.ramu at quest-global.com Tue Jun 3 01:34:02 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Tue, 3 Jun 2003 11:04:02 +0530 Subject: [vtkusers] HardCopy of vtkCanvas Message-ID: <000c01c32991$be0ac740$a7f0d103@qi612> Hi vtkUsers, I have been using vtkCanvas.hardcopy() method/function to save the view in gif format. I noticed that the size of gif file is 1.2 mb approx . which should have been only 40k Can some one tell give me a solution to reduce the size ? and also i am not able to see the gif file if i open it in a windows explorer otherwise it works fine Thanks in advance Chandran Ramu From chandran.ramu at quest-global.com Tue Jun 3 02:11:24 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Tue, 3 Jun 2003 11:41:24 +0530 Subject: [vtkusers] Re : HardCopy Message-ID: <001201c32996$f6da22f0$a7f0d103@qi612> I meant to say I am not able to see the gif file in internet explorer and not windows explorer. sorry for the misspell . -Ramu -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Chandran Ramu Sent: Tuesday, June 03, 2003 11:04 AM To: vtkusers at public.kitware.com Subject: [vtkusers] HardCopy of vtkCanvas Hi vtkUsers, I have been using vtkCanvas.hardcopy() method/function to save the view in gif format. I noticed that the size of gif file is 1.2 mb approx . which should have been only 40k Can some one tell give me a solution to reduce the size ? and also i am not able to see the gif file if i open it in a windows explorer otherwise it works fine Thanks in advance Chandran Ramu From ramakrishna.prakash at quest-global.com Tue Jun 3 03:24:25 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 3 Jun 2003 12:54:25 +0530 Subject: FW: [vtkusers] Identifying cells on a plane Message-ID: <000301c329a1$29af1780$de0ba8c0@qtwblr01.questglobal.com> Hello, Further to my previous mail, I can get all the edges of the triangle cell by, //pick the cell int cellId = cellPicker.Pick(x,y,0,renderer); //get picked cell vtkTriangle pickedCell = myPolyData.GetCell(cellId); //get the edge cells vtkTriangle edge1 = pickedCell.GetEdge(0); vtkTriangle edge2 = pickedCell.GetEdge(1); vtkTriangle edge3 = pickedCell.GetEdge(2); Now I compare the normal of each edge cell with the normal of pickedCell. if they are within my fixed range, I consider the edge cell to lie in the same plane as pickedCell. I need to assign a different scalar value to all the cells which lie on the plane like below. //insert different scalar value vtkDataArray d = myPolyData.GetCellData().GetScalars(); d.InsertComponent(cellId,0,255); d.InsertComponent(cellId,0,0); d.InsertComponent(cellId,0,0); But the problem here is, I am not able to get the Cell ID of the edge cells(I am stuck here). Is there any workaround for this or any body knows a better algorithm for identifying all the cells which lie on a given plane. Thanks Shyam -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of R K Shyamprakash Sent: Tuesday, June 03, 2003 9:32 AM To: Vtkusers (E-mail) Subject: [vtkusers] Identifying cells on a plane Hi, I am trying to identify the cells lying on a plane. Say, I pick a cell by mouse click. Now is it possible to identify all the cells which are lying on that plane same as the picked cell? Can some body give me a solution. 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://public.kitware.com/mailman/listinfo/vtkusers From skg at fluent.co.in Tue Jun 3 04:03:50 2003 From: skg at fluent.co.in (Surya Kiran Gullapalli) Date: Tue, 03 Jun 2003 13:33:50 +0530 Subject: [vtkusers] python-vtk Message-ID: <3EDC5666.8070801@fluent.co.in> where can i find vtkpython module ? THanks in advance, Surya -- ------------------------------------------------------------------------ A good listener is usually thinking about something else. -- Kin Hubbard ------------------------------------------------------------------------ Surya Kiran Gullapalli, Ph. (OFF) (020) 6056381 x203 Engineer - Development, Ph. (RES) (020) 5382043 Fluent India Pvt. Ltd., Pune, India -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Tue Jun 3 04:44:09 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 3 Jun 2003 14:14:09 +0530 Subject: [vtkusers] python-vtk In-Reply-To: <3EDC5666.8070801@fluent.co.in> References: <3EDC5666.8070801@fluent.co.in> Message-ID: <16092.24537.238114.275980@monster.linux.in> >>>>> "SKG" == Surya Kiran Gullapalli writes: SKG> where can i find vtkpython module ? Which version of VTK? What OS? What platform? Did you read README.html? You might also want to read this: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq01.010.htp Hope this helps. cheers, prabhu From malcolm at geovision.co.za Tue Jun 3 04:50:40 2003 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Tue, 3 Jun 2003 10:50:40 +0200 Subject: [vtkusers] Removing cells inside solids ! References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> Message-ID: <000201c329ad$d13d4380$adf4fea9@bart> Hi Sebastien How about creating your own extrusion before tesselation. It would only involve the creation of quads (one per line segment) describing the 'wall' around your polygons. You could then cap the top and bottom with tesselated polygons HTH Malcolm ----- Original Message ----- From: "Sebastien Auclair" To: Sent: Monday, June 02, 2003 10:26 PM Subject: [vtkusers] Removing cells inside solids ! > Sorry for this repost but we never had any answers and it is now becoming a > critical issue for us. > > Is there a filter that would remove the facets inside a solid ? > > Let say i have a square formed with two triangles. (See attached image ) > I extrude this square to get a cube. > Because ALL edges are extruded to produce facets, the resulting cube will > have an unacessary internal diagonal facet. > > Is there a vtkFilter that could remove those internal topologies ? > > Thanks ! > _____________________________________ > Seb > > From sxa at fluent.com Tue Jun 3 08:09:53 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 08:09:53 -0400 Subject: [vtkusers] Removing cells inside solids ! References: Message-ID: <00e701c329c9$0b1cfbc0$8ae4e9c0@sxapc> I gave the square example because it is easy to explain. The real case involves polylines that needs to be tesselated in order to be extruded ! Thanks ! _____________________________ Seb ----- Original Message ----- From: To: "Sebastien Auclair" Cc: Sent: Monday, June 02, 2003 6:08 PM Subject: Re: [vtkusers] Removing cells inside solids ! > > Hi Sebastien, > what about using vtkFeatureEdges with BoundaryEdgesOn (and the others > off) on the 'square', before extruding? > regards > Dave Pont > > > |--------+---------------------------------> > | | "Sebastien Auclair" | > | | | > | | Sent by: | > | | vtkusers-admin at public.k| > | | itware.com | > | | | > | | | > | | 03/06/2003 08:26 | > | | | > |--------+---------------------------------> > >--------------------------------------------------------------------------- ---------------------------------| > | | > | To: | > | cc: | > | Subject: [vtkusers] Removing cells inside solids ! | > >--------------------------------------------------------------------------- ---------------------------------| > > > > > Sorry for this repost but we never had any answers and it is now becoming a > critical issue for us. > > Is there a filter that would remove the facets inside a solid ? > > Let say i have a square formed with two triangles. (See attached image ) > I extrude this square to get a cube. > Because ALL edges are extruded to produce facets, the resulting cube will > have an unacessary internal diagonal facet. > > Is there a vtkFilter that could remove those internal topologies ? > > Thanks ! > _____________________________________ > Seb > > (See attached file: cube.jpg) > > From sxa at fluent.com Tue Jun 3 08:12:25 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 08:12:25 -0400 Subject: [vtkusers] Removing cells inside solids ! References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> <000201c329ad$d13d4380$adf4fea9@bart> Message-ID: <00ed01c329c9$653cbaf0$8ae4e9c0@sxapc> I was thinking of doing something quite like this but didn't know how to make it hapen ! Can you give me more details on how to extrude by this technique ? Thanks ! ________________________________ Seb ----- Original Message ----- From: "Malcolm Drummond" To: "vtkusers" Sent: Tuesday, June 03, 2003 4:50 AM Subject: Re: [vtkusers] Removing cells inside solids ! > Hi Sebastien > > How about creating your own extrusion before tesselation. It would only > involve the creation of quads (one per line segment) describing the 'wall' > around your polygons. You could then cap the top and bottom with tesselated > polygons > > HTH > Malcolm > > ----- Original Message ----- > From: "Sebastien Auclair" > To: > Sent: Monday, June 02, 2003 10:26 PM > Subject: [vtkusers] Removing cells inside solids ! > > > > Sorry for this repost but we never had any answers and it is now becoming > a > > critical issue for us. > > > > Is there a filter that would remove the facets inside a solid ? > > > > Let say i have a square formed with two triangles. (See attached image ) > > I extrude this square to get a cube. > > Because ALL edges are extruded to produce facets, the resulting cube will > > have an unacessary internal diagonal facet. > > > > Is there a vtkFilter that could remove those internal topologies ? > > > > Thanks ! > > _____________________________________ > > Seb > > > > > > _______________________________________________ > 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 From stojek at part-gmbh.de Tue Jun 3 08:30:55 2003 From: stojek at part-gmbh.de (Marcus Stojek) Date: Tue, 3 Jun 2003 14:30:55 +0200 Subject: [vtkusers] Getting cell ids that build surface of an unstructured grid In-Reply-To: <16092.24537.238114.275980@monster.linux.in> Message-ID: Hi, I'm using vtk 4.0 with python. >From an unstructured grid I need the cell ids of the cells that build the surface of the grid. I have: self.grid = vtkUnstructuredGrid() blabla... self.gfilter=vtkGeometryFilter() self.gfilter.SetInput(self.grid) self.gfilter.Update() test=vtkFloatArray() self.gfilter.GetOutput().GetPolys().GetData().GetData(0,300,0,0,test) giving me a list of the surface triangles and quads using node ids. But I need the CELL ids. I have played with BuildLinks and vtkCellLinks but somehow I can't make it work. Any help? Thanks in advance, Marcus From sxa at fluent.com Tue Jun 3 09:22:54 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 09:22:54 -0400 Subject: [vtkusers] Removing cells inside solids ! References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> <000201c329ad$d13d4380$adf4fea9@bart> Message-ID: <010d01c329d3$3d952a50$8ae4e9c0@sxapc> I think i can pretty much handle the quad creation stuff and the capings generation... (Each through manual cell creation.) But how can i use the 2 generated caps and quad string to form a single dataset,... How to merge everything. Thanks ! ____________________________________ Seb ----- Original Message ----- From: "Malcolm Drummond" To: "vtkusers" Sent: Tuesday, June 03, 2003 4:50 AM Subject: Re: [vtkusers] Removing cells inside solids ! > Hi Sebastien > > How about creating your own extrusion before tesselation. It would only > involve the creation of quads (one per line segment) describing the 'wall' > around your polygons. You could then cap the top and bottom with tesselated > polygons > > HTH > Malcolm > > ----- Original Message ----- > From: "Sebastien Auclair" > To: > Sent: Monday, June 02, 2003 10:26 PM > Subject: [vtkusers] Removing cells inside solids ! > > > > Sorry for this repost but we never had any answers and it is now becoming > a > > critical issue for us. > > > > Is there a filter that would remove the facets inside a solid ? > > > > Let say i have a square formed with two triangles. (See attached image ) > > I extrude this square to get a cube. > > Because ALL edges are extruded to produce facets, the resulting cube will > > have an unacessary internal diagonal facet. > > > > Is there a vtkFilter that could remove those internal topologies ? > > > > Thanks ! > > _____________________________________ > > Seb > > > > > > _______________________________________________ > 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 From amy.henderson at kitware.com Tue Jun 3 09:40:27 2003 From: amy.henderson at kitware.com (Amy Henderson) Date: Tue, 03 Jun 2003 09:40:27 -0400 Subject: [vtkusers] Removing cells inside solids ! In-Reply-To: <010d01c329d3$3d952a50$8ae4e9c0@sxapc> References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> <000201c329ad$d13d4380$adf4fea9@bart> Message-ID: <5.1.0.14.0.20030603093713.028c9378@pop.biz.rr.com> You could try using vtkAppendFilter or vtkAppendPolyData depending on which type your data set is. (vtkAppendFilter works on any type of data set and produces a vtkUnstructuredGrid. vtkAppendPolyData works on vtkPolyData and produces vtkPolyData output.) - Amy At 09:22 AM 6/3/2003 -0400, Sebastien Auclair wrote: >I think i can pretty much handle the quad creation stuff and the capings >generation... (Each through manual cell creation.) >But how can i use the 2 generated caps and quad string to form a single >dataset,... How to merge everything. > >Thanks ! > >____________________________________ >Seb > >----- Original Message ----- >From: "Malcolm Drummond" >To: "vtkusers" >Sent: Tuesday, June 03, 2003 4:50 AM >Subject: Re: [vtkusers] Removing cells inside solids ! > > > > Hi Sebastien > > > > How about creating your own extrusion before tesselation. It would only > > involve the creation of quads (one per line segment) describing the 'wall' > > around your polygons. You could then cap the top and bottom with >tesselated > > polygons > > > > HTH > > Malcolm > > > > ----- Original Message ----- > > From: "Sebastien Auclair" > > To: > > Sent: Monday, June 02, 2003 10:26 PM > > Subject: [vtkusers] Removing cells inside solids ! > > > > > > > Sorry for this repost but we never had any answers and it is now >becoming > > a > > > critical issue for us. > > > > > > Is there a filter that would remove the facets inside a solid ? > > > > > > Let say i have a square formed with two triangles. (See attached image ) > > > I extrude this square to get a cube. > > > Because ALL edges are extruded to produce facets, the resulting cube >will > > > have an unacessary internal diagonal facet. > > > > > > Is there a vtkFilter that could remove those internal topologies ? > > > > > > Thanks ! > > > _____________________________________ > > > Seb > > > > > > > > > > _______________________________________________ > > 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 > >_______________________________________________ >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 From sxa at fluent.com Tue Jun 3 09:44:45 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 09:44:45 -0400 Subject: [vtkusers] Removing cells inside solids ! References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> <000201c329ad$d13d4380$adf4fea9@bart> <5.1.0.14.0.20030603093713.028c9378@pop.biz.rr.com> Message-ID: <011301c329d6$4b36ab40$8ae4e9c0@sxapc> Completly forgot about this one !!! (.. and my code uses it !) You're right ... thanks ! ----- Original Message ----- From: "Amy Henderson" To: "Sebastien Auclair" ; "vtkusers" Cc: "Malcolm Drummond" Sent: Tuesday, June 03, 2003 9:40 AM Subject: Re: [vtkusers] Removing cells inside solids ! > You could try using vtkAppendFilter or vtkAppendPolyData depending on which > type your data set is. (vtkAppendFilter works on any type of data set and > produces a vtkUnstructuredGrid. vtkAppendPolyData works on vtkPolyData and > produces vtkPolyData output.) > > - Amy > > At 09:22 AM 6/3/2003 -0400, Sebastien Auclair wrote: > >I think i can pretty much handle the quad creation stuff and the capings > >generation... (Each through manual cell creation.) > >But how can i use the 2 generated caps and quad string to form a single > >dataset,... How to merge everything. > > > >Thanks ! > > > >____________________________________ > >Seb > > > >----- Original Message ----- > >From: "Malcolm Drummond" > >To: "vtkusers" > >Sent: Tuesday, June 03, 2003 4:50 AM > >Subject: Re: [vtkusers] Removing cells inside solids ! > > > > > > > Hi Sebastien > > > > > > How about creating your own extrusion before tesselation. It would only > > > involve the creation of quads (one per line segment) describing the 'wall' > > > around your polygons. You could then cap the top and bottom with > >tesselated > > > polygons > > > > > > HTH > > > Malcolm > > > > > > ----- Original Message ----- > > > From: "Sebastien Auclair" > > > To: > > > Sent: Monday, June 02, 2003 10:26 PM > > > Subject: [vtkusers] Removing cells inside solids ! > > > > > > > > > > Sorry for this repost but we never had any answers and it is now > >becoming > > > a > > > > critical issue for us. > > > > > > > > Is there a filter that would remove the facets inside a solid ? > > > > > > > > Let say i have a square formed with two triangles. (See attached image ) > > > > I extrude this square to get a cube. > > > > Because ALL edges are extruded to produce facets, the resulting cube > >will > > > > have an unacessary internal diagonal facet. > > > > > > > > Is there a vtkFilter that could remove those internal topologies ? > > > > > > > > Thanks ! > > > > _____________________________________ > > > > Seb > > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > >_______________________________________________ > >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 > > > From oliveira at alumni.deec.uc.pt Tue Jun 3 09:53:47 2003 From: oliveira at alumni.deec.uc.pt (oliveira at alumni.deec.uc.pt) Date: Tue, 3 Jun 2003 14:53:47 +0100 (WEST) Subject: [vtkusers] Problem Image Reader/Viewer? Message-ID: <45114.212.55.146.122.1054648427.squirrel@alumni.deec.uc.pt> Hi, I have a file (binary) with a simple 7x7 matrix (integers 0-10), with no header. I want to display that data (as image), like we do in matlab. I use that code and only have a black image. How can I view that data? Are there any diferent classes to use in this case not vtkImageReader or Viewer? Thanks. vtkImageReader *imagedata = vtkImageReader::New(); imagedata->SetFileName(filename); imagedata->SetDataOrigin(0.0,0.0,0.0); imagedata->SetNumberOfScalarComponents(1); imagedata->SetDataScalarType(imagedata->GetDataScalarType ()); imagedata->SetDataExtent(0,7,0,7,0,0); imagedata->SetDataSpacing(1.0,1.0,1.0); vtkImageViewer *viewer=vtkImageViewer::New(); viewer->SetInput(imagedata->GetOutput() ); viewer->Render(); From glehmann at imaging.robarts.ca Tue Jun 3 10:17:16 2003 From: glehmann at imaging.robarts.ca (Glen Lehmann) Date: Tue, 03 Jun 2003 10:17:16 -0400 Subject: [vtkusers] Problem Image Reader/Viewer? In-Reply-To: <45114.212.55.146.122.1054648427.squirrel@alumni.deec.uc.pt> References: <45114.212.55.146.122.1054648427.squirrel@alumni.deec.uc.pt> Message-ID: <3EDCADEC.7000809@imaging.robarts.ca> Hi Oliver, Try inserting this: imageData->UpdateWholeExtent() before you call imageData->GetOutput(). Also, you'll probably want to change this line: imagedata->SetDataScalarType(imagedata->GetDataScalarType ()); to explicitly set your scalar type. i.e. imagedata->SetDataScalarTypeToUnsignedChar(); Good luck, Glen oliveira at alumni.deec.uc.pt wrote: >Hi, > >I have a file (binary) with a simple 7x7 matrix (integers 0-10), with no >header. >I want to display that data (as image), like we do in matlab. >I use that code and only have a black image. >How can I view that data? >Are there any diferent classes to use in this case not vtkImageReader or >Viewer? > >Thanks. > >vtkImageReader *imagedata = vtkImageReader::New(); > >imagedata->SetFileName(filename); >imagedata->SetDataOrigin(0.0,0.0,0.0); >imagedata->SetNumberOfScalarComponents(1); >imagedata->SetDataScalarType(imagedata->GetDataScalarType ()); >imagedata->SetDataExtent(0,7,0,7,0,0); >imagedata->SetDataSpacing(1.0,1.0,1.0); > >vtkImageViewer *viewer=vtkImageViewer::New(); >viewer->SetInput(imagedata->GetOutput() ); >viewer->Render(); > > > > >_______________________________________________ >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 > > > From malcolm at geovision.co.za Tue Jun 3 10:32:23 2003 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Tue, 3 Jun 2003 16:32:23 +0200 Subject: [vtkusers] Removing cells inside solids ! References: <007f01c32945$43c4d080$8ae4e9c0@sxapc> <000201c329ad$d13d4380$adf4fea9@bart> <010d01c329d3$3d952a50$8ae4e9c0@sxapc> Message-ID: <000901c329dd$07be2940$adf4fea9@bart> Hi Sebastien What I would do is make a copy of the pointset and then translate it (with transform filter) by your extrusion vector. Number of original points = n : Set total number of points for your output = 2n, copy the old points into the new output (0 ... n-1), then copy in the new translated points (n ... 2n-1). Now you can 'stitch' up the quads using your old polygon indexes and the n offset (so a segment [i, j] would become a quad [i, j, j+n ,i+n]) (also make sure you connect the last quad back onto the first). Now do the tesselation of the polygon, then access the tesselator outputs cell-array - use the indexes directly for the first cap, offset by n for the second cap. I think it will work. Malcolm ----- Original Message ----- From: "Sebastien Auclair" To: "Malcolm Drummond" ; "vtkusers" Sent: Tuesday, June 03, 2003 3:22 PM Subject: Re: [vtkusers] Removing cells inside solids ! > I think i can pretty much handle the quad creation stuff and the capings > generation... (Each through manual cell creation.) > But how can i use the 2 generated caps and quad string to form a single > dataset,... How to merge everything. > > Thanks ! > > ____________________________________ > Seb > > ----- Original Message ----- > From: "Malcolm Drummond" > To: "vtkusers" > Sent: Tuesday, June 03, 2003 4:50 AM > Subject: Re: [vtkusers] Removing cells inside solids ! > > > > Hi Sebastien > > > > How about creating your own extrusion before tesselation. It would only > > involve the creation of quads (one per line segment) describing the 'wall' > > around your polygons. You could then cap the top and bottom with > tesselated > > polygons > > > > HTH > > Malcolm > > > > ----- Original Message ----- > > From: "Sebastien Auclair" > > To: > > Sent: Monday, June 02, 2003 10:26 PM > > Subject: [vtkusers] Removing cells inside solids ! > > > > > > > Sorry for this repost but we never had any answers and it is now > becoming > > a > > > critical issue for us. > > > > > > Is there a filter that would remove the facets inside a solid ? > > > > > > Let say i have a square formed with two triangles. (See attached image ) > > > I extrude this square to get a cube. > > > Because ALL edges are extruded to produce facets, the resulting cube > will > > > have an unacessary internal diagonal facet. > > > > > > Is there a vtkFilter that could remove those internal topologies ? > > > > > > Thanks ! > > > _____________________________________ > > > Seb > > > > > > > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 From gtg066j at mail.gatech.edu Tue Jun 3 10:46:23 2003 From: gtg066j at mail.gatech.edu (Vidhya Narayanan) Date: Tue, 3 Jun 2003 10:46:23 -0400 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1860 - 2 msgs In-Reply-To: <20030602220901.7769.51217.Mailman@public.kitware.com> References: <20030602220901.7769.51217.Mailman@public.kitware.com> Message-ID: <1054651583.3edcb4bfaf1be@webmail.mail.gatech.edu> Hi , I have this very silly question. I have this model which I have to defrom to fit to another time frame. I have this second model that I generated from the second time frame. To fit the first to the second I need some kind of a criteria to be satsfied. Not sure what would be robust. Any suggestions? Alternately the first model can also be fit to the second time frame without considering the second frame model. But in this case I am not sure how to achieve this. Any ideas? Thanks!! Vidhya From hastings at bmi.osu.edu Tue Jun 3 11:04:31 2003 From: hastings at bmi.osu.edu (Shannon Hastings) Date: Tue, 3 Jun 2003 11:04:31 -0400 (EDT) Subject: [vtkusers] Reading 16 bit integer volume. In-Reply-To: <011301c329d6$4b36ab40$8ae4e9c0@sxapc> Message-ID: Is there a way to read in a single file which represents a 16bit integer volume. The vtkVolume16Reader seems to only take a stack of 16bit images and i can't seem to find another means with VTK. Is my only option to write this volume out to a series of images? Shannon -- ------------------------------------- Shannon Hastings Research Specialist Ohio State University Medical Center Department of Biomedical Informatics 1-740-292-0946 hastings at bmi.osu.edu From tschnei1 at nd.edu Tue Jun 3 11:37:40 2003 From: tschnei1 at nd.edu (Todd Schneider) Date: Tue, 3 Jun 2003 10:37:40 -0500 Subject: [vtkusers] Implementing Delaunay3D Message-ID: <000201c329e6$112d1550$6a304a81@DOORS> I am very new to VTK, and need to visualize my unstructured points using a grid- I am trying to use vtkDelaunay3D with the code implemented below- it compiles fine, but when I execute the program, I get an unhandled exception when I get to this line of code shell->InsertPoint(my_grid, startPoints, jj, current_point, unused); when looking at the data attributes of unused its "Ids" value is "error: expression cannot be evaluated"- I assume I am trying to access memory somewhere that has not been initialized.but I really don't have much of an idea what to do to fix it. Any thoughts what on what I am doing wrong? Thanks in advance, Todd Schneider vtkUnstructuredGrid *my_grid = vtkUnstructuredGrid::New(); vtkDelaunay3D *shell = vtkDelaunay3D::New(); my_grid = shell->InitPointInsertion(center, box_length, points->GetNumberOfPoints(), points); //new idlist needed to store unused hole tetras vtkIdList *unused = vtkIdList::New(); float current_point[3]; for(int jj = 0; jj < points->GetNumberOfPoints(); ++jj) { points->GetPoint(jj, current_point); shell->InsertPoint(my_grid, points, jj, current_point, unused); } shell->EndPointInsertion(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhiron at lsuhsc.edu Tue Jun 3 11:50:35 2003 From: bhiron at lsuhsc.edu (Budd Hirons) Date: Tue, 03 Jun 2003 10:50:35 -0500 Subject: [vtkusers] Reading 16 bit integer volume. In-Reply-To: References: <011301c329d6$4b36ab40$8ae4e9c0@sxapc> Message-ID: <5.1.1.6.0.20030603104040.026a78a8@lsumc-med-exch2.med.lsuhsc.edu> If you use vtkImageReader2 instead of the vtkVolumeReader, you can read in a single volume file and still get vtkImageData as the output. here is an example from a win32 vc++ implementation: this->vr = vtkImageReader2::New(); this->vr->SetDataByteOrderToLittleEndian(); this->vr->SetDataScalarTypeToInt(); this->vr->SetFileDimensionality(3); this->vr->SetFileName( _volFile ); this->vr->SetDataExtent( 0, m_width - 1, 0, m_height - 1, 0, m_depth - 1); this->vr->SetDataSpacing( m_widthVoxel, m_heightVoxel, m_depthVoxel ); this->vr->SetFileLowerLeft( 1 ); this->vr->Update(); At 11:04 AM 6/3/2003 -0400, you wrote: >Is there a way to read in a single file which represents a 16bit integer >volume. The vtkVolume16Reader seems to only take a stack of 16bit images >and i can't seem to find another means with VTK. Is my only option to >write this volume out to a series of images? > >Shannon > >-- >------------------------------------- >Shannon Hastings > >Research Specialist >Ohio State University Medical Center >Department of Biomedical Informatics >1-740-292-0946 >hastings at bmi.osu.edu > >_______________________________________________ >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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxa at fluent.com Tue Jun 3 12:06:34 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 12:06:34 -0400 Subject: [vtkusers] Very important discovery\mistake ! Message-ID: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> Calling "Delete" on a vtkObject doesn't delete it. This is something that i forgot to watch ! (i.e. Reference counting ) We use a set of filters to generate a polydata that we want to keep. But we no longer need the filters so we were deleting them. We've just realized that these filters were never deleted ! and there are thousands of them... What would be the right approach to deal deleting reference counted instances ... Assuming that we are doing something like this : ########################################### SomeClass::CreateHexPolyData () { vtkFloatArray *xCoords = vtkFloatArray::New(); vtkFloatArray *yCoords = vtkFloatArray::New(); vtkFloatArray *zCoords = vtkFloatArray::New(); xCoords->InsertNextValue(0); xCoords->InsertNextValue(m_length); yCoords->InsertNextValue(0); yCoords->InsertNextValue(m_height); zCoords->InsertNextValue(0); zCoords->InsertNextValue(m_width); vtkRectilinearGrid * rgrid = vtkRectilinearGrid::New(); rgrid->SetDimensions(2,2,2); rgrid->SetXCoordinates(xCoords); rgrid->SetYCoordinates(yCoords); rgrid->SetZCoordinates(zCoords); vtkGeometryFilter* geom = vtkGeometryFilter::New(); geom->SetInput(rgrid); geom->SetExtent(0,1, 0,1, 0,1); geom->Update(); vtkTransform* translate = vtkTransform::New(); translate->PostMultiply(); translate->Translate(minX, minY, minZ); translate->Update(); vtkTransformPolyDataFilter* trans = vtkTransformPolyDataFilter::New(); trans->SetTransform(translate); trans->SetInput(geom->GetOutput()); trans->Update(); m_polydata = vtkPolyData::New(); m_polydata->DeepCopy(trans->GetOutput()); m_polydata->Update(); m_normal = vtkPolyDataNormals::New(); m_normal->SetInput(m_polydata); m_normal->Update(); geom->Delete(); rgrid->Delete(); xCoords->Delete(); yCoords->Delete(); zCoords->Delete(); translate->Delete(); trans->Delete(); } ########################################## m_polydata and m_normal are the values we want to keep but we must get rid of the filters and everything else ! Again, what would the correct approach be to make sure none of those filters remains. Thanks for any help ! ________________________________________________ Seb From c.p.botha at its.tudelft.nl Tue Jun 3 12:13:29 2003 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: 03 Jun 2003 18:13:29 +0200 Subject: [vtkusers] Very important discovery\mistake ! In-Reply-To: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> Message-ID: <1054656809.11985.1.camel@dutidad> On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote: > m_polydata and m_normal are the values we want to keep but we must get rid > of the filters and everything else ! > Again, what would the correct approach be to make sure none of those filters > remains. DeepCopy m_polydata and m_normal out to newly allocated objects, then Delete() the old ones. This will allow the whole pipeline to self-destruct. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From sxa at fluent.com Tue Jun 3 13:11:58 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 13:11:58 -0400 Subject: [vtkusers] Very important discovery\mistake ! References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> Message-ID: <015001c329f3$3da9dd40$8ae4e9c0@sxapc> Am i not already doing that ? ----- Original Message ----- From: "Charl P. Botha" To: Sent: Tuesday, June 03, 2003 12:13 PM Subject: Re: [vtkusers] Very important discovery\mistake ! > On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote: > > m_polydata and m_normal are the values we want to keep but we must get rid > > of the filters and everything else ! > > Again, what would the correct approach be to make sure none of those filters > > remains. > > DeepCopy m_polydata and m_normal out to newly allocated objects, then > Delete() the old ones. This will allow the whole pipeline to > self-destruct. > > -- > charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ > _______________________________________________ > 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 From sxa at fluent.com Tue Jun 3 13:22:34 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 13:22:34 -0400 Subject: [vtkusers] Very important discovery\mistake ! References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> Message-ID: <015c01c329f4$b8e12df0$8ae4e9c0@sxapc> I tried SetReferenceCount(1) on all vtkInstances before calling "Delete" on each of them. It makes the application crash ! ----- Original Message ----- From: "Charl P. Botha" To: Sent: Tuesday, June 03, 2003 12:13 PM Subject: Re: [vtkusers] Very important discovery\mistake ! > On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote: > > m_polydata and m_normal are the values we want to keep but we must get rid > > of the filters and everything else ! > > Again, what would the correct approach be to make sure none of those filters > > remains. > > DeepCopy m_polydata and m_normal out to newly allocated objects, then > Delete() the old ones. This will allow the whole pipeline to > self-destruct. > > -- > charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ > _______________________________________________ > 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 From sebastien at barre.nom.fr Tue Jun 3 13:25:31 2003 From: sebastien at barre.nom.fr (Sebastien BARRE) Date: Tue, 03 Jun 2003 13:25:31 -0400 Subject: [vtkusers] Very important discovery\mistake ! In-Reply-To: <015c01c329f4$b8e12df0$8ae4e9c0@sxapc> References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> Message-ID: <5.2.1.1.0.20030603132455.02294bf8@pop.biz.rr.com> At 6/3/2003 01:22 PM, Sebastien Auclair wrote: >I tried SetReferenceCount(1) on all vtkInstances before calling "Delete" on >each of them. >It makes the application crash ! Yes, you have to call ->PleaseSetMeFreeeeeee() on each object before doing that. From sxa at fluent.com Tue Jun 3 13:34:57 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 13:34:57 -0400 Subject: [vtkusers] Very important discovery\mistake ! References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> <5.2.1.1.0.20030603132455.02294bf8@pop.biz.rr.com> Message-ID: <017b01c329f6$74f3e360$8ae4e9c0@sxapc> What ? ----- Original Message ----- From: "Sebastien BARRE" To: "Sebastien Auclair" Cc: "Charl P. Botha" ; Sent: Tuesday, June 03, 2003 1:25 PM Subject: Re: [vtkusers] Very important discovery\mistake ! > At 6/3/2003 01:22 PM, Sebastien Auclair wrote: > >I tried SetReferenceCount(1) on all vtkInstances before calling "Delete" on > >each of them. > >It makes the application crash ! > > Yes, you have to call ->PleaseSetMeFreeeeeee() on each object before doing > that. From jreigle at concentric.net Tue Jun 3 13:53:39 2003 From: jreigle at concentric.net (Jim Reigle) Date: Tue, 03 Jun 2003 13:53:39 -0400 Subject: [vtkusers] Rotate image data 180 degrees Message-ID: <3EDCE0A2.D6B6369E@concentric.net> Hello. I am using vtkImageData and vtkImageViewer to visualize image data. The images need to be rotated 180 degrees and I cannot find a way to do it. Any help would be appreciated. Thank you. Jim Reigle From jlpina at ivo.cps.unizar.es Tue Jun 3 13:47:40 2003 From: jlpina at ivo.cps.unizar.es (Jose Luis Pina) Date: Tue, 03 Jun 2003 19:47:40 +0200 Subject: [vtkusers] labels in vtkCubeAxesActor2D Message-ID: <5.2.0.9.0.20030603194014.00b0d290@ivo.cps.unizar.es> Hello: I have a vtkCubeAxesActor2D around a structured grid of points 0,1,2,3...... (9x9x9) I want to see the labels multiplied by 5, I explain. The vtkCubeAxesActor2D write the labels 0,1,2,3..... at the 3 axis, but really the distance between two points is 5mts and I'd like to see the labels 0,5,10,15.....in mts, not in points units. How can I do? Thanks in advance. CPS.Universidad de Zaragoza. (Spain) Jose Luis Pina Martinez jlpina at ivo.cps.unizar.es From sxa at fluent.com Tue Jun 3 13:57:20 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 13:57:20 -0400 Subject: [vtkusers] Very important disc.. (Solution) References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> <5.2.1.1.0.20030603132455.02294bf8@pop.biz.rr.com> <017b01c329f6$74f3e360$8ae4e9c0@sxapc> Message-ID: <019901c329f9$9412ee50$8ae4e9c0@sxapc> Just for the record ! Looks like the order to which "Delete"s are made has some importance ! No need to play with "SetReferenceCount()" and stuff. Just deleting in the reverse order the instances were used (created) should destroy all of them. Thanks ! __________________________________ Seb ----- Original Message ----- From: "Sebastien Auclair" To: "Sebastien BARRE" Cc: "Charl P. Botha" ; Sent: Tuesday, June 03, 2003 1:34 PM Subject: Re: [vtkusers] Very important discovery\mistake ! > What ? > > ----- Original Message ----- > From: "Sebastien BARRE" > To: "Sebastien Auclair" > Cc: "Charl P. Botha" ; > > Sent: Tuesday, June 03, 2003 1:25 PM > Subject: Re: [vtkusers] Very important discovery\mistake ! > > > > At 6/3/2003 01:22 PM, Sebastien Auclair wrote: > > >I tried SetReferenceCount(1) on all vtkInstances before calling "Delete" > on > > >each of them. > > >It makes the application crash ! > > > > Yes, you have to call ->PleaseSetMeFreeeeeee() on each object before doing > > that. > > _______________________________________________ > 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 From bryan.cole at teraview.co.uk Tue Jun 3 14:14:43 2003 From: bryan.cole at teraview.co.uk (bryan cole) Date: 03 Jun 2003 19:14:43 +0100 Subject: [vtkusers] Very important discovery\mistake ! In-Reply-To: <015001c329f3$3da9dd40$8ae4e9c0@sxapc> References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> <015001c329f3$3da9dd40$8ae4e9c0@sxapc> Message-ID: <1054664082.7140.44.camel@bryan.teraviewhq.local> In the past, I've forced sections of pipeline to delete by individually setting the inputs and output of *each* filter to NULL (i.e. disconnecting them all), and removing and other python references to them (no necessary for C++ presumably). As far as I know, a filter is only deleted if it has no connections to any other filters/objects. I'm not sure if VTK is smart enough to detect "isolated" sections of pipline for deletion. Bryan On Tue, 2003-06-03 at 18:11, Sebastien Auclair wrote: > Am i not already doing that ? > > ----- Original Message ----- > From: "Charl P. Botha" > To: > Sent: Tuesday, June 03, 2003 12:13 PM > Subject: Re: [vtkusers] Very important discovery\mistake ! > > > > On Tue, 2003-06-03 at 18:06, Sebastien Auclair wrote: > > > m_polydata and m_normal are the values we want to keep but we must get > rid > > > of the filters and everything else ! > > > Again, what would the correct approach be to make sure none of those > filters > > > remains. > > > > DeepCopy m_polydata and m_normal out to newly allocated objects, then > > Delete() the old ones. This will allow the whole pipeline to > > self-destruct. > > > > -- > > charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ > > _______________________________________________ > > 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 > > _______________________________________________ > 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 -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382 From berk.geveci at kitware.com Tue Jun 3 14:39:10 2003 From: berk.geveci at kitware.com (Berk Geveci) Date: 03 Jun 2003 14:39:10 -0400 Subject: [vtkusers] Very important discovery\mistake ! In-Reply-To: <1054664082.7140.44.camel@bryan.teraviewhq.local> References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc> <1054656809.11985.1.camel@dutidad> <015001c329f3$3da9dd40$8ae4e9c0@sxapc> <1054664082.7140.44.camel@bryan.teraviewhq.local> Message-ID: <1054665553.8478.105.camel@caemlyn.kitwarein.com> Just for the record: > Just for the record ! > > Looks like the order to which "Delete"s are made has some importance ! > No need to play with "SetReferenceCount()" and stuff. > Just deleting in the reverse order the instances were used (created) > should destroy all of them. This is very wrong. The order in which the objects are deleted is not relevant at all. The only possible leak in the example you sent are due to the instance variables m_polydata and m_normal. Calling SomeClass::CreateHexPolyData () more than once would cause leaks because you are not deleting these objects before assigning new values to them. Otherwise, there is no leak. Please read the relevant sections in the VTK documentation carefully before making assumptions about how things work. > In the past, I've forced sections of pipeline to delete by individually > setting the inputs and output of *each* filter to NULL (i.e. > disconnecting them all), and removing and other python references to > them (no necessary for C++ presumably). This is not the case in C++. There might be some issues due to Python's garbage collection I am not aware of but you should not need to do this in Python either. > > As far as I know, a filter is only deleted if it has no connections to > any other filters/objects. I'm not sure if VTK is smart enough to detect > "isolated" sections of pipline for deletion. This is not correct either. As long as the references to all objects held by the application are released AND there are no circular references introduced by the application, there should be no leaks. -Berk From sxa at fluent.com Tue Jun 3 15:00:24 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 3 Jun 2003 15:00:24 -0400 Subject: [vtkusers] Very important discovery\mistake ! References: <013d01c329ea$1ae13a00$8ae4e9c0@sxapc><1054656809.11985.1.camel@dutidad> <015001c329f3$3da9dd40$8ae4e9c0@sxapc> <1054664082.7140.44.camel@bryan.teraviewhq.local> <1054665553.8478.105.camel@caemlyn.kitwarein.com> Message-ID: <01b701c32a02$63d6f980$8ae4e9c0@sxapc> Well sorry but i put blocking break points in the destructor of at least 2 filters and they were never deleted ! I changed the order and then they were destroyed. I just reported what i saw ! And yes our class need to retain the m_polydata and m_normal... That isn't a leak ! Thanks ! ________________________________ Seb ----- Original Message ----- From: "Berk Geveci" To: "VTK users list" Sent: Tuesday, June 03, 2003 2:39 PM Subject: Re: [vtkusers] Very important discovery\mistake ! > Just for the record: > > > Just for the record ! > > > > Looks like the order to which "Delete"s are made has some importance ! > > No need to play with "SetReferenceCount()" and stuff. > > Just deleting in the reverse order the instances were used (created) > > should destroy all of them. > > This is very wrong. The order in which the objects are deleted is > not relevant at all. The only possible leak in the example you sent > are due to the instance variables m_polydata and m_normal. Calling > SomeClass::CreateHexPolyData () more than once would cause leaks > because you are not deleting these objects before assigning new values > to them. Otherwise, there is no leak. Please read the relevant > sections in the VTK documentation carefully before making assumptions > about how things work. > > > In the past, I've forced sections of pipeline to delete by individually > > setting the inputs and output of *each* filter to NULL (i.e. > > disconnecting them all), and removing and other python references to > > them (no necessary for C++ presumably). > > This is not the case in C++. There might be some issues due to Python's > garbage collection I am not aware of but you should not need to do > this in Python either. > > > > > As far as I know, a filter is only deleted if it has no connections to > > any other filters/objects. I'm not sure if VTK is smart enough to detect > > "isolated" sections of pipline for deletion. > > This is not correct either. As long as the references to all objects > held by the application are released AND there are no circular > references introduced by the application, there should be no leaks. > > -Berk > > > > > _______________________________________________ > 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 From gtg066j at mail.gatech.edu Tue Jun 3 17:26:58 2003 From: gtg066j at mail.gatech.edu (Vidhya Narayanan) Date: Tue, 3 Jun 2003 17:26:58 -0400 Subject: [vtkusers] Display of a single 3D point In-Reply-To: <20030603173402.1961.20283.Mailman@public.kitware.com> References: <20030603173402.1961.20283.Mailman@public.kitware.com> Message-ID: <1054675618.3edd12a257a42@webmail.mail.gatech.edu> Hi, Can anyone tell me as to how to display a single 3D point?Thanks in advance. Vidhya From ramakrishna.prakash at quest-global.com Tue Jun 3 23:52:11 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 4 Jun 2003 09:22:11 +0530 Subject: [vtkusers] Display of a single 3D point In-Reply-To: <1054675618.3edd12a257a42@webmail.mail.gatech.edu> Message-ID: <000001c32a4c$adf324e0$de0ba8c0@qtwblr01.questglobal.com> try the following code vtkPointSource point = vtkPointSource::New(); point.SetRadius(..); vtkPolyDataMapper mapper = ... .... vtkActor actor = ..... actor->SetMapper(mapper) ...... regards Shyam -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Vidhya Narayanan Sent: Wednesday, June 04, 2003 2:57 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Display of a single 3D point Hi, Can anyone tell me as to how to display a single 3D point?Thanks in advance. Vidhya _______________________________________________ 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 From chandran.ramu at quest-global.com Wed Jun 4 02:31:00 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Wed, 4 Jun 2003 12:01:00 +0530 Subject: [vtkusers] vtkUGFacetReader Error Message-ID: <002401c32a62$de3babc0$a7f0d103@qi612> HI All, I have a problem while using vtkUGFacetReader in my code which is as follows vtkUGFacetReader reader=new vtkUGFacetReader(); reader.SetFileName(filePath); reader.MergingOff(); vtkPolyData polyData=reader.GetOutput(); vtkActor actor=new vtkActor(); vtkPolyDataMapper mapper= new vtkPolyDataMapper(); mapper.SetInput(polyData); actor.SetMapper(mapper); renWin.GetRenderer().AddActor(actor); renWin.Render(); The Error is vtkugFacetReader (0x0ACF1010):File Ended Prematurely my facet file was created with ug18.5 and i am using java ... Request help in this regard,thanks in advance Chandran Ramu From krishna at lucidindia.net Wed Jun 4 03:26:44 2003 From: krishna at lucidindia.net (KK) Date: Wed, 4 Jun 2003 12:56:44 +0530 Subject: [vtkusers] Zooming and unzooming Message-ID: <002c01c32a6a$a667db30$0d01a8c0@c6004> Hi vtkUsers is there any way to zoom or unzoom the selected portion of the Image displayed using vtk?(Not the entire image). Thanks in advance Krishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramakrishna.prakash at quest-global.com Wed Jun 4 05:34:30 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 4 Jun 2003 15:04:30 +0530 Subject: [vtkusers] vtkFeatureEdges Message-ID: <001901c32a7c$802b0480$de0ba8c0@qtwblr01.questglobal.com> Hi, I have a cylinder object with two open ends. I want to get the points lying on the edges of this cylinder(open ends). I use vtkFeatureEdges with BoundaryEdgesOn() to get the edges where I get two edges. Now i want to consider two edges as separate datasets and get the points on each dataset. I tried using vtkPolyDataConnectivityFilter on the extracted edges, but it fails. Is there any other way of doing this? Thanks Shyam From sxa at fluent.com Wed Jun 4 09:51:02 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Wed, 4 Jun 2003 09:51:02 -0400 Subject: [vtkusers] Making tubes that looks good ! Message-ID: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> Greetings ! This is another problem we had to post a few weeks ago and which stood un-answered ... alto it is suppose to be quite simple ! Making a tube out of a polyline ! vtkTubeFilter makes the diameter of the tube irregular and we can't use it. One of the solution could have been to use filters to add points to the polyline before sending it to the vtkTubeFilter. But the 2 filters that could do this aren't really documented and they seem to be a bit complex to use. (I forgot their names ) If someone could send an example it would be great ! Thanks ! ________________________________ Seb From bant at grad.icmc.usp.br Wed Jun 4 10:04:20 2003 From: bant at grad.icmc.usp.br (=?ISO-8859-1?Q?Bruno_Traven=E7olo?=) Date: Wed, 04 Jun 2003 11:04:20 -0300 Subject: [vtkusers] Making tubes that looks good ! In-Reply-To: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> References: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> Message-ID: <3EDDFC64.5040304@grad.icmc.usp.br> Hello, >Making a tube out of a polyline ! > >vtkTubeFilter makes the diameter of the tube irregular and we can't use it. > Turn on/off the variation of tube radius with scalar value. The tube diameter may be irregular because it is variating proportional with the scalar value ou vector. Try to use: SetVaryRadiusToVaryRadiusOff(); vtkTubeFilter *tf = vtkTubeFilter::New(); tf->SetVaryRadiusToVaryRadiusOff(); tf->SetInput(polyline); tf->SetRadius(0.5); tf->SetNumberOfSides(5); bye!! Bruno. From sxa at fluent.com Wed Jun 4 10:15:32 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Wed, 4 Jun 2003 10:15:32 -0400 Subject: [vtkusers] Making tubes that looks good ! References: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> <3EDDFC64.5040304@grad.icmc.usp.br> Message-ID: <020901c32aa3$c29227a0$8ae4e9c0@sxapc> No it varies because of the corners. If the tube is set for 3 facets, it kinds of extrude a triangle oriented on the point's normal. If you try it with a initial polyline made of only 2 segments with a 90 degree corner, you'll see that the radius gets smaller near the corner because the triangle turns,... re-orient itself at each points. This is why adding points might do the trick ! Thanks _________________________ Seb ----- Original Message ----- From: "Bruno Traven?olo" To: "Sebastien Auclair" Cc: Sent: Wednesday, June 04, 2003 10:04 AM Subject: Re: [vtkusers] Making tubes that looks good ! > Hello, > > >Making a tube out of a polyline ! > > > >vtkTubeFilter makes the diameter of the tube irregular and we can't use it. > > > > > Turn on/off the variation of tube radius with scalar value. > > The tube diameter may be irregular because it is variating proportional > with the scalar value ou vector. Try to use: SetVaryRadiusToVaryRadiusOff(); > > vtkTubeFilter *tf = vtkTubeFilter::New(); > tf->SetVaryRadiusToVaryRadiusOff(); > tf->SetInput(polyline); > tf->SetRadius(0.5); > tf->SetNumberOfSides(5); > > bye!! > > Bruno. > > _______________________________________________ > 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 From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Jun 4 10:14:31 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 04 Jun 2003 16:14:31 +0200 Subject: [vtkusers] Making tubes that looks good ! In-Reply-To: <020901c32aa3$c29227a0$8ae4e9c0@sxapc> References: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> <3EDDFC64.5040304@grad.icmc.usp.br> <020901c32aa3$c29227a0$8ae4e9c0@sxapc> Message-ID: <3EDDFEC7.1010306@creatis.insa-lyon.fr> I am not sure I understand your problem with 2 segements but did you read: [ The number of tube sides must be greater than 3. If you wish to use fewer sides (i.e., a ribbon), use vtkRibbonFilter.] HTH mathieu Sebastien Auclair wrote: > No it varies because of the corners. > If the tube is set for 3 facets, it kinds of extrude a triangle oriented on > the point's normal. > If you try it with a initial polyline made of only 2 segments with a 90 > degree corner, you'll see that the radius gets smaller near the corner > because the triangle turns,... re-orient itself at each points. > This is why adding points might do the trick ! > > Thanks > _________________________ > Seb > > ----- Original Message ----- > From: "Bruno Traven?olo" > To: "Sebastien Auclair" > Cc: > Sent: Wednesday, June 04, 2003 10:04 AM > Subject: Re: [vtkusers] Making tubes that looks good ! > > > >>Hello, >> >> >>>Making a tube out of a polyline ! >>> >>>vtkTubeFilter makes the diameter of the tube irregular and we can't use > > it. > >> >>Turn on/off the variation of tube radius with scalar value. >> >> The tube diameter may be irregular because it is variating proportional >>with the scalar value ou vector. Try to use: > > SetVaryRadiusToVaryRadiusOff(); > >> vtkTubeFilter *tf = vtkTubeFilter::New(); >> tf->SetVaryRadiusToVaryRadiusOff(); >> tf->SetInput(polyline); >> tf->SetRadius(0.5); >> tf->SetNumberOfSides(5); >> >>bye!! >> >>Bruno. >> >>_______________________________________________ >>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 > > > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From zhou at isg.cs.uni-magdeburg.de Wed Jun 4 10:20:18 2003 From: zhou at isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Wed, 4 Jun 2003 16:20:18 +0200 Subject: [vtkusers] OpenGL question Message-ID: <3EDE1C40.93.18CC399@localhost> Hi, all, I want to know whether it is possible in OpenGL to disable rendering when reading and writing something in the framebuffer? I want to write and read(!) something in the framebuffer but meanwhile the framebuffer shouldn't be drawn. There are two functions related to this: glDrawBuffer - specifies a buffer to render to glReadBuffer - specifies the buffer where pixels are read from But I couldn't find the function for disabling rendering the framebuffer to the monitor! Or isn't it possible to disable it and the current read buffer is displayed? Best regards, Jianlong From ofedrigo at iastate.edu Wed Jun 4 10:56:08 2003 From: ofedrigo at iastate.edu (olivier Fedrigo) Date: Wed, 04 Jun 2003 09:56:08 -0500 Subject: [vtkusers] OSX Message-ID: <5.2.0.9.2.20030604095515.00a8fa70@ofedrigo.mail.iastate.edu> Hi Everyone, does anybody have suggestion to install VTK on OSx and working with Carbon? I tried to compile with CMake etc... it does not work! :( or is there a pre-compiled version available somewhere ? it will be so helpfull!!!!!! Thanks, Olivier F?drigo 240 Science II Department of Zoology and Genetics Iowa State University Ames, IA 50011 Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 http://www.mbb.iastate.edu/~gnaylor/Olivier.html From billlist at nycap.rr.com Wed Jun 4 11:09:14 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 04 Jun 2003 11:09:14 -0400 Subject: [vtkusers] OSX In-Reply-To: <5.2.0.9.2.20030604095515.00a8fa70@ofedrigo.mail.iastate.ed u> Message-ID: <5.2.0.9.0.20030604110833.04881790@pop.nycap.rr.com> There are no pre-compiled versions, however, if you posted the errors you had, perhaps someone could help you get it working. -Bill At 10:56 AM 6/4/2003, olivier Fedrigo wrote: >Hi Everyone, > >does anybody have suggestion to install VTK on OSx and working with Carbon? I tried to compile with CMake etc... it does not work! :( > >or is there a pre-compiled version available somewhere ? it will be so helpfull!!!!!! > >Thanks, > >Olivier F?drigo >240 Science II >Department of Zoology and Genetics >Iowa State University >Ames, IA 50011 >Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 >http://www.mbb.iastate.edu/~gnaylor/Olivier.html > >_______________________________________________ >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 From tobias.straub at lmu.de Wed Jun 4 11:16:45 2003 From: tobias.straub at lmu.de (Tobias) Date: Wed, 4 Jun 2003 17:16:45 +0200 Subject: [vtkusers] OSX In-Reply-To: <5.2.0.9.2.20030604095515.00a8fa70@ofedrigo.mail.iastate.edu> Message-ID: <8E22F9B2-969F-11D7-90FD-0003935A86C6@lmu.de> Could you specify your system (OS version), vtk-version, cmake-version? can you post the compiler output? i have installed VTK (cvs checkout) on OSX 10.2.6 using cmake 1.6.7 using carbon, shared libs, tcl (TCLTKAqua 8.4.3) and python (2.2.3 frameworrk) wrapping. works fine. so in general there is no problem. in general i would go for self-compile. Tobias Am Mittwoch, 04.06.03 um 16:56 Uhr schrieb olivier Fedrigo: > Hi Everyone, > > does anybody have suggestion to install VTK on OSx and working with > Carbon? I tried to compile with CMake etc... it does not work! :( > > or is there a pre-compiled version available somewhere ? it will be > so helpfull!!!!!! > > Thanks, > > Olivier F?drigo > 240 Science II > Department of Zoology and Genetics > Iowa State University > Ames, IA 50011 > Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) > 294-8457 > http://www.mbb.iastate.edu/~gnaylor/Olivier.html > > _______________________________________________ > 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 > From glehmann at imaging.robarts.ca Wed Jun 4 11:16:29 2003 From: glehmann at imaging.robarts.ca (Glen Lehmann) Date: Wed, 04 Jun 2003 11:16:29 -0400 Subject: [vtkusers] OSX In-Reply-To: <5.2.0.9.2.20030604095515.00a8fa70@ofedrigo.mail.iastate.edu> References: <5.2.0.9.2.20030604095515.00a8fa70@ofedrigo.mail.iastate.edu> Message-ID: <3EDE0D4D.4010208@imaging.robarts.ca> Hi Oliver, There is an old 3.2 binary here: http://www.atamai.com/atamai_VTKonOSX.html Check back in the next couple of days and I'll get the 4.2.2 binary on there. Glen olivier Fedrigo wrote: > Hi Everyone, > > does anybody have suggestion to install VTK on OSx and working with > Carbon? I tried to compile with CMake etc... it does not work! :( > > or is there a pre-compiled version available somewhere ? it will be > so helpfull!!!!!! > > Thanks, > > Olivier F?drigo > 240 Science II > Department of Zoology and Genetics > Iowa State University > Ames, IA 50011 > Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 > http://www.mbb.iastate.edu/~gnaylor/Olivier.html > > _______________________________________________ > 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 > From sxa at fluent.com Wed Jun 4 11:47:28 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Wed, 4 Jun 2003 11:47:28 -0400 Subject: [vtkusers] Making tubes that looks good ! References: <01ff01c32aa0$55e60de0$8ae4e9c0@sxapc> <3EDDFC64.5040304@grad.icmc.usp.br> <020901c32aa3$c29227a0$8ae4e9c0@sxapc> Message-ID: <023901c32ab0$99ea84c0$8ae4e9c0@sxapc> I used 3 just as an example... In fact, i'm using 5 as sides count. See attached image... (The red sphere is not to be considered as part of the problem. ) Thanks ! _______________________ Seb ----- Original Message ----- From: "Sebastien Auclair" To: "Bruno Traven?olo" Cc: Sent: Wednesday, June 04, 2003 10:15 AM Subject: Re: [vtkusers] Making tubes that looks good ! > No it varies because of the corners. > If the tube is set for 3 facets, it kinds of extrude a triangle oriented on > the point's normal. > If you try it with a initial polyline made of only 2 segments with a 90 > degree corner, you'll see that the radius gets smaller near the corner > because the triangle turns,... re-orient itself at each points. > This is why adding points might do the trick ! > > Thanks > _________________________ > Seb > > ----- Original Message ----- > From: "Bruno Traven?olo" > To: "Sebastien Auclair" > Cc: > Sent: Wednesday, June 04, 2003 10:04 AM > Subject: Re: [vtkusers] Making tubes that looks good ! > > > > Hello, > > > > >Making a tube out of a polyline ! > > > > > >vtkTubeFilter makes the diameter of the tube irregular and we can't use > it. > > > > > > > > > Turn on/off the variation of tube radius with scalar value. > > > > The tube diameter may be irregular because it is variating proportional > > with the scalar value ou vector. Try to use: > SetVaryRadiusToVaryRadiusOff(); > > > > vtkTubeFilter *tf = vtkTubeFilter::New(); > > tf->SetVaryRadiusToVaryRadiusOff(); > > tf->SetInput(polyline); > > tf->SetRadius(0.5); > > tf->SetNumberOfSides(5); > > > > bye!! > > > > Bruno. > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: tube.jpg Type: image/jpeg Size: 35745 bytes Desc: not available URL: From gakabani at nc.rr.com Wed Jun 4 11:52:44 2003 From: gakabani at nc.rr.com (gamal akabani hneide) Date: Wed, 04 Jun 2003 11:52:44 -0400 Subject: [vtkusers] OSX In-Reply-To: <8E22F9B2-969F-11D7-90FD-0003935A86C6@lmu.de> Message-ID: Hi, all I have compiled VTK for the mac OS X using cocoa, carbon and hybrid (X11). However, careful attention must be given to what kind of wrappers (TCLTK and Python) you are using. In my experience, when compiling for Cocoa or Carbon I use frameworks for TCL and Python. I generated the framework for python2.2.2 myself as the one that comes in the mac is incomplete. I remove the python version that comes with the mac as it confuses cmake. For Cocoa I am still having some small problems with tcl and python. Carbon works fine. When compiling for Hybrid X11 do not use frameworks at all. Use the tcltk and python libraries and corresponding include files from the FINK library. Make sure that in the generated CMakeCache.txt there are no mixtures of directives of one package with the other as it will not work properly or not work at all. Also, for openGL use the -lGL and -lGLU libraries rather frameworks. Check that all your dylib are the ones associated with a given package before compiling. Then go for it and wait (i.e. go for lunch). Good luck. Gamal Akabani, Ph.D. Duke University Medical Center Department of Radiology Division of Nuclear Medicine From gli8 at ford.com Wed Jun 4 11:50:59 2003 From: gli8 at ford.com (Li, Guosong (G.)) Date: Wed, 4 Jun 2003 11:50:59 -0400 Subject: [vtkusers] How to handle node ID and element ID in visualizing FEA model? Message-ID: <83E1CD0332D1D41180BD0002B3153E5D0AF9275E@na1ecm12.dearborn.ford.com> I am trying to visualize FEA model using VTK. In the example Cube.cxx, the points are defined with vtkPoints and cells are defined with vtkCellArray. Then, both of them are used to create cube (vtkPolyData). In this example, point coordinates are stored sequentially with ID from 0 to 8. The connectivity of each cell is defined by those IDs (from 0 to 8). But in real application, such as FEA model, each node has a unique ID and not continuously fron 0 to N. How to store those node coordinates while keep node ID information? How to store conectivity information (specific nodel IDs) for each cell? Thanks for your help. Guosong Li From jlpina at ivo.cps.unizar.es Wed Jun 4 12:07:54 2003 From: jlpina at ivo.cps.unizar.es (Jose Luis Pina) Date: Wed, 04 Jun 2003 18:07:54 +0200 Subject: [vtkusers] Re:Rotate image data 180 degrees Message-ID: <5.2.0.9.0.20030604175751.00b0a160@ivo.cps.unizar.es> Hello Jim: Try with vtkTransform, something like this: .............................. vtkTransform aLabelTransform aLabelTransform RotateX $degreex aLabelTransform RotateY $degreey aLabelTransform RotateZ $degreez vtkTransformPolyDataFilter labelTransform labelTransform SetTransform aLabelTransform labelTransform SetInput [yourfile GetOutput] vtkPolyDataMapper labelMapper labelMapper SetInput [labelTransform GetOutput] .............................. I hope this helps. CPS.Universidad de Zaragoza. (Spain) Jose Luis Pina Martinez jlpina at ivo.cps.unizar.es From praveenb at mrcoffee.engr.sgi.com Wed Jun 4 13:08:04 2003 From: praveenb at mrcoffee.engr.sgi.com (Praveen Bhaniramka) Date: Wed, 4 Jun 2003 10:08:04 -0700 Subject: [vtkusers] OpenGL question In-Reply-To: <3EDE1C40.93.18CC399@localhost> References: <3EDE1C40.93.18CC399@localhost> Message-ID: Hi Jianlong, Depending on the OpenGL hardware that you are running on, you should be able to use pbuffers for what you are trying to do. See - http://www.mesa3d.org/brianp/sig97/offscrn.htm You can also find other useful links by searching for "OpenGL pbuffers" on google. Assuming that you are using double buffering, which is most likely the case, the rendered data will be displayed only when glXSwapBuffers is called by the application. So alternatively, you can store the current contents of the frame buffer, do your writes and reads and then restore the contents of the frame buffer with the stored image. Depending on what you are trying to do, this approach might also work. hth, Praveen On Wed, 4 Jun 2003, Jianlong Zhou wrote: > Hi, all, > > I want to know whether it is possible in OpenGL to disable rendering when reading and > writing something in the framebuffer? > I want to write and read(!) something in the framebuffer but meanwhile the > framebuffer shouldn't be drawn. > > There are two functions related to this: > glDrawBuffer - specifies a buffer to render to > glReadBuffer - specifies the buffer where pixels are read from > > But I couldn't find the function for disabling rendering the framebuffer to the > monitor! Or isn't it possible to disable it and the current read buffer is > displayed? > > Best regards, > > Jianlong > > > _______________________________________________ > 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 > -- ----------------------------------------------------------------- Praveen Bhaniramka Member of Technical Staff (MTS) praveenb at sgi.com Advanced Graphics Division (650)933-1785 Silicon Graphics, Inc. ----------------------------------------------------------------- From hel_carvalho at hotmail.com Wed Jun 4 14:17:28 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Wed, 04 Jun 2003 19:17:28 +0100 Subject: [vtkusers] 3D points marking the boundaries of the nonblack regions Message-ID: Hi, I have 6 vtk binary images, which were imported from ITK, that are slices of a 3D volume. I want to generate 3D points marking the boundaries of the nonblack regions in each of the images. Any ideia on how to do that would be appreciated. Regards, Helder Carvalho _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From gtg066j at mail.gatech.edu Wed Jun 4 14:28:39 2003 From: gtg066j at mail.gatech.edu (Vidhya Narayanan) Date: Wed, 4 Jun 2003 14:28:39 -0400 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1865 - 10 msgs In-Reply-To: <20030604154601.28369.36836.Mailman@public.kitware.com> References: <20030604154601.28369.36836.Mailman@public.kitware.com> Message-ID: <1054751319.3ede3a57a6010@webmail.mail.gatech.edu> How to get the components of a normal to a point(nx,ny,nz)? thanks Vidhya From tschnei1 at nd.edu Wed Jun 4 15:43:39 2003 From: tschnei1 at nd.edu (Todd Schneider) Date: Wed, 4 Jun 2003 14:43:39 -0500 Subject: [vtkusers] vtkVRMLExporter point problem Message-ID: <000001c32ad1$988b3fe0$6a304a81@DOORS> I am trying to export a VRML file created from a scene using an unstructured grid created by vtkDelaunay3D- the problem is it only seems to output the points- not the triangles. I searched the archives, and this question has been asked before, but has never really been answered. I think if I could convert the unstructured grid to another type- like a structured grid, it would work- is this even possible? Any ideas on how to make the VRML file more than just points? Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From asavm7 at uaa.alaska.edu Wed Jun 4 17:06:13 2003 From: asavm7 at uaa.alaska.edu (Anastasia Mironova) Date: Wed, 04 Jun 2003 14:06:13 -0700 Subject: [vtkusers] (no subject) Message-ID: <72f9971b0e.71b0e72f99@sentinel.uaa.alaska.edu> Hello, I am designing an application using VTK and I would like to find out what is the range of acceptable values for the "SpecularPower" parameter of an actor. Thanks so much, anastasia From ofedrigo at iastate.edu Wed Jun 4 18:05:40 2003 From: ofedrigo at iastate.edu (olivier Fedrigo) Date: Wed, 04 Jun 2003 17:05:40 -0500 Subject: [vtkusers] VTK on OSX Message-ID: <5.2.0.9.2.20030604165601.00a9ccf0@ofedrigo.mail.iastate.edu> Thanks for your emails guys. I finally succeeded to compile VTK 4.2.3 with Cmake 1.6.7-darwin however how do you install VTK in a carbon project? I may sound dumb but I am just starting using OSX, carbon (except for few basic applications) and VTK I added as frameworks: libvtkCommon.a libvtkfiltering.a libvtkGraphics.a libvtkimaging.a libvtkrendering.a and OpenGl.framework. Also, I added in Sources all the VTK headers. To test it, in Main.c I added: #include and #include "vtkRenderer.h" I obtained several build errors concerning 'iostream' 'strstream'...etc... not found. (they are called by vtklOStream.h) Do I have to get these files and add them in my libraries list or did I miss something in installing and compiling VTK? Thanks a lot, Olivier >Hi Everyone, > >does anybody have suggestion to install VTK on OSx and working with >Carbon? I tried to compile with CMake etc... it does not work! :( > >or is there a pre-compiled version available somewhere ? it will be so >helpfull!!!!!! > >Thanks, Olivier F?drigo 240 Science II Department of Zoology and Genetics Iowa State University Ames, IA 50011 Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 http://www.mbb.iastate.edu/~gnaylor/Olivier.html From scharver at evl.uic.edu Wed Jun 4 19:02:15 2003 From: scharver at evl.uic.edu (Chris Scharver) Date: Wed, 4 Jun 2003 18:02:15 -0500 Subject: [vtkusers] VTK on OSX In-Reply-To: <5.2.0.9.2.20030604165601.00a9ccf0@ofedrigo.mail.iastate.edu> References: <5.2.0.9.2.20030604165601.00a9ccf0@ofedrigo.mail.iastate.edu> Message-ID: At 5:05 PM -0500 06/04/2003, olivier Fedrigo wrote: >To test it, in Main.c I added: #include and #include "vtkRenderer.h" >I obtained several build errors concerning 'iostream' 'strstream'...etc... not found. (they are called by vtklOStream.h) >Do I have to get these files and add them in my libraries list or did I miss something in installing and compiling VTK? It sounds like you're trying to build using ProjectBuilder. The default template creates some files along with a simple main.c source file. Note that VTK is written in C++, so you'll need to make sure that you're compiling in C++ mode. The easiest way to do this is to rename main.c to main.cxx (or even better, create a different file with a more appropriate name for your application and use that instead of main.c), then the compiler will automatically switch modes and link against the correct libraries. Hope this helps, Chris -- Chris Scharver Electronic Visualization Laboratory The University of Illinois at Chicago Ph: 312-996-3002 FAX: 312-413-7585 From chandran.ramu at quest-global.com Thu Jun 5 01:34:19 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Thu, 5 Jun 2003 11:04:19 +0530 Subject: [vtkusers] wrl file loading Message-ID: <000401c32b24$1d2c5ed0$a7f0d103@qi612> Hi All, I am generating VRML file using UG and i am loading the same using vtk. I am able to see the object but there are few portions(ver small)which is not rendered i.e it appears as an hollow in the model. I dont feel there is any problem in code ..as i loaded an example from vtk "bot2.wrl" which is loaded perfectly. My assumption is that there might some steps which should be followed while saving the file from UniGraphics. Can anyone please help in this regard. I am also attaching the vrml file so that it might help you in tracing the bug Thanks in advance -Chandran Ramu From chandran.ramu at quest-global.com Thu Jun 5 01:37:46 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Thu, 5 Jun 2003 11:07:46 +0530 Subject: [vtkusers] FW: vtkUGFacetReader Error Message-ID: <000501c32b24$988c3b90$a7f0d103@qi612> Hi All , Sorry for re posting the query, I would feel great if i could get a solution -----Original Message----- From: Chandran Ramu [mailto:chandran.ramu at quest-global.com] Sent: Wednesday, June 04, 2003 12:01 PM To: 'vtkusers at public.kitware.com' Subject: vtkUGFacetReader Error HI All, I have a problem while using vtkUGFacetReader in my code which is as follows vtkUGFacetReader reader=new vtkUGFacetReader(); reader.SetFileName(filePath); reader.MergingOff(); vtkPolyData polyData=reader.GetOutput(); vtkActor actor=new vtkActor(); vtkPolyDataMapper mapper= new vtkPolyDataMapper(); mapper.SetInput(polyData); actor.SetMapper(mapper); renWin.GetRenderer().AddActor(actor); renWin.Render(); The Error is vtkugFacetReader (0x0ACF1010):File Ended Prematurely my facet file was created with ug18.5 and i am using java ... I have loaded "bolt.fac" and it works fine... Request help in this regard,thanks in advance Chandran Ramu From cormack at chem.vu.nl Thu Jun 5 08:35:13 2003 From: cormack at chem.vu.nl (Drew McCormack) Date: Thu, 5 Jun 2003 14:35:13 +0200 Subject: [vtkusers] VTK on OSX In-Reply-To: <5.2.0.9.2.20030604165601.00a9ccf0@ofedrigo.mail.iastate.edu> Message-ID: <2773A016-9752-11D7-AE85-003065BD3BD8@chem.vu.nl> Don't want to keep beating my own drum, but the sort of issues you are being confronted with, involving Project Builder for example, may be answered in my MacDevCenter article on VTK with Cocoa. Yes, it is Cocoa, not Carbon, but the PB stuff is the same: http://www.macdevcenter.com/pub/a/mac/2003/02/11/dev_osx.html Drew McCormack On Thursday, June 5, 2003, at 12:05 am, olivier Fedrigo wrote: > Thanks for your emails guys. > I finally succeeded to compile VTK 4.2.3 with Cmake 1.6.7-darwin > > however how do you install VTK in a carbon project? I may sound dumb > but I am just starting using OSX, carbon (except for few basic > applications) and VTK > > I added as frameworks: > libvtkCommon.a > libvtkfiltering.a > libvtkGraphics.a > libvtkimaging.a > libvtkrendering.a > and OpenGl.framework. > Also, I added in Sources all the VTK headers. > > To test it, in Main.c I added: #include and #include > "vtkRenderer.h" > I obtained several build errors concerning 'iostream' > 'strstream'...etc... not found. (they are called by vtklOStream.h) > Do I have to get these files and add them in my libraries list or did > I miss something in installing and compiling VTK? > > Thanks a lot, > > Olivier > > >> Hi Everyone, >> >> does anybody have suggestion to install VTK on OSx and working with >> Carbon? I tried to compile with CMake etc... it does not work! :( >> >> or is there a pre-compiled version available somewhere ? it will be >> so helpfull!!!!!! >> >> Thanks, > > > Olivier F?drigo > 240 Science II > Department of Zoology and Genetics > Iowa State University > Ames, IA 50011 > Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) > 294-8457 > http://www.mbb.iastate.edu/~gnaylor/Olivier.html > > _______________________________________________ > 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 > ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack at chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From chandran.ramu at quest-global.com Thu Jun 5 09:06:32 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Thu, 5 Jun 2003 18:36:32 +0530 Subject: [vtkusers] Clipping -surfaces changes to smooth edges Message-ID: <000f01c32b63$4a0a1fc0$a7f0d103@qi612> HI All, I Load a VRML Model using vtkVRMLImporter and do various operations. One of the operation we do is to cut the model into two and display one portion on vtkCanvas The problem what i am facing is ..when i cut the model the surface of the model turns smooth from sharp edges. I could not analyze what might be the reason. Can anyone help me in retaining the original shape( i Mean sharp egdes or as it is)even after the cut operation. This is how i code for cut ...... vtkPlane plane =new vtk.vtkPlane(); plane.SetOrigin(0, 0, 0); plane.SetNormal(0, 1, 0); vtkClipPolyData clipper =new vtk.vtkClipPolyData(); vtkAppendPolyData appendData = new vtkAppendPolyData(); vtkActorCollection collection=renWin.GetRenderer().GetActors(); int count =collection.GetNumberOfItems(); collection.InitTraversal(); for(int i=0;i< count ;i++){ vtkActor actor=collection.GetNextActor(); vtkPolyData data=(vtkPolyData)actor.GetMapper().GetInputAsDataSet(); appendData.AddInput(data); } clipper.SetInput(appendData.GetOutput()); clipper.SetClipFunction(plane); clipper.GenerateClipScalarsOn(); clipper.GenerateClippedOutputOn(); vtkActor actor=new vtkActor(); vtkPolyDataMapper clipMapper = new vtk.vtkPolyDataMapper(); clipMapper.SetInput(clipper.GetOutput()); clipMapper.ScalarVisibilityOff(); vtkActor clipActor = new vtk.vtkActor(); clipActor.SetMapper(clipMapper); renWin.GetRenderer().RemoveAllProps(); renWin.GetRenderer().AddActor(clipActor); renWin.GetRenderer().ResetCameraClippingRange(); renWin.Render(); if anyone any other solution please help Thanks in Advance Chandran Ramu From dellinge at mnhn.fr Thu Jun 5 11:33:17 2003 From: dellinge at mnhn.fr (Marc Dellinger) Date: Thu, 5 Jun 2003 17:33:17 +0200 Subject: [vtkusers] OSX In-Reply-To: <3EDE0D4D.4010208@imaging.robarts.ca> Message-ID: <0745C976-976B-11D7-8B25-0003930E18B6@mnhn.fr> Le mercredi, 4 juin 2003, ? 17:16 Europe/Paris, Glen Lehmann a ?crit : > Hi Oliver, > > There is an old 3.2 binary here: > > http://www.atamai.com/atamai_VTKonOSX.html > > Check back in the next couple of days and I'll get the 4.2.2 binary on > there. > Good idea! If you include Wrapping with TclTk, Python and/or Java, can you also mention what versions you used and how you get/make them? I finally get vtk+Mayavi working on XDarwin by building my personnal python & tcltk, using Adrian's Tkinter files (because they don't fully compile in my hands) and mayavi 1.0 with few modifications (while mayavi 1.2 still makes a seg fault). This is far from an easy install! Thanks to all for your help. Marc From jsnyder at nmr.mgh.harvard.edu Thu Jun 5 12:25:41 2003 From: jsnyder at nmr.mgh.harvard.edu (Josh Snyder) Date: Thu, 05 Jun 2003 12:25:41 -0400 Subject: [vtkusers] Need help for modification in vtkFeatureEdges ! Message-ID: <3EDF6F05.8060907@nmr.mgh.harvard.edu> Hi, I have a scene I'm rendering which consists of about 4000 to 4500 cuboids. It looks much better if the edges of each cuboid are accented in some way. Currently I'm doing this by adding a second actor for each cuboid, which has identical transform, but is set to display as wireframe. This adds a lot of overhead. I tried using vtkFeatureEdges, which at first was so resource intensive that it just crashed. After reading the recent post about using the vtkNullLocator that was provided, I tried again. It's much, much better that way, but still performs somewhat worse than just adding the second set of cuboids. Can anyone recommend an alternative solution? Thanks, Josh From neerav at interchange.ubc.ca Thu Jun 5 12:37:49 2003 From: neerav at interchange.ubc.ca (neerav) Date: Thu, 05 Jun 2003 09:37:49 -0700 Subject: [vtkusers] vtkJPEGReader Question Message-ID: <5788913.1054831069857.JavaMail.myubc2@portal1.itservices.ubc.ca> Hi, I am writing a Visual C++ program and I am trying to read in mulitple JPEG'S into VTK using vtkJPEGReader. Is there anyone who knows how to do this. Thanks in advance Neerav From skboyd at ucalgary.ca Thu Jun 5 13:37:30 2003 From: skboyd at ucalgary.ca (Steve Boyd) Date: Thu, 05 Jun 2003 10:37:30 -0700 Subject: [vtkusers] Inverting image data Message-ID: <3EDF7FDA.B3E7DBE8@ucalgary.ca> Hi, Is there a filter that will invert vtkImageData so that low values become high, and vice-versa? I couldn't find one. I suppose I could do the following for my VTK_CHAR data, but would rather use a filter if it's available: // Flip the image values char *pData = (char *)imageFilter->GetOutput()->GetScalarPointer(); for (i=0; iGetOutput()->GetNumberOfPoints(); i++) pData[i] = -1-pData[i]; Thanks, Steve -- Steven Boyd, PhD Assistant Professor Department of Mechanical and Manufacturing Engineering University of Calgary 2500 University Drive, N.W. Calgary, Alberta, Canada, T2N 1N4 tel. 1.403.220.4173 fax. 1.403.282.8406 skboyd at ucalgary.ca ------------------------------------------------------------------- From ofedrigo at iastate.edu Thu Jun 5 14:06:56 2003 From: ofedrigo at iastate.edu (olivier Fedrigo) Date: Thu, 05 Jun 2003 13:06:56 -0500 Subject: [vtkusers] VTK on OSX Message-ID: <5.2.0.9.2.20030605113945.00a92970@ofedrigo.mail.iastate.edu> Thanks for all your emails, I fixed it now... I tried the sample code given on VTK web page (the drawing of the sphere) and I obtained the following errors: "invalid use of undefined type 'struct vtkProperty'" "forward declaration of 'struct vtkProperty'" any ideas? Sorry for all these questions, I do not want to bother you with all my debugging questions but I really would like to get a good start with VTK and quickly "focus on the fun part". Thanks again O. On Thursday, June 5, 2003, at 12:05 am, olivier Fedrigo wrote: >Thanks for your emails guys. >I finally succeeded to compile VTK 4.2.3 with Cmake 1.6.7-darwin > >however how do you install VTK in a carbon project? I may sound dumb but I >am just starting using OSX, carbon (except for few basic applications) and VTK > >I added as frameworks: >libvtkCommon.a >libvtkfiltering.a >libvtkGraphics.a >libvtkimaging.a >libvtkrendering.a >and OpenGl.framework. >Also, I added in Sources all the VTK headers. > >To test it, in Main.c I added: #include and #include >"vtkRenderer.h" >I obtained several build errors concerning 'iostream' 'strstream'...etc... >not found. (they are called by vtklOStream.h) >Do I have to get these files and add them in my libraries list or did I >miss something in installing and compiling VTK? > >Thanks a lot, > >Olivier > i Olivier F?drigo 240 Science II Department of Zoology and Genetics Iowa State University Ames, IA 50011 Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 http://www.mbb.iastate.edu/~gnaylor/Olivier.html From g.scott at oneteldsl.net Thu Jun 5 14:26:26 2003 From: g.scott at oneteldsl.net (Greg Scott) Date: Thu, 5 Jun 2003 19:26:26 +0100 Subject: [vtkusers] Getting image data quickly into Java objects Message-ID: <002b01c32b8f$fb4dbf40$0400a8c0@Greg> I've seen in the past people have asked a similar question, yet I've found no answers. I would like to move the RGB data from a vtkImageData instance into Java, i.e. into a byte[] array. As I understand it, the usual GetScalarPointer methods are not available in the Java wrapping of VTK. Can anyone suggest a fast way to do this, other than looping through the entire image data doing GetPoint... on each one, which returns, say a float. Any suggestions would be much appreciated. Thanks Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From leue at crd.ge.com Thu Jun 5 14:35:57 2003 From: leue at crd.ge.com (Leue, William M (Research)) Date: Thu, 5 Jun 2003 14:35:57 -0400 Subject: [vtkusers] Getting image data quickly into Java objects Message-ID: Personally, I would write a tiny bit of JNI code to copy the data that underlies the ScalarPointer into the desired Java array. You have do the pointer defererencing in C, since Java does not support C-style pointers. -Bill Leue -----Original Message----- From: Greg Scott [mailto:g.scott at oneteldsl.net] Sent: Thursday, June 05, 2003 2:26 PM To: vtkusers at public.kitware.com Subject: [vtkusers] Getting image data quickly into Java objects I've seen in the past people have asked a similar question, yet I've found no answers. I would like to move the RGB data from a vtkImageData instance into Java, i.e. into a byte[] array. As I understand it, the usual GetScalarPointer methods are not available in the Java wrapping of VTK. Can anyone suggest a fast way to do this, other than looping through the entire image data doing GetPoint... on each one, which returns, say a float. Any suggestions would be much appreciated. Thanks Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at cdnorthamerica.com Thu Jun 5 14:46:28 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 05 Jun 2003 14:46:28 -0400 Subject: [vtkusers] Getting image data quickly into Java objects In-Reply-To: <002b01c32b8f$fb4dbf40$0400a8c0@Greg> References: <002b01c32b8f$fb4dbf40$0400a8c0@Greg> Message-ID: <3EDF9004.8080904@cdnorthamerica.com> mabey something like... vtkImageData imgData = ... vtkPNGWriter writer = new vtkPNGWriter(); writer.SetInput(imgData); writer.WriteToMemoryOn(); writer.Write(); vtkUnsignedCharArray arr = writer.GetResult(); byte[] bytes = new byte[arr.GetNumberOfTuples()]; for (int i = 0; i < arr.GetNumberOfTuples(); ++i) { bytes[i] = (byte)arr.GetTuple1(i); } ... Greg Scott wrote: > I've seen in the past people have asked a similar question, yet I've > found no answers. > > I would like to move the RGB data from a vtkImageData instance into > Java, i.e. into a byte[] array. As I understand it, the usual > GetScalarPointer methods are not available in the Java wrapping of VTK. > > Can anyone suggest a fast way to do this, other than looping through > the entire image data doing GetPoint... on each one, which returns, > say a float. > > Any suggestions would be much appreciated. > Thanks > Greg > From andresba at hotmail.com Thu Jun 5 16:10:34 2003 From: andresba at hotmail.com (Andres Barrera) Date: Thu, 05 Jun 2003 15:10:34 -0500 Subject: [vtkusers] Triangle Size Message-ID: Dear list I have a PolyData. The shape is OK, but the triangles are too big for my pourpose (I want to cut it with a plane, but I want more accuracy than the size of my current triangles) I think I could reduce the size of the triangles by creating new points in the plane of each triangle and using some Delaunay function..... but I think there should be something much more simple than that. Can anyone help me? Any idea? Thank you Andres _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From David.Pont at ForestResearch.co.nz Thu Jun 5 16:57:03 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Fri, 6 Jun 2003 08:57:03 +1200 Subject: [vtkusers] Triangle Size Message-ID: Andres, try vtkLinearSubdivisionFilter. 2 or 3 iterations was enough for my data, so try that for a start. The number of triangles increases exponentially with each iteration. Dave Pont |--------+---------------------------------> | | "Andres Barrera" | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 06/06/2003 08:10 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers at public.kitware.com | | cc: | | Subject: [vtkusers] Triangle Size | >------------------------------------------------------------------------------------------------------------| Dear list I have a PolyData. The shape is OK, but the triangles are too big for my pourpose (I want to cut it with a plane, but I want more accuracy than the size of my current triangles) I think I could reduce the size of the triangles by creating new points in the plane of each triangle and using some Delaunay function..... but I think there should be something much more simple than that. Can anyone help me? Any idea? Thank you Andres _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From jnstrome at ucalgary.ca Thu Jun 5 17:29:32 2003 From: jnstrome at ucalgary.ca (Julie Stromer) Date: Thu, 05 Jun 2003 15:29:32 -0600 Subject: [vtkusers] UnsatisfiedLinkError: VTKInit Message-ID: <3EDFB63C.30309@ucalgary.ca> Hi, I am trying to get VTK and Java3D to "communicate" via conversion of Shape3D geometries and vtkPolyData objects. It all compiles nicely and I am more than certain that the libraries are linked properly, but I get the ever-familiar UnsatisfiedLinkError: VTKInit. Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkPolyData.VTKInit(Native Method) at vtk.vtkObject.(vtkObject.java:98) at vtk.vtkDataObject.(vtkDataObject.java:286) at vtk.vtkDataSet.(vtkDataSet.java:154) at vtk.vtkPointSet.(vtkPointSet.java:86) at vtk.vtkPolyData.(vtkPolyData.java:262) at Cone3.main(Cone3.java:70) I know that the common solution to this problem is to statically link in the libraries, such as I did: static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkPatentedJava"); System.loadLibrary("vtkParallelJava"); System.loadLibrary("vtkHybridJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); } I know this is a problem that surfaced with vtk4.0 no longer having the all encompassing "vtkJava" library. (See, I've done my homework). Now, does ANYONE have a viable solution or explination for this??? Thanks in advance, Julie jnstrome at ucalgary.ca From cwant at ualberta.ca Thu Jun 5 18:26:53 2003 From: cwant at ualberta.ca (Chris Want) Date: Thu, 05 Jun 2003 16:26:53 -0600 Subject: [vtkusers] vtkMergeDataObjectFilter broken? Message-ID: <3EDFC3AD.3040800@ualberta.ca> Hi there, I wrote a tcl program with vtk 3.2 that uses vtkMergeDataObjectFilter with vtkFieldDataToAttributeDataFilter to combine the geometry in one file with the scalars in another file (field data). Using the latest vtk from cvs this program no longer works, and it gives the error: ERROR: In /usr/local/src/vtk/VTK/Graphics/vtkFieldDataToAttributeDataFilter.cxx, line 329 vtkFieldDataToAttributeDataFilter (0x81b38f0): Can't find array/component requested I can't find any modern examples that use this filter, and the one old vtk 3.2 example that used to work (mergeDataObject.tcl) no longer works and issues the same error. Can anybody recommend a workaround? Regards, -- Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From dean.inglis at on.aibn.com Thu Jun 5 18:07:39 2003 From: dean.inglis at on.aibn.com (dean.inglis at on.aibn.com) Date: Thu, 5 Jun 2003 18:07:39 -0400 Subject: [vtkusers] Inverting image data Message-ID: <20030605220739.TMVS17332.tomts6-srv.bellnexxia.net@[209.226.175.135]> Steve, here is a bit of tcl script I used for inverting image data, the key is the vtkImageShiftScale filter with which you can set the output scalar type to whatever you need: vtkImageReader v16 v16 SetFileName "mydata.dat" v16 SetDataScalarTypeToUnsignedShort v16 SetDataByteOrderToLittleEndian v16 SetFileDimensionality 3 v16 FileLowerLeftOff v16 SetDataOrigin 0 0 0 v16 SetDataExtent 0 66 0 66 0 11 v16 SetDataSpacing .1953125 .1953125 0.8 v16 ReleaseDataFlagOn v16 Update set tmp [[v16 GetOutput] GetScalarRange] set min [lindex $tmp 0] set max [lindex $tmp 1] vtkImageShiftScale shift shift SetOutputScalarTypeToUnsignedChar shift ReleaseDataFlagOn shift ClampOverflowOn shift SetScale -1 shift SetShift [expr -1.0*$max] shift SetInput [v16 GetOutput] shift Update hope this helps, Dean From tdeschamps at lbl.gov Thu Jun 5 19:31:44 2003 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Thu, 05 Jun 2003 16:31:44 -0700 Subject: [vtkusers] Thresholding a vtkStructuredGrid -> vtkUnstructuredGrid? Message-ID: <3EDFD2E0.2030609@lbl.gov> Hi vtkUsers, I have a vtkStructuredGrid containing the components of a vector field that I represent by means of vtkGlyph3D. In fact this is a representation of the gradient components of the image at each pixel. The problem is that I have big images and I would like to remove the vectors with small gradient magnitude from the final visualization. In fact I have so many vectors that sometimes my graphic card can't stand it and the computer reboots... Rather than using vtkExtractGrid which uses a regular sampling rate, I would like to choose which vectors are removed, based on my criterion. And I would like to still use vtkGlyph3D to represent the resulting vector field. So I would like to know if there is a simple way to do that, or if there isn't. Anyway thanks for reading this email. Thomas (tdeschamps at lbl.gov) From tdeschamps at lbl.gov Thu Jun 5 20:10:47 2003 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Thu, 05 Jun 2003 17:10:47 -0700 Subject: [vtkusers] Re: Thresholding a vtkStructuredGrid -> vtkUnstructuredGrid? References: <3EDFD2E0.2030609@lbl.gov> Message-ID: <3EDFDC07.4050305@lbl.gov> Don't bother even looking at the question. I just found that I was not obliged to have a structured grid with a point and vector structure defined at each regularly spaced point in space. Sorry for my stupid question. Thomas Deschamps wrote: > Hi vtkUsers, > > I have a vtkStructuredGrid containing the components of a vector field > that I represent by means of vtkGlyph3D. > In fact this is a representation of the gradient components of the > image at each pixel. > > The problem is that I have big images and I would like to remove the > vectors with small gradient magnitude from the final visualization. > In fact I have so many vectors that sometimes my graphic card can't > stand it and the computer reboots... > > Rather than using vtkExtractGrid which uses a regular sampling rate, I > would like to choose which vectors are removed, based on my criterion. > And I would like to still use vtkGlyph3D to represent the resulting > vector field. > > So I would like to know if there is a simple way to do that, or if > there isn't. > Anyway thanks for reading this email. > > Thomas (tdeschamps at lbl.gov) > From cwant at ualberta.ca Thu Jun 5 20:48:54 2003 From: cwant at ualberta.ca (Chris Want) Date: Thu, 05 Jun 2003 18:48:54 -0600 Subject: [vtkusers] Re: vtkMergeDataObjectFilter broken? Message-ID: <3EDFE4F6.5000806@ualberta.ca> Looks like I have it working now. I needed to do the following call for the vtkMergeDataObjectFilter instance merge: merge SetOutputFieldToPointDataField and I had to do the following call for the vtkFieldDataToAttributeDataFilter instance fd2ad: fd2ad SetInputFieldToPointDataField These calls were not required with vtk 3.2. Regards, Chris From jmuller at vcn.bc.ca Thu Jun 5 21:29:37 2003 From: jmuller at vcn.bc.ca (Jeff Muller) Date: Thu, 05 Jun 2003 19:29:37 -0600 Subject: [vtkusers] Newbie Question RE vtkImageSource Message-ID: <3EDFEE81.9090907@vcn.bc.ca> Hello all, I'm new to vtk land. I've been trying to get a memory buffer of my own displayed using a vtkImageSource. I know this should be simple but... I'm trying to map a float array of 1501x1501 stored in image. In the code below, using the imageMapper to map the import displays nothing. Using imageMapper to map the vtkBMPReader (commented out) instead of the the vtkImageImport works fine. Is there anything I'm missing here? I'm using the following code: //====================================================== // Create the mapper and set the appropriate scalar range vtkImageImport* import = vtkImageImport::New(); vtkImageImport* import = vtkImageImport::New(); import->SetDataScalarTypeToFloat(); import->SetDataExtent( 0, cols - 1,0, 0, rows - 1,0); import->SetWholeExtent( 0, cols - 1,0, 0, rows - 1,0); import->SetImportVoidPointer( (void*)image ); /* vtkBMPReader* reader = vtkBMPReader::New(); reader->SetFileName("d:\\data\\Winter.bmp"); */ // Create the mapper and set the appropriate scalar range // (default is (0,1) vtkImageMapper* imgMapper = vtkImageMapper::New(); imgMapper->SetInput(import->GetOutput()); // imgMapper->SetInput(reader->GetOutput()); imgMapper->SetColorLevel(300.0f); imgMapper->SetColorWindow(300.0f); // Create an actor. vtkActor2D* imgActor = vtkActor2D::New(); imgActor->SetMapper(imgMapper); // Create the rendering objects. vtkRenderer* ren = vtkRenderer::New(); ren->AddActor(imgActor); vtkRenderWindow* renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->Initialize(); iren->Start(); //====================================================== Thanks in advance. From galicjan at yahoo.com Thu Jun 5 22:44:20 2003 From: galicjan at yahoo.com (Jarek Sacha) Date: Thu, 05 Jun 2003 22:44:20 -0400 Subject: [vtkusers] Getting image data quickly into Java objects In-Reply-To: <002b01c32b8f$fb4dbf40$0400a8c0@Greg> References: <002b01c32b8f$fb4dbf40$0400a8c0@Greg> Message-ID: <3EE00004.7050703@yahoo.com> Greg Scott wrote: > I've seen in the past people have asked a similar question, yet I've > found no answers. > > I would like to move the RGB data from a vtkImageData instance into > Java, i.e. into a byte[] array. As I understand it, the usual > GetScalarPointer methods are not available in the Java wrapping of VTK. > > Can anyone suggest a fast way to do this, other than looping through > the entire image data doing GetPoint... on each one, which returns, > say a float. > > Any suggestions would be much appreciated. > Thanks > Greg > There is a code that does something similar at http://ij-plugins.sourceforge.net/3d-toolkit (look for "VTK Filters") Pure Java solution :) It is done there through temporary files. It is actually quite fast. StructuredPoints are written on VTK side in standard VTK format then loaded on Java side; the same thing in other direction. However, only single value pixels (gray scale) are supported in current version. From cnavarro at ncsa.uiuc.edu Thu Jun 5 23:12:31 2003 From: cnavarro at ncsa.uiuc.edu (Christopher M. Navarro) Date: Thu, 5 Jun 2003 22:12:31 -0500 (CDT) Subject: [vtkusers] dark glyphs Message-ID: When I create a lookup table that has a range from negative to positive values, say -1 to 1, all of the glyphs associated with negative scalars are very dark. Why is that? Is there something that can be done to correct this? Thanks. -chris From David.Pont at ForestResearch.co.nz Thu Jun 5 23:43:31 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Fri, 6 Jun 2003 15:43:31 +1200 Subject: [vtkusers] dark glyphs Message-ID: Hi Chris, I have had problems with glyphs disappearing with negative values. Your lighting must be such that they are still just visible, lucky you, I was completely unaware for a while, then quite baffled for even longer. A scaling transform is applied to glyphs according to their scalar values, negative values turn the glyphs inside out, specifically the normals point inward, so they dont reflect light. You might be able to manipulate the input data (take absolute value, or add a fixed offset). My fix was to pass the output through vtkPolyDataNormals. This is 'costly' but works. There is still a problem with zero and small (absolute) values which effectively disappear, and very large (absolute) values that swallow nearby small glyphs. A real remedy would be a way of normalising the range of glyph sizes within a user specified range so the smallest (signed) value maps to a specified small size, and the largest (signed) value maps to a specified large size. Could even define a non-linear mapping within the range. I suppose this would have to be done inside vtkGlyph3D? Dave Pont |--------+---------------------------------> | | "Christopher M. | | | Navarro" | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 06/06/2003 15:12 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers at public.kitware.com | | cc: | | Subject: [vtkusers] dark glyphs | >------------------------------------------------------------------------------------------------------------| When I create a lookup table that has a range from negative to positive values, say -1 to 1, all of the glyphs associated with negative scalars are very dark. Why is that? Is there something that can be done to correct this? Thanks. -chris _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From ramakrishna.prakash at quest-global.com Fri Jun 6 01:52:21 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 6 Jun 2003 11:22:21 +0530 Subject: [vtkusers] Obtaining cell id's lying on the edge of a cylinder Message-ID: <000001c32bef$cc53fbe0$de0ba8c0@qtwblr01.questglobal.com> Hi, I have a cylinder object with open ends. How can I identify the cells which are lying on the edge of the cylinder. I find the edge in the following manner. vtkFeatureEdges edges = new vtkFeatureEdges(); edges.SetInput(cylinderData); edges.BoundaryEdgesOn(); edges.ManifoldEdgesOff(); edges.NonManifoldEdgesOff(); edges.FeatureEdgesOff(); From the vtkFeatureEdges.GetOutput() I get all the point id's lying the edge of the cylinder. But I also want to get the cell id's . The problem here is, the output of feature edges will contain vtkLine cell type instead of vtkTriangle cell type. Is there any method to get the cell id's of the cylinder object which occupy the edge? Hope I am clear. Thanks Shyam From stojek at part-gmbh.de Fri Jun 6 04:44:52 2003 From: stojek at part-gmbh.de (Marcus Stojek) Date: Fri, 6 Jun 2003 10:44:52 +0200 Subject: AW: [vtkusers] Obtaining cell id's lying on the edge of a cylinder In-Reply-To: <000001c32bef$cc53fbe0$de0ba8c0@qtwblr01.questglobal.com> Message-ID: Hi, I had almost exactly the same question a couple of days ago, but did't get an answer. Here is how i solve the problem (in Python) surfpoint=vtkFloatArray() tupnum=vtkgeofilter.GetOutput().GetPolys().GetData().GetNumberOfTuples() vtkgeofilter.GetOutput().GetPolys().GetData().GetData(0,tupnum-1,0,0,surfpoi nt) This gives me a list of all facets building the surface. You might want to use something like GetLines instead of GetPolys. For each facet I put the nodelist into: GetCellNeighbors(cell to exclude,pointlist,cellids) and get the cell id I am looking for. I am pretty sure there are better ways. Bye, Marcus. -----Urspr?ngliche Nachricht----- Von: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]Im Auftrag von R K Shyamprakash Gesendet: Freitag, 6. Juni 2003 07:52 An: Vtkusers (E-mail) Betreff: [vtkusers] Obtaining cell id's lying on the edge of a cylinder Hi, I have a cylinder object with open ends. How can I identify the cells which are lying on the edge of the cylinder. I find the edge in the following manner. vtkFeatureEdges edges = new vtkFeatureEdges(); edges.SetInput(cylinderData); edges.BoundaryEdgesOn(); edges.ManifoldEdgesOff(); edges.NonManifoldEdgesOff(); edges.FeatureEdgesOff(); From the vtkFeatureEdges.GetOutput() I get all the point id's lying the edge of the cylinder. But I also want to get the cell id's . The problem here is, the output of feature edges will contain vtkLine cell type instead of vtkTriangle cell type. Is there any method to get the cell id's of the cylinder object which occupy the edge? Hope I am clear. 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://public.kitware.com/mailman/listinfo/vtkusers --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.486 / Virus Database: 284 - Release Date: 29.05.03 From dellinge at mnhn.fr Fri Jun 6 04:45:21 2003 From: dellinge at mnhn.fr (Marc Dellinger) Date: Fri, 6 Jun 2003 10:45:21 +0200 Subject: [vtkusers] OSX In-Reply-To: Message-ID: <3558F066-97FB-11D7-85EE-0003930E18B6@mnhn.fr> Le jeudi, 5 juin 2003, ? 20:01 Europe/Paris, Tobias a ?crit : > could you, or Adrian, post the changes in Mayavi? I recently gave up > on trying to make it work. Of course, i tried with Mayavi 1.2.. I have > TclTKAqua 8.4.3 and Python 2.2.3 both as framework installs. Not the > X11 version. > Mayavi 1.2 does not work in my hands (seg fault) Mayavi 1.0 : python complains about some unkown "-col" (see below), so I changes all "col=" in ****.grid(***, col=***.******) as "column=" (I have to post that on mayavi's list to know if it's correct), and be carefull that "col" is also used elsewhere for colors and should not be changed (note that I have the same problem with Mayavi-1.2 on SuSE 8.2 for PC). With these changes, mayavi 1.0 seems to work fine on XDarwin (not very well on Apple's X11). This is what python tells me: > python mayavi.py Traceback (most recent call last): File "mayavi.py", line 4, in ? Main.main () File "Main.py", line 947, in main v = MayaVi (r) File "Main.py", line 165, in __init__ self.make_data_list () File "Main.py", line 341, in make_data_list but1.grid (row=0, col=0, sticky="ew") File "/usr/local/python222Tk/lib/python2.2/lib-tk/Tkinter.py", line 1722, in grid_configure self.tk.call( TclError: ambiguous option "-col": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky Hope this helps, Marc From g.scott at oneteldsl.net Fri Jun 6 10:03:04 2003 From: g.scott at oneteldsl.net (Greg Scott) Date: Fri, 6 Jun 2003 15:03:04 +0100 Subject: [vtkusers] Help with linking C++ native code for Java JNI Message-ID: <000e01c32c34$5b500c00$0400a8c0@Greg> Hello everyone, Following a recent post, I thought I would try writing some C++ code which will had back an array to Java. Whilst I can get basic "Hello World" type JNI programs to work, I've having difficulty in doing anything that uses vtk-based methods for Java. On linking a program which uses vtkJavaUtils.h, e.g. to invoke the vtkJavaGetPointerFromObject() method, I get the following error: error LNK2001: unresolved external symbol "void * __cdecl vtkJavaGetPointerFromObject(struct JNIEnv_ *,class jobject *,char *)" (?vtkJavaGetPointerFromObject@@YAPAXPAUJNIEnv_@@PAV_jobject@@PAD at Z) Does anyone know which .lib file the vtkJavaUtil code have been incorporated in? I thought I was including all of those required. I get the same error through Visual C++ IDE and from the 'cl' command-line approach. Any advice much appreciated, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From leue at crd.ge.com Fri Jun 6 10:14:12 2003 From: leue at crd.ge.com (Leue, William M (Research)) Date: Fri, 6 Jun 2003 10:14:12 -0400 Subject: [vtkusers] Help with linking C++ native code for Java JNI Message-ID: Greg, >From the Sun book on JNI by Sheng Liang, here is a rough outline of the process: 1. Create a Java class that declares the native method. (e.g. myClass.java) 2. Use the Java compiler, javac, to compile the Java class, resulting in the file myClass.class 3. Use the javah -jni utility to create a C header file myClass.h 4. Write the C implementation of the native method, e.g. myJNI.c 5. Compile the C implementation into a native dynamic library, e.g., myJNI.dll or myJNI.so 6. Run the myClass Java program using 'java myClass.class'. The Java class loader will dynamically load your Java class and the native method library. If you are using, say, MS Visual C++, you can use the new project wizard to tell it you are building a DLL instead of an application. It will put all the appropriate linker flags in for you to build a dll. Starting with a 'hello world' program that does not try to pass any data between the C and Java worlds is a good first step. -Bill Leue -----Original Message----- From: Greg Scott [mailto:g.scott at oneteldsl.net] Sent: Friday, June 06, 2003 10:03 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Help with linking C++ native code for Java JNI Hello everyone, Following a recent post, I thought I would try writing some C++ code which will had back an array to Java. Whilst I can get basic "Hello World" type JNI programs to work, I've having difficulty in doing anything that uses vtk-based methods for Java. On linking a program which uses vtkJavaUtils.h, e.g. to invoke the vtkJavaGetPointerFromObject() method, I get the following error: error LNK2001: unresolved external symbol "void * __cdecl vtkJavaGetPointerFromObject(struct JNIEnv_ *,class jobject *,char *)" (?vtkJavaGetPoi nterFromObject@@YAPAXPAUJNIEnv_@@PAV_jobject@@PAD at Z ) Does anyone know which .lib file the vtkJavaUtil code have been incorporated in? I thought I was including all of those required. I get the same error through Visual C++ IDE and from the 'cl' command-line approach. Any advice much appreciated, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxa at fluent.com Fri Jun 6 10:51:16 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 6 Jun 2003 10:51:16 -0400 Subject: [vtkusers] VTK and memory issues. Message-ID: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> Greetings ! Are VTK filters member of a pipeline holding DataSets instances between each of them ? If i have a pipeline starting from a vtkPolyData instance, a vtkPolyDataNormals, vtkAppendPolyData, vtkPolyDataMapper and vtkLODActor ... .. Does such a pipeline involves 4 or 5 instances of the initial dataset ? (i.e. One between each filter. ) ... If yes, isn't there a way to clean a pileline ? We're having troubles with the memory vtk seems to be using. Instead of taking around 200 Mo for displaying a huge 3D model, our application actually takes 1.2Go !!! Thanks for any help ! ________________________ Seb From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 6 10:56:38 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 06 Jun 2003 16:56:38 +0200 Subject: [vtkusers] VTK and memory issues. In-Reply-To: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> References: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> Message-ID: <3EE0ABA6.2020001@creatis.insa-lyon.fr> Sebastien, You might have a look at: How to handle large data sets in VTK: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp HTH mathieu Ps: a filter never change the input so each time you use a filter you have *one* input and *one* output. Sebastien Auclair wrote: > Greetings ! > > Are VTK filters member of a pipeline holding DataSets instances between each > of them ? > If i have a pipeline starting from a vtkPolyData instance, a > vtkPolyDataNormals, vtkAppendPolyData, vtkPolyDataMapper and vtkLODActor ... > .. Does such a pipeline involves 4 or 5 instances of the initial dataset > ? (i.e. One between each filter. ) > ... If yes, isn't there a way to clean a pileline ? > > We're having troubles with the memory vtk seems to be using. > Instead of taking around 200 Mo for displaying a huge 3D model, our > application actually takes 1.2Go !!! > > Thanks for any help ! > ________________________ > Seb > > > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From jlpina at ivo.cps.unizar.es Fri Jun 6 11:09:26 2003 From: jlpina at ivo.cps.unizar.es (Jose Luis Pina) Date: Fri, 06 Jun 2003 17:09:26 +0200 Subject: [vtkusers] Extrapolation Message-ID: <5.2.0.9.0.20030606165804.00afa2f0@ivo.cps.unizar.es> Hello: I have a cubic grid (nxnxn) with scalar values associated and I want calculate the scalars in new points around the cube (n+2)x(n+2)x(n+2), I know that some filters interpolates but I wander if there is any one witch extrapolates, ,interpolation with the intermediate points outside the grid. Anyone know if this filter exists? Thanks in Advance. CPS.Universidad de Zaragoza. (Spain) Jose Luis Pina Martinez jlpina at ivo.cps.unizar.es From cvolpe at ara.com Fri Jun 6 11:13:11 2003 From: cvolpe at ara.com (Chris Volpe) Date: Fri, 6 Jun 2003 11:13:11 -0400 Subject: [vtkusers] CMake, VTK, and .NET Message-ID: Hi folks- I'm starting to use VS .NET and noticed something strange when using CMake to generate a worksp^H^H^H^H^H^Hsolution file for VTK. It appears that all the header files that should be a part of, for example, vtkCommon, are actually inserted into the vtkCommonTCL project. (The same holds for the other projects, Filtering, Graphics, etc.) Is this a bug in CMake, or is this by design? Just curious. Thanks, Chris -- Christopher R. Volpe, Ph.D. Senior Scientist Email: cvolpe at ara.com Applied Research Associates, Inc. Voice: 919-582-3380 8540 Colonnade Center Dr., Ste 301 Fax: 919-878-3672 Raleigh, NC 27615 Web: www.ara.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From leue at crd.ge.com Fri Jun 6 11:23:54 2003 From: leue at crd.ge.com (Leue, William M (Research)) Date: Fri, 6 Jun 2003 11:23:54 -0400 Subject: [vtkusers] VTK and memory issues. Message-ID: In addition to the helpful suggestions from the kitware document, if you are doing image processing where most of the large data is point data, as opposed to polygon data, you should take a look at the vtkImageDataStreamer class. It helps you to manage huge data sets that will not fit into available memory by manipulating extents in an iterative fashion, and filters and readers whose output goes to the streamer will have their extents similarly iterated using the regular pipeline extents propagation mechanism. The drawback, of course, is that all the filters have to know how to work in a streaming mode. Many VTK filters do, but not all. -Bill Leue -----Original Message----- From: Mathieu Malaterre [mailto:Mathieu.Malaterre at creatis.insa-lyon.fr] Sent: Friday, June 06, 2003 10:57 AM To: Sebastien Auclair Cc: vtkusers at public.kitware.com Subject: Re: [vtkusers] VTK and memory issues. Sebastien, You might have a look at: How to handle large data sets in VTK: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp HTH mathieu Ps: a filter never change the input so each time you use a filter you have *one* input and *one* output. Sebastien Auclair wrote: > Greetings ! > > Are VTK filters member of a pipeline holding DataSets instances between each > of them ? > If i have a pipeline starting from a vtkPolyData instance, a > vtkPolyDataNormals, vtkAppendPolyData, vtkPolyDataMapper and vtkLODActor ... > .. Does such a pipeline involves 4 or 5 instances of the initial dataset > ? (i.e. One between each filter. ) > ... If yes, isn't there a way to clean a pileline ? > > We're having troubles with the memory vtk seems to be using. > Instead of taking around 200 Mo for displaying a huge 3D model, our > application actually takes 1.2Go !!! > > Thanks for any help ! > ________________________ > Seb > > > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ _______________________________________________ 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 From sxa at fluent.com Fri Jun 6 11:29:18 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 6 Jun 2003 11:29:18 -0400 Subject: [vtkusers] VTK and memory issues. References: Message-ID: <00c501c32c40$652c3170$8ae4e9c0@sxapc> No were dealling with polydata .. Not image data. ----- Original Message ----- From: "Leue, William M (Research)" To: "'Mathieu Malaterre'" ; "Sebastien Auclair" Cc: Sent: Friday, June 06, 2003 11:23 AM Subject: RE: [vtkusers] VTK and memory issues. > In addition to the helpful suggestions from the kitware document, if you are > doing image processing where most of the large data is point data, as > opposed to polygon data, you should take a look at the vtkImageDataStreamer > class. It helps you to manage huge data sets that will not fit into > available memory by manipulating extents in an iterative fashion, and > filters and readers whose output goes to the streamer will have their > extents similarly iterated using the regular pipeline extents propagation > mechanism. The drawback, of course, is that all the filters have to know how > to work in a streaming mode. Many VTK filters do, but not all. > > -Bill Leue > > -----Original Message----- > From: Mathieu Malaterre [mailto:Mathieu.Malaterre at creatis.insa-lyon.fr] > Sent: Friday, June 06, 2003 10:57 AM > To: Sebastien Auclair > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] VTK and memory issues. > > > Sebastien, > You might have a look at: > > How to handle large data sets in VTK: > http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp > > HTH > mathieu > Ps: a filter never change the input so each time you use a filter you > have *one* input and *one* output. > > Sebastien Auclair wrote: > > Greetings ! > > > > Are VTK filters member of a pipeline holding DataSets instances between > each > > of them ? > > If i have a pipeline starting from a vtkPolyData instance, a > > vtkPolyDataNormals, vtkAppendPolyData, vtkPolyDataMapper and vtkLODActor > ... > > .. Does such a pipeline involves 4 or 5 instances of the initial > dataset > > ? (i.e. One between each filter. ) > > ... If yes, isn't there a way to clean a pileline ? > > > > We're having troubles with the memory vtk seems to be using. > > Instead of taking around 200 Mo for displaying a huge 3D model, our > > application actually takes 1.2Go !!! > > > > Thanks for any help ! > > ________________________ > > Seb > > > > > > _______________________________________________ > > 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 > > > > > -- > Mathieu Malaterre > CREATIS > 28 Avenue du Doyen LEPINE > B.P. Lyon-Montchat > 69394 Lyon Cedex 03 > http://www.creatis.insa-lyon.fr/~malaterre/ > > _______________________________________________ > 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 From sxa at fluent.com Fri Jun 6 11:44:35 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 6 Jun 2003 11:44:35 -0400 Subject: [vtkusers] VTK and memory issues. References: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> <3EE0ABA6.2020001@creatis.insa-lyon.fr> Message-ID: <00d901c32c42$87a2c140$8ae4e9c0@sxapc> Forgot about that ! Just one simple question ... If i use "GlobalReleaseDataFlagOn" just once on a single object, the effect will be applied on all possible dataobjects ? I ask this because intuitively, it is a strange way to set a global behavior ! Thanks ! _________________ Seb ----- Original Message ----- From: "Mathieu Malaterre" To: "Sebastien Auclair" Cc: Sent: Friday, June 06, 2003 10:56 AM Subject: Re: [vtkusers] VTK and memory issues. > Sebastien, > You might have a look at: > > How to handle large data sets in VTK: > http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp > > HTH > mathieu > Ps: a filter never change the input so each time you use a filter you > have *one* input and *one* output. > > Sebastien Auclair wrote: > > Greetings ! > > > > Are VTK filters member of a pipeline holding DataSets instances between each > > of them ? > > If i have a pipeline starting from a vtkPolyData instance, a > > vtkPolyDataNormals, vtkAppendPolyData, vtkPolyDataMapper and vtkLODActor ... > > .. Does such a pipeline involves 4 or 5 instances of the initial dataset > > ? (i.e. One between each filter. ) > > ... If yes, isn't there a way to clean a pileline ? > > > > We're having troubles with the memory vtk seems to be using. > > Instead of taking around 200 Mo for displaying a huge 3D model, our > > application actually takes 1.2Go !!! > > > > Thanks for any help ! > > ________________________ > > Seb > > > > > > _______________________________________________ > > 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 > > > > > -- > Mathieu Malaterre > CREATIS > 28 Avenue du Doyen LEPINE > B.P. Lyon-Montchat > 69394 Lyon Cedex 03 > http://www.creatis.insa-lyon.fr/~malaterre/ > > _______________________________________________ > 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 From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 6 11:43:18 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 06 Jun 2003 17:43:18 +0200 Subject: [vtkusers] VTK and memory issues. In-Reply-To: <00d901c32c42$87a2c140$8ae4e9c0@sxapc> References: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> <3EE0ABA6.2020001@creatis.insa-lyon.fr> <00d901c32c42$87a2c140$8ae4e9c0@sxapc> Message-ID: <3EE0B696.9090906@creatis.insa-lyon.fr> > If i use "GlobalReleaseDataFlagOn" just once on a single object, the effect > will be applied on all possible dataobjects ? yes > I ask this because intuitively, it is a strange way to set a global behavior > ! How would you have done it ? mathieu From sxa at fluent.com Fri Jun 6 12:34:44 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 6 Jun 2003 12:34:44 -0400 Subject: [vtkusers] VTK and memory issues. References: <008d01c32c3b$182e0e70$8ae4e9c0@sxapc> <3EE0ABA6.2020001@creatis.insa-lyon.fr> <00d901c32c42$87a2c140$8ae4e9c0@sxapc> <3EE0B696.9090906@creatis.insa-lyon.fr> Message-ID: <00f501c32c49$898efcb0$8ae4e9c0@sxapc> It's not intuitively evident since static global states must usually be accessed through static and global functions ! Which isn't the case here. I can't do like: vtkDataObject::GlobalReleaseDataFlagOn() ... It must be : vtkDataObject obj = vtkDataObject::New(); obj->GlobalReleaseDataFlagOn(); This is why i wanted a comfirmation ! ____________________________________ Seb ----- Original Message ----- From: "Mathieu Malaterre" To: "VTK Mailing list" Sent: Friday, June 06, 2003 11:43 AM Subject: Re: [vtkusers] VTK and memory issues. > > > If i use "GlobalReleaseDataFlagOn" just once on a single object, the effect > > will be applied on all possible dataobjects ? > > yes > > > I ask this because intuitively, it is a strange way to set a global behavior > > ! > > How would you have done it ? > > mathieu > > > _______________________________________________ > 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 From fillard at email.unc.edu Fri Jun 6 13:09:19 2003 From: fillard at email.unc.edu (Fiber-Tracking Site) Date: Fri, 6 Jun 2003 13:09:19 -0400 Subject: [vtkusers] Color coding of a vector field Message-ID: <003601c32c4e$5e0716e0$a08e0298@cs.unc.edu> Hi, I would like to color code a vector field with vtk: I want to use the direction information of the vector to define its color (for example if the vector goes from left to right it will be red, from bottom to top: green and from anterior to posterior: blue). Could someone help me with this? Thanks for your help. Pierre Fillard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsnyder at nmr.mgh.harvard.edu Fri Jun 6 13:33:45 2003 From: jsnyder at nmr.mgh.harvard.edu (Josh Snyder) Date: Fri, 06 Jun 2003 13:33:45 -0400 Subject: [vtkusers] Color coding of a vector field In-Reply-To: <003601c32c4e$5e0716e0$a08e0298@cs.unc.edu> References: <003601c32c4e$5e0716e0$a08e0298@cs.unc.edu> Message-ID: <3EE0D079.8090406@nmr.mgh.harvard.edu> You can set the red, green, and blue components of the color value to the x, y, and z components of the vector. Josh Fiber-Tracking Site wrote: > Hi, > > I would like to color code a vector field with vtk: I want to use the > direction > information of the vector to define its color (for example if the > vector goes from > left to right it will be red, from bottom to top: green and from > anterior to posterior: > blue). Could someone help me with this? > Thanks for your help. > > Pierre Fillard. From sxa at fluent.com Fri Jun 6 14:19:43 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 6 Jun 2003 14:19:43 -0400 Subject: [vtkusers] GlobalReleaseDataFlagOn and pileline updates ... Message-ID: <010d01c32c58$33f16c70$8ae4e9c0@sxapc> Greetings (Again ! ) We've tested the use of GlobalReleaseDataFlagOn... The problem now is that the pipeline doesn't work correctly. The downstream filters are not capable to request a re-execution of the upstream filters. (Which is quite surprizing since there is no data between !) The vtk error window pops-up with : ERROR: In D:\Program Files\vtk40\vtk-src-windows\Graphics\vtkPolyDataNormals.cxx, line 111 vtkPolyDataNormals (0x0B7D0D60): No data to generate normals for! I don't want to detail how our pipeline is working ( would take too much time) ... But can someone tell me what globaly needs to be modified when using GlobalReleaseDataFlagOn ? In the mean time, i'll prepare a short description of our pipeline...(which is branching once for connecting to 2 LOD actors with personalized LODMappers.) Thanks ! ___________________________ Seb From ofedrigo at iastate.edu Fri Jun 6 14:54:03 2003 From: ofedrigo at iastate.edu (olivier Fedrigo) Date: Fri, 06 Jun 2003 13:54:03 -0500 Subject: [vtkusers] VTK on OSX In-Reply-To: References: <5.2.0.9.2.20030605113945.00a92970@ofedrigo.mail.iastate.edu> <5.2.0.9.2.20030605113945.00a92970@ofedrigo.mail.iastate.edu> Message-ID: <5.2.0.9.2.20030606123837.00a85890@ofedrigo.mail.iastate.edu> Thanks Chris, that was so helpful!!!! now it is building but I have a new error message and I cannot figure out how to fix tit! It fails with errors: ld: undefined symbols: -aglChoosePixelFormat -aglCreatecontext -aglDescribeRenderer etc... It is very frustrating to deal with this kind of bugs one after the other. thanks for your help. Olivier At 07:51 AM 6/6/03 -0500, you wrote: >At 1:06 PM -0500 06/05/2003, olivier Fedrigo wrote: > >I tried the sample code given on VTK web page (the drawing of the > sphere) and I obtained the following errors: > > > >"invalid use of undefined type 'struct vtkProperty'" > >"forward declaration of 'struct vtkProperty'" > > > >any ideas? > >VTK uses a lot of forward declarations. It's a trade-off that makes >compilation complete more quickly. Sometimes values are returned without >their classes fully included. The consequence is that you may have to add >a few more headers to your source code using VTK. > >In this case, you just need to add #include "vtkProperty.h" to your list >of includes. Errors of the same type can usually be solved by including >the appropriate header file. I have found vtkProperty and vtkImageData to >be common offenders. > >Chris >-- >Chris Scharver >Electronic Visualization Laboratory >The University of Illinois at Chicago >Ph: 312-996-3002 FAX: 312-413-7585 > Olivier F?drigo 240 Science II Department of Zoology and Genetics Iowa State University Ames, IA 50011 Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 http://www.mbb.iastate.edu/~gnaylor/Olivier.html From mike at frosty.ce.montana.edu Fri Jun 6 18:38:18 2003 From: mike at frosty.ce.montana.edu (michael edens) Date: Fri, 6 Jun 2003 16:38:18 -0600 Subject: [vtkusers] vtk python lib's dependency on libvtkCommonPython not set by cmake Message-ID: <91A7E2F5-986F-11D7-9502-003065EA725A@frosty.ce.montana.edu> When trying to run a python script (using either vtkpython or python) the following error is reported Traceback (most recent call last): File "Cylinder.py", line 6, in ? import vtk File "/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/ __init__.py", line 8, in ? from filtering import * File "/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/ filtering.py", line 7, in ? from libvtkFilteringPython import * ImportError: Failure linking new module: : dyld: 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_objectiPii __Z29vtkPythonGetObjectFromPointerP13vtkObjectBase __Z29vtkPythonGetPointerFromObjec For some reason none of the python libs have libvtkCommonPython.so (or any other libvtk""Python.so library) set as a dependency by cmake (1.6.7). Trying to correct this in the CMakeCache file does not work. Any suggestions. I have built VTK-4.2.2 under OSX 10.2.6 for X11. Here is the pertinent section of my CMakeCache file. //Dependencies for the target vtkCommonPython_LIB_DEPENDS:STATIC=/sw/lib/python2.3/config/ libpython2.3.dylib;vtkCommon; //Dependencies for the target vtkCommonTCL_LIB_DEPENDS:STATIC=/sw/lib/libtcl8.4.dylib;vtkCommon; //Dependencies for the target vtkCommon_LIB_DEPENDS:STATIC=-framework AppKit;-lpthread;-lm; //Dependencies for the target vtkFilteringPython_LIB_DEPENDS:STATIC=vtkFiltering; //Dependencies for the target vtkFilteringTCL_LIB_DEPENDS:STATIC=vtkCommonTCL;vtkFiltering;/sw/lib/ libtcl8.4.dylib; //Dependencies for the target vtkFiltering_LIB_DEPENDS:STATIC=vtkCommon; //Dependencies for the target vtkGraphicsPython_LIB_DEPENDS:STATIC=vtkGraphics; //Dependencies for the target vtkGraphicsTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkGraphics;/sw/lib/ libtcl8.4.dylib; //Dependencies for the target vtkGraphics_LIB_DEPENDS:STATIC=vtkFiltering; //Dependencies for the target vtkHybridPython_LIB_DEPENDS:STATIC=-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;- lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/ lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/lib/libX11.a;/usr/ x11R6/lib/libXext.a;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 vtkIOPython_LIB_DEPENDS:STATIC=vtkIO; //Dependencies for the target vtkIOTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkIO;/sw/lib/ libtcl8.4.dylib; //Dependencies for the target vtkIO_LIB_DEPENDS:STATIC=vtkFiltering;/sw/lib/libpng.3.1.2.5.dylib;/ usr/lib/libz.dylib;/usr/lib/libz.dylib;/sw/lib/libjpeg.62.0.0.dylib;/ sw/lib/libtiff.3.5.7.dylib;/sw/lib/libexpat.0.4.0.dylib; //Dependencies for the target vtkImagingPython_LIB_DEPENDS:STATIC=vtkImaging; //Dependencies for the target vtkImagingTCL_LIB_DEPENDS:STATIC=vtkFilteringTCL;vtkImaging;/sw/lib/ libtcl8.4.dylib; //Dependencies for the target vtkImaging_LIB_DEPENDS:STATIC=vtkFiltering; //Dependencies for the target vtkParallelPython_LIB_DEPENDS:STATIC=-lGLU;-lGL;-lSM;-lICE;-lSM;-lICE;/ usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/usr/x11R6/lib/ libX11.a;/usr/x11R6/lib/libXext.a;vtkParallel; //Dependencies for the target vtkParallelTCL_LIB_DEPENDS:STATIC=vtkParallel;vtkIOTCL;vtkRenderingTCL; //Dependencies for the target vtkParallel_LIB_DEPENDS:STATIC=vtkRendering;vtkIO; //Dependencies for the target vtkPatentedPython_LIB_DEPENDS:STATIC=vtkPatented; //Dependencies for the target vtkPatentedTCL_LIB_DEPENDS:STATIC=vtkPatented;vtkIOTCL;vtkGraphicsTCL;vt kImagingTCL; //Dependencies for the target vtkPatented_LIB_DEPENDS:STATIC=vtkImaging;vtkGraphics;vtkIO; //Dependencies for the target vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=vtkRendering;/sw/lib/ libtcl8.4.dylib;/sw/lib/libtk8.4.dylib; //Dependencies for the target vtkRenderingPython_LIB_DEPENDS:STATIC=vtkRendering; //Dependencies for the target vtkRenderingTCL_LIB_DEPENDS:STATIC=vtkGraphicsTCL;vtkImagingTCL;vtkRende ring;/sw/lib/libtcl8.4.dylib;/sw/lib/libtk8.4.dylib; //Dependencies for the target vtkRendering_LIB_DEPENDS:STATIC=vtkGraphics;vtkImaging;-lGLU;-lGL;- lSM;-lICE;-lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;/ usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a;vtkftgl;vtkfreetype;- lXt;-lSM;-lICE;/usr/x11R6/lib/libX11.a;/usr/x11R6/lib/libXext.a; From prabhu at aero.iitm.ernet.in Sat Jun 7 01:02:16 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 7 Jun 2003 10:32:16 +0530 Subject: [vtkusers] vtk python lib's dependency on libvtkCommonPython not set by cmake In-Reply-To: <91A7E2F5-986F-11D7-9502-003065EA725A@frosty.ce.montana.edu> References: <91A7E2F5-986F-11D7-9502-003065EA725A@frosty.ce.montana.edu> Message-ID: <16097.29144.244474.520891@monster.linux.in> >>>>> "ME" == michael edens writes: ME> When trying to run a python script (using either vtkpython or ME> python) the following error is reported ME> "/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/ ME> filtering.py", line 7, in ? ME> from libvtkFilteringPython import * ME> ImportError: Failure linking new module: : dyld: python ME> Undefined symbols: _PyArg_VTKParseTuple _PyVTKClass_Check ME> _PyVTKClass_New _PyVTKClass_vtkCollectionNew [snip] ME> For some reason none of the python libs have ME> libvtkCommonPython.so (or any other libvtk""Python.so library) ME> set as a dependency by cmake (1.6.7). Trying to correct this ME> in the CMakeCache file does not work. Thats wierd. All of the Python libs need to link to atleast libvtkCommonPython.so. I've regularly building and using VTK for a long while and this has never come up. ME> Any suggestions. ME> I have built VTK-4.2.2 under OSX 10.2.6 for X11. ME> Here is the pertinent section of my CMakeCache file. Your Cache file looks wrong. Perhaps you did not re-configure/re-generate the build using cmake after you turned on Python wrapping? Just retry cmake/ccmake and reconfigure everything and re-generate the files and see if the cache file looks any better. cheers, prabhu From mhp at dadlnet.dk Sat Jun 7 11:21:53 2003 From: mhp at dadlnet.dk (Morten H Pedersen) Date: Sat, 7 Jun 2003 17:21:53 +0200 Subject: [vtkusers] Principia Mathematica In-Reply-To: <3EE0B696.9090906@creatis.insa-lyon.fr> Message-ID: Does anyone know what happened to Principia Mathematica? www.principiamathematica.com seems dead. E.g. see: http://web.archive.org/web/20011128085626/http://www.principiamathematica.co m/ Morten H Pedersen From hongzhang77 at yahoo.com Sat Jun 7 13:15:28 2003 From: hongzhang77 at yahoo.com (hong zhang) Date: Sat, 7 Jun 2003 10:15:28 -0700 (PDT) Subject: [vtkusers] need help on using vtk4.2 Message-ID: <20030607171528.75517.qmail@web14105.mail.yahoo.com> Hi, I don't know how to use vtk4.2 under VC++7.0. I use CMake get the ALL_BUILD.dsw and build it in VC7++.Then I get many directories such as filtering,io and rendering and some .h file such as vtkFilteringInstantiator.h.Every dirctory has a debug subdir with many .obj files and a .lib file.How can I use these stuff and add the function of vtk into my project? I read some help that need some .dll file but I can't find it in the output.And do I need openGL? Thanks, Hong __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From yass at uscx.net Sat Jun 7 19:30:10 2003 From: yass at uscx.net (yasser salman) Date: Sat, 7 Jun 2003 16:30:10 -0700 (PDT) Subject: [vtkusers] (no subject) Message-ID: <20030607233010.B9B3F44AE@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From hel_carvalho at hotmail.com Sat Jun 7 22:04:03 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Sun, 08 Jun 2003 03:04:03 +0100 Subject: [vtkusers] Help on Building Cells Message-ID: Hi everyone, i've got a polydata model from which i extracted the points. Now I need to take this points and regroup them into cells and put this cells back into the model. How can i do this???? I also need to know the neighbor cells of each cell, so if i interact with a specific poit inside a cell, this can affect all the points in that cell, but also the points in the neighbor cells. Can someone tell me how to do this to??? Thanks, Helder Carvalho _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From zhao-yq at cs.sjtu.edu.cn Sat Jun 7 23:01:39 2003 From: zhao-yq at cs.sjtu.edu.cn (zhao yong qiang) Date: Sun, 8 Jun 2003 11:01:39 +0800 Subject: [vtkusers] Help--vtkFlRenderWindowInteractor Message-ID: <000001c32d6a$48496a20$4c00a8c0@fly> Hi,everybody, I made a UI with FLTK and I wanted to render some VTK props in it.One of my friends recommended to me the class---vtkFlRenderWindowInteractor.And I used it to render some VTK props in a box and it did work. Then,I drew another box to render a cube made by FLTK. But this box could not work until I disabled the first one.So I want to ask if someone have ever met such case and is kind enough to give me the solution. Thanks a lot! yours, Sun Hao From amit3 at cs.umbc.edu Sun Jun 8 11:51:37 2003 From: amit3 at cs.umbc.edu (Amit Joshi) Date: Sun, 8 Jun 2003 11:51:37 -0400 Subject: [vtkusers] Re: Help on Building Cells References: <20030608114508.32030.71327.Mailman@public.kitware.com> Message-ID: <000c01c32dd5$d89f2c20$6700a8c0@amit> hi helder, For vtkPolyData, you can use InsertNextCell in order to regroup points into cells as you want. Dont forget to call allocate before the first call to InsertNextCell in order to specify the total number of cells you are going to generate About finding neighbours... well there are two methods 1) GetCellNeighbours - you will require to specify the cellId of the cell you need to find neighbours for .. 2) GetPointCells - specify a point ID and it will return all the cells that contain the given point. I hope it helps... Amit ----- Original Message ----- From: To: Sent: Sunday, June 08, 2003 7:45 AM Subject: vtkusers digest, Vol 1 #1871 - 5 msgs > Send vtkusers mailing list submissions to > vtkusers at public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request at public.kitware.com > > You can reach the person managing the list at > vtkusers-admin at public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Principia Mathematica (Morten H Pedersen) > 2. need help on using vtk4.2 (hong zhang) > 3. (no subject) (yasser salman) > 4. Help on Building Cells (Helder Carvalho) > 5. Help--vtkFlRenderWindowInteractor (zhao yong qiang) > > --__--__-- > > Message: 1 > Reply-To: > From: "Morten H Pedersen" > To: "VTK Mailing list" > Date: Sat, 7 Jun 2003 17:21:53 +0200 > Subject: [vtkusers] Principia Mathematica > > Does anyone know what happened to Principia Mathematica? > > www.principiamathematica.com seems dead. E.g. see: > > http://web.archive.org/web/20011128085626/http://www.principiamathematica.co > m/ > > Morten H Pedersen > > > > --__--__-- > > Message: 2 > Date: Sat, 7 Jun 2003 10:15:28 -0700 (PDT) > From: hong zhang > To: vtkusers at public.kitware.com > Subject: [vtkusers] need help on using vtk4.2 > > Hi, > I don't know how to use vtk4.2 under VC++7.0. > I use CMake get the ALL_BUILD.dsw and build it in > VC7++.Then I get many directories such as filtering,io > and rendering and some .h file such as > vtkFilteringInstantiator.h.Every dirctory has a debug > subdir with many .obj files and a .lib file.How can I > use these stuff and add the function of vtk into my > project? > I read some help that need some .dll file but I can't > find it in the output.And do I need openGL? > Thanks, > Hong > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > --__--__-- > > Message: 3 > Date: Sat, 7 Jun 2003 16:30:10 -0700 (PDT) > From: yasser salman > To: vtk users > Reply-To: yass at uscx.net > Subject: [vtkusers] (no subject) > > hi all., > i have a MRI volume (in tiff and raw formats) i wanna to use > VtkmarchingCube filter to create the 3D surface.., > can any body help me.., is there any example for this? > yasser.., > > > _____________________________________________________________ > 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 > > --__--__-- > > Message: 4 > From: "Helder Carvalho" > To: vtkusers at public.kitware.com > Date: Sun, 08 Jun 2003 03:04:03 +0100 > Subject: [vtkusers] Help on Building Cells > > Hi everyone, > > i've got a polydata model from which i extracted the points. Now I need to > take this points and regroup them into cells and put this cells back into > the model. How can i do this???? > I also need to know the neighbor cells of each cell, so if i interact with > a specific poit inside a cell, this can affect all the points in that cell, > but also the points in the neighbor cells. > Can someone tell me how to do this to??? > > Thanks, > Helder Carvalho > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > --__--__-- > > Message: 5 > From: "zhao yong qiang" > To: > Date: Sun, 8 Jun 2003 11:01:39 +0800 > Subject: [vtkusers] Help--vtkFlRenderWindowInteractor > > > > > Hi,everybody, > I made a UI with FLTK and I wanted to render some VTK props in > it.One of my friends recommended to me the > class---vtkFlRenderWindowInteractor.And I used it to render some VTK > props in a box and it did work. Then,I drew another box to render a cube > made by FLTK. But this box could not work until I disabled the first > one.So I want to ask if someone have ever met such case and is kind > enough to give me the solution. > Thanks a lot! > > > yours, > > Sun Hao > > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers at public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From xcrfd at umr.edu Sun Jun 8 12:23:03 2003 From: xcrfd at umr.edu (Chi, Xiaoyi (UMR-Student)) Date: Sun, 8 Jun 2003 11:23:03 -0500 Subject: [vtkusers] vtkExtractVOI Help! Message-ID: Hi, all Can anybody have experiences on vtkExtractVOI? I need to keep the extract history while extracting the VOI. But my problem seems that when I extract the other parts of the volume, the part extracted before would not display. I need all the extracted part to be displayed when I extract new VOIs. Many thanks. From mike at frosty.ce.montana.edu Sun Jun 8 13:40:57 2003 From: mike at frosty.ce.montana.edu (michael edens) Date: Sun, 8 Jun 2003 11:40:57 -0600 Subject: [vtkusers] vtk python lib's dependency on libvtkCommonPython not set by cmake Message-ID: <5CC0A928-99D8-11D7-A766-003065EA725A@frosty.ce.montana.edu> >>>>> Prabu, Thanks for the reply. I re-ran cmake many times after setting the wrap python option to ON. After more searching, it appears that the reason none of the vtk*Python.so libraies are included in the dependecy lists of the main cmake file is due to the way CMakeLists for various modules handle APPLE. When APPLE is defined they don't include the libraries. I tried commenting the appropriate lines out and re-running cmake. The library dependencies were changed to include the vtkCommonPython.so etc. This didn't help since now the compiler complains with Building shared module /Users/mike/Development/vtk/VTK-4.2.2/bin/libvtkFilteringPython.so... ld: can't locate file for: -lvtkCommonPython make[3]: *** [/Users/mike/Development/vtk/VTK-4.2.2/bin/libvtkFilteringPython.so] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Imaging] Error 2 make: *** [default_target] Error 2 I'm stummped. Looking through the mailing list it appears that a number of Mac OSX users have vtk and python working together. As a check I tried the normal build for Mac OSX and Cocoa same errors as previous post. By the way I'm using python2.3. I'll keep digging. Again, thanks. Michael Edens >>>>> "ME" == michael edens writes: ME> When trying to run a python script (using either vtkpython or ME> python) the following error is reported ME> "/Users/mike/Development/vtk/VTK-4.2.2/Wrapping/Python/vtk/ ME> filtering.py", line 7, in ? ME> from libvtkFilteringPython import * ME> ImportError: Failure linking new module: : dyld: python ME> Undefined symbols: _PyArg_VTKParseTuple _PyVTKClass_Check ME> _PyVTKClass_New _PyVTKClass_vtkCollectionNew [snip] ME> For some reason none of the python libs have ME> libvtkCommonPython.so (or any other libvtk""Python.so library) ME> set as a dependency by cmake (1.6.7). Trying to correct this ME> in the CMakeCache file does not work. Thats wierd. All of the Python libs need to link to atleast libvtkCommonPython.so. I've regularly building and using VTK for a long while and this has never come up. ME> Any suggestions. ME> I have built VTK-4.2.2 under OSX 10.2.6 for X11. ME> Here is the pertinent section of my CMakeCache file. Your Cache file looks wrong. Perhaps you did not re-configure/re-generate the build using cmake after you turned on Python wrapping? Just retry cmake/ccmake and reconfigure everything and re-generate the files and see if the cache file looks any better. cheers, prabhu From jmuller at vcn.bc.ca Sun Jun 8 17:17:38 2003 From: jmuller at vcn.bc.ca (Jeff Muller) Date: Sun, 08 Jun 2003 15:17:38 -0600 Subject: [vtkusers] Displaying an C/C++ array as an image. Message-ID: <3EE3A7F2.6050508@vcn.bc.ca> I've got an array that I've allocated and then filled with data. How do I get VTK to display this buffer as a 2d image? Thanks in advance, Jeff From jmuller at vcn.bc.ca Sun Jun 8 19:48:47 2003 From: jmuller at vcn.bc.ca (Jeff Muller) Date: Sun, 08 Jun 2003 17:48:47 -0600 Subject: [vtkusers] Displaying an C/C++ array as an image. In-Reply-To: <3EE3A7F2.6050508@vcn.bc.ca> References: <3EE3A7F2.6050508@vcn.bc.ca> Message-ID: <3EE3CB5F.4080305@vcn.bc.ca> I figured it out. Thanks. My image bounds in vtkImageSource were funky. Jeff Muller wrote: > I've got an array that I've allocated and then filled with data. How > do I get VTK to display this buffer as a 2d image? > > Thanks in advance, > > Jeff > > _______________________________________________ > 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 From philip at uk.cd-adapco.com Mon Jun 9 02:25:57 2003 From: philip at uk.cd-adapco.com (Philip Morris Jones) Date: Mon, 9 Jun 2003 07:25:57 +0100 Subject: [vtkusers] re: Principia Mathematica References: <20030608114508.32030.54160.Mailman@public.kitware.com> Message-ID: <011e01c32e4f$fca56e20$aa94c1c2@sally> some of the guys behind Principia Mathematica are now with Nabla www.nabla.co.uk Philip Philip M Jones MA MSc MIMechE CEng CD adapco Group London Office Tel +44 (0) 20 7471 6200 philip.jones at uk.cd-adapco.com www.cd-adapco.com From philip.jones at uk.cd-adapco.com Mon Jun 9 03:04:07 2003 From: philip.jones at uk.cd-adapco.com (Philip Morris Jones) Date: Mon, 9 Jun 2003 08:04:07 +0100 Subject: [vtkusers] Re: Principia Mathematica Message-ID: <013001c32e55$51f95b20$aa94c1c2@sally> some of the guys behind Principia Mathematica are now with Nabla www.nabla.co.uk Philip Philip M Jones MA MSc MIMechE CEng CD adapco Group London Office Tel +44 (0) 20 7471 6200 philip.jones at uk.cd-adapco.com www.cd-adapco.com From dariooliviero at libero.it Mon Jun 9 07:25:06 2003 From: dariooliviero at libero.it (=?iso-8859-1?Q?dariooliviero?=) Date: Mon, 9 Jun 2003 13:25:06 +0200 Subject: [vtkusers] =?iso-8859-1?Q?VTkCountour_filter?= Message-ID: Dear VTK users, I would like to understand which is the relations between the contour value fixed reading image in 16 bit utilizing VTKVolume 16 reader and the contour value that I can fix using the vtkBMPreader. I mean the contour value 500 using vtkVolume 16 reader, to which value corrispond using vtkBMPreader? Thanks a lot to alla of you! Dario From yass at uscx.net Mon Jun 9 08:14:26 2003 From: yass at uscx.net (yasser salman) Date: Mon, 9 Jun 2003 05:14:26 -0700 (PDT) Subject: [vtkusers] 3D Volume.. Message-ID: <20030609121426.B86C33D38@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From philip.jones at uk.cd-adapco.com Sun Jun 8 09:41:21 2003 From: philip.jones at uk.cd-adapco.com (Philip Morris Jones) Date: Sun, 8 Jun 2003 14:41:21 +0100 Subject: [vtkusers] re: Principia Mathematica References: <20030608114508.32030.54160.Mailman@public.kitware.com> Message-ID: <003101c32dc3$c20f2170$6c5cfea9@awkwind> Some of the guys behind Principia Mathematica are now involved in the FOAM CFD code, see www.nabla.co.uk Philip Jones From sxa at fluent.com Mon Jun 9 09:57:57 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Mon, 9 Jun 2003 09:57:57 -0400 Subject: [vtkusers] Problem with ResetCameraClippingRange in parallel mode. Message-ID: <020001c32e8f$21d84b10$8ae4e9c0@sxapc> Greetings ! Are ResetCamera and ResetCameraClippingRange incompatible in parallel display mode ? We are using ResetCamera to make sure the camera is positioned correctly when an actor is created and added to the renderer. But we've find out that huge models were never visible. (Cliping Range problem) So we tried calling ResetCameraClippingRange right after ResetCamera but with no effect. Calling ResetCameraClippingRange without ResetCamera makes the object visible but if after that we call ResetCamera, everything dissapears. The thing is that we don't know were the models we have to display will be in 3D space and we don't know how big they will be... We need to manage both of course ! Thanks for any suggestions you may provide us ? ______________________________ Seb From brownr at ucalgary.ca Mon Jun 9 12:53:45 2003 From: brownr at ucalgary.ca (Robb Brown) Date: Mon, 9 Jun 2003 10:53:45 -0600 Subject: [vtkusers] VTK on OSX In-Reply-To: <5.2.0.9.2.20030606123837.00a85890@ofedrigo.mail.iastate.edu> Message-ID: These symbols are from Apple's OpenGL library. You may have to add "-framework AGL" to your gcc command. On Friday, June 6, 2003, at 12:54 PM, olivier Fedrigo wrote: > Thanks Chris, > > that was so helpful!!!! > now it is building but I have a new error message and I cannot figure > out how to fix tit! > It fails with errors: > > ld: undefined symbols: > > -aglChoosePixelFormat > -aglCreatecontext > -aglDescribeRenderer > etc... > > It is very frustrating to deal with this kind of bugs one after the > other. > > thanks for your help. > > Olivier > > At 07:51 AM 6/6/03 -0500, you wrote: >> At 1:06 PM -0500 06/05/2003, olivier Fedrigo wrote: >> >I tried the sample code given on VTK web page (the drawing of the >> sphere) and I obtained the following errors: >> > >> >"invalid use of undefined type 'struct vtkProperty'" >> >"forward declaration of 'struct vtkProperty'" >> > >> >any ideas? >> >> VTK uses a lot of forward declarations. It's a trade-off that makes >> compilation complete more quickly. Sometimes values are returned >> without their classes fully included. The consequence is that you may >> have to add a few more headers to your source code using VTK. >> >> In this case, you just need to add #include "vtkProperty.h" to your >> list of includes. Errors of the same type can usually be solved by >> including the appropriate header file. I have found vtkProperty and >> vtkImageData to be common offenders. >> >> Chris >> -- >> Chris Scharver >> Electronic Visualization Laboratory >> The University of Illinois at Chicago >> Ph: 312-996-3002 FAX: 312-413-7585 >> > > Olivier F?drigo > 240 Science II > Department of Zoology and Genetics > Iowa State University > Ames, IA 50011 > Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) > 294-8457 > http://www.mbb.iastate.edu/~gnaylor/Olivier.html > > _______________________________________________ > 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 > > _____________________________ Robb Brown Seaman Family MR Center Calgary, AB From cone at hpl.umces.edu Mon Jun 9 13:43:10 2003 From: cone at hpl.umces.edu (Randy Cone) Date: Mon, 9 Jun 2003 13:43:10 -0400 (EDT) Subject: [vtkusers] problem compiling with Linux/Java Message-ID: folks, I'm on a i386 linux box (RH8.0) and am trying to compile VTK-4.2.2 with java. I've used both the 1.4.1_03 and 1.3.1_08 java kits, but to no avail. VTK compiles okay without any additional wrappers. The failure looks like: [...] Building Java Test /usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class... /usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ /usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ 4 errors make[3]: *** [/usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Java] Error 2 make: *** [default_target] Error 2 Thanks, RC Randy Cone Horn Point Laboratory University of Maryland Center for Environmental Science phone#: 410-221-8330 fax#:410-221-8490 From jeff at cdnorthamerica.com Mon Jun 9 13:58:28 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 09 Jun 2003 13:58:28 -0400 Subject: [vtkusers] problem compiling with Linux/Java In-Reply-To: References: Message-ID: <3EE4CAC4.4060504@cdnorthamerica.com> did you enable Hybrid from cmake? -Jeff Randy Cone wrote: >folks, > >I'm on a i386 linux box (RH8.0) and am trying to compile VTK-4.2.2 with >java. I've used both the 1.4.1_03 and 1.3.1_08 java kits, but to no >avail. VTK compiles okay without any additional wrappers. > >The failure looks like: > >[...] > >Building Java Test /usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class... >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve >symbol >symbol : class vtkPlaneWidget >location: class vtk.vtkCanvas > protected vtkPlaneWidget pw = new vtkPlaneWidget(); > ^ >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve >symbol >symbol : class vtkBoxWidget >location: class vtk.vtkCanvas > protected vtkBoxWidget bw = new vtkBoxWidget(); > ^ >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve >symbol >symbol : class vtkPlaneWidget >location: class vtk.vtkCanvas > protected vtkPlaneWidget pw = new vtkPlaneWidget(); > ^ >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve >symbol >symbol : class vtkBoxWidget >location: class vtk.vtkCanvas > protected vtkBoxWidget bw = new vtkBoxWidget(); > ^ >4 errors >make[3]: *** [/usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class] >Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Wrapping_Java] Error 2 >make: *** [default_target] Error 2 > > >Thanks, >RC > >Randy Cone >Horn Point Laboratory >University of Maryland Center for Environmental Science >phone#: 410-221-8330 fax#:410-221-8490 >_______________________________________________ >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 > > > > From fong_yung at yahoo.com Mon Jun 9 14:49:31 2003 From: fong_yung at yahoo.com (Eric) Date: Mon, 9 Jun 2003 11:49:31 -0700 (PDT) Subject: [vtkusers] Make test failures Message-ID: <20030609184931.48297.qmail@web40407.mail.yahoo.com> Hi, I am trying to build a stable, working version of vtk 4.2 on RedHat Linux 8.0; however, after my built, a rather large percentage of tests seem to fail when a make test is performed. Is there any documentation on each specific test and what they mean when they fail? Thanks! Eric __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From mhp at dadlnet.dk Mon Jun 9 15:08:16 2003 From: mhp at dadlnet.dk (Morten H Pedersen) Date: Mon, 9 Jun 2003 21:08:16 +0200 Subject: [vtkusers] re: Principia Mathematica In-Reply-To: <003101c32dc3$c20f2170$6c5cfea9@awkwind> Message-ID: > Some of the guys behind Principia Mathematica are now involved > in the FOAM CFD code, see> www.nabla.co.uk Do you know if PM is totally abandonned? Morten H Pedersen From cone at hpl.umces.edu Mon Jun 9 16:06:02 2003 From: cone at hpl.umces.edu (Randy Cone) Date: Mon, 9 Jun 2003 16:06:02 -0400 (EDT) Subject: [vtkusers] problem compiling with Linux/Java In-Reply-To: <3EE4CAC4.4060504@cdnorthamerica.com> References: <3EE4CAC4.4060504@cdnorthamerica.com> Message-ID: Thanks, that did it! On Mon, 9 Jun 2003, Jeff Lee wrote: > did you enable Hybrid from cmake? > -Jeff > > Randy Cone wrote: > > >folks, > > > >I'm on a i386 linux box (RH8.0) and am trying to compile VTK-4.2.2 with > >java. I've used both the 1.4.1_03 and 1.3.1_08 java kits, but to no > >avail. VTK compiles okay without any additional wrappers. > > > >The failure looks like: > > > >[...] > > > >Building Java Test /usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class... > >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve > >symbol > >symbol : class vtkPlaneWidget > >location: class vtk.vtkCanvas > > protected vtkPlaneWidget pw = new vtkPlaneWidget(); > > ^ > >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve > >symbol > >symbol : class vtkBoxWidget > >location: class vtk.vtkCanvas > > protected vtkBoxWidget bw = new vtkBoxWidget(); > > ^ > >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve > >symbol > >symbol : class vtkPlaneWidget > >location: class vtk.vtkCanvas > > protected vtkPlaneWidget pw = new vtkPlaneWidget(); > > ^ > >/usr/space/VTK-4.2.2/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve > >symbol > >symbol : class vtkBoxWidget > >location: class vtk.vtkCanvas > > protected vtkBoxWidget bw = new vtkBoxWidget(); > > ^ > >4 errors > >make[3]: *** [/usr/space/VTK-4.2.2/Wrapping/Java/TestVTKCanvas.class] > >Error 1 > >make[2]: *** [default_target] Error 2 > >make[1]: *** [default_target_Wrapping_Java] Error 2 > >make: *** [default_target] Error 2 > > > > > >Thanks, > >RC > > > >Randy Cone > >Horn Point Laboratory > >University of Maryland Center for Environmental Science > >phone#: 410-221-8330 fax#:410-221-8490 > >_______________________________________________ > >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 > > > > > > > > > From vtk_chi at hotmail.com Mon Jun 9 17:03:18 2003 From: vtk_chi at hotmail.com (X. Chi) Date: Mon, 09 Jun 2003 21:03:18 +0000 Subject: [vtkusers] vtkExtractVOI help! Message-ID: Hi, all I have a vtkImageData and I use contour filter to create the 3D surface rendering. Due to the large set of data, I am trying to use vtkExtractVOI for local updating. But the problem is that vtk does not keep the vtkExtractVOI history. For example, when extracting part A of the whole image data (by moving the probe into that area), A will be displayed. But while extracting part B of the whole image data, part A would not be displayed, only part B is displayed. Can anybody tell me how I can keep the history of VOI? Thanks. _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From hongzhang77 at yahoo.com Mon Jun 9 19:26:09 2003 From: hongzhang77 at yahoo.com (hong zhang) Date: Mon, 9 Jun 2003 16:26:09 -0700 (PDT) Subject: [vtkusers] help on using Marching cubes Message-ID: <20030609232609.59438.qmail@web14102.mail.yahoo.com> Hi, I can't use vtkMarchingCubes because I can't find the .h file in the 'include' dir. Then I find it in 'Patented' dir but I can't use it because I need a .lib file.So how can I settle down this problem? Is there anybody have experients about using MarchingCubes?Any suggestion is appreciated. Thanks, Hong __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From oliver at afip.org Mon Jun 9 16:28:45 2003 From: oliver at afip.org (William Oliver) Date: Mon, 9 Jun 2003 16:28:45 -0400 Subject: [vtkusers] Compilation problem -- JAWT_GetAWT In-Reply-To: <20030609232609.59438.qmail@web14102.mail.yahoo.com> Message-ID: I recently upgraded the OS on my laptop, and decided to recompile VTK. My configuration: Toshiba 5205-S703 laptop Nvidia GeoForce 4 video 768 MB RAM 60 GB HD OS: Mandrake Linux 9.1 I downloaded VTK from the web site, set it up and compiled. I'm getting the following error for the java wrapper: /usr/local/vtk/VTKbuild/Wrapping/Java: building default_target Building dependencies. cmake.depends... Building executable /usr/local/vtk/VTKbuild/bin/VTKJavaExecutable... /usr/local/vtk/VTKbuild/bin/libvtkRenderingJava.so: undefined reference to `JAWT_GetAWT' collect2: ld returned 1 exit status make[3]: *** [/usr/local/vtk/VTKbuild/bin/VTKJavaExecutable] Error 1 make[2]: *** [default_target] Error 2 I have the Mandrake java rpms installed: % rpm -aq | grep j2 j2re-1.4.1_01-2mdk j2sdk-1.4.1_01-2mdk Poking around, it looks like JAWT_GetAWT is defined in jawt.h. I have the path to that in the ccmake. Any ideas? Thanks! billo William R Oliver, MD For PGP public key, send email to oliver at afip.org From godach at juno.com Mon Jun 9 21:54:09 2003 From: godach at juno.com (godach at juno.com) Date: Tue, 10 Jun 2003 01:54:09 GMT Subject: [vtkusers] vtkXMLUnstructuredGridWriter Problem Message-ID: <20030609.185501.5706.72612@webmail08.lax.untd.com> Hello all, I was wondering if anyone has used vtkXMLUnstructuredGridWriter to write a XML file without missing the "NumberOfPoints" attribute of , because in my case, that attribute was missing. If you did, then I was probably doing sth wrong. Thanks for any sharing and/or help! 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 hqzhou at nju.edu.cn Mon Jun 9 22:29:08 2003 From: hqzhou at nju.edu.cn (Huiqun Zhou) Date: Tue, 10 Jun 2003 10:29:08 +0800 Subject: [vtkusers] help on using Marching cubes References: <20030609232609.59438.qmail@web14102.mail.yahoo.com> Message-ID: <004001c32ef8$11d366a0$1a00a8c0@goofy> You need to get the source code and turn "on" VTK_USE_PATENTED by using CMake, then re-build vtkPatented.dll. If you are using a binary installation, you also need to copy the compiled vtkPatented.dll to x:\your vtk installation\bin, and vtkPatented.lib to x:\your vtk installation\lib\vtk, respectively. Finally, copy all header files from x:\your vtk source root\patented to x:\your vtk installation\include\vtk. If you have been using a build from vtk source code tree, you just need to add x:\your vtk source root\patented for path to header files, x:\your vtk source root\patented\release for path to vtkPatented.lib into your project setting, or the compiler's default setting. Hope this help you. Huiqun Zhou ----- Original Message ----- From: "hong zhang" To: Sent: Tuesday, June 10, 2003 7:26 AM Subject: [vtkusers] help on using Marching cubes > Hi, > I can't use vtkMarchingCubes because I can't find the > .h file in the 'include' dir. Then I find it in > 'Patented' dir but I can't use it because I need a > .lib file.So how can I settle down this problem? > Is there anybody have experients about using > MarchingCubes?Any suggestion is appreciated. > Thanks, > Hong > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > _______________________________________________ > 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 > From yass at uscx.net Tue Jun 10 04:50:30 2003 From: yass at uscx.net (yasser salman) Date: Tue, 10 Jun 2003 01:50:30 -0700 (PDT) Subject: [vtkusers] Hay.. 3D Volume.. Message-ID: <20030610085030.90414AB8E@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: -------------- next part -------------- An embedded message was scrubbed... From: yasser salman Subject: [vtkusers] 3D Volume.. Date: Mon, 9 Jun 2003 05:14:26 -0700 (PDT) Size: 5086 URL: From philip.jones at uk.cd-adapco.com Tue Jun 10 06:28:14 2003 From: philip.jones at uk.cd-adapco.com (Philip Morris Jones) Date: Tue, 10 Jun 2003 11:28:14 +0100 Subject: [vtkusers] Re: Principia Mathematica References: Message-ID: <024901c32f3b$0023d4b0$aa94c1c2@sally> Hi I seem to have been mis-informing people, the guy behind PM was Dave Hill who may possibly be found on davidhil at microsoft.com, apparently his new employer did not like him to do stuff outside :-) Philip Philip M Jones MA MSc MIMechE CEng CD adapco Group London Office Tel +44 (0) 20 7471 6200 philip.jones at uk.cd-adapco.com www.cd-adapco.com From john.biddiscombe at mirada-solutions.com Tue Jun 10 07:21:13 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 10 Jun 2003 12:21:13 +0100 Subject: [vtkusers] RPD instead of ...Principia Mathematica Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AF80@oxcore01.mirada-solutions.com> If anyone wants a gui vtk editor ..I've been planning on releasing RPD-2 (Rapid pipeline design) as a free for personal use tool. I was planning on finishing off a few things, but it may take me longer than planned. I'll try to upload it in a few days. (PS. If anyone has some web or ftp space that I can put it on, then I'd be most grateful, my own current ISP (soon to be changed) will only allow uploads via modem - it's about 15MB all included!) JB From marcio.mathias at edb.ericsson.se Tue Jun 10 07:39:40 2003 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Tue, 10 Jun 2003 08:39:40 -0300 Subject: [vtkusers] RPD instead of ...Principia Mathematica Message-ID: Hi, Please, keep the vtklist informed about the RPD-2 release. I am very interested on it. Regards, Marcio. -----Original Message----- From: John Biddiscombe [mailto:john.biddiscombe at mirada-solutions.com] Sent: ter?a-feira, 10 de junho de 2003 08:21 To: Philip Morris Jones; mhp at dadlnet.dk; vtkusers at public.kitware.com Subject: [vtkusers] RPD instead of ...Principia Mathematica If anyone wants a gui vtk editor ..I've been planning on releasing RPD-2 (Rapid pipeline design) as a free for personal use tool. I was planning on finishing off a few things, but it may take me longer than planned. I'll try to upload it in a few days. (PS. If anyone has some web or ftp space that I can put it on, then I'd be most grateful, my own current ISP (soon to be changed) will only allow uploads via modem - it's about 15MB all included!) JB _______________________________________________ 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 From sxa at fluent.com Tue Jun 10 09:26:33 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 10 Jun 2003 09:26:33 -0400 Subject: [vtkusers] Clipping range problem ! Message-ID: <005801c32f53$e92f7b60$8ae4e9c0@sxapc> Sorry for the repost ... Are ResetCamera and ResetCameraClippingRange incompatible in parallel display mode ? We are using ResetCamera to make sure the camera is positioned correctly when an actor is created and added to the renderer. But we've find out that huge models were never visible. (Clipping Range problem) So we tried calling ResetCameraClippingRange right after ResetCamera but with no effect. Calling ResetCameraClippingRange without ResetCamera makes the object visible but if after that we call ResetCamera, everything dissapears. The thing is that we don't know were the models we have to display will be in 3D space and we don't know how big they will be... We need to manage both of course ! Thanks for any suggestions you may provide us ? ______________________________ Seb From amit3 at cs.umbc.edu Tue Jun 10 10:32:47 2003 From: amit3 at cs.umbc.edu (Amit Joshi) Date: Tue, 10 Jun 2003 10:32:47 -0400 Subject: [vtkusers] Grid Lines Message-ID: <002a01c32f5d$2b8227c0$6700a8c0@amit> I was wondering if there is any way to produce grid lines in VTK. By grid lines I mean lines representing the grid of 3D coordinate space, so in addition to three axes and a bounding box for a dataset (using OutlineFilter), I still need to represend the 3D grid in order to use it as a part of annotation for the 'distortion filter' that I have developed. Amit -------------- next part -------------- An HTML attachment was scrubbed... URL: From hongzhang77 at yahoo.com Tue Jun 10 12:12:00 2003 From: hongzhang77 at yahoo.com (hong zhang) Date: Tue, 10 Jun 2003 09:12:00 -0700 (PDT) Subject: [vtkusers] Help on Exception with the Entry point Message-ID: <20030610161200.66806.qmail@web14107.mail.yahoo.com> Hi, When I use vtk,I get an exception error and the message is as below: 'The procedure entry point ?PrintSelf at vtkDataSetToPolyDataFilter@@UAEXAAVostream@@VvtkIndent@@@Z could not be located in the dynamic link library vtkFiltering.dll.' What's the problem?Is there any conflict?I use winxp and vc7.0. Thanks, Hong __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From sxa at fluent.com Tue Jun 10 15:38:28 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Tue, 10 Jun 2003 15:38:28 -0400 Subject: [vtkusers] Clipping range problem ! Message-ID: <008601c32f87$ddd26730$8ae4e9c0@sxapc> Sorry for the repost ... Are ResetCamera and ResetCameraClippingRange incompatible in parallel display mode ? We are using ResetCamera to make sure the camera is positioned correctly when an actor is created and added to the renderer. But we've find out that huge models were never visible. (Clipping Range problem) So we tried calling ResetCameraClippingRange right after ResetCamera but with no effect. Calling ResetCameraClippingRange without ResetCamera makes the object visible but if after that we call ResetCamera, everything dissapears. The thing is that we don't know were the models we have to display will be in 3D space and we don't know how big they will be... We need to manage both of course ! Thanks for any suggestions you may provide us ? ______________________________ Seb From thomas at cs.uno.edu Tue Jun 10 15:58:00 2003 From: thomas at cs.uno.edu (thomas) Date: Tue, 10 Jun 2003 14:58:00 -0500 Subject: [vtkusers] changing the resolution of 3D images Message-ID: <002401c32f8a$987f55a0$b17a1e89@POWERVCL2> two questions about 3D images : 1/ Is it possible to show only a part of an image and when I move to change this part ? For example to show only what the camera really see. Because I think that vtk recalculate all the points and not only the points that are visibles. 2/ I have a 3D image with 1000 points but when I zoom in i want to change the number of points to 10 000 is it possible? I want to do this because the speed decrease very quickly whan I zoom and to have a better resolution of my image when I am closer. thank you for your anser and sorry for my english Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsd at lorax.ca Tue Jun 10 17:34:22 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Tue, 10 Jun 2003 14:34:22 -0700 Subject: [vtkusers] Delaunay triangulation of point data Message-ID: <4CD2A83F-9B8B-11D7-83C2-000A9575B2AC@lorax.ca> I'm having trouble doing something very simple: read ASCII point data from a file, apply Delaunay triangulation, and visualize. I'm stuck at the beginning. I understand that I'm missing a step or two, I just can't seem to figure out how to fix it. Help appreciated (this should be an easy one). Thanks - Don Dunbar My data looks like this: ================== # vtk DataFile Version 3.0 Point data ASCII DATASET UNSTRUCTURED_GRID POINTS 20129 float 491534.14 5460893.29 -1.70 491508.13 5460934.29 0.20 (continued) My TCL code looks like this: ====================== package require vtk package require vtkinteraction vtkUnstructuredGridReader reader reader SetFileName "bathy.vtk" vtkPolyData profile profile SetPoints [reader GetOutput] vtkDelaunay3D del del SetInput profile del SetTolerance 0.01 del SetAlpha 0.2 del BoundingTriangulationOff The error generated is: ================== Error in startup script: vtk bad argument, type conversion failed for object vtkTemp0. Could not type convert vtkTemp0 which is of type vtkUnstructuredGrid, to type vtkPoints. Object named: profile, could not find requested method: SetPoints or the method was called with incorrect arguments. while executing "profile SetPoints [reader GetOutput]" From uvhm at rz.uni-karlsruhe.de Tue Jun 10 18:54:57 2003 From: uvhm at rz.uni-karlsruhe.de (Helena Hartfiel) Date: Wed, 11 Jun 2003 00:54:57 +0200 Subject: [vtkusers] transformation matrix Message-ID: <000801c32fa3$5106ca00$1d2f14ac@D403a> Hi All! Guess you have heard this question before, but I need at least to know, how to start or which classes to use. I have a PolyData (skull) and another PolyData, consisting only of points. What I need is the 4x4 transformation matrix from one to another. Then I should be able to transform the points, so they match best to the skull model. Hope it's enough information to answer. Lena -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsd at lorax.ca Tue Jun 10 18:40:03 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Tue, 10 Jun 2003 15:40:03 -0700 Subject: [vtkusers] Delaunay triangulation of point data In-Reply-To: Message-ID: <7A02CAE5-9B94-11D7-98E8-000A9575B2AC@lorax.ca> Thanks - that works (I said it would be easy). As a novice, I find one of the biggest problems in getting things to work is matching types correctly in the pipeline. On Tuesday, June 10, 2003, at 03:23 PM, Goodwin Lawlor wrote: > Try: > > vtkUnstructuredGridReader reader > reader SetFileName "bathy.vtk" > > vtkDelaunay3D del > del SetInput [reader GetOutput] > del SetTolerance 0.01 > del SetAlpha 0.2 > del BoundingTriangulationOff > > HTH > > Goodwin > ----- Original Message ----- > From: "Donald S Dunbar" > To: "VTK Users" > Sent: Tuesday, June 10, 2003 10:34 PM > Subject: [vtkusers] Delaunay triangulation of point data > > >> I'm having trouble doing something very simple: read ASCII point data >> from a file, apply Delaunay triangulation, and visualize. I'm stuck >> at >> the beginning. I understand that I'm missing a step or two, I just >> can't seem to figure out how to fix it. Help appreciated (this should >> be an easy one). >> >> Thanks - Don Dunbar >> >> My data looks like this: >> ================== >> # vtk DataFile Version 3.0 >> Point data >> ASCII >> DATASET UNSTRUCTURED_GRID >> POINTS 20129 float >> 491534.14 5460893.29 -1.70 >> 491508.13 5460934.29 0.20 >> (continued) >> >> My TCL code looks like this: >> ====================== >> package require vtk >> package require vtkinteraction >> vtkUnstructuredGridReader reader >> reader SetFileName "bathy.vtk" >> vtkPolyData profile >> profile SetPoints [reader GetOutput] >> vtkDelaunay3D del >> del SetInput profile >> del SetTolerance 0.01 >> del SetAlpha 0.2 >> del BoundingTriangulationOff From a.maclean at cas.edu.au Tue Jun 10 20:33:48 2003 From: a.maclean at cas.edu.au (Andrew J. P. Maclean) Date: Wed, 11 Jun 2003 10:33:48 +1000 Subject: [vtkusers] Coordinate Systems - polydata/imagedata Message-ID: <003b01c32fb1$1fe564f0$a50711ac@acfr.usyd.edu.au> If I create a structured grid from coordinate data in the form (x,y,z) and plot it as points the data looks OK (it is a right-handed coordinate system). However if I convert it to vtkImageData and display it, the same object seems to be in a different coordinate system i.e left-handed instead of right-handed. How do I keep the same coordinate system i.e. right-handed? Thanks Andrew ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.cas.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at opes.com.au Tue Jun 10 22:40:35 2003 From: paul at opes.com.au (Paul Tait) Date: Wed, 11 Jun 2003 10:40:35 +0800 Subject: [vtkusers] Radeon vs Nvidia Message-ID: <002301c32fc2$d61eced0$0a0aa8c0@godzilla> Anyone got a recommendations for a new video card. Whilst the latest radeon seems to rule the roost in most benchmarks the Nvidia still seems to beat it for OpenGL which is what VTK uses. Maybe even an older Ti4600 might be ok? Comments please Paul Tait --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.489 / Virus Database: 288 - Release Date: 10-Jun-03 From Mathieu.Malaterre at creatis.insa-lyon.fr Wed Jun 11 03:36:05 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 11 Jun 2003 09:36:05 +0200 Subject: [vtkusers] Radeon vs Nvidia In-Reply-To: <002301c32fc2$d61eced0$0a0aa8c0@godzilla> References: <002301c32fc2$d61eced0$0a0aa8c0@godzilla> Message-ID: <3EE6DBE5.9060809@creatis.insa-lyon.fr> Paul, You may want to read this thread : http://public.kitware.com/pipermail/vtkusers/2003-March/016407.html I don't think there is a big issue on Windows, but if you use Linux I would recommend you to use the 'official' nvidia driver ( extremely easy to install ) my 2 cents, mathieu Paul Tait wrote: > Anyone got a recommendations for a new video card. Whilst the latest radeon > seems to rule the roost in most benchmarks the Nvidia still seems to beat it > for OpenGL which is what VTK uses. Maybe even an older Ti4600 might be ok? > > Comments please > > Paul Tait > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.489 / Virus Database: 288 - Release Date: 10-Jun-03 > > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From knut.bredemeier at technoteam.de Wed Jun 11 04:18:23 2003 From: knut.bredemeier at technoteam.de (knut.bredemeier at technoteam.de) Date: 11 Jun 2003 08:18:23 UT Subject: [vtkusers] Contouring and coloring with other Skalars Message-ID: <00001491.3EE701E7@192.168.100.2> Hi, I have spent several days on discovering the vtk contouring functions for my problem but I couldn't find a good solution. Mayby someone of you can help me: I have a set of many vectors (10e6) with different amplitudes and I'm interested in visualising the contour surface of the vector startpoints. Normaly all startpoints are laying on a simple geometry like a sphere or cylinder but it could be more complicated. The surface should be colored with something representing a kind of density function. I did my attempts with vector startpoints laying on an cylinder. 1. Approach - I created a voxel volume 'MapImage' (vtkImageData, 6x6x80) and counted the vector amplitudes into the voxels. The voxel values represent my coloring scalars. - I created another vtkImageData 'IsoImage' with voxel values = 1 where 'MapImage' - voxel values > 0. - With vtkContourFilter(IsoImage, iso_value=1) I got the surface - vtkProbeFilter(MapImage, contour) colored the surface Result: The result (with lower voxel resolution 6x6x80) was not very nice but acceptable. With higher voxel resolution (10x10x100) there appear disturbing structures like parallel planes. 2. - I created a vtkUnstructuredGrid with points(x,y,z) for each voxel of 'IsoImage' > 0 - I added the scalars for contouring (Value = 1): pGrid->GetPointData()->SetScalars(pIsoScalars); - The scalars for coloring: pGrid->GetPointData()->AddArray(pMapScalars); Results: - vtkContourGrid: What a surprise, I got isopoints. Mayby I could create vtkVoxels and then Contour? - vtkSurfaceReconstructionFilter: The surface looks smooth but the coloring result with probing like in 1. looks different - vtkDelaunay3D -> vtkContourFilter(value=1 or 0)-> "No data to contour" -> What does the vtkDelaunay filter with my scalars? 3. - Unstructured grid as in 2. but Scalars = pMapScalars - Glyph3D with CubeSource, Scaling off Result: Each voxel is represented by a correctly colored cube. It looks like something I want to visualise if there weren't the visible boundaries between cubes. And it's very slow. I wonder if there is a filter to merge the common points of the cubes. I tried vtkCleanPoly but there was no change. I tried several other filters but with no success: vtkShepardMethod, vtkImplicitModeller, vtkGaussianSplatter Thanks for any suggestions Knut Bredemeier -- Dipl.-Ing. Knut Bredemeier TechnoTeam Bildverarbeitung GmbH Werner-von-Siemens-Stra?e 10 D - 98693 Ilmenau Tel: +49 3677 462416 Fax: +49 3677 462410 eMail: knut.bredemeier at technoteam.de From s_amit4u at rediffmail.com Wed Jun 11 06:05:12 2003 From: s_amit4u at rediffmail.com (amit shrivastava) Date: 11 Jun 2003 10:05:12 -0000 Subject: [vtkusers] Grid Lines Message-ID: <20030611100512.1458.qmail@webmail30.rediffmail.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From l-ferrer at nantes.fnclcc.fr Wed Jun 11 10:21:56 2003 From: l-ferrer at nantes.fnclcc.fr (Ferrer Ludovic) Date: Wed, 11 Jun 2003 14:21:56 +0000 Subject: [vtkusers] gcc3.2 compilation troubles Message-ID: <200306111421.56742.l-ferrer@nantes.fnclcc.fr> Hi all, I would like to install the latest release of vtk (4.2.2) on linux box with gcc3.2. after configuration with ccmake and make, I'have a compilation error as follow : In file included from /usr/include/c++/3.2/backward/strstream:51, from /usr/local/VTK-4.2.2/Common/vtkIOStream.h:31, from /usr/local/VTK-4.2.2/Common/vtkSystemIncludes.h:49, from /usr/local/VTK-4.2.2/Common/vtkIndent.h:27, from /usr/local/VTK-4.2.2/Common/vtkObjectBase.h:46, from /usr/local/VTK-4.2.2/Common/vtkObject.h:44, from /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:29, from /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:18: /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:36: parse error before `<' token /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:37: parse error before `<' token /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx: In constructor `vtkDataArraySelection::vtkDataArraySelection()': /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:42: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:43: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx: In destructor `virtual vtkDataArraySelection::~vtkDataArraySelection()': /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:49: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:50: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx: In member function `void vtkDataArraySelection::EnableArray(const char*)': /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:63: `::vector' undeclared (first use here) /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:63: `::string' undeclared (first use here) /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:63: `::iterator' undeclared (first use here) /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:63: parse error before `=' token /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:65: `i' undeclared (first use this function) .................................... .................................... /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:255: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:259: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:260: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx: In member function `void vtkDataArraySelection::CopySelections(vtkDataArraySelection*)': /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:274: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:275: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:276: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:31: forward declaration of `class vtkDataArraySelectionArrayNamesType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:277: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:278: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:279: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.h:32: forward declaration of `class vtkDataArraySelectionArraySettingsType' make[3]: *** [vtkDataArraySelection.o] Erreur 1 make[2]: *** [default_target] Erreur 2 make[1]: *** [default_target_Common] Erreur 2 make: *** [default_target] Erreur 2 Any ideas ? thanks From dliu at bme.jhu.edu Tue Jun 10 17:29:13 2003 From: dliu at bme.jhu.edu (Dengfeng Liu) Date: Tue, 10 Jun 2003 16:29:13 -0500 Subject: [vtkusers] vtk 4.2 on SGI machines Message-ID: <200306102029.h5AKTMX31080@oasis.rad.upenn.edu> I am trying to install VTK 4.2 with tcl wrapper under SGI IRIX 6.5.16m using gcc 3.2.1, but I got an error like: %%%%%%%%%%%%%%% ld32: WARNING 134: weak definition of vtkImageIterator::EndSpan()in /sbiasfw/academic/src/VTK-4.2.2/bin/libvtkImaging.a(vtkImageLuminance.o) preempts that weak definition in /sbiasfw/academic/src/VTK-4.2.2/bin/libvtkCommon.so. ld32: Giving up after printing 50 warnings. Use -wall to print all warnings. ld32: FATAL 9: I/O error (/usr/freeware/lib): No such device %%%%%%%%%%%%%%%% and then the compilation exit. Does someone have this problem? From liudf at jhu.edu Tue Jun 10 16:57:49 2003 From: liudf at jhu.edu (Dengfeng Liu) Date: Tue, 10 Jun 2003 16:57:49 -0400 (EDT) Subject: [vtkusers] vtk 4.2 on SGI machines Message-ID: <39890.165.123.243.168.1055278669.squirrel@webmail.bme.jhu.edu> I am trying to install VTK 4.2 with tcl wrapper under SGI IRIX 6.5.16m using gcc 3.2.1, but I got an error like: %%%%%%%%%%%%%%% ld32: WARNING 134: weak definition of vtkImageIterator::EndSpan()in /sbiasfw/academic/src/VTK-4.2.2/bin/libvtkImaging.a(vtkImageLuminance.o) preempts that weak definition in /sbiasfw/academic/src/VTK-4.2.2/bin/libvtkCommon.so.ld32: Giving up after printing 50 warnings. Use -wall to print all warnings. ld32: FATAL 9: I/O error (/usr/freeware/lib): No such device %%%%%%%%%%%%%%%% and then the compilation exit. Does someone have this problem? From brad.king at kitware.com Wed Jun 11 09:57:15 2003 From: brad.king at kitware.com (Brad King) Date: Wed, 11 Jun 2003 09:57:15 -0400 (EDT) Subject: [vtkusers] gcc3.2 compilation troubles In-Reply-To: <200306111421.56742.l-ferrer@nantes.fnclcc.fr> Message-ID: Hi Ferrer, > I would like to install the latest release of vtk (4.2.2) on linux box > with gcc3.2. [snip] > /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:36: parse error before > `<' token [snip] > /usr/local/VTK-4.2.2/Common/vtkDataArraySelection.cxx:63: `::vector' > undeclared (first use here) It looks like the configuration of whether the compiler has namespace std failed. However, I just built VTK 4.2 with gcc 3.2 without problems. Please send me the following: 1.) What version of CMake are you using? 2.) A copy of CMakeCache.txt from the build tree. 3.) A copy of CMakeError.log from the build tree. 4.) What was the exact CMake configuration command you used to generate the build tree? Thanks, -Brad From david at davidgunter.com Tue Jun 10 19:31:17 2003 From: david at davidgunter.com (David Gunter) Date: Tue, 10 Jun 2003 17:31:17 -0600 Subject: [vtkusers] Build completed on OS X, but examples trouble Message-ID: I've been working since the weekend to get VTK on my OS X 10.6 system. I have installed working Tcl/Tk 8.4 distributions, and a fresh Python 2.2 build. Both of these packages were built for Carbon. I downloaded a fresh install of VTK today, and ran ccmake and made sure everything was pointing to the right places. I then ran make and an hour later, VTK finished building with no error messages. Amazing. However, I can't seem to get the examples to run. If I run the GraphicsCxxTests I get a list of 7 options to run, but any one of them displays a quit window with some graphics that immediately disappears and then the GraphicsCxxTests program ends. Is this expected behavior? Thanks, David From brad.king at kitware.com Wed Jun 11 10:37:14 2003 From: brad.king at kitware.com (Brad King) Date: Wed, 11 Jun 2003 10:37:14 -0400 (EDT) Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: Message-ID: > If I run the GraphicsCxxTests I get a list of 7 options to run, but any > one of them displays a quit window with some graphics that immediately > disappears and then the GraphicsCxxTests program ends. > > Is this expected behavior? Yes, that is expected. Those "examples" are actually for testing. If you want to interact with them, run something like this: ./GraphicsCxxTests Mace -I The "-I" option tells it you are running the test by hand and want to interact with the window. -Brad From david at davidgunter.com Wed Jun 11 10:45:45 2003 From: david at davidgunter.com (David Gunter) Date: Wed, 11 Jun 2003 08:45:45 -0600 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: Message-ID: Brad, Thanks. This launched Mace and the window appears and remains. However, I cannot interact with it. The window never really comes to focus (title area remains gray) despite my clicking on it. I can kill it with the Aqua 'x' button but that's about it. -david On 6/11/03 8:37 AM, "Brad King" wrote: >> If I run the GraphicsCxxTests I get a list of 7 options to run, but any >> one of them displays a quit window with some graphics that immediately >> disappears and then the GraphicsCxxTests program ends. >> >> Is this expected behavior? > > Yes, that is expected. Those "examples" are actually for testing. If you > want to interact with them, run something like this: > > ./GraphicsCxxTests Mace -I > > The "-I" option tells it you are running the test by hand and want to > interact with the window. > > -Brad > From gte631d at mail.gatech.edu Wed Jun 11 10:49:25 2003 From: gte631d at mail.gatech.edu (Michael S. Vaz) Date: Wed, 11 Jun 2003 10:49:25 -0400 (EDT) Subject: [vtkusers] Identifying/Extracting the largest object (fwd) Message-ID: I need to identify and extract the largest object from a binary 3D image and can't seem to find a function in VTK to do this. In MATLAB R13 this is rather simple: con_param = 26 % set connectivity parameter to the strictest setting % T1 is the eroded binary 3D image (3D mtx) [L,num_connected_objs] = bwlabeln(T1,con_param); a = hist(L(:),[0:num_connected_objs]); [v,ind] = max([a(2:end)]); %v = max (single value), "ind" is vect. T2 = (L==ind); % T2 will set just the largest object to 1 % while everything else will be the background (=0) As am unable to find an eqivalent function to bwlabeln in python or vtk. I found a reference to some python code that will remove all the small objects from a Google search of [+python +segment +"largest object"], but unfortunately the source code no longer exists in the library the that link points to. If you know of some function code that will help me please let me know. Also, if anyone has suggestions to make the solution elegant, should the function need to be implemented, please let me know. The MATLAB algorithm is not exposed for bwlabeln(). Thanks, Sarju Michael S. Vaz 324607 Georgia Tech Station Atlanta Georgia, 30332 Internet: gte631d at prism.gatech.edu From ramakrishna.prakash at quest-global.com Wed Jun 11 11:04:14 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 11 Jun 2003 20:34:14 +0530 Subject: [vtkusers] Identifying/Extracting the largest object (fwd) In-Reply-To: Message-ID: <005901c3302a$b9b3e4c0$de0ba8c0@qtwblr01.questglobal.com> Did you have a look at vtkPolyDataConnectivityFilter? try using it with vtkPolyDataConnectivityFilter.SetExtractionModeToLargestRegion() Shyam -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Michael S. Vaz Sent: Wednesday, June 11, 2003 8:19 PM To: vtkusers at public.kitware.com Subject: [vtkusers] Identifying/Extracting the largest object (fwd) I need to identify and extract the largest object from a binary 3D image and can't seem to find a function in VTK to do this. In MATLAB R13 this is rather simple: con_param = 26 % set connectivity parameter to the strictest setting % T1 is the eroded binary 3D image (3D mtx) [L,num_connected_objs] = bwlabeln(T1,con_param); a = hist(L(:),[0:num_connected_objs]); [v,ind] = max([a(2:end)]); %v = max (single value), "ind" is vect. T2 = (L==ind); % T2 will set just the largest object to 1 % while everything else will be the background (=0) As am unable to find an eqivalent function to bwlabeln in python or vtk. I found a reference to some python code that will remove all the small objects from a Google search of [+python +segment +"largest object"], but unfortunately the source code no longer exists in the library the that link points to. If you know of some function code that will help me please let me know. Also, if anyone has suggestions to make the solution elegant, should the function need to be implemented, please let me know. The MATLAB algorithm is not exposed for bwlabeln(). Thanks, Sarju Michael S. Vaz 324607 Georgia Tech Station Atlanta Georgia, 30332 Internet: gte631d at prism.gatech.edu _______________________________________________ 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 From dsd at lorax.ca Wed Jun 11 19:25:37 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Wed, 11 Jun 2003 16:25:37 -0700 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: Message-ID: <01C3068D-9C64-11D7-A830-000A9575B2AC@lorax.ca> Have you built dynamically linked VTK libraries? I found that when I built only static libraries I had similar behaviour - no interaction with TCL examples. Building shared libraries fixed the problem. Don Dunbar On Wednesday, June 11, 2003, at 07:45 AM, David Gunter wrote: > Brad, > > Thanks. This launched Mace and the window appears and remains. > However, I > cannot interact with it. The window never really comes to focus (title > area > remains gray) despite my clicking on it. I can kill it with the Aqua > 'x' > button but that's about it. > > -david > > On 6/11/03 8:37 AM, "Brad King" wrote: > >>> If I run the GraphicsCxxTests I get a list of 7 options to run, but >>> any >>> one of them displays a quit window with some graphics that >>> immediately >>> disappears and then the GraphicsCxxTests program ends. >>> >>> Is this expected behavior? >> >> Yes, that is expected. Those "examples" are actually for testing. >> If you >> want to interact with them, run something like this: >> >> ./GraphicsCxxTests Mace -I >> >> The "-I" option tells it you are running the test by hand and want to >> interact with the window. >> >> -Brad >> > > _______________________________________________ > 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 > From david at davidgunter.com Wed Jun 11 19:33:41 2003 From: david at davidgunter.com (David Gunter) Date: Wed, 11 Jun 2003 17:33:41 -0600 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: <01C3068D-9C64-11D7-A830-000A9575B2AC@lorax.ca> Message-ID: Yes, they're dynamic. I'm using a prebuilt Python2.2 and Tcl/Tk8.4 for OS X Frameworks. Both are dynamic libraries. VTK built against them with no trouble as well. -david On 6/11/03 5:25 PM, "Donald S Dunbar" wrote: > Have you built dynamically linked VTK libraries? I found that when I > built only static libraries I had similar behaviour - no interaction > with TCL examples. Building shared libraries fixed the problem. > > Don Dunbar > > On Wednesday, June 11, 2003, at 07:45 AM, David Gunter wrote: > >> Brad, >> >> Thanks. This launched Mace and the window appears and remains. >> However, I >> cannot interact with it. The window never really comes to focus (title >> area >> remains gray) despite my clicking on it. I can kill it with the Aqua >> 'x' >> button but that's about it. >> >> -david >> >> On 6/11/03 8:37 AM, "Brad King" wrote: >> >>>> If I run the GraphicsCxxTests I get a list of 7 options to run, but >>>> any >>>> one of them displays a quit window with some graphics that >>>> immediately >>>> disappears and then the GraphicsCxxTests program ends. >>>> >>>> Is this expected behavior? >>> >>> Yes, that is expected. Those "examples" are actually for testing. >>> If you >>> want to interact with them, run something like this: >>> >>> ./GraphicsCxxTests Mace -I >>> >>> The "-I" option tells it you are running the test by hand and want to >>> interact with the window. >>> >>> -Brad >>> >> >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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 > From dsd at lorax.ca Wed Jun 11 20:20:58 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Wed, 11 Jun 2003 17:20:58 -0700 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: Message-ID: I'm referring to the switch: BUILD_SHARED_LIBS:BOOL=ON in the file CMakeCache.txt in the VTK build directory. On Wednesday, June 11, 2003, at 04:33 PM, David Gunter wrote: > Yes, they're dynamic. I'm using a prebuilt Python2.2 and Tcl/Tk8.4 for > OS X > Frameworks. Both are dynamic libraries. > > VTK built against them with no trouble as well. > > -david > > On 6/11/03 5:25 PM, "Donald S Dunbar" wrote: > >> Have you built dynamically linked VTK libraries? I found that when I >> built only static libraries I had similar behaviour - no interaction >> with TCL examples. Building shared libraries fixed the problem. >> >> Don Dunbar >> >> On Wednesday, June 11, 2003, at 07:45 AM, David Gunter wrote: >> >>> Brad, >>> >>> Thanks. This launched Mace and the window appears and remains. >>> However, I >>> cannot interact with it. The window never really comes to focus >>> (title >>> area >>> remains gray) despite my clicking on it. I can kill it with the Aqua >>> 'x' >>> button but that's about it. >>> >>> -david >>> >>> On 6/11/03 8:37 AM, "Brad King" wrote: >>> >>>>> If I run the GraphicsCxxTests I get a list of 7 options to run, but >>>>> any >>>>> one of them displays a quit window with some graphics that >>>>> immediately >>>>> disappears and then the GraphicsCxxTests program ends. >>>>> >>>>> Is this expected behavior? >>>> >>>> Yes, that is expected. Those "examples" are actually for testing. >>>> If you >>>> want to interact with them, run something like this: >>>> >>>> ./GraphicsCxxTests Mace -I >>>> >>>> The "-I" option tells it you are running the test by hand and want >>>> to >>>> interact with the window. >>>> >>>> -Brad >>>> >>> >>> _______________________________________________ >>> 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 >>> >> >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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 > From goodwin.lawlor at ucd.ie Wed Jun 11 21:48:19 2003 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Thu, 12 Jun 2003 02:48:19 +0100 Subject: [vtkusers] transformation matrix References: <000801c32fa3$5106ca00$1d2f14ac@D403a> Message-ID: Hi Lena, If your two skulls have corresponding points use vtkLandmarkTransform. If not use vtkIterativeClosestPointTransform. If you want to align a set of skulls then use vtkProcrustesAlignmentFilter. hth Goodwin ----- Original Message ----- From: Helena Hartfiel To: vtkusers at public.kitware.com Sent: Tuesday, June 10, 2003 11:54 PM Subject: [vtkusers] transformation matrix Hi All! Guess you have heard this question before, but I need at least to know, how to start or which classes to use. I have a PolyData (skull) and another PolyData, consisting only of points. What I need is the 4x4 transformation matrix from one to another. Then I should be able to transform the points, so they match best to the skull model. Hope it's enough information to answer. Lena From vtk_chi at hotmail.com Wed Jun 11 22:21:42 2003 From: vtk_chi at hotmail.com (X. Chi) Date: Thu, 12 Jun 2003 02:21:42 +0000 Subject: [vtkusers] need help on vtkThreadedController Message-ID: Hi, all, I need to use vtkThreadedController to create two threads for my simulation project. But I could not find the example codes on vtkThreadedController. Does anybody have any information on it or any suggestions where I can find it? Thanks and good day. chi _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From david at davidgunter.com Thu Jun 12 00:08:12 2003 From: david at davidgunter.com (David Gunter) Date: Wed, 11 Jun 2003 22:08:12 -0600 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: Message-ID: Oh, sorry. Yes, the build shared switch was on for the VTK build as well. -david On 6/11/03 6:20 PM, "Donald S Dunbar" wrote: > I'm referring to the switch: BUILD_SHARED_LIBS:BOOL=ON in the file > CMakeCache.txt in the VTK build directory. > > On Wednesday, June 11, 2003, at 04:33 PM, David Gunter wrote: > >> Yes, they're dynamic. I'm using a prebuilt Python2.2 and Tcl/Tk8.4 for >> OS X >> Frameworks. Both are dynamic libraries. >> >> VTK built against them with no trouble as well. >> >> -david >> >> On 6/11/03 5:25 PM, "Donald S Dunbar" wrote: >> >>> Have you built dynamically linked VTK libraries? I found that when I >>> built only static libraries I had similar behaviour - no interaction >>> with TCL examples. Building shared libraries fixed the problem. >>> >>> Don Dunbar >>> >>> On Wednesday, June 11, 2003, at 07:45 AM, David Gunter wrote: >>> >>>> Brad, >>>> >>>> Thanks. This launched Mace and the window appears and remains. >>>> However, I >>>> cannot interact with it. The window never really comes to focus >>>> (title >>>> area >>>> remains gray) despite my clicking on it. I can kill it with the Aqua >>>> 'x' >>>> button but that's about it. >>>> >>>> -david >>>> >>>> On 6/11/03 8:37 AM, "Brad King" wrote: >>>> >>>>>> If I run the GraphicsCxxTests I get a list of 7 options to run, but >>>>>> any >>>>>> one of them displays a quit window with some graphics that >>>>>> immediately >>>>>> disappears and then the GraphicsCxxTests program ends. >>>>>> >>>>>> Is this expected behavior? >>>>> >>>>> Yes, that is expected. Those "examples" are actually for testing. >>>>> If you >>>>> want to interact with them, run something like this: >>>>> >>>>> ./GraphicsCxxTests Mace -I >>>>> >>>>> The "-I" option tells it you are running the test by hand and want >>>>> to >>>>> interact with the window. >>>>> >>>>> -Brad >>>>> >>>> >>>> _______________________________________________ >>>> 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 >>>> >>> >>> _______________________________________________ >>> 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 >>> >> >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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 > From ramakrishna.prakash at quest-global.com Thu Jun 12 02:39:03 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Thu, 12 Jun 2003 12:09:03 +0530 Subject: [vtkusers] VTK and Graphics Context Message-ID: <001901c330ad$514fb700$de0ba8c0@qtwblr01.questglobal.com> Hello, I am using VTK 4.2 with Java 1.4.1_02 on Windows environment. Once I start my application everything seems to run perfectly. but as the time elapses say 10 minutes, I start getting serious repaint problems. The tool bar buttons start disappearing and they don't get painted properly. Also my other applications get affected by the VTK application as they take long time to come into focus. I am told that this might be problem because of graphics context not getting released. Can somebody please tell me how to come over this problem. This has been a major hinderance right from the start and I am unable to continue with any further development without solving this. Thanks Shyam From MRYWu at ntu.edu.sg Thu Jun 12 03:54:46 2003 From: MRYWu at ntu.edu.sg (Wu Ruoyun) Date: Thu, 12 Jun 2003 15:54:46 +0800 Subject: [vtkusers] Interactive 2D curve creation in VTK Window Message-ID: <9C9309FA33DB90499DE4B818889DF6F70284A2ED@exchange01.staff.main.ntu.edu.sg> Dear All, I am trying to let the user create NURBS curves over 2D medical images, then construct smooth surface by skinning over a stack of these 2D curves. User can interactively add, move, delete control points, and the curve will be generated/updated by passing through these control points. I was thinking about using vtkActor2D to represent the 2D curves. However, it make me uncomfortable as the curves are in fact 3D objects rather than just 2D annotations. And I don't want to manually control the size of the 2D curves when zooming the VTK renderer. Now the question is: if I want to use normal vtkActor to represent a curve, what is the best way to interact with that curve, or in another words, the control points on the curves? If the curve and the medical image slice are in the same renderer, the curve may not be always displayed over the image as they are exactly on the same plane, so how to display the curve to make sure that it is always visible over the image slice? Your help will be greatly appreciated! Best Wishes! Ruoyun From dariooliviero at libero.it Thu Jun 12 05:22:21 2003 From: dariooliviero at libero.it (=?iso-8859-1?Q?dariooliviero?=) Date: Thu, 12 Jun 2003 11:22:21 +0200 Subject: [vtkusers] =?iso-8859-1?Q?VTK_Countour_filter?= Message-ID: Dear VTK users, I would like to understand which is the relations between the contour value fixed reading image in 16 bit utilizing VTKVolume 16 reader and the contour value that I can fix using the vtkBMPreader. I mean the contour value 500 using vtkVolume 16 reader, to which value corrispond using vtkBMPreader? Thanks a lot to alla of you! Dario From tholozano at gmx.de Thu Jun 12 05:37:47 2003 From: tholozano at gmx.de (Thomas Lozano) Date: Thu, 12 Jun 2003 11:37:47 +0200 (MEST) Subject: [vtkusers] point probe from unstructured grid Message-ID: <16488.1055410667@www40.gmx.net> hi I use vtk as part of a visualisation pipeline and want to probe only some points of my source data. So I want to get the scalar at the specific xyz coordinates. My source data comes from an vtkUnstructuredGridReader. I tried to solve this problem like this: ... float p[3]; float zahl; float *rgb = new float[3]; float pcoords[3]; float *weights; int subId; vtkCell *cell; // example point p[0] = 1.5; p[1] = 1.0; p[2] = 6.0; vtkUnstructuredGridReader *reader = vtkUnstructuredGridReader::New(); reader->SetFileName("file.vtk"); reader->SetScalarsName("scalars"); reader->Update(); cell = reader->GetOutput()->FindAndGetCell(p, NULL, 0, 0.1, subId, pcoords, weights); vtkPointData *output = vtkPointData::New(); output->InterpolateAllocate(reader->GetOutput()->GetPointData()); output->InterpolatePoint(reader->GetOutput()->GetPointData(), 0, cell->GetPointIds(), weights); // and here should be what I?m looking for ! zahl = output->GetScalars()->GetTuple1(0); but I always get an windows error message. After debugging with visual i know that the method FindAndGetCell(p, NULL,...); didn?t return any values for weights, so it?s no wonder if the pipeline crashes. Is the probeFilter buggy, or does anyone has an idea?? thanks! thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From hel_carvalho at hotmail.com Thu Jun 12 06:23:05 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Thu, 12 Jun 2003 11:23:05 +0100 Subject: [vtkusers] Extracting Largest Polyline Message-ID: Hi users, I've extracted the contours of a medical image using the vtkMarchingSquares filter. The problem is I got 2 polylines instead of 1 as i expected. I've seen the points that make the polydata and it's ipossible (at least for me) to distinguish the points from the larger polyline from the smallest one. Is there anyway to get only the largest polyline???? Thanks in advance, Helder Carvalho _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Mathieu.Malaterre at creatis.insa-lyon.fr Thu Jun 12 06:31:20 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 12 Jun 2003 12:31:20 +0200 Subject: [vtkusers] Extracting Largest Polyline In-Reply-To: References: Message-ID: <3EE85678.7010903@creatis.insa-lyon.fr> Helder, Were you looking for vtkPolyDataConnectivityFilter::SetExtractionModeToLargestRegion http://www.vtk.org/doc/nightly/html/classvtkPolyDataConnectivityFilter.html#z1376_4 HTH mathieu Helder Carvalho wrote: > Hi users, > > I've extracted the contours of a medical image using the > vtkMarchingSquares filter. The problem is I got 2 polylines instead of 1 > as i expected. I've seen the points that make the polydata and it's > ipossible (at least for me) to distinguish the points from the larger > polyline from the smallest one. > > Is there anyway to get only the largest polyline???? > > Thanks in advance, > Helder Carvalho > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From yass at uscx.net Thu Jun 12 08:33:45 2003 From: yass at uscx.net (yasser salman) Date: Thu, 12 Jun 2003 05:33:45 -0700 (PDT) Subject: [vtkusers] GaussianSmooth Message-ID: <20030612123345.2E8B03F9C@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From c.p.botha at its.tudelft.nl Thu Jun 12 08:46:41 2003 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: 12 Jun 2003 14:46:41 +0200 Subject: [vtkusers] GaussianSmooth In-Reply-To: <20030612123345.2E8B03F9C@sitemail.everyone.net> References: <20030612123345.2E8B03F9C@sitemail.everyone.net> Message-ID: <1055422001.3091.10.camel@dutidad> On Thu, 2003-06-12 at 14:33, yasser salman wrote: > when i checked the vtkImageGaussianSmooth.h the function vtkImageGaussianSmooth::vtkImageGaussianSmoothis protected > what can i do? Please study all the examples. You'll note that the constructor of a VTK class is never directly used. This is also the reason why it's protected. If you study the examples you'll quickly see the correct way to instantiate a class. > also i didn't know the right values for standerdeviation,radius., > thanx for any help.. This is dependent on your data. Think about what a 3-d Gaussian looks like. Consider the features in your data that you would like to retain and the noise you would like to get rid of. Keep in mind that a Gaussian is very close to zero at a radius of about 4 times its standard deviation. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From keilmann at ira.uka.de Thu Jun 12 10:39:56 2003 From: keilmann at ira.uka.de (Eugen Keilmann) Date: Thu, 12 Jun 2003 16:39:56 +0200 Subject: [vtkusers] How to switch between buffer? Message-ID: <007001c330f0$7e5a7e90$3151038d@ira.uka.de> Hi, I would like to switch fast between the back and the front buffer of my graphics card. Can anybody help me, tell me the command? Thank you! Cheers, Eugen -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernadette.louat2 at mail.dcu.ie Thu Jun 12 10:46:12 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Thu, 12 Jun 2003 15:46:12 +0100 Subject: [vtkusers] libraries link error Message-ID: <002a01c330f1$5ecfbcb0$c3f9ce88@ranma> Hi all, I can't really start using vtk because I get the following error with all examples whan I run them. I'm using the following command for Cone.class: java -Djava.library.path="D:\Program files\vtk42\bin;D:\Program Files\vtk42\lib\vtk;D:\Program Files\vtk42\lib" -cp .;"D:\Program files\vtk42\bin\vtk.jar" Cone a.. java.lang.UnsatisfiedLinkError: D:\Program Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries b.. at java.lang.ClassLoader$NativeLibrary.load(Native Method) c.. at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) d.. at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) e.. at java.lang.Runtime.loadLibrary0(Runtime.java:788) f.. at java.lang.System.loadLibrary(System.java:832) g.. at Cone.(Cone.java:22) a.. Exception in thread "main" More over Windows gives this warning : the application ( java.exe) cannot start, it cannot find jawt.dll. You should reinstall the application. If you have any ideas... I have also another problem with vtkPanel and vtkCanvas... when I compile SimpleVTK.java, I get this strange error: a.. D:/Program Files/vtk42/bin/vtk.jar(vtk/vtkPanel.java) [7:1] class vtkPanel is public, should be declared in a file named vtkPanel.java b.. (source unavailable) c.. 1 error d.. Errors compiling SimpleVTK. But vtkPanel and vtkCanvas are actually in vtk.jar... I even try to recompile them and put them again in vtk.jar... it doesn't work Thanks in advance bernadette -------------- next part -------------- An HTML attachment was scrubbed... URL: From twtan at cheerful.com Thu Jun 12 10:43:58 2003 From: twtan at cheerful.com (Kevin Tiow Wee Tan) Date: Thu, 12 Jun 2003 15:43:58 +0100 Subject: [vtkusers] vtkImageViewer with Java interface Message-ID: <3EE891AE.4C97F2D7@cheerful.com> Hello, How are you? I am trying to create vtkImageViewer to display slices of raw data. I had managed to interact with vtkImageViewer (vtk Window) in z direction with a a java swing, JScrollBar component (on separate JFrame). The only weird thing is the vtkImageViewer window seems always on "Wait" mode (the mouse cursor turn to houglass when mouse move on top of it). I can't seems to able to resize the window. If any other application move on top, the whole vtkImageViewer will turn white, not refreshed automatically. Until I click on the scrollbar to trigger the Render method of vtkImageViewer, then the slice image will reappear. Any idea why vtkImageViewer happen this with java? (Tcl version is working fine) Any suggestion would be very much appreciated... Note: I have tried on using vtkRendererWindow with Java, that works fine... -- Thanks Kevin ********************************** Manchester Material Science Centre University of Manchester ---------------------------------- Centre for Virtual Environments University of Salford ********************************** From ramakrishna.prakash at quest-global.com Thu Jun 12 11:01:28 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Thu, 12 Jun 2003 20:31:28 +0530 Subject: [vtkusers] libraries link error In-Reply-To: <002a01c330f1$5ecfbcb0$c3f9ce88@ranma> Message-ID: <001501c330f3$80d03220$de0ba8c0@qtwblr01.questglobal.com> set D:\Program Files\vtk42\bin in system path. Also set the directory having jawt.dll in system path. it can be found at \jre\bin. make sure vtkPanel and vtkCanvas are in vtk.jar. if they are not, compile them with -d option and add the class file to vtk.jar Shyam -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Bernadette Louat Sent: Thursday, June 12, 2003 8:16 PM To: vtk users Subject: [vtkusers] libraries link error Hi all, I can't really start using vtk because I get the following error with all examples whan I run them. I'm using the following command for Cone.class: java -Djava.library.path="D:\Program files\vtk42\bin;D:\Program Files\vtk42\lib\vtk;D:\Program Files\vtk42\lib" -cp .;"D:\Program files\vtk42\bin\vtk.jar" Cone a.. java.lang.UnsatisfiedLinkError: D:\Program Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries b.. at java.lang.ClassLoader$NativeLibrary.load(Native Method) c.. at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) d.. at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) e.. at java.lang.Runtime.loadLibrary0(Runtime.java:788) f.. at java.lang.System.loadLibrary(System.java:832) g.. at Cone.(Cone.java:22) a.. Exception in thread "main" More over Windows gives this warning : the application ( java.exe) cannot start, it cannot find jawt.dll. You should reinstall the application. If you have any ideas... I have also another problem with vtkPanel and vtkCanvas... when I compile SimpleVTK.java, I get this strange error: a.. D:/Program Files/vtk42/bin/vtk.jar(vtk/vtkPanel.java) [7:1] class vtkPanel is public, should be declared in a file named vtkPanel.java b.. (source unavailable) c.. 1 error d.. Errors compiling SimpleVTK. But vtkPanel and vtkCanvas are actually in vtk.jar... I even try to recompile them and put them again in vtk.jar... it doesn't work Thanks in advance bernadette -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yann.CEZARD at ifp.fr Thu Jun 12 10:56:44 2003 From: Yann.CEZARD at ifp.fr (CEZARD Yann) Date: Thu, 12 Jun 2003 16:56:44 +0200 Subject: [vtkusers] libraries link error Message-ID: <488C02265C6AD611BF200002A542182F0262E780@irnts22.ifp.fr> Add to your PATH environnement variable : %JAVA_HOME%\jre\bin where %JAVA_HOME% is your JDK installation path. Should also work if you add it to the -Djava.library.path I think. That's where jawt.dll can be found. For the vtkPanel problem, I have no idea... Did you compile your VTK distrib yourself or install it from binaries ? Hope this help. Yann -----Message d'origine----- De : Bernadette Louat [mailto:bernadette.louat2 at mail.dcu.ie] Envoy? : jeudi 12 juin 2003 16:46 ? : vtk users Objet : [vtkusers] libraries link error Hi all, I can't really start using vtk because I get the following error with all examples whan I run them. I'm using the following command for Cone.class: java -Djava.library.path="D:\Program files\vtk42\bin;D:\Program Files\vtk42\lib\vtk;D:\Program Files\vtk42\lib" -cp .;"D:\Program files\vtk42\bin\vtk.jar" Cone java.lang.UnsatisfiedLinkError: D:\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 Cone.(Cone.java:22) Exception in thread "main" More over Windows gives this warning : the application ( java.exe) cannot start, it cannot find jawt.dll. You should reinstall the application. If you have any ideas... I have also another problem with vtkPanel and vtkCanvas... when I compile SimpleVTK.java, I get this strange error: D:/Program Files/vtk42/bin/vtk.jar(vtk/vtkPanel.java) [7:1] class vtkPanel is public, should be declared in a file named vtkPanel.java (source unavailable) 1 error Errors compiling SimpleVTK. But vtkPanel and vtkCanvas are actually in vtk.jar... I even try to recompile them and put them again in vtk.jar... it doesn't work Thanks in advance bernadette From oliveira_mc at yahoo.com.br Thu Jun 12 11:11:14 2003 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Thu, 12 Jun 2003 12:11:14 -0300 (ART) Subject: [vtkusers] Why VTK work with Borland Builder and not with Kylix ??? Message-ID: <20030612151114.17513.qmail@web20104.mail.yahoo.com> Hi users !!!! Why VTK work with Borland Builder and not with Kylix ??? Is very dificult built VTK with Kylix ?? Why CMake don?t do this ??? I?m new with Kilix and i would like to use VTK and Kylix. Tanks for your hints !!!!! _______________________________________________________________________ Yahoo! Mail Mais espa?o, mais seguran?a e gratuito: caixa postal de 6MB, antiv?rus, prote??o contra spam. http://br.mail.yahoo.com/ From furlanis at ele.uri.edu Thu Jun 12 11:12:59 2003 From: furlanis at ele.uri.edu (furlanis at ele.uri.edu) Date: Thu, 12 Jun 2003 11:12:59 -0400 Subject: [vtkusers] vtk- displacement Message-ID: <1055430779.3ee8987ba93d9@webmail.ele.uri.edu> I have a question: my group is running some stress/strain simulations on a beam that has some cross-fiber layers. and they have sent me files that have the stress&strain on a cross panel of it, (running lengthwise). They gave me node & element data for quadratic, cubic, and quartic solutions. i can draw them just fine, (pre-deformed) but when i go to add the displacement vector to the points, the data comes out angled, and not smooth. a) is there a vtk function that adds the displacement to the points? (as opposed to the way im looping it now?) b) since we are using above quadratic stuff, (the data is currently in polygon form) how do i get the edges to curve nicely? -Stephen Furlani University of Rhode Island From bernadette.louat2 at mail.dcu.ie Thu Jun 12 11:24:52 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Thu, 12 Jun 2003 16:24:52 +0100 Subject: [vtkusers] libraries link error References: <488C02265C6AD611BF200002A542182F0262E780@irnts22.ifp.fr> Message-ID: <001801c330f6$c51f5980$c3f9ce88@ranma> Thank you, the one which has worked is %JAVA_HOME%\jre\bin....in my Path variable, there are too much jawt.dll everywhere but I 'm still stuck with vtkPanel/vtkCanvas ... I have not done the compilation by myself... but the two classes are definitely in the vtk.jar again thanks a lot!!! ----- Original Message ----- From: "CEZARD Yann" To: "'Bernadette Louat'" ; "vtk users" Sent: Thursday, June 12, 2003 3:56 PM Subject: RE: [vtkusers] libraries link error Add to your PATH environnement variable : %JAVA_HOME%\jre\bin where %JAVA_HOME% is your JDK installation path. Should also work if you add it to the -Djava.library.path I think. That's where jawt.dll can be found. For the vtkPanel problem, I have no idea... Did you compile your VTK distrib yourself or install it from binaries ? Hope this help. Yann -----Message d'origine----- De : Bernadette Louat [mailto:bernadette.louat2 at mail.dcu.ie] Envoy? : jeudi 12 juin 2003 16:46 ? : vtk users Objet : [vtkusers] libraries link error Hi all, I can't really start using vtk because I get the following error with all examples whan I run them. I'm using the following command for Cone.class: java -Djava.library.path="D:\Program files\vtk42\bin;D:\Program Files\vtk42\lib\vtk;D:\Program Files\vtk42\lib" -cp .;"D:\Program files\vtk42\bin\vtk.jar" Cone java.lang.UnsatisfiedLinkError: D:\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 Cone.(Cone.java:22) Exception in thread "main" More over Windows gives this warning : the application ( java.exe) cannot start, it cannot find jawt.dll. You should reinstall the application. If you have any ideas... I have also another problem with vtkPanel and vtkCanvas... when I compile SimpleVTK.java, I get this strange error: D:/Program Files/vtk42/bin/vtk.jar(vtk/vtkPanel.java) [7:1] class vtkPanel is public, should be declared in a file named vtkPanel.java (source unavailable) 1 error Errors compiling SimpleVTK. But vtkPanel and vtkCanvas are actually in vtk.jar... I even try to recompile them and put them again in vtk.jar... it doesn't work Thanks in advance bernadette _______________________________________________ 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 From berk.geveci at kitware.com Thu Jun 12 11:30:32 2003 From: berk.geveci at kitware.com (Berk Geveci) Date: 12 Jun 2003 11:30:32 -0400 Subject: [vtkusers] vtk- displacement In-Reply-To: <1055430779.3ee8987ba93d9@webmail.ele.uri.edu> References: <1055430779.3ee8987ba93d9@webmail.ele.uri.edu> Message-ID: <1055431837.21061.14.camel@caemlyn.kitwarein.com> > a) is there a vtk function that adds the displacement to the points? (as opposed > to the way im looping it now?) book doesnt clarify> vtkWarp should do it. > b) since we are using above quadratic stuff, (the data is currently in polygon > form) how do i get the edges to curve nicely? unstructured grids, it still didnt smooth> VTK does not support this currently. To get VTK to render curved edges, you have to do the subdivision yourself. -Berk From billlist at nycap.rr.com Thu Jun 12 11:30:39 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Thu, 12 Jun 2003 11:30:39 -0400 Subject: [vtkusers] Why VTK work with Borland Builder and not with Kylix ??? In-Reply-To: <20030612151114.17513.qmail@web20104.mail.yahoo.com> Message-ID: <5.2.0.9.0.20030612112656.047eff58@pop.nycap.rr.com> Because, the kylix compiler does not work like other unix compilers. If you can send a small example of using kylix from the command line, that shows how to: 1. create a static library (libfoo.a) 2. create a shared library (libbar.so) 3. create an executable that links to foo and bar, and calls functions in them. If you can get those examples to me, it will be easy to get cmake to build with kylix. Sometime back, we tried this, and it was very difficult since kylix did not seem to use the standard unix ar and ld tools, and was incompatible with them. The only other option would be to have cmake generate the complicated IDE format for kylix on linux, which would be much more work. -Bill At 11:11 AM 6/12/2003, marcelo oliveira wrote: >Hi users !!!! > >Why VTK work with Borland Builder and not with Kylix >??? > >Is very dificult built VTK with Kylix ?? Why CMake >don?t do this ??? > >I?m new with Kilix and i would like to use VTK and >Kylix. > > >Tanks for your hints !!!!! > >_______________________________________________________________________ >Yahoo! Mail >Mais espa?o, mais seguran?a e gratuito: caixa postal de 6MB, antiv?rus, prote??o contra spam. >http://br.mail.yahoo.com/ >_______________________________________________ >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 From berk.geveci at kitware.com Thu Jun 12 11:42:52 2003 From: berk.geveci at kitware.com (Berk Geveci) Date: 12 Jun 2003 11:42:52 -0400 Subject: [vtkusers] vtk- displacement In-Reply-To: <1055431837.21061.14.camel@caemlyn.kitwarein.com> References: <1055430779.3ee8987ba93d9@webmail.ele.uri.edu> <1055431837.21061.14.camel@caemlyn.kitwarein.com> Message-ID: <1055432587.21049.16.camel@caemlyn.kitwarein.com> > > a) is there a vtk function that adds the displacement to the points? (as opposed > > to the way im looping it now?) > book doesnt clarify> > > vtkWarp should do it. I meant vtkWarpVector. From ajit_v_r at hotmail.com Thu Jun 12 12:25:19 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Thu, 12 Jun 2003 21:55:19 +0530 Subject: [vtkusers] Displaying a 3D SURFACE USING VTK Message-ID: Hello, I have been recently introduced to VTK. What I want to do is display a 3D surface using VTK. I have the X, Y, Z coordinates of every point on the surface (in an ordered fashion). The surface is textureless. i wish to display and illuminate the surface. Can you give me some hints, please? Thanks, ----Ajit _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp From yass at uscx.net Thu Jun 12 12:33:07 2003 From: yass at uscx.net (yasser salman) Date: Thu, 12 Jun 2003 09:33:07 -0700 (PDT) Subject: [vtkusers] again..GaussianSmooth Message-ID: <20030612163308.30A204633@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From twtan at cheerful.com Thu Jun 12 12:43:44 2003 From: twtan at cheerful.com (Kevin Tiow Wee Tan) Date: Thu, 12 Jun 2003 17:43:44 +0100 Subject: [vtkusers] How do get vtkImageReader/vtkImageViewer to read along X and Y direction? Message-ID: <3EE8ADC0.B71C7268@cheerful.com> Hello, I used following to code to read a raw-byte format file: reader.SetFilename(filename); reader.SetDataExtent(0, xDim-1, 0, yDim-1, 0, zDim-1); reader.FileDimensionality(3); reader.DataScalarTypeToUnsingedChar(); reader.Update(); and I passed to vtkImageViewer to view images such as following: imageViewer.SetInput(reader.GetOutput()); imageViewer.SetSize(xDim, yDim); imageViewer.Render(); The above code works fine if I wanted to view along Z direction, by using imageViewer.SetZSclice() method. How easy that I can get vtkImageReader to read along X or Y direction OR get vtkImageViewer to view along X or Y direction? The only thing I can think of is using SetTransform() method under vtkImageReader... Do I need to make any changes for the xDim, yDim, zDim values under SetDataExtent () method? or do I need to read byte-by-byte along X and Y directions (the hard way)? Any suggestion would be very much appreciated... -- Thanks Kevin ********************************** Manchester Material Science Centre University of Manchester ---------------------------------- Centre for Virtual Environments University of Salford ********************************** From brad.king at kitware.com Thu Jun 12 13:30:28 2003 From: brad.king at kitware.com (Brad King) Date: Thu, 12 Jun 2003 13:30:28 -0400 (EDT) Subject: [vtkusers] vtkXMLUnstructuredGridWriter Problem In-Reply-To: <20030609.185501.5706.72612@webmail08.lax.untd.com> Message-ID: > I was wondering if anyone has used vtkXMLUnstructuredGridWriter to write > a XML file without missing the "NumberOfPoints" attribute of , > because in my case, that attribute was missing. If you did, then I was > probably doing sth wrong. Thanks for any sharing and/or help! I'm guessing you're using VTK 4.2. This is a bug that has been fixed for a few weeks in the CVS version. The fix will be included in VTK 4.2.3. For now, you can make the fix yourself: In VTK/IO/vtkXMLUnstructuredGridWriter.cxx, make this change: void vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes() { vtkUnstructuredGrid* input = this->GetInput(); this->WriteScalarAttribute("NumberOfCells", input->GetNumberOfCells()); } becomes void vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes() { this->Superclass::WriteInlinePieceAttributes(); // <---- add this line vtkUnstructuredGrid* input = this->GetInput(); this->WriteScalarAttribute("NumberOfCells", input->GetNumberOfCells()); } -Brad From jdhunter at ace.bsd.uchicago.edu Thu Jun 12 13:48:38 2003 From: jdhunter at ace.bsd.uchicago.edu (John Hunter) Date: Thu, 12 Jun 2003 12:48:38 -0500 Subject: [vtkusers] image reader data spacing and IPW Message-ID: I am reading in some CT data with a vtkVolume16Reader and visualizing it with vtkImagePlaneWidgets. The data are 512x512 by 91 slices and the width and height are 25cm and the slices are 0.1cm apart. I am making the following call to set data spacing reader.SetDataSpacing(25.0/512, 25.0/512, 0.1) but the planewidgets along the interpolated (slice) dimension appear a little squished. The CT is of the head, and the data are collected in the transverse plane. The sagital and coronal orientations of the plane widgets appear compressed along the slice axis. I am wondering if I am not setting the data spacing properly, or if I am experiencing something unexpected from the vtkImageReslice operations of the plane widget. For example, if the reslicer interpolates up to a larger numbr of slices slices, or something like that, will the data spacing set in the reader be respected and scaled appropriately? Thanks, John Hunter From stefan.bruckner at chello.at Thu Jun 12 14:23:30 2003 From: stefan.bruckner at chello.at (Stefan Bruckner) Date: Thu, 12 Jun 2003 20:23:30 +0200 Subject: [vtkusers] Voxelizing geometry Message-ID: <000a01c3310f$b9fde300$0100a8c0@SID> Hi! I am trying to voxelize a geometric object and then perform volume rendering, however, I can't seem to get it working: vtkSphereSource *sphere = vtkSphereSource::New(); sphere->SetThetaResolution(30); sphere->SetPhiResolution(30); vtkVoxelModeller *modeller = vtkVoxelModeller::New(); modeller->SetSampleDimensions(64,64,64); modeller->SetInput(sphere->GetOutput()); vtkCastToConcrete *caster = vtkCastToConcrete::New(); caster->SetInput(modeller->GetOutput()); I pass the result of "caster->GetStructuredPointsOutput()" to the volume mapper. After rather lengthy processing I get the following error message in the output window, and the rendering shows nothing. "ERROR: In C:\martink\vtk42\VTK\Filtering\vtkImageToImageFilter.cxx, line 94 vtkImageClip (0x054BD9A8): ExecuteInformation: Input is not set." What am I doing wrong? Can anyone please assist me with some sample code or point me to an example (I didn't mange to find examples for voxelization). Thanks, Stefan Bruckner From nick.smethurst at free.fr Thu Jun 12 14:51:10 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Thu, 12 Jun 2003 20:51:10 +0200 Subject: [vtkusers] Displaying a 3D SURFACE USING VTK In-Reply-To: References: Message-ID: <200306122051.10408.nick.smethurst@free.fr> Hi Ajit I posted some code last month to do this kind of thing. Maybe it will do what you want. You can see the post here: http://public.kitware.com/pipermail/vtkusers/2003-May/018136.html Le Jeudi 12 Juin 2003 18:25, Ajit Rajwad? a ?crit : > Hello, > > I have been recently introduced to VTK. What I want to do is display a > 3D surface using VTK. I have the X, Y, Z coordinates of every point on > the surface (in an ordered fashion). The surface is textureless. i wish > to display and illuminate the surface. > > Can you give me some hints, please? > > Thanks, > ----Ajit From hvidal at tesseract-tech.com Thu Jun 12 15:42:55 2003 From: hvidal at tesseract-tech.com (H.Vidal, Jr.) Date: Thu, 12 Jun 2003 15:42:55 -0400 (EDT) Subject: [vtkusers] SetArray method in tcl Message-ID: I am poking around with user of SWIG to bridge to tcl and to vtk. Mostly, this has to do with data acq. system into vtk and speed. This question seems to have been posed before on this list, but I could not find a response. Are methods to vtkIntArray, or any other data set child, limited to none-direct-pointer access stuff from tcl? For example, does vtkIntArray::SetArray(int *array, vtkIdType id,saveFlag sf) work from within tcl? When I try to do this with a proper pointer to array and other good values like this: vtkIntArray iArray [get pointer to int array of correct size into pI] iArr SetArray $pI 262144 1 The error I see is: Object named: iArray, could not find requested method: SetArray or the method was called with incorrect arguments. Any thoughts? Would be most appreciated! Thanks. Hernando Vidal, Jr. Tesseract Technology From piantado at email.unc.edu Thu Jun 12 15:50:41 2003 From: piantado at email.unc.edu (piantado at email.unc.edu) Date: Thu, 12 Jun 2003 15:50:41 -0400 Subject: [vtkusers] Cannot set range values on vtkXYPlotActor Message-ID: <1055447441.3ee8d991cd1a2@webmail0.isis.unc.edu> Hi, I'm working in java, trying to set the X range on a vtkXYPlotActor. I'm trying to change the range values using plot.SetXRange(-n, n), where n is 10, 15, 20 25, ... 50. It works fine for all values except n=25 and n=30. When the range is set to these values, the graph's X axis goes from -50 to 30. I tried using plot.GetXAxisActor2D.SetRange(-n, n), and this keeps the data in the correct range but the axis itself is still wrong. Any thoughts? Thanks, ++Steve From c.p.botha at its.tudelft.nl Thu Jun 12 16:46:47 2003 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Thu, 12 Jun 2003 22:46:47 +0200 Subject: [vtkusers] again..GaussianSmooth In-Reply-To: <20030612163308.30A204633@sitemail.everyone.net> References: <20030612163308.30A204633@sitemail.everyone.net> Message-ID: <20030612204647.GA4870@dutidad.twi.tudelft.nl> On Thu, Jun 12, 2003 at 09:33:07AM -0700, yasser salman wrote: > me be i have a missunderstanding.., i use more than filter directly just > like those in my project and no problem!!.. just include..plz tell me what > what actually my problem. No, you really aren't. The constructors of VTK classes are deliberately protected so that you can't use them. You should make use of the static New() method to instantiate a VTK object. Please study the examples. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From jeando.barnichon at free.fr Thu Jun 12 17:08:49 2003 From: jeando.barnichon at free.fr (Jean-Dominique Barnichon) Date: Thu, 12 Jun 2003 23:08:49 +0200 Subject: [vtkusers] How to transform the result of vtkFeatureEdges in a single polyline? Message-ID: Hi, after a performing a constrained vtkDelaunay2D, I extract the outer boundary of the mesh using the vtkFeatureEdges filter. As a result, I obtain the mesh boundary described as a sum of all the boundary segments (edges). I need to transform all these segments in a single polyline, which would require to : - sort the segments in a consecutive order, - remove duplicate points. Does anybody know if an existing vtk filter could do the job? Thanks Jean-Do // Create the input data (points and constrained lines) vtkPolyData *MntData = vtkPolyData::New(); MntData->SetPoints(m_pMeshPoints); MntData->SetLines(m_pLines); MntData->Update(); // Apply vtkDelaunay2D filter vtkDelaunay2D *Del = vtkDelaunay2D::New(); Del->SetInput(MntData); Del->SetSource(MntData); Del->BoundingTriangulationOff(); Del->SetTolerance(0.001); Del->SetAlpha(0.0); Del->Update(); // Get output data vtkPolyData *MeshData = vtkPolyData::New(); MeshData = Del->GetOutput(); MeshData->Update(); // Apply vtkFeatureEdges filter to Extract the boundary from the output data vtkFeatureEdges *fe = vtkFeatureEdges::New(); fe->SetInput(MeshData); fe->ManifoldEdgesOff(); fe->NonManifoldEdgesOff(); fe->FeatureEdgesOff(); fe->BoundaryEdgesOn(); // Get the boundary data vtkPolyData *BoundaryData = vtkPolyData::New(); BoundaryData = fe->GetOutput(); BoundaryData ->Update(); From hvidal at tesseract-tech.com Thu Jun 12 17:09:05 2003 From: hvidal at tesseract-tech.com (H.Vidal, Jr.) Date: Thu, 12 Jun 2003 17:09:05 -0400 (EDT) Subject: [vtkusers] raw buffer access in Tcl Message-ID: I just discovered that many vtk in objects in Tcl have a ListMethods method that dumps out available methods on object. Many methods for some objects that are listed in Doxygen listing are not listed in ListMethods output. Specifically, it seems that none of the raw pointer access calls for things like vtkIntArray ( or any vtkDataArray child class) have exposed things like GetPointer() in Tcl, whereas header files in C++ seem to 'publicly' expose these methods. Why is this? Tcl is made to glue very nicely with C, so gluing vtk with more (high speed) C, say for acquisition and data loading purposes, would seem a very logical thing. Any thoughts from experienced developers and/or users? H.Vidal, Jr. From David.Pont at ForestResearch.co.nz Thu Jun 12 20:21:44 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Fri, 13 Jun 2003 12:21:44 +1200 Subject: [vtkusers] raw buffer access in Tcl Message-ID: I have thought for a while that if the vtk build process can auto-generate wrappers for other languages then why not for C++. This would give 'introspection' capabilities which would be very useful to make a vtk pipeline editor... my 2c, Dave Pont |--------+---------------------------------> | | "H.Vidal, Jr." | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 13/06/2003 09:09 | | | Please respond to | | | hvidal | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: "[vtkusers]" | | cc: | | Subject: [vtkusers] raw buffer access in Tcl | >------------------------------------------------------------------------------------------------------------| I just discovered that many vtk in objects in Tcl have a ListMethods method that dumps out available methods on object. Many methods for some objects that are listed in Doxygen listing are not listed in ListMethods output. Specifically, it seems that none of the raw pointer access calls for things like vtkIntArray ( or any vtkDataArray child class) have exposed things like GetPointer() in Tcl, whereas header files in C++ seem to 'publicly' expose these methods. Why is this? Tcl is made to glue very nicely with C, so gluing vtk with more (high speed) C, say for acquisition and data loading purposes, would seem a very logical thing. Any thoughts from experienced developers and/or users? H.Vidal, Jr. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From ramakrishna.prakash at quest-global.com Fri Jun 13 01:28:33 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 13 Jun 2003 10:58:33 +0530 Subject: [vtkusers] vtkThreadedController Message-ID: <000601c3316c$a21c52a0$de0ba8c0@qtwblr01.questglobal.com> Hi, Can somebody tell me how to use vtkThreadedController or anyother vtk classes to execute a single method with multiple threads using Java. I saw the documentation and there is no Java implementation for setting multiple methods or single methods. Thanks Shyam From nick.smethurst at free.fr Fri Jun 13 02:25:14 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Fri, 13 Jun 2003 08:25:14 +0200 Subject: [vtkusers] Displaying a 3D SURFACE USING VTK In-Reply-To: References: Message-ID: <200306130825.14387.nick.smethurst@free.fr> Hi there again Ajit You need to set up and connect your topology (vtkCellArray) otherwise VTK has nothing to draw. The relevant bit of code in the example is: // Construct triangle strip topology. // The number of points in a cell is twice the number of columns. vtkIdType pnt[2*cols]; // Loop for each row pair (the number of rows less one). for (int j=0; jInsertNextCell(p,pnt); } surfPolyData->SetPoints(surfPoints); surfPolyData->SetStrips(surfCells); You could construct this differently if you wanted, but triangle strips are meant to be efficient. Also, maybe its better to use a vtkPolyDataMapper than a vtkDataSetMapper. Regards Nick Le Vendredi 13 Juin 2003 01:49, Ajit Rajwad? a ?crit : > Thanks. Okay here is what I tried, but when I run my program, i dont get > anything on the display. What could be happening? Could you give me a > hint? > > =============================================================== > vtkRenderer *renderer = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(renderer); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > vtkPoints* surfPoints = vtkPoints::New(); > vtkCellArray* surfCells = vtkCellArray::New(); > vtkPolyData* surfPolyData = vtkPolyData::New(); > vtkElevationFilter* surfElevation = vtkElevationFilter::New(); > vtkPolyDataNormals* surfNormals = vtkPolyDataNormals::New(); > > fs = fopen (fileName,"r"); > i = 0; > surfPoints->SetNumberOfPoints (8000); > while (fgets (nextLine,100,fs)) > { > // Basically reading x,y,z coordinates from a file. > temp = (char*)strtok (nextLine," \n"); > point[0] = (float)(atof (temp)); > > temp = (char*)strtok (NULL," \n"); > point[1] = (float)(atof (temp)); > > temp = (char*)strtok (NULL," \n"); > point[2] = (float)(atof(temp)); > > surfPoints->SetPoint(i,point); > i = i + 1; > } > > > surfPolyData->SetPoints(surfPoints); > > surfElevation->SetInput(surfPolyData); > surfElevation->SetLowPoint(0.0, 0.0, 120); > surfElevation->SetHighPoint(0.0, 0.0, 20); // For shading. > surfNormals->SetInput(surfElevation->GetPolyDataOutput()); > surfNormals->SetFeatureAngle(80); > > vtkDataSetMapper *volMapper = vtkDataSetMapper::New (); > volMapper->SetInput (surfElevation->GetOutput()); > > vtkActor *volActor = vtkActor::New(); > volActor->SetMapper(volMapper); > > renderer->AddActor(volActor); > renderer->SetBackground(1,1,1); > renWin->SetSize(450,450); > > // interact with data > renWin->Render(); > iren->Start(); > From vermaas at astron.nl Fri Jun 13 03:10:12 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 13 Jun 2003 09:10:12 +0200 Subject: [vtkusers] how do I traverse the scalars of a vtkImageData? Message-ID: Hi, To make volume rendering possible I want to convert the scalars in an vtkImageData to unsigned chars. I need to change them and make them range from 0 - 255. I used to use SetScalar, but that doesn't seem to work any longer in VTK4. So what is the best way to traverse the scalar values in a vtkImageData? (getting, changing and setting the values?). Greetings, Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 13 03:43:35 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 13 Jun 2003 09:43:35 +0200 Subject: [vtkusers] how do I traverse the scalars of a vtkImageData? In-Reply-To: References: Message-ID: <3EE980A7.4080001@creatis.insa-lyon.fr> Nico, imagedata->Update(); //important float minmax[2] = imagedata->GetScalarRange(); vtkImageShiftScale::SetShift(-minmax[0]); vtkImageShiftScale::SetScale(255./(minmax[1]-minmax[0])); vtkImageShiftScale::SetOutputScalarTypeToUnsignedChar () See: http://www.vtk.org/doc/nightly/html/classvtkImageShiftScale.html HTH mathieu Nico Vermaas wrote: > Hi, > > To make volume rendering possible I want to convert the scalars in an vtkImageData to unsigned chars. I need to change them and make them range from 0 - 255. > > I used to use SetScalar, but that doesn't seem to work any longer in VTK4. So what is the best way to traverse the scalar values in a vtkImageData? (getting, changing and setting the values?). > > Greetings, > > Nico > > > ==================================================== > 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://public.kitware.com/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 I.deBoer at polytec.de Fri Jun 13 04:31:02 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Fri, 13 Jun 2003 10:31:02 +0200 Subject: [vtkusers] vtkCamera question... Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD986C977@02polywbr.waldbronn.polytec.de> Hi... I have a small problem with setting a new angle to the camera... I have this piece of code... float fElevation = 90.0f; float* angles = m_pvtkCamera->GetOrientation(); m_pvtkCamera->Elevation(-angles[0]); m_pvtkCamera->Elevation(fElevation); m_pvtkCamera->Modified(); angles = m_pvtkCamera->GetOrientation(); Why is angels[0] in the end not 90.0f ?? Instead every angels[i] changes to some weired value ?! greets Ingo From Cedric.Le.Maitre at ifremer.fr Fri Jun 13 05:25:29 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Fri, 13 Jun 2003 11:25:29 +0200 Subject: [vtkusers] Volume rendering - resolution Message-ID: <3EE99889.A4D1645B@ifremer.fr> Hi, I'm a VTK beginner and i'm looking at volume rendering for acoustic fish schools vizualisation. I'd retrieve a code based on VTK2.4 wich display a high resolution image after the volume rendering computation (cf. 3D-volum-high-resol.jpg). And when we want to interact with the scene (translation, rotation...) it goes on a low level rresolution display (cf. 3D-volum-low-resol.jpg). I don't know why ? is it automatic with VTK volume rendering ? I have to improve performance for this vizualition. vtkLODProp3D seems interesting for that, because it work with a Level Of Detail function of frame rate. This class seems inexistant in VTK2.4, could it be that implementation which work with my existant rendering ? Every information, news on vtkLODProp3D or vtkVolumeRendering are welcome. Regards, Cedric. -------------- next part -------------- A non-text attachment was scrubbed... Name: 3D-volum-low-resol.jpg Type: image/jpeg Size: 12214 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3D-volum-high-resol.jpg Type: image/jpeg Size: 14240 bytes Desc: not available URL: From R.Fureder at exeter.ac.uk Fri Jun 13 05:56:23 2003 From: R.Fureder at exeter.ac.uk (=?iso-8859-1?Q?Reinhold_F=FCreder?=) Date: Fri, 13 Jun 2003 10:56:23 +0100 Subject: [vtkusers] Voxelizing geometry In-Reply-To: <000a01c3310f$b9fde300$0100a8c0@SID> Message-ID: <004201c33192$0c5ccb20$b0f4ad90@janus> Hi Stefan, vtkVoxelModeller is, as far as I know, the only filter which uses the bit scalar type internally. And I think no other filter can deal with it (not even vtkImageCast). So, the next filter in the pipeline tends to report to have no input data. In the example of vtkVoxelModeller a workaround seems to be necessary: vtkVoxelModeller *voxelModel = vtkVoxelModeller::New (); ... vtkDataSetWriter *writer = vtkDataSetWriter::New (); writer->SetFileName ("voxelModel.vtk"); writer->SetInput (voxelModel->GetOutput ()); writer->Update (); reader = vtkDataSetReader::New (); reader->SetFileName ("voxelModel.vtk"); And yes, it is very slow (but generic). Furthermore, after applying a surface rendering to the resulting data I could look inside the visualized object - but maybe this was caused by my data??? Experienced VTK gurus, please correct me, if anything stated here is wrong. Reinhold > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com] On Behalf Of > Stefan Bruckner > Sent: Thursday, June 12, 2003 7:24 PM > To: vtkusers at public.kitware.com > Subject: [vtkusers] Voxelizing geometry > > > Hi! > > I am trying to voxelize a geometric object and then perform > volume rendering, however, I can't seem to get it working: > > vtkSphereSource *sphere = vtkSphereSource::New(); > sphere->SetThetaResolution(30); > sphere->SetPhiResolution(30); > > vtkVoxelModeller *modeller = vtkVoxelModeller::New(); > modeller->SetSampleDimensions(64,64,64); > modeller->SetInput(sphere->GetOutput()); > > vtkCastToConcrete *caster = vtkCastToConcrete::New(); > caster->SetInput(modeller->GetOutput()); > > I pass the result of "caster->GetStructuredPointsOutput()" to > the volume mapper. > > After rather lengthy processing I get the following error > message in the output window, and the rendering shows nothing. > > "ERROR: In C:\martink\vtk42\VTK\Filtering\vtkImageToImageFilter.cxx, > line 94 > vtkImageClip (0x054BD9A8): ExecuteInformation: Input is not set." > > What am I doing wrong? Can anyone please assist me with some > sample code or point me to an example (I didn't mange to find > examples for voxelization). > > Thanks, > Stefan Bruckner > > > > _______________________________________________ > 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 From vermaas at astron.nl Fri Jun 13 06:04:24 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 13 Jun 2003 12:04:24 +0200 Subject: [vtkusers] to pipeline or not to pipeline, that is the question Message-ID: Hi, There may be a bug in my understanding of VTK, can somebody enlighten me? I have build a reader (fitsReader) that gives back a vtkImageData. It works fine when I define a new vtkImageData (as a member) and (deep)copy the scalars from the reader's result to this new vtkImageData. Like this: vtkImageData *dataFits = vtkImageData::New(); dataFits=this->fitsReader->GetOutput(); this->myImageData->GetPointData()->DeepCopy(dataFits->GetPointData()); dataFits->Delete(); mapper->SetInput(this->myImageData); etc... It also works when I insert a vtkExtractVOI in the pipeline before the Mapper. But... when I just connect my reader's output to that same new vtkImageData then I do not get any data, like this: myImageData=fitsReader->GetOutput(); Also.... When I do use the 'deepcopy' solution (I get data in myImageData then) and when I then insert a vtkShiftScale into the pipeline (to go from floats to unsigned chars) I lose my data again. Like this: myImageData->Update(); myShiftedScaledData->SetInput(myImageData); myShiftedScaledData->SetShift(-range[0]); myShiftedScaledData->SetScale(255./(range[1]-range[0])); myShiftedScaledData->SetOutputScalarTypeToUnsignedChar(); And this gives an error then ('pixel not in memory'): value=(float*) myShiftedScaledData->GetOutput()->GetScalarPointer(x,y,z); Ergo: I have the feeling that I forget something crucial. q: is that deepcopy necisary or a dumb solution? q: should that 'myImageData=fitsReader->GetOutput()' work? (should myImageData contain the scalar data?) q: does anybody see anything wrong? Some insight would be much appreciated, Thanks, Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From jeff at cdnorthamerica.com Fri Jun 13 06:08:08 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 13 Jun 2003 06:08:08 -0400 Subject: [vtkusers] to pipeline or not to pipeline, that is the question In-Reply-To: References: Message-ID: <3EE9A288.5010200@cdnorthamerica.com> did you try reader->Update() ? -Jeff Nico Vermaas wrote: >Hi, > >There may be a bug in my understanding of VTK, can somebody enlighten me? > >I have build a reader (fitsReader) that gives back a vtkImageData. > >It works fine when I define a new vtkImageData (as a member) and (deep)copy the scalars from the reader's result to this new vtkImageData. Like this: > >vtkImageData *dataFits = vtkImageData::New(); >dataFits=this->fitsReader->GetOutput(); >this->myImageData->GetPointData()->DeepCopy(dataFits->GetPointData()); >dataFits->Delete(); >mapper->SetInput(this->myImageData); >etc... > >It also works when I insert a vtkExtractVOI in the pipeline before the Mapper. > >But... when I just connect my reader's output to that same new vtkImageData then I do not get any data, like this: > >myImageData=fitsReader->GetOutput(); > >Also.... >When I do use the 'deepcopy' solution (I get data in myImageData then) and when I then insert a vtkShiftScale into the pipeline (to go from floats to unsigned chars) I lose my data again. Like this: > >myImageData->Update(); >myShiftedScaledData->SetInput(myImageData); >myShiftedScaledData->SetShift(-range[0]); >myShiftedScaledData->SetScale(255./(range[1]-range[0])); >myShiftedScaledData->SetOutputScalarTypeToUnsignedChar(); > >And this gives an error then ('pixel not in memory'): >value=(float*) myShiftedScaledData->GetOutput()->GetScalarPointer(x,y,z); > >Ergo: >I have the feeling that I forget something crucial. >q: is that deepcopy necisary or a dumb solution? >q: should that 'myImageData=fitsReader->GetOutput()' work? (should myImageData contain the scalar data?) >q: does anybody see anything wrong? > >Some insight would be much appreciated, Thanks, > >Nico > > > > >==================================================== >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://public.kitware.com/mailman/listinfo/vtkusers > > > > From vermaas at astron.nl Fri Jun 13 06:57:37 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 13 Jun 2003 12:57:37 +0200 Subject: [vtkusers] how do I traverse the scalars of a vtkImageData? Message-ID: Mathieu, I actually got a compiler error ("invalid initializer") with that statement, so I changed it to: float* minmax=(float*)imagedata->GetScalarRange(); Then my minmax has these values: minmax[0]: 2.30112e-07 minmax[1]: 0.276428 (which are the correct values) Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== >>> Mathieu Malaterre 06/13/03 11:51 AM >>> What is the result of: float minmax[2] = imagedata->GetScalarRange(); std::cout << "scalar range:" << minmax[0] << "," << minmax[1] << '\n'; mathieu Nico Vermaas wrote: > Mathieu, > > Thank you for pointing me in the right direction. I do not get the correct results yet (just a black cube like in Space Odyssee 2001, so the scalar data is not copied yet), but at least it is a step closer. > > Nico > > ==================================================== > Nico Vermaas > ASTRON - Westerbork Synthesis Radio Telescope > Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands > > tel: +31 593 598710 > vermaas at astron.nl > ==================================================== > >>>>Mathieu Malaterre 06/13/03 10:01 AM >>> > > Nico, > > imagedata->Update(); //important > float minmax[2] = imagedata->GetScalarRange(); > > vtkImageShiftScale::SetShift(-minmax[0]); > vtkImageShiftScale::SetScale(255./(minmax[1]-minmax[0])); > vtkImageShiftScale::SetOutputScalarTypeToUnsignedChar () > > See: > http://www.vtk.org/doc/nightly/html/classvtkImageShiftScale.html > > > HTH > mathieu > > Nico Vermaas wrote: > >>Hi, >> >>To make volume rendering possible I want to convert the scalars in an vtkImageData to unsigned chars. I need to change them and make them range from 0 - 255. >> >>I used to use SetScalar, but that doesn't seem to work any longer in VTK4. So what is the best way to traverse the scalar values in a vtkImageData? (getting, changing and setting the values?). >> >>Greetings, >> >>Nico >> >> >>==================================================== >>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://public.kitware.com/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 Jun 13 07:07:15 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 13 Jun 2003 13:07:15 +0200 Subject: [vtkusers] to pipeline or not to pipeline, that is the question Message-ID: Jeff, Yes I did, I overloaded the Update() function though, it calls my reader->Execute() function which does the low level reading and fills the vtkImageData of the GetOutput(). And obviously it gets filled somehow because the deepcopy does give me the data. So this is correct syntax then?: "dataFits=this->fitsReader->GetOutput();" Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== >>> Jeff Lee 06/13/03 12:08 PM >>> did you try reader->Update() ? -Jeff Nico Vermaas wrote: >Hi, > >There may be a bug in my understanding of VTK, can somebody enlighten me? > >I have build a reader (fitsReader) that gives back a vtkImageData. > >It works fine when I define a new vtkImageData (as a member) and (deep)copy the scalars from the reader's result to this new vtkImageData. Like this: > >vtkImageData *dataFits = vtkImageData::New(); >dataFits=this->fitsReader->GetOutput(); >this->myImageData->GetPointData()->DeepCopy(dataFits->GetPointData()); >dataFits->Delete(); >mapper->SetInput(this->myImageData); >etc... > >It also works when I insert a vtkExtractVOI in the pipeline before the Mapper. > >But... when I just connect my reader's output to that same new vtkImageData then I do not get any data, like this: > >myImageData=fitsReader->GetOutput(); > >Also.... >When I do use the 'deepcopy' solution (I get data in myImageData then) and when I then insert a vtkShiftScale into the pipeline (to go from floats to unsigned chars) I lose my data again. Like this: > >myImageData->Update(); >myShiftedScaledData->SetInput(myImageData); >myShiftedScaledData->SetShift(-range[0]); >myShiftedScaledData->SetScale(255./(range[1]-range[0])); >myShiftedScaledData->SetOutputScalarTypeToUnsignedChar(); > >And this gives an error then ('pixel not in memory'): >value=(float*) myShiftedScaledData->GetOutput()->GetScalarPointer(x,y,z); > >Ergo: >I have the feeling that I forget something crucial. >q: is that deepcopy necisary or a dumb solution? >q: should that 'myImageData=fitsReader->GetOutput()' work? (should myImageData contain the scalar data?) >q: does anybody see anything wrong? > >Some insight would be much appreciated, Thanks, > >Nico > > > > >==================================================== >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://public.kitware.com/mailman/listinfo/vtkusers > > > > From vermaas at astron.nl Fri Jun 13 07:14:58 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 13 Jun 2003 13:14:58 +0200 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1881 - 6 msgs Message-ID: Hi Ingo, I had the same problem. The Elevation property does not hold the elevation as you might expect, but apparantly the elevation change. Every time that your render, the cam position is changed again with this value. I believe you should use Focalpoint and Position instead. Nico ---------------------------------------------- Date: Fri, 13 Jun 2003 10:31:02 +0200 From: "de Boer Ingo" To: Subject: [vtkusers] vtkCamera question...* * Hi...* I have a small problem with setting a new angle to the camera... I have this piece of code...* float fElevation =3D 90.0f; float* angles =3D m_pvtkCamera->GetOrientation(); m_pvtkCamera->Elevation(-angles[0]); m_pvtkCamera->Elevation(fElevation); m_pvtkCamera->Modified(); angles =3D m_pvtkCamera->GetOrientation();* Why is angels[0] in the end not 90.0f ?? Instead every angels[i] changes to some weired value ?!* greets * Ingo* --__--__--* >>> vtkusers-request at public.kitware.com 06/13/03 11:33 AM >>> From Cedric.Le.Maitre at ifremer.fr Fri Jun 13 07:39:44 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Fri, 13 Jun 2003 13:39:44 +0200 Subject: [vtkusers] How to include VTK packages in TCL/TK ? Message-ID: <3EE9B800.20B2FFA4@ifremer.fr> Hi, i can't execute TCL/TK examples codes of VTK because it can't find the package VTK. Does anyone already have that problem ? Do i have to set environment variables for that or something else ? Thanks for reply, Cedric From dean.inglis at on.aibn.com Fri Jun 13 08:14:39 2003 From: dean.inglis at on.aibn.com (dean.inglis at on.aibn.com) Date: Fri, 13 Jun 2003 8:14:39 -0400 Subject: [vtkusers] image reader data spacing and IPW Message-ID: <20030613121439.WIHF9948.tomts22-srv.bellnexxia.net@[209.226.175.249]> John, can you post the code for the init of the reader and the init of the widgets? Are you 100% sure of the FOV and slice thickness of your axial images? If you are reading from a stack of DICOM images, the pixel spacing can be pulled from the files' DICOM header to confirm that FOV/matrix size = (header reported) pixel spacing. There is no restriction on number of slices in IPW and the input spacing is always 'respected'... Dean From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 13 08:06:20 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 13 Jun 2003 14:06:20 +0200 Subject: [vtkusers] How to include VTK packages in TCL/TK ? In-Reply-To: <3EE9B800.20B2FFA4@ifremer.fr> References: <3EE9B800.20B2FFA4@ifremer.fr> Message-ID: <3EE9BE3C.6070503@creatis.insa-lyon.fr> I think it would be a good idea if someone added a VTK FAQ entry: "Installing VTK on a Windows PC" with a link to : http://www.imm.dtu.dk/pubdb/views/edoc_download.php/502/pdf/imm502.pdf C?dric, please have a look at section 6. Setting up the system HTH mathieu Cedric LE MAITRE wrote: > Hi, > > i can't execute TCL/TK examples codes of VTK because it can't find the > package VTK. Does anyone already have that problem ? Do i have to set > environment variables for that or something else ? > > Thanks for reply, > Cedric > _______________________________________________ > 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From s_amit4u at rediffmail.com Fri Jun 13 08:48:07 2003 From: s_amit4u at rediffmail.com (amit shrivastava) Date: 13 Jun 2003 12:48:07 -0000 Subject: [vtkusers] To synchronize two camera Message-ID: <20030613124807.30242.qmail@webmail6.rediffmail.com> Hi All, To synchronize (should have the same DOP, same View up Vector or should the have same elevation, azimuth & roll ) two camera i am using following code. float *orientation1 = pCamera1->GetOrientation(); float *orientation2 = pCamera2>GetOrientation(); pCamera2->Elevation(-(orientation2[0] - orientation1[0])); pCamera2->Azimuth(orientation2[1] - orientation1[1]); pCamera2->Roll(-(orientation2[2] - orientation1[2])); but it is not working ... has any body encountered the same problem before? any help? thanks amit -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeando.barnichon at free.fr Fri Jun 13 08:58:58 2003 From: jeando.barnichon at free.fr (Jean-Dominique Barnichon) Date: Fri, 13 Jun 2003 14:58:58 +0200 Subject: [vtkusers] RE: How to transform the result of vtkFeatureEdges in a single polyline? In-Reply-To: Message-ID: Sorry, I've found the solution on my own ..., which is the filter vtkStripper. Jean-Do > -----Message d'origine----- > De : Jean-Dominique Barnichon [mailto:jeando.barnichon at free.fr] > Envoy? : jeudi 12 juin 2003 23:09 > ? : vtkusers at public.kitware.com > Objet : How to transform the result of vtkFeatureEdges in a single > polyline? > > > Hi, > > after a performing a constrained vtkDelaunay2D, I extract the outer boundary of the mesh using the > vtkFeatureEdges filter. As a result, I obtain the mesh boundary described as a sum of all > the boundary segments (edges). > > I need to transform all these segments in a single polyline, which would require to : > - sort the segments in a consecutive order, > - remove duplicate points. > Does anybody know if an existing vtk filter could do the job? > > Thanks > Jean-Do > > // Create the input data (points and constrained lines) > vtkPolyData *MntData = vtkPolyData::New(); > MntData->SetPoints(m_pMeshPoints); > MntData->SetLines(m_pLines); > MntData->Update(); > > // Apply vtkDelaunay2D filter > vtkDelaunay2D *Del = vtkDelaunay2D::New(); > Del->SetInput(MntData); > Del->SetSource(MntData); > Del->BoundingTriangulationOff(); > Del->SetTolerance(0.001); > Del->SetAlpha(0.0); > Del->Update(); > > // Get output data > vtkPolyData *MeshData = vtkPolyData::New(); > MeshData = Del->GetOutput(); > MeshData->Update(); > > // Apply vtkFeatureEdges filter to Extract the boundary from the output data > vtkFeatureEdges *fe = vtkFeatureEdges::New(); > fe->SetInput(MeshData); > fe->ManifoldEdgesOff(); > fe->NonManifoldEdgesOff(); > fe->FeatureEdgesOff(); > fe->BoundaryEdgesOn(); > > // Get the boundary data > vtkPolyData *BoundaryData = vtkPolyData::New(); > BoundaryData = fe->GetOutput(); > BoundaryData ->Update(); From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 13 08:55:43 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 13 Jun 2003 14:55:43 +0200 Subject: [vtkusers] To synchronize two camera In-Reply-To: <20030613124807.30242.qmail@webmail6.rediffmail.com> References: <20030613124807.30242.qmail@webmail6.rediffmail.com> Message-ID: <3EE9C9CF.1050007@creatis.insa-lyon.fr> Amit, Try: ren2->SetActiveCamera (ren1->GetActiveCamera()); with ren1 and ren2 your two renderers ... HTH mathieu amit shrivastava wrote: > Hi All, > > To synchronize (should have the same DOP, same View up Vector or should the have same elevation, azimuth & roll ) two camera i am using following code. > float *orientation1 = pCamera1->GetOrientation(); > float *orientation2 = pCamera2>GetOrientation(); > > pCamera2->Elevation(-(orientation2[0] - orientation1[0])); > > pCamera2->Azimuth(orientation2[1] - orientation1[1]); > > pCamera2->Roll(-(orientation2[2] - orientation1[2])); > > but it is not working ... > has any body encountered the same problem before? > > any help? > > thanks > > amit > > > > > > ------------------------------------------------------------------------ > > -- 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 Fri Jun 13 09:11:12 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 13 Jun 2003 18:41:12 +0530 Subject: [vtkusers] vtkPolyDataConnectivityFilter Message-ID: <001501c331ad$43b22f00$de0ba8c0@qtwblr01.questglobal.com> Hi, I had posted this question few days back. I also searched the users archive but could not find any solution. I want to find the number of regions in my polydata. so I run the following code. vtkPolyDataConnectivityFilter con = new vtkPolyDataConnectivityFilter(); con.SetInput(myPolyData); con.SetExtractionModeToAllRegions(); con.Update(); int numRegions = con.GetNumberOfExtractedRegions(); But my application frequently crashes in the line where I call Update() on the filter. I am using Windows NT 4.0 with JAVA 1.4.1_02. Am I doing anything wrong here or Is there any other way of getting the region count? Thanks Shyam From Cedric.Le.Maitre at ifremer.fr Fri Jun 13 09:05:37 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Fri, 13 Jun 2003 15:05:37 +0200 Subject: [vtkusers] How to include VTK packages in TCL/TK ? References: <3EE9B800.20B2FFA4@ifremer.fr> Message-ID: <3EE9CC21.26DC1EF4@ifremer.fr> OK, these environment variables wasn't set. In fact, i have install all of VTK 4.2, but i didn't have any directory Wrapping/Tcl. I only have Wrapping/Python and Wrapping/Java and another directory lib\vtk\tcl which seems to be the VTK-TCL libraries. There is sub-directories for vtk, vtkbase, vtkcommon... I try to set TCLLIBPATH to this directory but nothing change ! Min-Su KIM a ?crit : > > I'll tell you my vtk configuration in System Variable. > > You can modify System Variables like THIS. > > a.. Lauch the control panel (by clicking in Start Menu/Paramerters/Control Panel) > a.. Double click on "System" icon > a.. Select the Advanced tab > a.. Click on 'Environement Variables' button. Your are now in the environement variable window. > > I'll show you my system variables and values. All the variables and values are without quotes. > > "VTKPATH" = "C:\Creatis\vtkDistrib" > > "PATH"= "%VTKPATH%\bin;" > > "TCLLIBPATH"="C:/Creatis/vtkDistrib/Wrapping/Tcl" > (don't forget to use "/" instead of "\") > > "VTK_DATA_ROOT"="C:/Creatis/vtkDistrib" > (please, confirm the location of extracted "VtkData.zip", I installed it on "C:\Creatis\vtkDistrib\DATA") > > That's all I have. You got it? :) > > //Min-Su KIM > ============================================ > 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: "Cedric LE MAITRE" > To: > Sent: Friday, June 13, 2003 8:39 PM > Subject: [vtkusers] How to include VTK packages in TCL/TK ? > > > Hi, > > > > i can't execute TCL/TK examples codes of VTK because it can't find the > > package VTK. Does anyone already have that problem ? Do i have to set > > environment variables for that or something else ? > > > > Thanks for reply, > > Cedric > > _______________________________________________ > > 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 > > > > > > > > > > From lisa.avila at kitware.com Fri Jun 13 09:28:22 2003 From: lisa.avila at kitware.com (Lisa Avila) Date: Fri, 13 Jun 2003 09:28:22 -0400 Subject: [vtkusers] Volume rendering - resolution In-Reply-To: <3EE99889.A4D1645B@ifremer.fr> Message-ID: <5.2.0.9.0.20030613092518.03562ed0@pop.biz.rr.com> Hello Cedric, The automatic adjustment of the image sampling is default behavior with ray cast volume rendering. I believe you adjust this in VTK 2.4 in the vtkRayCaster which you can get from the vtkRenderer (it's been a long time since VTK 2.4 and a lot has changed since then!) If possible I would recommend moving up to VTK 4.2. I would also recommend trying the vtkVolumeTextureMapper2D with your data as it is likely to be faster (as long as you have a reasonable graphics card in your system) You can use vtkLODProp3D to tie together both mappers (ray casting and texture mapping). Lisa At 05:25 AM 6/13/2003, Cedric LE MAITRE wrote: >Hi, > >I'm a VTK beginner and i'm looking at volume rendering for acoustic fish >schools vizualisation. >I'd retrieve a code based on VTK2.4 wich display a high resolution image >after the volume rendering computation (cf. 3D-volum-high-resol.jpg). >And when we want to interact with the scene (translation, rotation...) >it goes on a low level rresolution display (cf. 3D-volum-low-resol.jpg). >I don't know why ? is it automatic with VTK volume rendering ? > >I have to improve performance for this vizualition. vtkLODProp3D seems >interesting for that, because it work with a Level Of Detail function of >frame rate. This class seems inexistant in VTK2.4, could it be that >implementation which work with my existant rendering ? > >Every information, news on vtkLODProp3D or vtkVolumeRendering are >welcome. > >Regards, >Cedric. From skboyd at ucalgary.ca Fri Jun 13 11:14:45 2003 From: skboyd at ucalgary.ca (Steve Boyd) Date: Fri, 13 Jun 2003 08:14:45 -0700 Subject: [vtkusers] vtkImageData to tetrahedrons or hexahedrons Message-ID: <3EE9EA65.E7DBAF63@ucalgary.ca> Hi, Is there a filter (or set of filters) that I can use to convert vtkImageData into vtkUnstructuredGrid data with cell types of tetrahedrons or hexahedrons? It seems there should be something, but I can't seem to find it in the html documentation, books or mailing list archives. I'd like to do this for the purpose of FE modelling. Thanks, Steve -- Steven Boyd, PhD Assistant Professor Department of Mechanical and Manufacturing Engineering University of Calgary 2500 University Drive, N.W. Calgary, Alberta, Canada, T2N 1N4 tel. 1.403.220.4173 fax. 1.403.282.8406 skboyd at ucalgary.ca ------------------------------------------------------------------- From pchandra at radonc.unc.edu Fri Jun 13 10:55:31 2003 From: pchandra at radonc.unc.edu (Parag Chandra) Date: Fri, 13 Jun 2003 10:55:31 -0400 Subject: [vtkusers] How to intercept Start/End/PickEvent? Message-ID: <000601c331bb$d717c350$99221398@radonc.radonc.unc.edu> Hi, I would like to display a text annotation describing a picked object, so I created a simple vtkCommand callback to intercept StartPickEvent, EndPickEvent, and PickEvent. The Execute method looks like this: switch (event) { case vtkCommand::EndPickEvent: m_Interactor->m_LeafLabelActor->SetInput(""); m_Interactor->RemoveAnnotation(); break; case vtkCommand::StartPickEvent: case vtkCommand::PickEvent: m_Interactor->DisplayAnnotation(); break; And I register the command via: InteractorStyle->AddObserver(vtkCommand::StartPickEvent, callback); InteractorStyle->AddObserver(vtkCommand::PickEvent, callback); InteractorStyle->AddObserver(vtkCommand::EndPickEvent, callback); However, when I pick an object interactively (I'm using vtkInteractorStyleImage), only the standard pick action occurs, which is to highlight the selected object. My callback is never triggered. How can I get both the highlighting and my custom action to occur? If I change the above code to listen on Start/End/WindowLevel events, then my callback is triggered when I click and drag with the left mouse button, but of course, no highlighting occurs because the Pick event is triggered by the 'P' key. A second question: how can I change the color of the highlighting (seems to be a hot pink color right now)? Thanks. Best regards, -Parag Chandra -------------- next part -------------- An HTML attachment was scrubbed... URL: From scharver at evl.uic.edu Fri Jun 13 11:22:26 2003 From: scharver at evl.uic.edu (Chris Scharver) Date: Fri, 13 Jun 2003 10:22:26 -0500 Subject: [vtkusers] Build completed on OS X, but examples trouble In-Reply-To: References: Message-ID: At 8:45 AM -0600 06/11/2003, David Gunter wrote: >Thanks. This launched Mace and the window appears and remains. However, I >cannot interact with it. The window never really comes to focus (title area >remains gray) despite my clicking on it. I can kill it with the Aqua 'x' >button but that's about it. There are some strange issues with manually generated Cocoa windows. Apple's GLUT source code even includes a static library hack to work around the window focus problem. Are you certain that you have USE_CARBON set to ON and USE_COCOA set to off? The two options are exclusive to each other. I have seen the behavior you describe with Cocoa but not with Carbon. Chris -- Chris Scharver Electronic Visualization Laboratory The University of Illinois at Chicago Ph: 312-996-3002 FAX: 312-413-7585 From rrp at imm.dtu.dk Fri Jun 13 11:26:54 2003 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 13 Jun 2003 17:26:54 +0200 (METDST) Subject: [vtkusers] How to include VTK packages in TCL/TK ? In-Reply-To: <3EE9CC21.26DC1EF4@ifremer.fr> Message-ID: On Fri, 13 Jun 2003, Cedric LE MAITRE wrote: > OK, these environment variables wasn't set. > In fact, i have install all of VTK 4.2, but i didn't have any directory > Wrapping/Tcl. I only have Wrapping/Python and Wrapping/Java and another > directory lib\vtk\tcl which seems to be the VTK-TCL libraries. There is > sub-directories for vtk, vtkbase, vtkcommon... > I try to set TCLLIBPATH to this directory but nothing change ! Perhaps you can use something from the installation guide found at: http://www.imm.dtu.dk/~rrp (in the manuals section) It is a little bit outdated, but still usefull. Cheers, Rasmus From alan at vuesonix.com Fri Jun 13 13:19:35 2003 From: alan at vuesonix.com (Alan Stein) Date: Fri, 13 Jun 2003 13:19:35 -0400 Subject: [vtkusers] Problems with Nightly Builld under RedHat 9.0 Message-ID: <3EEA07A7.1060200@vuesonix.com> Hi, I'm trying to use a nightly build from 5/8/03 which I've built and used with Java on several machines (mostly RH 7.3) without event. Under RedHat 9.0, however, I'm encountering difficulties. VTK appears to build fine using CMake 1.6-7 and the timeRenderer test program works, but anything related to Java crashes with the error at the end of this email. Even the Regression test program in "VTKWrapping/Java" fails, so this appears to be a VTK-RH9.0 interaction rather than something specific to my use of VTK. Has anyone had experience using VTK under RH 9.0? Thanks much for any help. --Alan [5185885934] [5185885934] An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x42053DFC Function=_IO_vfscanf+0xEC Library=/lib/tls/libc.so.6 Current Java thread: at vtk.vtkRenderWindow.Render_6(Native Method) at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36) at Regression.main(Regression.java:72) Dynamic libraries: 08048000-0804e000 r-xp 00000000 03:06 100127 /usr/java/j2sdk1.4.1_01/bin/java 0804e000-0804f000 rw-p 00005000 03:06 100127 /usr/java/j2sdk1.4.1_01/bin/java 40000000-40015000 r-xp 00000000 03:06 1161024 /lib/ld-2.3.2.so 40015000-40016000 rw-p 00014000 03:06 1161024 /lib/ld-2.3.2.so 40017000-40020000 r-xp 00000000 03:06 198701 /usr/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so 40020000-40021000 rw-p 00008000 03:06 198701 /usr/java/j2sdk1.4.1_01/jre/lib/i386/native_threads/libhpi.so 40022000-40032000 r-xp 00000000 03:06 1212447 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so 40032000-40034000 rw-p 0000f000 03:06 1212447 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libverify.so 40034000-4003e000 r-xp 00000000 03:06 1095624 /lib/tls/libpthread-0.26.so 4003e000-4003f000 rw-p 0000a000 03:06 1095624 /lib/tls/libpthread-0.26.so 40041000-40043000 r-xp 00000000 03:06 1161035 /lib/libdl-2.3.2.so 40043000-40044000 rw-p 00002000 03:06 1161035 /lib/libdl-2.3.2.so 40045000-4035d000 r-xp 00000000 03:06 1212424 /usr/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so 4035d000-40511000 rw-p 00317000 03:06 1212424 /usr/java/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so 40521000-40533000 r-xp 00000000 03:06 1161039 /lib/libnsl-2.3.2.so 40533000-40534000 rw-p 00011000 03:06 1161039 /lib/libnsl-2.3.2.so 40536000-40557000 r-xp 00000000 03:06 1095622 /lib/tls/libm-2.3.2.so 40557000-40558000 rw-p 00020000 03:06 1095622 /lib/tls/libm-2.3.2.so 40558000-40579000 r-xp 00000000 03:06 1212435 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so 40579000-4057b000 rw-p 00020000 03:06 1212435 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjava.so 4057b000-40590000 r-xp 00000000 03:06 1212448 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so 40590000-40592000 rw-p 00014000 03:06 1212448 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libzip.so 40592000-41c60000 r--s 00000000 03:06 443881 /usr/java/j2sdk1.4.1_01/jre/lib/rt.jar 41ca3000-41cba000 r--s 00000000 03:06 443882 /usr/java/j2sdk1.4.1_01/jre/lib/sunrsasign.jar 41cba000-41d2b000 r--s 00000000 03:06 443875 /usr/java/j2sdk1.4.1_01/jre/lib/jsse.jar 41d2b000-41d3e000 r--s 00000000 03:06 443874 /usr/java/j2sdk1.4.1_01/jre/lib/jce.jar 41d3e000-41ffa000 r--s 00000000 03:06 443862 /usr/java/j2sdk1.4.1_01/jre/lib/charsets.jar 41ffa000-41ffd000 r--s 00000000 03:06 688314 /usr/java/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar 41ffd000-41ffe000 r-xp 00000000 03:06 1212437 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjawt.so 41ffe000-41fff000 rw-p 00000000 03:06 1212437 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libjawt.so 42000000-4212e000 r-xp 00000000 03:06 1095620 /lib/tls/libc-2.3.2.so 4212e000-42131000 rw-p 0012e000 03:06 1095620 /lib/tls/libc-2.3.2.so 441db000-441df000 r-xp 00000000 03:06 1046668 /usr/X11R6/lib/libXtst.so.6.1 441df000-441e0000 rw-p 00004000 03:06 1046668 /usr/X11R6/lib/libXtst.so.6.1 4c3e0000-4c5e0000 r--p 00000000 03:06 474228 /usr/lib/locale/locale-archive 4c5e0000-4c5ee000 r--s 00000000 03:06 688315 /usr/java/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar 4c5ee000-4c5f5000 r-xp 00000000 03:06 1161078 /lib/libgcc_s-3.2.2-20030225.so.1 4c5f5000-4c5f6000 rw-p 00007000 03:06 1161078 /lib/libgcc_s-3.2.2-20030225.so.1 4c5fd000-4c608000 r-xp 00000000 03:06 1161045 /lib/libnss_files-2.3.2.so 4c608000-4c609000 rw-p 0000a000 03:06 1161045 /lib/libnss_files-2.3.2.so 4c809000-4c8a8000 r--s 00000000 03:06 688316 /usr/java/j2sdk1.4.1_01/jre/lib/ext/localedata.jar 4c8a8000-4c8c5000 r--s 00000000 03:06 688317 /usr/java/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar 4c8c5000-4c9ed000 r--s 00000000 03:06 182383 /usr/local/VTK/bin/vtk.jar 4c9ed000-4cce1000 r-xp 00000000 03:06 182360 /usr/local/VTK/bin/libvtkCommonJava.so 4cce1000-4ccf1000 rw-p 002f4000 03:06 182360 /usr/local/VTK/bin/libvtkCommonJava.so 4cd0f000-4cdb8000 r-xp 00000000 03:06 359871 /usr/lib/libstdc++.so.5.0.3 4cdb8000-4cdbd000 rw-p 000a9000 03:06 359871 /usr/lib/libstdc++.so.5.0.3 4cdc2000-4ce73000 r-xp 00000000 03:06 182362 /usr/local/VTK/bin/libvtkFilteringJava.so 4ce73000-4ce77000 rw-p 000b1000 03:06 182362 /usr/local/VTK/bin/libvtkFilteringJava.so 4ce77000-4d258000 r-xp 00000000 03:06 182366 /usr/local/VTK/bin/libvtkGraphicsJava.so 4d258000-4d266000 rw-p 003e0000 03:06 182366 /usr/local/VTK/bin/libvtkGraphicsJava.so 4d266000-4d633000 r-xp 00000000 03:06 182368 /usr/local/VTK/bin/libvtkIOJava.so 4d633000-4d63f000 rw-p 003cc000 03:06 182368 /usr/local/VTK/bin/libvtkIOJava.so 4d641000-4d9ff000 r-xp 00000000 03:06 182364 /usr/local/VTK/bin/libvtkImagingJava.so 4d9ff000-4da09000 rw-p 003bd000 03:06 182364 /usr/local/VTK/bin/libvtkImagingJava.so 4da09000-4dc3e000 r-xp 00000000 03:06 182372 /usr/local/VTK/bin/libvtkHybridJava.so 4dc3e000-4dc5d000 rw-p 00235000 03:06 182372 /usr/local/VTK/bin/libvtkHybridJava.so 4dc5f000-4dfa4000 r-xp 00000000 03:06 182370 /usr/local/VTK/bin/libvtkRenderingJava.so 4dfa4000-4e01a000 rw-p 00345000 03:06 182370 /usr/local/VTK/bin/libvtkRenderingJava.so 4e01a000-4e095000 r-xp 00000000 03:06 1046690 /usr/X11R6/lib/libGLU.so.1.3 4e095000-4e097000 rw-p 0007a000 03:06 1046690 /usr/X11R6/lib/libGLU.so.1.3 4e097000-4e0f7000 r-xp 00000000 03:06 1343264 /usr/lib/tls/libGL.so.1.0.4363 4e0f7000-4e0fe000 rwxp 0005f000 03:06 1343264 /usr/lib/tls/libGL.so.1.0.4363 4e100000-4e108000 r-xp 00000000 03:06 1046632 /usr/X11R6/lib/libSM.so.6.0 4e108000-4e109000 rw-p 00007000 03:06 1046632 /usr/X11R6/lib/libSM.so.6.0 4e109000-4e11d000 r-xp 00000000 03:06 1046628 /usr/X11R6/lib/libICE.so.6.3 4e11d000-4e11e000 rw-p 00013000 03:06 1046628 /usr/X11R6/lib/libICE.so.6.3 4e120000-4e1fc000 r-xp 00000000 03:06 1046634 /usr/X11R6/lib/libX11.so.6.2 4e1fc000-4e1ff000 rw-p 000db000 03:06 1046634 /usr/X11R6/lib/libX11.so.6.2 4e1ff000-4e20c000 r-xp 00000000 03:06 1046644 /usr/X11R6/lib/libXext.so.6.4 4e20c000-4e20d000 rw-p 0000c000 03:06 1046644 /usr/X11R6/lib/libXext.so.6.4 4e20d000-4e25b000 r-xp 00000000 03:06 1046666 /usr/X11R6/lib/libXt.so.6.0 4e25b000-4e25f000 rw-p 0004d000 03:06 1046666 /usr/X11R6/lib/libXt.so.6.0 4e25f000-4e703000 r-xp 00000000 03:06 1343263 /usr/lib/tls/libGLcore.so.1.0.4363 4e703000-4e70d000 rw-p 004a4000 03:06 1343263 /usr/lib/tls/libGLcore.so.1.0.4363 4e717000-4e9de000 r-xp 00000000 03:06 1212427 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so 4e9de000-4e9f3000 rw-p 002c6000 03:06 1212427 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so 4ea18000-4ea6b000 r-xp 00000000 03:06 1212443 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so 4ea6b000-4ea6c000 rw-p 00052000 03:06 1212443 /usr/java/j2sdk1.4.1_01/jre/lib/i386/libmlib_image.so 4ea6c000-4ea73000 r-xp 00000000 03:06 1046658 /usr/X11R6/lib/libXp.so.6.2 4ea73000-4ea74000 rw-p 00006000 03:06 1046658 /usr/X11R6/lib/libXp.so.6.2 **************** Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC = 0x0x42053dfc SIGNAL = 11 FUNCTION NAME = _IO_vfscanf OFFSET = 0xEC LIBRARY NAME = /lib/tls/libc.so.6 Please check ERROR REPORT FILE for further information, if there is any. Good bye. From dsjen at cs.unc.edu Fri Jun 13 13:20:01 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Fri, 13 Jun 2003 13:20:01 -0400 Subject: [vtkusers] Volume Opacity Message-ID: Hello VTK Users, I'm having trouble changing the opacity of a vtkVolume. I'm creating a vtkPiecewiseFunction and adding the following points to the function with the following lines of code, where opacity is a the piecewise function: opacity.AddPoint(0, 0.0); opacity.AddPoint(255,0.0); This should make the volume completely transparent after I set the opacity of the volume: ... ... property.SetScalarOpacity(opacity); ... ... actor.SetProperty(property); ... ... If anyone has any suggestions, needs clarification, or can point me to any references, I'd be very grateful. Also, just for reference, I'm using vtk4.0 on WindowsXP. Thanks, Dennis From jdhunter at ace.bsd.uchicago.edu Fri Jun 13 13:28:45 2003 From: jdhunter at ace.bsd.uchicago.edu (John Hunter) Date: Fri, 13 Jun 2003 12:28:45 -0500 Subject: [vtkusers] vtk 4.2 for python22 on win32 Message-ID: Has anyone compiled VTK 4.2 for python22 on win32? The latest stable release as well as the nightly builds are for python21. I found http://www.physics.ucf.edu/Academics/Python/Python_2.2/VTK4/ and http://folks.astrian.net/godzilla/ which provide VTK 4.0 for python22, but alas, I need python22 AND VTK4.2+. If anyone has the DLLs or an installer or anything useful for me, I'd be much obliged. Thanks, John Hunter From ajit_v_r at hotmail.com Fri Jun 13 13:40:22 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Fri, 13 Jun 2003 23:10:22 +0530 Subject: [vtkusers] vtkInterpolatingSubdivisionFilter Message-ID: Hello, I need some info on the "vtkInterpolatingSubdivisionFilter". I am rendering a 3-D surface using the code given below. However the surface appears rather tesselated when i run my program. The surface is that of a face and I need to be able to distinguish the fine facial features. (The data that I have consists on 3 arrays, one each of the X, Y and Z coordinates respectively). (1) I was told that use of vtkInterpolatingSubdivisionFilter would help improve the data resolution. Could someone give an example of how it is used. Being very new to VTK, I am quite overwhelmed by the large number of functions and classes, and therefore I am a bit confused. I need to solve this problem urgently. Could someone tell me what I must do to the following code to fix the problem? (2) Also how do I speed up the rendering of the surface? Thanks.. ================================================================= // Create the VTK renderer vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); renWin->SetSize (500,500); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // Create points vtkPoints *startPoints = vtkPoints::New(); // CODE TO OPEN THE FILE while (fgets ()) { /* Code to read data from the file */ point = ..... startPoints->InsertNextPoint(point); } fclose (fs); // Create a data set. Load the starting points vtkPolyData *inputDataSet = vtkPolyData::New(); inputDataSet->SetPoints(startPoints); startPoints->Delete(); // Construct the surface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(inputDataSet); // Create isosurface vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput(surf->GetOutput()); cf->SetValue(0,0.0); // Create the mapper and actor and finish up the visualization pipeline vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(cf->GetOutput()); map->ScalarVisibilityOff(); // In general you should set Ambient = 1.0 and Diffuse and Specular = 0.0 to // effectively turn off lighting for an object. The color of the object will // then be based on the Color or scalar values passed through a lookup table. vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper( map ); surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, 0.3882, 0.2784 ); surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); surfaceActor->GetProperty()->SetSpecular(0.4); surfaceActor->GetProperty()->SetSpecularPower(50); ren->AddActor(surfaceActor); ren->SetBackground(1,1,1); cout << "Surface actor construction done..." << endl; // Update surface description surf->Update(); cout << "Surface update done..." << endl; // Interact with data renWin->Render(); cout << "Rendering done..." << endl; iren->Start(); // Clean up ren->Delete(); renWin->Delete(); startPoints->Delete(); inputDataSet->Delete(); surf->Delete(); cf->Delete(); map->Delete(); surfaceActor->Delete(); _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp From bridgman at wyeth.gsfc.nasa.gov Fri Jun 13 14:07:14 2003 From: bridgman at wyeth.gsfc.nasa.gov (Tom Bridgman) Date: Fri, 13 Jun 2003 14:07:14 -0400 Subject: [vtkusers] VTK on OSX References: <5.2.0.9.2.20030604165601.00a9ccf0@ofedrigo.mail.iastate.edu> Message-ID: <3EEA12D2.65B9D468@wyeth.gsfc.nasa.gov> I've had partial successes building VTK on OS X. The last time I had a build that I could actually work with was under OS X 10.1. Under 10.2 I've only got the Cocoa option to build per the MacDev article. With all the different build options on OSX (TclTkAqua vs X11, Carbon vs. Cocoa, Python, Java, etc.) would it be practical for those who've had successful builds to post their CMake configuration file along with a summary of what components they are using? I'm wondering if some comparisons could be done which would make it easier to choose the options we want. For example, I'd like to do C++, Python with Tkinter, and MayaVi using Aqua. Do I build with Carbon or Cocoa for this? Is such a build even possible? What about my Python build - what config issues exist to make it compatible? I get the impression that some combinations are just not viable - is this the case? If those who've obtained successful builds want to post their CMake file with a description of the options they sought, I'd be interested in diffing them to hunt down the patterns and post a summary of what I find. Tom olivier Fedrigo wrote: > > Thanks for your emails guys. > I finally succeeded to compile VTK 4.2.3 with Cmake 1.6.7-darwin > > however how do you install VTK in a carbon project? I may sound dumb but I > am just starting using OSX, carbon (except for few basic applications) and VTK > > I added as frameworks: > libvtkCommon.a > libvtkfiltering.a > libvtkGraphics.a > libvtkimaging.a > libvtkrendering.a > and OpenGl.framework. > Also, I added in Sources all the VTK headers. > > To test it, in Main.c I added: #include and #include > "vtkRenderer.h" > I obtained several build errors concerning 'iostream' 'strstream'...etc... > not found. (they are called by vtklOStream.h) > Do I have to get these files and add them in my libraries list or did I > miss something in installing and compiling VTK? > > Thanks a lot, > > Olivier > > >Hi Everyone, > > > >does anybody have suggestion to install VTK on OSx and working with > >Carbon? I tried to compile with CMake etc... it does not work! :( > > > >or is there a pre-compiled version available somewhere ? it will be so > >helpfull!!!!!! > > > >Thanks, > > Olivier F?drigo > 240 Science II > Department of Zoology and Genetics > Iowa State University > Ames, IA 50011 > Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 > http://www.mbb.iastate.edu/~gnaylor/Olivier.html > > _______________________________________________ > 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 -- Dr. William T."Tom" Bridgman Scientific Visualization Studio Global Science & Technology, Inc. NASA/Goddard Space Flight Center Email: bridgman at wyeth.gsfc.nasa.gov Code 935 Phone: 301-286-1346 Greenbelt, MD 20771 FAX: TBD http://svs.gsfc.nasa.gov/ From hvidal at tesseract-tech.com Fri Jun 13 14:13:37 2003 From: hvidal at tesseract-tech.com (H. Vidal, Jr.) Date: Fri, 13 Jun 2003 14:13:37 -0400 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) Message-ID: <3EEA1451.E6F085C2@tesseract-tech.com> How do you propose that ability of C++ objects to publish their architecture would make pipeline development easier? As I understand it, one could wrap classes in CORBA-style mechanisms allowing objects to, in fact, allow other objects to ask and use 'what's useful about you?' to a given object. This means that knowledge about what the parts do is available (at least at procedural level). Are you working on a pipeline edit system? hv David.Pont at ForestResearch.co.nz wrote: I have thought for a while that if the vtk build process can auto-generate wrappers for other languages then why not for C++. This would give 'introspection' capabilities which would be very useful to make a vtk pipeline editor... my 2c, Dave Pont From jss at au.mensa.org Fri Jun 13 14:38:39 2003 From: jss at au.mensa.org (John Sincock) Date: Sat, 14 Jun 2003 04:08:39 +0930 Subject: [vtkusers] CVS gasps and dies Message-ID: <0HGF00NZUNSV1Y@mta08ps.email.bigpond.com> Hi all, im having probs updating my cvs... it gasped and died. I tried doing a brand new checkout as well, and that failed at the same point:: Disk on your CVS server close to death? John S-> checkout (/cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting/grab.tcl,v, 1.3, , (function)) S-> server_register(grab.tcl, 1.3, , , , , ) S-> Register(grab.tcl, 1.3, , , ) U VTK/Wrapping/Tcl/vtktesting/grab.tcl -> rename(.new.grab.tcl,grab.tcl) -> Register(grab.tcl, 1.3, Wed Feb 19 19:28:22 2003, , ) S-> checkout (/cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting/mccases.tcl,v, 1.3, , (function)) S-> server_register(mccases.tcl, 1.3, , , , , ) S-> Register(mccases.tcl, 1.3, , , ) U VTK/Wrapping/Tcl/vtktesting/mccases.tcl -> rename(.new.mccases.t,mccases.tcl) -> Register(mccases.tcl, 1.3, Thu Dec 19 15:11:40 2002, , ) S-> checkout (/cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting/vtktesting.tcl,v, 1.3, , (function)) S-> server_register(vtktesting.tcl, 1.3, , , , , ) S-> Register(vtktesting.tcl, 1.3, , , ) S-> Lock_Cleanup() S-> unlink_file(CVS/Tag) S-> rename(CVS/Entries.Backup,CVS/Entries) S-> unlink_file(CVS/Entries.Log) S-> rename(CVS/Entries.Backup,CVS/Entries) S-> unlink_file(CVS/Entries.Log) S-> rename(CVS/Entries.Backup,CVS/Entries) S-> unlink_file(CVS/Entries.Log) S-> rename(CVS/Entries.Backup,CVS/Entries) S-> unlink_file(CVS/Entries.Log) U VTK/Wrapping/Tcl/vtktesting/vtktesting.tcl -> rename(.new.vtktestin,vtktesting.tcl) -> Register(vtktesting.tcl, 1.3, Wed Feb 19 19:28:22 2003, , ) -> unlink_file(CVS/Tag) -> rename(CVS/Entries.Backup,CVS/Entries) -> unlink_file(CVS/Entries.Log) cvs checkout: dying gasps from public.kitware.com unexpected From brad.king at kitware.com Fri Jun 13 15:25:21 2003 From: brad.king at kitware.com (Brad King) Date: Fri, 13 Jun 2003 15:25:21 -0400 (EDT) Subject: [vtkusers] CVS gasps and dies In-Reply-To: <0HGF00NZUNSV1Y@mta08ps.email.bigpond.com> Message-ID: John, > im having probs updating my cvs... > > it gasped and died. > > I tried doing a brand new checkout as well, and that failed at the same > point:: > > Disk on your CVS server close to death? [snip] > cvs checkout: dying gasps from public.kitware.com unexpected Please try again now. We were just working on a problem with the CVS tree within the last few minutes. -Brad From jss at au.mensa.org Fri Jun 13 15:44:18 2003 From: jss at au.mensa.org (John Sincock) Date: Sat, 14 Jun 2003 05:14:18 +0930 Subject: [vtkusers] CVS gasps and dies In-Reply-To: References: Message-ID: <0HGF00K4MQUDP4@mta07ps.email.bigpond.com> Still no luck :( cvs server: Updating VTK/Wrapping/Tcl/vtktesting S-> Reader_Lock(/cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting) S-> Lock_Cleanup() S-> rename(CVS/Entries.Backup,CVS/Entries) S-> unlink_file(CVS/Entries.Log) cvs checkout: dying gasps from public.kitware.com unexpected It just wont ever get past the point: /cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting my dialup is about to hit its 5 hour limit in 15 minutes, then im going sleepy byes, so I wont try again until tomorrow. Nice to know its just a temporary glitch at your end though, probly, hope it works tomorrow! John On Saturday 14 June 2003 04:55 am, you wrote: > [snip] > > cvs checkout: dying gasps from public.kitware.com unexpected > > Please try again now. We were just working on a problem with the CVS tree > within the last few minutes. > -Brad From neerav at interchange.ubc.ca Fri Jun 13 15:48:50 2003 From: neerav at interchange.ubc.ca (neerav) Date: Fri, 13 Jun 2003 12:48:50 -0700 Subject: [vtkusers] Finding (X,Y) Coordinate of Image Message-ID: <7566422.1055533729892.JavaMail.myubc2@portal1.itservices.ubc.ca> Hi, I need to be able to retrieve the position of the mouse click on a picture in X,Y positions that is rendered using vtkRenderWindow. Does anyone know how to do this. Any help will be greatly appreciated. Neerav From hvidal at tesseract-tech.com Fri Jun 13 15:52:46 2003 From: hvidal at tesseract-tech.com (H.Vidal, Jr.) Date: Fri, 13 Jun 2003 15:52:46 -0400 (EDT) Subject: [vtkusers] adding or contributing Message-ID: This is a question about contributing to 'base' distribution of vtk, not adding useful classes, per se. I have noticed some differences between vtkCharArray and vtkIntArray inasmuch as tcl implementations. This is pretty easy to fix. Once I have a working patch, where do I submit this if I think it would be useful for vtk? I somehow recall a developer list for vtk, but I can't find URL or other reference. Any suggestions? Thanks. hvidal From berk.geveci at kitware.com Fri Jun 13 16:30:02 2003 From: berk.geveci at kitware.com (Berk Geveci) Date: 13 Jun 2003 16:30:02 -0400 Subject: [vtkusers] adding or contributing In-Reply-To: References: Message-ID: <1055536203.9605.41.camel@caemlyn.kitwarein.com> > This is a question about contributing to 'base' distribution of vtk, not > adding useful classes, per se. > > I have noticed some differences between vtkCharArray and vtkIntArray > inasmuch as tcl implementations. This is pretty easy to fix. Once I have a > working patch, where do I submit this if I think it would be useful for > vtk? If you post the patch on the user's list, I am sure one of the VTK developers will take a look at it. From hvidal at tesseract-tech.com Fri Jun 13 16:35:52 2003 From: hvidal at tesseract-tech.com (H.Vidal, Jr.) Date: Fri, 13 Jun 2003 16:35:52 -0400 (EDT) Subject: [vtkusers] adding or contributing In-Reply-To: <1055536203.9605.41.camel@caemlyn.kitwarein.com> Message-ID: Inasmuch as a patch is concerned, I have been experimenting with tcl c++ code (wrapper stuff) for vtk classes and have discovered that clean builds actually product the wrapper code, then build it. This suggests some kind of meta-build system for wrapper stuff. So I can patch my c++ sources, but I get the impression that there is more to it in meta-build info for wrappers. If meta-stuff is not patched (I don't know where that is, so far) then a clean build just over-writes my changes (just discovered that too....) and things are not consistent. Any thoughts, developers? hv On 13 Jun 2003, Berk Geveci wrote: > > This is a question about contributing to 'base' distribution of vtk, not > > adding useful classes, per se. > > > > I have noticed some differences between vtkCharArray and vtkIntArray > > inasmuch as tcl implementations. This is pretty easy to fix. Once I have a > > working patch, where do I submit this if I think it would be useful for > > vtk? > > If you post the patch on the user's list, I am sure one of the > VTK developers will take a look at it. From cgarcha at ualberta.ca Fri Jun 13 16:53:18 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Fri, 13 Jun 2003 14:53:18 -0600 Subject: [vtkusers] Installation Message-ID: <3EECDBD3@webmail.ualberta.ca> Hello, I am trying to install the VTK software on a PC. I have completed step2(Running Cmake). The ALL_BUILD project is present, But i cant find VTK.dsw . Also when i run the ALL_BUILD project it asks me to specify a URL. What if i dont have a URL, does that ,mean i cant install the software. Maybe i alreay have the URL but i dont know how to get it. Can you please give me some instructions on how to tackle this problem. Navsharan Garcha University of Alberta From jss at au.mensa.org Fri Jun 13 18:47:22 2003 From: jss at au.mensa.org (John Sincock) Date: Sat, 14 Jun 2003 08:17:22 +0930 Subject: [vtkusers] CVS gasps and dies In-Reply-To: <0HGF00K4MQUDP4@mta07ps.email.bigpond.com> References: <0HGF00K4MQUDP4@mta07ps.email.bigpond.com> Message-ID: <20030613224744.1FD961AB64@public.kitware.com> apologies to all, > > cvs server: Updating VTK/Wrapping/Tcl/vtktesting > S-> Reader_Lock(/cvsroot/VTK/VTK/Wrapping/Tcl/vtktesting) > S-> Lock_Cleanup() > S-> rename(CVS/Entries.Backup,CVS/Entries) > S-> unlink_file(CVS/Entries.Log) > cvs checkout: dying gasps from public.kitware.com unexpected I thought this was a problem, but... I just did a checkout, without the -t option to cvs, and it completed successfully... and the last file was VTK/Wrapping/Tcl/vtktesting .... So that "dying gasps" message was just a minor problem with my Concurrent Versions System (CVS) 1.11.1p1 obviously when the -t is used it spits out that little error message even when the checkout / update has completed successfully. doh! John ps i need sleep. But i shall soon sleep soundly while my VTK compiles :) From nundys at neuro.duke.edu Fri Jun 13 18:53:23 2003 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Fri, 13 Jun 2003 18:53:23 -0400 Subject: [vtkusers] vtkVCollider or some other solution for collision detection? Message-ID: I came across http://www.cineca.it/manuali/maf/mfl/classvtkVCollider.html and was wondering if this was publicly available or better still, if someone had jni-wrapped it. It would be very useful for my work. Is there any other collision detection solution that has worked in vtk for large complex files? I am familiar with vtkOBBTree, but this doesn't seem to work very well with, say, an imported VRML file. Thanks Surajit Nundy From hvidal at tesseract-tech.com Fri Jun 13 21:05:37 2003 From: hvidal at tesseract-tech.com (H.Vidal, Jr.) Date: Fri, 13 Jun 2003 21:05:37 -0400 (EDT) Subject: [vtkusers] Low level access to Array data (OK, here's a patch suggestion) Message-ID: So it would be nice to have pointer level access to things like the vtkIntArray from tcl. This is handy for a situation where array data will be loaded from acquisition device for analysis under vtk. Anyway, this works in tcl for vtkCharArray like this: vtkCharArray c c SetNumberOfValues 100 set p [ c GetPointer 0] Now $p will eval to the raw contents of c because a pointer to a char array in tcl is how tcl thinks. So I guess this is why vtk developers left GetPointer in methods supported for vtkCharArray under tcl. However, as mentioned in other posts, this was not case for vtkIntArray. I still have not figured out how a tcl implementation of a C++ object is created, but I do know that, once created, you can patch and rebuild vtk sources as in: So vtkIntArrayTcl.cxx is the implementation of vtkIntArray under tcl. if you patch it thusly (skip the copious comments, if you like...): 0a1,4 > // 12-Jun-03 HCV/TT > // 1. add GetPointer Method functionality cribbed from existing > // vtkCharArrayTcl.cxx infrastructure > // 327a332,359 > > // HCV/TT: add GetPointer handler > // > if((!strcmp("GetPointer",argv[1])) && (argc==3)) > { > char tempResult[100]; > long temp0; > int *temp20; > error = 0; > > if(Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; > temp0 = tempi; > if(!error) > { > temp20 = op->GetPointer(temp0); > if(temp20) > { > sprintf(tempResult,"%p",(void *)temp20); > Tcl_SetResult(interp, tempResult, TCL_VOLATILE); > } > else > { > Tcl_ResetResult(interp); > } > return TCL_OK; > } > } > 429a462 > Tcl_AppendResult(interp," GetPointer\t with 1 args\n",NULL); You can then do things like: vtkIntArray i i SetNumberOfValues 100 set p [ i GetPointer 0] RxIntPointer $p If RxIntPointer looks (in C) kind of like this: void RxIntPointer(char *pcIn) { int *pI; if(!sscan(pcIn,"%p",&pI)) return; (now access raw data via *pI indirection) presumably, if this kind of voodoo is applied to all vtkArray code, everywhere high speed I/O to raw data is possible. Woo hoo!! have fun. hv From jss at au.mensa.org Fri Jun 13 21:11:47 2003 From: jss at au.mensa.org (John Sincock) Date: Sat, 14 Jun 2003 10:41:47 +0930 Subject: [vtkusers] problems with gcc 3.3 Message-ID: <0HGG00LH8603K7@mta07ps.email.bigpond.com> Hi all, cmake 1.6 patch 7 doesnt like my gcc 3.3 it says it cant make executables, but i am quite sure it can, because thats what gcc is for.... Can someone tell me what is the latest version of gcc that is known to work for current VTK CVS?? thanks, John From jss at au.mensa.org Fri Jun 13 21:29:36 2003 From: jss at au.mensa.org (John Sincock) Date: Sat, 14 Jun 2003 10:59:36 +0930 Subject: [vtkusers] Re gcc 3.3 problems Message-ID: <20030614012957.AC7A81AB64@public.kitware.com> Also, can someone tell me if cmake and VTK CVS should be gcc 3.3 compatible soon? I mean, i dont mean to rush anyone :) and im spewing myself that 3.3 (or some recent version anyway) has finally axed multi-line string literal thingies .. no more extending a string across lines with a \ at the end of each line. why do they do these things ... just to ruin backwards compatibility it seems.... John From dgobbi at imaging.robarts.ca Fri Jun 13 21:51:33 2003 From: dgobbi at imaging.robarts.ca (David Gobbi) Date: Fri, 13 Jun 2003 21:51:33 -0400 (EDT) Subject: [vtkusers] Re gcc 3.3 problems In-Reply-To: <20030614012957.AC7A81AB64@public.kitware.com> Message-ID: Hi John, Your best bet is to downgrade to gcc 3.2.2 or 3.2.3, gcc 3.3 is only a month old (and therefore probably has more than a handful of bugs and miscellaneous backwards compatibility problems), whereas the gcc 3.2 series is nearly a year old. It's a good bet that the VTK maintainers are going to wait for gcc 3.3.2 before moving over to the gcc 3.3 series, and I suggest that anyone who doesn't want to walk the bleeding edge should also wait for gcc 3.3.2 before making the switch. - David On Sat, 14 Jun 2003, John Sincock wrote: > Also, > > can someone tell me if cmake and VTK CVS should be gcc 3.3 > compatible soon? > > I mean, i dont mean to rush anyone :) and im spewing myself > that 3.3 (or some recent version anyway) has finally axed > multi-line string literal thingies .. no more extending a string > across lines with a \ at the end of each line. > > why do they do these things ... just to ruin backwards compatibility > it seems.... > > John > _______________________________________________ > 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 > From hcwong at must.edu.mo Fri Jun 13 22:42:38 2003 From: hcwong at must.edu.mo (Hon-Cheng Wong) Date: Sat, 14 Jun 2003 10:42:38 +0800 Subject: [vtkusers] I can't find some example codes of the VTK Textbook from the CD. Message-ID: <001801c3321e$9e6f0730$9714020a@mustdc.edu.mo> Dear all, I got both the VTK User Guide 4.2 and VTK Textbook (3rd ed.). The CDs (Version 4.2.1) of the above books are the same. However, I can't find some examples codes of the VTK Textbook from the CD such as comblso.tcl, hawaii.tcl, headSlic.tcl, and ironPlso.tcl etc. Does anyone know where I can get these example codes? Thank you in advance!! Regards, Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From affable at hd2.dot.net.in Sat Jun 14 02:04:31 2003 From: affable at hd2.dot.net.in (cspl) Date: Sat, 14 Jun 2003 11:34:31 +0530 Subject: [vtkusers] using VTKImageExport Message-ID: <003701c3323a$d3858220$01000001@macinfo.net> Hi Friends I am using vtkImageFFT and vtkImageRFFT in my applicaction along with vtkIimageButterworkHighpassFilter.I am also using vtkImageExtractComponents with SetComponents to 0.When importing the image I am using the unsigned character buffer .After the above operations I am exporting to the same buffer.Here I am getting the Exception which is 'some instruction reference at some location ,that memory location could not be read '.I am getting the error when export to the buffer by using vtkImageExport.Is there any changes in the buffer values type.I could not understand clearly what is the output of vtkimageFFT and vtkImageRFFT.Here I am enclosing my code. m_dstImage->GrayScale(); UpdateAllViews(NULL); BYTE* aImgBits=m_dstImage->GetBits(); int xdim=m_srcImage->GetWidth(); int ydim=m_srcImage->GetHeight(); vtkImageImport *importer = vtkImageImport::New(); importer->SetDataExtent(0,xdim-1 ,0,ydim-1 ,0,0 ); importer->SetWholeExtent(0, xdim-1 ,0,ydim -1,0,0 ); importer->SetDataScalarTypeUnsignedChar(); importer->SetImportVoidPointer(aImgBits); vtkImageFFT *fft=vtkImageFFT::New(); fft->SetDimensionality(2); fft->SetInput(importer->GetOutput()); vtkImageButterworthHighPass *filter=vtkImageButterworthHighPass::New(); filter->SetInput(fft->GetOutput()); filter->SetOrder(2); filter->SetXCutOff(0.2); filter->SetYCutOff(0.1); filter->ReleaseDataFlagOff(); vtkImageRFFT *rfft=vtkImageRFFT::New(); rfft->SetDimensionality(2); rfft->SetInput(filter->GetOutput()); vtkImageExtractComponents *ecomp=vtkImageExtractComponents ::New(); ecomp->SetInput(rfft->GetOutput()); ecomp->SetComponents(0); vtkImageExport *exporter = vtkImageExport::New(); exporter->SetInput(ecomp->GetOutput()); exporter->Export(aImgBits); importer->Delete(); exporter->Delete(); filter->Delete(); fft->Delete(); rfft->Delete(); UpdateAllViews(NULL,WM_USER_NEWIMAGE); Thanking You Chandu -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.baecker at web.de Sat Jun 14 07:35:12 2003 From: arnd.baecker at web.de (Arnd Baecker) Date: Sat, 14 Jun 2003 13:35:12 +0200 (CEST) Subject: [vtkusers] vtk 4.2 for python22 on win32 In-Reply-To: References: Message-ID: Hi, there was just an announcement in the scipy (see http://www.scipy.org/) mailing list of the Python 2.2.3 for Windows (Enthought Edition), to be found at: http://www.enthought.com/python which among other useful stuff contains VTK 4.2.2, Original mail is copied below. Hope this helps, Arnd Date: Fri, 13 Jun 2003 19:07:55 -0500 From: David C. Morrill Reply-To: scipy-chaco at scipy.org To: scipy-dev at scipy.net, scipy-chaco at scipy.org, scipy-user at scipy.net Subject: [Scipy-chaco] Python 2.2.3 for Windows (Enthought Edition) [ The following text is in the "iso-8859-1" character set. ] [ Your display is set for the "US-ASCII" character set. ] [ Some characters may be displayed incorrectly. ] Enthought, Inc. is pleased to announce the availability of Python 2.2.3 for Windows (Enthought Edition) at: http://www.enthought.com/python Python 2.2.3 for Windows (Enthought Edition) is an easily installed and freely downloadable Python distribution incorporating many of the packages that we find useful in our Python programming endeavors: - wxPython 2.4.0.7 - PIL 1.1.4 - VTK 4.2.2 - Numeric 23.0 - SciPy 0.2 - Chaco 0.1.0 - Traits 1.0.2 - PyCrust 0.7.2 Many of these packages should be familiar, if not near and dear, to most of the subscribers to this list :-) We are hoping that people will find this a convenient bundling of many useful Python packages, and we hope to increase both the number of platforms supported as well as the scope of the distribution's content as time goes on. This distribution is in its infancy, and most likely will suffer through a number of growing pains. We're hoping that many of you who might have been looking for an easier way to get many of your favorite (though sometimes difficult to install) Python packages in one convenient distro will give it a try. We're looking forward to hearing what you think, both here on the mailing lists and through the bug tracker we've set up to track any suggestions or problems you might have (the bug tracker link is on the web page referenced above). Regards, the Python guys at Enthought _______________________________________________ Scipy-chaco mailing list Scipy-chaco at scipy.org http://scipy.net/mailman/listinfo/scipy-chaco On Fri, 13 Jun 2003, John Hunter wrote: > > Has anyone compiled VTK 4.2 for python22 on win32? The latest stable > release as well as the nightly builds are for python21. I found > > http://www.physics.ucf.edu/Academics/Python/Python_2.2/VTK4/ and > http://folks.astrian.net/godzilla/ > > which provide VTK 4.0 for python22, but alas, I need python22 AND > VTK4.2+. > > If anyone has the DLLs or an installer or anything useful for me, I'd > be much obliged. > > Thanks, > John Hunter > _______________________________________________ > 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 > From ajit_v_r at hotmail.com Sat Jun 14 09:13:10 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Sat, 14 Jun 2003 18:43:10 +0530 Subject: [vtkusers] Improving rendering speed Message-ID: Hello, I need some tips for improving rendering speed. I am rendering a 3D surface (from 8000 points) and it takes 15 seconds for the Render routine. Is this merely a hardware problem? Here is what I am doing: (ren is the vtkRenderer and renWin is the vtkRenderWindow - the call "renWin->Render" takes ages. I am using the triangle strips as well, as somebody had suggested. I have another model which consists of 76000 points and the whole thing takes 4 minutes to render. I am fully optimizing my code.) // Create a data set. Load the starting points vtkPolyData *inputDataSet = vtkPolyData::New(); inputDataSet->SetPoints(meanPoints); // Construct the surface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(inputDataSet); // Create isosurface vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput(surf->GetOutput()); cf->SetValue(0,0.0); cout << "Isosurface construction done..." << endl; vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); bNormals->SetInput(cf ->GetOutput()); bNormals->SetFeatureAngle(60.0); vtkStripper *bStripper = vtkStripper::New(); bStripper->SetInput(bNormals->GetOutput()); vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(bStripper->GetOutput()); map->ScalarVisibilityOff(); vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper( map ); ren->AddActor(surfaceActor); ren->SetBackground(1,1,1); printf ("\nBefore the Rendering"); renWin->Render(); printf ("\nRendering done..."); _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp From ajit_v_r at hotmail.com Sat Jun 14 09:38:04 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Sat, 14 Jun 2003 19:08:04 +0530 Subject: [vtkusers] Improving rendering speed Message-ID: Hello, I need some tips for improving rendering speed. I am rendering a 3D surface (from 8000 points) and it takes 15 seconds for the Render routine. Is this merely a hardware problem? Here is what I am doing: (ren is the vtkRenderer and renWin is the vtkRenderWindow - the call "renWin->Render" takes ages. I am using the triangle strips as well, as somebody had suggested. I have another model which consists of 76000 points and the whole thing takes 4 minutes to render. I am fully optimizing my code.) // Create a data set. Load the starting points vtkPolyData *inputDataSet = vtkPolyData::New(); inputDataSet->SetPoints(meanPoints); // Construct the surface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(inputDataSet); // Create isosurface vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput(surf->GetOutput()); cf->SetValue(0,0.0); cout << "Isosurface construction done..." << endl; vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); bNormals->SetInput(cf ->GetOutput()); bNormals->SetFeatureAngle(60.0); vtkStripper *bStripper = vtkStripper::New(); bStripper->SetInput(bNormals->GetOutput()); vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(bStripper->GetOutput()); map->ScalarVisibilityOff(); vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper( map ); ren->AddActor(surfaceActor); ren->SetBackground(1,1,1); printf ("\nBefore the Rendering"); renWin->Render(); printf ("\nRendering done..."); _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp From dean.inglis at on.aibn.com Sat Jun 14 12:53:40 2003 From: dean.inglis at on.aibn.com (dean.inglis at on.aibn.com) Date: Sat, 14 Jun 2003 12:53:40 -0400 Subject: [vtkusers] fitting curve to points Message-ID: <20030614165341.JCHH9695.tomts10-srv.bellnexxia.net@[209.226.175.135]> I have extracted the center path from a binarized image of the cross section of a leg bone using -> vtkImageGradient \ vtkImageEuclideanDistance ->| |-> vtkImageNonMaximumSuppression -> vtkImageMagnitude / then extracted the points with vtkImageNonMaximumSuppression -> vtkThresholdPoints I would like to fit a closed polyline to the points, but the points from vtkThresholdPoints are not in a spatially sequential order. Any ideas how to do this? Dean From c.p.botha at its.tudelft.nl Sat Jun 14 15:50:20 2003 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Sat, 14 Jun 2003 20:50:20 +0100 Subject: [vtkusers] Improving rendering speed In-Reply-To: References: Message-ID: <3EEB7C7C.3080607@its.tudelft.nl> Ajit Rajwad? wrote: > I need some tips for improving rendering speed. I am rendering a 3D > surface (from 8000 points) and it takes 15 seconds for the Render > routine. Is this merely a hardware problem? No, this is merely a user problem. :) > // Create isosurface > vtkContourFilter *cf = vtkContourFilter::New(); > cf->SetInput(surf->GetOutput()); > cf->SetValue(0,0.0); > cout << "Isosurface construction done..." << endl; Don't you find it strange that when you run your program, this line prints out very soon after you start the program? How do you think VTK knows to execute your surface reconstruction and contouring right here? Your complete VTK pipeline only starts to execute when you call the renWin->Render(). The 15 seconds that you're worrying about consists of the actual surface reconstruction AND rendering. Try doing a bStripper->Update() BEFORE you begin to render. You don't have to use the Update(), it's only to illustrate my point. After your first long Render(), all subsequent Renders() should be much faster. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From nick.smethurst at free.fr Sat Jun 14 18:44:58 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Sun, 15 Jun 2003 00:44:58 +0200 Subject: [vtkusers] Improving rendering speed In-Reply-To: References: Message-ID: <200306150044.58729.nick.smethurst@free.fr> Hi there.. It's not a solution but merely an sympathy observation: I had and still have a similar problem with my surface plots. By missing out various stages of the pipeline, I found that the main cause of my slow down was the normals calculation. Howeverm I didn't get the kind of slowdown that you have experienced (22801 points takes 2 seconds, 160801 points takes 30 seconds on an Athlon1400). You are using other filters, so they may be slowing your first render down more. I have no idea whether this is an issue with VTK or whether these calculations are just computationally intensive. It's interesting to note that the 160801 point calculation has 160801/22801=7.05 time as many points but takes 30/2=15 times longer to execute. It's similar with your figures: 76000/8000=9.5 times as many points, but 240/15=16 times as much time. Le Samedi 14 Juin 2003 15:38, Ajit Rajwad? a ?crit : > Hello, > > I need some tips for improving rendering speed. I am rendering a 3D > surface (from 8000 points) and it takes 15 seconds for the Render > routine. Is this merely a hardware problem? > > Here is what I am doing: > > (ren is the vtkRenderer and renWin is the vtkRenderWindow - the call > "renWin->Render" takes ages. I am using the triangle strips as well, as > somebody had suggested. I have another model which consists of 76000 > points and the whole thing takes 4 minutes to render. I am fully > optimizing my code.) > > // Create a data set. Load the starting points > vtkPolyData *inputDataSet = vtkPolyData::New(); > inputDataSet->SetPoints(meanPoints); > > // Construct the surface > vtkSurfaceReconstructionFilter *surf = > vtkSurfaceReconstructionFilter::New(); > surf->SetInput(inputDataSet); > > > // Create isosurface > vtkContourFilter *cf = vtkContourFilter::New(); > cf->SetInput(surf->GetOutput()); > cf->SetValue(0,0.0); > cout << "Isosurface construction done..." << endl; > > vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); > bNormals->SetInput(cf ->GetOutput()); > bNormals->SetFeatureAngle(60.0); > > vtkStripper *bStripper = vtkStripper::New(); > bStripper->SetInput(bNormals->GetOutput()); > > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > map->SetInput(bStripper->GetOutput()); > map->ScalarVisibilityOff(); > > vtkActor *surfaceActor = vtkActor::New(); > surfaceActor->SetMapper( map ); > > ren->AddActor(surfaceActor); > ren->SetBackground(1,1,1); > > > printf ("\nBefore the Rendering"); > renWin->Render(); > printf ("\nRendering done..."); > From nick.smethurst at free.fr Sun Jun 15 04:06:37 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Sun, 15 Jun 2003 10:06:37 +0200 Subject: [vtkusers] Improving rendering speed In-Reply-To: References: Message-ID: <200306151006.37860.nick.smethurst@free.fr> One other thing to add to this story about normals calculation time. When I timed a surfl(X,Y,Z) shading interp %Gouraud in Matlab, it took much less time to execute for the same size surface, even though it has to calculate the normals for this type of plot. This makes me wonder if the normals calculation is not well optimised in VTK. Le Samedi 14 Juin 2003 15:38, Ajit Rajwad? a ?crit : > Hello, > > I need some tips for improving rendering speed. I am rendering a 3D > surface (from 8000 points) and it takes 15 seconds for the Render > routine. Is this merely a hardware problem? From David.Pont at ForestResearch.co.nz Sun Jun 15 17:39:49 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Mon, 16 Jun 2003 09:39:49 +1200 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) Message-ID: Hi, long ago Paul Rajlich put together a 'pipeline browser' in Tcl http://brighton.ncsa.uiuc.edu/prajlich/vtkPipeline/ The interesting thing about this was the (dynamic) creation of a GUI interface to the methods in a filter (from Tcl), so you could interactively manipuate filter settings and render to see the effect. This leads to the observation that it would be very useful to have some kind of GUI for pipeline construction, as well as run-time manipulation, ie a 'pipeline editor'. To be useful this would also require the ability to save/load filter configuration (~'persistence'). The GUI interface and the save/load both require a uniform way of obtaining the class interface, with types etc. and of invoking class methods. It is beyond my patchy programming knowledge as to the best way to achieve this, but my gut feeling is it would be best in the native vtk language, C++. This could then be wrapped for other languages as per the core vtk. I am not working on a pipeline editor, just wondering aloud how it might be done... regards Dave Pont |--------+---------------------------------> | | "H. Vidal, Jr." | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 14/06/2003 06:13 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers | | cc: | | Subject: Re: [vtkusers] C++ introspection (was raw buffer access in Tcl) | >------------------------------------------------------------------------------------------------------------| How do you propose that ability of C++ objects to publish their architecture would make pipeline development easier? As I understand it, one could wrap classes in CORBA-style mechanisms allowing objects to, in fact, allow other objects to ask and use 'what's useful about you?' to a given object. This means that knowledge about what the parts do is available (at least at procedural level). Are you working on a pipeline edit system? hv David.Pont at ForestResearch.co.nz wrote: I have thought for a while that if the vtk build process can auto-generate wrappers for other languages then why not for C++. This would give 'introspection' capabilities which would be very useful to make a vtk pipeline editor... my 2c, Dave Pont _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From marcio_mathias at yahoo.com Sun Jun 15 20:42:01 2003 From: marcio_mathias at yahoo.com (Marcio Antonio Mathias) Date: Sun, 15 Jun 2003 17:42:01 -0700 (PDT) Subject: [vtkusers] How to include VTK packages in TCL/TK ? In-Reply-To: Message-ID: <20030616004201.58106.qmail@web14203.mail.yahoo.com> Hi, For many persons Tcl/Tk is not only used as a "glue" but the unique application language. I have been using other Tcl/Tk packages, VTcl (A nice visual tool for Tcl/Tk developing) and packages as BLT (a must for 2-D graphics). The Tcl/Tk used is provided by ActiveState. Everytime a new VTK release is available is a nightmare to get all package running in harmony (when it is possible...). Even using the mentioned setup at Rasmus document, under Win2000 I am still getting the awful "package require VTK... " message Some tricks like the use of "open with vtk.exe" cause the opening of a non a desirable console Window. Has someone know a good recipe how to get VTK working properly using the ActiveState Tcl/Tk 8.x release, integrate to another packages, without having to recompile all the packages together? What realy happened with the missing Tcl directory at the TCLLIBPATH variable (c:/vtk/wrapping/Tcl)? By the way, at the "readme.html" present at VTK4.2.2 release it is still pointing for www.scriptics.com to get Tcl/TK.. and has a broken link (Wrapping/Tcl/README)that points to the missing Tcl directory... /Marcio. ===== Marcio Antonio Mathias Registered Linux user number 248543 Get counted: http://counter.li.org/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From yqtan2003 at sohu.com Sun Jun 15 21:57:27 2003 From: yqtan2003 at sohu.com (yqtan2003 at sohu.com) Date: Mon, 16 Jun 2003 09:57:27 +0800 (CST) Subject: [vtkusers] How to step through vtk source code Message-ID: <5767781.1055728647544.JavaMail.postfix@mx33.mail.sohu.com> Hello everyone. I want to step through vtk source code to see how the render process works, but I just couldn't make it. I have searched the archive, and the recommendations there couldn't help. I am working with vtk4.2. One suggestion in the archive is to use debug version of vtk dll, and I do use the debug version. Another suggestion is to add the files to the project workspace, but this didn't help. I got link error lnk2005, which indicate that the static New function is multiply defined. To debug vtk library, I use the cone application at Examples\Tutorial\Step1\Cxx\cone.cxx in vtk source code. Thanks in advance. From lisa.avila at kitware.com Sun Jun 15 22:31:11 2003 From: lisa.avila at kitware.com (Lisa Avila) Date: Sun, 15 Jun 2003 22:31:11 -0400 Subject: [vtkusers] Low level access to Array data (OK, here's a patch suggestion) In-Reply-To: Message-ID: <5.2.0.9.0.20030615203108.0116b008@pop.biz.rr.com> Hello, You cannot patch any *Tcl.cxx code - this is automatically generated code. The change must be made down in the wrapping code. Lisa At 09:05 PM 6/13/2003, H.Vidal, Jr. wrote: >So it would be nice to have pointer level access to things >like the vtkIntArray from tcl. This is handy for a situation where >array data will be loaded from acquisition device for analysis under vtk. >Anyway, this works in tcl for vtkCharArray like this: > >vtkCharArray c >c SetNumberOfValues 100 >set p [ c GetPointer 0] > >Now $p will eval to the raw contents of c because a pointer to a char >array in tcl is how tcl thinks. So I guess this is why vtk developers >left GetPointer in methods supported for vtkCharArray under tcl. >However, as mentioned in other posts, this was not case for vtkIntArray. >I still have not figured out how a tcl implementation of a C++ object is >created, but I do know that, once created, you can patch and rebuild vtk >sources as in: > >So vtkIntArrayTcl.cxx is the implementation of vtkIntArray under tcl. > >if you patch it thusly (skip the copious comments, if you like...): > >0a1,4 > > // 12-Jun-03 HCV/TT > > // 1. add GetPointer Method functionality cribbed from existing > > // vtkCharArrayTcl.cxx infrastructure > > // >327a332,359 > > > > // HCV/TT: add GetPointer handler > > // > > if((!strcmp("GetPointer",argv[1])) && (argc==3)) > > { > > char tempResult[100]; > > long temp0; > > int *temp20; > > error = 0; > > > > if(Tcl_GetInt(interp,argv[2],&tempi) != TCL_OK) error = 1; > > temp0 = tempi; > > if(!error) > > { > > temp20 = op->GetPointer(temp0); > > if(temp20) > > { > > sprintf(tempResult,"%p",(void *)temp20); > > Tcl_SetResult(interp, tempResult, TCL_VOLATILE); > > } > > else > > { > > Tcl_ResetResult(interp); > > } > > return TCL_OK; > > } > > } > > >429a462 > > Tcl_AppendResult(interp," GetPointer\t with 1 args\n",NULL); > >You can then do things like: > >vtkIntArray i >i SetNumberOfValues 100 >set p [ i GetPointer 0] >RxIntPointer $p > >If RxIntPointer looks (in C) kind of like this: > >void RxIntPointer(char *pcIn) >{ > int *pI; > > if(!sscan(pcIn,"%p",&pI)) > return; > > (now access raw data via *pI indirection) > > >presumably, if this kind of voodoo is applied to all vtkArray >code, everywhere high speed I/O to raw data is possible. Woo hoo!! > >have fun. > >hv > > >_______________________________________________ >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 From prabhu at aero.iitm.ernet.in Mon Jun 16 00:33:47 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 16 Jun 2003 10:03:47 +0530 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: References: Message-ID: <16109.18603.935752.455476@monster.linux.in> >>>>> "DP" == David Pont writes: DP> Hi, DP> long ago Paul Rajlich put together a 'pipeline browser' in DP> Tcl DP> http://brighton.ncsa.uiuc.edu/prajlich/vtkPipeline/ Just FYI a similar but possibly more mature one is available for Python here: http://mayavi.sf.net/vtkPipeline This also supports persistence of some form. [snip] DP> class methods. It is beyond my patchy programming knowledge DP> as to the best way to achieve this, but my gut feeling is it DP> would be best in the native vtk language, C++. This could then DP> be wrapped for other languages as per the core vtk. There are libraries out there that let you more or less do what you want but its quite unsatisfactory and definitely not in the same league as what you can do with a scripting language. C/C++ does not provide a native mechanism to do this. This sort of thing is best done using a scripting language. One obvious way of doing this for VTK via C++ would be to dump the method information to a special XML (or something else) file and then use that to obtain the necessary information about a particular class and its methods. However this is a pain since it does require the XML data and quite unlike how you can do this in Python or Tcl. Writing a pipeline editor is sure possible but is IMHO best done in a scripting language. Writing it in C++ would be quite masochistic, IMHO. cheers, prabhu From jbiddiscombe at skippingmouse.co.uk Mon Jun 16 01:39:29 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Mon, 16 Jun 2003 06:39:29 +0100 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) References: <16109.18603.935752.455476@monster.linux.in> Message-ID: <001801c333c9$a8922920$0100a8c0@tigger> > Writing a pipeline editor is sure possible but is IMHO best done in a > scripting language. Writing it in C++ would be quite masochistic, > IMHO. Then I'd best change my name to the Marquis de Sade or something similar. You can have a play with RPD very soon. I'm just in the process of sorting out an upload to the web and in a few days it'll be available. It's only a dodgy beta that needs lots of fixes, but the general framework is quite stable and it can be used for real world vis stuff. JB From prabhu at aero.iitm.ernet.in Mon Jun 16 02:44:19 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 16 Jun 2003 12:14:19 +0530 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: <001801c333c9$a8922920$0100a8c0@tigger> References: <16109.18603.935752.455476@monster.linux.in> <001801c333c9$a8922920$0100a8c0@tigger> Message-ID: <16109.26435.555547.209017@monster.linux.in> >>>>> "MdS" == Marquis de Sade == John Biddiscombe writes: >> Writing a pipeline editor is sure possible but is IMHO best >> done in a scripting language. Writing it in C++ would be quite >> masochistic, IMHO. MdS> Then I'd best change my name to the Marquis de Sade or MdS> something similar. You can have a play with RPD very You got it! :-D MdS> soon. I'm just in the process of sorting out an upload to the MdS> web and in a few days it'll be available. It's only a dodgy MdS> beta that needs lots of fixes, but the general framework is MdS> quite stable and it can be used for real world vis stuff. Cool! So the question is how do you handle the introspection? Save the data externally and use that or some special Marquis de Sade magic? ;-) BTW, does RPD run on *nix (or Linux) or is it Windows only? cheers, prabhu From michael.hilbinger at nmfgmbh.de Mon Jun 16 04:18:17 2003 From: michael.hilbinger at nmfgmbh.de (Michael Hilbinger) Date: Mon, 16 Jun 2003 10:18:17 +0200 Subject: [vtkusers] ??? surface mesh and determination of in/out of the volume In-Reply-To: <20030615114109.21198.82403.Mailman@public.kitware.com> Message-ID: Hello, I want to use vtk to construct layer meshes from a given surface mesh defining a volume and - as expected - I'm encountering problems. how could I solve the following: I have a surface mesh consisting of triangles. As said, the surface is closed and will represent a volume. If I want to contruct an offset surface mesh inside the original surface mesh by geometrical definition, I'll need to determine the direction towards the inside of the volume. Has anybody an idea how I might perform this task? Best regards Michael ------------------------------------ _o --/-> (_)/(_) ------------------------------------ From MRYWu at ntu.edu.sg Mon Jun 16 04:49:01 2003 From: MRYWu at ntu.edu.sg (Wu Ruoyun) Date: Mon, 16 Jun 2003 16:49:01 +0800 Subject: [vtkusers] why no color for the output from vtkCutter Message-ID: <9C9309FA33DB90499DE4B818889DF6F70284A2F2@exchange01.staff.main.ntu.edu.sg> Hello, I assumed that the output from vtkCutter is a normal vtkPolyData. I can display the output, but only in white color. I've tried to use vtkPolyDataMapper->GetProperty()->SetColor(1, 0, 0), but it is still in white. I have also tried the same SetColor approach but on a sphere from vtkSphereSource and it is in red correctly. Could anyone enlighten me about the problem? Best Wishes! Ruoyun -----Original Message----- From: Michael Hilbinger [mailto:michael.hilbinger at nmfgmbh.de] Sent: Monday, June 16, 2003 4:18 PM To: vtkusers at public.kitware.com Subject: [vtkusers] ??? surface mesh and determination of in/out of the volume Hello, I want to use vtk to construct layer meshes from a given surface mesh defining a volume and - as expected - I'm encountering problems. how could I solve the following: I have a surface mesh consisting of triangles. As said, the surface is closed and will represent a volume. If I want to contruct an offset surface mesh inside the original surface mesh by geometrical definition, I'll need to determine the direction towards the inside of the volume. Has anybody an idea how I might perform this task? Best regards Michael ------------------------------------ _o --/-> (_)/(_) ------------------------------------ _______________________________________________ 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 From john.biddiscombe at mirada-solutions.com Mon Jun 16 05:22:33 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Mon, 16 Jun 2003 10:22:33 +0100 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B77540712EA@oxcore01.mirada-solutions.com> > Cool! So the question is how do you handle the introspection? Save > the data externally and use that or some special Marquis de Sade > magic? ;-) If you look at vtkWrapJava, vtkWrapTcl, vtkWrapXXX, I've created a vtkWrapGUI set of stuff that parses the vtk source and generates a C++ class for each vtk class. The wrapped class inherits from my rpd BaseControl which is a generic window style control and each vtk subclass creates radiobuttons editboxes etc for each set/get type method. The the RPD framework loads these in the form of vtkCommonRPD.dll, vtkGraphicsRPD.dll etc etc > BTW, does RPD run on *nix (or Linux) or is it Windows only? At the moment it's windows only, but I have a working wxWindows compiled version of quite a large portion of it. I have been using Borland C++Builder for many years and have recently been getting fed up with it and decided to experiment with wxWindows. If there was a demand for it, then a wx version might be released. But I'd need to charge a small ? for RPD to fund myself to work on it - previous experience shows that RPD will not be sucessful and so it's not likely to happen. ttfn JB From tholozano at gmx.de Mon Jun 16 06:25:25 2003 From: tholozano at gmx.de (tholozano at gmx.de) Date: Mon, 16 Jun 2003 12:25:25 +0200 (MEST) Subject: [vtkusers] How to get color at spezific xyz-coordinate? Message-ID: <11521.1055759125@www60.gmx.net> Hi Has anyone an idea how i can get the color of a point xyz from my source data? thx Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Jun 16 06:29:00 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 16 Jun 2003 12:29:00 +0200 Subject: [vtkusers] How to get color at spezific xyz-coordinate? In-Reply-To: <11521.1055759125@www60.gmx.net> References: <11521.1055759125@www60.gmx.net> Message-ID: <3EED9BEC.2030701@creatis.insa-lyon.fr> THomas, Have a look at: vtkImageData::GetScalarComponentAsFloat http://www.vtk.org/doc/nightly/html/classvtkImageData.html#z332_0 HTH mathieu tholozano at gmx.de wrote: > Hi > > Has anyone an idea how i can get the color of a point xyz from my source > data? > > thx > > Thomas > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From ober at statoil.com Mon Jun 16 07:20:50 2003 From: ober at statoil.com (=?iso-8859-1?Q?=D8ivind_Berggraf?=) Date: Mon, 16 Jun 2003 13:20:50 +0200 Subject: [vtkusers] VTK and Java - general question Message-ID: Hi, I work for Statoil, a large Norwegian based oil company. We are currently thinking of using vtk in one of our internal research applications. The application is written in Java 1.4 >From the mailing list it looks like there is not a lot of Java activity going on. Should we be concerned regarding using vtk through the Java interface? I am not looking for a comitting answer, but does anyone have an opinion. Thanks, ?ivind ------------------------------------------------------------------- The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Thank you. From asiram00 at hotmail.com Mon Jun 16 12:07:00 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Mon, 16 Jun 2003 16:07:00 +0000 Subject: [vtkusers] Help: image size!! Message-ID: Hi vtkUsers, I have an image and a renderWindow. I would like that the image would fit the entire renderWindow. I've tried to capture the image size and put the dimensions on the dimensions of the renderWindow. But, the image shrinks propotionate to the to the image size. It seems VTK has a default image viewer property, so that all images are viewed in tha same manner, independently of their size. Can anybody help me????? Tell me how to break this rule??? Thanks in advance, Marisa _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From dirk.schmedding at zn-ag.com Mon Jun 16 12:56:34 2003 From: dirk.schmedding at zn-ag.com (Dirk Schmedding) Date: Mon, 16 Jun 2003 18:56:34 +0200 Subject: [vtkusers] Coloring a 2D Mapper Message-ID: <3EEDF6C2.7010605@zn-ag.com> Hi! I don't know how to color an object mapped to a 2D Actor. What I want is to map a cylinder to an 2D image and color it analogous to its z (position) value. So far, so easy... To map the object is no problem, but now I want to color the mapped object. As greater as the z (position) value of the object is, as brighter or darker the color have to be. (or colorfuller or what ever seems to be easier to realize) I hope anybody can help me! By the way, I am working with Visual C++ under Windows NT. best regards Dirk The current pipeline looks like this: --------------- ------------------- --------------- |vtkTransform | |vtkCylinderSource| |vtkTransform | --------------- ------------------- --------------- | | | v v v ---------------------------- ---------------------------- |vtkTransformPolyDataFilter|--> |vtkTransformPolyDataFilter| ---------------------------- ---------------------------- | | v v ------------------- ---------- --------------------- |vtkPolyDataMapper| |vtkPlane|--> |vtkPolyDataMapper2D| ------------------- ---------- --------------------- | | v v ---------- ------------ |vtkActor| |vtkActor2D| ---------- ------------ | | v v ------------------- ------------------- |vtkRendererWidget| |vtkRendererWidget| ------------------- ------------------- From mcguinpg at maths.tcd.ie Mon Jun 16 13:08:53 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Mon, 16 Jun 2003 18:08:53 +0100 (BST) Subject: [vtkusers] undefined reference to vtkJPEGWriter when defined? Message-ID: Hi Developers, I have a small problem with some simple piece of test code and essentially I just want to write my 'renWin' as it is so called to a jpeg file using vtkJPEGWriter, but I get the following error: Building dependencies cmake.check_depends... -- Compiling VTK loaded commands -- Compiling VTK loaded commands - done Building object file meshcolorjacobi.o... Building executable meshcolorjacobi... meshcolorjacobi.o: In function `main': meshcolorjacobi.o(.text+0x3e6): undefined reference to `vtkJPEGWriter::New(void)' meshcolorjacobi.o(.text+0x55b): undefined reference to `vtkImageWriter::SetFileName(char const *)' collect2: ld returned 1 exit status make[1]: *** [meshcolorjacobi] Error 1 make: *** [default_target] Error 2 Does anyone know what this could mean, I have checked and I have both vtkJPEGWriter.h and vtkImageWriter.h, and I have correctly defined these in my source code. I would very much appreciate your help. Thanks, Paul. From jreigle at concentric.net Mon Jun 16 15:01:53 2003 From: jreigle at concentric.net (Jim Reigle) Date: Mon, 16 Jun 2003 15:01:53 -0400 Subject: [vtkusers] Plotting Message-ID: <3EEE141F.E0CF6E05@concentric.net> Hello. Does anyone know the basic steps in constructing an xy plot? I have been working with the vtkXYPlotActor class, and have been able to display the axes, but no data is presented. How do you input the data into vtk so that the vtkXYPlotActor class can visualize it? Thanks. Jim Reigle From winston at cat.rpi.edu Mon Jun 16 14:18:29 2003 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon, 16 Jun 2003 14:18:29 -0400 Subject: [vtkusers] Re: Plotting References: <3EEE141F.E0CF6E05@concentric.net> Message-ID: <3EEE09F5.D0ED79F1@cat.rpi.edu> Jim Reigle wrote: > > Does anyone know the basic steps in constructing an xy plot? > I have been working with the vtkXYPlotActor class, and have > been able to display the axes, but no data is presented. How > do you input the data into vtk so that the vtkXYPlotActor class > can visualize it? http://www.vtk.org/doc/nightly/html/classvtkXYPlotActor.html (read the Warning) & http://www.vtk.org/doc/nightly/html/c2_vtk_e_6.html#c2_vtk_e_vtkXYPlotActor HTH, -Jeremy From nick.smethurst at free.fr Mon Jun 16 14:31:36 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Mon, 16 Jun 2003 20:31:36 +0200 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: <001801c333c9$a8922920$0100a8c0@tigger> References: <16109.18603.935752.455476@monster.linux.in> <001801c333c9$a8922920$0100a8c0@tigger> Message-ID: <200306162031.36763.nick.smethurst@free.fr> Hi everyone I noticed this discussion on the idea of a c++ pipeline browser and thought I'd add my 2 cents.. In the last few months, I've been developing a c++ based KDE visualisation program that uses VTK and I've been toying with using XML to implement an object browser in c++. My initial reasoning was that loading/saving to/from the XML files of my application would slot in to this configuration, but the more I think about it, the more it looks to me that it could be a generally good way of providing general runtime manipulation for the pipeline browser I am writing. My initial idea was to construct a simple base class with virtual domIn(..) and domOut(..) methods (plus a QListViewItem object for the browser in the case of my KDE app), and then to use multiple inheritance to construct a new set of classes derived from this base class and each VTK object class. The domIn/domOut methods would hopefully be written using an automated procedure, and would process/generate XML DOM elements passed/received by whatever needed to pass/receive them. It struck me that if anyone else was interested in this kind of thing, a collaboration could beneficial. Is there anyone out there that would be interested in this idea? This part of my program could easily be non-program specific. Nick Le Lundi 16 Juin 2003 07:39, John Biddiscombe a ?crit : > > Writing a pipeline editor is sure possible but is IMHO best done in a > > scripting language. Writing it in C++ would be quite masochistic, > > IMHO. > > Then I'd best change my name to the Marquis de Sade or something > similar. You can have a play with RPD very soon. I'm just in the process > of sorting out an upload to the web and in a few days it'll be > available. It's only a dodgy beta that needs lots of fixes, but the > general framework is quite stable and it can be used for real world vis > stuff. > > JB > > _______________________________________________ > 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 From prabhu at aero.iitm.ernet.in Mon Jun 16 14:45:49 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 17 Jun 2003 00:15:49 +0530 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: <200306162031.36763.nick.smethurst@free.fr> References: <16109.18603.935752.455476@monster.linux.in> <001801c333c9$a8922920$0100a8c0@tigger> <200306162031.36763.nick.smethurst@free.fr> Message-ID: <16110.4189.62940.40899@monster.linux.in> >>>>> "NS" == N Smethurst writes: NS> In the last few months, I've been developing a c++ based KDE NS> visualisation program that uses VTK and I've been toying with NS> using XML to implement an object browser in c++. My initial [snip] >From what I can understand of this, you'll have to store the entire VTK API in XML files. Thats a lot of data! John generates new classes using VTK's wrapper generation code. Atleast that way the data is part of your API but note that to do this your libraries will be huge. Compare this to the 2500 odd lines of code it takes to do all this via Python (including GUI and pickling). [snip] NS> It struck me that if anyone else was interested in this kind NS> of thing, a collaboration could beneficial. Is there anyone NS> out there that would be interested in this idea? This part of NS> my program could easily be non-program specific. If only you's switch to using Python/Tcl you could already leverage existing code to do this. :-) cheers, prabhu From sxa at fluent.com Mon Jun 16 14:53:40 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Mon, 16 Jun 2003 14:53:40 -0400 Subject: [vtkusers] Bug with vtkRotationalExtrusionFilter Message-ID: <012201c33438$9a08d970$8ae4e9c0@sxapc> Greetings, We try to use vtkRotationalExtrusionFilter to generate a solid cylinder based on a 2D polyline. The output is not completly 360 degree of rotational extrusion. I attached an image to help illustrate the bug. The main part of the code follows : ################################################### vtkPoints* points = vtkPoints::New(); points->SetNumberOfPoints (4); points->SetPoint( 0, m_ibaseRadius, 0.0, 0.0); points->SetPoint( 1, m_baseRadius, 0.0, 0.0); points->SetPoint( 2, m_topRadius, 0.0, m_height); points->SetPoint( 3, m_itopRadius, 0.0,m_height); vtkCellArray* lines = vtkCellArray::New lines->InsertNextCell( 5); lines->InsertCellPoint( 0); lines->InsertCellPoint( 1); lines->InsertCellPoint( 2); lines->InsertCellPoint( 3); lines->InsertCellPoint( 0); vtkPolyData* profile = vtkPolyData::New(); profile->SetPoints( points); profile->SetLines (lines); profile->Update(); vtkRotationalExtrusionFilter* extrude = vtkRotationalExtrusionFilter::New(); extrude->SetInput( profile); extrude->SetResolution (36); extrude->SetAngle(360); extrude->Update(); ############################################################ An outline actor is also created to display the edges of the solid. Thanks for any help ! ____________________________________ Seb -------------- next part -------------- A non-text attachment was scrubbed... Name: cylinder.jpg Type: image/jpeg Size: 35847 bytes Desc: not available URL: From victor at rmquake.uprm.edu Fri Jun 13 12:44:50 2003 From: victor at rmquake.uprm.edu (victor at rmquake.uprm.edu) Date: Fri, 13 Jun 2003 16:44:50 -0000 Subject: [vtkusers] tcl 8.4 Message-ID: <3EE9FF82.25636.22D24E@localhost> Dear VTK developers, Just i upgrade my tcl/tk to 8.4, the version from ActiveState.. Now i'm having problems with my vtk4.2.. The binary requires tcl8.3 that is not longer in my machine. How I can run the vtk4.2 with tcl8.4? Thanks in advance, Victor Huerfano PRSN -AR From sebastien.barre at kitware.com Mon Jun 16 15:31:24 2003 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon, 16 Jun 2003 15:31:24 -0400 Subject: [vtkusers] tcl 8.4 In-Reply-To: <3EE9FF82.25636.22D24E@localhost> Message-ID: <5.2.1.1.0.20030616153028.0237b448@pop.biz.rr.com> Hello Victor At 6/13/2003 04:44 PM, victor at rmquake.uprm.edu wrote: >Dear VTK developers, > >Just i upgrade my tcl/tk to 8.4, the version from ActiveState.. Now >i'm having problems with my vtk4.2.. The binary requires tcl8.3 that >is not longer in my machine. > >How I can run the vtk4.2 with tcl8.4? You can't, the VTK 4.2 binary distrib is linked against Tcl 8.3. In order to support Tcl 8.4, you will have to download the source distribution, and build it. -- Sebastien Barre From gregorb at clear.net.nz Mon Jun 16 16:19:04 2003 From: gregorb at clear.net.nz (Gregor Bruce) Date: Tue, 17 Jun 2003 08:19:04 +1200 Subject: [vtkusers] How to include VTK packages in TCL/TK ? In-Reply-To: <20030616004201.58106.qmail@web14203.mail.yahoo.com> References: <20030616004201.58106.qmail@web14203.mail.yahoo.com> Message-ID: <3EEE2638.1040003@clear.net.nz> Marcio Antonio Mathias wrote: >someone know a good recipe how to get VTK working >properly using the ActiveState Tcl/Tk 8.x release, >integrate to another packages, without having to >recompile all the packages together? > > I have found that using the Tcl package load command on each of vtk's Tcl dll's seems to provide a working version of vtk that responds to "package require vtk". I don't use the standard vtk directories however. I place the vtk dll's in the tcl bin dir (which must be in the path) and the xxxTcl.dll files in lib/vtk along with the following two files. Part of the reasoning here is to ensure that I can do a package require in a safe interp (e.g. the tcl browser plugin). # vtktcl.tcl package require vtkCommonTCL 4.2 package require vtkFilteringTCL 4.2 package require vtkGraphicsTCL 4.2 package require vtkIOTCL 4.2 package require vtkImagingTCL 4.2 package require vtkRenderingTCL 4.2 package provide vtkrendering 4.2 package provide vtk 4.2 and # pagIndex.tcl package ifneeded vtkinteraction 4.2 [list source [file join $dir vtkinteraction.tcl]] package ifneeded Vtktkimageviewerwidget 1.2 [list load [file join $dir vtkRenderingTCL.dll]] package ifneeded Vtktkrenderwidget 1.2 [list load [file join $dir bin/vtkRenderingTCL.dll]] package ifneeded vtkCommonTCL 4.2 [list load [file join $dir vtkCommonTCL.dll]] package ifneeded vtkFilteringTCL 4.2 [list load [file join $dir vtkFilteringTCL.dll]] package ifneeded vtkGraphicsTCL 4.2 [list load [file join $dir vtkGraphicsTCL.dll]] package ifneeded vtkIOTCL 4.2 [list load [file join $dir vtkIOTCL.dll]] package ifneeded vtkImagingTCL 4.2 [list load [file join $dir vtkImagingTCL.dll]] package ifneeded vtkRenderingTCL 4.2 [list load [file join $dir vtkRenderingTCL.dll]] package ifneeded vtkHybridTCL 4.2 [list load [file join $dir vtkHybridTCL.dll]] package ifneeded vtk 4.2 [list source [file join $dir vtktcl.tcl]] I have tested this with the cone and MaceTk examples (i.e. examples that don't require and VTK DATA). For the record I am building all the binaries for this myself including Tcl (Tcl/Tk 8.4.2) but this should work with the active state Tcl distribution assuming that the version of vtk binaries is compatible. Hope this helps Gregor Bruce From cgarcha at ualberta.ca Mon Jun 16 16:54:28 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Mon, 16 Jun 2003 14:54:28 -0600 Subject: [vtkusers] installing problems Message-ID: <3EEE77E2@webmail.ualberta.ca> i am trying to install VTK using visual studio .NET on a windows XP machine. I run CMAKEsetup and save the files in a folder called "vtkbin"(as suggested by the install page). The next step asks me to open "msdev" and load VTK.dsw . What does it mean by "msdev" and there is no file generated called VTK.dsw . Then i open Visual studio .NET and build the ALL_BUILD project that is present in the "vtkbin" folder. When i run the project it asks me for an executable and it also asks me for an "URL" for debugging. can anyone please tell me what to fill-in IN those boxes. THANKS Nabby From David.Pont at ForestResearch.co.nz Mon Jun 16 18:06:29 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Tue, 17 Jun 2003 10:06:29 +1200 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) Message-ID: John, Yes I do recall a recent announce re RPD. Your approach of wrapping the C++ sounds great. While it might be easier in the short term to work in python/Tcl, starting from C++ lays solid foundations that give a lot more options. I reckon a GUI pipeline editor could be VERY successful. Done well this could become 'the way' non-programming experts (= most of the potential audience) use vtk. The trick might be to find someone with the pockets and the goodwill to fund your development. (RPD+?=killerApp?). I have a vague recollection of Kitware doing funded development for a client that they were also allowed to contribute back to vtk?? this would be the ultimate arrangement ! Maybe ITK could use a pipeline editor? A collaborative effort could be another option, I would put my hand up. But it sounds like you have already invested substantial effort, so this might not be a good option for you. I am keen to give RPD a test drive, keep us posted 'Marquis de Masochisme' Dave |--------+---------------------------------------> | | "John Biddiscombe" | | | | | | Sent by: | | | vtkusers-admin at public.kitware| | | .com | | | | | | | | | 16/06/2003 21:22 | | | | |--------+---------------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: "Prabhu Ramachandran" , "John Biddiscombe" | | | | cc: , "vtkusers" | | Subject: RE: [vtkusers] C++ introspection (was raw buffer access in Tcl) | >------------------------------------------------------------------------------------------------------------| > Cool! So the question is how do you handle the introspection? Save > the data externally and use that or some special Marquis de Sade > magic? ;-) If you look at vtkWrapJava, vtkWrapTcl, vtkWrapXXX, I've created a vtkWrapGUI set of stuff that parses the vtk source and generates a C++ class for each vtk class. The wrapped class inherits from my rpd BaseControl which is a generic window style control and each vtk subclass creates radiobuttons editboxes etc for each set/get type method. The the RPD framework loads these in the form of vtkCommonRPD.dll, vtkGraphicsRPD.dll etc etc > BTW, does RPD run on *nix (or Linux) or is it Windows only? At the moment it's windows only, but I have a working wxWindows compiled version of quite a large portion of it. I have been using Borland C++Builder for many years and have recently been getting fed up with it and decided to experiment with wxWindows. If there was a demand for it, then a wx version might be released. But I'd need to charge a small ? for RPD to fund myself to work on it - previous experience shows that RPD will not be sucessful and so it's not likely to happen. ttfn JB _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From dsd at lorax.ca Mon Jun 16 19:58:21 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Mon, 16 Jun 2003 16:58:21 -0700 Subject: [vtkusers] Surface - Volume intersection Message-ID: <68729652-A056-11D7-9EAD-000A9575B2AC@lorax.ca> I have an irregular surface in 3D (an open pit mine) and a volume that intersects this surface (an ore body). I would like to calculate the area of the surface corresponding to the intersection. The volume is also irregular, hence the intersection may consist of multiple patches of the surface. Can this be done using VTK? How? Thanks, Donald S. Dunbar, Ph.D. Senior Physical Oceanographer Lorax Environmental Consultants Ltd. 1108 Mainland Street Vancouver, BC V6B 5L1 Ph: 604-688-7173 Fx: 604-688-7175 From David.Pont at ForestResearch.co.nz Mon Jun 16 20:28:51 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Tue, 17 Jun 2003 12:28:51 +1200 Subject: [vtkusers] ??? surface mesh and determination of in/out of the volume Message-ID: Michael, vtkPolyDataNormals will give outward facing surface normals. For each cell/point in the original data you could subtract the normal from the point to generate a new point. For very small displacements this could be used to create a new mesh directly. For a more general solution I suppose you could use 3D Delauny triangulation on the displaced points? Dave P |--------+---------------------------------> | | "Michael Hilbinger" | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 16/06/2003 20:18 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [vtkusers] ??? surface mesh and determination of in/out of the volume | >------------------------------------------------------------------------------------------------------------| Hello, I want to use vtk to construct layer meshes from a given surface mesh defining a volume and - as expected - I'm encountering problems. how could I solve the following: I have a surface mesh consisting of triangles. As said, the surface is closed and will represent a volume. If I want to contruct an offset surface mesh inside the original surface mesh by geometrical definition, I'll need to determine the direction towards the inside of the volume. Has anybody an idea how I might perform this task? Best regards Michael ------------------------------------ _o --/-> (_)/(_) ------------------------------------ _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From MRYWu at ntu.edu.sg Mon Jun 16 20:48:14 2003 From: MRYWu at ntu.edu.sg (Wu Ruoyun) Date: Tue, 17 Jun 2003 08:48:14 +0800 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) Message-ID: <9C9309FA33DB90499DE4B818889DF6F702875373@exchange01.staff.main.ntu.edu.sg> Hi Is there anyone thinking about using Java reflaction mechanism to get the method declarations from a class? If this approach can be done, a pipeline editor may be created in Java, without using XML to store class information. Just a suggestion. Hope it helps. Best Wishes! Ruoyun -----Original Message----- From: John Biddiscombe [mailto:john.biddiscombe at mirada-solutions.com] Sent: Monday, June 16, 2003 5:23 PM To: Prabhu Ramachandran; John Biddiscombe Cc: David.Pont at ForestResearch.co.nz; vtkusers Subject: RE: [vtkusers] C++ introspection (was raw buffer access in Tcl) > Cool! So the question is how do you handle the introspection? Save > the data externally and use that or some special Marquis de Sade > magic? ;-) If you look at vtkWrapJava, vtkWrapTcl, vtkWrapXXX, I've created a vtkWrapGUI set of stuff that parses the vtk source and generates a C++ class for each vtk class. The wrapped class inherits from my rpd BaseControl which is a generic window style control and each vtk subclass creates radiobuttons editboxes etc for each set/get type method. The the RPD framework loads these in the form of vtkCommonRPD.dll, vtkGraphicsRPD.dll etc etc > BTW, does RPD run on *nix (or Linux) or is it Windows only? At the moment it's windows only, but I have a working wxWindows compiled version of quite a large portion of it. I have been using Borland C++Builder for many years and have recently been getting fed up with it and decided to experiment with wxWindows. If there was a demand for it, then a wx version might be released. But I'd need to charge a small ? for RPD to fund myself to work on it - previous experience shows that RPD will not be sucessful and so it's not likely to happen. ttfn JB _______________________________________________ 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 From MRYWu at ntu.edu.sg Mon Jun 16 20:51:57 2003 From: MRYWu at ntu.edu.sg (Wu Ruoyun) Date: Tue, 17 Jun 2003 08:51:57 +0800 Subject: [vtkusers] Coloring a 2D Mapper Message-ID: <9C9309FA33DB90499DE4B818889DF6F702875374@exchange01.staff.main.ntu.edu.sg> Hi I encounter similar (but not exactly the same) problem yesterday. Gwen's advice solves my problem. Please try mapper->ScalarVisibilityOff(); Best Wishes! Ruoyun -----Original Message----- From: Dirk Schmedding [mailto:dirk.schmedding at zn-ag.com] Sent: Tuesday, June 17, 2003 12:57 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Coloring a 2D Mapper Hi! I don't know how to color an object mapped to a 2D Actor. What I want is to map a cylinder to an 2D image and color it analogous to its z (position) value. So far, so easy... To map the object is no problem, but now I want to color the mapped object. As greater as the z (position) value of the object is, as brighter or darker the color have to be. (or colorfuller or what ever seems to be easier to realize) I hope anybody can help me! By the way, I am working with Visual C++ under Windows NT. best regards Dirk The current pipeline looks like this: --------------- ------------------- --------------- |vtkTransform | |vtkCylinderSource| |vtkTransform | --------------- ------------------- --------------- | | | v v v ---------------------------- ---------------------------- |vtkTransformPolyDataFilter|--> |vtkTransformPolyDataFilter| ---------------------------- ---------------------------- | | v v ------------------- ---------- --------------------- |vtkPolyDataMapper| |vtkPlane|--> |vtkPolyDataMapper2D| ------------------- ---------- --------------------- | | v v ---------- ------------ |vtkActor| |vtkActor2D| ---------- ------------ | | v v ------------------- ------------------- |vtkRendererWidget| |vtkRendererWidget| ------------------- ------------------- _______________________________________________ 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 From MRYWu at ntu.edu.sg Mon Jun 16 21:01:02 2003 From: MRYWu at ntu.edu.sg (Wu Ruoyun) Date: Tue, 17 Jun 2003 09:01:02 +0800 Subject: [vtkusers] Help: image size!! Message-ID: <9C9309FA33DB90499DE4B818889DF6F702875375@exchange01.staff.main.ntu.edu.sg> Hi I have a renderWindow to display video and the video (640x480) fits the entire window. The following codes may help you to achieve the same thing. You need to make your renderWindow have a size of 640x480 first. videoImageImport = vtkImageImport::New(); videoImageImport->SetImportVoidPointer( (void*) videoImage ); videoImageImport->SetWholeExtent( 0, 640-1, 0, 480-1, 0, 0 ); videoImageImport->SetDataExtentToWholeExtent(); videoImageImport->SetDataScalarTypeToUnsignedChar(); videoImageImport->SetNumberOfScalarComponents( 3 ); videoImageImport->SetDataSpacing( 1, 1, 1 ); videoImageImport->SetDataOrigin( -640/2, -480/2, 0 ); videoImageActor = vtkImageActor::New(); videoImageActor->SetInput(videoImageImport->GetOutput()); videoRenderer = vtkRenderer::New(); videoRenderer->AddActor(videoImageActor); videoCamera = vtkCamera::New(); videoCamera->SetPosition( 0, 0, 500 ); videoCamera->SetClippingRange( 1, 1000 ); videoCamera->ComputeViewPlaneNormal(); videoCamera->ParallelProjectionOn(); videoCamera->SetParallelScale( 480/2 ); videoRenderer->SetActiveCamera( videoCamera ); Best Wishes! Ruoyun -----Original Message----- From: marisa aurelio [mailto:asiram00 at hotmail.com] Sent: Tuesday, June 17, 2003 12:07 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Help: image size!! Hi vtkUsers, I have an image and a renderWindow. I would like that the image would fit the entire renderWindow. I've tried to capture the image size and put the dimensions on the dimensions of the renderWindow. But, the image shrinks propotionate to the to the image size. It seems VTK has a default image viewer property, so that all images are viewed in tha same manner, independently of their size. Can anybody help me????? Tell me how to break this rule??? Thanks in advance, Marisa _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _______________________________________________ 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 From eric at ece.gatech.edu Mon Jun 16 21:50:45 2003 From: eric at ece.gatech.edu (Eric Pichon) Date: Mon, 16 Jun 2003 21:50:45 -0400 (EDT) Subject: [vtkusers] vtkPolyDataMapper ColorByArrayComponent Message-ID: Hi All, I am trying to generate an isosurface and then color it with a different scalar field. This is described in the VTK user guide (p86, 5.1, "Color an isosurface with another scalar") but strangely whichever color field I try to map to the isosurface color I cannot seem to get anything but a dull gray. Any idea on what I am doing wrong would be really appreciated ! Thanks, Eric ---- (I think that the construction of the vtkImageData might be incorrect ? I am trying to use 'inImage' for the isosurface and 'outImage' for the color. Again, the isosurface is fine but not colored. It looks like any arguments can be given to ColorByArray component without causing any error message at runtime. This is also the behavior in the example ColorIsosurface.tcl) // Create the RenderWindow, Renderer and both Actors vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // create pipeline vtkMergePoints *locator = vtkMergePoints::New(); locator->SetDivisions(32, 32, 46); locator->RetainCellListsOff(); locator->SetNumberOfPointsPerBucket(2); locator->AutomaticOff(); vtkImageData *data = vtkImageData::New(); data->SetScalarTypeToShort(); data->SetSpacing( dx, dy, dz ); data->SetDimensions( nX, nY, nZ ); short *ptrData = (short *)data->GetScalarPointer(); vtkShortArray *array = vtkShortArray::New(); array->SetName("HU"); array->SetNumberOfValues(nX*nY*nZ); short *ptrArray = array->GetPointer( 0 ); int x, y, z; int index=0; for( z=0;zxyz(x,y,z); ptrArray[index]=outImage->xyz(x,y,z); index++; } vtkFieldData *field = vtkFieldData::New(); field->AddArray( array ); cout << "field:"; vtkIndent *indent = vtkIndent::New(); field->PrintSelf(cout, *indent ); cout << endl; data->SetFieldData( field ); vtkContourFilter *iso = vtkContourFilter::New(); iso->SetInput( data ); iso->SetValue( 0, 0.5 ); /* vtkMarchingCubes *iso = vtkMarchingCubes::New(); iso->SetInput( data ); iso->SetValue( 0, 0.5 ); iso->ComputeGradientsOn(); iso->ComputeScalarsOn(); //iso->ComputeScalarsOff(); iso->SetLocator(locator); */ cout << "iso:"; iso->PrintSelf(cout, *indent ); cout << endl; cout << "iso->GetFieldData():"; iso->GetOutput()->GetFieldData()->PrintSelf(cout, *indent ); cout << endl; vtkPolyDataMapper *isoMapper = vtkPolyDataMapper::New(); isoMapper->SetInput( iso->GetOutput() ); isoMapper->ScalarVisibilityOn(); isoMapper->SetScalarRange(0, 500); isoMapper->SetScalarModeToUsePointFieldData(); isoMapper->ColorByArrayComponent("HU", 0); vtkActor *isoActor=vtkActor::New(); isoActor->SetMapper( isoMapper ); vtkOutlineFilter *outline=vtkOutlineFilter::New(); outline->SetInput( data ); vtkPolyDataMapper *outlineMapper = vtkPolyDataMapper::New(); outlineMapper->SetInput( outline->GetOutput() ); vtkActor *outlineActor = vtkActor::New(); outlineActor->SetMapper( outlineMapper ); // Add the actors to the renderer, set the background and size ren1->AddActor( outlineActor ); ren1->AddActor( isoActor ); ren1->SetBackground( 1, 1, 1 ); renWin->SetSize( 500, 500 ); ren1->SetBackground( 0.1, 0.2, 0.4 ); ren1->GetActiveCamera()->Elevation(90); ren1->GetActiveCamera()->SetViewUp( 0, 0, -1 ); ren1->GetActiveCamera()->Zoom( 1.5 ); ren1->ResetCameraClippingRange(); // render the image renWin->Render(); iren->Start(); From affable at hd2.dot.net.in Tue Jun 17 01:26:39 2003 From: affable at hd2.dot.net.in (cspl) Date: Tue, 17 Jun 2003 10:56:39 +0530 Subject: [vtkusers] using VTKImageExport Message-ID: <00f001c33491$10395180$01000001@macinfo.net> Hi Friends I am using vtkImageFFT and vtkImageRFFT in my applicaction along with vtkIimageButterworkHighpassFilter.I am also using vtkImageExtractComponents with SetComponents to 0.When importing the image I am using the unsigned character buffer .After the above operations I am exporting to the same buffer.Here I am getting the Exception which is 'some instruction reference at some location ,that memory location could not be read '.I am getting the error when export to the buffer by using vtkImageExport.Is there any changes in the buffer values type.I could not understand clearly what is the output of vtkimageFFT and vtkImageRFFT.Here I am enclosing my code. m_dstImage->GrayScale(); UpdateAllViews(NULL); BYTE* aImgBits=m_dstImage->GetBits(); int xdim=m_srcImage->GetWidth(); int ydim=m_srcImage->GetHeight(); vtkImageImport *importer = vtkImageImport::New(); importer->SetDataExtent(0,xdim-1 ,0,ydim-1 ,0,0 ); importer->SetWholeExtent(0, xdim-1 ,0,ydim -1,0,0 ); importer->SetDataScalarTypeUnsignedChar(); importer->SetImportVoidPointer(aImgBits); vtkImageFFT *fft=vtkImageFFT::New(); fft->SetDimensionality(2); fft->SetInput(importer->GetOutput()); vtkImageButterworthHighPass *filter=vtkImageButterworthHighPass::New(); filter->SetInput(fft->GetOutput()); filter->SetOrder(2); filter->SetXCutOff(0.2); filter->SetYCutOff(0.1); filter->ReleaseDataFlagOff(); vtkImageRFFT *rfft=vtkImageRFFT::New(); rfft->SetDimensionality(2); rfft->SetInput(filter->GetOutput()); vtkImageExtractComponents *ecomp=vtkImageExtractComponents ::New(); ecomp->SetInput(rfft->GetOutput()); ecomp->SetComponents(0); vtkImageExport *exporter = vtkImageExport::New(); exporter->SetInput(ecomp->GetOutput()); exporter->Export(aImgBits); importer->Delete(); exporter->Delete(); filter->Delete(); fft->Delete(); rfft->Delete(); UpdateAllViews(NULL,WM_USER_NEWIMAGE); Thanking You Chandu -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at opes.com.au Tue Jun 17 01:49:34 2003 From: paul at opes.com.au (Paul Tait) Date: Tue, 17 Jun 2003 13:49:34 +0800 Subject: [vtkusers] Re:How to step through vtk source code Message-ID: <003501c33494$3dbf0980$0a0aa8c0@godzilla> The only way I've found to do it is to build static libraries and link to those. This is under windows Paul Tait --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.490 / Virus Database: 289 - Release Date: 16-Jun-03 From c.p.botha at ewi.tudelft.nl Tue Jun 17 03:49:12 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 17 Jun 2003 09:49:12 +0200 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: References: Message-ID: <1055836152.19845.18.camel@dutidad> On Tue, 2003-06-17 at 00:06, David.Pont at ForestResearch.co.nz wrote: > Your approach of wrapping the C++ sounds great. While it might be easier in > the short term to work in python/Tcl, starting from C++ lays solid > foundations that give a lot more options. I would like to know what you mean by this statement. It almost seems like you think Python and/or Tcl are not up to the job of "laying solid foundations". :) -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha at ewi.tudelft.nl Tue Jun 17 03:49:23 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 17 Jun 2003 09:49:23 +0200 Subject: [vtkusers] raw buffer access in Tcl In-Reply-To: References: Message-ID: <1055836163.19889.21.camel@dutidad> On Fri, 2003-06-13 at 02:21, David.Pont at ForestResearch.co.nz wrote: > I have thought for a while that if the vtk build process can auto-generate > wrappers for other languages then why not for C++. This would give > 'introspection' capabilities which would be very useful to make a vtk > pipeline editor... I would like to add my 2 cents. I have not seen RPD yet, but one of the better examples of a VTK pipeline editor is the VISSION system[1] by Alex Telea[2]. It blows most other network editors out of the water, as wrapping VTK represents only a single case study for VISSION. The system has been used to wrap other large C++ toolkits as well. Alex solved the introspection issue in an entirely generic (and therefore universally applicable) fashion by making use of a C++ interpreter and Alex's metaclass concept. The only disadvantage of VISSION is that it's not publically available. :) However, the way in which the C++ introspection problem was solved is available and has been proven to work exceedingly well. Personally, I would just do it via Python a la vtkPipeline (by Prabhu, based on work by Paul for Tcl), but then that's me. :) [1] http://www.win.tue.nl/~alext/ALEX/PAPERS/papers.html (search for keyword VISSION, there are at least 4 articles) [2] http://www.win.tue.nl/~alext/ Best regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From dirk.schmedding at zn-ag.com Tue Jun 17 04:34:46 2003 From: dirk.schmedding at zn-ag.com (Dirk Schmedding) Date: Tue, 17 Jun 2003 10:34:46 +0200 Subject: [vtkusers] Coloring a 2D Mapper In-Reply-To: <9C9309FA33DB90499DE4B818889DF6F702875374@exchange01.staff.main.ntu.edu.sg> References: <9C9309FA33DB90499DE4B818889DF6F702875374@exchange01.staff.main.ntu.edu.sg> Message-ID: <3EEED2A6.3030403@zn-ag.com> Hi! I have tried this, but nothing happend. I added ScalarVisibilityOff to the vtkPolyDataMapper2D, but I have seen no effect. Herewith the releated code fragment, maybe someone of you can see and tell me where ( and that seems for me to be the problem) I have to say the mapper what it has to use (namely the z position data) to color its content. Or what ever the problem could be... thanks a lot! Dirk //==================================================================================== vtkTransform *drillTransformCylinderM = vtkTransform::New(); drillTransformCylinderM->Identity(); drillTransformCylinderM->Translate( xRangeL, yRangeL, zRangeL ); vtkCylinderSource *drillCylinderM = vtkCylinderSource::New(); drillCylinderM->SetCenter( xRangeL, yRangeL, zRangeL ); drillCylinderM->SetRadius( 4.0 ); drillCylinderM->SetHeight( 100 ); drillCylinderM->SetResolution( 5 ); vtkTransformPolyDataFilter *drillTransPDCylinderM = vtkTransformPolyDataFilter::New(); drillTransPDCylinderM->SetInput( drillCylinderM->GetOutput() ); drillTransPDCylinderM->SetTransform( drillTransformCylinderM ); vtkPolyDataMapper *drillCylinderMapperM = vtkPolyDataMapper::New(); drillCylinderMapperM->SetInput( drillTransPDCylinderM->GetOutput() ); vtkActor *drillCylinderActorM = vtkActor::New(); drillCylinderActorM->SetMapper( drillCylinderMapperM ); drillCylinderActorM->GetProperty()->SetColor( 0.47, 0.56, 0.73); drillCylinderActorM->SetOrigin( xRangeL, yRangeL, zRangeL ); rendererM->AddActor( drillCylinderActorM ); //transform object for drill, needed to show drill at plane 1 vtkTransform* transformDrill1 = vtkTransform::New(); transformDrill1->Identity(); transformDrill1->Scale(plane1ScaleFactorM, plane1ScaleFactorM, plane1ScaleFactorM); transformDrill1->Translate(-DataBoundsM[0], -DataBoundsM[2],-DataBoundsM[4]); //transform filter for drill and plane 1 (needed to apply transform to drill) vtkTransformPolyDataFilter* transformFilterDrill1 = vtkTransformPolyDataFilter::New(); transformFilterDrill1->SetInput( drillTransPDCylinderM->GetOutput()); transformFilterDrill1->SetTransform(transformDrill1); //transform filter for cone and plane 1 (needed to apply transform to cone) vtkTransformPolyDataFilter* transformFilterCone1 = vtkTransformPolyDataFilter::New(); transformFilterCone1->SetInput(drillTransPDConeM->GetOutput()); transformFilterCone1->SetTransform(transformDrill1); vtkPlane *plane11 = vtkPlane::New(); vtkPolyDataMapper2D *mapper11 = vtkPolyDataMapper2D::New(); mapper11->SetInput( transformFilterDrill1->GetOutput() ); mapper11->CreateDefaultLookupTable( ); mapper11->ScalarVisibilityOff(); mapper11->AddClippingPlane ( plane11 ); vtkActor2D *gridActor11 = vtkActor2D::New(); gridActor11->SetMapper( mapper11 ); plane1RendererM->AddActor2D( gridActor11 ); //==================================================================================== Wu Ruoyun schrieb: > Hi > > I encounter similar (but not exactly the same) problem yesterday. Gwen's advice solves my problem. Please try > > mapper->ScalarVisibilityOff(); > > Best Wishes! > Ruoyun > > > -----Original Message----- > From: Dirk Schmedding [mailto:dirk.schmedding at zn-ag.com] > Sent: Tuesday, June 17, 2003 12:57 AM > To: vtkusers at public.kitware.com > Subject: [vtkusers] Coloring a 2D Mapper > > > Hi! > > I don't know how to color an object mapped to a 2D Actor. > > What I want is to map a cylinder to an 2D image and color it analogous > to its z (position) value. So far, so easy... > > To map the object is no problem, but now I want to color the mapped > object. As greater as the z (position) value of the object is, as > brighter or darker the color have to be. (or colorfuller or what ever > seems to be easier to realize) > > I hope anybody can help me! > By the way, I am working with Visual C++ under Windows NT. > > best regards > Dirk > > > The current pipeline looks like this: > > --------------- ------------------- --------------- > |vtkTransform | |vtkCylinderSource| |vtkTransform | > --------------- ------------------- --------------- > | | | > v v v > ---------------------------- ---------------------------- > |vtkTransformPolyDataFilter|--> |vtkTransformPolyDataFilter| > ---------------------------- ---------------------------- > | | > v v > ------------------- ---------- --------------------- > |vtkPolyDataMapper| |vtkPlane|--> |vtkPolyDataMapper2D| > ------------------- ---------- --------------------- > | | > v v > ---------- ------------ > |vtkActor| |vtkActor2D| > ---------- ------------ > | | > v v > ------------------- ------------------- > |vtkRendererWidget| |vtkRendererWidget| > ------------------- ------------------- > > > > > _______________________________________________ > 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 > From jbiddiscombe at skippingmouse.co.uk Tue Jun 17 04:35:42 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 17 Jun 2003 09:35:42 +0100 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) References: <16109.18603.935752.455476@monster.linux.in><001801c333c9$a8922920$0100a8c0@tigger><200306162031.36763.nick.smethurst@free.fr> <16110.4189.62940.40899@monster.linux.in> Message-ID: <001101c334ab$81ed4b50$0100a8c0@tigger> > >From what I can understand of this, you'll have to store the entire > VTK API in XML files. Thats a lot of data! John generates new > classes using VTK's wrapper generation code. Atleast that way the > data is part of your API but note that to do this your libraries will > be huge. Compare this to the 2500 odd lines of code it takes to do > all this via Python (including GUI and pickling). Quite true, the dll's that bind rpd to vtk are similar in size to vtkCommon.tcl vtkGraphics.tcl etc etc and it's something I have a solution to. The use of XML files to store all member info is no problem, they may be big, but in the grand scheme of things it's small potatoes compared to all the other data we work with, so I'll probably (if version 3 ever happens) make RPD create an XML or similar data layer and then dynamically create the RPD gui wrappers at run-time. This actually solves a few other issues at the same time (but I shan't go into them here) - though the generation of the C++ classes does have it's merits too. JB From Said.El_Kasmi at sophia.inria.fr Tue Jun 17 05:00:56 2003 From: Said.El_Kasmi at sophia.inria.fr (Said.) Date: Tue, 17 Jun 2003 11:00:56 +0200 Subject: [vtkusers] Use vtk an a quasi-rel-time sttering application. Message-ID: <3EEED8C8.461AB86B@sophia.inria.fr> Hi, I'm using vtk to developpe a small tool to visualize some data in an application for simulations steering. I already developped a prototype (in C++ language) of this application using vtk, MPI and the vtkqt package to assure reel-time updating of the view when a solver send new data to the viewer. I wand to develop an other version of this prototype using Java, vtk and RMI. Does any body know if there is an equivalent to vtkqt for Java+vtk. From zhou at isg.cs.uni-magdeburg.de Tue Jun 17 05:06:50 2003 From: zhou at isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Tue, 17 Jun 2003 11:06:50 +0200 Subject: [vtkusers] OpenGL questions about Register combiners for NVIDIA board Message-ID: <3EEEF64B.4048.45AD2C@localhost> Hi, I am using OpenGL and the register combiners approach for programming volume rendering. My graphics card is Geforce 4. I hope someone who use this kind of board and OpenGL can answer my questions. I have a question about register combiners and pixel transfers / dependent textures. I calculate a specific value using register combiners and store it in texture2. Now I do not want to use this value directly but use it as an index for pixel transfer. Is it possible to specify a pixel transfer mapping during register combiner operations? I think about the following scenario: The register combiners calculate value X and while storing it in texture2 the pixel mapping takes place and the mapped values (using glPixelMapfv (GL_PIXEL_MAP_I_TO_G,...) ) are stored. Is this possible? If not - can I combine register combiners and dependent texures? So I compute X and store it in texture2 - and use texture 3 afterwards in a way that texture2 is the index for texture3... Is this realistic or is it impossible? I hope I could describe my problem! Thanks for the answers, Best regards, Jianlong From prabhu at aero.iitm.ernet.in Tue Jun 17 05:37:03 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 17 Jun 2003 15:07:03 +0530 Subject: Graphical network/pipeline editors (was Re: [vtkusers] raw buffer access in Tcl) In-Reply-To: <1055836163.19889.21.camel@dutidad> References: <1055836163.19889.21.camel@dutidad> Message-ID: <16110.57663.188197.297726@monster.linux.in> >>>>> "CPB" == Charl P Botha writes: CPB> On Fri, 2003-06-13 at 02:21, David.Pont at ForestResearch.co.nz CPB> wrote: >> I have thought for a while that if the vtk build process can >> auto-generate wrappers for other languages then why not for >> C++. This would give 'introspection' capabilities which would >> be very useful to make a vtk pipeline editor... CPB> I would like to add my 2 cents. I have not seen RPD yet, but CPB> one of the better examples of a VTK pipeline editor is the CPB> VISSION system[1] by Alex Telea[2]. It blows most other [...] Very interesting. You might also want to take a look at ViPEr: http://www.scripps.edu/~sanner/python/publications.html Specifically this: http://www.scripps.edu/~sanner/html/papers/IPC02.pdf cheers, prabhu From gte631d at mail.gatech.edu Tue Jun 17 05:55:44 2003 From: gte631d at mail.gatech.edu (Michael S. Vaz) Date: Tue, 17 Jun 2003 05:55:44 -0400 (EDT) Subject: [vtkusers] tcl 8.4 Message-ID: The following link (to vtk FAQ) could perhaps add to Sebastian's reply. It gives some useful info on adjustments to CMake ect. http://public.kitware.com/cgi-bin/vtkfaq?req=all#2.5 Thanks, Sarju Michael S. Vaz 324607 Georgia Tech Station Atlanta Georgia, 30332 Internet: gte631d at prism.gatech.edu SMS : sarju at voicestream.net From twtan at cheerful.com Tue Jun 17 06:04:39 2003 From: twtan at cheerful.com (Kevin Tiow Wee Tan) Date: Tue, 17 Jun 2003 11:04:39 +0100 Subject: [vtkusers] speed on vtkImageReslice between rotateX & rotateY Message-ID: <3EEEE7B7.89F3DAC3@cheerful.com> Hi all, How are you? Further to my mail send on 12th Jun, 2003 on rotate raw data in X and Y direction, I foudn a way to do so quite easily and quickly... The following is my way of coding for doing so: vtkImageReader reader = new vtkImageReader(); reader.SetFileNme(filename); reader.SetFileDimensionality(3); reader.GetOutput().ReleaseDataFlagOn(); vtkImageChangeInformation changeInfo = new vtkImageChangeInformation(); changeInfo.SetInput(reader.GetOutput()); changeInfo.CenterImageOn(); vtkImageReslice reslice = new vtkImageReslice(); reslice.SetInput( reader.GetOutput()); vtkTransform transform = new vtkTransform(); transform.RotateX(-90.); //transform.RotateY(-90.); reslice.SetResliceAxis(transform.GetMatrix()); reslice.Update(); //quicker on file reading without the above line vtkImageViewer viewer = new vtkImageViewer(); viewer.OffScreenRenderingOn(); viewer.SetInput(reslice.GetOutput()); My query is why is there a SPEED DIFFERENCE if I use RotateX and RotateY? The process of RotateX seems to be quicker than RotateY. RotateY seems to take ages before the process is completed. If I discard the line reslice.Update(); the slices reading process seems a lot quicker for both, but it take about 2-4 seconds for each slice to display on RotateY, but only take only take about 0.5 or less on RotateX Is this normal on the speed difference between these two rotation orientation? Any advice would be greatly appreciated... -- Thanks Kevin ********************************** Manchester Material Science Centre University of Manchester ---------------------------------- Centre for Virtual Environments University of Salford ********************************** From gte631d at mail.gatech.edu Tue Jun 17 06:23:54 2003 From: gte631d at mail.gatech.edu (Michael S. Vaz) Date: Tue, 17 Jun 2003 06:23:54 -0400 (EDT) Subject: [vtkusers] installing problems (cgarcha) Message-ID: Hi Nabby, By msdev, I think they are rererring to the Microsoft Development Environment (ie. Visual Studio). The *.dsw file is the "workspace" file as referred to in Visual Studio 6.0. I believe this is referred to as a "solution" (*.sln) under VS .NET. Also, as far as I know the building step is all that you should do. Once you have built VTK, the installation process is complete. You should now be able to use VTK. In Visual C++ (C-code in general) you will create an executable (*.exe) when you compile your code. You "run" this compiled executable. As far as I can tell, you are just installing VTK, hence there should be no compiling (just the ALL_BUILD) and therefore the run step is not applicable. Hope this helps, Sarju Michael S. Vaz 324607 Georgia Tech Station Atlanta Georgia, 30332 Internet: gte631d at prism.gatech.edu SMS : sarju at voicestream.net From ramakrishna.prakash at quest-global.com Tue Jun 17 09:10:00 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 17 Jun 2003 18:40:00 +0530 Subject: [vtkusers] vtkAppendPolyData Message-ID: <000001c334d1$c2a55450$de0ba8c0@qtwblr01.questglobal.com> Hello, In my application I use vtkAppendPolyData to join two polydata. but I see that this increases the file size by great extent when I write the joined data into a file. The size of the original .STL file is 10 MB. I cut the model into smaller parts and again join them by vtkAppendpolyData, then write the data back into .stl file, the file size is nearly 100MB. How to solve this problem. Please help. Thanks Shyam From bernadette.louat2 at mail.dcu.ie Tue Jun 17 09:09:49 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Tue, 17 Jun 2003 14:09:49 +0100 Subject: [vtkusers] where is vtkImageMarchingCubes.java??? Message-ID: <008701c334d1$bb78ef20$3ef9ce88@ranma> Hi all, I would like to use this class vtkImageMarchingCubes, but It does not exist in the VTK.jar 4.2. I would like to know where I can found it. Thanks in advance bernadette -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cedric.Le.Maitre at ifremer.fr Tue Jun 17 09:19:23 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Tue, 17 Jun 2003 15:19:23 +0200 Subject: [vtkusers] Is there a vtkPatented.lib file ? Message-ID: <3EEF155B.20D1FB7D@ifremer.fr> Hi VTK users, I'm moving up from VTK2.4 to 4.2. My code use vtkDecimate class. I have the source code of this class in a patented directory but i didn't have any vtkPatented.lib file. How could i make links between my classes and this on ? Thanks, Cedric. From ramakrishna.prakash at quest-global.com Tue Jun 17 09:31:07 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 17 Jun 2003 19:01:07 +0530 Subject: FW: [vtkusers] vtkAppendPolyData Message-ID: <000101c334d4$b5bc8d50$de0ba8c0@qtwblr01.questglobal.com> Further to my previous mail, the problem is not with vtkAppendPolyData but with vtkSTLWriter itself. I tried reading a .stl file and rewriting it with vtkSTLWriter(and doing nothing else). the original file size was 9MB. but the size of the file written with vtkSTLWriter is 36 MB. what could be the problem? Hello, In my application I use vtkAppendPolyData to join two polydata. but I see that this increases the file size by great extent when I write the joined data into a file. The size of the original .STL file is 10 MB. I cut the model into smaller parts and again join them by vtkAppendpolyData, then write the data back into .stl file, the file size is nearly 100MB. How to solve this problem. Please help. 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://public.kitware.com/mailman/listinfo/vtkusers From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Jun 17 09:27:18 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 17 Jun 2003 15:27:18 +0200 Subject: FW: [vtkusers] vtkAppendPolyData In-Reply-To: <000101c334d4$b5bc8d50$de0ba8c0@qtwblr01.questglobal.com> References: <000101c334d4$b5bc8d50$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EEF1736.50908@creatis.insa-lyon.fr> Just a bet: vtkSTLWriter :: SetFileTypeToBinary () HTH mathieu R K Shyamprakash wrote: > Further to my previous mail, the problem is not with vtkAppendPolyData but > with vtkSTLWriter itself. I tried reading a .stl file and rewriting it with > vtkSTLWriter(and doing nothing else). the original file size was 9MB. but > the size of the file written with vtkSTLWriter is 36 MB. what could be the > problem? > > > > > Hello, > In my application I use vtkAppendPolyData to join two polydata. > but I see that this increases the file size by great extent when I write the > joined data into a file. The size of the original .STL file is 10 MB. I cut > the model into smaller parts and again join them by vtkAppendpolyData, then > write the data back into .stl file, the file size is nearly 100MB. How to > solve this problem. Please help. > > 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://public.kitware.com/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://public.kitware.com/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 Mathieu.Malaterre at creatis.insa-lyon.fr Tue Jun 17 09:29:18 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 17 Jun 2003 15:29:18 +0200 Subject: [vtkusers] Is there a vtkPatented.lib file ? In-Reply-To: <3EEF155B.20D1FB7D@ifremer.fr> References: <3EEF155B.20D1FB7D@ifremer.fr> Message-ID: <3EEF17AE.8010906@creatis.insa-lyon.fr> You can only access Patented class from a vtk source build. Enter CMakeSetup select 'Patented' -> On And you should be all set. Mathieu Ps: could you please search the mailing list before posting a question that has already been answered many times, thanks. Cedric LE MAITRE wrote: > Hi VTK users, > > I'm moving up from VTK2.4 to 4.2. My code use vtkDecimate class. I have > the source code of this class in a patented directory but i didn't have > any vtkPatented.lib file. How could i make links between my classes and > this on ? > > Thanks, > Cedric. > _______________________________________________ > 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 > -- 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 Tue Jun 17 09:30:40 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 17 Jun 2003 15:30:40 +0200 Subject: [vtkusers] where is vtkImageMarchingCubes.java??? In-Reply-To: <008701c334d1$bb78ef20$3ef9ce88@ranma> References: <008701c334d1$bb78ef20$3ef9ce88@ranma> Message-ID: <3EEF1800.3070902@creatis.insa-lyon.fr> Did you build Patented directory first ? http://vtk.org/pipermail/vtkusers/2003-June/018514.html HTH mathieu Bernadette Louat wrote: > Hi all, > I would like to use this class vtkImageMarchingCubes, but It does not > exist in the VTK.jar 4.2. I would like to know where I can found it. > Thanks in advance > bernadette -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From eric at ece.gatech.edu Tue Jun 17 10:00:07 2003 From: eric at ece.gatech.edu (Eric Pichon) Date: Tue, 17 Jun 2003 10:00:07 -0400 (EDT) Subject: [vtkusers] vtkPolyDataMapper ColorByArrayComponent In-Reply-To: References: Message-ID: Hi, I finally managed to solve my own problem (creating an isosurface from a scalar field and coloring it with another scalar field). I was using PointFieldData instead of PointData. If you want more details the correct pipeline is below. Sorry for bothering you all with that, Eric --- // Create the RenderWindow, Renderer and both Actors vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // create pipeline vtkMergePoints *locator = vtkMergePoints::New(); locator->SetDivisions(32, 32, 46); locator->RetainCellListsOff(); locator->SetNumberOfPointsPerBucket(2); locator->AutomaticOff(); vtkImageData *data = vtkImageData::New(); data->SetScalarTypeToShort(); data->SetSpacing( dx, dy, dz ); data->SetDimensions( nX, nY, nZ ); short *ptrData = (short *)data->GetScalarPointer(); vtkShortArray *array = vtkShortArray::New(); array->SetName("HU"); array->SetNumberOfValues(nX*nY*nZ); short *ptrArray = array->GetPointer( 0 ); int x, y, z; int index=0; for( z=0;zxyz(x,y,z); ptrArray[index]=outImage->xyz(x,y,z); index++; } vtkPointData *pointData = data->GetPointData(); pointData->AddArray( array ); vtkContourFilter *iso = vtkContourFilter::New(); iso->SetInput( data ); iso->SetValue( 0, 0.5 ); /* vtkMarchingCubes *iso = vtkMarchingCubes::New(); iso->SetInput( data ); iso->SetValue( 0, 0.5 ); iso->ComputeGradientsOn(); iso->ComputeScalarsOn(); //iso->ComputeScalarsOff(); iso->SetLocator(locator); */ vtkPolyDataMapper *isoMapper = vtkPolyDataMapper::New(); isoMapper->SetInput( iso->GetOutput() ); isoMapper->ScalarVisibilityOn(); isoMapper->SetScalarRange(0, 500); isoMapper->SetScalarModeToUsePointFieldData(); isoMapper->ColorByArrayComponent("HU", 0); vtkActor *isoActor=vtkActor::New(); isoActor->SetMapper( isoMapper ); vtkOutlineFilter *outline=vtkOutlineFilter::New(); outline->SetInput( data ); vtkPolyDataMapper *outlineMapper = vtkPolyDataMapper::New(); outlineMapper->SetInput( outline->GetOutput() ); vtkActor *outlineActor = vtkActor::New(); outlineActor->SetMapper( outlineMapper ); // Add the actors to the renderer, set the background and size ren1->AddActor( outlineActor ); ren1->AddActor( isoActor ); ren1->SetBackground( 1, 1, 1 ); renWin->SetSize( 500, 500 ); ren1->SetBackground( 0.1, 0.2, 0.4 ); ren1->GetActiveCamera()->Elevation(90); ren1->GetActiveCamera()->SetViewUp( 0, 0, -1 ); ren1->GetActiveCamera()->Zoom( 1.5 ); ren1->ResetCameraClippingRange(); // render the image renWin->Render(); iren->Start(); On Mon, 16 Jun 2003, Eric Pichon wrote: > Hi All, > > I am trying to generate an isosurface and then color it with a different > scalar field. This is described in the VTK user guide (p86, 5.1, "Color an > isosurface with another scalar") but strangely whichever color field I > try to map to the isosurface color I cannot seem to get anything but a > dull gray. > > Any idea on what I am doing wrong would be really appreciated ! > > Thanks, > > Eric > > ---- > (I think that the construction of the vtkImageData might be incorrect ? I > am trying to use 'inImage' for the isosurface and 'outImage' for the > color. Again, the isosurface is fine but not colored. > > It looks like any arguments can be given to ColorByArray component > without causing any error message at runtime. This is also the behavior > in the example ColorIsosurface.tcl) > > > // Create the RenderWindow, Renderer and both Actors > vtkRenderer *ren1 = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > > vtkRenderWindowInteractor *iren = > vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > // create pipeline > vtkMergePoints *locator = vtkMergePoints::New(); > locator->SetDivisions(32, 32, 46); > locator->RetainCellListsOff(); > locator->SetNumberOfPointsPerBucket(2); > locator->AutomaticOff(); > > vtkImageData *data = vtkImageData::New(); > data->SetScalarTypeToShort(); > > data->SetSpacing( dx, dy, dz ); > data->SetDimensions( nX, nY, nZ ); > > short *ptrData = (short *)data->GetScalarPointer(); > > vtkShortArray *array = vtkShortArray::New(); > array->SetName("HU"); > array->SetNumberOfValues(nX*nY*nZ); > short *ptrArray = array->GetPointer( 0 ); > > int x, y, z; > int index=0; > for( z=0;z for( y=0;y for( x=0;x { > > ptrData[index]=inImage->xyz(x,y,z); > > ptrArray[index]=outImage->xyz(x,y,z); > > index++; > } > > vtkFieldData *field = vtkFieldData::New(); > field->AddArray( array ); > > cout << "field:"; > vtkIndent *indent = vtkIndent::New(); > field->PrintSelf(cout, *indent ); > cout << endl; > > data->SetFieldData( field ); > > vtkContourFilter *iso = vtkContourFilter::New(); > iso->SetInput( data ); > iso->SetValue( 0, 0.5 ); > > /* > vtkMarchingCubes *iso = vtkMarchingCubes::New(); > iso->SetInput( data ); > iso->SetValue( 0, 0.5 ); > iso->ComputeGradientsOn(); > iso->ComputeScalarsOn(); //iso->ComputeScalarsOff(); > iso->SetLocator(locator); > */ > > cout << "iso:"; > iso->PrintSelf(cout, *indent ); > cout << endl; > > cout << "iso->GetFieldData():"; > iso->GetOutput()->GetFieldData()->PrintSelf(cout, *indent ); > cout << endl; > > vtkPolyDataMapper *isoMapper = vtkPolyDataMapper::New(); > isoMapper->SetInput( iso->GetOutput() ); > isoMapper->ScalarVisibilityOn(); > isoMapper->SetScalarRange(0, 500); > isoMapper->SetScalarModeToUsePointFieldData(); > isoMapper->ColorByArrayComponent("HU", 0); > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper( isoMapper ); > > vtkOutlineFilter *outline=vtkOutlineFilter::New(); > outline->SetInput( data ); > vtkPolyDataMapper *outlineMapper = vtkPolyDataMapper::New(); > outlineMapper->SetInput( outline->GetOutput() ); > vtkActor *outlineActor = vtkActor::New(); > outlineActor->SetMapper( outlineMapper ); > > // Add the actors to the renderer, set the background and size > ren1->AddActor( outlineActor ); > ren1->AddActor( isoActor ); > ren1->SetBackground( 1, 1, 1 ); > > renWin->SetSize( 500, 500 ); > ren1->SetBackground( 0.1, 0.2, 0.4 ); > > ren1->GetActiveCamera()->Elevation(90); > ren1->GetActiveCamera()->SetViewUp( 0, 0, -1 ); > ren1->GetActiveCamera()->Zoom( 1.5 ); > > ren1->ResetCameraClippingRange(); > > // render the image > renWin->Render(); > > iren->Start(); > > _______________________________________________ > 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 > From c.p.botha at ewi.tudelft.nl Tue Jun 17 03:41:09 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 17 Jun 2003 09:41:09 +0200 Subject: [vtkusers] raw buffer access in Tcl In-Reply-To: References: Message-ID: <1055835669.19845.10.camel@dutidad> On Fri, 2003-06-13 at 02:21, David.Pont at ForestResearch.co.nz wrote: > I have thought for a while that if the vtk build process can auto-generate > wrappers for other languages then why not for C++. This would give > 'introspection' capabilities which would be very useful to make a vtk > pipeline editor... I would like to add my 2 cents. I have not seen RPD yet, but one of the better examples of a VTK pipeline editor is the VISSION system[1] by Alex Telea[2]. It blows most other network editors out of the water, as wrapping VTK represents only a single case study for VISSION. The system has been used to wrap other large C++ toolkits as well. Alex solved the introspection issue in an entirely generic (and therefore universally applicable) fashion by making use of a C++ interpreter and Alex's metaclass concept. The only disadvantage of VISSION is that it's not publically available. :) However, the way in which the C++ introspection problem was solved is available and has been proven to work exceedingly well. Personally, I would just do it via Python a la vtkPipeline (by Prabhu, based on work by Paul for Tcl), but then that's me. :) [1] http://www.win.tue.nl/~alext/ALEX/PAPERS/papers.html (search for keyword VISSION, there are at least 4 articles) [2] http://www.win.tue.nl/~alext/ Best regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From piantado at email.unc.edu Tue Jun 17 10:12:32 2003 From: piantado at email.unc.edu (piantado at email.unc.edu) Date: Tue, 17 Jun 2003 10:12:32 -0400 Subject: [vtkusers] Please help! Problem with vtkXYPlotActor Message-ID: <1055859152.3eef21d0e0b26@webmail0.isis.unc.edu> Hi, I'm trying to use vtkXYPlotActor in java to draw graphs. I'd like for the user to be able to change the x range on them but calling SetXRange(-range, range) doesn't work for all values. For example, it works fine when range=10, but when range=30 the graph's range becomes - 50 to 30, instead of -30 to 30. Calling GetXAxisActor2d().SetRange(- range,range) will keep the data in the range but does not change the X axis. Does anyone know what I'm doing wrong? Thanks, ++Steve From zhou at isg.cs.uni-magdeburg.de Tue Jun 17 10:48:31 2003 From: zhou at isg.cs.uni-magdeburg.de (J.Zhou) Date: Tue, 17 Jun 2003 16:48:31 +0200 Subject: [vtkusers] non-destructive testing CT dataset Message-ID: <3EEF465E.24219.17E78B4@localhost> hi, vtk users, Where can I get the non-destructive testing CT data set? If someone in vtkuser list have this kind of dataset, I really hope you be kind to send me a copy. I just use it for testing. Thank you in advance. Regards, Jianlong From goodwin.lawlor at ucd.ie Tue Jun 17 11:09:19 2003 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 17 Jun 2003 16:09:19 +0100 Subject: FW: [vtkusers] vtkAppendPolyData References: <000101c334d4$b5bc8d50$de0ba8c0@qtwblr01.questglobal.com> <3EEF1736.50908@creatis.insa-lyon.fr> Message-ID: Could also be that vtkSTLReader is creating a copy of the vertex data for each cell... use vtkCleanPolyData before the vtkSTLWriter. HTH Goodwin ----- Original Message ----- From: "Mathieu Malaterre" To: "R K Shyamprakash" Cc: "Vtkusers (E-mail)" Sent: Tuesday, June 17, 2003 2:27 PM Subject: Re: FW: [vtkusers] vtkAppendPolyData > Just a bet: > > vtkSTLWriter :: SetFileTypeToBinary () > > HTH > mathieu > > R K Shyamprakash wrote: > > Further to my previous mail, the problem is not with vtkAppendPolyData but > > with vtkSTLWriter itself. I tried reading a .stl file and rewriting it with > > vtkSTLWriter(and doing nothing else). the original file size was 9MB. but > > the size of the file written with vtkSTLWriter is 36 MB. what could be the > > problem? > > > > > > > > > > Hello, > > In my application I use vtkAppendPolyData to join two polydata. > > but I see that this increases the file size by great extent when I write the > > joined data into a file. The size of the original .STL file is 10 MB. I cut > > the model into smaller parts and again join them by vtkAppendpolyData, then > > write the data back into .stl file, the file size is nearly 100MB. How to > > solve this problem. Please help. > > > > 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://public.kitware.com/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://public.kitware.com/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/ > > _______________________________________________ > 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 From dsjen at cs.unc.edu Tue Jun 17 11:15:57 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Tue, 17 Jun 2003 11:15:57 -0400 Subject: [vtkusers] unwanted volume cropping Message-ID: <102f8c1036fb.1036fb102f8c@cs.unc.edu> Hello, I'm able to display a volume to tiff images. However, the volume is composed of only the middle portion of the images -- about 1/4 the size of what it should be. I've turned off cropping to the VolumeRayCastMapper, but that didn't change anything. Does anyone know how to create a volume of the entire image stack? I'm using vtk4.0 on WindowsXP. Thanks, Dennis From nick.smethurst at free.fr Tue Jun 17 14:12:34 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Tue, 17 Jun 2003 20:12:34 +0200 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) In-Reply-To: <001101c334ab$81ed4b50$0100a8c0@tigger> References: <16110.4189.62940.40899@monster.linux.in> <001101c334ab$81ed4b50$0100a8c0@tigger> Message-ID: <200306172012.34148.nick.smethurst@free.fr> Hi again.. I wondered Is this c++ RPD of John's is available anywhere? I tried searching to no avail. I would be interested in taking a look at it if the source is available. Le Mardi 17 Juin 2003 10:35, John Biddiscombe a ?crit : > > >From what I can understand of this, you'll have to store the entire > > > > VTK API in XML files. Thats a lot of data! John generates new > > classes using VTK's wrapper generation code. Atleast that way the > > data is part of your API but note that to do this your libraries will > > be huge. Compare this to the 2500 odd lines of code it takes to do > > all this via Python (including GUI and pickling). > > Quite true, the dll's that bind rpd to vtk are similar in size to > vtkCommon.tcl vtkGraphics.tcl etc etc and it's something I have a > solution to. The use of XML files to store all member info is no > problem, they may be big, but in the grand scheme of things it's small > potatoes compared to all the other data we work with, so I'll probably > (if version 3 ever happens) make RPD create an XML or similar data layer > and then dynamically create the RPD gui wrappers at run-time. This > actually solves a few other issues at the same time (but I shan't go > into them here) - though the generation of the C++ classes does have > it's merits too. > > JB > > _______________________________________________ > 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 From james at rogue-research.com Tue Jun 17 15:14:05 2003 From: james at rogue-research.com (James Dessart) Date: Tue, 17 Jun 2003 15:14:05 -0400 Subject: [vtkusers] problems getting a LODActor to render Message-ID: I've been working on getting VTK working on Mac OS X, using CodeWarrior, and I managed to get a little demo application running. It works to my expectations, and I'm happy with it. I decided to move the sample into another, bigger application, since my final goal is to use VTK from within this application. However, using the following code: vtkSTLReader *theReader = vtkSTLReader::New(); theReader->SetFileName( "/source/VTKData/Data/42400-IDGH.stl" ); vtkPolyDataMapper *theMapper = vtkPolyDataMapper::New(); theMapper->SetInput( theReader->GetOutput() ); vtkLODActor *theActor = vtkLODActor::New(); theActor->SetMapper( theMapper ); mRenderer->AddActor( theActor ); mRenderer->Render(); the actor does not render. I've been able to set the background colour of the renderer, but the actor doesn't seem to render. I even tried stepping through the code, and found that somehow the renderer loses track of what props it plans to render at some point. What might I be missing that would prevent this actor from being rendered? Thanks, James From jbiddiscombe at skippingmouse.co.uk Tue Jun 17 17:20:20 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 17 Jun 2003 22:20:20 +0100 Subject: [vtkusers] C++ introspection (was raw buffer access in Tcl) References: <16110.4189.62940.40899@monster.linux.in> <001101c334ab$81ed4b50$0100a8c0@tigger> <200306172012.34148.nick.smethurst@free.fr> Message-ID: <001d01c33516$4566e630$0100a8c0@tigger> I'm trying to cut a release right now. It's going to have bugs and be a bit cranky, but I'll do my best to upload something tomorrow or the next day at the latest. There's a couple of things I left half finished that I don't want people to see :) I'm too ashamed to release it before tweaking it a bit. JB ----- Original Message ----- From: "N Smethurst" To: "vtkusers" Sent: Tuesday, June 17, 2003 7:12 PM Subject: Re: [vtkusers] C++ introspection (was raw buffer access in Tcl) Hi again.. I wondered Is this c++ RPD of John's is available anywhere? I tried searching to no avail. I would be interested in taking a look at it if the source is available. Le Mardi 17 Juin 2003 10:35, John Biddiscombe a ?crit : > > >From what I can understand of this, you'll have to store the entire > > > > VTK API in XML files. Thats a lot of data! John generates new > > classes using VTK's wrapper generation code. Atleast that way the > > data is part of your API but note that to do this your libraries will > > be huge. Compare this to the 2500 odd lines of code it takes to do > > all this via Python (including GUI and pickling). > > Quite true, the dll's that bind rpd to vtk are similar in size to > vtkCommon.tcl vtkGraphics.tcl etc etc and it's something I have a > solution to. The use of XML files to store all member info is no > problem, they may be big, but in the grand scheme of things it's small > potatoes compared to all the other data we work with, so I'll probably > (if version 3 ever happens) make RPD create an XML or similar data layer > and then dynamically create the RPD gui wrappers at run-time. This > actually solves a few other issues at the same time (but I shan't go > into them here) - though the generation of the C++ classes does have > it's merits too. > > JB > > _______________________________________________ > 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 _______________________________________________ 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 From juliang at ece.ubc.ca Tue Jun 17 18:30:54 2003 From: juliang at ece.ubc.ca (Julian Guerrero) Date: Tue, 17 Jun 2003 15:30:54 -0700 (PDT) Subject: [vtkusers] Camera following actor Message-ID: Hi, I've been trying to get a camera to follow an actor by using SetFocalPoint(), SetPosition() and SetViewUp() methods. I have a plane with a texture mapped to it that moves around. I want the camera to follow this plane, so that it shows only one face of the plane (so if the plane is the only actor, I can see no movement). The plane has a vtkTransform which is updated from a location sensor, so the location of the plane will change for each Render() call. I define 3 points (without the transformation) with respect to the plane that give me the focal point, position and viewup respectively. Then I use vtkTransform->MultiplyPoint(...) in order to get the new transformed points. I feed these to SetFocalPoint(), SetPosition() and SetViewUp(). It seems that SetFocalPoint() and SetPosition() work OK, as I can see the plane with the texture in the middle of the viewport, but the orientation of the plane is not stable (I get plane movement, but the plane should not move..) and the "up" direction does not coincide with what I believe it should be. Any ideas? Suggestions? I appreciate any help , and thanks for your time... Julian From andresba at hotmail.com Tue Jun 17 19:43:04 2003 From: andresba at hotmail.com (Andres Barrera) Date: Tue, 17 Jun 2003 18:43:04 -0500 Subject: [vtkusers] Surface - Volume intersection Message-ID: Dear Donald S Dunbar, and list I am also interested on that! Right now I am trying to solve it "by-hand", and it is a lot of work.... Andres >From: Donald S Dunbar >To: vtkusers at public.kitware.com >Subject: [vtkusers] Surface - Volume intersection >Date: Mon, 16 Jun 2003 16:58:21 -0700 >I have an irregular surface in 3D (an open pit mine) and a volume that >intersects this surface (an ore body). I would like to calculate the area >of the surface corresponding to the intersection. The volume is also >irregular, hence the intersection may consist of multiple patches of the >surface. Can this be done using VTK? How? > >Thanks, > >Donald S. Dunbar, Ph.D. >Senior Physical Oceanographer >Lorax Environmental Consultants Ltd. >1108 Mainland Street >Vancouver, BC V6B 5L1 > >Ph: 604-688-7173 >Fx: 604-688-7175 > >_______________________________________________ >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 _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From tbaker at claritysolutionsllc.com Tue Jun 17 21:52:03 2003 From: tbaker at claritysolutionsllc.com (Todd Baker) Date: Tue, 17 Jun 2003 21:52:03 -0400 Subject: [vtkusers] vtkImageReslice and vtkImageViewer vs. vtkImageViewer2 Message-ID: Hello All: Thanks for a toolkit that seems to have tons of useful functionality... once I learn how to use it:) I have set up a pipeline to show three orthogonal views of a dataset. I know this question is on the list many times, but I've tried many of the solutions to no avail. If I just use a vtkImageViewer I get all three views and can slice through the dataset fine. If I use a vtkImageViewer2 with the same pipeline I get nothing. But in reality, neither of them really suits my need so I've set up the following pipeline so that I can use a vtkImageBlend at the end to show the results of two registered datasets. The result of the pipeline below is the ability to get a few partial slices of the transverse view that are in the top right corner (not the bottom left as with the same spacing and origin using a vtkImageViewer). I get no visible slices in the coronal or sagittal view. Any hints on what I've missed? I think that I have a misunderstanding of when the 3D dataset is actually "sliced" into a 2D dataset... should this be in the reslicer or in the image actor? Thanks in advance for your help. Todd Baker tbaker at claritysolutionsllc.com // function importing a pointer to an imported data array GetFixedVolumeData(PFixedVolumeData); NativeDim[0] = PFixedVolumeSpecs->XDim; NativeDim[1] = PFixedVolumeSpecs->YDim; NativeDim[2] = PFixedVolumeSpecs->ZDim; VolumeImportFilter->SetImportPointer( PFixedVolumeData, NativeDim[0] * NativeDim[1] * NativeDim[2], false); // set up size NativeSize[0] = NativeDim[0]; NativeSize[1] = NativeDim[1]; NativeSize[2] = NativeDim[2]; // set up start NativeStart.Fill(0); // set default region NativeRegion.SetIndex( NativeStart); NativeRegion.SetSize ( NativeSize ); VolumeImportFilter->SetRegion( NativeRegion ); NativeSpacing[0] = PFixedVolumeSpecs->XSpacing; NativeSpacing[1] = PFixedVolumeSpecs->YSpacing; NativeSpacing[2] = PFixedVolumeSpecs->ZSpacing; VolumeImportFilter->SetSpacing ( NativeSpacing ); NativeOrigin[0] = - PFixedVolumeSpecs->XDim * PFixedVolumeSpecs->XSpacing * 0.5; NativeOrigin[1] = - PFixedVolumeSpecs->YDim * PFixedVolumeSpecs->YSpacing * 0.5; NativeOrigin[2] = - PFixedVolumeSpecs->ZDim * PFixedVolumeSpecs->ZSpacing * 0.5; VolumeImportFilter->SetOrigin( NativeOrigin ); VolumeImportFilter->UpdateLargestPossibleRegion(); // connect the itkImportFilter to an itkVtkAdaptor ivAdaptor->SetInput(VolumeImportFilter->GetOutput()); ReslicerTrans->SetInput(MapperTrans1->GetOutput()); ReslicerTrans->SetResliceAxesOrigin(NativeOrigin); ReslicerTrans->SetOutputExtent(0, NativeDim[0] - 1, 0, NativeDim[1] - 1, 0, NativeDim[2] - 1); ReslicerTrans->SetOutputOrigin(NativeOrigin[0], NativeOrigin[1], NativeOrigin[2]); ReslicerTrans->InterpolateOn(); ReslicerCor->SetInput(MapperCor1->GetOutput()); ReslicerCor->InterpolateOn(); ReslicerCor->SetResliceAxesOrigin(NativeOrigin); ReslicerCor->SetOutputExtent(0, NativeDim[0] - 1, 0, NativeDim[1] - 1, 0, NativeDim[2] - 1); ReslicerCor->SetOutputOrigin(NativeOrigin[0], NativeOrigin[1], NativeOrigin[2]); ReslicerSag->SetInput(MapperSag1->GetOutput()); ReslicerSag->InterpolateOn(); ReslicerSag->SetResliceAxesOrigin(NativeOrigin); ReslicerSag->SetOutputExtent(0, NativeDim[0] - 1, 0, NativeDim[1] - 1, 0, NativeDim[2] - 1); ReslicerSag->SetOutputOrigin(NativeOrigin[0], NativeOrigin[1], NativeOrigin[2]); ReslicerCor->SetResliceAxesDirectionCosines(1, 0, 0, 0, 0, -1, 0, 1, 0); ReslicerSag->SetResliceAxesDirectionCosines(0, 1, 0, 0, 0, -1, 1, 0, 0); ReslicerTrans->SetOutputSpacing(NativeSpacing[0], NativeSpacing[1], NativeSpacing[2]); ReslicerCor->SetOutputSpacing(NativeSpacing[0], NativeSpacing[1], NativeSpacing[2]); ReslicerSag->SetOutputSpacing(NativeSpacing[0], NativeSpacing[1], NativeSpacing[2]); MapperTrans1->SetInput(ivAdaptor->GetOutput()); MapperTrans1->UpdateWholeExtent(); ActorTrans1->SetInput(ReslicerTrans->GetOutput()); ActorTrans1->SetDisplayExtent(0, PFixedVolumeSpecs->XDim - 1, 0, PFixedVolumeSpecs->YDim - 1, 0, PFixedVolumeSpecs->ZDim - 1); RenderTrans1->AddActor(ActorTrans1); ActorTrans1->SetZSlice((ActorTrans1->GetWholeZMax() - ActorTrans1->GetWholeZMin()) * 0.5); MapperCor1->SetInput(ivAdaptor->GetOutput()); MapperCor1->UpdateWholeExtent(); ActorCor1->SetInput(ReslicerCor->GetOutput()); ActorCor1->SetDisplayExtent(0, PFixedVolumeSpecs->XDim - 1, 0, PFixedVolumeSpecs->YDim - 1, 0, PFixedVolumeSpecs->ZDim - 1); RenderCor1->AddActor(ActorCor1); ActorCor1->SetZSlice((ActorCor1->GetWholeZMax() - ActorCor1->GetWholeZMin()) * 0.5); MapperSag1->SetInput(ivAdaptor->GetOutput()); MapperSag1->UpdateWholeExtent(); ActorSag1->SetInput(ReslicerSag->GetOutput()); ActorSag1->SetDisplayExtent(0, PFixedVolumeSpecs->YDim - 1, 0, PFixedVolumeSpecs->YDim - 1, 0, PFixedVolumeSpecs->ZDim - 1); RenderSag1->AddActor(ActorSag1); ActorSag1->SetZSlice((ActorSag1->GetWholeZMax() - ActorSag1->GetWholeZMin()) * 0.5); ReslicerTrans->UpdateWholeExtent(); ReslicerCor->UpdateWholeExtent(); ReslicerSag->UpdateWholeExtent(); vtkTextActor * lblPatientName = vtkTextActor::New(); vtkTextProperty * lblPatientNameProps = lblPatientName->GetTextProperty(); lblPatientName->SetInput("Head, SQ\n12\\20\\2002"); lblPatientNameProps->SetFontFamilyToCourier(); lblPatientName->GetPositionCoordinate()->SetCoordinateSystemToNormalized Viewport(); lblPatientName->GetPositionCoordinate()->SetValue(0.1, 0.75); RenderSag1->AddActor(lblPatientName); RenderWindow->Render(); RenderInt->Initialize(); RenderInt->Start(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramakrishna.prakash at quest-global.com Wed Jun 18 06:47:55 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 18 Jun 2003 16:17:55 +0530 Subject: [vtkusers] Application slows down Message-ID: <001a01c33587$13c7bca0$de0ba8c0@qtwblr01.questglobal.com> Hi, My application is used to load the stl file, visualize it and do few operations. In the beginning, the speed is really good. I frequently add the actors to renderer, then clear them(after certain operations) and again add new actors. After a while the application slows down a lot. I am using the method vtkRenderer.RemoveAllProps() method to clear the renderer. Should I explicitly call ReleaseGraphicsResources() on vtkActor or its mapper?(I checked the source code, RemoveAllProps() does this for me). Else what could be the reason for application slowing down? Please help. Thanks Shyam From jeff at cdnorthamerica.com Wed Jun 18 06:56:59 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 18 Jun 2003 06:56:59 -0400 Subject: [vtkusers] Application slows down In-Reply-To: <001a01c33587$13c7bca0$de0ba8c0@qtwblr01.questglobal.com> References: <001a01c33587$13c7bca0$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EF0457B.3030906@cdnorthamerica.com> R K Shyamprakash wrote: >Hi, > My application is used to load the stl file, visualize it and do few >operations. In the beginning, the speed is really good. I frequently add the >actors to renderer, then clear them(after certain operations) and again add >new actors. After a while the application slows down a lot. I am using the >method vtkRenderer.RemoveAllProps() method to clear the renderer. > That doesn't clear out the renderer's actor collection. that combination only works correctly if you added the actor via AddProp(). try removing the actor explicitly via renderer.RemoveActor(actor)... Try to stick with AddXXX/RemoveXXX. >Should I >explicitly call >ReleaseGraphicsResources() on vtkActor or its mapper?(I checked the source >code, RemoveAllProps() does this for me). > right, that is done internally so you should never have to do that. >Else what could be the reason for >application slowing down? Please help. > if the above suggestion doesn't work, try to pare down your app into an example that exhibits the same problem and post it. -Jeff >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://public.kitware.com/mailman/listinfo/vtkusers > > > > From john.biddiscombe at mirada-solutions.com Wed Jun 18 08:17:29 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Wed, 18 Jun 2003 13:17:29 +0100 Subject: [vtkusers] Application slows down Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B77540712FF@oxcore01.mirada-solutions.com> > renderer. Should I > explicitly call > ReleaseGraphicsResources() on vtkActor or its mapper?(I Sometimes you do need to do this. There's a nasty bug in the actor/window/renderer code that means that when you remove an actor from a window, it doesn't always get it's resources freed. If you call ReleaseGraphicsResources yourself you won't be doing any harm. I call it to play safe even though I've got a patch for the bug in question. At some point I shall commit the fix to cvs, but not until I'm happy with it JB From ofedrigo at iastate.edu Wed Jun 18 09:20:39 2003 From: ofedrigo at iastate.edu (olivier Fedrigo) Date: Wed, 18 Jun 2003 08:20:39 -0500 Subject: [vtkusers] VTK& GUI Message-ID: <5.2.0.9.2.20030618081444.00a88030@ofedrigo.mail.iastate.edu> Hi everyone, I wrote a program with carbon on max OSX and added a VTK graphic window using vtkrendererwindow. It works great but what I really want to do is to embed this VTK graphic inside a predefined GUI resource (i.e. made with interface builder). Does anyone have any suggestions? Thanks, O. Olivier F?drigo 240 Science II Department of Zoology and Genetics Iowa State University Ames, IA 50011 Lab: (515) 294-4257 * Office: (515) 294-5080 * FAX: (515) 294-8457 http://www.mbb.iastate.edu/~gnaylor/Olivier.html From shi at imaging.robarts.ca Wed Jun 18 10:19:59 2003 From: shi at imaging.robarts.ca (Shi Sherebrin) Date: Wed, 18 Jun 2003 10:19:59 -0400 Subject: [vtkusers] missing include for vtkMILVideoSource.cxx? Message-ID: <3EF0750F.104@imaging.robarts.ca> In version 1.21.6.1 of vtkMILVideoSource.cxx (VTK source CVS download 2003/06/12, using ) I got the following compilation error which kills the build: C:\Tools\VTK\Hybrid\vtkMILVideoSource.cxx(571) : error C2061: syntax error : identifier 'vtkDataArray' Is the correct way to fix this to include "vtkDataArray.h" in the same file? thanks, Shi. From Yang at AGIUSA.COM Wed Jun 18 10:41:41 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Wed, 18 Jun 2003 09:41:41 -0500 Subject: [vtkusers] VTK and CLX of Borland C++ Builder Message-ID: <6AC51773FA304E469DEE9569AF903E5B168776@mail.exchngsvr.agiusa.com> Hi vtkusers, Can I use VTK in a cross-platform Borland C++ Builder CLX project? VTK works fine with BCB VCL thanks to John Biddiscombe's contribution of vtkBorlandRenderWindow component. I am using VTK 4.2 and BCB 6 on WinXP Pro. Thanks in advance. Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlpina at ivo.cps.unizar.es Wed Jun 18 10:48:41 2003 From: jlpina at ivo.cps.unizar.es (Jose Luis Pina) Date: Wed, 18 Jun 2003 16:48:41 +0200 Subject: [vtkusers] vtkColorTransferFunction Message-ID: <5.2.0.9.0.20030618164330.00b014e0@ivo.cps.unizar.es> Hello: I'd like render a vtkVolume via a LookupTable. How can I add the LookupTable to the vtkColorTransferFunction?. Do you know another way? Thanks in advance. CPS.Universidad de Zaragoza. (Spain) Jose Luis Pina Martinez jlpina at ivo.cps.unizar.es From david.catala at datapixel.com Wed Jun 18 11:05:39 2003 From: david.catala at datapixel.com (=?iso-8859-1?Q?David_Catal=E0_Monter?=) Date: Wed, 18 Jun 2003 17:05:39 +0200 Subject: [vtkusers] Delete points from vtkPolyData Message-ID: Hi everyone, I use vtkPolyData class and I have to delete some points, I use vtkPolyData.DeletePoint() or vtkPolyData.DeleteCell(), but I have problems with memory. How can I use vtkCellArray and vtkPoints from vtkPolyData to delete Points? Thanks, David From brad.king at kitware.com Wed Jun 18 11:08:58 2003 From: brad.king at kitware.com (Brad King) Date: Wed, 18 Jun 2003 11:08:58 -0400 (EDT) Subject: [vtkusers] Mailing List address Message-ID: Hello, The preferred address for this mailing list has changed from vtkusers at public.kitware.com to vtkusers at www.vtk.org Messages delivered by the list will now read "From:" the new address. Please update your mail filters accordingly. Sending messages to the old address will still work temporarily, but please update your address books to use the new address. -Brad From goodwin.lawlor at ucd.ie Wed Jun 18 11:46:25 2003 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 18 Jun 2003 16:46:25 +0100 Subject: [vtkusers] Delete points from vtkPolyData References: Message-ID: This might be of use: http://www.bioengineering-research.com/vtk/vtkRemoveCellsFilter.htm Goodwin ----- Original Message ----- From: "David Catal? Monter" To: Sent: Wednesday, June 18, 2003 4:05 PM Subject: [vtkusers] Delete points from vtkPolyData > Hi everyone, > I use vtkPolyData class and I have to delete some points, > I use vtkPolyData.DeletePoint() or vtkPolyData.DeleteCell(), > but I have problems with memory. > How can I use vtkCellArray and vtkPoints from vtkPolyData to delete Points? > > Thanks, > David > > _______________________________________________ > 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 Jun 18 11:53:05 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: 18 Jun 2003 17:53:05 +0200 Subject: [vtkusers] Improving rendering speed In-Reply-To: References: Message-ID: <1055951584.1221.2.camel@dutidad> On Wed, 2003-06-18 at 17:20, Ajit Rajwad? wrote: > From: "Charl P. Botha" > >Ajit Rajwad? wrote: > >>I need some tips for improving rendering speed. I am rendering a 3D > >>surface (from 8000 points) and it takes 15 seconds for the Render routine. > >>Is this merely a hardware problem? > > > >No, this is merely a user problem. :) > >> // Create isosurface > >>vtkContourFilter *cf = vtkContourFilter::New(); > >> cf->SetInput(surf->GetOutput()); > >> cf->SetValue(0,0.0); > >> cout << "Isosurface construction done..." << endl; > > > >Don't you find it strange that when you run your program, this line prints > >out very soon after you start the program? How do you think VTK knows to > >execute your surface reconstruction and contouring right here? > > > > Thanks, yes I should have noticed that in the beginning itself. > > However, I am still facing the same trouble. It just takes too long to > render. 15 seconds for 8000 vertices is still bearble. But I have models > consisting of 76000 vertices and they take 3 minutes or more to render. Please keep this on the mailing list. How are you measuring the time it takes to render your frame? Your code below is STILL performing the calculation during your render! In my applications, I routinely display triangle models of a few hundred thousand vertices (derived from medical data) and this remains more or less interactive, even on my old GeForce2 GTS. > > Is there anything you could suggest me? I am sorry to disturb you, but I am > really stuck with this problem. > > Here is my code again. > > // Create the VTK renderer and renderer window > vtkRenderer *ren = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren); > renWin->SetSize (300,300); > > // Create the render window interactor > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > // Create points > vtkPoints *meanPoints = vtkPoints::New(); > > // Copy Mean into New > for (i=0;i for (j=0;j<3;j++) > New[i][j] = Mean [i][j]; > > // New += alpha * sigma * S - compute the points > for (i=0;i { > for (j=1;j<=49;j++) > { > New[i][0] += storedPoints[j][i][0]*Alpha[j]*Sigma[j]; > New[i][1] += storedPoints[j][i][1]*Alpha[j]*Sigma[j]; > New[i][2] += storedPoints[j][i][2]*Alpha[j]*Sigma[j]; > } > } > > // Inserting the points one by one > for (i=0;i { > point[0] = New[i][0]; > point[1] = New[i][1]; > point[2] = New[i][2]; > > meanPoints->InsertNextPoint(point); > } > printf("\nCalculation of points done..."); > > // Create a data set. Load the starting points > vtkPolyData *inputDataSet = vtkPolyData::New(); > inputDataSet->SetPoints(meanPoints); > > vtkTriangleFilter *vtf = vtkTriangleFilter::New (); > vtf->SetInput (inputDataSet); > > // Construct the surface > vtkSurfaceReconstructionFilter *surf = > vtkSurfaceReconstructionFilter::New(); > surf->SetInput(inputDataSet); > printf ("\nSurface construction done..."); > > // Create isosurface (contour value of 0) > vtkContourFilter *cf = vtkContourFilter::New(); > cf->SetInput(surf->GetOutput()); > cf->SetValue(0,0.0); > cf->UseScalarTreeOn (); > printf("\nIsosurface construction done..."); > > // PolyNormals Filter to obtain normals for "Smooth Shading" > vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); > bNormals->SetInput(cf ->GetOutput()); > bNormals->SetFeatureAngle(60.0); > > // Creates Triangle strips from the Iso-surface > vtkStripper *bStripper = vtkStripper::New(); > bStripper->SetInput(bNormals->GetOutput()); > > // Create the mapper and actor and finish up the visualization pipeline > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > map->SetInput(bStripper->GetOutput()); > map->ScalarVisibilityOff(); > //map->ImmediateModeRenderingOn (); > > cout << "Mapper construction done..." << endl; > > vtkActor *surfaceActor = vtkActor::New(); > surfaceActor->SetMapper( map ); > surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, 0.3882, 0.2784 > ); > surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); > surfaceActor->GetProperty()->SetSpecular(0.4); > surfaceActor->GetProperty()->SetSpecularPower(50); > > ren->AddActor(surfaceActor); > ren->SetBackground(1,1,1); > cout << "Surface actor construction done..." << endl; > > printf ("\nBefore the Rendering"); > renWin->Render(); > printf ("\nRendering done..."); > iren->Initialize (); > iren->Start(); > > =================================================================================== > > >Your complete VTK pipeline only starts to execute when you call the > >renWin->Render(). The 15 seconds that you're worrying about consists of > >the actual surface reconstruction AND rendering. Try doing a > >bStripper->Update() BEFORE you begin to render. > > > >You don't have to use the Update(), it's only to illustrate my point. After > >your first long Render(), all subsequent Renders() should be much faster. > > -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From ajit_v_r at hotmail.com Wed Jun 18 12:40:38 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Wed, 18 Jun 2003 22:10:38 +0530 Subject: [vtkusers] Improving rendering speed Message-ID: >From: "Charl P. Botha" >On Wed, 2003-06-18 at 17:20, Ajit Rajwad? wrote: > > From: "Charl P. Botha" > > >Ajit Rajwad? wrote: > > >>I need some tips for improving rendering speed. I am rendering a 3D > > >>surface (from 8000 points) and it takes 15 seconds for the Render >routine. > > >>Is this merely a hardware problem? > > > > > >No, this is merely a user problem. :) > > >> // Create isosurface > > >>vtkContourFilter *cf = vtkContourFilter::New(); > > >> cf->SetInput(surf->GetOutput()); > > >> cf->SetValue(0,0.0); > > >> cout << "Isosurface construction done..." << endl; > > > > > >Don't you find it strange that when you run your program, this line >prints > > >out very soon after you start the program? How do you think VTK knows >to > > >execute your surface reconstruction and contouring right here? > > > > > > > Thanks, yes I should have noticed that in the beginning itself. > > > > However, I am still facing the same trouble. It just takes too long to > > render. 15 seconds for 8000 vertices is still bearble. But I have >models > > consisting of 76000 vertices and they take 3 minutes or more to render. > >Please keep this on the mailing list. How are you measuring the time it >takes to render your frame? Your code below is STILL performing the >calculation during your render! In my applications, I routinely display >triangle models of a few hundred thousand vertices (derived from medical >data) and this remains more or less interactive, even on my old GeForce2 >GTS. > I actually tried doing the stripper update before the call to render as you had suggested but it made no difference to the performance at all. I need to run the code I have given below iteratively. Each time, the vertex set is changing and therefore all the calculations will have to be re-done each time. > > > > Is there anything you could suggest me? I am sorry to disturb you, but I >am > > really stuck with this problem. > > > > Here is my code again. > > > > // Create the VTK renderer and renderer window > > vtkRenderer *ren = vtkRenderer::New(); > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > > renWin->AddRenderer(ren); > > renWin->SetSize (300,300); > > > > // Create the render window interactor > > vtkRenderWindowInteractor *iren = >vtkRenderWindowInteractor::New(); > > iren->SetRenderWindow(renWin); > > > > // Create points > > vtkPoints *meanPoints = vtkPoints::New(); > > > > // Copy Mean into New > > for (i=0;i > for (j=0;j<3;j++) > > New[i][j] = Mean [i][j]; > > > > // New += alpha * sigma * S - compute the points > > for (i=0;i > { > > for (j=1;j<=49;j++) > > { > > New[i][0] += storedPoints[j][i][0]*Alpha[j]*Sigma[j]; > > New[i][1] += storedPoints[j][i][1]*Alpha[j]*Sigma[j]; > > New[i][2] += storedPoints[j][i][2]*Alpha[j]*Sigma[j]; > > } > > } > > > > // Inserting the points one by one > > for (i=0;i > { > > point[0] = New[i][0]; > > point[1] = New[i][1]; > > point[2] = New[i][2]; > > > > meanPoints->InsertNextPoint(point); > > } > > printf("\nCalculation of points done..."); > > > > // Create a data set. Load the starting points > > vtkPolyData *inputDataSet = vtkPolyData::New(); > > inputDataSet->SetPoints(meanPoints); > > > > vtkTriangleFilter *vtf = vtkTriangleFilter::New (); > > vtf->SetInput (inputDataSet); > > > > // Construct the surface > > vtkSurfaceReconstructionFilter *surf = > > vtkSurfaceReconstructionFilter::New(); > > surf->SetInput(inputDataSet); > > printf ("\nSurface construction done..."); > > > > // Create isosurface (contour value of 0) > > vtkContourFilter *cf = vtkContourFilter::New(); > > cf->SetInput(surf->GetOutput()); > > cf->SetValue(0,0.0); > > cf->UseScalarTreeOn (); > > printf("\nIsosurface construction done..."); > > > > // PolyNormals Filter to obtain normals for "Smooth Shading" > > vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); > > bNormals->SetInput(cf ->GetOutput()); > > bNormals->SetFeatureAngle(60.0); > > > > // Creates Triangle strips from the Iso-surface > > vtkStripper *bStripper = vtkStripper::New(); > > bStripper->SetInput(bNormals->GetOutput()); > > > > // Create the mapper and actor and finish up the visualization >pipeline > > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > > map->SetInput(bStripper->GetOutput()); > > map->ScalarVisibilityOff(); > > //map->ImmediateModeRenderingOn (); > > > > cout << "Mapper construction done..." << endl; > > > > vtkActor *surfaceActor = vtkActor::New(); > > surfaceActor->SetMapper( map ); > > surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, 0.3882, >0.2784 > > ); > > surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); > > surfaceActor->GetProperty()->SetSpecular(0.4); > > surfaceActor->GetProperty()->SetSpecularPower(50); > > > > ren->AddActor(surfaceActor); > > ren->SetBackground(1,1,1); > > cout << "Surface actor construction done..." << endl; > > > > printf ("\nBefore the Rendering"); > > renWin->Render(); > > printf ("\nRendering done..."); > > iren->Initialize (); > > iren->Start(); > > > > >=================================================================================== > > > > >Your complete VTK pipeline only starts to execute when you call the > > >renWin->Render(). The 15 seconds that you're worrying about consists >of > > >the actual surface reconstruction AND rendering. Try doing a > > >bStripper->Update() BEFORE you begin to render. > > > > > >You don't have to use the Update(), it's only to illustrate my point. >After > > >your first long Render(), all subsequent Renders() should be much >faster. > > > > >-- >charl p. botha http://cpbotha.net/ http://visualisation.tudelft.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 _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp From goodwin.lawlor at ucd.ie Wed Jun 18 14:21:42 2003 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 18 Jun 2003 19:21:42 +0100 Subject: [vtkusers] fitting curve to points References: <20030614165341.JCHH9695.tomts10-srv.bellnexxia.net@[209.226.175.135]> Message-ID: Have a look at: /Filtering/Testing/Tcl/closedSplines.tcl or here on the web: http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Filtering/Testing/Tcl/close dSplines.tcl?rev=1.3&content-type=text/x-cvsweb-markup HTH Goodwin ----- Original Message ----- From: To: Sent: Saturday, June 14, 2003 5:53 PM Subject: [vtkusers] fitting curve to points > I have extracted the center path from a binarized image of > the cross section of a leg bone using > > -> vtkImageGradient \ > vtkImageEuclideanDistance ->| |-> vtkImageNonMaximumSuppression > -> vtkImageMagnitude / > > > then extracted the points with > > vtkImageNonMaximumSuppression -> vtkThresholdPoints > > I would like to fit a closed polyline to the points, > but the points from vtkThresholdPoints are not in a > spatially sequential order. Any ideas how to do this? > > Dean > > _______________________________________________ > 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 From dean.inglis at on.aibn.com Wed Jun 18 14:30:37 2003 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 18 Jun 2003 14:30:37 -0400 Subject: [vtkusers] fitting curve to points In-Reply-To: Message-ID: Hi Goodwin, thanks for the suggestion, but the trick will be to deal with the spatial ordering of the points otherwise fitting to the points as is gives a zig-zag pattern and not a loop. I'm thinking of starting with a perfectly circular loop having the same number of points and then transforming (somehow???) them to the target(?) centerpath points: maybe vtkLandmarkTransform ? Dean -----Original Message----- From: Goodwin Lawlor [mailto:goodwin.lawlor at ucd.ie] Sent: Wednesday, June 18, 2003 2:22 PM To: dean.inglis at on.aibn.com; vtkusers at public.kitware.com Subject: Re: [vtkusers] fitting curve to points Have a look at: /Filtering/Testing/Tcl/closedSplines.tcl or here on the web: http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Filtering/Testing/Tcl/close dSplines.tcl?rev=1.3&content-type=text/x-cvsweb-markup HTH Goodwin ----- Original Message ----- From: To: Sent: Saturday, June 14, 2003 5:53 PM Subject: [vtkusers] fitting curve to points > I have extracted the center path from a binarized image of > the cross section of a leg bone using > > -> vtkImageGradient \ > vtkImageEuclideanDistance ->| |-> vtkImageNonMaximumSuppression > -> vtkImageMagnitude / > > > then extracted the points with > > vtkImageNonMaximumSuppression -> vtkThresholdPoints > > I would like to fit a closed polyline to the points, > but the points from vtkThresholdPoints are not in a > spatially sequential order. Any ideas how to do this? > > Dean > > _______________________________________________ > 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 From B.L.Kaptein at lumc.nl Wed Jun 18 14:35:49 2003 From: B.L.Kaptein at lumc.nl (Kaptein, B.L. (ORTHO)) Date: Wed, 18 Jun 2003 20:35:49 +0200 Subject: [vtkusers] vtkDICOMImageReader Message-ID: Hello When trying to compile vtkDICOMImageReader on Micosoft Visual C++ V 6.0, I get the following errors: Does somebody know how to prevent these errors? Kind regards, Bart Compiling... vtkDICOMImageReader.cpp C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify -GX C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(51) : error C2061: syntax error : identifier 'seekdir' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(54) : error C2039: 'openmode' : is not a member of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(54) : error C2061: syntax error : identifier 'openmode' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(91) : error C2629: unexpected 'class std::ostrstream (' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(91) : error C2238: unexpected token(s) preceding ';' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(109) : error C2629: unexpected 'class std::strstream (' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(109) : error C2238: unexpected token(s) preceding ';' From furlanis at ele.uri.edu Wed Jun 18 14:39:43 2003 From: furlanis at ele.uri.edu (furlanis at ele.uri.edu) Date: Wed, 18 Jun 2003 14:39:43 -0400 Subject: [vtkusers] Rendering Quadratic Elements Message-ID: <1055961583.3ef0b1ef0f04f@webmail.ele.uri.edu> vtk people, I'm rendering quadratic unstructured grids, and they do not appear as they do in the user guide, or the text book. The books show the quadratic elements as having interpolated edges, but when i render them they are drawn with straight edges. I am putting together a graphics package for my project team so we can view their results. They are working on finite element analysis, and are rendering some heart models. The text book describes the quadratic quadrilateral as being comprised of 4 quads, yet when i run your exampls and my own program, it appears to be made out of triangles against the corners, and the middle 'area' is divided into triangles as well. am i not passing the non-linear elements through the right filters? i want the data to look smooth, but even when i make a quadratic edge, it is still just straight lines. please let me know how i can fix this problem, or if there even is a fix for it. -Stephen Furlani -URI From philipp.batchelor at kcl.ac.uk Wed Jun 18 14:46:08 2003 From: philipp.batchelor at kcl.ac.uk (philipp.batchelor at kcl.ac.uk) Date: Wed, 18 Jun 2003 19:46:08 +0100 (BST) Subject: [vtkusers] fitting curve to points In-Reply-To: Message-ID: Is the target curve somewhat convex (and 2D)? you could convert the coordinates to polar coordinates around the centroid, and then sort the points by polar angle? even otherwise it might give a good start...or maybe I'm missing something. P On Wed, 18 Jun 2003, Dean Inglis wrote: > Hi Goodwin, > > thanks for the suggestion, but the trick will be to > deal with the spatial ordering of the points otherwise > fitting to the points as is gives a zig-zag pattern > and not a loop. I'm thinking of starting with a > perfectly circular loop having the same number of points > and then transforming (somehow???) them to the target(?) > centerpath points: maybe vtkLandmarkTransform ? > > Dean > > -----Original Message----- > From: Goodwin Lawlor [mailto:goodwin.lawlor at ucd.ie] > Sent: Wednesday, June 18, 2003 2:22 PM > To: dean.inglis at on.aibn.com; vtkusers at public.kitware.com > Subject: Re: [vtkusers] fitting curve to points > > > Have a look at: > > /Filtering/Testing/Tcl/closedSplines.tcl > > or here on the web: > http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Filtering/Testing/Tcl/close > dSplines.tcl?rev=1.3&content-type=text/x-cvsweb-markup > > HTH > > Goodwin > ----- Original Message ----- > From: > To: > Sent: Saturday, June 14, 2003 5:53 PM > Subject: [vtkusers] fitting curve to points > > > > I have extracted the center path from a binarized image of > > the cross section of a leg bone using > > > > -> vtkImageGradient \ > > vtkImageEuclideanDistance ->| |-> > vtkImageNonMaximumSuppression > > -> vtkImageMagnitude / > > > > > > then extracted the points with > > > > vtkImageNonMaximumSuppression -> vtkThresholdPoints > > > > I would like to fit a closed polyline to the points, > > but the points from vtkThresholdPoints are not in a > > spatially sequential order. Any ideas how to do this? > > > > Dean > > > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 realtime_vis at hotmail.com Wed Jun 18 17:42:05 2003 From: realtime_vis at hotmail.com (Curtis Badke) Date: Wed, 18 Jun 2003 15:42:05 -0600 Subject: [vtkusers] Manual Memory Allocation Message-ID: Top O' The Mornin' To Ya! I am attempting to incorporate VTK into a real-time visualisation system which uses multiple threads and shared memory in order to split the workload. In order to make this work we have created a memory management system which allocates memory and gives a pointer to each thread to use. I am wondering if there is a way to create and use VTK objects (ie. vtkPolyData) in pre-allocated memory spaces. I would prefer to be able to do this since it will make it easier to control memory use as well as to share the VTK objects between multiple threads. Thanks CB _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From g.scott at oneteldsl.net Wed Jun 18 19:44:08 2003 From: g.scott at oneteldsl.net (Greg Scott) Date: Thu, 19 Jun 2003 00:44:08 +0100 Subject: [vtkusers] Rendering without displaying a window Message-ID: <000a01c335f3$85e358a0$0400a8c0@Greg> Hi everyone, Does anyone know of a way to render in VTK without actually displaying the result; all I need is the pixel data generated by the rendering. How would one specify the size of the rendering produced? A similar problem is as follows. I want to create a renderering of a specific size, say 256 x 256. In Java, I find this problematic since whatever I add the vtkPanel to will resize it according to its own agenda. Does anyone know a work around? (As you can see, by avoiding drawing the window completely, as in my first question, you also avoid this resize issue). Any advice would be very much appreciated, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sven.prevrhal at oarg.ucsf.edu Wed Jun 18 19:49:05 2003 From: sven.prevrhal at oarg.ucsf.edu (Sven Prevrhal) Date: Wed, 18 Jun 2003 16:49:05 -0700 Subject: [vtkusers] Iterative Imaging Filter: DeepCopy / Extent problems Message-ID: <001f01c335f4$344d0120$7f07da0a@RORG.OARG.UCSF.EDU> I'd need help with the following: I want to do an iterative image filter (grayscale morphologic reconstruction), so the output of the filter chain needs to go in the input again. I guess I have to copy the output vtkImageData into a new input vtkImageData object. So I do (in Tcl) ... vtkImageData input($i) input($i) DeepCopy output([expr $i-1]) ... -filter chain- ... It seems I can't get the Extent methods right. When I have input($i) in a vtkImageViewer, then ouput($iminus1) GetExtent gives 0 63 0 63 3 3 when the viewed slice is number 3. After the DeepCopy, input($i) GetExtent is ..3 3 as well, and points outside this slice always give 0 with GetScalarComponentAsFloat!! I tried various combinations of SetExtent, SetUpdateExtent and SetWholeExtent on both input and output before the DeepCopy, no help. Sometimes the app even crashes after that when I want to view a new slice. What do I need to do?? :-) sven -- From vermaas at astron.nl Thu Jun 19 02:28:48 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Thu, 19 Jun 2003 08:28:48 +0200 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1884 - 11 msgs Message-ID: Hi Dennis, I have exactly the same problem with 4.x on Linux (Suse 7.3), if you find a solution let me know. Will do the same. Nico ---------------------------------------------------------------- Message: 4 From: To: vtkusers at public.kitware.com Date: Fri, 13 Jun 2003 13:20:01 -0400 Subject: [vtkusers] Volume Opacity Hello VTK Users, I'm having trouble changing the opacity of a vtkVolume. I'm creating a vtkPiecewiseFunction and adding the following points to the function with the following lines of code, where opacity is a the piecewise function: opacity.AddPoint(0, 0.0); opacity.AddPoint(255,0.0); This should make the volume completely transparent after I set the opacity of the volume: ... ... property.SetScalarOpacity(opacity); ... ... actor.SetProperty(property); ... ... If anyone has any suggestions, needs clarification, or can point me to any references, I'd be very grateful. Also, just for reference, I'm using vtk4.0 on WindowsXP. Thanks, Dennis ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From mlouw at unizar.es Thu Jun 19 05:15:27 2003 From: mlouw at unizar.es (Markus Louw) Date: Thu, 19 Jun 2003 11:15:27 +0200 Subject: [vtkusers] InsertNextCell memory allocation problem Message-ID: <03d701c33643$532ef180$869ed29b@GTC.LAB> Hi All I think there is some kind of a memory allocation problem with int vtkCellTypes::InsertNextCell(unsigned char type, int loc) Using 4 differerent PolyData objects, I load the cells into each one by building up a vtkCellArray. After inserting about 250 cells into the vtkCellArray for the 3rd vtkPolyData object, I get an error which says that the memory could not be written to. vtkPoints *points = vtkPoints::New(); points->SetNumberOfPoints(Pset->size()); vtkCellArray *polys = vtkCellArray::New(); points->InsertPoint(i,x); polys->InsertNextCell(3,tri); I used to get a similar error for inserting points, which was fixed by setting the number of points beforehand, but using polys->Allocate(2000, 1000 ); beforehand doesn't help. Has anyone come across this or are there any ideas? Thanks Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: From kamucha at hfm.e-technik.uni-kassel.de Thu Jun 19 05:40:23 2003 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Thu, 19 Jun 2003 11:40:23 +0200 Subject: [vtkusers] Adding Gaussian noise randomly References: <5.1.0.14.0.20021128120133.0361db88@144.82.123.1> <5.1.0.14.0.20021129102031.03566008@144.82.123.1> Message-ID: <3EF18507.DAE8EF74@hfm.e-technik.uni-kassel.de> Hi all, I am just wondering if there is a class in VTK which one can use to add Gaussian noise to 3D points in a random manner. The archives don't have anything on this and so I would really appreciate any suggestion from out there. Regards George From kamucha at hfm.e-technik.uni-kassel.de Thu Jun 19 05:40:23 2003 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Thu, 19 Jun 2003 11:40:23 +0200 Subject: [vtkusers] Adding Gaussian noise randomly References: <5.1.0.14.0.20021128120133.0361db88@144.82.123.1> <5.1.0.14.0.20021129102031.03566008@144.82.123.1> Message-ID: <3EF18507.DAE8EF74@hfm.e-technik.uni-kassel.de> Hi all, I am just wondering if there is a class in VTK which one can use to add Gaussian noise to 3D points in a random manner. The archives don't have anything on this and so I would really appreciate any suggestion from out there. Regards George From will.schroeder at kitware.com Thu Jun 19 05:53:03 2003 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 19 Jun 2003 05:53:03 -0400 Subject: [vtkusers] Adding Gaussian noise randomly In-Reply-To: <3EF18507.DAE8EF74@hfm.e-technik.uni-kassel.de> References: <5.1.0.14.0.20021128120133.0361db88@144.82.123.1> <5.1.0.14.0.20021129102031.03566008@144.82.123.1> Message-ID: <5.2.1.1.0.20030619055012.04a9d530@pop.biz.rr.com> Hi George- The class vtkBrownianPoints could be easily adapted to do what you want. Meaning you write a new filter either in C++ or you use vtkProgrammableFilter. Will At 11:40 AM 6/19/2003 +0200, George Kamucha wrote: >Hi all, >I am just wondering if there is a class in VTK which one can use to add >Gaussian noise to 3D points in a random manner. The archives don't have >anything on this and so I would really appreciate any suggestion from >out >there. 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 Yann.CEZARD at ifp.fr Thu Jun 19 06:04:45 2003 From: Yann.CEZARD at ifp.fr (CEZARD Yann) Date: Thu, 19 Jun 2003 12:04:45 +0200 Subject: [vtkusers] Problem compiling vtk on sunOS 5.6 Message-ID: <488C02265C6AD611BF200002A542182F0262E792@irnts22.ifp.fr> Hi ! I can't get VTK 4.2.2 to compile on SunOS 5.6. GCC version is 2.8.1 and this is the error I have : ----------------------- Building object file vtkDataArraySelection.o... /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:36: parse error before `{' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:37: parse error before `{' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x: In method `vtkDataArraySelection::vtkDataArraySelection()': /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:42: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:43: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x: In method `vtkDataArraySelection::~vtkDataArraySelection()': /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:49: invalid use of undefined type `class vtkDataArraySelectionArraySettingsType' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:50: invalid use of undefined type `class vtkDataArraySelectionArrayNamesType' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x: In method `void vtkDataArraySelection::EnableArray(const char *)': /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:64: no matching function for call to `vtkDataArraySelectionArrayNamesType::begin ()' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:64: no matching function for call to `vtkDataArraySelectionArrayNamesType::end ()' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:65: no matching function for call to `vtkDataArraySelectionArrayNamesType::end ()' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:67: no matching function for call to `vtkDataArraySelectionArrayNamesType::begin ()' /home/ipsun1_1/cezardy/python_dist/VTK-4.2.2/Common/vtkDataArraySelection.cx x:76: no matching function for call to `vtkDataArraySelectionArrayNamesType::push_back (const char *&)' [...] ------------------------------ Does anybody succeed on compiling VTK on SunOS ? May I upgrade my compiler ? Thanks for any hints. Yann From jeff at cdnorthamerica.com Thu Jun 19 06:13:09 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 19 Jun 2003 06:13:09 -0400 Subject: [vtkusers] Rendering without displaying a window In-Reply-To: <000a01c335f3$85e358a0$0400a8c0@Greg> References: <000a01c335f3$85e358a0$0400a8c0@Greg> Message-ID: <3EF18CB5.6030502@cdnorthamerica.com> Greg Scott wrote: > Hi everyone, > > Does anyone know of a way to render in VTK without actually displaying > the result; all I need is the pixel data generated by the rendering. > How would one specify the size of the rendering produced? > > A similar problem is as follows. I want to create a renderering of a > specific size, say 256 x 256. In Java, I find this problematic since > whatever I add the vtkPanel to will resize it according to its own > agenda. Does anyone know a work around? (As you can see, by avoiding > drawing the window completely, as in my first question, you also avoid > this resize issue). vtkPanel takes its size from the container in which it is placed. I would suggest using a layout manager which doesn't resize its contents - like FlowLayout, etc... -Jeff > > Any advice would be very much appreciated, > > Greg > From kamucha at hfm.e-technik.uni-kassel.de Thu Jun 19 08:15:05 2003 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Thu, 19 Jun 2003 14:15:05 +0200 Subject: [vtkusers] Adding Gaussian noise randomly Message-ID: <3EF1A949.276A5305@hfm.e-technik.uni-kassel.de> Hi Will, Thanks a lot for your suggsetion, I am implementing it straight away. George ----- Original Message ----- From: "Will Schroeder" To: "George Kamucha" Cc: Sent: Thursday, June 19, 2003 11:53 AM Subject: Re: [vtkusers] Adding Gaussian noise randomly > Hi George- > > The class vtkBrownianPoints could be easily adapted to do what you want. > Meaning you write a new filter either in C++ or you use vtkProgrammableFilter. > > Will > > At 11:40 AM 6/19/2003 +0200, George Kamucha wrote: > >Hi all, > >I am just wondering if there is a class in VTK which one can use to add > >Gaussian noise to 3D points in a random manner. The archives don't have > >anything on this and so I would really appreciate any suggestion from > >out > >there. > > > 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 tholozano at gmx.de Thu Jun 19 09:49:14 2003 From: tholozano at gmx.de (Thomas Lozano) Date: Thu, 19 Jun 2003 15:49:14 +0200 Subject: [vtkusers] How to get the result of a point probe? Message-ID: <5.2.0.9.2.20030619152653.00a6dee8@pop.puretec.de> Hi all of you! I?m sampling data at a point xyz with the class vtkPProbeFilter. The Input is a vtkPointSource centered at that position from which I want to get my sample result. So long that works fine. At the output I can see my point inside my wireframed object and it seems that his color is correctly sampled (interpolated) by the PProbeFilter. But I don?t know how to get that result, the scalar value from that point... Does anybody have an advice/hint for me? thx :-) thomas From Yang at AGIUSA.COM Thu Jun 19 10:33:38 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Thu, 19 Jun 2003 09:33:38 -0500 Subject: [vtkusers] VTK and CLX of Borland C++ Builder (re-send) Message-ID: <6AC51773FA304E469DEE9569AF903E5B16877C@mail.exchngsvr.agiusa.com> > Hi vtkusers, > > Can I use VTK in a cross-platform Borland C++ Builder CLX project? VTK works > fine with BCB VCL thanks to John Biddiscombe's contribution of > vtkBorlandRenderWindow component. I am using VTK 4.2 and BCB 6 on WinXP Pro. > Thanks in advance. > > Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: From Romain.Ollivier at sophia.inria.fr Thu Jun 19 11:32:39 2003 From: Romain.Ollivier at sophia.inria.fr (Romain Ollivier) Date: Thu, 19 Jun 2003 17:32:39 +0200 Subject: [vtkusers] problems trying to use the Render() method of vtkPanel Message-ID: <3EF1D797.627FAFC2@sophia.inria.fr> Hi, I'm trying to create a java viewer to display images slices of raw data. I've put on a JFrame container two component : a vtkPanel and a JSlider. the vtkPanel is working fine and I can zoom/rotate/move my image, but : - if another application overlap my windows, the vtkPanel is not refresh automaticaly (until I make an action on it) - my JSlider has an event listener to change the slice when moved : public void stateChanged(final ChangeEvent e) { JSlider source = (JSlider)e.getSource(); slice = (int)source.getValue(); System.out.println(slice + "\n"); actor.SetZSlice(slice); view.repaint(); } when I use the slider, this error is sent in the console at each move : java.lang.NullPointerException at MIPSViewer.stateChanged(MIPSViewer.java:133) at javax.swing.JSlider.fireStateChanged(JSlider.java:343) at javax.swing.JSlider$ModelListener.stateChanged(JSlider.java:271) at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:346) at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:283) at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:149) at javax.swing.JSlider.setValue(JSlider.java:421) at javax.swing.plaf.basic.BasicSliderUI$TrackListener.mouseDragged(BasicSliderUI.java:1496) at java.awt.Component.processMouseMotionEvent(Component.java:5069) at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:2763) at java.awt.Component.processEvent(Component.java:4822) at java.awt.Container.processEvent(Container.java:1380) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Container.dispatchEventImpl(Container.java:1437) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2946) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859) at java.awt.Container.dispatchEventImpl(Container.java:1423) at java.awt.Window.dispatchEventImpl(Window.java:1566) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) After this, if I try to interact with my vtkPanel, the program crashes sending : An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4E208188 Function=__nvsym17103+0x0 Library=/usr/X11R6/lib/libGL.so.1 Current Java thread: at vtk.vtkRenderer.ResetCameraClippingRange_45(Native Method) at vtk.vtkRenderer.ResetCameraClippingRange(vtkRenderer.java:192) at vtk.vtkPanel.resetCameraClippingRange(vtkPanel.java:195) at vtk.vtkPanel.mouseDragged(vtkPanel.java:261) at java.awt.Component.processMouseMotionEvent(Component.java:5069) at java.awt.Component.processEvent(Component.java:4822) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) Dynamic libraries: ...... If I do not call the Render() fonction in my StateChanged function, there is no crash problem, but of course no refreh until I interact with the vtkPanel. I've seen a quite similar message on the list (http://www.vtk.org/pipermail/vtkusers/2003-June/018389.html) but no one responded yet... Could anyone help me ? PS: I use jdk1.4.0 and a CVS vtk version (17 jun 2003) From jbiddiscombe at skippingmouse.co.uk Thu Jun 19 11:47:51 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 19 Jun 2003 16:47:51 +0100 Subject: [vtkusers] VTK and CLX of Borland C++ Builder (re-send) References: <6AC51773FA304E469DEE9569AF903E5B16877C@mail.exchngsvr.agiusa.com> Message-ID: <000801c3367a$24a096c0$0100a8c0@tigger> Yes you can, but since nobody has created makefiles or components that you can just use and go, you'll have to start pretty much from scratch. JB ----- Original Message ----- From: "Xianjin Yang" To: Sent: Thursday, June 19, 2003 3:33 PM Subject: [vtkusers] VTK and CLX of Borland C++ Builder (re-send) > > Hi vtkusers, > > > > Can I use VTK in a cross-platform Borland C++ Builder CLX project? VTK works > > fine with BCB VCL thanks to John Biddiscombe's contribution of > > vtkBorlandRenderWindow component. I am using VTK 4.2 and BCB 6 on WinXP Pro. > > Thanks in advance. > > > > Yang > From asavm7 at uaa.alaska.edu Thu Jun 19 13:40:16 2003 From: asavm7 at uaa.alaska.edu (Anastasia Mironova) Date: Thu, 19 Jun 2003 09:40:16 -0800 Subject: [vtkusers] Please, help! Message-ID: <3a1e233a4ea2.3a4ea23a1e23@sentinel.uaa.alaska.edu> Hello, I am adding isosurafces and cross sections to a vtkPanel in Java, which are instances of vtkActor and vtkImageActor classes, consequently. For some reason the method GetActors that I apply to the renderer only returns objects of the vtkActor class of that panel and does not return/recognize any of the cross sections, which is quite inconvenient when I am trying to clear the panel since all the cross sections turn out to be unremovable this way. If you could please give any advise on how to fix this I would really appreciate it. Anastasia From dsd at lorax.ca Thu Jun 19 14:44:48 2003 From: dsd at lorax.ca (Donald S Dunbar) Date: Thu, 19 Jun 2003 11:44:48 -0700 Subject: [vtkusers] Surface - Volume intersection In-Reply-To: <68729652-A056-11D7-9EAD-000A9575B2AC@lorax.ca> Message-ID: <1AADA4F9-A286-11D7-A6D4-000A9575B2AC@lorax.ca> Okay, no bites on this one. Can I at least get some indication from someone about whether this is within the realm of possible VTK tricks? Are there any classes for extracting the intersection between volumes and surfaces? Many thanks, D. Dunbar On Monday, June 16, 2003, at 04:58 PM, Donald S Dunbar wrote: > I have an irregular surface in 3D (an open pit mine) and a volume that > intersects this surface (an ore body). I would like to calculate the > area of the surface corresponding to the intersection. The volume is > also irregular, hence the intersection may consist of multiple patches > of the surface. Can this be done using VTK? How? > > Thanks, > > Donald S. Dunbar, Ph.D. > Senior Physical Oceanographer > Lorax Environmental Consultants Ltd. > 1108 Mainland Street > Vancouver, BC V6B 5L1 > > Ph: 604-688-7173 > Fx: 604-688-7175 > > _______________________________________________ > 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 > From brad.king at kitware.com Thu Jun 19 16:44:27 2003 From: brad.king at kitware.com (Brad King) Date: Thu, 19 Jun 2003 16:44:27 -0400 (EDT) Subject: [vtkusers] Mailing List address (again) Message-ID: Hello, A list member pointed out to me privately that we should use the domain name of this project without the "www." prefix for the mailing list. The web server is already aliased to the proper address, so we've decided to take the suggestion. The preferred mailing address for this list is no longer either of the following vtkusers at www.vtk.org vtkusers at public.kitware.com but is now vtkusers at vtk.org Mail will now be delivered from the new address. Please update your mail filters accordingly. Sorry to change this again so soon. -Brad From anast.jm at pg.com Thu Jun 19 17:11:47 2003 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 19 Jun 2003 17:11:47 -0400 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1884 - 11 msgs Message-ID: I'm on WinXP with vtk 4.2 from a recent CVS build. I'm not seeing this problem. I have a small tcl script that compares side by side the RayCast Mapper and VolumePro mapper on the poship volume dataset and the opacity it behaving properly for both mappers. What does your volume look like after setting all opacity points to 0.0?? ...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] "Nico Vermaas" Sent by: vtkusers-admin at www.vtk.org 06/19/2003 02:28 AM To: cc: , (bcc: John Anast-JM/PGI) Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1884 - 11 msgs Hi Dennis, I have exactly the same problem with 4.x on Linux (Suse 7.3), if you find a solution let me know. Will do the same. Nico ---------------------------------------------------------------- Message: 4 From: To: vtkusers at public.kitware.com Date: Fri, 13 Jun 2003 13:20:01 -0400 Subject: [vtkusers] Volume Opacity Hello VTK Users, I'm having trouble changing the opacity of a vtkVolume. I'm creating a vtkPiecewiseFunction and adding the following points to the function with the following lines of code, where opacity is a the piecewise function: opacity.AddPoint(0, 0.0); opacity.AddPoint(255,0.0); This should make the volume completely transparent after I set the opacity of the volume: ... ... property.SetScalarOpacity(opacity); ... ... actor.SetProperty(property); ... ... If anyone has any suggestions, needs clarification, or can point me to any references, I'd be very grateful. Also, just for reference, I'm using vtk4.0 on WindowsXP. Thanks, Dennis ==================================================== 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From anast.jm at pg.com Thu Jun 19 17:17:14 2003 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 19 Jun 2003 17:17:14 -0400 Subject: [vtkusers] Re: Opacity problems with vtkVolume Message-ID: Sorry for the resend....realized the subject line wasn't too descriptive in the original post...john ----- Forwarded by John Anast on 06/19/2003 05:15 PM ----- I'm on WinXP with vtk 4.2 from a recent CVS build. I'm not seeing this problem. I have a small tcl script that compares side by side the RayCast Mapper and VolumePro mapper on the poship volume dataset and the opacity it behaving properly for both mappers. What does your volume look like after setting all opacity points to 0.0?? ...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] "Nico Vermaas" Sent by: vtkusers-admin at www.vtk.org 06/19/2003 02:28 AM To: cc: , (bcc: John Anast-JM/PGI) Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1884 - 11 msgs Hi Dennis, I have exactly the same problem with 4.x on Linux (Suse 7.3), if you find a solution let me know. Will do the same. Nico ---------------------------------------------------------------- Message: 4 From: To: vtkusers at public.kitware.com Date: Fri, 13 Jun 2003 13:20:01 -0400 Subject: [vtkusers] Volume Opacity Hello VTK Users, I'm having trouble changing the opacity of a vtkVolume. I'm creating a vtkPiecewiseFunction and adding the following points to the function with the following lines of code, where opacity is a the piecewise function: opacity.AddPoint(0, 0.0); opacity.AddPoint(255,0.0); This should make the volume completely transparent after I set the opacity of the volume: ... ... property.SetScalarOpacity(opacity); ... ... actor.SetProperty(property); ... ... If anyone has any suggestions, needs clarification, or can point me to any references, I'd be very grateful. Also, just for reference, I'm using vtk4.0 on WindowsXP. Thanks, Dennis ==================================================== 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Pont at ForestResearch.co.nz Thu Jun 19 17:49:43 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Fri, 20 Jun 2003 09:49:43 +1200 Subject: [vtkusers] Surface - Volume intersection Message-ID: Hi Donald, I am pretty sure the answer is no, but... I have developed a C++ class that treats polydata as an implicit surface, thus allowing clipping and cutting in vtk. The algorithm is actually quite brain-dead and is not a 'correct' approach. But it does work just fine in many cases. I almost started down the path of making a correct algorithm, but it is quite a big job and I just dont have that much spare time. This (boolean operations on polydata) would be a very useful addition to vtk. Now some questions: your pit sounds like it can be loaded into vtk as polydata, but I am not clear about the 'volume'. In vtk a volume is a regular 3D grid of data. Is the ore body a true vtk volume, or do you have a 3D surface (closed, or not) defining the ore body, ore=polydata? If the ore body is a true volume you can contour it to get a polydata surface. Given two polydata surfaces (pit and ore) you could try my class to get the intersection. - input ore surface to my class vtkImplicitPolydata - input the pit surface to vtkClipPolydata, and specify the vtkImplicitPolydata (ore) as the implicit function, and set value to 0 (the default) This should spit out chunks of pit surface that are 'inside' the ore surface. You can use SetInsideOut on the vtkClipPolydata, and change which surface is clipped to get different parts of the two surfaces. Note you can use vtkMassProperties to get area and volume from polydata. let me know if you want the code. I make no promises about results! but if the surfaces are not too 'wrinkled', it can work OK. regards Dave Pont Donald S Dunbar To: vtkusers at public.kitware.com Sent by: cc: vtkusers-admin at w Subject: Re: [vtkusers] Surface - Volume intersection ww.vtk.org 20/06/2003 06:44 Okay, no bites on this one. Can I at least get some indication from someone about whether this is within the realm of possible VTK tricks? Are there any classes for extracting the intersection between volumes and surfaces? Many thanks, D. Dunbar On Monday, June 16, 2003, at 04:58 PM, Donald S Dunbar wrote: > I have an irregular surface in 3D (an open pit mine) and a volume that > intersects this surface (an ore body). I would like to calculate the > area of the surface corresponding to the intersection. The volume is > also irregular, hence the intersection may consist of multiple patches > of the surface. Can this be done using VTK? How? > > Thanks, > > Donald S. Dunbar, Ph.D. > Senior Physical Oceanographer > Lorax Environmental Consultants Ltd. > 1108 Mainland Street > Vancouver, BC V6B 5L1 > > Ph: 604-688-7173 > Fx: 604-688-7175 > > _______________________________________________ > 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 > _______________________________________________ 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 dsjen at cs.unc.edu Thu Jun 19 23:21:41 2003 From: dsjen at cs.unc.edu (Dennis Jen) Date: Thu, 19 Jun 2003 23:21:41 -0400 Subject: [vtkusers] Re: Opacity problems with vtkVolume In-Reply-To: Message-ID: <000001c336db$12902480$0400a8c0@Dennis> When I set all opacity points to 0.0, nothing changes at all. I kind of gave up getting opacity to work this way. Instead, I'm using the SetOpacity function, i.e. actor.SetOpacity(some_number). For my isosurface, this seems to work, although I would have liked to get it working for my volumes (maximum intensity projection.). -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of anast.jm at pg.com Sent: Thursday, June 19, 2003 5:17 PM To: vtkusers at public.kitware.com Subject: [vtkusers] Re: Opacity problems with vtkVolume Sorry for the resend....realized the subject line wasn't too descriptive in the original post...john ----- Forwarded by John Anast on 06/19/2003 05:15 PM ----- I'm on WinXP with vtk 4.2 from a recent CVS build. I'm not seeing this problem. I have a small tcl script that compares side by side the RayCast Mapper and VolumePro mapper on the poship volume dataset and the opacity it behaving properly for both mappers. What does your volume look like after setting all opacity points to 0.0?? ...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] "Nico Vermaas" Sent by: vtkusers-admin at www.vtk.org 06/19/2003 02:28 AM To: cc: , (bcc: John Anast-JM/PGI) Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1884 - 11 msgs Hi Dennis, I have exactly the same problem with 4.x on Linux (Suse 7.3), if you find a solution let me know. Will do the same. Nico ---------------------------------------------------------------- Message: 4 From: To: vtkusers at public.kitware.com Date: Fri, 13 Jun 2003 13:20:01 -0400 Subject: [vtkusers] Volume Opacity Hello VTK Users, I'm having trouble changing the opacity of a vtkVolume. I'm creating a vtkPiecewiseFunction and adding the following points to the function with the following lines of code, where opacity is a the piecewise function: opacity.AddPoint(0, 0.0); opacity.AddPoint(255,0.0); This should make the volume completely transparent after I set the opacity of the volume: ... ... property.SetScalarOpacity(opacity); ... ... actor.SetProperty(property); ... ... If anyone has any suggestions, needs clarification, or can point me to any references, I'd be very grateful. Also, just for reference, I'm using vtk4.0 on WindowsXP. Thanks, Dennis ==================================================== 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajit_v_r at hotmail.com Fri Jun 20 00:17:01 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Fri, 20 Jun 2003 09:47:01 +0530 Subject: [vtkusers] displaying 3d grid Message-ID: I have a 2400 * 2400 grid called G, where G(i,j) is the Z coordinate at the (i,j)th location in the Grid. Is there an efficient way to render the entire grid ? _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp From amitt at tataelxsi.co.in Fri Jun 20 01:04:34 2003 From: amitt at tataelxsi.co.in (Amit Tikekar) Date: Fri, 20 Jun 2003 10:34:34 +0530 Subject: [vtkusers] Window Flickers. Message-ID: <000801c336e9$717ea170$220a010a@telxsi.com> Hi, I have an image processing application. I read the image data & then pass it to vtkImageViewer. This image is displayed in a child window through MFC. When I resize(stretch or shrink via mouse) the window the whole view area flickers. I checked whether the double buffering mode is ON & by default it is. I tried the same process on other imaging applications & there the flicker is absent. What am I missing ? Or is this all VTK can offer me ? Looking forward to your help. Regards Amit From amitt at tataelxsi.co.in Fri Jun 20 01:07:39 2003 From: amitt at tataelxsi.co.in (Amit Tikekar) Date: Fri, 20 Jun 2003 10:37:39 +0530 Subject: [vtkusers] VTK Issues. Message-ID: <000b01c336e9$df2e01c0$220a010a@telxsi.com> Hi users, Presently I am evaluating VTK for its usage in an imaging application. Is there anybody in this email list who has carried out this activity? Are there any prominent reasons of not using VTK in commercial applications ? Is the performance offered by VTK comparable to other licensed graphic libraries ? Looking forward for your valuable inputs. Regards Amit From nNunn at ausport.gov.au Fri Jun 20 01:34:56 2003 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Fri, 20 Jun 2003 15:34:56 +1000 Subject: [vtkusers] Window Flickers /MFC Message-ID: <7AF3524792FFD511A17A0000F81E965E472E7B@ELMO> Hi Amit, Override OnEraseBkgnd(). See below. Can someone fix this in the MFC sample? > When I resize(stretch or shrink via mouse) the window > the whole view area flickers. I checked whether the > double buffering mode is ON & by default it is. I tried > the same process on other imaging applications & there > the flicker is absent. BEGIN_MESSAGE_MAP(vtkMFCRenderView, CView) //{{AFX_MSG_MAP(vtkMFCRenderView) ... ON_WM_ERASEBKGND() ... //}}AFX_MSG_MAP END_MESSAGE_MAP() BOOL vtkMFCRenderView::OnEraseBkgnd(CDC* pDC) { // RenderWindow paints itself. // Avoid screen flicker. return TRUE; } Nigel ********************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************** From Cedric.Le.Maitre at ifremer.fr Fri Jun 20 03:10:43 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Fri, 20 Jun 2003 09:10:43 +0200 Subject: [vtkusers] Please, help! References: <3a1e233a4ea2.3a4ea23a1e23@sentinel.uaa.alaska.edu> Message-ID: <3EF2B373.439BC5F@ifremer.fr> Hello Anastasia ! I'm not a great VTK devlopper, but i'm used to Java. When you get an Actor with the renderer.getActor(), it normally return a vtkActor class, because it's in the method prototype... Could you cast the returned object to your desired class ? like this: vtkPanel panel = (vtkPanel) renderer.getActor(); If vtkPanel inherite from vtkActor, it'll work ! Hope i help you, but i'm not sure to have understood your question. Cedric. Anastasia Mironova a ?crit : > > Hello, > I am adding isosurafces and cross sections to a vtkPanel in Java, > which are instances of vtkActor and vtkImageActor classes, > consequently. For some reason the method GetActors that I apply to the > renderer only returns objects of the vtkActor class of that panel and > does not return/recognize any of the cross sections, which is quite > inconvenient when I am trying to clear the panel since all the cross > sections turn out to be unremovable this way. If you could please give > any advise on how to fix this I would really appreciate it. > Anastasia > > _______________________________________________ > 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 chandran.ramu at quest-global.com Fri Jun 20 07:07:21 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Fri, 20 Jun 2003 16:37:21 +0530 Subject: [vtkusers] vtkVRMLImporter Message-ID: <001701c3371c$1f9ed220$a7f0d103@qi612> Hi All, I am Using vtkVrmlImporter to load the vrml ,but i find that the vrml does not get loaded fully. I have tried all ways but invain. Can any one please help me Thank in advance Code Snippet (First method) vtkVRMLImporter importer=new vtkVRMLImporter(); importer.SetRenderWindow(renWin.GetRenderWindow()); importer.SetFileName(filePath); importer.Read(); renWin.Render(); I have even tried the other approach which is as follows vtkVRMLImporter importer=new vtkVRMLImporter(); importer.SetRenderWindow(renWin.GetRenderWindow()); importer.SetFileName(filePath); importer.Read(); vtkAppendPolyData appendData=new vtkAppendPolyData(); vtkActorCollection collection=renWin.GetRenderer().GetActors(); int count =collection.GetNumberOfItems(); collection.InitTraversal(); vtkProperty prop=null; for(int i=0;i< count ;i++){ vtkActor actor=collection.GetNextActor(); actor.InitPartTraversal(); int count1=actor.GetNumberOfParts(); for(int j=0;j< count1 ;j++){ vtkActor actorNew=actor.GetNextPart(); prop=actor.GetProperty(); vtkPolyData data=(vtkPolyData) actorNew.GetMapper ().GetInputAsDataSet(); appendData.AddInput(data); } } vtkPolyDataNormals normals=new vtkPolyDataNormals(); normals.SetInput(appendData.GetInput()); normals.ConsistencyOn(); normals.SplittingOff(); vtkActorCollection collection1=renWin.GetRenderer().GetActors(); int count1 =collection.GetNumberOfItems(); ollection.InitTraversal(); for(int i=0;i< count ;i++){ vtkActor actor=collection.GetNextActor(); renWin.GetRenderer().RemoveActor(actor); } vtkPolyDataMapper clipMapper = new vtk.vtkPolyDataMapper(); clipMapper.SetInput(normals.GetOutput()); clipMapper.ScalarVisibilityOff(); vtkActor clipActor = new vtk.vtkActor(); clipActor.SetMapper(clipMapper); prop.SetDiffuse(0.7); clipActor.SetProperty(prop); renWin.GetRenderer().AddActor(clipActor); renWin.setBackground(Color.yellow); renWin.GetRenderer().SetBackground(30,30,30); renWin.GetRenderer().ResetCameraClippingRange(); renWin.Render(); Any suggestions to improve on the code is greatly appreciated Thanks in advance Chandran Ramu From ramakrishna.prakash at quest-global.com Fri Jun 20 08:24:51 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 20 Jun 2003 17:54:51 +0530 Subject: [vtkusers] Window Flickers. In-Reply-To: <000801c336e9$717ea170$220a010a@telxsi.com> Message-ID: <002e01c33726$f3315f90$de0ba8c0@qtwblr01.questglobal.com> Hi, Even I had a similar problemsometime back when I myself built the VTK 4.2 release. When I clicked on the 3d object it used to flicker, it's front face used toget chopped off(similar effect as that we get when we set FrontFaceCullingOn()) and sometime the object used to show a mixed solid and wireframe representaion. Then I used the binary from VTK and the problem was gone, but till date I am not suer what exactly was the problem. Can anybody please analyze this? Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Amit Tikekar Sent: Friday, June 20, 2003 10:35 AM To: vtkusers at www.vtk.org Subject: [vtkusers] Window Flickers. Sensitivity: Private Hi, I have an image processing application. I read the image data & then pass it to vtkImageViewer. This image is displayed in a child window through MFC. When I resize(stretch or shrink via mouse) the window the whole view area flickers. I checked whether the double buffering mode is ON & by default it is. I tried the same process on other imaging applications & there the flicker is absent. What am I missing ? Or is this all VTK can offer me ? Looking forward to your help. Regards Amit _______________________________________________ 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 Fri Jun 20 08:23:32 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 20 Jun 2003 08:23:32 -0400 Subject: [vtkusers] Window Flickers. In-Reply-To: <002e01c33726$f3315f90$de0ba8c0@qtwblr01.questglobal.com> References: <002e01c33726$f3315f90$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EF2FCC4.5080504@cdnorthamerica.com> R K Shyamprakash wrote: >Hi, > Even I had a similar problemsometime back when I myself built the VTK >4.2 release. When I clicked on the 3d object it used to flicker, it's front >face used toget chopped off(similar effect as that we get when we set >FrontFaceCullingOn()) and sometime the object used to show a mixed solid and >wireframe representaion. Then I used the binary from VTK and the problem was >gone, but till date I am not suer what exactly was the problem. Can anybody >please analyze this? > did you have a vtkTextMapper in your renderer at the time? when you clicked, did you also perform a pick? -Jeff > >Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Amit Tikekar >Sent: Friday, June 20, 2003 10:35 AM >To: vtkusers at www.vtk.org >Subject: [vtkusers] Window Flickers. >Sensitivity: Private > > >Hi, > >I have an image processing application. I read the image data & then pass it >to vtkImageViewer. This image is displayed in a child window through MFC. >When I resize(stretch or shrink via mouse) the window the whole view area >flickers. I checked whether the double buffering mode is ON & by default it >is. I tried the same process on other imaging applications & there the >flicker is absent. > >What am I missing ? Or is this all VTK can offer me ? > >Looking forward to your help. > >Regards >Amit > >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer Computational Dynamics North America Ltd 21 Lafayette Street, Suite 230 Lebanon NH 03766 USA fax: 603 643 9994 phone: 603 643 9993 x109 http://www.cd-adapco.com From amitt at tataelxsi.co.in Fri Jun 20 08:40:30 2003 From: amitt at tataelxsi.co.in (Amit Tikekar) Date: Fri, 20 Jun 2003 18:10:30 +0530 Subject: [vtkusers] DeepCopy() Message-ID: <000201c33729$223e9760$220a010a@telxsi.com> Hi, In an imaging application, I am trying to modify the image data. Before I finalize my modifications, I test the results on the image through a temporary vtkImageData Source. After I am sure of these modifications, I copy the modified vtkImageData onto the original data, through DeepCopy. My code looks like this: ///////////////////////////////////////////////// ReadData(LPCTSTR lpszPathName) { m_pTIFFReader->SetFileName(lpszPathName); m_pTIFFReader->GetOutput()->Update(); //Create a copy of data that shall be the source for image rendering in the pipeline. m_pVtkImageData->DeepCopy(m_pTIFFReader->GetOutput()); //Create a duplicate buffer that will hold temporary modifications m_pVtkTempImageData = vtkImageData::New(); } //Routine Renders to screen via vtkImageViewer tied to a child window. OnDraw() { if ( bDrawTempData) m_pImageViewer->SetInput(m_pVtkTempImageData); else m_pImageViewer->SetInput(m_pVtkImageData); m_pImageViewer->Render(); } //Routine modifies permanent data after modifications are finalised. ModifyPermanentData() { m_pVtkImageData->DeepCopy(m_pVtkTempImageData); bDrawTempData = FALSE; Invalidate(); } ///////////////////////////////////////////////// I hope you have an idea by now what my intention is. But when I do this, the application crashes in ModifyPermanentData::DeepCopy(). I tried using DeepCopy at all levels, vtkDataArray, vtkUnsignedCharArray etc. I tried to copy the image data explicitly through a routine from one Data array to other, even then there is a crash. Can anybody tell me, how such a situation is taken care of ? Where do I go wrong ? 1) Why is there so much dependency of one object on the other? 2) Is it the case that once the pipeline executes, the vtkImageData object undergoes change in terms of dataarrays & memory allocations ? Please help... Regards Amit From mcguinpg at maths.tcd.ie Fri Jun 20 09:55:00 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Fri, 20 Jun 2003 14:55:00 +0100 (BST) Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' Message-ID: Hi VTK Developers I am in a bit of a pickel, I am on Linux using the cmake, then make to compile my simple program containing the following code: #include "vtkSTLReader.h" int main( int argc, char *argv[] ) { vtkSTLReader *sr = vtkSTLReader::New(); sr->SetFileName("y40501.stl"); sr->Delete(); return 0; } And on compilation I get the following error, does anyone know what is wrong? I am using VTK-4.2.2 $ make Building dependencies cmake.check_depends... -- Compiling VTK loaded commands -- Compiling VTK loaded commands - done Building object file STLreadtest.o... Building executable STLreadtest... STLreadtest.o: In function `main': STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' collect2: ld returned 1 exit status make[1]: *** [STLreadtest] Error 1 make: *** [default_target] Error 2 Does anyone know how I can fix this? Many thanks, Paul. From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 20 10:24:41 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 20 Jun 2003 16:24:41 +0200 Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' In-Reply-To: References: Message-ID: <3EF31929.6050203@creatis.insa-lyon.fr> Paul, Could you please turn CMAKE_VERBOSE_MAKEFILE to ON (either through the cmake interface or by modifying CMakeCache.txt : CMAKE_VERBOSE_MAKEFILE:BOOL=ON Then rerun cmake && make and please send us the g++ compilation line Thanks, mathieu Paul McGuinness wrote: > Hi VTK Developers > > I am in a bit of a pickel, I am on Linux using the cmake, then make to > compile my simple program containing the following code: > > #include "vtkSTLReader.h" > > int main( int argc, char *argv[] ) > { > vtkSTLReader *sr = vtkSTLReader::New(); > sr->SetFileName("y40501.stl"); > > sr->Delete(); > return 0; > } > > And on compilation I get the following error, does anyone know what is > wrong? I am using VTK-4.2.2 > > > $ make > Building dependencies cmake.check_depends... > -- Compiling VTK loaded commands > -- Compiling VTK loaded commands - done > Building object file STLreadtest.o... > Building executable STLreadtest... > STLreadtest.o: In function `main': > STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' > collect2: ld returned 1 exit status > make[1]: *** [STLreadtest] Error 1 > make: *** [default_target] Error 2 > > Does anyone know how I can fix this? > > Many 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ From dsjen at cs.unc.edu Fri Jun 20 11:15:21 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Fri, 20 Jun 2003 11:15:21 -0400 Subject: [vtkusers] rendering isosurface and crashing Message-ID: <117ada11779f.11779f117ada@cs.unc.edu> Hi VTK Users, I'm developing an application using vtk4.0, through Java, on WindowsXP. I've run into a problem when trying to render an isosurface. I have a stack of 800x800-pixel images that form a volume. When viewing a subset of the stack, I'm able to render the isosurface and manipulate it, although it does take a quite a bit of time to render. However, when I attempt to render the entire stack, my application thinks for a very long time before my application crashes and Java generates an hs_err_pid####.txt file. I've included the contents of the text file below. My guess is that I'm running out of memory, but I just wanted to check to see if anyone else has encountered a similar problem or has any suggestion. Thanks, Dennis ----- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x69263FF5 Function=atiPS+0x381F5 Library=C:\WINDOWS\System32\atioglxx.dll Current Java thread: at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent_2 (Native Method) at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent (vtkGenericRenderWindowInteractor.java:20) at vtk.vtkCanvas.mouseDragged(vtkCanvas.java:220) at java.awt.Component.processMouseMotionEvent (Component.java:5070) at java.awt.Component.processEvent(Component.java:4823) at java.awt.Component.dispatchEventImpl(Component.java:3527) at java.awt.Component.dispatchEvent(Component.java:3368) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:130) at java.awt.EventDispatchThread.run (EventDispatchThread.java:98) Dynamic libraries: 0x00400000 - 0x00406000 C:\Program Files\Java\j2re1.4.0_04 \bin\javaw.exe 0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll 0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll 0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll 0x78000000 - 0x7807F000 C:\WINDOWS\system32\RPCRT4.dll 0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll 0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll 0x6D330000 - 0x6D445000 C:\Program Files\Java\j2re1.4.0_04 \bin\client\jvm.dll 0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll 0x6D1D0000 - 0x6D1D7000 C:\Program Files\Java\j2re1.4.0_04 \bin\hpi.dll 0x6D300000 - 0x6D30E000 C:\Program Files\Java\j2re1.4.0_04 \bin\verify.dll 0x6D210000 - 0x6D228000 C:\Program Files\Java\j2re1.4.0_04 \bin\java.dll 0x6D320000 - 0x6D32D000 C:\Program Files\Java\j2re1.4.0_04 \bin\zip.dll 0x6D000000 - 0x6D0F6000 C:\Program Files\Java\j2re1.4.0_04 \bin\awt.dll 0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV 0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll 0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll 0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll 0x6D180000 - 0x6D1D0000 C:\Program Files\Java\j2re1.4.0_04 \bin\fontmanager.dll 0x69000000 - 0x6950B000 C:\WINDOWS\System32\atioglxx.dll 0x10000000 - 0x1010F000 C:\Program Files\vtk40 \bin\vtkCommonJava.dll 0x0AF30000 - 0x0B2C0000 C:\PROGRA~1\vtk40\bin\vtkCommon.dll 0x102A0000 - 0x102B7000 C:\PROGRA~1\vtk40\bin\MSVCIRTD.dll 0x10200000 - 0x1026C000 C:\PROGRA~1\vtk40\bin\MSVCRTD.dll 0x0B2C0000 - 0x0B39E000 C:\PROGRA~1\vtk40\bin\libmmd.dll 0x0B3B0000 - 0x0B3F3000 C:\Program Files\vtk40 \bin\vtkFilteringJava.dll 0x0B400000 - 0x0B4B6000 C:\PROGRA~1\vtk40\bin\vtkFiltering.dll 0x0B4C0000 - 0x0B535000 C:\Program Files\vtk40 \bin\vtkIOJava.dll 0x0B540000 - 0x0B8D9000 C:\PROGRA~1\vtk40\bin\vtkIO.dll 0x0B8E0000 - 0x0B919000 C:\PROGRA~1\vtk40\bin\vtkpng.dll 0x0B920000 - 0x0B93F000 C:\PROGRA~1\vtk40\bin\vtkzlib.dll 0x0B940000 - 0x0B97E000 C:\PROGRA~1\vtk40\bin\vtkjpeg.dll 0x0B980000 - 0x0B9F2000 C:\PROGRA~1\vtk40\bin\vtktiff.dll 0x0BA00000 - 0x0BA35000 C:\PROGRA~1\vtk40\bin\vtkexpat.dll 0x0BA40000 - 0x0BACA000 C:\Program Files\vtk40 \bin\vtkImagingJava.dll 0x0BAD0000 - 0x0BEF7000 C:\PROGRA~1\vtk40\bin\vtkImaging.dll 0x0BF00000 - 0x0BFFF000 C:\Program Files\vtk40 \bin\vtkGraphicsJava.dll 0x0C000000 - 0x0C454000 C:\PROGRA~1\vtk40\bin\vtkGraphics.dll 0x0C560000 - 0x0C626000 C:\Program Files\vtk40 \bin\vtkRenderingJava.dll 0x0C630000 - 0x0CB16000 C:\PROGRA~1\vtk40\bin\vtkRendering.dll 0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll 0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll 0x51000000 - 0x51047000 C:\WINDOWS\System32\DDRAW.dll 0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll 0x0CB20000 - 0x0CB38000 C:\PROGRA~1\vtk40\bin\vtkftgl.dll 0x0CB40000 - 0x0CBBD000 C:\PROGRA~1\vtk40\bin\vtkfreetype.dll 0x6D230000 - 0x6D235000 C:\Program Files\Java\j2re1.4.0_04 \bin\jawt.dll 0x0CBC0000 - 0x0CC31000 C:\Program Files\vtk40 \bin\vtkHybridJava.dll 0x0CC40000 - 0x0CE6D000 C:\PROGRA~1\vtk40\bin\vtkHybrid.dll 0x605D0000 - 0x605D8000 C:\WINDOWS\System32\mslbui.dll 0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.DLL 0x773D0000 - 0x77BC2000 C:\WINDOWS\system32\shell32.dll 0x70A70000 - 0x70AD4000 C:\WINDOWS\system32\SHLWAPI.dll 0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll 0x77340000 - 0x773CB000 C:\WINDOWS\system32\comctl32.dll 0x71C20000 - 0x71C6E000 C:\WINDOWS\System32\netapi32.dll 0x76670000 - 0x76757000 C:\WINDOWS\System32\SETUPAPI.dll 0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.dll 0x75F60000 - 0x75F66000 C:\WINDOWS\System32\drprov.dll 0x71C10000 - 0x71C1D000 C:\WINDOWS\System32\ntlanman.dll 0x71CD0000 - 0x71CE6000 C:\WINDOWS\System32\NETUI0.dll 0x71C90000 - 0x71CCC000 C:\WINDOWS\System32\NETUI1.dll 0x71C80000 - 0x71C86000 C:\WINDOWS\System32\NETRAP.dll 0x71BF0000 - 0x71C01000 C:\WINDOWS\System32\SAMLIB.dll 0x75F70000 - 0x75F79000 C:\WINDOWS\System32\davclnt.dll 0x75F40000 - 0x75F5F000 C:\WINDOWS\system32\appHelp.dll 0x76FD0000 - 0x77048000 C:\WINDOWS\System32\CLBCATQ.DLL 0x77050000 - 0x77115000 C:\WINDOWS\System32\COMRes.dll 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll 0x76620000 - 0x7666E000 C:\WINDOWS\System32\cscui.dll 0x76600000 - 0x7661B000 C:\WINDOWS\System32\CSCDLL.dll 0x76990000 - 0x769B4000 C:\WINDOWS\System32\ntshrui.dll 0x76B20000 - 0x76B35000 C:\WINDOWS\System32\ATL.DLL 0x75A70000 - 0x75B15000 C:\WINDOWS\system32\USERENV.dll 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll 0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL Local Time = Fri Jun 20 10:50:43 2003 Elapsed Time = 722 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0_04-b04 mixed mode) # From Romain.Ollivier at sophia.inria.fr Fri Jun 20 11:40:27 2003 From: Romain.Ollivier at sophia.inria.fr (Romain Ollivier) Date: Fri, 20 Jun 2003 17:40:27 +0200 Subject: [vtkusers] interacting with vtkPanel (java/vtk) Message-ID: <3EF32AEB.E63A8907@sophia.inria.fr> Hi, I sent a previous post to ask for help about manipulating and render a vtkPanel with a widget. Has someone an example of an interaction between a vtkPanel and a widget (JButton, JSlider...) in the same JFrame ? My problem was the call of the vtkPanel method Render() in my event handling method. Thanks, Romain From georgefyc at yahoo.com Sat Jun 21 12:45:03 2003 From: georgefyc at yahoo.com (Yuncong Feng) Date: Sat, 21 Jun 2003 09:45:03 -0700 (PDT) Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1901 - 7 msgs In-Reply-To: <20030621114153.22794.64519.Mailman@public.kitware.com> Message-ID: <20030621164503.16522.qmail@web41205.mail.yahoo.com> Hi: I am ok, don't worry. I will call you on Sunday afternoon. take care! cong vtkusers-request at vtk.org wrote: Send vtkusers mailing list submissions to vtkusers at vtk.org To subscribe or unsubscribe via the World Wide Web, visit http://www.vtk.org/mailman/listinfo/vtkusers or, via email, send a message with subject or body 'help' to vtkusers-request at vtk.org You can reach the person managing the list at vtkusers-admin at vtk.org When replying, please edit your Subject line so it is more specific than "Re: Contents of vtkusers digest..." Today's Topics: 1. RE: Window Flickers. (R K Shyamprakash) 2. Re: Window Flickers. (Jeff Lee) 3. DeepCopy() (Amit Tikekar) 4. STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' (Paul McGuinness) 5. Re: STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' (Mathieu Malaterre) 6. rendering isosurface and crashing (dsjen at cs.unc.edu) 7. interacting with vtkPanel (java/vtk) (Romain Ollivier) --__--__-- Message: 1 From: "R K Shyamprakash" To: , Subject: RE: [vtkusers] Window Flickers. Date: Fri, 20 Jun 2003 17:54:51 +0530 Hi, Even I had a similar problemsometime back when I myself built the VTK 4.2 release. When I clicked on the 3d object it used to flicker, it's front face used toget chopped off(similar effect as that we get when we set FrontFaceCullingOn()) and sometime the object used to show a mixed solid and wireframe representaion. Then I used the binary from VTK and the problem was gone, but till date I am not suer what exactly was the problem. Can anybody please analyze this? Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Amit Tikekar Sent: Friday, June 20, 2003 10:35 AM To: vtkusers at www.vtk.org Subject: [vtkusers] Window Flickers. Sensitivity: Private Hi, I have an image processing application. I read the image data & then pass it to vtkImageViewer. This image is displayed in a child window through MFC. When I resize(stretch or shrink via mouse) the window the whole view area flickers. I checked whether the double buffering mode is ON & by default it is. I tried the same process on other imaging applications & there the flicker is absent. What am I missing ? Or is this all VTK can offer me ? Looking forward to your help. Regards Amit _______________________________________________ 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 --__--__-- Message: 2 Date: Fri, 20 Jun 2003 08:23:32 -0400 From: Jeff Lee Organization: Computational Dynamics North America To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Window Flickers. R K Shyamprakash wrote: >Hi, > Even I had a similar problemsometime back when I myself built the VTK >4.2 release. When I clicked on the 3d object it used to flicker, it's front >face used toget chopped off(similar effect as that we get when we set >FrontFaceCullingOn()) and sometime the object used to show a mixed solid and >wireframe representaion. Then I used the binary from VTK and the problem was >gone, but till date I am not suer what exactly was the problem. Can anybody >please analyze this? > did you have a vtkTextMapper in your renderer at the time? when you clicked, did you also perform a pick? -Jeff > >Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Amit Tikekar >Sent: Friday, June 20, 2003 10:35 AM >To: vtkusers at www.vtk.org >Subject: [vtkusers] Window Flickers. >Sensitivity: Private > > >Hi, > >I have an image processing application. I read the image data & then pass it >to vtkImageViewer. This image is displayed in a child window through MFC. >When I resize(stretch or shrink via mouse) the window the whole view area >flickers. I checked whether the double buffering mode is ON & by default it >is. I tried the same process on other imaging applications & there the >flicker is absent. > >What am I missing ? Or is this all VTK can offer me ? > >Looking forward to your help. > >Regards >Amit > >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer Computational Dynamics North America Ltd 21 Lafayette Street, Suite 230 Lebanon NH 03766 USA fax: 603 643 9994 phone: 603 643 9993 x109 http://www.cd-adapco.com --__--__-- Message: 3 Reply-To: From: "Amit Tikekar" To: Date: Fri, 20 Jun 2003 18:10:30 +0530 Subject: [vtkusers] DeepCopy() Hi, In an imaging application, I am trying to modify the image data. Before I finalize my modifications, I test the results on the image through a temporary vtkImageData Source. After I am sure of these modifications, I copy the modified vtkImageData onto the original data, through DeepCopy. My code looks like this: ///////////////////////////////////////////////// ReadData(LPCTSTR lpszPathName) { m_pTIFFReader->SetFileName(lpszPathName); m_pTIFFReader->GetOutput()->Update(); //Create a copy of data that shall be the source for image rendering in the pipeline. m_pVtkImageData->DeepCopy(m_pTIFFReader->GetOutput()); //Create a duplicate buffer that will hold temporary modifications m_pVtkTempImageData = vtkImageData::New(); } //Routine Renders to screen via vtkImageViewer tied to a child window. OnDraw() { if ( bDrawTempData) m_pImageViewer->SetInput(m_pVtkTempImageData); else m_pImageViewer->SetInput(m_pVtkImageData); m_pImageViewer->Render(); } //Routine modifies permanent data after modifications are finalised. ModifyPermanentData() { m_pVtkImageData->DeepCopy(m_pVtkTempImageData); bDrawTempData = FALSE; Invalidate(); } ///////////////////////////////////////////////// I hope you have an idea by now what my intention is. But when I do this, the application crashes in ModifyPermanentData::DeepCopy(). I tried using DeepCopy at all levels, vtkDataArray, vtkUnsignedCharArray etc. I tried to copy the image data explicitly through a routine from one Data array to other, even then there is a crash. Can anybody tell me, how such a situation is taken care of ? Where do I go wrong ? 1) Why is there so much dependency of one object on the other? 2) Is it the case that once the pipeline executes, the vtkImageData object undergoes change in terms of dataarrays & memory allocations ? Please help... Regards Amit --__--__-- Message: 4 Date: Fri, 20 Jun 2003 14:55:00 +0100 (BST) From: Paul McGuinness To: vtkusers at vtk.org Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' Hi VTK Developers I am in a bit of a pickel, I am on Linux using the cmake, then make to compile my simple program containing the following code: #include "vtkSTLReader.h" int main( int argc, char *argv[] ) { vtkSTLReader *sr = vtkSTLReader::New(); sr->SetFileName("y40501.stl"); sr->Delete(); return 0; } And on compilation I get the following error, does anyone know what is wrong? I am using VTK-4.2.2 $ make Building dependencies cmake.check_depends... -- Compiling VTK loaded commands -- Compiling VTK loaded commands - done Building object file STLreadtest.o... Building executable STLreadtest... STLreadtest.o: In function `main': STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' collect2: ld returned 1 exit status make[1]: *** [STLreadtest] Error 1 make: *** [default_target] Error 2 Does anyone know how I can fix this? Many thanks, Paul. --__--__-- Message: 5 Date: Fri, 20 Jun 2003 16:24:41 +0200 From: Mathieu Malaterre To: Paul McGuinness Cc: vtkusers at vtk.org Subject: Re: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' Paul, Could you please turn CMAKE_VERBOSE_MAKEFILE to ON (either through the cmake interface or by modifying CMakeCache.txt : CMAKE_VERBOSE_MAKEFILE:BOOL=ON Then rerun cmake && make and please send us the g++ compilation line Thanks, mathieu Paul McGuinness wrote: > Hi VTK Developers > > I am in a bit of a pickel, I am on Linux using the cmake, then make to > compile my simple program containing the following code: > > #include "vtkSTLReader.h" > > int main( int argc, char *argv[] ) > { > vtkSTLReader *sr = vtkSTLReader::New(); > sr->SetFileName("y40501.stl"); > > sr->Delete(); > return 0; > } > > And on compilation I get the following error, does anyone know what is > wrong? I am using VTK-4.2.2 > > > $ make > Building dependencies cmake.check_depends... > -- Compiling VTK loaded commands > -- Compiling VTK loaded commands - done > Building object file STLreadtest.o... > Building executable STLreadtest... > STLreadtest.o: In function `main': > STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' > collect2: ld returned 1 exit status > make[1]: *** [STLreadtest] Error 1 > make: *** [default_target] Error 2 > > Does anyone know how I can fix this? > > Many 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ --__--__-- Message: 6 From: To: vtkusers at vtk.org Date: Fri, 20 Jun 2003 11:15:21 -0400 Subject: [vtkusers] rendering isosurface and crashing Hi VTK Users, I'm developing an application using vtk4.0, through Java, on WindowsXP. I've run into a problem when trying to render an isosurface. I have a stack of 800x800-pixel images that form a volume. When viewing a subset of the stack, I'm able to render the isosurface and manipulate it, although it does take a quite a bit of time to render. However, when I attempt to render the entire stack, my application thinks for a very long time before my application crashes and Java generates an hs_err_pid####.txt file. I've included the contents of the text file below. My guess is that I'm running out of memory, but I just wanted to check to see if anyone else has encountered a similar problem or has any suggestion. Thanks, Dennis ----- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x69263FF5 Function=atiPS+0x381F5 Library=C:\WINDOWS\System32\atioglxx.dll Current Java thread: at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent_2 (Native Method) at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent (vtkGenericRenderWindowInteractor.java:20) at vtk.vtkCanvas.mouseDragged(vtkCanvas.java:220) at java.awt.Component.processMouseMotionEvent (Component.java:5070) at java.awt.Component.processEvent(Component.java:4823) at java.awt.Component.dispatchEventImpl(Component.java:3527) at java.awt.Component.dispatchEvent(Component.java:3368) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:130) at java.awt.EventDispatchThread.run (EventDispatchThread.java:98) Dynamic libraries: 0x00400000 - 0x00406000 C:\Program Files\Java\j2re1.4.0_04 \bin\javaw.exe 0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll 0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll 0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll 0x78000000 - 0x7807F000 C:\WINDOWS\system32\RPCRT4.dll 0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll 0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll 0x6D330000 - 0x6D445000 C:\Program Files\Java\j2re1.4.0_04 \bin\client\jvm.dll 0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll 0x6D1D0000 - 0x6D1D7000 C:\Program Files\Java\j2re1.4.0_04 \bin\hpi.dll 0x6D300000 - 0x6D30E000 C:\Program Files\Java\j2re1.4.0_04 \bin\verify.dll 0x6D210000 - 0x6D228000 C:\Program Files\Java\j2re1.4.0_04 \bin\java.dll 0x6D320000 - 0x6D32D000 C:\Program Files\Java\j2re1.4.0_04 \bin\zip.dll 0x6D000000 - 0x6D0F6000 C:\Program Files\Java\j2re1.4.0_04 \bin\awt.dll 0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV 0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll 0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll 0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll 0x6D180000 - 0x6D1D0000 C:\Program Files\Java\j2re1.4.0_04 \bin\fontmanager.dll 0x69000000 - 0x6950B000 C:\WINDOWS\System32\atioglxx.dll 0x10000000 - 0x1010F000 C:\Program Files\vtk40 \bin\vtkCommonJava.dll 0x0AF30000 - 0x0B2C0000 C:\PROGRA~1\vtk40\bin\vtkCommon.dll 0x102A0000 - 0x102B7000 C:\PROGRA~1\vtk40\bin\MSVCIRTD.dll 0x10200000 - 0x1026C000 C:\PROGRA~1\vtk40\bin\MSVCRTD.dll 0x0B2C0000 - 0x0B39E000 C:\PROGRA~1\vtk40\bin\libmmd.dll 0x0B3B0000 - 0x0B3F3000 C:\Program Files\vtk40 \bin\vtkFilteringJava.dll 0x0B400000 - 0x0B4B6000 C:\PROGRA~1\vtk40\bin\vtkFiltering.dll 0x0B4C0000 - 0x0B535000 C:\Program Files\vtk40 \bin\vtkIOJava.dll 0x0B540000 - 0x0B8D9000 C:\PROGRA~1\vtk40\bin\vtkIO.dll 0x0B8E0000 - 0x0B919000 C:\PROGRA~1\vtk40\bin\vtkpng.dll 0x0B920000 - 0x0B93F000 C:\PROGRA~1\vtk40\bin\vtkzlib.dll 0x0B940000 - 0x0B97E000 C:\PROGRA~1\vtk40\bin\vtkjpeg.dll 0x0B980000 - 0x0B9F2000 C:\PROGRA~1\vtk40\bin\vtktiff.dll 0x0BA00000 - 0x0BA35000 C:\PROGRA~1\vtk40\bin\vtkexpat.dll 0x0BA40000 - 0x0BACA000 C:\Program Files\vtk40 \bin\vtkImagingJava.dll 0x0BAD0000 - 0x0BEF7000 C:\PROGRA~1\vtk40\bin\vtkImaging.dll 0x0BF00000 - 0x0BFFF000 C:\Program Files\vtk40 \bin\vtkGraphicsJava.dll 0x0C000000 - 0x0C454000 C:\PROGRA~1\vtk40\bin\vtkGraphics.dll 0x0C560000 - 0x0C626000 C:\Program Files\vtk40 \bin\vtkRenderingJava.dll 0x0C630000 - 0x0CB16000 C:\PROGRA~1\vtk40\bin\vtkRendering.dll 0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll 0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll 0x51000000 - 0x51047000 C:\WINDOWS\System32\DDRAW.dll 0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll 0x0CB20000 - 0x0CB38000 C:\PROGRA~1\vtk40\bin\vtkftgl.dll 0x0CB40000 - 0x0CBBD000 C:\PROGRA~1\vtk40\bin\vtkfreetype.dll 0x6D230000 - 0x6D235000 C:\Program Files\Java\j2re1.4.0_04 \bin\jawt.dll 0x0CBC0000 - 0x0CC31000 C:\Program Files\vtk40 \bin\vtkHybridJava.dll 0x0CC40000 - 0x0CE6D000 C:\PROGRA~1\vtk40\bin\vtkHybrid.dll 0x605D0000 - 0x605D8000 C:\WINDOWS\System32\mslbui.dll 0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.DLL 0x773D0000 - 0x77BC2000 C:\WINDOWS\system32\shell32.dll 0x70A70000 - 0x70AD4000 C:\WINDOWS\system32\SHLWAPI.dll 0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll 0x77340000 - 0x773CB000 C:\WINDOWS\system32\comctl32.dll 0x71C20000 - 0x71C6E000 C:\WINDOWS\System32\netapi32.dll 0x76670000 - 0x76757000 C:\WINDOWS\System32\SETUPAPI.dll 0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.dll 0x75F60000 - 0x75F66000 C:\WINDOWS\System32\drprov.dll 0x71C10000 - 0x71C1D000 C:\WINDOWS\System32\ntlanman.dll 0x71CD0000 - 0x71CE6000 C:\WINDOWS\System32\NETUI0.dll 0x71C90000 - 0x71CCC000 C:\WINDOWS\System32\NETUI1.dll 0x71C80000 - 0x71C86000 C:\WINDOWS\System32\NETRAP.dll 0x71BF0000 - 0x71C01000 C:\WINDOWS\System32\SAMLIB.dll 0x75F70000 - 0x75F79000 C:\WINDOWS\System32\davclnt.dll 0x75F40000 - 0x75F5F000 C:\WINDOWS\system32\appHelp.dll 0x76FD0000 - 0x77048000 C:\WINDOWS\System32\CLBCATQ.DLL 0x77050000 - 0x77115000 C:\WINDOWS\System32\COMRes.dll 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll 0x76620000 - 0x7666E000 C:\WINDOWS\System32\cscui.dll 0x76600000 - 0x7661B000 C:\WINDOWS\System32\CSCDLL.dll 0x76990000 - 0x769B4000 C:\WINDOWS\System32\ntshrui.dll 0x76B20000 - 0x76B35000 C:\WINDOWS\System32\ATL.DLL 0x75A70000 - 0x75B15000 C:\WINDOWS\system32\USERENV.dll 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll 0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL Local Time = Fri Jun 20 10:50:43 2003 Elapsed Time = 722 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0_04-b04 mixed mode) # --__--__-- Message: 7 Date: Fri, 20 Jun 2003 17:40:27 +0200 From: Romain Ollivier Organization: INRIA Sophia Antipolis To: vtkusers at vtk.org Subject: [vtkusers] interacting with vtkPanel (java/vtk) Hi, I sent a previous post to ask for help about manipulating and render a vtkPanel with a widget. Has someone an example of an interaction between a vtkPanel and a widget (JButton, JSlider...) in the same JFrame ? My problem was the call of the vtkPanel method Render() in my event handling method. Thanks, Romain --__--__-- _______________________________________________ vtkusers mailing list vtkusers at vtk.org http://www.vtk.org/mailman/listinfo/vtkusers End of vtkusers Digest --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Pont at ForestResearch.co.nz Sun Jun 22 17:59:17 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Mon, 23 Jun 2003 09:59:17 +1200 Subject: [vtkusers] raw buffer access in Tcl Message-ID: Hi Charl, re my earlier statement, I did not mean to imply Python or Tcl are not solid. What I meant is actually addressed in VISSION, I really like the 'metaclass' concept, although I had in mind a way of generating this kind of wrapper automatically for vtk in the same fashion as the language wrappers are done, not manually as done in VISSION (I think). This meta layer would be the information manipulated by the pipeline editor. If other key functionality (network management/editing/persistence etc) were added, a uniform interface to vtk pipeline editing could be produced. This could be used from C++, but in theory at least, also be wrapped to be used from the other supported languages? This could allow multiple editors to be developed, developers working in their favourite languages. If the uniform interface was adhered to (and extended as necessary) editor A could load a pipeline built by editor B... So this was what I had in mind when I suggested a 'solid foundation', a uniform interface to pipeline editing, rather than relying on the features of specific languages. Of course it may be more efficient to do as you suggest, leverage the features of one of those languages and spend the programming effort making a pipeline editor, rather than an automatically-generated-uniform-interface-to-a-pipeline-editor. so I am looking forward to seeing RPD... PS: you mentioned that VISSION was not publicly available but the way the C++ introspection was done is.... Does this mean the C++ interpreter (CINT) or is some of the VISSION functionality built on top of this actually available? I could see no reference to anything publicly available from VISSION. VISSION seems to include some very useful features (on the fly interpretation, C++ scripting, pipeline type checking etc) as part of the 'introspection stuff' that looks very good. regards, Dave. |--------+---------------------------------> | | "Charl P. Botha" | | | | | | Sent by: | | | vtkusers-admin at public.k| | | itware.com | | | | | | | | | 17/06/2003 19:49 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: VTK Users List | | cc: | | Subject: Re: [vtkusers] raw buffer access in Tcl | >------------------------------------------------------------------------------------------------------------| On Fri, 2003-06-13 at 02:21, David.Pont at ForestResearch.co.nz wrote: > I have thought for a while that if the vtk build process can auto-generate > wrappers for other languages then why not for C++. This would give > 'introspection' capabilities which would be very useful to make a vtk > pipeline editor... I would like to add my 2 cents. I have not seen RPD yet, but one of the better examples of a VTK pipeline editor is the VISSION system[1] by Alex Telea[2]. It blows most other network editors out of the water, as wrapping VTK represents only a single case study for VISSION. The system has been used to wrap other large C++ toolkits as well. Alex solved the introspection issue in an entirely generic (and therefore universally applicable) fashion by making use of a C++ interpreter and Alex's metaclass concept. The only disadvantage of VISSION is that it's not publically available. :) However, the way in which the C++ introspection problem was solved is available and has been proven to work exceedingly well. Personally, I would just do it via Python a la vtkPipeline (by Prabhu, based on work by Paul for Tcl), but then that's me. :) [1] http://www.win.tue.nl/~alext/ALEX/PAPERS/papers.html (search for keyword VISSION, there are at least 4 articles) [2] http://www.win.tue.nl/~alext/ Best regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From gtg066j at mail.gatech.edu Sun Jun 22 18:11:26 2003 From: gtg066j at mail.gatech.edu (Vidhya Narayanan) Date: Sun, 22 Jun 2003 18:11:26 -0400 Subject: [vtkusers] polydata In-Reply-To: <20030621164602.14038.23646.Mailman@public.kitware.com> References: <20030621164602.14038.23646.Mailman@public.kitware.com> Message-ID: <1056319886.3ef6298e2fe48@webmail.mail.gatech.edu> Hi all, I have a very basic question. I need to display a set of points and the points along their normals. I want top implement this in a loop. Since I have to render the actors( each point actor) one at a time do I have to reset the polydata every time I display a point? Suggestions appreciated.Thanks regards Vidhya From a.maclean at cas.edu.au Sun Jun 22 19:53:32 2003 From: a.maclean at cas.edu.au (Andrew J. P. Maclean) Date: Mon, 23 Jun 2003 09:53:32 +1000 Subject: [vtkusers] Surface - Volume intersection In-Reply-To: <1AADA4F9-A286-11D7-A6D4-000A9575B2AC@lorax.ca> Message-ID: <00b401c33919$7cecdf90$930711ac@acfr.usyd.edu.au> As a first try, I would be inclined to create a new surface/volume by probing one surface with the other using vtkCellLocator (try IntersectWithLine() ) and keeping the sets of cells in both objects where an intersection exists. This should correspond to the intersection of the two surfaces. ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney? 2006? NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.cas.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin at www.vtk.org [mailto:vtkusers-admin at www.vtk.org] On Behalf Of Donald S Dunbar Sent: Friday, 20 June 2003 04:45 To: vtkusers at public.kitware.com Subject: Re: [vtkusers] Surface - Volume intersection Okay, no bites on this one. Can I at least get some indication from someone about whether this is within the realm of possible VTK tricks? Are there any classes for extracting the intersection between volumes and surfaces? Many thanks, D. Dunbar On Monday, June 16, 2003, at 04:58 PM, Donald S Dunbar wrote: > I have an irregular surface in 3D (an open pit mine) and a volume that > intersects this surface (an ore body). I would like to calculate the > area of the surface corresponding to the intersection. The volume is > also irregular, hence the intersection may consist of multiple patches > of the surface. Can this be done using VTK? How? > > Thanks, > > Donald S. Dunbar, Ph.D. > Senior Physical Oceanographer > Lorax Environmental Consultants Ltd. > 1108 Mainland Street > Vancouver, BC V6B 5L1 > > Ph: 604-688-7173 > Fx: 604-688-7175 > > _______________________________________________ > 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 > From a.maclean at cas.edu.au Sun Jun 22 19:59:14 2003 From: a.maclean at cas.edu.au (Andrew J. P. Maclean) Date: Mon, 23 Jun 2003 09:59:14 +1000 Subject: [vtkusers] Window Flickers. In-Reply-To: <000801c336e9$717ea170$220a010a@telxsi.com> Message-ID: <00b501c3391a$49139960$930711ac@acfr.usyd.edu.au> In the message handler for the WM_ERASEBKGND message, just return TRUE instead of calling the message handler of the class your view is inheriting from. See the MFC example code in the examples directory of vtk. Andrew ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney? 2006? NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.cas.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of Amit Tikekar Sent: Friday, 20 June 2003 15:05 To: vtkusers at www.vtk.org Subject: [vtkusers] Window Flickers. Sensitivity: Private Hi, I have an image processing application. I read the image data & then pass it to vtkImageViewer. This image is displayed in a child window through MFC. When I resize(stretch or shrink via mouse) the window the whole view area flickers. I checked whether the double buffering mode is ON & by default it is. I tried the same process on other imaging applications & there the flicker is absent. What am I missing ? Or is this all VTK can offer me ? Looking forward to your help. Regards Amit From jeando.barnichon at free.fr Mon Jun 23 03:14:36 2003 From: jeando.barnichon at free.fr (Jean-Dominique Barnichon) Date: Mon, 23 Jun 2003 09:14:36 +0200 Subject: [vtkusers] RE: Window Flickers Message-ID: Hi Amit, Under MFC, you must modify the OnEraseBkgnd() method in order to avoid flickering on resize. You turn off Windows from clearing the background, which is simply done by editing the OnEraseBkgnd() member function of your view class and by returning true from this function. Cheers, Jean-Do BOOL CYourView::OnEraseBkgnd(CDC* pDC) { // TODO: Add your message handler code here and/or call default //comment out the original call //return CView::OnEraseBkgnd(pDC); //Tell Windows not to erase the background return TRUE; } From vermaas at astron.nl Mon Jun 23 04:01:46 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Mon, 23 Jun 2003 10:01:46 +0200 Subject: [vtkusers] vtkTIFFReader.h and vtkBMPReader.h Message-ID: Do these include files no long exist or is there something wrong with my installation? Nico From amitt at tataelxsi.co.in Mon Jun 23 04:51:16 2003 From: amitt at tataelxsi.co.in (Amit Tikekar) Date: Mon, 23 Jun 2003 14:21:16 +0530 Subject: [vtkusers] Options for VTK. In-Reply-To: <20030621114153.22794.64519.Mailman@public.kitware.com> Message-ID: <000901c33964$9c56c170$220a010a@telxsi.com> Hi, In addition to VTK, is there any other free library on the net that meets the following requirements: 1) No pipeline architecture. 2) Portable. 3) Abstracted on Open GL. 4) C/C++ implementation. 5) Tested & reliable. In case if you have an idea please reply. Regards Amit -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of vtkusers-request at vtk.org Sent: Saturday, June 21, 2003 5:12 PM To: vtkusers at vtk.org Subject: vtkusers digest, Vol 1 #1901 - 7 msgs Send vtkusers mailing list submissions to vtkusers at vtk.org To subscribe or unsubscribe via the World Wide Web, visit http://www.vtk.org/mailman/listinfo/vtkusers or, via email, send a message with subject or body 'help' to vtkusers-request at vtk.org You can reach the person managing the list at vtkusers-admin at vtk.org When replying, please edit your Subject line so it is more specific than "Re: Contents of vtkusers digest..." Today's Topics: 1. RE: Window Flickers. (R K Shyamprakash) 2. Re: Window Flickers. (Jeff Lee) 3. DeepCopy() (Amit Tikekar) 4. STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' (Paul McGuinness) 5. Re: STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' (Mathieu Malaterre) 6. rendering isosurface and crashing (dsjen at cs.unc.edu) 7. interacting with vtkPanel (java/vtk) (Romain Ollivier) --__--__-- Message: 1 From: "R K Shyamprakash" To: , Subject: RE: [vtkusers] Window Flickers. Date: Fri, 20 Jun 2003 17:54:51 +0530 Hi, Even I had a similar problemsometime back when I myself built the VTK 4.2 release. When I clicked on the 3d object it used to flicker, it's front face used toget chopped off(similar effect as that we get when we set FrontFaceCullingOn()) and sometime the object used to show a mixed solid and wireframe representaion. Then I used the binary from VTK and the problem was gone, but till date I am not suer what exactly was the problem. Can anybody please analyze this? Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Amit Tikekar Sent: Friday, June 20, 2003 10:35 AM To: vtkusers at www.vtk.org Subject: [vtkusers] Window Flickers. Sensitivity: Private Hi, I have an image processing application. I read the image data & then pass it to vtkImageViewer. This image is displayed in a child window through MFC. When I resize(stretch or shrink via mouse) the window the whole view area flickers. I checked whether the double buffering mode is ON & by default it is. I tried the same process on other imaging applications & there the flicker is absent. What am I missing ? Or is this all VTK can offer me ? Looking forward to your help. Regards Amit _______________________________________________ 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 --__--__-- Message: 2 Date: Fri, 20 Jun 2003 08:23:32 -0400 From: Jeff Lee Organization: Computational Dynamics North America To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Window Flickers. R K Shyamprakash wrote: >Hi, > Even I had a similar problemsometime back when I myself built the VTK >4.2 release. When I clicked on the 3d object it used to flicker, it's front >face used toget chopped off(similar effect as that we get when we set >FrontFaceCullingOn()) and sometime the object used to show a mixed solid and >wireframe representaion. Then I used the binary from VTK and the problem was >gone, but till date I am not suer what exactly was the problem. Can anybody >please analyze this? > did you have a vtkTextMapper in your renderer at the time? when you clicked, did you also perform a pick? -Jeff > >Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Amit Tikekar >Sent: Friday, June 20, 2003 10:35 AM >To: vtkusers at www.vtk.org >Subject: [vtkusers] Window Flickers. >Sensitivity: Private > > >Hi, > >I have an image processing application. I read the image data & then pass it >to vtkImageViewer. This image is displayed in a child window through MFC. >When I resize(stretch or shrink via mouse) the window the whole view area >flickers. I checked whether the double buffering mode is ON & by default it >is. I tried the same process on other imaging applications & there the >flicker is absent. > >What am I missing ? Or is this all VTK can offer me ? > >Looking forward to your help. > >Regards >Amit > >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer Computational Dynamics North America Ltd 21 Lafayette Street, Suite 230 Lebanon NH 03766 USA fax: 603 643 9994 phone: 603 643 9993 x109 http://www.cd-adapco.com --__--__-- Message: 3 Reply-To: From: "Amit Tikekar" To: Date: Fri, 20 Jun 2003 18:10:30 +0530 Subject: [vtkusers] DeepCopy() Hi, In an imaging application, I am trying to modify the image data. Before I finalize my modifications, I test the results on the image through a temporary vtkImageData Source. After I am sure of these modifications, I copy the modified vtkImageData onto the original data, through DeepCopy. My code looks like this: ///////////////////////////////////////////////// ReadData(LPCTSTR lpszPathName) { m_pTIFFReader->SetFileName(lpszPathName); m_pTIFFReader->GetOutput()->Update(); //Create a copy of data that shall be the source for image rendering in the pipeline. m_pVtkImageData->DeepCopy(m_pTIFFReader->GetOutput()); //Create a duplicate buffer that will hold temporary modifications m_pVtkTempImageData = vtkImageData::New(); } //Routine Renders to screen via vtkImageViewer tied to a child window. OnDraw() { if ( bDrawTempData) m_pImageViewer->SetInput(m_pVtkTempImageData); else m_pImageViewer->SetInput(m_pVtkImageData); m_pImageViewer->Render(); } //Routine modifies permanent data after modifications are finalised. ModifyPermanentData() { m_pVtkImageData->DeepCopy(m_pVtkTempImageData); bDrawTempData = FALSE; Invalidate(); } ///////////////////////////////////////////////// I hope you have an idea by now what my intention is. But when I do this, the application crashes in ModifyPermanentData::DeepCopy(). I tried using DeepCopy at all levels, vtkDataArray, vtkUnsignedCharArray etc. I tried to copy the image data explicitly through a routine from one Data array to other, even then there is a crash. Can anybody tell me, how such a situation is taken care of ? Where do I go wrong ? 1) Why is there so much dependency of one object on the other? 2) Is it the case that once the pipeline executes, the vtkImageData object undergoes change in terms of dataarrays & memory allocations ? Please help... Regards Amit --__--__-- Message: 4 Date: Fri, 20 Jun 2003 14:55:00 +0100 (BST) From: Paul McGuinness To: vtkusers at vtk.org Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' Hi VTK Developers I am in a bit of a pickel, I am on Linux using the cmake, then make to compile my simple program containing the following code: #include "vtkSTLReader.h" int main( int argc, char *argv[] ) { vtkSTLReader *sr = vtkSTLReader::New(); sr->SetFileName("y40501.stl"); sr->Delete(); return 0; } And on compilation I get the following error, does anyone know what is wrong? I am using VTK-4.2.2 $ make Building dependencies cmake.check_depends... -- Compiling VTK loaded commands -- Compiling VTK loaded commands - done Building object file STLreadtest.o... Building executable STLreadtest... STLreadtest.o: In function `main': STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' collect2: ld returned 1 exit status make[1]: *** [STLreadtest] Error 1 make: *** [default_target] Error 2 Does anyone know how I can fix this? Many thanks, Paul. --__--__-- Message: 5 Date: Fri, 20 Jun 2003 16:24:41 +0200 From: Mathieu Malaterre To: Paul McGuinness Cc: vtkusers at vtk.org Subject: Re: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' Paul, Could you please turn CMAKE_VERBOSE_MAKEFILE to ON (either through the cmake interface or by modifying CMakeCache.txt : CMAKE_VERBOSE_MAKEFILE:BOOL=ON Then rerun cmake && make and please send us the g++ compilation line Thanks, mathieu Paul McGuinness wrote: > Hi VTK Developers > > I am in a bit of a pickel, I am on Linux using the cmake, then make to > compile my simple program containing the following code: > > #include "vtkSTLReader.h" > > int main( int argc, char *argv[] ) > { > vtkSTLReader *sr = vtkSTLReader::New(); > sr->SetFileName("y40501.stl"); > > sr->Delete(); > return 0; > } > > And on compilation I get the following error, does anyone know what is > wrong? I am using VTK-4.2.2 > > > $ make > Building dependencies cmake.check_depends... > -- Compiling VTK loaded commands > -- Compiling VTK loaded commands - done > Building object file STLreadtest.o... > Building executable STLreadtest... > STLreadtest.o: In function `main': > STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' > collect2: ld returned 1 exit status > make[1]: *** [STLreadtest] Error 1 > make: *** [default_target] Error 2 > > Does anyone know how I can fix this? > > Many 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 > -- Mathieu Malaterre CREATIS 28 Avenue du Doyen LEPINE B.P. Lyon-Montchat 69394 Lyon Cedex 03 http://www.creatis.insa-lyon.fr/~malaterre/ --__--__-- Message: 6 From: To: vtkusers at vtk.org Date: Fri, 20 Jun 2003 11:15:21 -0400 Subject: [vtkusers] rendering isosurface and crashing Hi VTK Users, I'm developing an application using vtk4.0, through Java, on WindowsXP. I've run into a problem when trying to render an isosurface. I have a stack of 800x800-pixel images that form a volume. When viewing a subset of the stack, I'm able to render the isosurface and manipulate it, although it does take a quite a bit of time to render. However, when I attempt to render the entire stack, my application thinks for a very long time before my application crashes and Java generates an hs_err_pid####.txt file. I've included the contents of the text file below. My guess is that I'm running out of memory, but I just wanted to check to see if anyone else has encountered a similar problem or has any suggestion. Thanks, Dennis ----- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x69263FF5 Function=atiPS+0x381F5 Library=C:\WINDOWS\System32\atioglxx.dll Current Java thread: at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent_2 (Native Method) at vtk.vtkGenericRenderWindowInteractor.MouseMoveEvent (vtkGenericRenderWindowInteractor.java:20) at vtk.vtkCanvas.mouseDragged(vtkCanvas.java:220) at java.awt.Component.processMouseMotionEvent (Component.java:5070) at java.awt.Component.processEvent(Component.java:4823) at java.awt.Component.dispatchEventImpl(Component.java:3527) at java.awt.Component.dispatchEvent(Component.java:3368) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:130) at java.awt.EventDispatchThread.run (EventDispatchThread.java:98) Dynamic libraries: 0x00400000 - 0x00406000 C:\Program Files\Java\j2re1.4.0_04 \bin\javaw.exe 0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll 0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll 0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll 0x78000000 - 0x7807F000 C:\WINDOWS\system32\RPCRT4.dll 0x77D40000 - 0x77DC6000 C:\WINDOWS\system32\USER32.dll 0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll 0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll 0x6D330000 - 0x6D445000 C:\Program Files\Java\j2re1.4.0_04 \bin\client\jvm.dll 0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll 0x6D1D0000 - 0x6D1D7000 C:\Program Files\Java\j2re1.4.0_04 \bin\hpi.dll 0x6D300000 - 0x6D30E000 C:\Program Files\Java\j2re1.4.0_04 \bin\verify.dll 0x6D210000 - 0x6D228000 C:\Program Files\Java\j2re1.4.0_04 \bin\java.dll 0x6D320000 - 0x6D32D000 C:\Program Files\Java\j2re1.4.0_04 \bin\zip.dll 0x6D000000 - 0x6D0F6000 C:\Program Files\Java\j2re1.4.0_04 \bin\awt.dll 0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV 0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll 0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll 0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll 0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll 0x6D180000 - 0x6D1D0000 C:\Program Files\Java\j2re1.4.0_04 \bin\fontmanager.dll 0x69000000 - 0x6950B000 C:\WINDOWS\System32\atioglxx.dll 0x10000000 - 0x1010F000 C:\Program Files\vtk40 \bin\vtkCommonJava.dll 0x0AF30000 - 0x0B2C0000 C:\PROGRA~1\vtk40\bin\vtkCommon.dll 0x102A0000 - 0x102B7000 C:\PROGRA~1\vtk40\bin\MSVCIRTD.dll 0x10200000 - 0x1026C000 C:\PROGRA~1\vtk40\bin\MSVCRTD.dll 0x0B2C0000 - 0x0B39E000 C:\PROGRA~1\vtk40\bin\libmmd.dll 0x0B3B0000 - 0x0B3F3000 C:\Program Files\vtk40 \bin\vtkFilteringJava.dll 0x0B400000 - 0x0B4B6000 C:\PROGRA~1\vtk40\bin\vtkFiltering.dll 0x0B4C0000 - 0x0B535000 C:\Program Files\vtk40 \bin\vtkIOJava.dll 0x0B540000 - 0x0B8D9000 C:\PROGRA~1\vtk40\bin\vtkIO.dll 0x0B8E0000 - 0x0B919000 C:\PROGRA~1\vtk40\bin\vtkpng.dll 0x0B920000 - 0x0B93F000 C:\PROGRA~1\vtk40\bin\vtkzlib.dll 0x0B940000 - 0x0B97E000 C:\PROGRA~1\vtk40\bin\vtkjpeg.dll 0x0B980000 - 0x0B9F2000 C:\PROGRA~1\vtk40\bin\vtktiff.dll 0x0BA00000 - 0x0BA35000 C:\PROGRA~1\vtk40\bin\vtkexpat.dll 0x0BA40000 - 0x0BACA000 C:\Program Files\vtk40 \bin\vtkImagingJava.dll 0x0BAD0000 - 0x0BEF7000 C:\PROGRA~1\vtk40\bin\vtkImaging.dll 0x0BF00000 - 0x0BFFF000 C:\Program Files\vtk40 \bin\vtkGraphicsJava.dll 0x0C000000 - 0x0C454000 C:\PROGRA~1\vtk40\bin\vtkGraphics.dll 0x0C560000 - 0x0C626000 C:\Program Files\vtk40 \bin\vtkRenderingJava.dll 0x0C630000 - 0x0CB16000 C:\PROGRA~1\vtk40\bin\vtkRendering.dll 0x5ED00000 - 0x5EDC6000 C:\WINDOWS\System32\OPENGL32.dll 0x68B20000 - 0x68B3E000 C:\WINDOWS\System32\GLU32.dll 0x51000000 - 0x51047000 C:\WINDOWS\System32\DDRAW.dll 0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll 0x0CB20000 - 0x0CB38000 C:\PROGRA~1\vtk40\bin\vtkftgl.dll 0x0CB40000 - 0x0CBBD000 C:\PROGRA~1\vtk40\bin\vtkfreetype.dll 0x6D230000 - 0x6D235000 C:\Program Files\Java\j2re1.4.0_04 \bin\jawt.dll 0x0CBC0000 - 0x0CC31000 C:\Program Files\vtk40 \bin\vtkHybridJava.dll 0x0CC40000 - 0x0CE6D000 C:\PROGRA~1\vtk40\bin\vtkHybrid.dll 0x605D0000 - 0x605D8000 C:\WINDOWS\System32\mslbui.dll 0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.DLL 0x773D0000 - 0x77BC2000 C:\WINDOWS\system32\shell32.dll 0x70A70000 - 0x70AD4000 C:\WINDOWS\system32\SHLWAPI.dll 0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll 0x77340000 - 0x773CB000 C:\WINDOWS\system32\comctl32.dll 0x71C20000 - 0x71C6E000 C:\WINDOWS\System32\netapi32.dll 0x76670000 - 0x76757000 C:\WINDOWS\System32\SETUPAPI.dll 0x71B20000 - 0x71B31000 C:\WINDOWS\system32\MPR.dll 0x75F60000 - 0x75F66000 C:\WINDOWS\System32\drprov.dll 0x71C10000 - 0x71C1D000 C:\WINDOWS\System32\ntlanman.dll 0x71CD0000 - 0x71CE6000 C:\WINDOWS\System32\NETUI0.dll 0x71C90000 - 0x71CCC000 C:\WINDOWS\System32\NETUI1.dll 0x71C80000 - 0x71C86000 C:\WINDOWS\System32\NETRAP.dll 0x71BF0000 - 0x71C01000 C:\WINDOWS\System32\SAMLIB.dll 0x75F70000 - 0x75F79000 C:\WINDOWS\System32\davclnt.dll 0x75F40000 - 0x75F5F000 C:\WINDOWS\system32\appHelp.dll 0x76FD0000 - 0x77048000 C:\WINDOWS\System32\CLBCATQ.DLL 0x77050000 - 0x77115000 C:\WINDOWS\System32\COMRes.dll 0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll 0x76620000 - 0x7666E000 C:\WINDOWS\System32\cscui.dll 0x76600000 - 0x7661B000 C:\WINDOWS\System32\CSCDLL.dll 0x76990000 - 0x769B4000 C:\WINDOWS\System32\ntshrui.dll 0x76B20000 - 0x76B35000 C:\WINDOWS\System32\ATL.DLL 0x75A70000 - 0x75B15000 C:\WINDOWS\system32\USERENV.dll 0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll 0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll 0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL Local Time = Fri Jun 20 10:50:43 2003 Elapsed Time = 722 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0_04-b04 mixed mode) # --__--__-- Message: 7 Date: Fri, 20 Jun 2003 17:40:27 +0200 From: Romain Ollivier Organization: INRIA Sophia Antipolis To: vtkusers at vtk.org Subject: [vtkusers] interacting with vtkPanel (java/vtk) Hi, I sent a previous post to ask for help about manipulating and render a vtkPanel with a widget. Has someone an example of an interaction between a vtkPanel and a widget (JButton, JSlider...) in the same JFrame ? My problem was the call of the vtkPanel method Render() in my event handling method. Thanks, Romain --__--__-- _______________________________________________ vtkusers mailing list vtkusers at vtk.org http://www.vtk.org/mailman/listinfo/vtkusers End of vtkusers Digest From Johnson.Abraham at uwe.ac.uk Mon Jun 23 06:19:19 2003 From: Johnson.Abraham at uwe.ac.uk (Abraham, Johnson) Date: Mon, 23 Jun 2003 11:19:19 +0100 (GMT Daylight Time) Subject: [vtkusers] vtk instalation help Message-ID: Hi, I have a problem installing vtk 4.2 release in windows I want to use C++ library in vtk 4.2 aong with my C++ code. I use Borland builder to develop my code. Is it possible for me to achieve the above task. Can anyone give me a step by step procedure to install vtk and use in by Borland builder 6.0. Please.. I tried out using CMake on the example code (hello.cxx) given along with CMake and i was able to create the exe file hellodemo.exe but when i click on command prompt flash on the screen that it And i even tried to inherit the class hello declared in hello.h and hello.cxx and was unsuccessfull Please do help with the complete installation procedure and how to call vtk c++ library into my code thank you Johnson Abraham ---------------------------------------- Abraham, Johnson Email: Johnson.Abraham at uwe.ac.uk "University of the West of England" From senet at v2t.de Mon Jun 23 07:08:20 2003 From: senet at v2t.de (Christian M. Senet (V2T)) Date: Mon, 23 Jun 2003 13:08:20 +0200 Subject: [vtkusers] y-axis in a 2D plot: labeling problems Message-ID: Hi! I have tried to add a x- and a y-axis to a two-dimensional image. For this purpose I have used vtkAxisActor2D. This works fine, except of the labelling: text label for the y-axis is horizontally aligned. Until now I found no possibility to rotate the label text parallely to the y-axis Alternatively I have tried vtkVectorText: vtkVectorText *atext = vtkVectorText::New(); atext->SetText("TEST"); vtkTransform *aTextTransform = vtkTransform ::New(); aTextTransform->Identity(); aTextTransform->RotateZ(90); aTextTransform->Scale(0.05,0.05,0.05); aTextTransform->Translate(-5,-5,0); float scale[3]; aTextTransform->GetScale(scale); std::cout << "scale = " << scale[0] << ", " << scale[1] << "," << scale[2] << std::endl; float pos[3]; aTextTransform->GetPosition(pos); std::cout << "pos = " << pos[0] << ", " << pos[1] << "," << pos[2] << std::endl; vtkTransformPolyDataFilter *textTransform = vtkTransformPolyDataFilter::New(); textTransform->SetTransform(aTextTransform); textTransform->SetInput(atext->GetOutput()); vtkPolyDataMapper *textMapper = vtkPolyDataMapper::New(); textMapper->SetInput(textTransform->GetOutput()); textMapper->Update(); vtkActor *textActor = vtkActor::New(); textActor->SetMapper(textMapper); viewer->GetRenderer()->AddActor(textActor); Rotation was sucessful, but I was not able to change - size - position of the text. Is there a nice solution for 2D axis labeling using vtkAxisActor2D or vtkVectorText? I would be thankful for a hint. Best regards, Christian From mcguinpg at maths.tcd.ie Mon Jun 23 08:28:48 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Mon, 23 Jun 2003 13:28:48 +0100 (BST) Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' In-Reply-To: <3EF31929.6050203@creatis.insa-lyon.fr> Message-ID: Mathieu, All done and done and my compilation line is now: $ make echo "Building dependencies. cmake.depends..." Building dependencies. cmake.depends... /usr/local/bin/cmake -S/home/cs/pmcguinn/visual/Lab1 -O/home/cs/pmcguinn/visual/Lab1 -H/home/cs/pmcguinn/visual/Lab1 -B/home/cs/pmcguinn/visual/Lab1 -- Compiling VTK loaded commands -- Compiling VTK loaded commands - done make cmake.depends make[1]: Entering directory `/home/cs/pmcguinn/visual/Lab1' make[1]: `cmake.depends' is up to date. make[1]: Leaving directory `/home/cs/pmcguinn/visual/Lab1' make cmake.check_depends make[1]: Entering directory `/home/cs/pmcguinn/visual/Lab1' make[1]: `cmake.check_depends' is up to date. make[1]: Leaving directory `/home/cs/pmcguinn/visual/Lab1' make -f cmake.check_depends make[1]: Entering directory `/home/cs/pmcguinn/visual/Lab1' make[1]: Leaving directory `/home/cs/pmcguinn/visual/Lab1' make all make[1]: Entering directory `/home/cs/pmcguinn/visual/Lab1' echo "Building object file stlreadtest.o..." Building object file stlreadtest.o... c++ -o stlreadtest.o -I/usr/X11R6/include -I/home/cs/pmcguinn/visual/Lab1 -I/usr/local/include/vtk -c /home/cs/pmcguinn/visual/Lab1/stlreadtest.cxx echo "Building executable stlreadtest..." Building executable stlreadtest... c++ -I/usr/X11R6/include -fPIC stlreadtest.o -o stlreadtest -rdynamic -L/usr/local/lib/vtk -L/usr/X11R6/lib -lvtkRendering -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -lpthread -ldl -lm -lSM -lICE -lSM -lICE -lX11 -lXext -lX11 -lXext -lvtkftgl -lGLU -lGL -lvtkfreetype -lXt -lSM -lICE -lX11 -lXext -Wl,-rpath,/usr/local/lib/vtk:/usr/X11R6/lib stlreadtest.o: In function `main': stlreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' collect2: ld returned 1 exit status make[1]: *** [stlreadtest] Error 1 make[1]: Leaving directory `/home/cs/pmcguinn/visual/Lab1' make: *** [default_target] Error 2 I have just noticed that this problem is not just localised to vtkSTLReader, but to all vtk*Reader! Paul. On Fri, 20 Jun 2003, Mathieu Malaterre wrote: > Paul, > Could you please turn CMAKE_VERBOSE_MAKEFILE to ON (either through the > cmake interface or by modifying CMakeCache.txt : > > CMAKE_VERBOSE_MAKEFILE:BOOL=ON > > Then rerun cmake && make and please send us the g++ compilation line > > Thanks, > mathieu > > Paul McGuinness wrote: > > Hi VTK Developers > > > > I am in a bit of a pickel, I am on Linux using the cmake, then make to > > compile my simple program containing the following code: > > > > #include "vtkSTLReader.h" > > > > int main( int argc, char *argv[] ) > > { > > vtkSTLReader *sr = vtkSTLReader::New(); > > sr->SetFileName("y40501.stl"); > > > > sr->Delete(); > > return 0; > > } > > > > And on compilation I get the following error, does anyone know what is > > wrong? I am using VTK-4.2.2 > > > > > > $ make > > Building dependencies cmake.check_depends... > > -- Compiling VTK loaded commands > > -- Compiling VTK loaded commands - done > > Building object file STLreadtest.o... > > Building executable STLreadtest... > > STLreadtest.o: In function `main': > > STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' > > collect2: ld returned 1 exit status > > make[1]: *** [STLreadtest] Error 1 > > make: *** [default_target] Error 2 > > > > Does anyone know how I can fix this? > > > > Many 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 > > > > > -- > Mathieu Malaterre > CREATIS > 28 Avenue du Doyen LEPINE > B.P. Lyon-Montchat > 69394 Lyon Cedex 03 > http://www.creatis.insa-lyon.fr/~malaterre/ > > From ddg4 at cmeri.res.in Fri Jun 20 02:36:37 2003 From: ddg4 at cmeri.res.in (ddg4) Date: Fri, 20 Jun 2003 12:06:37 +0530 Subject: [vtkusers] Error in compilation of VTK4.2 Message-ID: <3EF2AB75.C6D0C1C7@cmeri.res.in> VTK4.2 has been downloaded from your internet site and it has been istalled in Windows 98 platform. On executing CMake Setup and defining location of source code and build binaries , Error is found on configuring in CMake. CMake Error : Source: C:/Program Files/VTK42/CMakeList.txt does not match source need to generate Cache: C:/Program Files/VTK42/CMakeList.txt Rerun CMake with a different source directory. Please help us ddg4 at cmeri.res.in From billlist at nycap.rr.com Mon Jun 23 08:43:47 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 23 Jun 2003 08:43:47 -0400 Subject: [vtkusers] Error in compilation of VTK4.2 In-Reply-To: <3EF2AB75.C6D0C1C7@cmeri.res.in> Message-ID: <5.2.0.9.0.20030623083901.015c9330@pop.nycap.rr.com> This error occurs when CMake is given a directory that does not contain a CMakeLists.txt file. You need the full source for VTK. It looks like you are trying to run CMake on the binary installation of VTK which will not work. -Bill At 02:36 AM 6/20/2003, ddg4 wrote: >VTK4.2 has been downloaded from your internet site and it has been >istalled in Windows 98 platform. On executing CMake Setup and defining >location of source code and build binaries , Error is found on >configuring in CMake. > >CMake Error : Source: C:/Program Files/VTK42/CMakeList.txt does not >match source need to generate Cache: C:/Program >Files/VTK42/CMakeList.txt > >Rerun CMake with a different source directory. > >Please help us > >ddg4 at cmeri.res.in > > > >_______________________________________________ >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 Mon Jun 23 08:59:52 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Mon, 23 Jun 2003 18:29:52 +0530 Subject: [vtkusers] Window Flickers. In-Reply-To: <3EF2FCC4.5080504@cdnorthamerica.com> Message-ID: <005e01c33987$56a97460$de0ba8c0@qtwblr01.questglobal.com> Jeff, I do perform a pick upon mouseClick. but it works fine if I use standard binary download from VTK site. the problem exists only with my VTK build. Do I need to make any changes in the code before building? Thanks Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Jeff Lee Sent: Friday, June 20, 2003 5:54 PM To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Window Flickers. R K Shyamprakash wrote: >Hi, > Even I had a similar problemsometime back when I myself built the VTK >4.2 release. When I clicked on the 3d object it used to flicker, it's front >face used toget chopped off(similar effect as that we get when we set >FrontFaceCullingOn()) and sometime the object used to show a mixed solid and >wireframe representaion. Then I used the binary from VTK and the problem was >gone, but till date I am not suer what exactly was the problem. Can anybody >please analyze this? > did you have a vtkTextMapper in your renderer at the time? when you clicked, did you also perform a pick? -Jeff > >Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Amit Tikekar >Sent: Friday, June 20, 2003 10:35 AM >To: vtkusers at www.vtk.org >Subject: [vtkusers] Window Flickers. >Sensitivity: Private > > >Hi, > >I have an image processing application. I read the image data & then pass it >to vtkImageViewer. This image is displayed in a child window through MFC. >When I resize(stretch or shrink via mouse) the window the whole view area >flickers. I checked whether the double buffering mode is ON & by default it >is. I tried the same process on other imaging applications & there the >flicker is absent. > >What am I missing ? Or is this all VTK can offer me ? > >Looking forward to your help. > >Regards >Amit > >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer Computational Dynamics North America Ltd 21 Lafayette Street, Suite 230 Lebanon NH 03766 USA fax: 603 643 9994 phone: 603 643 9993 x109 http://www.cd-adapco.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 mcguinpg at maths.tcd.ie Mon Jun 23 10:06:58 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Mon, 23 Jun 2003 15:06:58 +0100 (BST) Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' In-Reply-To: Message-ID: I get the same problem using vtkDataSetReader, is anyone having the same problem? Paul On Fri, 20 Jun 2003, Paul McGuinness wrote: > > Hi VTK Developers > > I am in a bit of a pickel, I am on Linux using the cmake, then make to > compile my simple program containing the following code: > > #include "vtkSTLReader.h" > > int main( int argc, char *argv[] ) > { > vtkSTLReader *sr = vtkSTLReader::New(); > sr->SetFileName("y40501.stl"); > > sr->Delete(); > return 0; > } > > And on compilation I get the following error, does anyone know what is > wrong? I am using VTK-4.2.2 > > > $ make > Building dependencies cmake.check_depends... > -- Compiling VTK loaded commands > -- Compiling VTK loaded commands - done > Building object file STLreadtest.o... > Building executable STLreadtest... > STLreadtest.o: In function `main': > STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' > collect2: ld returned 1 exit status > make[1]: *** [STLreadtest] Error 1 > make: *** [default_target] Error 2 > > Does anyone know how I can fix this? > > Many 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 adam.chandler at kcl.ac.uk Mon Jun 23 10:17:55 2003 From: adam.chandler at kcl.ac.uk (Adam G Chandler) Date: Mon, 23 Jun 2003 15:17:55 +0100 Subject: [vtkusers] colour jpg image with vtkJPEGwriter In-Reply-To: Message-ID: <200306231417.h5NEHuJT029072@angelo.kcl.ac.uk> Hi all. I have written a program which reads in a matrix of numbers, fills a vtkImageData object with the values from the matrix, and then writes this object out as a jpg with vtkJPEGWriter. At presnt the jpg image that i get out is only in a black and white scale. Is there some way that i can apply a colour lookup table to the jpg image, so that the scale is between red (for high values) and blue(for low values) for example? Thanks in advance Adam Adam G Chandler mailto:adam.chandler at kcl.ac.uk From ramakrishna.prakash at quest-global.com Mon Jun 23 10:49:22 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Mon, 23 Jun 2003 20:19:22 +0530 Subject: [vtkusers] Building VTK in HP UX Message-ID: <006001c33996$a318e060$de0ba8c0@qtwblr01.questglobal.com> Hi All, This is more of a CMake question.I am trying to build VTK in HP UX. By default Cmake takes cc compiler, but I have only gcc compiler. Now how do I change the compilter in Cmake script. Thanks Shyam From billlist at nycap.rr.com Mon Jun 23 10:50:30 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 23 Jun 2003 10:50:30 -0400 Subject: [vtkusers] Building VTK in HP UX In-Reply-To: <006001c33996$a318e060$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <5.2.0.9.0.20030623104938.023e3fb8@pop.nycap.rr.com> setenv CXX c++ setenv CC gcc ccmake ../VTK or ccmake ../VTK change CMAKE_CXX_COMPILER and CMAKE_C_COMPILER in the cache. -Bill At 10:49 AM 6/23/2003, R K Shyamprakash wrote: >Hi All, > This is more of a CMake question.I am trying to build VTK in HP >UX. By default Cmake takes cc compiler, but I have only gcc compiler. Now >how do I change the compilter in Cmake script. > >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 asiram00 at hotmail.com Mon Jun 23 10:53:02 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Mon, 23 Jun 2003 14:53:02 +0000 Subject: [vtkusers] HELP!!! Too many Actors!! Message-ID: Hi vtkUsers, I have an application that produces several contours, but the number of contours created is never the same. Now I want to show this contours in a VTk window. The problem is, as the contours are never in the same number, the number of actors needed to be added to the window is never the same. Does anybody knows a way to create actors in the same number as the number of contours??? That is, if I have 10 contours I will need 10 actors !!! Does anybody knows another way to do this, without having to add so many actores??? Thanks in advance, Marisa _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From Johnson.Abraham at uwe.ac.uk Mon Jun 23 11:03:26 2003 From: Johnson.Abraham at uwe.ac.uk (Abraham, Johnson) Date: Mon, 23 Jun 2003 16:03:26 +0100 (GMT Daylight Time) Subject: [vtkusers] compilation of vtk Message-ID: Hi, Please help I have problem compling VTK binary version in windows to use the vtk library in C++ code. I use Borland Builder to develop my code. thank you Johnson Abraham ---------------------------------------- Abraham, Johnson Email: Johnson.Abraham at uwe.ac.uk "University of the West of England" From malcolm at geovision.co.za Mon Jun 23 11:38:51 2003 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Mon, 23 Jun 2003 17:38:51 +0200 Subject: [vtkusers] HELP!!! Too many Actors!! References: Message-ID: <001701c3399d$a0cf3a50$adf4fea9@bart> Hi Marisa Use several polylines within one polydata - that way you will only need one actor. If you use one of the vtk contour filters this is done for you. HTH Malcolm ----- Original Message ----- From: "marisa aurelio" To: Sent: Monday, June 23, 2003 4:53 PM Subject: [vtkusers] HELP!!! Too many Actors!! > Hi vtkUsers, > > I have an application that produces several contours, but the number of > contours created is never the same. > > Now I want to show this contours in a VTk window. The problem is, as the > contours are never in the same number, the number of actors needed to be > added to the window is never the same. > > Does anybody knows a way to create actors in the same number as the number > of contours??? That is, > if I have 10 contours I will need 10 actors !!! > > Does anybody knows another way to do this, without having to add so many > actores??? > > Thanks in advance, > Marisa > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > 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 karl at elemtech.com Mon Jun 23 11:39:18 2003 From: karl at elemtech.com (Karl G. Merkley) Date: Mon, 23 Jun 2003 09:39:18 -0600 Subject: [vtkusers] Building VTK on DEC 64 bit system Message-ID: <3EF71F26.9060900@elemtech.com> Does anyone have any experience building VTK on 64 bit DEC box using the DEC compiler? The OS is True64 Unix. The compiler is Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910) -- I have yet to see any problem, however complicated, which, when you looked at it in the right way, did not become still more complicated. -- Poul Anderson ________________________________ Karl G. Merkley, Ph.D. karl at elemtech.com / merk at et.byu.edu Elemental Technologies Inc. 357 E. 50 S. American Fork, UT 84003 (801) 756-1972 -------------- next part -------------- An HTML attachment was scrubbed... URL: From asiram00 at hotmail.com Mon Jun 23 12:31:27 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Mon, 23 Jun 2003 16:31:27 +0000 Subject: [vtkusers] HELP!! Rotation!! Message-ID: Hi vtkUsers, I have 2 polydata and I want to rotate one of them. But when I do 'rotateWXYZ(180, 0, 0, 1)' the polydata rotates but does not maintain his center. What I would like to do was rotate the polydata but maintain the center of it, for example in the Y axis. For example, I have several contours in the same position and I want to rotate them, maintain their center, in order to form a ball. How can I do this??? Thanks in advance, Marisa. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From billlist at nycap.rr.com Mon Jun 23 12:51:29 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 23 Jun 2003 12:51:29 -0400 Subject: [vtkusers] Building VTK on DEC 64 bit system In-Reply-To: <3EF71F26.9060900@elemtech.com> Message-ID: <5.2.0.9.0.20030623124955.04dc5ea0@pop.nycap.rr.com> There is a dashboard build done each night: http://www.vtk.org/Testing/Dashboard/20030623-0300-Nightly/Dashboard.html a62.?iue.?tuwien.?ac.?at OSF1-V5.?1-cxx It should work like it does on any other system. You can download cmake binaries from here: http://www.cmake.org/HTML/Download.html -Bill At 11:39 AM 6/23/2003, Karl G. Merkley wrote: >Does anyone have any experience building VTK on 64 bit DEC box using the DEC compiler? > >The OS is True64 Unix. The compiler is Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910) > > > > > > >-- >I have yet to see any problem, however complicated, which, when >you looked at it in the right way, did not become still more complicated. > -- Poul Anderson >________________________________ >Karl G. Merkley, Ph.D. >karl at elemtech.com / merk at et.byu.edu > >Elemental Technologies Inc. >357 E. 50 S. >American Fork, UT 84003 >(801) 756-1972 From billlist at nycap.rr.com Mon Jun 23 13:22:14 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 23 Jun 2003 13:22:14 -0400 Subject: [vtkusers] Building VTK in HP UX In-Reply-To: <006301c339a9$8cf30960$de0ba8c0@qtwblr01.questglobal.com> References: <5.2.0.9.0.20030623104938.023e3fb8@pop.nycap.rr.com> Message-ID: <5.2.0.9.0.20030623132053.04c63b40@pop.nycap.rr.com> You need opengl, give it the directory with gl.h. You may have to use mesa3d (a free software opengl) if you are not using the hp compiler. You should search the web for gcc and hp and opengl. Good luck.. -Bill At 01:04 PM 6/23/2003, you wrote: >Thanks, It workes. But the CMake gave an error saying it can not find >OPENGL_INCLUDE_DIR(ADVANCED). Which library file I should be specifying? > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >William A. Hoffman >Sent: Monday, June 23, 2003 8:21 PM >To: R K Shyamprakash; VTKUserList (E-mail) >Subject: Re: [vtkusers] Building VTK in HP UX > > >setenv CXX c++ >setenv CC gcc >ccmake ../VTK > >or > >ccmake ../VTK >change CMAKE_CXX_COMPILER and >CMAKE_C_COMPILER in the cache. > >-Bill > > >At 10:49 AM 6/23/2003, R K Shyamprakash wrote: >>Hi All, >> This is more of a CMake question.I am trying to build VTK in HP >>UX. By default Cmake takes cc compiler, but I have only gcc compiler. Now >>how do I change the compilter in Cmake script. >> >>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 prabhu at aero.iitm.ernet.in Mon Jun 23 14:17:01 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 23 Jun 2003 23:47:01 +0530 Subject: [vtkusers] colour jpg image with vtkJPEGwriter In-Reply-To: <200306231417.h5NEHuJT029072@angelo.kcl.ac.uk> References: <200306231417.h5NEHuJT029072@angelo.kcl.ac.uk> Message-ID: <16119.17437.914232.160377@monster.linux.in> >>>>> "AGC" == Adam G Chandler writes: AGC> At presnt the jpg image that i get out is only in a black and AGC> white scale. Is there some way that i can apply a colour AGC> lookup table to the jpg image, so that the scale is between AGC> red (for high values) and blue(for low values) for example? Yes, you can. If you have an array of the scalar values then construct an appropriate vtkLookupTable instance and use its MapScalars method to get a scalar array with 4 components of unsigned chars that represent the colors. You can then use this scalar array and associate it with your dataset and generate your image. For a Python example look at imv.py from here: http://av.stanford.edu/~prabhu/software/mayavi.html Specifically, look at the viewi function. cheers, prabhu From clinton at elemtech.com Mon Jun 23 15:10:42 2003 From: clinton at elemtech.com (Clinton Stimpson) Date: Mon, 23 Jun 2003 13:10:42 -0600 Subject: [vtkusers] Building VTK on DEC 64 bit system References: <20030623172301.24424.23017.Mailman@public.kitware.com> Message-ID: <3EF750B2.1020804@elemtech.com> It seems the build done nightly by kitware with platform and compiler is with the ANSI option off. If I try building it using standard iostreams and standard ansi compiler flags, I get compiler errors (compiling vtkXMLParser.cxx is as far as I got). I'd rather use standard c++ on this platform and compiler. How can that be made to happen? I also had to change the cmake source to get it to compile. I just had to add a #include to one of the files. Thanks, Clint --__--__-- Message: 14 Date: Mon, 23 Jun 2003 12:51:29 -0400 To: "Karl G. Merkley" , vtkusers at public.kitware.com From: "William A. Hoffman" Subject: Re: [vtkusers] Building VTK on DEC 64 bit system There is a dashboard build done each night: http://www.vtk.org/Testing/Dashboard/20030623-0300-Nightly/Dashboard.html a62.?iue.?tuwien.?ac.?at OSF1-V5.?1-cxx It should work like it does on any other system. You can download cmake binaries from here: http://www.cmake.org/HTML/Download.html -Bill At 11:39 AM 6/23/2003, Karl G. Merkley wrote: >>Does anyone have any experience building VTK on 64 bit DEC box using the DEC compiler? >> >>The OS is True64 Unix. The compiler is Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910) >> >> >> >> >> >> >>-- >>I have yet to see any problem, however complicated, which, when >>you looked at it in the right way, did not become still more complicated. >> -- Poul Anderson >>________________________________ >>Karl G. Merkley, Ph.D. >>karl at elemtech.com / merk at et.byu.edu >> >>Elemental Technologies Inc. >>357 E. 50 S. >>American Fork, UT 84003 >>(801) 756-1972 > > From billlist at nycap.rr.com Mon Jun 23 16:24:04 2003 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 23 Jun 2003 16:24:04 -0400 Subject: [vtkusers] Building VTK on DEC 64 bit system In-Reply-To: <3EF750B2.1020804@elemtech.com> References: <20030623172301.24424.23017.Mailman@public.kitware.com> Message-ID: <5.2.0.9.0.20030623154006.04dfeb20@pop.nycap.rr.com> CMake also has a dashboard on the DEC and should build. a62.?iue.?tuwien.?ac.?at OSF1-cxx http://www.cmake.org/Testing/Dashboard/20030623-0200-Nightly/Dashboard.html What file did you have to change, and what version of cmake did you build? Also, did the binary not work on your machine? This "could be made to happen", if you were to donate a dashboard build for VTK and ansi flags on OSF. At a minimum, you could post the patches for things to change. -Bill At 03:10 PM 6/23/2003, Clinton Stimpson wrote: >It seems the build done nightly by kitware with platform and compiler is with the ANSI option off. If I try building it using standard iostreams and standard ansi compiler flags, I get compiler errors (compiling vtkXMLParser.cxx is as far as I got). I'd rather use standard c++ on this platform and compiler. How can that be made to happen? I also had to change the cmake source to get it to compile. I just had to add a #include to one of the files. Thanks, Clint --__--__-- Message: 14 Date: Mon, 23 Jun 2003 12:51:29 -0400 To: "Karl G. Merkley" , vtkusers at public.kitware.com From: "William A. Hoffman" Subject: Re: [vtkusers] Building VTK on DEC 64 bit system There is a dashboard build done each night: http://www.vtk.org/Testing/Dashboard/20030623-0300-Nightly/Dashboard.html a62.?iue.?tuwien.?ac.?at OSF1-V5.?1-cxx It should work like it does on any other system. You can download cmake binaries from here: http://www.cmake.org/HT! ML/Dow nload.html -Bill At 11:39 AM 6/23/2003, Karl G. Merkley wrote: > >>>Does anyone have any experience building VTK on 64 bit DEC box using the DEC compiler? >>> >>>The OS is True64 Unix. The compiler is Compaq C++ V6.2-024 for Digital UNIX V5.0 (Rev. 910) >>> >>> >>> >>> >>> >>> >>>-- I have yet to see any problem, however complicated, which, when >>>you looked at it in the right way, did not become still more complicated. >>> -- Poul Anderson >>>________________________________ >>>Karl G. Merkley, Ph.D. >>>karl at elemtech.com / merk at et.byu.edu >>> >>>Elemental Technologies Inc. >>>357 E. 50 S. >>>American Fork, UT 84003 >>>(801) 756-1972 >> > > > > > >_______________________________________________ >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 tschnei1 at nd.edu Mon Jun 23 16:42:06 2003 From: tschnei1 at nd.edu (Todd Schneider) Date: Mon, 23 Jun 2003 15:42:06 -0500 Subject: [vtkusers] Coloring MarchingSquares surfaces Message-ID: <000501c339c7$e935d400$6a304a81@DOORS> I was wondering if anyone has anyone has any idea how to color the area within an isoline generated by marching squares? Thanks, Todd Schneider -------------- next part -------------- An HTML attachment was scrubbed... URL: From ckirbas at cs.wright.edu Mon Jun 23 22:29:51 2003 From: ckirbas at cs.wright.edu (Cemil Kirbas) Date: Mon, 23 Jun 2003 22:29:51 -0400 (EDT) Subject: [vtkusers] VTK on Mac OS X Problem Message-ID: Hi everybody, I installed VTK on Mac OS X (X11 version). When I run sample programs in Examples directory (medical1, medical2, and medical3), there is only a window and nothing else and I can not get the focus on this window. I tried mace example. It shows the window but I can not interact with the program. Mouse does not work and I can not bring the window on top when I click on the bar above the window. Any suggestions? Cemil. From ramakrishna.prakash at quest-global.com Tue Jun 24 02:59:56 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Tue, 24 Jun 2003 12:29:56 +0530 Subject: [vtkusers] Window Flickers. In-Reply-To: <3EF70071.6010106@cdnorthamerica.com> Message-ID: <001201c33a1e$38b6f490$de0ba8c0@qtwblr01.questglobal.com> Jeff, Thanks a million. It worked. Now I am running my application with the libraries I built. I have another gut feeling. Can I attribute the mysterious crashes to the libraries i used from standard download. I had written about it to the mailing lists sometime ago. following is the code protected int determineRegions(vtkPolyData data) { vtkPolyDataConnectivityFilter conFilForRegion = new vtkPolyDataConnectivityFilter(); conFilForRegion.SetInput(data); conFilForRegion.ScalarConnectivityOff(); conFilForRegion.SetExtractionModeToAllRegions(); conFilForRegion.Update(); return conFilForRegion.GetNumberOfExtractedRegions(); } I used to encounter crash(not everytime when I run the code, but very often) in the line conFilForRegion.Update(); It could not have been a thread issue since the input to the filter was not the data which I rendered(I keep a copy of pipeline for processing). So far after building VTK i have not experienced the crash. By the way, do you have any idea on which Windows version the standard download binaries were built? Thanks Shyam -----Original Message----- From: Jeff Lee [mailto:jeff at cdnorthamerica.com] Sent: Monday, June 23, 2003 6:58 PM To: R K Shyamprakash Subject: Re: [vtkusers] Window Flickers. R K Shyamprakash wrote: >Jeff, > I do perform a pick upon mouseClick. but it works fine if I use >standard binary download from VTK site. the problem exists only with my VTK >build. Do I need to make any changes in the code before building? > My problem occurred only when there was also a vtkTextActor in the scene. You could try to remove the glDepthFunc calls in vtkOpenGLFreeTypeTextMapper.cxx and see if that helps. -Jeff > >Thanks >Shyam > >-----Original Message----- >From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >Jeff Lee >Sent: Friday, June 20, 2003 5:54 PM >To: R K Shyamprakash >Cc: vtkusers at vtk.org >Subject: Re: [vtkusers] Window Flickers. > > > > >R K Shyamprakash wrote: > > > >>Hi, >> Even I had a similar problemsometime back when I myself built the VTK >>4.2 release. When I clicked on the 3d object it used to flicker, it's front >>face used toget chopped off(similar effect as that we get when we set >>FrontFaceCullingOn()) and sometime the object used to show a mixed solid >> >> >and > > >>wireframe representaion. Then I used the binary from VTK and the problem >> >> >was > > >>gone, but till date I am not suer what exactly was the problem. Can anybody >>please analyze this? >> >> >> >did you have a vtkTextMapper in your renderer at the time? when you >clicked, did you also perform a pick? >-Jeff > > > >>Shyam >> >>-----Original Message----- >>From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of >>Amit Tikekar >>Sent: Friday, June 20, 2003 10:35 AM >>To: vtkusers at www.vtk.org >>Subject: [vtkusers] Window Flickers. >>Sensitivity: Private >> >> >>Hi, >> >>I have an image processing application. I read the image data & then pass >> >> >it > > >>to vtkImageViewer. This image is displayed in a child window through MFC. >>When I resize(stretch or shrink via mouse) the window the whole view area >>flickers. I checked whether the double buffering mode is ON & by default it >>is. I tried the same process on other imaging applications & there the >>flicker is absent. >> >>What am I missing ? Or is this all VTK can offer me ? >> >>Looking forward to your help. >> >>Regards >>Amit >> >>_______________________________________________ >>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: > >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > > > From Cedric.Le.Maitre at ifremer.fr Tue Jun 24 03:09:04 2003 From: Cedric.Le.Maitre at ifremer.fr (Cedric LE MAITRE) Date: Tue, 24 Jun 2003 09:09:04 +0200 Subject: [vtkusers] HELP!! Rotation!! References: Message-ID: <3EF7F910.172EA44F@ifremer.fr> Hi Marisa, I'm a VTK beginner, but i'll try to answer your question with my OpenGl knowledges. For make your object rotate on itself, you need that its position is at the origin of the transformation matrix. By default, VTK shift the object to the origin and after rotate it. If in your case, it doesn't work like this, you must have done a translation before. Try to do the translation after your rotation. Hope it'll be usefull, Cedric. marisa aurelio a ?crit : > > Hi vtkUsers, > > I have 2 polydata and I want to rotate one of them. But when I do > 'rotateWXYZ(180, 0, 0, 1)' the polydata rotates but does not maintain his > center. > What I would like to do was rotate the polydata but maintain the center of > it, for example in the Y axis. > For example, I have several contours in the same position and I want to > rotate them, maintain their center, in order to form a ball. > > How can I do this??? > > Thanks in advance, > Marisa. > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > 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 tholozano at gmx.de Tue Jun 24 04:25:36 2003 From: tholozano at gmx.de (tholozano at gmx.de) Date: Tue, 24 Jun 2003 10:25:36 +0200 (MEST) Subject: [vtkusers] vtkProbeFilter buggy? Message-ID: <17317.1056443136@www40.gmx.net> Hi to all members! I want to get the sampled color result from the vtkProbeFilter trying: float* result = probefilter->GetOutput()->GetPointData()->GetScalars()->GetTuple(0); But when I want to start my pipeline it always crashes down with an error message. It seems that the line above returns no value... Did anyone of you has a hint? Thanks a lot! Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From jeff at cdnorthamerica.com Tue Jun 24 06:36:42 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 24 Jun 2003 06:36:42 -0400 Subject: [vtkusers] interacting with vtkPanel (java/vtk) In-Reply-To: <3EF32AEB.E63A8907@sophia.inria.fr> References: <3EF32AEB.E63A8907@sophia.inria.fr> Message-ID: <3EF829BA.1030302@cdnorthamerica.com> Romain Ollivier wrote: > Hi, > > I sent a previous post to ask for help about manipulating and render a >vtkPanel with a widget. Has someone an example of an interaction between >a vtkPanel and a widget (JButton, JSlider...) in the same JFrame ? My >problem was the call of the vtkPanel method Render() in my event >handling method. > what were the symptoms? do you have some sample code which exhibits the symptoms? -Jeff > > Thanks, > > Romain >_______________________________________________ >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 Tue Jun 24 06:44:17 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 24 Jun 2003 06:44:17 -0400 Subject: [vtkusers] rendering isosurface and crashing In-Reply-To: <117ada11779f.11779f117ada@cs.unc.edu> References: <117ada11779f.11779f117ada@cs.unc.edu> Message-ID: <3EF82B81.5010008@cdnorthamerica.com> dsjen at cs.unc.edu wrote: >Hi VTK Users, > >I'm developing an application using vtk4.0, through Java, on >WindowsXP. I've run into a problem when trying to render an >isosurface. I have a stack of 800x800-pixel images that form a >volume. When viewing a subset of the stack, I'm able to render the >isosurface and manipulate it, although it does take a quite a bit of >time to render. > >However, when I attempt to render the entire stack, my application >thinks for a very long time before my application crashes and Java >generates an hs_err_pid####.txt file. I've included the contents of >the text file below. My guess is that I'm running out of memory, but >I just wanted to check to see if anyone else has encountered a similar >problem or has any suggestion. > is your use of vtkCanvas has-a or is-a? does it consistently crash in the same place? there were some problems with jdk1.4 and winxp which were fixed with jdk1.4.1_01. do you have some code which causes the crash? -Jeff > >Thanks, >Dennis > > > > From ddg4 at cmeri.res.in Fri Jun 20 19:19:27 2003 From: ddg4 at cmeri.res.in (ddg4) Date: Sat, 21 Jun 2003 04:49:27 +0530 Subject: [vtkusers] Error in compilation of VTK4.2 References: <5.2.0.9.0.20030623083901.015c9330@pop.nycap.rr.com> Message-ID: <3EF3967F.D7A09294@cmeri.res.in> VTK 4.2 source directory does not contain CMakeLists.txt file, however subirectories contain various CMakeLists.txt file. Wherefrom can I get CMakeLists.txt and put in CMake directory. I have downloaded the full source. "William A. Hoffman" wrote: > This error occurs when CMake is given a directory that > does not contain a CMakeLists.txt file. You need > the full source for VTK. It looks like you are trying > to run CMake on the binary installation of VTK which will > not work. > > -Bill > > At 02:36 AM 6/20/2003, ddg4 wrote: > >VTK4.2 has been downloaded from your internet site and it has been > >istalled in Windows 98 platform. On executing CMake Setup and defining > >location of source code and build binaries , Error is found on > >configuring in CMake. > > > >CMake Error : Source: C:/Program Files/VTK42/CMakeList.txt does not > >match source need to generate Cache: C:/Program > >Files/VTK42/CMakeList.txt > > > >Rerun CMake with a different source directory. > > > >Please help us > > > >ddg4 at cmeri.res.in > > > > > > > >_______________________________________________ > >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 andy.cedilnik at kitware.com Tue Jun 24 07:29:08 2003 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 24 Jun 2003 07:29:08 -0400 Subject: [vtkusers] VTK on Mac OS X Problem In-Reply-To: References: Message-ID: <1056454148.6346.677.camel@andoria> Hi Cemil, THis sounds like a tipical Carbon behavior. Are you sure you built X11 version? Maybe X11 on Mac has the same problem? In any case, on Carbon this is the result of the resource fork of the executable not being properly set. What we do is something like: .../Rez .../Carbon.r -o medical1 I am not sure what could be on X11. Do other X11 programs work fine? Andy On Mon, 2003-06-23 at 22:29, Cemil Kirbas wrote: > I installed VTK on Mac OS X (X11 version). When I run sample > programs in Examples directory (medical1, medical2, and medical3), > there is only a window and nothing else and I can not get the focus on > this window. I tried mace example. It shows the window but I can not > interact with the program. Mouse does not work and I can not bring the > window on top when I click on the bar above the window. Any suggestions? From Mathieu.Malaterre at creatis.insa-lyon.fr Tue Jun 24 07:59:06 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Tue, 24 Jun 2003 13:59:06 +0200 Subject: [vtkusers] STLreadtest.o(.text+0x7): undefined reference to `vtkSTLReader::New(void)' In-Reply-To: References: Message-ID: <3EF83D0A.5060900@creatis.insa-lyon.fr> Paul, Have a look at the line you sent : > c++ -I/usr/X11R6/include -fPIC stlreadtest.o -o stlreadtest > -rdynamic -L/usr/local/lib/vtk -L/usr/X11R6/lib -lvtkRendering > -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -lpthread -ldl -lm > -lSM -lICE -lSM -lICE -lX11 -lXext -lX11 -lXext -lvtkftgl -lGLU -lGL > -lvtkfreetype -lXt -lSM -lICE -lX11 -lXext all IO stuff are located in the VTK/IO directory and in the library libvtkIO.so so if you need to use them, you need to add them... logic ;) Add -lvtkIO to the linkage step or in your CMakeLists.txt change it to: LINK_LIBRARIES ( [snip] vtkIO ) HTH mathieu From gtg066j at mail.gatech.edu Tue Jun 24 08:18:54 2003 From: gtg066j at mail.gatech.edu (Vidhya Narayanan) Date: Tue, 24 Jun 2003 08:18:54 -0400 Subject: [vtkusers] intensity value of vtkimage data In-Reply-To: <20030624115130.29380.49177.Mailman@public.kitware.com> References: <20030624115130.29380.49177.Mailman@public.kitware.com> Message-ID: <1056457134.3ef841ae1d1e1@webmail.mail.gatech.edu> Hi, Can someone explain how to read intensity values from vtkimagedata ? I have the voxel coordinates(image coordinates) but the GetScalarComponentAsFloat needs the indices of the voxels. How to estimate the index? Kindly help.Thanks Vidhya From john.biddiscombe at mirada-solutions.com Tue Jun 24 08:24:44 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 24 Jun 2003 13:24:44 +0100 Subject: [vtkusers] interacting with vtkPanel (java/vtk) Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407130D@oxcore01.mirada-solutions.com> Jeff, I've got some trouble with symptoms you might be able to diagnose... If I click a radiobutton to toggle between some options (say, mip, iso, composite...) and then click on my Renderwindow to interact (I'm using InteractorStyleTrackball - not using any mouse events captured in the vtkPanel etc but letting vtk handle them directly), my radio buttons toggle as I interact. Every frmae the buttons toggle between the different states. If I then click on a slider and drag it up or down, then click on the renderwindow, the slider goes up and down (between it's new state and previous state) and the radio buttons toggle. I can then click on another slider, some more buttons and back to the renderwindow and have a virtual circus of randomly flickering controls. Any ideas what's going on. Being a bit new to java I'm natuallr very impressed with how it manages this. JB > -----Original Message----- > From: Jeff Lee [mailto:jeff at cdnorthamerica.com] > Sent: 24 June 2003 11:37 > To: Romain Ollivier > Cc: vtkusers at vtk.org > Subject: Re: [vtkusers] interacting with vtkPanel (java/vtk) > > > > > Romain Ollivier wrote: > > > Hi, > > > > I sent a previous post to ask for help about manipulating > and render a > >vtkPanel with a widget. Has someone an example of an > interaction between > >a vtkPanel and a widget (JButton, JSlider...) in the same JFrame ? My > >problem was the call of the vtkPanel method Render() in my event > >handling method. > > > what were the symptoms? do you have some sample code which > exhibits the > symptoms? > -Jeff > > > > > Thanks, > > > > Romain > >_______________________________________________ > >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 Tue Jun 24 08:41:01 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 24 Jun 2003 08:41:01 -0400 Subject: [vtkusers] interacting with vtkPanel (java/vtk) In-Reply-To: <4926A5BE4AFE7C4A83D5CF5CDA7B775407130D@oxcore01.mirada-solutions.com> References: <4926A5BE4AFE7C4A83D5CF5CDA7B775407130D@oxcore01.mirada-solutions.com> Message-ID: <3EF846DD.2060002@cdnorthamerica.com> without seeing some code, i would guess that you added some listeners in your widgets to listen on mouse events in the render window and perhaps didn't remove them? perhaps post some code for a more exhautive evaluation... what you have there sounds pretty neat though. also, if you are using vtkPanel , how did you remove the default mouse/key listeners? vtkCanvas is kind of preferred if you are using interactor styles - it uses vtkGenericRenderWindowInteractor. -Jeff John Biddiscombe wrote: >Jeff, > >I've got some trouble with symptoms you might be able to diagnose... > >If I click a radiobutton to toggle between some options (say, mip, iso, composite...) and then click on my Renderwindow to interact (I'm using InteractorStyleTrackball - not using any mouse events captured in the vtkPanel etc but letting vtk handle them directly), my radio buttons toggle as I interact. Every frmae the buttons toggle between the different states. If I then click on a slider and drag it up or down, then click on the renderwindow, the slider goes up and down (between it's new state and previous state) and the radio buttons toggle. I can then click on another slider, some more buttons and back to the renderwindow and have a virtual circus of randomly flickering controls. > >Any ideas what's going on. Being a bit new to java I'm natuallr very impressed with how it manages this. > >JB > > > > From k.choi at physics.hanyang.ac.kr Tue Jun 24 09:08:29 2003 From: k.choi at physics.hanyang.ac.kr (K. Choi) Date: Tue, 24 Jun 2003 22:08:29 +0900 Subject: [vtkusers] How can I draw a picture using off-screen and cluster Message-ID: <20030624130829.GA5016@B612.hanyang.ac.kr> I want to draw a high resolution picture(over 10000x10000) using C++. 1. My computing system is a 16node(dual 8node) cluster. Each node don't have a graphic card but control server has. 2. I don't want to draw a picture on monitor. I want to write a file direct to hard disk. I have a VTK user's Guide but I don't include a C++ tutorial but include a tcl tutorial. Is there a good solution in my case? please help me. -- Sincerely, Ki-young Micro-Optics National Research Lab. Dept. of Physics, Hanyang Univ., Seoul, Korea From asiram00 at hotmail.com Tue Jun 24 09:12:35 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Tue, 24 Jun 2003 13:12:35 +0000 Subject: [vtkusers] HELP on Rotation... Message-ID: Hi vtkUsers, I have the following code: vtkMarchingSquares *imageSquares1 = vtkMarchingSquares::New(); imageSquares1->SetInput(vtkImporter1->GetOutput()); imageSquares1->SetValue(0,63); imageSquares1->Update(); vtkPolyData *maskMesh1 = imageSquares1->GetOutput(); vtkTransform *trans = vtkTransform::New(); trans->RotationWXYZ(180, 1, 0, 0); vtkTransformPolyDataFilter *transF = vtkTransformPolyDataFilter::New(); transF->SetInput(maskMesh1); transF->SetTransform(trans); transF->Update(); vtkPolyData *input = transF->GetOutput(); I want to rotate the 'maskMesh1' object in the X axis 180 degrees, but I want to rotate the object center in a origin. But it seems like VTK has messed with the center of my model and moves the objes 180 degrees like I asked but does not maintain the same origin. How can I do to rotate it in the same origin??? Thanks in advance, Marisa _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From john.biddiscombe at mirada-solutions.com Tue Jun 24 09:17:29 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Tue, 24 Jun 2003 14:17:29 +0100 Subject: [vtkusers] interacting with vtkPanel (java/vtk) Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AF8D@oxcore01.mirada-solutions.com> Sorry, I am using vtkCanvas. I haven't removed the listeners, everything is normal. Events come in to the canvas, get despatched to the genericrenderwindoInteractor via the public void mousePressed(MouseEvent e) { Lock(); code in here.... UnLock(); } member. I do have one unusual feature. There's a vtkCanvas inside a tabbed notebook. on one page is a small vtk window used for twiddling paramers (widgets inside), on another page (ie over the top of the notebook) are a load of radiobuttons/sliders etc. At the bottom of the screen is the main renderwindow. If I select the sliders etc page, change some values, then interact with the main window, the sliders all twiddle about - is it allowed, to have heavyweight components inside notebooks? JB > -----Original Message----- > From: Jeff Lee [mailto:jeff at cdnorthamerica.com] > Sent: 24 June 2003 13:41 > To: John Biddiscombe > Cc: vtkusers at vtk.org > Subject: Re: [vtkusers] interacting with vtkPanel (java/vtk) > > > without seeing some code, i would guess that you added some > listeners in > your widgets to listen on mouse events in the render window > and perhaps > didn't remove them? perhaps post some code for a more exhautive > evaluation... what you have there sounds pretty neat though. > also, if > you are using vtkPanel , how did you remove the default mouse/key > listeners? vtkCanvas is kind of preferred if you are using > interactor > styles - it uses vtkGenericRenderWindowInteractor. > -Jeff > > John Biddiscombe wrote: > > >Jeff, > > > >I've got some trouble with symptoms you might be able to diagnose... > > > >If I click a radiobutton to toggle between some options > (say, mip, iso, composite...) and then click on my > Renderwindow to interact (I'm using InteractorStyleTrackball > - not using any mouse events captured in the vtkPanel etc but > letting vtk handle them directly), my radio buttons toggle as > I interact. Every frmae the buttons toggle between the > different states. If I then click on a slider and drag it up > or down, then click on the renderwindow, the slider goes up > and down (between it's new state and previous state) and the > radio buttons toggle. I can then click on another slider, > some more buttons and back to the renderwindow and have a > virtual circus of randomly flickering controls. > > > >Any ideas what's going on. Being a bit new to java I'm > natuallr very impressed with how it manages this. > > > >JB > > > > > > > > > > > From dsjen at cs.unc.edu Tue Jun 24 09:21:32 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Tue, 24 Jun 2003 09:21:32 -0400 Subject: [vtkusers] rendering isosurface and crashing Message-ID: <12b59d128f2d.128f2d12b59d@cs.unc.edu> Hi Jeff, My use of vtkCanvas is has-a. The program does consistently crashes when I load a large number of images (but works fine with a smaller set), when trying to view an isosurface. However, using volume rendering techniques, such as maximum intensity projection, the rendering is slow, but at least doesn't crash die with an EXCEPTION_ACCESS_VIOLATION. As for code that causes it to crash, I'm not sure which code segment is causing it to crash. Are you thinking that it's somewhere with vtkCanvas? I will updating my version of Java and see if that fixes the problem though. Thanks, Dennis ----- Original Message ----- From: Jeff Lee Date: Tuesday, June 24, 2003 6:44 am Subject: Re: [vtkusers] rendering isosurface and crashing > > > dsjen at cs.unc.edu wrote: > > >Hi VTK Users, > > > >I'm developing an application using vtk4.0, through Java, on > >WindowsXP. I've run into a problem when trying to render an > >isosurface. I have a stack of 800x800-pixel images that form a > >volume. When viewing a subset of the stack, I'm able to render > the > >isosurface and manipulate it, although it does take a quite a bit > of > >time to render. > > > >However, when I attempt to render the entire stack, my > application > >thinks for a very long time before my application crashes and > Java > >generates an hs_err_pid####.txt file. I've included the contents > of > >the text file below. My guess is that I'm running out of memory, > but > >I just wanted to check to see if anyone else has encountered a > similar > >problem or has any suggestion. > > > is your use of vtkCanvas has-a or is-a? does it consistently > crash in > the same place? there were some problems with jdk1.4 and winxp > which > were fixed with jdk1.4.1_01. do you have some code which causes > the crash? > -Jeff > > > > >Thanks, > >Dennis > > > > > > > > > > > From dsjen at cs.unc.edu Tue Jun 24 13:34:00 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Tue, 24 Jun 2003 13:34:00 -0400 Subject: [vtkusers] SetRGBTextureInput in Java Missing? Message-ID: <12bce212a27d.12a27d12bce2@cs.unc.edu> Hi Vtk Users, Does anyone know if the SetRGBTextureInput method in vtkVolumeProperty is missing from the Java wrapped version of vtk4.x? I saw it in the man pages and in use in "The VTK User's Guide VTK 4.2" (page 126), but it seems to be missing from the jar file (and class of vtkVolumeRayCastMapper). I checked the archives and didn't see anything about it, so my guess is that it's there...somewhere... Below is my segment of code that calls the method in question: vtkVolumeProperty volumeProperty = new vtkVolumeProperty(); volumeProperty.SetScalarOpacity(opacityTransferFunction); volumeProperty.ShadeOn(); volumeProperty.SetInterpolationTypeToLinear(); volumeProperty.SetRGBTextureCoefficient(1.0); // method can't be found Thanks, Dennis From cpanagio at cs.ucl.ac.uk Tue Jun 24 14:16:31 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Tue, 24 Jun 2003 19:16:31 +0100 Subject: [vtkusers] VTK & kdevelop Message-ID: <3EF8957F.5010005@cs.ucl.ac.uk> Hi I am having the following problem I have compiled the official version of VTK (not nightly release) I want to use some of its classes to a project i am working on (I am working with KDevelop (which I havent worked before)) However I dont know how to setup kdevelop to work with VTK Is it possible someone to explain to me how to set it up? for example how can I set up the paths for the .h files so kdevelop will see them etc. Maybe this is a kdevelop question but I think some of you must have done it! I would be greatful for any kind of help! thanks christos From cgarcha at ualberta.ca Tue Jun 24 14:34:41 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Tue, 24 Jun 2003 12:34:41 -0600 Subject: [vtkusers] installing_problems Message-ID: <3EFA9600@webmail.ualberta.ca> I have compiled the official release and the nightly version of VTK but it just doesnt seem to work . I am trying to run a tcl example, but when i click on it, it tells me that i require "package vtk". does that mean that vtk wasnt properly installed. Do i have to do anything after i build "all_build" . After vtk is installed should i expect to see an icon or something like that. thanks Nabby From DORSEY_EDMUND_K at LILLY.COM Tue Jun 24 16:46:10 2003 From: DORSEY_EDMUND_K at LILLY.COM (DORSEY_EDMUND_K at LILLY.COM) Date: Tue, 24 Jun 2003 15:46:10 -0500 Subject: [vtkusers] Question about manipulating voxel data Message-ID: Hi, I'm new to this mailing list. I just started working with VTK and python for a summer project which involves subvoxel processing. The problem is this. I need to read in a vff file (header + 16 bit voxels), resample the data, then resave the data. So far I've read in the file and can write it out again as a new file with no changes. The question is how do I split the voxels into new voxels and assign new values. For example, in 2d, each voxel needs to be split into 4 subvoxels and assigned new intensities. I can't just use the built in interpolation methods because I need to implement a special algorithm to do the resampling. I'm also a little confused as to how VTK is storing the data. The orginal vff file just lays out the voxels in a grid so as you read them in you know what what the location is. You probably noticed this program doesn't need to do any rendering but I want to use VTK because eventually the program will be a plugin and if I can orginally write it using vtk it will be much easier later on to merge with the rendering program (already written but not by me). I'm still waiting for my copies of the VTK user guide to arrive so mabye that will help once I go through it but can anyone offer any advice? Even some very high level stuff or perhaps point out the functions I'd need to use. Anything would be be helpful as I'm quite lost. Thank you for your time. ~Edmund Dorsey (confused summer intern) -------------- next part -------------- An HTML attachment was scrubbed... URL: From yass at uscx.net Tue Jun 24 16:55:51 2003 From: yass at uscx.net (yasser salman) Date: Tue, 24 Jun 2003 13:55:51 -0700 (PDT) Subject: [vtkusers] 3D Raw and TIFF. Message-ID: <20030624205552.1EEC04922@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From quanxiang_99 at yahoo.com Tue Jun 24 17:42:21 2003 From: quanxiang_99 at yahoo.com (Quan Li) Date: Tue, 24 Jun 2003 14:42:21 -0700 (PDT) Subject: [vtkusers] How Vtk's tcl/tk examples are implemented? Message-ID: <20030624214221.67426.qmail@web13808.mail.yahoo.com> Hello, Seeing more vtk examples implemented in tcl/tk than in C++, I wanted to take a brief look at tcl/tk. For now I have read only a little about the script language. I noticed the syntax of those tcl examples coming with vtk is somewhat not quite the same as what I have read about (for example, tcl/tk introdued in the first few chapters of "Practical Programming in tcl and tk" by Welsh). I wonder in what tcl/tk or what extentions(?) are those examples implemented. Before my getting further into tcl/tk learning, can any experienced tcl/tk user(s) in this mailing list help give some introductory knowledge about that? Thank you. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From yass at uscx.net Tue Jun 24 17:42:51 2003 From: yass at uscx.net (yasser salman) Date: Tue, 24 Jun 2003 14:42:51 -0700 (PDT) Subject: [vtkusers] vtkDICOMImageReader Message-ID: <20030624214251.3C8EB11F18@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dean.inglis at on.aibn.com Tue Jun 24 22:11:49 2003 From: dean.inglis at on.aibn.com (dean.inglis at on.aibn.com) Date: Tue, 24 Jun 2003 22:11:49 -0400 Subject: [vtkusers] pb with BCB6 and vtkBorlandRenderWindow component Message-ID: <20030625021150.OOT23576.tomts10-srv.bellnexxia.net@[209.226.175.135]> I have been happily building nightly vtk cvs builds along with the BCB component package, when as of Thursday 19 changes I started getting acces violations. Now when I try to Add or Remove any of the .lib files to the package project (even though adding them as Files of type .lib) I get an error: "one or more lines were too long and have been truncated!" This does not occur on a similar PC workstation building the same libraries and VCL component with BCB5 Pro. I can build non-GUI apps with the BCB6 command line compiler/linker/CMake but I really need the GUI component! I have requested help by posting to several of the Borland newsgroups but no luck. My platform is win2k Pro, BCB6 Pro Update 4, Cmake 1.6.7, MinSizeRel shared libs. Any BCB6 users out there with a similar problem and solution/suggestions? I've got a feeling JB is going to say I told you so, BCB6 is pants! Dean From ramakrishna.prakash at quest-global.com Tue Jun 24 23:22:39 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Wed, 25 Jun 2003 08:52:39 +0530 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <3EF82B81.5010008@cdnorthamerica.com> Message-ID: <000401c33ac9$0805ef30$de0ba8c0@qtwblr01.questglobal.com> Jeff/Users, I built VTK 4.2 with JDK1.3.1_08. The build completed successfully. But my application would not run. It crashes with the following error message. Is it that vtkPanel and vtkCanvas are not compatible with JDK version lower than 1.4 or its because of some other problem? Thanks Shyam An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616 Function name=RtlLeaveCriticalSection Library=C:\WINNT\System32\ntdll.dll Current Java thread: at vtk.vtkPanel.UnLock(Native Method) at vtk.vtkCanvas.mouseMoved(vtkCanvas.java:204) at java.awt.Component.processMouseMotionEvent(Component.java:3751) at java.awt.Component.processEvent(Component.java:3543) at java.awt.Component.dispatchEventImpl(Component.java:2588) at java.awt.Component.dispatchEvent(Component.java:2492) at java.awt.EventQueue.dispatchEvent(EventQueue.java:334) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT read.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThr ad.java:93) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88) at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) Dynamic libraries: 0x00400000 - 0x00405000 D:\Apps\jdk1.3\bin\java.exe 0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll 0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll 0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll 0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll 0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll 0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll 0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x10000000 - 0x10018000 C:\WINNT\System32\NVDESK32.DLL 0x6D420000 - 0x6D4F8000 D:\Apps\jdk1.3\jre\bin\hotspot\jvm.dll 0x77FD0000 - 0x77FFA000 C:\WINNT\System32\WINMM.dll 0x6D220000 - 0x6D227000 D:\Apps\jdk1.3\jre\bin\hpi.dll 0x6D3B0000 - 0x6D3BD000 D:\Apps\jdk1.3\jre\bin\verify.dll 0x6D250000 - 0x6D267000 D:\Apps\jdk1.3\jre\bin\java.dll 0x6D3C0000 - 0x6D3CD000 D:\Apps\jdk1.3\jre\bin\zip.dll 0x6D020000 - 0x6D12B000 D:\Apps\jdk1.3\jre\bin\awt.dll 0x77C00000 - 0x77C18000 C:\WINNT\System32\WINSPOOL.DRV 0x76AB0000 - 0x76AB5000 C:\WINNT\System32\IMM32.dll 0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll 0x22500000 - 0x225D8000 vtkCommonJava.dll 0x225E0000 - 0x22807000 vtkCommon.dll 0x22810000 - 0x22827000 C:\WINNT\System32\MSVCIRTD.dll 0x22830000 - 0x22890000 C:\WINNT\System32\MSVCRTD.dll 0x22890000 - 0x2290E000 C:\WINNT\System32\MSVCP60D.dll 0x22A20000 - 0x22A50000 vtkFilteringJava.dll 0x22A50000 - 0x22ADE000 vtkFiltering.dll 0x22AE0000 - 0x22B36000 vtkIOJava.dll 0x22B40000 - 0x22E2E000 vtkIO.dll 0x22E30000 - 0x22E61000 vtkpng.dll 0x22E70000 - 0x22E89000 vtkzlib.dll 0x22E90000 - 0x22EC1000 vtkjpeg.dll 0x22ED0000 - 0x22F32000 vtktiff.dll 0x22F40000 - 0x22F71000 vtkexpat.dll 0x22F80000 - 0x22FE7000 vtkImagngJava.dll 0x22FF0000 - 0x2333E000 vtkImagng.dll 0x23340000 - 0x2340C000 vtkGrapicsJava.dll 0x23410000 - 0x237B2000 vtkGrapics.dll 0x237C0000 - 0x23861000 vtkRendringJava.dll 0x23870000 - 0x23B7D000 vtkRendring.dll 0x755B0000 - 0x75678000 C:\WINNT\System32\OPENGL32.dll 0x76C80000 - 0x76CA2000 C:\WINNT\System32\GLU32.dll 0x77160000 - 0x77167000 C:\WINNT\System32\DCIMAN32.dll 0x23B80000 - 0x23B92000 vtkftgl.dll 0x23BA0000 - 0x23C0D000 vtkfreeype.dll 0x6D270000 - 0x6D275000 jawt.dll 0x25BE0000 - 0x25C43000 vtkHybrdJava.dll 0x25C50000 - 0x25E58000 vtkHybrd.dll 0x25E60000 - 0x25E88000 vtkParalelJava.dll 0x25E90000 - 0x25F58000 vtkParalel.dll 0x776D0000 - 0x776D8000 C:\WINNT\system32\WSOCK32.dll 0x776B0000 - 0x776C4000 C:\WINNT\system32\WS2_32.dll 0x776A0000 - 0x776A7000 C:\WINNT\system32\WS2HELP.dll 0x6D1E0000 - 0x6D21B000 D:\Apps\jdk1.3\jre\bin\fontmanager.dll 0x6D2C0000 - 0x6D2DB000 D:\Apps\jdk1.3\jre\bin\jpeg.dll 0x26220000 - 0x26227000 D:\Apps\AOL\idlemon.dll 0x71300000 - 0x71306000 C:\WINNT\system32\MSIDLE.DLL 0x76AC0000 - 0x76ADD000 C:\WINNT\System32\imagehlp.dll 0x71DC0000 - 0x71DCA000 C:\WINNT\System32\PSAPI.DLL Local Time = Wed Jun 25 08:43:43 2003 Elapsed Time = 2 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_08-b03 mixed mode) # # An error report file has been saved as hs_err_pid101.log. # Please refer to the file for further information. # From jbiddiscombe at skippingmouse.co.uk Wed Jun 25 00:37:31 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 25 Jun 2003 05:37:31 +0100 Subject: [vtkusers] pb with BCB6 and vtkBorlandRenderWindow component References: <20030625021150.OOT23576.tomts10-srv.bellnexxia.net@[209.226.175.135]> Message-ID: <001801c33ad3$7e154720$0100a8c0@tigger> It's a bug in BCB6. It always does this when you add libs. Might be fixed in patch #4, but probably not. > Any BCB6 users out there with > a similar problem and solution/suggestions? I've got a feeling > JB is going to say I told you so, BCB6 is pants! Have you built ITK with it yet? JB From putanowr at twins.pk.edu.pl Wed Jun 25 01:59:03 2003 From: putanowr at twins.pk.edu.pl (Roman Putanowicz) Date: Wed, 25 Jun 2003 07:59:03 +0200 Subject: [vtkusers] How Vtk's tcl/tk examples are implemented? In-Reply-To: <20030624214221.67426.qmail@web13808.mail.yahoo.com> References: <20030624214221.67426.qmail@web13808.mail.yahoo.com> Message-ID: <20030625055902.GA5882@twins.pk.edu.pl> > Seeing more vtk examples implemented in tcl/tk than in > C++, I wanted to take a brief look at tcl/tk. For now > I have read only a little about the script language. I > noticed the syntax of those tcl examples coming with > vtk is somewhat not quite the same as what I have read > about (for example, tcl/tk introdued in the first few > chapters of "Practical Programming in tcl and tk" by > Welsh). Hi, The syntax is exactly the same as in the book you have mentioned. The only confusing thing can be that those examples use wrappers around VTK library. Maybe the best way is to explain it on an example: vtkUnstructuredGridReader reader ## 1 reader SetFileName "mesh.vtk" ## 2 In line 1 you call vtkUnstructuredGridReader Tcl procedure which does the following: 1) creates an instance of the class vtkUnstructuredGridReader 2) creates a new Tcl command "reader". The new command is associated with the created object (to put it simple :). In line 2 you call Tcl command "reader". The arguments to this command are: name of the method, arguments required by the method. Then the command calls the method (in this line SetFileName) for the object associated with it and passes to the method all remaining arguments. > I wonder in what tcl/tk or what extentions(?) > are those examples implemented. Before my getting > further into tcl/tk learning, can any experienced > tcl/tk user(s) in this mailing list help give some > introductory knowledge about that? You can take a look at chapter 44 of the Welsh book you mentioned. This chapter explains a mechanism of adding new commands to Tcl. Maybe this can help you to see why VTK examples in Tcl look as they look. Regards Romek From metty at hta-bi.bfh.ch Wed Jun 25 02:13:00 2003 From: metty at hta-bi.bfh.ch (Yvonne Mettler) Date: Wed, 25 Jun 2003 08:13:00 +0200 Subject: [vtkusers] pb with BCB6 and vtkBorlandRenderWindow component In-Reply-To: <20030625021150.OOT23576.tomts10-srv.bellnexxia.net@[209.226.175.135]> References: <20030625021150.OOT23576.tomts10-srv.bellnexxia.net@[209.226.175.135]> Message-ID: <3EF93D6C.9040407@hta-bi.bfh.ch> Hi Dean, I use BCB6 and know the message, but I just ignored it, and it works fine. Yvonne dean.inglis at on.aibn.com wrote: > I have been happily building nightly vtk cvs builds > along with the BCB component package, when as of Thursday > 19 changes I started getting acces violations. Now when I > try to Add or Remove any of the .lib files to the package > project (even though adding them as Files of type .lib) I > get an error: > > "one or more lines were too long and have been truncated!" > > This does not occur on a similar PC workstation building the > same libraries and VCL component with BCB5 Pro. I can build > non-GUI apps with the BCB6 command line compiler/linker/CMake > but I really need the GUI component! I have requested help > by posting to several of the Borland newsgroups but no luck. > My platform is win2k Pro, BCB6 Pro Update 4, Cmake 1.6.7, > MinSizeRel shared libs. Any BCB6 users out there with > a similar problem and solution/suggestions? I've got a feeling > JB is going to say I told you so, BCB6 is pants! > > 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 chandran.ramu at quest-global.com Wed Jun 25 02:26:05 2003 From: chandran.ramu at quest-global.com (Chandran Ramu) Date: Wed, 25 Jun 2003 11:56:05 +0530 Subject: [vtkusers] FW: VTK and JAVA Message-ID: <000201c33ae2$a8d30f10$a7f0d103@qi612> Hi All, I am using VTK 4.2 with Java 1.4.1_02 on Windows NT 4.0. I am using vtkCanvas along with Swing components. My application often crashes saying that the vtkCanvas is locked. This happens in the Render() method call of vtkCanvas(most of the times when I remove actors from vtkRenderer and add new actors). I went through the user's archive and as suggested in that, I never make direct call to vtkRenderWindow.Render(). But still the problem persists. Can somebody please help me. below is the error message Thanks Ramu An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x246B0F14 Function=vtkFileOutputWindow::NewInstance+0x884E9 Library=C:\WINNT\system32\vtkCommon.dll Current Java thread: at vtk.vtkRenderWindow.Render_6(Native Method) at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36) at vtk.vtkPanel.Render(vtkPanel.java:141) //Here vtkPanel.java calls rw.Render() with proper locking - locked <1149E818> (a VTKWindow) at VTKWindow.displayChanged(VTKWindow.java:272) at VTKWindow.fireDisplayChanged(VTKModel.java:761) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Dynamic libraries: 0x00400000 - 0x00406000 C:\WINNT\system32\java.exe 0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll 0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll 0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll 0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll 0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll 0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll 0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x10000000 - 0x10018000 C:\WINNT\system32\NVDESK32.DLL 0x6D340000 - 0x6D46A000 C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll 0x77FD0000 - 0x77FFA000 C:\WINNT\system32\WINMM.dll 0x6D1E0000 - 0x6D1E7000 C:\Program Files\Java\j2re1.4.1_02\bin\hpi.dll 0x6D310000 - 0x6D31E000 C:\Program Files\Java\j2re1.4.1_02\bin\verify.dll 0x6D220000 - 0x6D239000 C:\Program Files\Java\j2re1.4.1_02\bin\java.dll 0x6D330000 - 0x6D33D000 C:\Program Files\Java\j2re1.4.1_02\bin\zip.dll 0x6D000000 - 0x6D105000 C:\Program Files\Java\j2re1.4.1_02\bin\awt.dll 0x77C00000 - 0x77C18000 C:\WINNT\system32\WINSPOOL.DRV 0x76AB0000 - 0x76AB5000 C:\WINNT\system32\IMM32.dll 0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll 0x24540000 - 0x24618000 C:\WINNT\system32\vtkCommonJava.dll 0x24620000 - 0x24847000 C:\WINNT\system32\vtkCommon.dll 0x24850000 - 0x24867000 C:\WINNT\system32\MSVCIRTD.dll 0x24870000 - 0x248D0000 C:\WINNT\system32\MSVCRTD.dll 0x248D0000 - 0x2494E000 C:\WINNT\system32\MSVCP60D.dll 0x24A60000 - 0x24A90000 C:\WINNT\system32\vtkFilteringJava.dll 0x24A90000 - 0x24B1E000 C:\WINNT\system32\vtkFiltering.dll 0x24B20000 - 0x24B76000 C:\WINNT\system32\vtkIOJava.dll 0x24B80000 - 0x24E6E000 C:\WINNT\system32\vtkIO.dll 0x24E70000 - 0x24EA1000 C:\WINNT\system32\vtkpng.dll 0x24EB0000 - 0x24EC9000 C:\WINNT\system32\vtkzlib.dll 0x24ED0000 - 0x24F01000 C:\WINNT\system32\vtkjpeg.dll 0x24F10000 - 0x24F72000 C:\WINNT\system32\vtktiff.dll 0x24F80000 - 0x24FB1000 C:\WINNT\system32\vtkexpat.dll 0x24FC0000 - 0x25027000 C:\WINNT\system32\vtkImagingJava.dll 0x25030000 - 0x2537E000 C:\WINNT\system32\vtkImaging.dll 0x25380000 - 0x2544C000 C:\WINNT\system32\vtkGraphicsJava.dll 0x25450000 - 0x257F2000 C:\WINNT\system32\vtkGraphics.dll 0x25800000 - 0x258A1000 C:\WINNT\system32\vtkRenderingJava.dll 0x258B0000 - 0x25BBD000 C:\WINNT\system32\vtkRendering.dll 0x755B0000 - 0x75678000 C:\WINNT\system32\OPENGL32.dll 0x76C80000 - 0x76CA2000 C:\WINNT\system32\GLU32.dll 0x77160000 - 0x77167000 C:\WINNT\system32\DCIMAN32.dll 0x25BC0000 - 0x25BD2000 C:\WINNT\system32\vtkftgl.dll 0x25BE0000 - 0x25C4D000 C:\WINNT\system32\vtkfreetype.dll 0x6D240000 - 0x6D245000 D:\Apps\jdk1.4\jre\bin\jawt.dll 0x27C20000 - 0x27C83000 C:\WINNT\system32\vtkHybridJava.dll 0x27C90000 - 0x27E98000 C:\WINNT\system32\vtkHybrid.dll 0x27EA0000 - 0x27EC8000 C:\WINNT\system32\vtkParallelJava.dll 0x27ED0000 - 0x27F98000 C:\WINNT\system32\vtkParallel.dll 0x776D0000 - 0x776D8000 C:\WINNT\system32\WSOCK32.dll 0x776B0000 - 0x776C4000 C:\WINNT\system32\WS2_32.dll 0x776A0000 - 0x776A7000 C:\WINNT\system32\WS2HELP.dll 0x6D190000 - 0x6D1E0000 C:\Program Files\Java\j2re1.4.1_02\bin\fontmanager.dll 0x77130000 - 0x77156000 C:\WINNT\system32\ddraw.dll 0x6D290000 - 0x6D2AE000 C:\Program Files\Java\j2re1.4.1_02\bin\jpeg.dll 0x2A270000 - 0x2A277000 D:\Apps\AOL\idlemon.dll 0x71300000 - 0x71306000 C:\WINNT\system32\MSIDLE.DLL 0x6D140000 - 0x6D162000 C:\Program Files\Java\j2re1.4.1_02\bin\dcpr.dll 0x77C40000 - 0x77D7C000 C:\WINNT\system32\shell32.dll 0x71780000 - 0x7180A000 C:\WINNT\system32\COMCTL32.dll 0x77A40000 - 0x77A4D000 C:\WINNT\system32\ntshrui.dll 0x77800000 - 0x7783A000 C:\WINNT\system32\NETAPI32.dll 0x77840000 - 0x77849000 C:\WINNT\system32\NETRAP.dll 0x777E0000 - 0x777ED000 C:\WINNT\system32\SAMLIB.dll 0x77BF0000 - 0x77BF7000 C:\WINNT\system32\rpcltc1.dll 0x77720000 - 0x77731000 C:\WINNT\system32\mpr.dll 0x777F0000 - 0x777FC000 C:\WINNT\System32\ntlanman.dll 0x77890000 - 0x778A5000 C:\WINNT\system32\NETUI0.dll 0x77850000 - 0x7788A000 C:\WINNT\system32\NETUI1.dll 0x69500000 - 0x6968A000 C:\WINNT\system32\nvoglnt.dll 0x76AC0000 - 0x76ADD000 C:\WINNT\system32\imagehlp.dll 0x71DC0000 - 0x71DCA000 C:\WINNT\system32\PSAPI.DLL Local Time = Wed Jun 25 11:09:57 2003 Elapsed Time = 68 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode) # From asiram00 at hotmail.com Wed Jun 25 03:27:46 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Wed, 25 Jun 2003 07:27:46 +0000 Subject: [vtkusers] HELP!! vtkActorCollection Message-ID: Hi vtkUsers, I did a list of actors using vtkActorCollection. This is a piece of may code: >vtkActor *imageActor1 = vtkActor::New(); >vtkActor *imageActor2 = vtkActor::New(); >vtkActorCollection *imageActorCollection = vtkActorCollection::New(); >imageActorCollection->AddItem(imageActor1); >imageActorCollection->AddItem(imageActor2); Now I want to add my vtkActorCollection to the renderer Window. And I did this: >renderer2->AddActor(imageActorCollection); But I got an error saying that vtkRenderer does not receive an vtkActorCollection. ->>>>'AddActor' : cannot convert parameter 1 from 'class vtkActorCollection *' to 'class vtkProp *' So I did a cicle 'for' to obtain each actor from the vtkActorCollection and I add the actor to the renderer: >int number = imageActorCollection->GetNumberOfPaths(); >for(int j = 0; j{ > renderer2->AddActor(imageActorCollection->GetNextActor()); >} But when I ask to show the renderer window it doesn't appear anything on the window!! What am I doing wrong ???? Thanks in advance, Marisa _________________________________________________________________ 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 Wed Jun 25 03:28:02 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Wed, 25 Jun 2003 09:28:02 +0200 Subject: [vtkusers] VTK & kdevelop In-Reply-To: <3EF8957F.5010005@cs.ucl.ac.uk> References: <3EF8957F.5010005@cs.ucl.ac.uk> Message-ID: <3EF94F02.9020201@creatis.insa-lyon.fr> Christos, Quoting Luis Ibanez: [CMake does not support KDevelop at this point.] http://itk.org/pipermail/insight-users/2003-March/003079.html According to cmake users this should be ok: http://cmake.org/pipermail/cmake/2003-May/001659.html http://vtk.org/pipermail/vtkusers/2001-February/005628.html Even if the last link tells you to use vtkandqt I'll recommend you: http://carol.wins.uva.nl/~dshamoni/VtkQt/ HTH mathieu Christos Panagiotou wrote: > Hi > > I am having the following problem > I have compiled the official version of VTK (not nightly release) > I want to use some of its classes to a project i am working on (I am > working with KDevelop (which I havent worked before)) > However I dont know how to setup kdevelop to work with VTK > Is it possible someone to explain to me how to set it up? > for example how can I set up the paths for the .h files so kdevelop will > see them etc. > > Maybe this is a kdevelop question but I think some of you must have done > it! > I would be greatful for any kind of help! > > thanks > christos > > > > _______________________________________________ > 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 tholozano at gmx.de Wed Jun 25 05:06:11 2003 From: tholozano at gmx.de (tholozano at gmx.de) Date: Wed, 25 Jun 2003 11:06:11 +0200 (MEST) Subject: [vtkusers] problem getting cellId Message-ID: <4715.1056531971@www10.gmx.net> Hi to all, my pipeline always crashes down with an windows error message if I want to get the cellId of a point loacation. the significant part of my pipeline looks like this: ... p[0] = 0; p[1] = 0; p[2] = 0; //only for testing vtkUnstructuredGridReader *reader = vtkUnstructuredGridReader::New(); reader->SetFileName("tetraeder.vtk"); reader->SetScalarsName("pressure"); reader->Update(); cellId = reader->GetOutput()->FindCell(p,NULL,0,0.1,subId,pcoords,weights); // this line seems to be the problem ... Is there an error in my code, or is this a vtk problem? (I'm using VC++) Paradoxically the pipeline runs if I use cygwin and g++! Are there any known problems and/or solutions to solve this problem with VC? Sadly I have to use it for project reasons... Thanks a lot! Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From Said.El_Kasmi at sophia.inria.fr Wed Jun 25 05:17:42 2003 From: Said.El_Kasmi at sophia.inria.fr (Said.) Date: Wed, 25 Jun 2003 11:17:42 +0200 Subject: [vtkusers] Using Vtk with java GUI. Message-ID: <3EF968B6.CFE7AE82@sophia.inria.fr> Hi, I'm looking for an examples using vtk with java GUI components. A find on the web the vtkPanel class ( It's not included in the vtk4.2 package ) but I have several problems when compiling it. Any examples will be welcome, Thanks. -- Said. INRIA - Projet CAIMAN. 2004, Route des Lucioles - BP 93 06902 Sophia Antipolis Cedex (France)- Tel: 04 92 38 79 07 Email: Said.El_kasmi at sophia.inria.fr From jeff at cdnorthamerica.com Wed Jun 25 06:20:46 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 25 Jun 2003 06:20:46 -0400 Subject: [vtkusers] FW: VTK and JAVA In-Reply-To: <000201c33ae2$a8d30f10$a7f0d103@qi612> References: <000201c33ae2$a8d30f10$a7f0d103@qi612> Message-ID: <3EF9777E.5080805@cdnorthamerica.com> Chandran Ramu wrote: >Hi All, > I am using VTK 4.2 with Java 1.4.1_02 on Windows NT 4.0. I am >using vtkCanvas along with Swing components. My application often crashes >saying that the vtkCanvas is locked. This happens in the Render() method >call of vtkCanvas(most of the times when I remove actors from vtkRenderer >and add new actors). I went through the user's archive and as suggested in >that, I never make direct call to vtkRenderWindow.Render(). > locking during a render is only half the battle. you also need to make sure not to be modifying your actors, or the contents of the renderWindow(i.e. "the model") during a render. because java is multithreaded, it is easy to cause such problems. why is vtkOutputWindow being used? what happens in vtkWindow.displayChanged()? -Jeff >But still the >problem persists. Can somebody please help me. below is the error message > >Thanks >Ramu > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x246B0F14 >Function=vtkFileOutputWindow::NewInstance+0x884E9 >Library=C:\WINNT\system32\vtkCommon.dll > >Current Java thread: > at vtk.vtkRenderWindow.Render_6(Native Method) > at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36) > at vtk.vtkPanel.Render(vtkPanel.java:141) //Here vtkPanel.java calls >rw.Render() with proper locking > - locked <1149E818> (a VTKWindow) > at VTKWindow.displayChanged(VTKWindow.java:272) > at VTKWindow.fireDisplayChanged(VTKModel.java:761) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:448) > at >java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja >va:197) > at >java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java >:150) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) > > > From jeff at cdnorthamerica.com Wed Jun 25 06:27:22 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 25 Jun 2003 06:27:22 -0400 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <000401c33ac9$0805ef30$de0ba8c0@qtwblr01.questglobal.com> References: <000401c33ac9$0805ef30$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EF9790A.9060907@cdnorthamerica.com> on which os are you compiling? I have seen this before on winnt and older versions of java. vtkPanel/Canvas are only dependent on jdk1.3 or greater. I think it is a winnt/jdk1.3 problem. -Jeff R K Shyamprakash wrote: >Jeff/Users, > I built VTK 4.2 with JDK1.3.1_08. The build completed successfully. But my >application would not run. It crashes with the following error message. Is >it that vtkPanel and vtkCanvas are not compatible with JDK version lower >than 1.4 or its because of some other problem? > >Thanks >Shyam > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616 >Function name=RtlLeaveCriticalSection >Library=C:\WINNT\System32\ntdll.dll > >Current Java thread: > at vtk.vtkPanel.UnLock(Native Method) > at vtk.vtkCanvas.mouseMoved(vtkCanvas.java:204) > at java.awt.Component.processMouseMotionEvent(Component.java:3751) > at java.awt.Component.processEvent(Component.java:3543) > at java.awt.Component.dispatchEventImpl(Component.java:2588) > at java.awt.Component.dispatchEvent(Component.java:2492) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:334) > at >java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >read.java:126) > at >java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThr >ad.java:93) > at >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) > > > From nick.smethurst at free.fr Wed Jun 25 07:29:47 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Wed, 25 Jun 2003 13:29:47 +0200 Subject: [vtkusers] VTK & kdevelop In-Reply-To: <3EF8957F.5010005@cs.ucl.ac.uk> References: <3EF8957F.5010005@cs.ucl.ac.uk> Message-ID: <200306251329.47813.nick.smethurst@free.fr> Christos There's no problem using VTK classes in a c++ program developed with KDevelop. my main activity involves a program developed with KDevelop using QT/KDE & VTK. You can use VTK in the same way as any other shared library. Go into the project options dialog, and add the following (this is for KDevelop 2.15): This assumes that VTK is installed in /usr In compiler options: In Flags and Warnings: C Preprocessor flags: -I/usr/include/vtk C++ Compiler flags: -Wno-deprecated (this avoids all the deprecated messages) In Linker Flags Additional flags: -L/usr/lib/vtk -Wl,--rpath,/usr/lib/vtk In Linker Options: Additional libraries: -lvtkIO -lvtkHybrid -lvtkGraphics -lvtkRendering (and any others that you may need) You probably need to select the math check box too. and that should be all you need to do apart from including the headers in your program as normal like: #include Hope this helps. Nick Le Mardi 24 Juin 2003 20:16, Christos Panagiotou a ?crit : > Hi > > I am having the following problem > I have compiled the official version of VTK (not nightly release) > I want to use some of its classes to a project i am working on (I am > working with KDevelop (which I havent worked before)) > However I dont know how to setup kdevelop to work with VTK > Is it possible someone to explain to me how to set it up? > for example how can I set up the paths for the .h files so kdevelop will > see them etc. > > Maybe this is a kdevelop question but I think some of you must have done > it! I would be greatful for any kind of help! > > thanks > christos > > > > _______________________________________________ > 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 dean.inglis at on.aibn.com Wed Jun 25 07:31:09 2003 From: dean.inglis at on.aibn.com (dean.inglis at on.aibn.com) Date: Wed, 25 Jun 2003 7:31:09 -0400 Subject: [vtkusers] pb with BCB6 and vtkBorlandRenderWindow component Message-ID: <20030625113108.FAOT27314.tomts12-srv.bellnexxia.net@[209.226.175.249]> Thinking back, I'm guessing the only reason I didn't notice this BCB6 bug before was because I had imported a BCB5 package project into the BCB6 IDE. It appears that I can still build my GUI apps although those errors are a bit of a concern. ITK with BCB6 is on the back burner for a bit...If interested, have a look at my post thread on ITK in May to see how far I got: templated complex was the last stopper. If you have any fixes to try I'd like to hear them and keep trying. Dean > > From: "John Biddiscombe" > Date: 2003/06/25 Wed AM 12:37:31 GMT-04:00 > To: , > > Subject: Re: [vtkusers] pb with BCB6 and vtkBorlandRenderWindow component > > It's a bug in BCB6. It always does this when you add libs. Might be fixed in > patch #4, but probably not. > > > Any BCB6 users out there with > > a similar problem and solution/suggestions? I've got a feeling > > JB is going to say I told you so, BCB6 is pants! > > Have you built ITK with it yet? > > JB > > From Said.El_Kasmi at sophia.inria.fr Wed Jun 25 07:33:55 2003 From: Said.El_Kasmi at sophia.inria.fr (Said.) Date: Wed, 25 Jun 2003 13:33:55 +0200 Subject: [vtkusers] Problems compiling SimpleVTK.java example. Message-ID: <3EF988A3.B45647C8@sophia.inria.fr> Hi, When running the example SimpleVTK.java, I got the following stack. All what i see, it is a problem a native methods but I have no solution to this problem. maybe someone have an idea ? java.lang.UnsatisfiedLinkError: RenderCreate at caiman.vizu.vtkPanel.RenderCreate(Native Method) at caiman.vizu.vtkPanel.Render(vtkPanel.java:106) at caiman.vizu.vtkPanel.paint(vtkPanel.java:122) at sun.awt.RepaintArea.paint(RepaintArea.java:180) at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:339) at java.awt.Component.dispatchEventImpl(Component.java:3586) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) From johnson.abraham at uwe.ac.uk Wed Jun 25 08:30:21 2003 From: johnson.abraham at uwe.ac.uk (Johnson Abraham) Date: Wed, 25 Jun 2003 13:30:21 +0100 Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation step in BCB6 Message-ID: <3EF995DD.6040107@uwe.ac.uk> Hi , Please help me with the problem. Iam using the binary version of VTK for windows. I use BCB6 . I tried to run example int the folder vtkBorland. But before that i tried to create the package I followed the instruction given by the readme.txt I was successfull till the step2 in step3 the following has to be done Options->Directories/Conditionals Include Path: /VTK/Common /VTK/Filtering /VTK/Rendering path to vtkConfigure.h (After installing binary version of there was no folder as mentioned above do i need to create them) I have problem with step4 as well it says Step4: Add->Add Unit->Browse Files of type: choose Library file (*.lib) vtkCommon.lib vtkFiltering.lib vtkRendering.lib I dont have the following tab to which i can add the library file mentioned Please do help with the step 3 and 4. thank you Johnson Abraham From eagleinshadow at yahoo.co.uk Wed Jun 25 08:45:04 2003 From: eagleinshadow at yahoo.co.uk (=?iso-8859-1?q?Kevin?=) Date: Wed, 25 Jun 2003 13:45:04 +0100 (BST) Subject: [vtkusers] VTK on windows Message-ID: <20030625124504.78736.qmail@web21409.mail.yahoo.com> Hello everyone, I have just installed the VTK 4.2 for windows. I don't know how to deal with those .dll files in \vtk42\bin Should I copy them somewhere? Will VTK find them automatically where they are. Thanks Kevin --------------------------------- Want to chat instantly with your online friends??Get the FREE Yahoo!Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.deBoer at polytec.de Wed Jun 25 08:51:17 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Wed, 25 Jun 2003 14:51:17 +0200 Subject: AW: [vtkusers] VTK on windows Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD986C9A5@02polywbr.waldbronn.polytec.de> Hi, > copy them somewhere? Will VTK find them automatically where they are. If you have used the setup.exe-package it will work, otherwise the vtk bin directory has to be in your environment path variable. greets Ingo From s.nagella at rl.ac.uk Wed Jun 25 09:17:18 2003 From: s.nagella at rl.ac.uk (Srikanth Nagella) Date: Wed, 25 Jun 2003 14:17:18 +0100 Subject: [vtkusers] Maximum Number of Triangles Message-ID: <3EF9A0DE.1000207@rl.ac.uk> Is there any limit to number of triangles that can be processed by VTK Many Thanks sri From johnson.abraham at uwe.ac.uk Wed Jun 25 09:20:37 2003 From: johnson.abraham at uwe.ac.uk (Johnson Abraham) Date: Wed, 25 Jun 2003 14:20:37 +0100 Subject: [vtkusers] pb with vtkborlandrenderwindow Message-ID: <3EF9A1A5.1010701@uwe.ac.uk> Hi , Please help with the following problem As iam new to VTK and BCB6 iam facing with follwoing problem, I have installed the binary version of vtk in windows. I am trying to create the package for borlandrender window and I facing difficulty, The instruction given in Readme.txt is advisable for BCB5 If anyone has created the BorlandRenderWindow package in BCB6 please do help me. My problem is : I followed the instruction given in readme.txt. In step 3 and 4 it asks for Include path: /VTK/Common /VTK/Filtering /VTK/Rendering path to vtkConfigure.h I can't find the above mentioned folder in installed vtk do i need to create them if so where? About step 4 i dont know where to add the library file mentioned vtkCommon.lib vtkFiltering.lib vtkRendering.lib Thank You Johnson Abraham From Said.El_Kasmi at sophia.inria.fr Wed Jun 25 09:29:39 2003 From: Said.El_Kasmi at sophia.inria.fr (Said.) Date: Wed, 25 Jun 2003 15:29:39 +0200 Subject: [vtkusers] How to use vtkPanel. Message-ID: <3EF9A3C3.E5D05ACF@sophia.inria.fr> I still have difficulties to use vtkPanel and vtkCanvas classes. I'm using vtk4.2. When having a look in vtk.jar, it seems that vtkPanel.class and vtkCanvas aren't included in the package. Sources files (vtkPanel.jar and vtkCanvas.java ) are located in VTK_DIR/Wrapping/Java/vtk/ directory. I compile them succefully and use vtkPanel to compile SimpleVTK.java file. Compilation is done succefully but when running, I got only a window with the "Exit" button. I hope get some help. From Yang at AGIUSA.COM Wed Jun 25 10:03:00 2003 From: Yang at AGIUSA.COM (Xianjin Yang) Date: Wed, 25 Jun 2003 09:03:00 -0500 Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation st ep in BCB6 Message-ID: <6AC51773FA304E469DEE9569AF903E5B16878C@mail.exchngsvr.agiusa.com> -----Original Message----- From: Johnson Abraham [mailto:johnson.abraham at uwe.ac.uk] Sent: Wednesday, June 25, 2003 7:30 AM To: vtkusers at www.vtk.org Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation step in BCB6 Hi , Please help me with the problem. Iam using the binary version of VTK for windows. I use BCB6 . I tried to run example int the folder vtkBorland. But before that i tried to create the package I followed the instruction given by the readme.txt I was successfull till the step2 in step3 the following has to be done Options->Directories/Conditionals Include Path: /VTK/Common /VTK/Filtering /VTK/Rendering path to vtkConfigure.h (After installing binary version of there was no folder as mentioned above do i need to create them) ------------------------- This is a very good question! These are source directories with *.h files. If you install VTK from binary version, I am afraid that you would not have these directories. You may download all header files if you do not have them and put them in a single directory and the add this directory to the "Include Path". Installation of VTK from binary may be a faster option because compilation of VTK with BCB6 takes over 2 hours on my 1GHz PC. Yang --------------------------- I have problem with step4 as well it says Step4: Add->Add Unit->Browse Files of type: choose Library file (*.lib) vtkCommon.lib vtkFiltering.lib vtkRendering.lib I dont have the following tab to which i can add the library file mentioned ----------------- Insead, you go to the menu Project | Add to Project, and choose Library file (*.lib) as Files of type. Yang ----------------- From dean.inglis at on.aibn.com Wed Jun 25 10:46:09 2003 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 25 Jun 2003 10:46:09 -0400 Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation step in BCB6 Message-ID: Xianjin, if you are using the vtk latest release binaries, you can find everything by first typing a DOS command in a Windows command prompt when in the root vtk42 directory: dir /S > my_vtk_dir_paths.txt For the BCB component, try linking to the libs in vtk42\lib\vtk and set the include path to vtk42\include\vtk. I'm not familiar with the latest release compile, but I would think that you would have to do a coff2omf on all the libs to make them compatable with Borland since they are probably generated with MSVC. Your best bet is to learn to build vtk from scratch (using a cvs checkout) with CMake using Borland as your compiler. I have a folder with nothing but cvs source checkouts: e.g. c:\Builder\Sources contains c:\Builder\Sources\VTK c:\Builder\Sources\ITK c:\Builder\Sources\CMake and I build out of source with CMake to a build dir: c:\Builder\Releases containing c:\Builder\Releases\vtkRelease etc. etc. If you do get the component built from the binary vtk distribution, post a note to the list or myself and I can update the readme instructions for the component. BTW, You will need WinCvs to do the checkout and cygwin if you are interested in doing scripted nightly builds. Dean From tk.sinha at vanderbilt.edu Wed Jun 25 10:34:55 2003 From: tk.sinha at vanderbilt.edu (Tuhin) Date: Wed, 25 Jun 2003 09:34:55 -0500 Subject: [vtkusers] VTK & kdevelop In-Reply-To: <200306251329.47813.nick.smethurst@free.fr> References: <3EF8957F.5010005@cs.ucl.ac.uk> <200306251329.47813.nick.smethurst@free.fr> Message-ID: <200306250934.55874.tk.sinha@vanderbilt.edu> It would be nice to have a KDevelop project generator in CMake. That way one could use the FIND_PACKAGE(VTK) directive in a CMakeLists.txt file and CMake would do all the hard work for you. I remember someone posting on this topic (i.e. KDevelop integration into CMake), but I haven't heard anything since. Does anyone have any info on the status, or lack thereof, of this project? Tuhin Sinha On Wednesday 25 June 2003 06:29, N Smethurst wrote: > Christos > > There's no problem using VTK classes in a c++ program developed with > KDevelop. my main activity involves a program developed with KDevelop > using QT/KDE & VTK. > > You can use VTK in the same way as any other shared library. Go into the > project options dialog, and add the following (this is for KDevelop 2.15): > > This assumes that VTK is installed in /usr > > In compiler options: > In Flags and Warnings: > C Preprocessor flags: -I/usr/include/vtk > C++ Compiler flags: -Wno-deprecated (this avoids all the deprecated > messages) > In Linker Flags > Additional flags: -L/usr/lib/vtk > -Wl,--rpath,/usr/lib/vtk > > In Linker Options: > Additional libraries: -lvtkIO -lvtkHybrid -lvtkGraphics -lvtkRendering > (and any others that you may need) > You probably need to select the math check box too. > > and that should be all you need to do apart from including the headers in > your program as normal like: > > #include > > Hope this helps. > > Nick > > Le Mardi 24 Juin 2003 20:16, Christos Panagiotou a ?crit : > > Hi > > > > I am having the following problem > > I have compiled the official version of VTK (not nightly release) > > I want to use some of its classes to a project i am working on (I am > > working with KDevelop (which I havent worked before)) > > However I dont know how to setup kdevelop to work with VTK > > Is it possible someone to explain to me how to set it up? > > for example how can I set up the paths for the .h files so kdevelop will > > see them etc. > > > > Maybe this is a kdevelop question but I think some of you must have done > > it! I would be greatful for any kind of help! > > > > thanks > > christos > > > > > > > > _______________________________________________ > > 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 -- Graduate Research Assistant Dept. Of BME Vanderbilt University 615-343-8261 From baghdadi at sickkids.ca Wed Jun 25 10:56:05 2003 From: baghdadi at sickkids.ca (Leila Baghdadi) Date: Wed, 25 Jun 2003 10:56:05 -0400 (EDT) Subject: [vtkusers] installing_problems In-Reply-To: <3EFA9600@webmail.ualberta.ca> Message-ID: Hi Nabby I think what you are missing is setting of the environment variables! in my .cshrc I have the following setenv PYTHONPATH ${VTK_DIR}/Wrapping/Python:${VTK_DIR}/bin:${VTK_DIR}/Examples/Build/vtkLocal/bin setenv TCLLIBPATH ${VTK_DIR}/Wrapping/Tcl:${VTK_DIR}/bin:${VTK_DIR}/Examples/Build/vtkLocal/bin:${LEILA_HOME}/Cable setenv LD_LIBRARY_PATH ${VTK_DIR}/bin:${VTK_DIR}/Examples/Build/vtkLocal/bin:${LEILA_HOME}/lib hope this helps Leila On Tue, 24 Jun 2003, cgarcha wrote: > I have compiled the official release and the nightly version of VTK but it > just doesnt seem to work . I am trying to run a tcl example, but when i click > on it, it tells me that i require "package vtk". does that mean that vtk wasnt > properly installed. > > Do i have to do anything after i build "all_build" . After vtk is installed > should i expect to see an icon or something like that. > > thanks > > Nabby > > > _______________________________________________ > 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 dean.inglis at on.aibn.com Wed Jun 25 11:01:29 2003 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 25 Jun 2003 11:01:29 -0400 Subject: [vtkusers] streaming & Intel P4 Hyperthread chip Message-ID: Ok, here's something new. I have a filter class inhereted from vtkImageToImageFilter that calculates the square root of each voxel's scalar value, pretty simple. This class works fine on two other Win2k Pro, P4 workstations. On the new PC: P4 3.06 GHz HT (hyper threading technology), I am trying to filter a 512 x 512 x 60 slice MRI data set but only the first 30 slices are passed through the filter. I am stumped! Should I check to see if the filter is streaming the data? Any ideas on how to debug this? (Borland BCB5, CMake 1.6.7, VTK cvs latest, Win2k Pro, NVIDIA GF4 Ti4800) thanks, Dean From eagleinshadow at yahoo.co.uk Wed Jun 25 11:14:14 2003 From: eagleinshadow at yahoo.co.uk (=?iso-8859-1?q?Kevin?=) Date: Wed, 25 Jun 2003 16:14:14 +0100 (BST) Subject: [vtkusers] Stereo in VTK Message-ID: <20030625151414.20524.qmail@web21410.mail.yahoo.com> Hello everyone, Can anyone tell me does VTK support Stereo? If yes, can you please briefly tell me how to do that? Thanks --------------------------------- Want to chat instantly with your online friends??Get the FREE Yahoo!Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From anast.jm at pg.com Wed Jun 25 11:40:46 2003 From: anast.jm at pg.com (anast.jm at pg.com) Date: Wed, 25 Jun 2003 11:40:46 -0400 Subject: [vtkusers] Stereo in VTK Message-ID: Kevin, Here's a short tcl script to demo stereo. Note you can use different types of stereo...I've used CrystalEyes glasses and Red/Blue with this script....comment/uncomment the method you want to try. When the script is run hitting the 3 key toggles stereo on and off...hope this helps....john package require vtk package require vtkinteraction # create a rendering window and renderer vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin StereoCapableWindowOn renWin SetStereoTypeToRedBlue #renWin SetStereoTypeToCrystalEyes renWin StereoRenderOn vtkRenderWindowInteractor iren iren SetRenderWindow renWin # create an actor and give it cone geometry vtkConeSource cone cone SetResolution 8 vtkPolyDataMapper coneMapper coneMapper SetInput [cone GetOutput] vtkActor coneActor coneActor SetMapper coneMapper # assign our actor to the renderer ren1 AddActor coneActor # enable user interface interactor iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize # prevent the tk window from showing up then start the event loop wm withdraw . Internet Mail Message Received from host: public.kitware.com [24.97.130.19] Kevin Sent by: vtkusers-admin at vtk.org 06/25/2003 11:14 AM To: VTK Maillist cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Stereo in VTK Hello everyone, Can anyone tell me does VTK support Stereo? If yes, can you please briefly tell me how to do that? Thanks Want to chat instantly with your online friends??Get the FREE Yahoo! Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxa at fluent.com Wed Jun 25 11:55:33 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Wed, 25 Jun 2003 11:55:33 -0400 Subject: [vtkusers] about vtkPoints::Squeeze() ... Message-ID: <014e01c33b32$36214720$8ae4e9c0@sxapc> If i create a vtkPoints initilized to store 15 points and i only put 5 points... Will calling Squeeze() free the unused memory space for the missing 10 points? From dean.inglis at on.aibn.com Wed Jun 25 12:00:25 2003 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 25 Jun 2003 12:00:25 -0400 Subject: [vtkusers] streaming & Intel P4 Hyperthread chip Message-ID: Here's some more info. I peppered in a few print statements to see what the filter thinks is the output extent and it turns out the filter is executing twice: once for each half of the stack of 60 image slices. The whole extent of the input/output is 0,511,0,511,0,59 and the filter executes: once: 0,511,0,511,0,29 twice: 0,511,0,511,30,59 How can i get around this? The reason is that in the filter a range of extent is calculated and needs the whole extent to do this correctly: for (idx0 = min0; idx0 <= max0; ++idx0) { inPtrC = inPtr0; outPtrC = outPtr0; for (idxC = 0; idxC < numComps; ++idxC) { value = static_cast(sqrt(*inPtrC)); *outPtrC = static_cast(value); //its looking at all the values if( value > threshold ) // if not a background value { vec.push_back(value); if(xmin>idx0){xmin = idx0;} if(xmaxidx1){ymin = idx1;} if(ymaxidx2){zmin = idx2;} if(zmax Dean From thomas at cs.uno.edu Wed Jun 25 12:23:38 2003 From: thomas at cs.uno.edu (thomas) Date: Wed, 25 Jun 2003 11:23:38 -0500 Subject: [vtkusers] problem with execute method Message-ID: <001501c33b36$22436220$b17a1e89@POWERVCL2> hi everybody i have a problem with the Execute method of my class. If i call it directly in a Tcl script, there is no problem but if I call via a write method (look at the script below) it doesn't launch it and says that there is an error. I domn't understand why in attached, I have put the files thanks thomas ********************* package require vtklocal vtkImageReaderDB inter inter SetFileName tazc inter SetBeginX 1 inter SetBeginY 1 inter SetEndX 199 inter SetEndY 189 inter SetXResolution 1 inter SetYResolution 1 puts [[inter GetOutput] GetNumberOfPoints] [inter GetOutput] Print vtkTIFFWriter w w SetInput [inter GetOutput] w SetFileName "points.tiff" w Write ***************** void vtkImageReaderDB::Execute() { cout<<"debut reader"<SetDimensions(DimX, DimY, 1); sp->SetOrigin(OriXval, OriYval, 0); sp->SetSpacing(DeltaX, DeltaY, 0); sp->SetScalarTypeToUnsignedChar(); this->GetOutput()->SetDimensions(DimX, DimY, 1); this->GetOutput()->SetOrigin(OriXval, OriYval, 0); this->GetOutput()->SetSpacing(DeltaX, DeltaY, 0); this->GetOutput()->SetScalarTypeToUnsignedChar(); //read the z value float *readValue; for (i = BeginY; i <= EndY; i = i + YResolution) { j = sprintf( lecture, "%s", "DECLARE mycursorb BINARY CURSOR FOR SELECT * FROM "); //changer le select * en select juste ce qui faut???? j += sprintf( lecture + j, "%s", Nameval); j += sprintf( lecture + j, "%s", " WHERE c0="); j += sprintf( lecture + j, "%d", i); res = PQexec(conn,lecture); if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) { fprintf(stderr, "DECLARE CURSOR command failed\n"); PQclear(res); PQfinish(conn); } PQclear(res); res = PQexec(conn, "FETCH ALL in mycursorb"); if (!res || PQresultStatus(res) != PGRES_TUPLES_OK) { fprintf(stderr, "FETCH ALL command didn't return tuples properly\n"); PQclear(res); PQfinish(conn); } cout<GetScalarPointer(j-1,i-1,0); readValue = (float *) PQgetvalue(res, 0, j); *pixel = (unsigned char) *readValue; unsigned char* pixelb = (unsigned char*) this->GetOutput()->GetScalarPointer(j-1,i-1,0); *pixelb = (unsigned char) *readValue; } /* close the cursor */ res = PQexec(conn, "CLOSE mycursorb"); PQclear(res); } //creating an image vtkTIFFWriter *tiff = vtkTIFFWriter::New(); tiff->SetFileName("taz.tif"); tiff->SetInput(sp); tiff->Write(); cout<GetFileName()< -------------- next part -------------- A non-text attachment was scrubbed... Name: interpB.tcl Type: application/octet-stream Size: 492 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkImageReaderDB.cxx Type: application/octet-stream Size: 9383 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkImageReaderDB.h Type: application/octet-stream Size: 3427 bytes Desc: not available URL: From dean.inglis at on.aibn.com Wed Jun 25 12:29:27 2003 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 25 Jun 2003 12:29:27 -0400 Subject: [vtkusers] streaming & Intel P4 Hyperthread chip - SOLVED! Message-ID: for anyone else experiencing similar extent splitting problems on systems with this chip: filter->SetNumberOfThreads(1); filter is inherited from vtkImageToImageFilter. Dean From eagleinshadow at yahoo.co.uk Wed Jun 25 12:29:36 2003 From: eagleinshadow at yahoo.co.uk (=?iso-8859-1?q?Kevin?=) Date: Wed, 25 Jun 2003 17:29:36 +0100 (BST) Subject: [vtkusers] CVS files Message-ID: <20030625162937.16165.qmail@web21407.mail.yahoo.com> Hello, I am new to CVS and don't know how to do with those files with extension .cxx . Can anyone brief instruct me how to do it? Many thanks kevin --------------------------------- Want to chat instantly with your online friends??Get the FREE Yahoo!Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From sepp.huber21 at gmx.at Wed Jun 25 12:30:20 2003 From: sepp.huber21 at gmx.at (Sepp^ Huber) Date: Wed, 25 Jun 2003 18:30:20 +0200 (MEST) Subject: [vtkusers] Reset scene Message-ID: <12137.1056558620@www53.gmx.net> Hi I'm currently developing an application using VTK with C++ under windows. After getting some input from a dialog I open a vtkRenderWindow and display some objects. Now I'd like to be able to reset the scene and display other objects according to certain settings I make in the dialog. Unfortunately I wasn't very successful yet. The way I tried was to delete the vtkRenderWindow object and the vtkRenderWindow object using their Delete() methods. Afterwards I tried to create new objects by calling their New() methods but this all results in a program crash with "stack overflow". Any help and tips would be greatly appreciated! Thanks in advance Chris -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From ming at ca.wai.com Wed Jun 25 12:51:10 2003 From: ming at ca.wai.com (Ming Xie) Date: Wed, 25 Jun 2003 09:51:10 -0700 Subject: [vtkusers] Use vtkVectorText Message-ID: Hi, I was trying to us vtkVectorText. The linker could not find vtkVectorText::New(). Which .lib is it in (I'm using vtk 4.0.)? Thanks, Ming -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.martin at cenpra.gov.br Wed Jun 25 12:50:11 2003 From: bruno.martin at cenpra.gov.br (Bruno) Date: Wed, 25 Jun 2003 13:50:11 -0300 Subject: [vtkusers] Importing Numarray object with vtkImageImport Message-ID: <3EF9D2C3.515DD621@cenpra.gov.br> Hi, I'm trying to import a Numarray object passing it direct do vtkImageImport it is like: import numarray a = numarray.array([...], 'type') i = vtkImageImport() ... i.CopyImportVoidPointer(a, size) TypeError: argument 1 must be string or read-only buffer, not NumArray I knowm that's possible to do it with Numeric python(and it was mentioned in this list as the 'Numeric trick' some months ago), but when I try with Numarray, that what happens. But if I do: i.CopyImportVoidPointer(a._data, size) it works!!! How can I do to direct pass the numarray object, whithout messing whith the protected methods (a._data)??? Do I have to change the numarray implementation or the vtkImageImport.cxx class?? thank's... Bruno Sousa Martin Centro de Pesquisas Renato Archer Campinas - Sao Paulo - Brasil From johnson.abraham at uwe.ac.uk Wed Jun 25 13:16:23 2003 From: johnson.abraham at uwe.ac.uk (Johnson Abraham) Date: Wed, 25 Jun 2003 18:16:23 +0100 Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation st ep in BCB6 In-Reply-To: <6AC51773FA304E469DEE9569AF903E5B16878C@mail.exchngsvr.agiusa.com> References: <6AC51773FA304E469DEE9569AF903E5B16878C@mail.exchngsvr.agiusa.com> Message-ID: <3EF9D8E7.6080204@uwe.ac.uk> Hi, Thank for ur help Yang. I tried as you have instucted me. During step4 when i add the *.lib files before compilation I get a pop up error "ONE OR MORE LINES WERE TOO LONG AND HAVE BEEN TRUNCATED" I ignored the error and proceeded with the compilation. I received five error and several warning I have listed to all the error and warning Build [C++ Warning] vtkViewport.h(78): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(84): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(92): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(99): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(106): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(119): W8027 Functions containing for are not expanded inline [C++ Warning] vtkViewport.h(125): W8027 Functions containing for are not expanded inline [C++ Warning] vtkProp3D.h(74): W8027 Functions containing for are not expanded inline [C++ Warning] vtkProp3D.h(101): W8027 Functions containing for are not expanded inline [C++ Warning] vtkProp3D.h(126): W8027 Functions containing for are not expanded inline [C++ Warning] vtkRenderer.h(161): W8027 Functions containing for are not expanded inline [C++ Warning] vtkRenderWindow.h(353): W8008 Condition is always false [C++ Warning] vtkRenderWindow.h(353): W8008 Condition is always false [C++ Warning] vtkRenderWindow.h(455): W8027 Functions containing switch are not expanded inline [C++ Error] vtkWin32OpenGLRenderWindow.h(120): E2238 Multiple declaration for 'vtkWin32OpenGLRenderWindow::SetWindowId(void *)' [C++ Error] vtkWin32OpenGLRenderWindow.h(116): E2344 Earlier declaration of 'vtkWin32OpenGLRenderWindow::SetWindowId(void *)' [C++ Error] vtkWin32OpenGLRenderWindow.h(125): E2238 Multiple declaration for 'vtkWin32OpenGLRenderWindow::SetParentId(void *)' [C++ Error] vtkWin32OpenGLRenderWindow.h(124): E2344 Earlier declaration of 'vtkWin32OpenGLRenderWindow::SetParentId(void *)' [C++ Warning] vtkRenderWindowInteractor.h(203): W8008 Condition is always false [C++ Warning] vtkRenderWindowInteractor.h(203): W8008 Condition is always false [C++ Warning] vtkRenderWindowInteractor.h(253): W8027 Functions containing some if statements are not expanded inline [C++ Warning] vtkBorlandRenderWindow.h(65): W8027 Functions containing switch are not expanded inline [C++ Warning] vtkInteractorStyle.h(268): W8027 Functions containing for are not expanded inline [C++ Warning] vtkInteractorStyleFlight.h(95): W8027 Functions containing for are not expanded inline [C++ Warning] vtkInteractorStyleFlight.h(96): W8027 Functions containing for are not expanded inline [Linker Fatal Error] Fatal: Unable to open file 'VTKBORLANDRENDERWINDOWPKG.OBJ' Please help me with what went wrong and solutions to the problem Thank you Johnson Abraham Xianjin Yang wrote: >-----Original Message----- >From: Johnson Abraham [mailto:johnson.abraham at uwe.ac.uk] >Sent: Wednesday, June 25, 2003 7:30 AM >To: vtkusers at www.vtk.org >Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation step in BCB6 > >Hi , > >Please help me with the problem. >Iam using the binary version of VTK for windows. I use BCB6 . >I tried to run example int the folder vtkBorland. But before that i >tried to create the package > >I followed the instruction given by the readme.txt >I was successfull till the step2 in step3 the following has to be done > >Options->Directories/Conditionals >Include Path: >/VTK/Common >/VTK/Filtering >/VTK/Rendering >path to vtkConfigure.h >(After installing binary version of there was no folder as mentioned >above do i need to create them) > >------------------------- >This is a very good question! These are source directories with *.h files. If >you install VTK from binary version, I am afraid that you would not have these >directories. You may download all header files if you do not have them and put >them in a single directory and the add this directory to the "Include Path". > >Installation of VTK from binary may be a faster option because compilation of >VTK with BCB6 takes over 2 hours on my 1GHz PC. > >Yang >--------------------------- > >I have problem with step4 as well it says > >Step4: >Add->Add Unit->Browse >Files of type: >choose Library file (*.lib) >vtkCommon.lib >vtkFiltering.lib >vtkRendering.lib >I dont have the following tab to which i can add the library file mentioned > >----------------- >Insead, you go to the menu Project | Add to Project, and choose Library file >(*.lib) as Files of type. > >Yang >----------------- >_______________________________________________ >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 bhiron at lsuhsc.edu Wed Jun 25 13:29:17 2003 From: bhiron at lsuhsc.edu (Budd Hirons) Date: Wed, 25 Jun 2003 12:29:17 -0500 Subject: [vtkusers] Reset scene In-Reply-To: <12137.1056558620@www53.gmx.net> Message-ID: <5.1.1.6.0.20030625121325.02653570@lsumc-med-exch2.med.lsuhsc.edu> Not sure about a Stack Overflow, but it is essential as a general rule that you remove all references to other VTK objects before you destroy and rebuild these render objects, including inputs, outputs and observers. I had difficulty doing this at one time, but the code below takes care of these issues for me. My render window is used to control a client RECT of my main application window, I am not using MFC. //this->renWin->Print( cout ); this->renWin->RemoveRenderer( this->renderer ); this->renWin->SetInteractor( NULL ); if( arcTag ) { //abort render callback observer this->renWin->RemoveObserver( arcTag ); arcTag = 0; } this->renInter->Delete(); this->renInter = NULL; //forces renderer to traverse its props and //tell them all to release window specific graphics resources this->renderer->SetRenderWindow( NULL ); //removes everything that was added as a prop this->renderer->RemoveAllProps(); this->renderer->Delete(); this->renderer = NULL; I haven't found it necessary to actually delete the renderWindow itself, just everything in it. After reading some of these you might try this route as well. http://public.kitware.com/pipermail/vtkusers/2003-February/016179.html http://public.kitware.com/pipermail/vtkusers/2003-February/016081.html Cheers, Budd. At 06:30 PM 6/25/2003 +0200, you wrote: >Hi I'm currently developing an application using VTK with C++ under windows. >After getting some input from a dialog I open a vtkRenderWindow and display >some objects. Now I'd like to be able to reset the scene and display other >objects according to certain settings I make in the dialog. > >Unfortunately I wasn't very successful yet. The way I tried was to delete >the vtkRenderWindow object and the vtkRenderWindow object using their Delete() >methods. Afterwards I tried to create new objects by calling their New() >methods but this all results in a program crash with "stack overflow". > >Any help and tips would be greatly appreciated! > >Thanks in advance >Chris > >-- >+++ GMX - Mail, Messaging & more http://www.gmx.net +++ >Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! > >_______________________________________________ >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 ajit_v_r at hotmail.com Wed Jun 25 13:58:54 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Wed, 25 Jun 2003 23:28:54 +0530 Subject: [vtkusers] artifacts while rendering 3d surface Message-ID: Hello, I am using the following piece of code to render a 3D surface given the X,Y,Z coordinates of several equi-sampled points of the surface . While rendering the surface, I get very weird artifacts. For instance, here is an attached file that contains a rendered sphere. I am unable to trace the bug, what could the cause be? The code is here: // Read all the vertices into an ARRAY called "mean" vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); renWin->SetSize (300,300); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); //Inserting points one by one vtkPoints *meanPoints = vtkPoints::New(); for (i=0;iInsertNextPoint(point); } // Create a data set. Load the starting points vtkPolyData *inputDataSet = vtkPolyData::New(); inputDataSet->SetPoints(meanPoints); // Construct the surface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(inputDataSet); printf ("\nSurface construction done..."); // Create isosurface (contour value of 0) vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput(surf->GetOutput()); cf->SetValue(0,0.0); // PolyNormals Filter to obtain normals for "Smooth Shading" vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); bNormals->SetInput(cf ->GetOutput()); //bNormals->SetFeatureAngle(180.0); // Creates Triangle strips from the Iso-surface vtkStripper *bStripper = vtkStripper::New(); bStripper->SetInput(bNormals->GetOutput()); // Create the mapper and actor and finish up the visualization pipeline vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(bStripper->GetOutput()); map->ScalarVisibilityOff(); //map->ImmediateModeRenderingOn (); cout << "Mapper construction done..." << endl; vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper( map ); surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, 0.3882, 0.2784 ); surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); surfaceActor->GetProperty()->SetSpecular(0.4); surfaceActor->GetProperty()->SetSpecularPower(50); ren->AddActor(surfaceActor); ren->SetBackground(1,1,1); cout << "Surface actor construction done..." << endl; // Interact with data renWin->Render(); iren->Initialize (); iren->Start (); printf ("\nPress any key"); scanf ("%d", &choice); // Clean up ren->RemoveActor (surfaceActor); meanPoints->Delete(); inputDataSet->Delete(); surf->Delete(); cf->Delete(); map->Delete(); surfaceActor->Delete(); ren->Delete(); renWin->Delete(); //iren->Delete (); _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp From ajit_v_r at hotmail.com Wed Jun 25 14:03:36 2003 From: ajit_v_r at hotmail.com (=?iso-8859-1?B?QWppdCBSYWp3YWTp?=) Date: Wed, 25 Jun 2003 23:33:36 +0530 Subject: [vtkusers] artifacts while rendering 3d surface Message-ID: Sorry....forgot to attach the file Hello, I am using the following piece of code to render a 3D surface given the X,Y,Z coordinates of several equi-sampled points of the surface . While rendering the surface, I get very weird artifacts. For instance, here is an attached file that contains a rendered sphere. I am unable to trace the bug, what could the cause be? The code is here: // Read all the vertices into an ARRAY called "mean" vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); renWin->SetSize (300,300); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); //Inserting points one by one vtkPoints *meanPoints = vtkPoints::New(); for (i=0;iInsertNextPoint(point); } // Create a data set. Load the starting points vtkPolyData *inputDataSet = vtkPolyData::New(); inputDataSet->SetPoints(meanPoints); // Construct the surface vtkSurfaceReconstructionFilter *surf = vtkSurfaceReconstructionFilter::New(); surf->SetInput(inputDataSet); printf ("\nSurface construction done..."); // Create isosurface (contour value of 0) vtkContourFilter *cf = vtkContourFilter::New(); cf->SetInput(surf->GetOutput()); cf->SetValue(0,0.0); // PolyNormals Filter to obtain normals for "Smooth Shading" vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); bNormals->SetInput(cf ->GetOutput()); //bNormals->SetFeatureAngle(180.0); // Creates Triangle strips from the Iso-surface vtkStripper *bStripper = vtkStripper::New(); bStripper->SetInput(bNormals->GetOutput()); // Create the mapper and actor and finish up the visualization pipeline vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(bStripper->GetOutput()); map->ScalarVisibilityOff(); //map->ImmediateModeRenderingOn (); cout << "Mapper construction done..." << endl; vtkActor *surfaceActor = vtkActor::New(); surfaceActor->SetMapper( map ); surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, 0.3882, 0.2784 ); surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); surfaceActor->GetProperty()->SetSpecular(0.4); surfaceActor->GetProperty()->SetSpecularPower(50); ren->AddActor(surfaceActor); ren->SetBackground(1,1,1); cout << "Surface actor construction done..." << endl; // Interact with data renWin->Render(); iren->Initialize (); iren->Start (); printf ("\nPress any key"); scanf ("%d", &choice); // Clean up ren->RemoveActor (surfaceActor); meanPoints->Delete(); inputDataSet->Delete(); surf->Delete(); cf->Delete(); map->Delete(); surfaceActor->Delete(); ren->Delete(); renWin->Delete(); //iren->Delete (); _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp -------------- next part -------------- A non-text attachment was scrubbed... Name: sphere.jpg Type: image/jpeg Size: 7707 bytes Desc: not available URL: From john.biddiscombe at mirada-solutions.com Wed Jun 25 14:12:25 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Wed, 25 Jun 2003 19:12:25 +0100 Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg creation st ep in BCB6 Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407131A@oxcore01.mirada-solutions.com> add conditional define "STRICT" in project options to get rid of the errors JB > -----Original Message----- > From: Johnson Abraham [mailto:johnson.abraham at uwe.ac.uk] > Sent: 25 June 2003 18:16 > To: Xianjin Yang; vtkusers at www.vtk.org > Subject: Re: [vtkusers] problem with > vtkBorlandRenderWindowpkg creation > st ep in BCB6 > > > Hi, > Thank for ur help Yang. > I tried as you have instucted me. > During step4 when i add the *.lib files before compilation I > get a pop > up error > "ONE OR MORE LINES WERE TOO LONG AND HAVE BEEN TRUNCATED" > I ignored the error and proceeded with the compilation. > I received five error and several warning I have listed to all the > error and warning > > Build > [C++ Warning] vtkViewport.h(78): W8027 Functions containing for are > not expanded inline > [C++ Warning] vtkViewport.h(84): W8027 Functions containing for are > not expanded inline > [C++ Warning] vtkViewport.h(92): W8027 Functions containing for are > not expanded inline > [C++ Warning] vtkViewport.h(99): W8027 Functions containing for are > not expanded inline > [C++ Warning] vtkViewport.h(106): W8027 Functions > containing for are > not expanded inline > [C++ Warning] vtkViewport.h(119): W8027 Functions > containing for are > not expanded inline > [C++ Warning] vtkViewport.h(125): W8027 Functions > containing for are > not expanded inline > [C++ Warning] vtkProp3D.h(74): W8027 Functions containing > for are not > expanded inline > [C++ Warning] vtkProp3D.h(101): W8027 Functions containing > for are not > expanded inline > [C++ Warning] vtkProp3D.h(126): W8027 Functions containing > for are not > expanded inline > [C++ Warning] vtkRenderer.h(161): W8027 Functions > containing for are > not expanded inline > [C++ Warning] vtkRenderWindow.h(353): W8008 Condition is > always false > [C++ Warning] vtkRenderWindow.h(353): W8008 Condition is > always false > [C++ Warning] vtkRenderWindow.h(455): W8027 Functions containing > switch are not expanded inline > [C++ Error] vtkWin32OpenGLRenderWindow.h(120): E2238 Multiple > declaration for 'vtkWin32OpenGLRenderWindow::SetWindowId(void *)' > [C++ Error] vtkWin32OpenGLRenderWindow.h(116): E2344 Earlier > declaration of 'vtkWin32OpenGLRenderWindow::SetWindowId(void *)' > [C++ Error] vtkWin32OpenGLRenderWindow.h(125): E2238 Multiple > declaration for 'vtkWin32OpenGLRenderWindow::SetParentId(void *)' > [C++ Error] vtkWin32OpenGLRenderWindow.h(124): E2344 Earlier > declaration of 'vtkWin32OpenGLRenderWindow::SetParentId(void *)' > [C++ Warning] vtkRenderWindowInteractor.h(203): W8008 Condition is > always false > [C++ Warning] vtkRenderWindowInteractor.h(203): W8008 Condition is > always false > [C++ Warning] vtkRenderWindowInteractor.h(253): W8027 Functions > containing some if statements are not expanded inline > [C++ Warning] vtkBorlandRenderWindow.h(65): W8027 Functions > containing > switch are not expanded inline > [C++ Warning] vtkInteractorStyle.h(268): W8027 Functions containing > for are not expanded inline > [C++ Warning] vtkInteractorStyleFlight.h(95): W8027 Functions > containing for are not expanded inline > [C++ Warning] vtkInteractorStyleFlight.h(96): W8027 Functions > containing for are not expanded inline > [Linker Fatal Error] Fatal: Unable to open file > 'VTKBORLANDRENDERWINDOWPKG.OBJ' > > Please help me with what went wrong and solutions to the problem > > Thank you > Johnson Abraham > > Xianjin Yang wrote: > > >-----Original Message----- > >From: Johnson Abraham [mailto:johnson.abraham at uwe.ac.uk] > >Sent: Wednesday, June 25, 2003 7:30 AM > >To: vtkusers at www.vtk.org > >Subject: [vtkusers] problem with vtkBorlandRenderWindowpkg > creation step in BCB6 > > > >Hi , > > > >Please help me with the problem. > >Iam using the binary version of VTK for windows. I use BCB6 . > >I tried to run example int the folder vtkBorland. But before that i > >tried to create the package > > > >I followed the instruction given by the readme.txt > >I was successfull till the step2 in step3 the following has > to be done > > > >Options->Directories/Conditionals > >Include Path: > >/VTK/Common > >/VTK/Filtering > >/VTK/Rendering > >path to vtkConfigure.h > >(After installing binary version of there was no folder as > mentioned > >above do i need to create them) > > > >------------------------- > >This is a very good question! These are source directories > with *.h files. If > >you install VTK from binary version, I am afraid that you > would not have these > >directories. You may download all header files if you do not > have them and put > >them in a single directory and the add this directory to the > "Include Path". > > > >Installation of VTK from binary may be a faster option > because compilation of > >VTK with BCB6 takes over 2 hours on my 1GHz PC. > > > >Yang > >--------------------------- > > > >I have problem with step4 as well it says > > > >Step4: > >Add->Add Unit->Browse > >Files of type: > >choose Library file (*.lib) > >vtkCommon.lib > >vtkFiltering.lib > >vtkRendering.lib > >I dont have the following tab to which i can add the library > file mentioned > > > >----------------- > >Insead, you go to the menu Project | Add to Project, and > choose Library file > >(*.lib) as Files of type. > > > >Yang > >----------------- > >_______________________________________________ > >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 brian at math.unm.edu Wed Jun 25 16:16:24 2003 From: brian at math.unm.edu (Brian Arnold) Date: Wed, 25 Jun 2003 14:16:24 -0600 Subject: [vtkusers] Question re: wxWindows/VTK Message-ID: <3EFA0318.9090505@math.unm.edu> Hello all, I've been perusing the web and the archives for information regarding this with little luck, so maybe I'm just searching for the wrong phrases. Hopefully someone here can help me out. I'm looking for a way to use VTK within the wxWindows interface. What bits I've found on the web seem okay, but I can't get them to compile (using MSVC 6). I've gotten the MFC-based VTK samples working alright, but I'm trying to re-write an application from MFC to wxWin, and it uses VTK incredibly heavily. Any assistance would be greatly appreciated. ~Brian From c.p.botha at ewi.tudelft.nl Wed Jun 25 17:28:40 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Wed, 25 Jun 2003 22:28:40 +0100 Subject: [vtkusers] CVS files In-Reply-To: <20030625162937.16165.qmail@web21407.mail.yahoo.com> References: <20030625162937.16165.qmail@web21407.mail.yahoo.com> Message-ID: <3EFA1408.4030905@ewi.tudelft.nl> Kevin wrote: > I am new to CVS and don't know how to do with those files with > extension .cxx . > > Can anyone brief instruct me how to do it? Those files aren't CVS specific. :) They're C++ files and contain the actual source code to VTK. By using CMake in conjunction with a C++ compiler and linker, you'll create libraries from them. From riveram_68 at yahoo.com Wed Jun 25 16:57:14 2003 From: riveram_68 at yahoo.com (Michael Rivera) Date: Wed, 25 Jun 2003 13:57:14 -0700 (PDT) Subject: [vtkusers] slow rendering for xyplot example Message-ID: <20030625205714.55395.qmail@web40411.mail.yahoo.com> Hi, I'm new to VTK but I've been playing with the examples for a couple of weeks now and I've found that the 2D plot example VTK_ROOT/Examples/Annotation/tcl/xyplot.tcl is very slow in rendering the XY plot. Is this common for all 2D Actor rendering or is this just this example? And if it is this example can be made fast/better? I've tried this in both Tcl/Tk and I've translated the code to C++ (without the user-defined interactor since I don't know how to do this yet). In C++ I also rendered two separate windows for the 3D wireframe and the XY plot, and the XY plot is excessively slow while the 3D picture renders quickly. Any suggestions will be greatly appreciated. Thanks, Mike Rivera __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From David.Pont at ForestResearch.co.nz Wed Jun 25 17:56:41 2003 From: David.Pont at ForestResearch.co.nz (David.Pont at ForestResearch.co.nz) Date: Thu, 26 Jun 2003 09:56:41 +1200 Subject: [vtkusers] Reset scene Message-ID: Hi Chris, are you sure you need to delete the RenderWindow? I would think you could keep the RenderWindow and Renderer, you probably just need to change what is sent to them. If you want to display different sets of objects you could just turn on/off visibility of actors (representing objects) vtkActor->SetVisibility(). This assumes the objects may be needed again later. If not you will want to get rid of the objects permanantley. Here is example code that destroys all actors, (you might want to just delete specific actors): vtkActorCollection *Actors = Renderer->GetActors(); vtkActor *Actor; for( Actors->InitTraversal(); (Actor = Actors->GetNextItem())!=NULL; ) { Renderer->RemoveActor( Actor ); } // clear the screen Renderer->Clear(); // clear to background colour Renderer-Render(); The key bit is RemoveActor, there is also a form of this function: RemoveActor( i ), where 0 <= i < nActors. I suppose i is in the order the were added. As long as your pipeline has been constructed correctly for reference counting, eg: ... Renderer-AddActor( actor1 ) actor1->Delete(); ... The call to RemoveActor should decrease the reference count of the actor, causing the whole 'upstream' pipeline to be destroyed (except for any parts having other 'downstream' connections). Dont forget to call Renderer->Render() to see the result after any changes to the pipeline. hope this helps Dave Pont Sepp^ Huber cc: Sent by: Subject: [vtkusers] Reset scene vtkusers-admin @vtk.org 26/06/2003 04:30 Hi I'm currently developing an application using VTK with C++ under windows. After getting some input from a dialog I open a vtkRenderWindow and display some objects. Now I'd like to be able to reset the scene and display other objects according to certain settings I make in the dialog. Unfortunately I wasn't very successful yet. The way I tried was to delete the vtkRenderWindow object and the vtkRenderWindow object using their Delete() methods. Afterwards I tried to create new objects by calling their New() methods but this all results in a program crash with "stack overflow". Any help and tips would be greatly appreciated! Thanks in advance Chris -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! _______________________________________________ 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 ramakrishna.prakash at quest-global.com Thu Jun 26 00:41:40 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Thu, 26 Jun 2003 10:11:40 +0530 Subject: [vtkusers] Using Vtk with java GUI. In-Reply-To: <3EF968B6.CFE7AE82@sophia.inria.fr> Message-ID: <003401c33b9d$3ccedcc0$de0ba8c0@qtwblr01.questglobal.com> Which version of Java are you using? Also which platform are you working on. -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Said. Sent: Wednesday, June 25, 2003 2:48 PM To: vtkusers Subject: [vtkusers] Using Vtk with java GUI. Hi, I'm looking for an examples using vtk with java GUI components. A find on the web the vtkPanel class ( It's not included in the vtk4.2 package ) but I have several problems when compiling it. Any examples will be welcome, Thanks. -- Said. INRIA - Projet CAIMAN. 2004, Route des Lucioles - BP 93 06902 Sophia Antipolis Cedex (France)- Tel: 04 92 38 79 07 Email: Said.El_kasmi at sophia.inria.fr _______________________________________________ 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 a.maclean at cas.edu.au Thu Jun 26 02:41:10 2003 From: a.maclean at cas.edu.au (Andrew J. P. Maclean) Date: Thu, 26 Jun 2003 16:41:10 +1000 Subject: [vtkusers] Changing the colour of the cursor wires. Message-ID: <000001c33bad$ee598110$9a0711ac@acfr.usyd.edu.au> In vtkBoxWidget is it possible to change the colour of the cursor wires? I would be grateful if someone could tell me how. If not, can I please request this as an enhancement? The problem is that the lines are not very clear against dark backgrounds. Is it possible to introduce functions like: virtual vtkProperty * SetOutlineCursorWiresProperty () virtual vtkProperty * GetOutlineCursorWiresProperty () Thanks Andrew ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.cas.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mathieu.Malaterre at creatis.insa-lyon.fr Thu Jun 26 04:51:10 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 26 Jun 2003 10:51:10 +0200 Subject: [vtkusers] Question re: wxWindows/VTK In-Reply-To: <3EFA0318.9090505@math.unm.edu> References: <3EFA0318.9090505@math.unm.edu> Message-ID: <3EFAB3FE.5050607@creatis.insa-lyon.fr> Brian, Did you tried wxVTKRenderWindowInteractor ? You'll find it here: http://www.creatis.insa-lyon.fr/~malaterre/wxVTK/ If you have problems compiling it, please report the whole message. (Don't forget to specify OS, vtk version, wx version ...) thanks, mathieu Brian Arnold wrote: > Hello all, > > I've been perusing the web and the archives for information regarding > this with little luck, so maybe I'm just searching for the wrong > phrases. Hopefully someone here can help me out. > > I'm looking for a way to use VTK within the wxWindows interface. What > bits I've found on the web seem okay, but I can't get them to compile > (using MSVC 6). I've gotten the MFC-based VTK samples working alright, > but I'm trying to re-write an application from MFC to wxWin, and it uses > VTK incredibly heavily. Any assistance would be greatly appreciated. > > ~Brian > > _______________________________________________ > 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 Mathieu.Malaterre at creatis.insa-lyon.fr Thu Jun 26 04:52:56 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 26 Jun 2003 10:52:56 +0200 Subject: [vtkusers] Use vtkVectorText In-Reply-To: References: Message-ID: <3EFAB468.9010503@creatis.insa-lyon.fr> Ming, If you want to use vtkVectorText you need to build the Hybrid lib. Start CMakeSetup again, and select Hybrid: On. REbuild all , you should be all set. HTH mathieu Ming Xie wrote: > Hi, > > > > I was trying to us vtkVectorText. The linker could not find > vtkVectorText::New(). Which .lib is it in (I?m using vtk 4.0.)? Thanks, > > > > Ming > -- 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 Thu Jun 26 04:55:25 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 26 Jun 2003 10:55:25 +0200 Subject: [vtkusers] Importing Numarray object with vtkImageImport In-Reply-To: <3EF9D2C3.515DD621@cenpra.gov.br> References: <3EF9D2C3.515DD621@cenpra.gov.br> Message-ID: <3EFAB4FD.6020309@creatis.insa-lyon.fr> Bruno, Please go into: VTK / Wrapping / Python / vtk / util And look for vtkImageImportFromArray.py HTH mathieu Bruno wrote: > Hi, > > I'm trying to import a Numarray object passing it direct do > vtkImageImport > it is like: > > import numarray > a = numarray.array([...], 'type') > i = vtkImageImport() > ... > i.CopyImportVoidPointer(a, size) > > TypeError: argument 1 must be string or read-only buffer, not NumArray > > I knowm that's possible to do it with Numeric python(and it was > mentioned > in this list as the 'Numeric trick' some months ago), but when I try > with Numarray, that what happens. But if I do: > > i.CopyImportVoidPointer(a._data, size) > > it works!!! How can I do to direct pass the numarray object, whithout > messing whith the protected methods (a._data)??? Do I have to change the > > numarray implementation or the vtkImageImport.cxx class?? > > thank's... > > Bruno Sousa Martin > Centro de Pesquisas Renato Archer > Campinas - Sao Paulo - Brasil > > _______________________________________________ > 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 Said.El_Kasmi at sophia.inria.fr Thu Jun 26 05:10:02 2003 From: Said.El_Kasmi at sophia.inria.fr (Said.) Date: Thu, 26 Jun 2003 11:10:02 +0200 Subject: [vtkusers] vtkPanel [RESOLVED] Message-ID: <3EFAB86A.33B356C4@sophia.inria.fr> Solution: 1 - Recompile vtk with testing option. 2 - add Wrapping/Java/vtk/*.class to the vtk.jar package ( jar -uvf vtk.jar vtk/ ) 3 - Have fun when runnig SimpleVTK example. From john.biddiscombe at mirada-solutions.com Thu Jun 26 06:23:35 2003 From: john.biddiscombe at mirada-solutions.com (John Biddiscombe) Date: Thu, 26 Jun 2003 11:23:35 +0100 Subject: [vtkusers] ANNOUNCE: rpd2.0.0.b1 available for download Message-ID: <4926A5BE4AFE7C4A83D5CF5CDA7B775407AF91@oxcore01.mirada-solutions.com> Skipping Mouse Software is pleased to announce the release of RPD (Rapid Pipeline Design) 2.0.0.1 beta (Personal Edition). www.skippingmouse.co.uk contains some information. Updates to the web site will be made quite soon. (NB the download link on the page is incorrect and will be fixed). The correct link to the windows installer of rpd is http://www.visual-technologies.co.uk/rpd/setup_rpd2.0.0.1.exe (11MB). Many thanks to Visual Technology Services Ltd. for lending me the space to place this file. If anyone else would like to provide a fast mirror of this file, then please let me know. I'd be very grateful for any feedback regarding rpd, both positive and negative. I am aware that many bugs still exist in rpd and there are many features that are not finished, however rpd can be used for many complex visualizations. Some demos are included, many more will be added in future releases. I have included a number of classes which form my "Propagation Toolkit" they are compiled into vtkPropagation and also vtkCustom dll's. At some point these will be separated out as "Add-ons" to rpd. If you are interested in these classes, then have a look at the propagation links on the SkippingMouse web site (also under construction) - a windows help file with the class details is linked there. Features which are soon to be added are Good volume Rendering transfer function editor Expand collapse of sub-pipeline with editing facilities Many bug fixes to screen layout Fixes to 2D actors especially text layout TCL scripting widget More Demos Yours John Biddiscombe From bernadette.louat2 at mail.dcu.ie Thu Jun 26 07:10:39 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Thu, 26 Jun 2003 12:10:39 +0100 Subject: [vtkusers] VtkRendering*.dll not created Message-ID: <005601c33bd3$93a7c5d0$07face88@ranma> I built VTK with Visual Studio .NET, everything is fine, but the 3 libraries VtkRendering*.dll are not created. What's wrong? did I forget an option in CMAKE? I'm using the last release 4.2.2 with the java options, on Win XP. Thanks in advance bernadette -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernadette.louat2 at mail.dcu.ie Thu Jun 26 07:17:38 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Thu, 26 Jun 2003 12:17:38 +0100 Subject: [vtkusers] VtkRendering*.dll not created References: <1484AEC8AB498A4EB64D4A8137D23FD986C9A7@02polywbr.waldbronn.polytec.de> Message-ID: <006401c33bd4$8d8e3ac0$07face88@ranma> yes, I know , and it is ON, that is why I don't understand?!!?! here is an extract of CMakeCache.text: //Use the ANSI standard iostream library. VTK_USE_ANSI_STDLIB:BOOL=ON //Build the vtkHybrid kit. VTK_USE_HYBRID:BOOL=OFF //Use mangled Mesa with OpenGL. VTK_USE_MANGLED_MESA:BOOL=OFF //Build the vtkParallel kit. VTK_USE_PARALLEL:BOOL=OFF //Build the vtkPatented kit. These classes are patented and may // require a license to use. VTK_USE_PATENTED:BOOL=ON //Build the vtkRendering kit. Needed for displaying data. VTK_USE_RENDERING:BOOL=ON //Use the system's expat library. VTK_USE_SYSTEM_EXPAT:BOOL=OFF //Use the system's jpeg library. VTK_USE_SYSTEM_JPEG:BOOL=OFF //Use the system's png library. VTK_USE_SYSTEM_PNG:BOOL=OFF //Use the system's tiff library. VTK_USE_SYSTEM_TIFF:BOOL=OFF //Use the system's zlib library. VTK_USE_SYSTEM_ZLIB:BOOL=OFF //Build VTK with VolumePro support. VTK_USE_VOLUMEPRO:BOOL=OFF //Where can the hints file be found VTK_WRAP_HINTS:FILEPATH=C:/soft/vtk/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=D:/Program Files/vtk42/bin/$(IntDir)/vtkWrapJava.exe //Wrap VTK classes into the Python language. VTK_WRAP_PYTHON:BOOL=OFF ----- Original Message ----- From: "de Boer Ingo" To: "Bernadette Louat" Sent: Thursday, June 26, 2003 12:15 PM Subject: AW: [vtkusers] VtkRendering*.dll not created > I built VTK with Visual Studio .NET, everything is fine, > but the 3 libraries VtkRendering*.dll are not created. Rendering is an option in CMake, also the java,tcl wrapper... greets Ingo From bernadette.louat2 at mail.dcu.ie Thu Jun 26 07:26:13 2003 From: bernadette.louat2 at mail.dcu.ie (Bernadette Louat) Date: Thu, 26 Jun 2003 12:26:13 +0100 Subject: [vtkusers] VtkRendering*.dll not created References: <1484AEC8AB498A4EB64D4A8137D23FD986C9A7@02polywbr.waldbronn.polytec.de> <006401c33bd4$8d8e3ac0$07face88@ranma> Message-ID: <008701c33bd5$c01880d0$07face88@ranma> Here is the error message I got when vtkRendering*.dll are supposed to be created: soft\vtk\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(357) : error C2666: 'pow' : 7 overloads have similar conversions d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): or 'long double pow(long double,long double)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): or 'float pow(float,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): or 'float pow(float,float)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): or 'double pow(int,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): or 'double pow(double,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): or 'double pow(double,double)' while trying to match the argument list '(int, float)' c:\soft\vtk\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(536) : error C2666: 'pow' : 7 overloads have similar conversions d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): or 'long double pow(long double,long double)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): or 'float pow(float,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): or 'float pow(float,float)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): or 'double pow(int,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): or 'double pow(double,int)' d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): or 'double pow(double,double)' while trying to match the argument list '(int, float)' Visual Studio does not know math.h??? ----- Original Message ----- From: "Bernadette Louat" To: "vtk users" Sent: Thursday, June 26, 2003 12:17 PM Subject: Re: [vtkusers] VtkRendering*.dll not created > yes, I know , and it is ON, that is why I don't understand?!!?! > here is an extract of CMakeCache.text: > //Use the ANSI standard iostream library. > VTK_USE_ANSI_STDLIB:BOOL=ON > > //Build the vtkHybrid kit. > VTK_USE_HYBRID:BOOL=OFF > > //Use mangled Mesa with OpenGL. > VTK_USE_MANGLED_MESA:BOOL=OFF > > //Build the vtkParallel kit. > VTK_USE_PARALLEL:BOOL=OFF > > //Build the vtkPatented kit. These classes are patented and may > // require a license to use. > VTK_USE_PATENTED:BOOL=ON > > //Build the vtkRendering kit. Needed for displaying data. > VTK_USE_RENDERING:BOOL=ON > > //Use the system's expat library. > VTK_USE_SYSTEM_EXPAT:BOOL=OFF > > //Use the system's jpeg library. > VTK_USE_SYSTEM_JPEG:BOOL=OFF > > //Use the system's png library. > VTK_USE_SYSTEM_PNG:BOOL=OFF > > //Use the system's tiff library. > VTK_USE_SYSTEM_TIFF:BOOL=OFF > > //Use the system's zlib library. > VTK_USE_SYSTEM_ZLIB:BOOL=OFF > > //Build VTK with VolumePro support. > VTK_USE_VOLUMEPRO:BOOL=OFF > > //Where can the hints file be found > VTK_WRAP_HINTS:FILEPATH=C:/soft/vtk/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=D:/Program > Files/vtk42/bin/$(IntDir)/vtkWrapJava.exe > > //Wrap VTK classes into the Python language. > VTK_WRAP_PYTHON:BOOL=OFF > ----- Original Message ----- > From: "de Boer Ingo" > To: "Bernadette Louat" > Sent: Thursday, June 26, 2003 12:15 PM > Subject: AW: [vtkusers] VtkRendering*.dll not created > > > > I built VTK with Visual Studio .NET, everything is fine, > > but the 3 libraries VtkRendering*.dll are not created. > Rendering is an option in CMake, also the java,tcl wrapper... > > 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 > From Mathieu.Malaterre at creatis.insa-lyon.fr Thu Jun 26 07:45:00 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Thu, 26 Jun 2003 13:45:00 +0200 Subject: [vtkusers] VtkRendering*.dll not created In-Reply-To: <008701c33bd5$c01880d0$07face88@ranma> References: <1484AEC8AB498A4EB64D4A8137D23FD986C9A7@02polywbr.waldbronn.polytec.de> <006401c33bd4$8d8e3ac0$07face88@ranma> <008701c33bd5$c01880d0$07face88@ranma> Message-ID: <3EFADCBC.3040102@creatis.insa-lyon.fr> Bernadette, This is a known bug which couldn't be fix on time for the 4.2.2 release. If you want you can download it from here: http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Rendering/vtkScalarBarActor.cxx?rev=1.50&content-type=text/plain&cvsroot=VTK&sortby=date HTH mathieu Bernadette Louat wrote: > Here is the error message I got when vtkRendering*.dll are supposed to be > created: > soft\vtk\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(357) : error C2666: 'pow' > : 7 overloads have similar conversions > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): > could be 'long double pow(long double,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): > or 'long double pow(long double,long double)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): > or 'float pow(float,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): > or 'float pow(float,float)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): > or 'double pow(int,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): > or 'double pow(double,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): > or 'double pow(double,double)' > > while trying to match the argument list '(int, float)' > > c:\soft\vtk\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(536) : error C2666: > 'pow' : 7 overloads have similar conversions > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): > could be 'long double pow(long double,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): > or 'long double pow(long double,long double)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): > or 'float pow(float,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): > or 'float pow(float,float)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): > or 'double pow(int,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): > or 'double pow(double,int)' > > d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): > or 'double pow(double,double)' > > while trying to match the argument list '(int, float)' > > Visual Studio does not know math.h??? > > > ----- Original Message ----- > > From: "Bernadette Louat" > To: "vtk users" > Sent: Thursday, June 26, 2003 12:17 PM > Subject: Re: [vtkusers] VtkRendering*.dll not created > > > >>yes, I know , and it is ON, that is why I don't understand?!!?! >>here is an extract of CMakeCache.text: >>//Use the ANSI standard iostream library. >>VTK_USE_ANSI_STDLIB:BOOL=ON >> >>//Build the vtkHybrid kit. >>VTK_USE_HYBRID:BOOL=OFF >> >>//Use mangled Mesa with OpenGL. >>VTK_USE_MANGLED_MESA:BOOL=OFF >> >>//Build the vtkParallel kit. >>VTK_USE_PARALLEL:BOOL=OFF >> >>//Build the vtkPatented kit. These classes are patented and may >>// require a license to use. >>VTK_USE_PATENTED:BOOL=ON >> >>//Build the vtkRendering kit. Needed for displaying data. >>VTK_USE_RENDERING:BOOL=ON >> >>//Use the system's expat library. >>VTK_USE_SYSTEM_EXPAT:BOOL=OFF >> >>//Use the system's jpeg library. >>VTK_USE_SYSTEM_JPEG:BOOL=OFF >> >>//Use the system's png library. >>VTK_USE_SYSTEM_PNG:BOOL=OFF >> >>//Use the system's tiff library. >>VTK_USE_SYSTEM_TIFF:BOOL=OFF >> >>//Use the system's zlib library. >>VTK_USE_SYSTEM_ZLIB:BOOL=OFF >> >>//Build VTK with VolumePro support. >>VTK_USE_VOLUMEPRO:BOOL=OFF >> >>//Where can the hints file be found >>VTK_WRAP_HINTS:FILEPATH=C:/soft/vtk/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=D:/Program >>Files/vtk42/bin/$(IntDir)/vtkWrapJava.exe >> >>//Wrap VTK classes into the Python language. >>VTK_WRAP_PYTHON:BOOL=OFF >>----- Original Message ----- >>From: "de Boer Ingo" >>To: "Bernadette Louat" >>Sent: Thursday, June 26, 2003 12:15 PM >>Subject: AW: [vtkusers] VtkRendering*.dll not created >> >> >> >>>I built VTK with Visual Studio .NET, everything is fine, >>>but the 3 libraries VtkRendering*.dll are not created. >> >>Rendering is an option in CMake, also the java,tcl wrapper... >> >>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 >> > > > _______________________________________________ > 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 Thu Jun 26 09:33:02 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Thu, 26 Jun 2003 19:03:02 +0530 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <3EF9790A.9060907@cdnorthamerica.com> Message-ID: <000001c33be7$7847a030$de0ba8c0@qtwblr01.questglobal.com> Jeff, I am running the application on Windows NT. I will test the same on Windows 2000 and check if it works. One more thing. vtkPanel occasionally crashes(may be once in 150 times or so) in the Render() method. Below is the exact location where crash occurs public synchronized void Render() { if (!rendering) { rendering = true; if (ren.VisibleActorCount() == 0) {rendering = false; return;} if (rw != null) { if (windowset == 0) { // set the window id and the active camera cam = ren.GetActiveCamera();//here the application crashes Is it because VTK is unable to find the active camera associated with vtkRenderer? Have you come across the same problem? below is the error message An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x24807FCD Function=vtkDataSetToPolyDataFilter::GetClassNameA+0x2577C Library=D:\apps\vtk42\bin\vtkFiltering.dll Current Java thread: at vtk.vtkRenderer.GetActiveCamera_23(Native Method) at vtk.vtkRenderer.GetActiveCamera(vtkRenderer.java:104) at vtk.vtkPanel.Render(vtkPanel.java:125) - locked <114A22A0> (a SourceViewer) at SourceViewer.Render()(SourceViewer.java:171) - locked <114A22A0> (a SourceViewer) Thanks Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Jeff Lee Sent: Wednesday, June 25, 2003 3:57 PM To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] VTK with JDK1.3.1_08 on which os are you compiling? I have seen this before on winnt and older versions of java. vtkPanel/Canvas are only dependent on jdk1.3 or greater. I think it is a winnt/jdk1.3 problem. -Jeff R K Shyamprakash wrote: >Jeff/Users, > I built VTK 4.2 with JDK1.3.1_08. The build completed successfully. But my >application would not run. It crashes with the following error message. Is >it that vtkPanel and vtkCanvas are not compatible with JDK version lower >than 1.4 or its because of some other problem? > >Thanks >Shyam > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616 >Function name=RtlLeaveCriticalSection >Library=C:\WINNT\System32\ntdll.dll > >Current Java thread: > at vtk.vtkPanel.UnLock(Native Method) > at vtk.vtkCanvas.mouseMoved(vtkCanvas.java:204) > at java.awt.Component.processMouseMotionEvent(Component.java:3751) > at java.awt.Component.processEvent(Component.java:3543) > at java.awt.Component.dispatchEventImpl(Component.java:2588) > at java.awt.Component.dispatchEvent(Component.java:2492) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:334) > at >java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchT >read.java:126) > at >java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThr >ad.java:93) > at >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) > > > _______________________________________________ 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 Thu Jun 26 09:36:05 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 26 Jun 2003 09:36:05 -0400 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <000001c33be7$7847a030$de0ba8c0@qtwblr01.questglobal.com> References: <000001c33be7$7847a030$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EFAF6C5.2010502@cdnorthamerica.com> R K Shyamprakash wrote: >Jeff, > I am running the application on Windows NT. I will test the same on >Windows 2000 and check if it works. > One more thing. vtkPanel occasionally crashes(may be once in 150 times or >so) in the Render() method. Below is the exact location where crash occurs > public synchronized void Render() > { > if (!rendering) > { > rendering = true; > if (ren.VisibleActorCount() == 0) {rendering = false; return;} > if (rw != null) > { > if (windowset == 0) > { > // set the window id and the active camera > cam = ren.GetActiveCamera();//here the application crashes > > Is it because VTK is unable to find the active camera associated with >vtkRenderer? Have you come across the same problem? below is the error >message > > no, it is likely due to the fact that some other thread is manipulating the data while you are trying to access it from the renderer. how does this happen - are you adding/removing SourceViewer from its parent? the only time windowset= 0 is before the first render or when the panel gets removed and added-back. -Jeff > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x24807FCD >Function=vtkDataSetToPolyDataFilter::GetClassNameA+0x2577C >Library=D:\apps\vtk42\bin\vtkFiltering.dll > >Current Java thread: > at vtk.vtkRenderer.GetActiveCamera_23(Native Method) > at vtk.vtkRenderer.GetActiveCamera(vtkRenderer.java:104) > at vtk.vtkPanel.Render(vtkPanel.java:125) > - locked <114A22A0> (a SourceViewer) > at SourceViewer.Render()(SourceViewer.java:171) > - locked <114A22A0> (a SourceViewer) >Thanks >Shyam > > > From tschnei1 at nd.edu Thu Jun 26 11:36:19 2003 From: tschnei1 at nd.edu (Todd Schneider) Date: Thu, 26 Jun 2003 10:36:19 -0500 Subject: [vtkusers] Re-Rendering Large Datasets Message-ID: <000001c33bf8$b0d149e0$6a304a81@DOORS> I have a large set of points (1,000x1,000) that is rendered, then the points scalars are recalculated, and then the points are rendered again. This can repeat hundreds of times. As the simulation continues, however, the scalar values for the points stop changing, resulting in enormous amounts of time being wasted re-rending points that do no change. I know the region where the points are no-longer changing, if that is of any help. Does anyone have any thoughts as to how to stop re-drawing these points every time through the simulation? Thanks in advance, Todd Schneider -------------- next part -------------- An HTML attachment was scrubbed... URL: From T.Hutton at eastman.ucl.ac.uk Thu Jun 26 11:53:10 2003 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Thu, 26 Jun 2003 16:53:10 +0100 Subject: [vtkusers] artifacts while rendering 3d surface In-Reply-To: Message-ID: <5.1.0.14.0.20030626164822.0301ac30@144.82.123.1> Hi Ajit, vtkSurfaceReconstructionFilter doesn't work terribly well I'm afraid. It needs the surface to be densely-sampled and quite noise-free. It also requires that the surface be closed (and probably some other things as well). There are some well-documented cases showing similar results to yours at: http://archive.ncsa.uiuc.edu/People/heiland/vtk/scatter/sphere/ You can try vtkPowerCrustSurfaceReconstruction, it works much better: http://www.eastman.ucl.ac.uk/~thutton/powercrust/ Tim. At 23:33 25/06/2003 +0530, Ajit Rajwad? wrote: >Sorry....forgot to attach the file > > >Hello, > >I am using the following piece of code to render a 3D surface given the >X,Y,Z coordinates of several equi-sampled points of the surface . While >rendering the surface, I get very weird artifacts. For instance, here is >an attached file that contains a rendered sphere. I am unable to trace >the bug, what could the cause be? > >The code is here: > > // Read all the vertices into an ARRAY called "mean" > > vtkRenderer *ren = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren); > renWin->SetSize (300,300); > > vtkRenderWindowInteractor *iren = > vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > //Inserting points one by one > vtkPoints *meanPoints = vtkPoints::New(); > for (i=0;i { > point[0] = Mean[i][0]; > point[1] = Mean[i][1]; > point[2] = Mean[i][2]; > meanPoints->InsertNextPoint(point); > } > > // Create a data set. Load the starting points > vtkPolyData *inputDataSet = vtkPolyData::New(); > inputDataSet->SetPoints(meanPoints); > > // Construct the surface > vtkSurfaceReconstructionFilter *surf = > vtkSurfaceReconstructionFilter::New(); > surf->SetInput(inputDataSet); > printf ("\nSurface construction done..."); > > // Create isosurface (contour value of 0) > vtkContourFilter *cf = vtkContourFilter::New(); > cf->SetInput(surf->GetOutput()); > cf->SetValue(0,0.0); > > // PolyNormals Filter to obtain normals for "Smooth Shading" > vtkPolyDataNormals *bNormals = vtkPolyDataNormals::New(); > bNormals->SetInput(cf ->GetOutput()); > //bNormals->SetFeatureAngle(180.0); > > // Creates Triangle strips from the Iso-surface > vtkStripper *bStripper = vtkStripper::New(); > bStripper->SetInput(bNormals->GetOutput()); > > // Create the mapper and actor and finish up the > visualization pipeline > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > map->SetInput(bStripper->GetOutput()); > map->ScalarVisibilityOff(); > //map->ImmediateModeRenderingOn (); > > cout << "Mapper construction done..." << endl; > > vtkActor *surfaceActor = vtkActor::New(); > surfaceActor->SetMapper( map ); > surfaceActor->GetProperty()->SetDiffuseColor( 1.0000, > 0.3882, 0.2784 ); > surfaceActor->GetProperty()->SetSpecularColor( 1, 1, 1 ); > surfaceActor->GetProperty()->SetSpecular(0.4); > surfaceActor->GetProperty()->SetSpecularPower(50); > > ren->AddActor(surfaceActor); > ren->SetBackground(1,1,1); > cout << "Surface actor construction done..." << endl; > > // Interact with data > renWin->Render(); > iren->Initialize (); > iren->Start (); > > printf ("\nPress any key"); > scanf ("%d", &choice); > > // Clean up > ren->RemoveActor (surfaceActor); > meanPoints->Delete(); > inputDataSet->Delete(); > surf->Delete(); > cf->Delete(); > map->Delete(); > surfaceActor->Delete(); > ren->Delete(); > renWin->Delete(); > //iren->Delete (); > >_________________________________________________________________ >MSN Search, le moteur de recherche qui pense comme vous ! >http://search.msn.fr/worldwide.asp > > From cgarcha at ualberta.ca Thu Jun 26 13:21:18 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Thu, 26 Jun 2003 11:21:18 -0600 Subject: [vtkusers] setting the path Message-ID: <3EFC8BC6@webmail.ualberta.ca> Somehow i cant seem to set the right path for using Tcl. The current path is set to : c:/vtk/wrapping/tcl;c:/vtk/bin;C:/vtk/Examples/Build/vtkLocal/bin whenever i try to invoke packages in TCLSH, it gives me an error saying Cant find package vtk. i see that the files are there .. can you think of another reason why this wont work . Is it possible that when i am running Cmake i am doing something wrong. If so can somebody please tell me the correct path that should be included while configuring files in cmake. I have followed all the instructions given in an article written by Rasmus Paulsen about instaling VTK on a Windows PC. I would appreciate any help that i can get. Thank You Nabby From malcolm at geovision.co.za Thu Jun 26 13:49:53 2003 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Thu, 26 Jun 2003 19:49:53 +0200 Subject: [vtkusers] setting the path References: <3EFC8BC6@webmail.ualberta.ca> Message-ID: <000901c33c0b$74822960$adf4fea9@bart> Hi Nabby Have you set your TCLLIBPATH environment variable? This needs to point to the wrapping/vtk dir for the packages (remember / and not \ for Tcl ). HTH Malcolm ----- Original Message ----- From: "cgarcha" To: Sent: Thursday, June 26, 2003 7:21 PM Subject: [vtkusers] setting the path > Somehow i cant seem to set the right path for using Tcl. > > The current path is set to : > > c:/vtk/wrapping/tcl;c:/vtk/bin;C:/vtk/Examples/Build/vtkLocal/bin > > whenever i try to invoke packages in TCLSH, it gives me an error saying > > Cant find package vtk. > > i see that the files are there .. can you think of another reason why this > wont work . Is it possible that when i am running Cmake i am doing something > wrong. If so can somebody please tell me the correct path that should be > included while configuring files in cmake. > > I have followed all the instructions given in an article written by Rasmus > Paulsen about instaling VTK on a Windows PC. > > I would appreciate any help that i can get. > > Thank You > > Nabby > > > _______________________________________________ > 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 asavm7 at uaa.alaska.edu Thu Jun 26 14:15:48 2003 From: asavm7 at uaa.alaska.edu (Anastasia Mironova) Date: Thu, 26 Jun 2003 10:15:48 -0800 Subject: [vtkusers] vtkVolume16Reader and isosurfaces Message-ID: <4ff3bb50293d.50293d4ff3bb@sentinel.uaa.alaska.edu> Hi everybody, I am trying to read in a file and draw isosurfaces using a v16 reader and my understaing of the situation was that the isosurface values or contour values that I could put there could be numbers up to 2 to the 16th power, however, when I actualy try to draw isosurfaces the maximum contour number that I can put in there is 2431 which I think is kind of a strange number... does anybody has a thought on this? please let me know, thanks, Anastasia From eric at ece.gatech.edu Thu Jun 26 14:41:05 2003 From: eric at ece.gatech.edu (Eric Pichon) Date: Thu, 26 Jun 2003 14:41:05 -0400 (EDT) Subject: [vtkusers] point data with vtkImageMarchingCubes and vtkContourFilter Message-ID: Hi All, I am trying to color the iso-surface of one vtkImageData (here: maskTree) with values from another vtkImageData (here: coloring). This is described in the vtk manual on a more general dataset. The idea is to attach the coloring scalar field as point field data to the vtkImageData that will be used to generate the iso-surface and then call SetScalarModeToUsePointFieldData() when instantiating the mapper. My problem is that this works very well with vtkContourFilter but does not seem to work for the more appropriate vtkImageMarchingCubes. It looks like vtkImageMarchingCubes (or vtkMarchingCubes) completely discards the point field data of its input. Have you ever experienced that ? Or am I doing something wrong ? Or is there a workaround ? Because my images are large (512^3) I would really like to use marching vtkImageMarchingCubes... Thanks for your help ! Eric ----- PS: I am using vtk 4.2.2 with Visual C++ 6.0. Here are the relevant parts of my pipeline: vtkShortArray *array = vtkShortArray::New(); int willBeDeletedIndependently=1; array->SetArray( (short *)coloring->GetScalarPointer(), coloring->GetNumberOfPoints(), willBeDeletedIndependently ); array->SetName("HU"); vtkPointData *pointData = maskTree->GetPointData(); pointData->AddArray( array ); // with vtkImageMarchingCubes point field data seems to be discarded ? // vtkContourFilter *iso = vtkContourFilter::New(); vtkImageMarchingCubes *iso = vtkImageMarchingCubes::New(); iso->SetInput( maskTree ); iso->SetValue( 0, 1.99 ); // stay close to the inside (label==2) iso->ComputeScalarsOn(); iso->ComputeNormalsOff(); iso->ComputeGradientsOff(); [...] vtkPolyDataMapper *isoMapper = vtkPolyDataMapper::New(); isoMapper->SetInput( normals->GetOutput() ); isoMapper->SetLookupTable( lookup ); isoMapper->UseLookupTableScalarRangeOn(); isoMapper->ScalarVisibilityOn(); isoMapper->SetScalarModeToUsePointFieldData(); isoMapper->ColorByArrayComponent("HU", 0); [...] From niu at mail.eecis.udel.edu Thu Jun 26 01:07:42 2003 From: niu at mail.eecis.udel.edu (Yanwei Niu) Date: Thu, 26 Jun 2003 01:07:42 -0400 (EDT) Subject: [vtkusers] Re: Questions about VTK installation with Python and Tcl/tk In-Reply-To: Message-ID: Hi, Everyone, Trying the debug the problem, I tried to look the Makefile at each subdiretory of VTK, I fould the Makefile seems has some place messed up. for example: in Common/Makefile, in the following command, the /usr/local/python/lib should not apprear without L ahead. Anyone know what is the reason the ccmake generate such a wrong (maybe I am wrong) file? I had to modify each Makefile in the subdirectory to delete /usr/local/python/lib without L before it. #--------------------------------------------------------- # shared module # /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so: $(vtkCommonPython_SRC_OBJS) $(vtkCommonPython_DEPEND_LIBS) echo "Building shared module /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so..." $(RM) /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so CC -KPIC -G -o /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so $(vtkCommonPython_SRC_OBJS) -L. -L/m/usa/niu/VTK/VTK-4.2.2/bin -L/usr/local/python/lib /usr/local/python/lib -lvtkCommon -lthread -ldl -lm -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usr/local/python/lib #--------------------------------------------------------- # shared library # /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so: $(vtkCommonTCL_SRC_OBJS) $(vtkCommonTCL_DEPEND_LIBS) echo "Building shared library /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so..." $(RM) /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so CC -KPIC -G -o /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so $(vtkCommonTCL_SRC_OBJS) -L. -L/m/usa/niu/VTK/VTK-4.2.2/bin -L/usa/niu/tcl/install/lib /usa/niu/tcl/install/lib -lvtkCommon -lthread -ldl -lm -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usa/niu/tcl/install/lib # Start of source group "Header Files" #--------------------------------------------------------- Yours Sincerely Yanwei Niu On Wed, 25 Jun 2003, Yanwei Niu wrote: > HI, Everyone: > Please help me with the VTk installation: > > > Version: ccmake 1.6, VTK 4.2.2, python 2.3, tcl/tk 8.4 > > When I try to make in the VTK directory, I have the following msg: > > > In ccmake I used the following setting: > > > BUILD_EXAMPLES OFF > BUILD_SHARED_LIBS ON > CMAKE_BACKWARDS_COMPATIBILITY 1.6 > CMAKE_BUILD_TYPE > CMAKE_INSTALL_PREFIX /usa/niu/cmake > PYTHON_INCLUDE_PATH /usa/niu/python/Python-2.2.3/Include > PYTHON_LIBRARY /usa/niu/python > PYTHON_UTIL_LIBRARY /usa/niu/python > TCL_INCLUDE_PATH /m/ecsb/solaris/tcl-tk8.0/include > TCL_LIBRARY /usa/niu/tcl/install/lib > TK_INCLUDE_PATH /m/ecsb/solaris/tcl-tk8.0/include > TK_LIBRARY /usa/niu/tcl/tkinstall/lib > VTK_DATA_ROOT /usa/niu/VTK/VTKData-release-4-2 > VTK_USE_HYBRID ON > VTK_USE_PARALLEL ON > VTK_USE_PATENTED ON > VTK_USE_RENDERING ON > VTK_WRAP_JAVA OFF > VTK_WRAP_PYTHON ON > VTK_WRAP_TCL ON > > I used CC as my c++ compiler. > > The error msg is as follows, sorry for it is too long. > It seems it could find the correct python library. I tried different > ways to the library path in the ccmake (parent dir, child dir and so > on), neither of them works. Now can anyone tell me how the setup the > python library and utilities library path, same to the tcl/tk library > path. > > > > > If I change wrap_python to off, then I will encounter same problem with tcl/tk. > > What does the error "elf_begin: I/O error: region read: Is > a directory " mean? > > Thanks a lot. > > > ----------------------------------------------------------------------------------------- > ---------------------------------------------------------------------------------------- > > Building shared module > /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so... > ld: elf error: file /usa/niu/python: elf_begin: I/O error: region read: Is > a directory > ld: fatal: File processing errors. No output written to > /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so > *** Error code 1 > The following command caused the error: > CC -KPIC -G -o /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so > vtkCommonPythonInit.o vtkAbstractMapperPython.o > vtkAbstractTransformPython.o vtkActor2DPython.o > vtkActor2DCollectionPython.o vtkAmoebaMinimizerPython.o > vtkAssemblyNodePython.o vtkAssemblyPathPython.o vtkAssemblyPathsPython.o > vtkBitArrayPython.o vtkByteSwapPython.o vtkCellPython.o > vtkCell3DPython.o vtkCellArrayPython.o vtkCellDataPython.o > vtkCellLinksPython.o vtkCellTypesPython.o vtkCharArrayPython.o > vtkCollectionPython.o vtkCollectionIteratorPython.o > vtkContourValuesPython.o vtkConvexPointSetPython.o vtkCoordinatePython.o > vtkCriticalSectionPython.o vtkCylindricalTransformPython.o > vtkDataArrayPython.o vtkDataArrayCollectionPython.o > vtkDataArrayCollectionIteratorPython.o vtkDataArraySelectionPython.o > vtkDataObjectPython.o vtkDataObjectCollectionPython.o vtkDataSetPython.o > vtkDataSetAttributesPython.o vtkDataSetCollectionPython.o > vtkDebugLeaksPython.o vtkDirectoryPython.o vtkDoubleArrayPython.o > vtkDynamicLoaderPython.o vtkEdgeTablePython.o vtkEmptyCellPython.o > vtkExplicitCellPython.o vtkExtentTranslatorPython.o vtkFieldDataPython.o > vtkFileOutputWindowPython.o vtkFloatArrayPython.o > vtkFunctionParserPython.o vtkFunctionSetPython.o > vtkGeneralTransformPython.o vtkGenericCellPython.o vtkHeapPython.o > vtkHexahedronPython.o vtkHomogeneousTransformPython.o vtkIdListPython.o > vtkIdListCollectionPython.o vtkIdTypeArrayPython.o > vtkIdentityTransformPython.o vtkImageDataPython.o > vtkImplicitFunctionPython.o vtkImplicitFunctionCollectionPython.o > vtkIndentPython.o vtkInitialValueProblemSolverPython.o > vtkInstantiatorPython.o vtkIntArrayPython.o > vtkInterpolatedVelocityFieldPython.o vtkLinePython.o > vtkLinearTransformPython.o vtkLocatorPython.o vtkLogLookupTablePython.o > vtkLongArrayPython.o vtkLookupTablePython.o vtkMapper2DPython.o > vtkMathPython.o vtkMatrix4x4Python.o > vtkMatrixToHomogeneousTransformPython.o > vtkMatrixToLinearTransformPython.o vtkMultiPartExtentTranslatorPython.o > vtkMultiThreaderPython.o vtkMutexLockPython.o vtkNonLinearCellPython.o > vtkObjectPython.o vtkObjectBasePython.o vtkObjectFactoryPython.o > vtkObjectFactoryCollectionPython.o vtkOrderedTriangulatorPython.o > vtkOutputWindowPython.o vtkOverrideInformationPython.o > vtkOverrideInformationCollectionPython.o vtkPerspectiveTransformPython.o > vtkPixelPython.o vtkPlanePython.o vtkPlaneCollectionPython.o > vtkPlanesPython.o vtkPointDataPython.o vtkPointLocatorPython.o > vtkPointSetPython.o vtkPointsPython.o vtkPolyDataPython.o > vtkPolyLinePython.o vtkPolyVertexPython.o vtkPolygonPython.o > vtkPriorityQueuePython.o vtkProcessObjectPython.o vtkPropPython.o > vtkPropAssemblyPython.o vtkPropCollectionPython.o vtkProperty2DPython.o > vtkPyramidPython.o vtkQuadPython.o vtkQuadraticEdgePython.o > vtkQuadraticHexahedronPython.o vtkQuadraticQuadPython.o > vtkQuadraticTetraPython.o vtkQuadraticTrianglePython.o > vtkQuadricPython.o vtkRectilinearGridPython.o vtkReferenceCountPython.o > vtkRungeKutta2Python.o vtkRungeKutta4Python.o vtkRungeKutta45Python.o > vtkScalarsToColorsPython.o vtkShortArrayPython.o vtkSourcePython.o > vtkSphericalTransformPython.o vtkStructuredDataPython.o > vtkStructuredGridPython.o vtkStructuredPointsPython.o > vtkTableExtentTranslatorPython.o vtkTensorPython.o vtkTetraPython.o > vtkTimeStampPython.o vtkTimerLogPython.o vtkTransformPython.o > vtkTransformCollectionPython.o vtkTrianglePython.o > vtkTriangleStripPython.o vtkUnsignedCharArrayPython.o > vtkUnsignedIntArrayPython.o vtkUnsignedLongArrayPython.o > vtkUnsignedShortArrayPython.o vtkUnstructuredGridPython.o > vtkVersionPython.o vtkVertexPython.o vtkViewportPython.o > vtkVoidArrayPython.o vtkVoxelPython.o vtkWarpTransformPython.o > vtkWedgePython.o vtkWindowPython.o vtkWindowLevelLookupTablePython.o > vtkXMLFileOutputWindowPython.o vtkPythonUtil.o -L. > -L/m/usa/niu/VTK/VTK-4.2.2/bin -L/usa/niu/python /usa/niu/python > -lvtkCommon -lthread -ldl -lm > -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usa/niu/python > > > > > > > > > Yours Sincerely > Yanwei Niu > > > From cgarcha at ualberta.ca Thu Jun 26 14:41:19 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Thu, 26 Jun 2003 12:41:19 -0600 Subject: [vtkusers] (still) setting the path Message-ID: <3EFD22A8@webmail.ualberta.ca> the TCLLIBPATH looks like: C:/VTK/Wrapping/Tcl The file i am trying to open has a path ... C:\VTK\Examples\GUI\Tcl this directory is made when i unzip vtk file found on the website. Every timei try to access the file it says "cant find package vtk" i also tried the command "package require vtk" on the "wish84" console and it gives me the same error, "cant find package vtk". Although the command "package require vtk" does work when i open "vtk.exe". This probably means that i havent set the path right .. But i dont understand which i am missing . Is there a list of paths.. That have to be set before executing any of the programs. I just want to see how VTK works... thats why i am trying to run the example. Thanks Nabby From gte631d at mail.gatech.edu Thu Jun 26 14:56:55 2003 From: gte631d at mail.gatech.edu (gte631d at mail.gatech.edu) Date: Thu, 26 Jun 2003 14:56:55 -0400 Subject: [vtkusers] Thresholding an image using VTK from PYTHON. In-Reply-To: <20030626184202.6322.57521.Mailman@public.kitware.com> References: <20030626184202.6322.57521.Mailman@public.kitware.com> Message-ID: <1056653815.3efb41f70e108@webmail.mail.gatech.edu> Hi All, I'm having a problem, with something that should be pretty straighforward. Purpose: to perform a simple threshold on a vtkImageData(3D by nature) object Problem: The output of the vtkImgeThreshold object looks like an "empty" image. By "Empty" I mean the Image information of the output from vtkImageThreshold Object is similar to the image information of emptyimage = vtkImageData() Obviously I am doing somethig wrong (or making a wrong assumption). Please help! Current method (that look's ok, but doesn't work): #-------------- Begin current test code Segment ----------------------------- # **Assume that the image we want to operate on is called "inim"<--INPUT IMAGE print inim.GetClassName() ##RETRUNS: vtkImageData ##we can also get info about the dimensions, spacing, etc print inim.GetPointData().GetScalars() ##RETURNS a lot of info including the Number of Tuples. ##Now we want to do a simple threshold thim = vtkImageThreshold() thim.SetInput(inim) thim.ThresholdByUpper(45) thim.SetInValue(1) thim.SetOutValue(0) thim.SetOutputScalarTypeToShort() threshout = thim.GetOutput() print threshout.GetPointData().GetScalars() ##Returns "NONE" ## other than for the ClassName of threshout being vtkImageData, it holds no ## similarity (in structure or scalars) to inim. ### What I am trying to get is threshout, such that it is identical in structure to inim, ### but whose scalar are thresholded according to the parameters set in thim, which a ### a vtkImageThreshold object #----------------- End Problem Statement ------------------------ #--------- The following Display functions are handy to see necessary info ----- def PrintImageInfo(inim): print "GetClassName() = ", inim.GetClassName() print "GetDataDimension() = ", inim.GetDataDimension() print "GetScalarSize() = ", inim.GetScalarSize() print "GetNumberOfScalarComponents() = ",\ inim.GetNumberOfScalarComponents() print "GetDimensions() = ", inim.GetDimensions() print "GetSpacing() = ", inim.GetSpacing() print "GetOrigin() = ", inim.GetOrigin() print "GetExtent() = ", inim.GetExtent() print "GetScalarRange() = ", inim.GetScalarRange() print "GetScalarTypeMax () = ", inim.GetScalarTypeMax() print "GetScalarTypeMin () = ", inim.GetScalarTypeMin() print "GetPointData().GetScalars() :" print inim.GetPointData().GetScalars() def PrintImageScalars(inim): print "Print the //Planes// of the 3D mtx" dims = inim.GetDimensions() print dims fill_val = 0 for zz in range(0, dims[2]): for yy in range(0, dims[1]): for xx in range(0, dims[0]): print inim.GetScalarComponentAsFloat(xx, yy, zz, 0), print print def PrintImageThreshObjInfo (thim): print "GetReplaceIn () = ", thim.GetReplaceIn () print "GetInValue () = ", thim.GetInValue () print "GetReplaceOut () = ",thim.GetReplaceOut () print "GetOutValue () = ", thim.GetOutValue () print "GetUpperThreshold () = ", thim.GetUpperThreshold () print "GetLowerThreshold () = ", thim.GetLowerThreshold () print "GetOutputScalarType () = ", thim.GetOutputScalarType () #--------------- End Display Functions ----------------------------------------- **Please let me know how I could threshold an image (vtkImageData) in python and get a valid output. Thanks, Sarju From cgarcha at ualberta.ca Thu Jun 26 16:07:13 2003 From: cgarcha at ualberta.ca (cgarcha) Date: Thu, 26 Jun 2003 14:07:13 -0600 Subject: [vtkusers] (still) setting the path Message-ID: <3EFDC65B@webmail.ualberta.ca> the TCLLIBPATH looks like: C:/VTK/Wrapping/Tcl The file i am trying to open has a path ... C:\VTK\Examples\GUI\Tcl this directory is made when i unzip vtk file found on the website. Every timei try to access the file it says "cant find package vtk" i also tried the command "package require vtk" on the "wish84" console and it gives me the same error, "cant find package vtk". Although the command "package require vtk" does work when i open "vtk.exe". This probably means that i havent set the path right .. But i dont understand which i am missing . Is there a list of paths.. That have to be set before executing any of the programs. I just want to see how VTK works... thats why i am trying to run the example. Thanks Nabby From joettaa at hotmail.com Thu Jun 26 17:47:07 2003 From: joettaa at hotmail.com (Joetta Anderson) Date: Thu, 26 Jun 2003 14:47:07 -0700 Subject: [vtkusers] Building VTK with Visual Studio.NET 2003 on Windows XP Message-ID: Hello, Am trying to build VTK4.2 on Windows XP using Visual Studio.NET 2003 (Academic version), but am getting the following errors: vtk\Rendering\vtkScalarBarActor.cxx(357): error C2666: 'pow': 7 overloads have similar conversions vtk\Rendering\vtkScalarBarActor.cxx(536): error C2666: 'pow': 7 overloads have similar conversions C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(620): could be 'long double pow(long double, int)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(618): or 'long double pow (long double, long double)' pow(long double, int)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(572): or 'float pow (float, int)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(570): or 'float pow (float, float)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(534): or 'double pow (int, int)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(532): or 'double pow (double, int)' C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\include\math.h(195): or 'double pow (double, double)' while trying to match the argument list '(int, float)' HybridCxxTests fatal error LNK1181: cannot open input file 'vtkRendering.lib' GraphicsCxxTests fatal error LNK1181: cannot open input file 'vtkRendering.lib' ImagingCxxTests fatal error LNK1181: cannot open input file 'vtkRendering.lib' RenderingCxxTests fatal error LNK1181: cannot open input file 'vtkRendering.lib' TimeRenderer fatal error LNK1181: cannot open input file 'vtkRendering.lib' TimeRenderer2 fatal error LNK1181: cannot open input file 'vtkRendering.lib' Have successfully built VTK4.2 on Windows 2000 using Visual Studio.Net 2002 Professional where am working, however, would like to be able to work with VTK at home too. Are these errors associated with VTK problem, Microsoft problem (operating system vs. Visual Studio.NET), or possibly CMake??? Any suggestions would be much appreciated. Thanks, Joetta _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From prabhu at aero.iitm.ernet.in Thu Jun 26 21:40:12 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 27 Jun 2003 07:10:12 +0530 Subject: [vtkusers] Thresholding an image using VTK from PYTHON. In-Reply-To: <1056653815.3efb41f70e108@webmail.mail.gatech.edu> References: <20030626184202.6322.57521.Mailman@public.kitware.com> <1056653815.3efb41f70e108@webmail.mail.gatech.edu> Message-ID: <16123.41084.228367.722184@monster.linux.in> >>>>> "gte631d" == gte631d writes: gte631d> Hi All, I'm having a problem, with something that should gte631d> be pretty straighforward. ##Now we want to do a simple threshold thim = vtkImageThreshold() thim.SetInput(inim) thim.ThresholdByUpper(45) thim.SetInValue(1) thim.SetOutValue(0) thim.SetOutputScalarTypeToShort() threshout = thim.GetOutput() print threshout.GetPointData().GetScalars() ##Returns "NONE" You need to update the pipeline. Before you do threshout = thim.GetOutput() add this line: thim.Update() cheers, prabhu From amitt at tataelxsi.co.in Fri Jun 27 01:49:30 2003 From: amitt at tataelxsi.co.in (Amit Tikekar) Date: Fri, 27 Jun 2003 11:19:30 +0530 Subject: [vtkusers] Patented VTK source code. Message-ID: <002101c33c6f$e15cd620$220a010a@telxsi.com> Hi, What are the terms & conditions involved in making use of the patented VTK code ? How much does it cost ? Expecting your reply. - Amit From I.deBoer at polytec.de Fri Jun 27 02:05:38 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Fri, 27 Jun 2003 08:05:38 +0200 Subject: AW: [vtkusers] Building VTK with Visual Studio.NET 2003 on Windows XP Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD986C9A9@02polywbr.waldbronn.polytec.de> Hi Joetta, this has been posted for several times and it is in the archives: This is a known bug which couldn't be fix on time for the 4.2.2 release. If you want you can download it from here: http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Rendering/vtkScalarBarActor.cxx?rev=1.50&content-type=text/plain&cvsroot=VTK&sortby=date greets Ingo From vermaas at astron.nl Fri Jun 27 02:42:25 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 27 Jun 2003 08:42:25 +0200 Subject: [vtkusers] picking in a volume rendered with raycastMIP Message-ID: Hi, I have rendered a volume with raycastMIP, so that I can see the maximum values from within my cube projected on the outside. Is it possible to put the mouse pointer on one of those white spots and then get information about which x,y,z was responsible for that maximum? see: http://213.93.8.79/mips.jpg, the left window Nico From Mathieu.Malaterre at creatis.insa-lyon.fr Fri Jun 27 03:56:19 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Fri, 27 Jun 2003 09:56:19 +0200 Subject: [vtkusers] Patented VTK source code. In-Reply-To: <002101c33c6f$e15cd620$220a010a@telxsi.com> References: <002101c33c6f$e15cd620$220a010a@telxsi.com> Message-ID: <3EFBF8A3.4080104@creatis.insa-lyon.fr> Amit, You may have a look at: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp HTH mathieu Amit Tikekar wrote: > Hi, > > What are the terms & conditions involved in making use of the patented VTK > code ? How much does it cost ? > > Expecting your reply. > - Amit > > _______________________________________________ > 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 I.deBoer at polytec.de Fri Jun 27 04:39:57 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Fri, 27 Jun 2003 10:39:57 +0200 Subject: [vtkusers] Interactor still interacts... why ? Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD984EECC@02polywbr.waldbronn.polytec.de> Hi, I am trying to write my own windows interactor. But it seems that only overwriting the OnButton function isn't enough ?! What more to do ? I have written a small sample based on the cube example. Allthough I have overwritten all the functions I can still interact with my mouse. Debugging showed, that the functions from vtkRenderWindowInteractor are called and not from vtkMyInteractor !! any hints ? thanks, Ingo ############################################################################# class vtkMyInteractor : public vtkRenderWindowInteractor { public: vtkMyInteractor::vtkMyInteractor() : vtkRenderWindowInteractor() {} vtkMyInteractor::~vtkMyInteractor() {}; void OnRButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnRButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; void OnMButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnMButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; void OnLButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnLButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; }; int main( int argc, char *argv[] ) { int i; static float x[8][3]={{0,0,0}, {1,0,0}, {1,1,0}, {0,1,0}, {0,0,1}, {1,0,1}, {1,1,1}, {0,1,1}}; static vtkIdType pts[6][4]={{0,1,2,3}, {4,5,6,7}, {0,1,5,4}, {1,2,6,5}, {2,3,7,6}, {3,0,4,7}}; // We'll create the building blocks of polydata including data attributes. vtkPolyData *cube = vtkPolyData::New(); vtkPoints *points = vtkPoints::New(); vtkCellArray *polys = vtkCellArray::New(); vtkFloatArray *scalars = vtkFloatArray::New(); // Load the point, cell, and data attributes. for (i=0; i<8; i++) points->InsertPoint(i,x[i]); for (i=0; i<6; i++) polys->InsertNextCell(4,pts[i]); for (i=0; i<8; i++) scalars->InsertTuple1(i,i); // We now assign the pieces to the vtkPolyData. cube->SetPoints(points); points->Delete(); cube->SetPolys(polys); polys->Delete(); cube->GetPointData()->SetScalars(scalars); scalars->Delete(); // Now we'll look at it. vtkPolyDataMapper *cubeMapper = vtkPolyDataMapper::New(); cubeMapper->SetInput(cube); cubeMapper->SetScalarRange(0,7); vtkActor *cubeActor = vtkActor::New(); cubeActor->SetMapper(cubeMapper); // The usual rendering stuff. vtkCamera *camera = vtkCamera::New(); camera->SetPosition(1,1,1); camera->SetFocalPoint(0,0,0); vtkRenderer *renderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); vtkMyInteractor *iren = (vtkMyInteractor *)vtkMyInteractor::New(); iren->SetRenderWindow(renWin); renderer->AddActor(cubeActor); renderer->SetActiveCamera(camera); renderer->ResetCamera(); renderer->SetBackground(1,1,1); renWin->SetSize(300,300); // interact with data renWin->Render(); iren->Start(); // Clean up cube->Delete(); cubeMapper->Delete(); cubeActor->Delete(); camera->Delete(); renderer->Delete(); renWin->Delete(); iren->Delete(); return 0; } From zxem at my169.com Fri Jun 27 06:33:28 2003 From: zxem at my169.com (Xin Zhao) Date: Fri, 27 Jun 2003 10:33:28 +0000 Subject: [vtkusers] vtk- Help! Message-ID: Dear all, I run the vtkPanel.java in JCreator2.5. Compile is ok, but when I run it. The error message shows as follow: Exception in thread "main" java.lang.UnsatisfiedLinkError: E:\vtk422\Wrapping\Ja va\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at vtk.vtkPanel.(vtkPanel.java:31) Press any key to continue... I read the code of vtkPanel.java System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); Why the first five "loadLibrary" is ok, the last one has error? Can you give me any help? Thanks! zxem From zxem at my169.com Fri Jun 27 06:57:50 2003 From: zxem at my169.com (Xin Zhao) Date: Fri, 27 Jun 2003 10:57:50 +0000 Subject: [vtkusers] Cmake--Java--VTK Message-ID: Dear all, If I want to connect VTK with Java in Windows, do I need to run the procedure as follow: "The PC build process uses the CMake GUI CMakeSetup. Then you use the compiler make utility to compile as follows. 1) Install the VTK 4.2 distribution by unzipping into the appropriate directory. 2) Execute CMakeSetup. This will pop-up a little GUI that allows you to tailor the build. It then starts building .dsw and .dsp files for Microsoft, or makefiles for Borland. You'll have to tell CMakeSetup where you've placed your VTK source code, and where to build the object code and dll's (we'll call it "vtkbin"). 3) When CMakeSetup completes, start up msdev and load VTK.dsw. Select ALL_BUILD project, and build it. " Or just put the vtk.jar in my java library? Can you give me any help? Thanks! zxem From jeff at cdnorthamerica.com Fri Jun 27 06:12:23 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 27 Jun 2003 06:12:23 -0400 Subject: [vtkusers] rendering isosurface and crashing In-Reply-To: <12b59d128f2d.128f2d12b59d@cs.unc.edu> References: <12b59d128f2d.128f2d12b59d@cs.unc.edu> Message-ID: <3EFC1887.7000306@cdnorthamerica.com> dsjen at cs.unc.edu wrote: >Hi Jeff, > >My use of vtkCanvas is has-a. > you might try directly subclassing vtkCanvas instead. see the ImagePlaneWidget.java test in cvs which does this. most access violations come from trying to perform a render while modifying the contents of the render window (i.e. add/remove actors, changing source attributes, etc...). because of the multithreaded nature of java, it is easy to make this happen. you could try mutexing on your data load to make sure you don't render whilst modifying the data. are you creating lots of threads in your application? adding/removing actors from a different thread, etc...? -Jeff >The program does consistently crashes >when I load a large number of images (but works fine with a smaller >set), when trying to view an isosurface. However, using volume >rendering techniques, such as maximum intensity projection, the >rendering is slow, but at least doesn't crash die with an >EXCEPTION_ACCESS_VIOLATION. > >As for code that causes it to crash, I'm not sure which code segment >is causing it to crash. Are you thinking that it's somewhere with >vtkCanvas? > >I will updating my version of Java and see if that fixes the problem >though. > >Thanks, >Dennis > >----- Original Message ----- >From: Jeff Lee >Date: Tuesday, June 24, 2003 6:44 am >Subject: Re: [vtkusers] rendering isosurface and crashing > > > >>dsjen at cs.unc.edu wrote: >> >> >> >>>Hi VTK Users, >>> >>>I'm developing an application using vtk4.0, through Java, on >>>WindowsXP. I've run into a problem when trying to render an >>>isosurface. I have a stack of 800x800-pixel images that form a >>>volume. When viewing a subset of the stack, I'm able to render >>> >>> >>the >> >> >>>isosurface and manipulate it, although it does take a quite a bit >>> >>> >>of >> >> >>>time to render. >>> >>>However, when I attempt to render the entire stack, my >>> >>> >>application >> >> >>>thinks for a very long time before my application crashes and >>> >>> >>Java >> >> >>>generates an hs_err_pid####.txt file. I've included the contents >>> >>> >>of >> >> >>>the text file below. My guess is that I'm running out of memory, >>> >>> >>but >> >> >>>I just wanted to check to see if anyone else has encountered a >>> >>> >>similar >> >> >>>problem or has any suggestion. >>> >>> >>> >>is your use of vtkCanvas has-a or is-a? does it consistently >>crash in >>the same place? there were some problems with jdk1.4 and winxp >>which >>were fixed with jdk1.4.1_01. do you have some code which causes >>the crash? >>-Jeff >> >> >> >>>Thanks, >>>Dennis >>> >>> >>> >>> >>> >>> >> >> >> > >_______________________________________________ >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 Fri Jun 27 07:09:50 2003 From: dsjen at cs.unc.edu (Dennis Jen) Date: Fri, 27 Jun 2003 07:09:50 -0400 Subject: [vtkusers] vtk- Help! In-Reply-To: Message-ID: <000201c33c9c$a57dddc0$0400a8c0@Dennis> Xin, It may be that you're not setting your "path" environmental variable (if you're using windows). I think I got the same error a while ago when I didn't set ...\vtk42\bin\vtk.jar - Dennis -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf Of Xin Zhao Sent: Friday, June 27, 2003 6:33 AM To: vtkusers at public.kitware.com Subject: [vtkusers] vtk- Help! Dear all, I run the vtkPanel.java in JCreator2.5. Compile is ok, but when I run it. The error message shows as follow: Exception in thread "main" java.lang.UnsatisfiedLinkError: E:\vtk422\Wrapping\Ja va\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at vtk.vtkPanel.(vtkPanel.java:31) Press any key to continue... I read the code of vtkPanel.java System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); Why the first five "loadLibrary" is ok, the last one has error? Can you give me any help? Thanks! zxem _______________________________________________ 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 Fri Jun 27 07:51:47 2003 From: dsjen at cs.unc.edu (dsjen at cs.unc.edu) Date: Fri, 27 Jun 2003 07:51:47 -0400 Subject: [vtkusers] rendering isosurface and crashing Message-ID: <13ceb7139930.13993013ceb7@cs.unc.edu> Hi Jeff, I'm not using threads, at least not explicitly. A friend suggested the same thing. I haven't gotten it to successfuly work though (I'm not that familar with Java threads), but his explaination sounds very similar to yours -- that the isosurface is being calculated in parallel, while the volume rendering occurs during rendering time, thus when the program tries to render before the isosurface is finished, it dies. Ah, mutual exclusion... To solve this, my friend's suggestion was to remove the isosurface from the actor list until the isosurface is complete, then add it back, so that it can be rendered. Again, I haven't gotten this to work, but it kind of makes sense. - Dennis ----- Original Message ----- From: Jeff Lee Date: Friday, June 27, 2003 6:12 am Subject: Re: [vtkusers] rendering isosurface and crashing > > > dsjen at cs.unc.edu wrote: > > >Hi Jeff, > > > >My use of vtkCanvas is has-a. > > > you might try directly subclassing vtkCanvas instead. see the > ImagePlaneWidget.java test in cvs which does this. most access > violations come from trying to perform a render while modifying > the > contents of the render window (i.e. add/remove actors, changing > source > attributes, etc...). because of the multithreaded nature of java, > it is > easy to make this happen. you could try mutexing on your data > load to > make sure you don't render whilst modifying the data. are you > creating > lots of threads in your application? adding/removing actors from > a > different thread, etc...? > -Jeff > > >The program does consistently crashes > >when I load a large number of images (but works fine with a > smaller > >set), when trying to view an isosurface. However, using volume > >rendering techniques, such as maximum intensity projection, the > >rendering is slow, but at least doesn't crash die with an > >EXCEPTION_ACCESS_VIOLATION. > > > >As for code that causes it to crash, I'm not sure which code > segment > >is causing it to crash. Are you thinking that it's somewhere > with > >vtkCanvas? > > > >I will updating my version of Java and see if that fixes the > problem > >though. > > > >Thanks, > >Dennis > > > >----- Original Message ----- > >From: Jeff Lee > >Date: Tuesday, June 24, 2003 6:44 am > >Subject: Re: [vtkusers] rendering isosurface and crashing > > > > > > > >>dsjen at cs.unc.edu wrote: > >> > >> > >> > >>>Hi VTK Users, > >>> > >>>I'm developing an application using vtk4.0, through Java, on > >>>WindowsXP. I've run into a problem when trying to render an > >>>isosurface. I have a stack of 800x800-pixel images that form a > >>>volume. When viewing a subset of the stack, I'm able to render > >>> > >>> > >>the > >> > >> > >>>isosurface and manipulate it, although it does take a quite a > bit > >>> > >>> > >>of > >> > >> > >>>time to render. > >>> > >>>However, when I attempt to render the entire stack, my > >>> > >>> > >>application > >> > >> > >>>thinks for a very long time before my application crashes and > >>> > >>> > >>Java > >> > >> > >>>generates an hs_err_pid####.txt file. I've included the > contents > >>> > >>> > >>of > >> > >> > >>>the text file below. My guess is that I'm running out of > memory, > >>> > >>> > >>but > >> > >> > >>>I just wanted to check to see if anyone else has encountered a > >>> > >>> > >>similar > >> > >> > >>>problem or has any suggestion. > >>> > >>> > >>> > >>is your use of vtkCanvas has-a or is-a? does it consistently > >>crash in > >>the same place? there were some problems with jdk1.4 and winxp > >>which > >>were fixed with jdk1.4.1_01. do you have some code which causes > >>the crash? > >>-Jeff > >> > >> > >> > >>>Thanks, > >>>Dennis > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > >> > > > >_______________________________________________ > >This is the private VTK discussion list. > >Please keep messages on-topic. Check the FAQ at: <" > target="l">http://public.kitware.com/cgi-bin/vtkfaq> > >Follow this link to subscribe/unsubscribe: > >http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > > > From Poecher at gmx.net Fri Jun 27 07:48:29 2003 From: Poecher at gmx.net (=?iso-8859-1?Q?Christian_P=F6cher?=) Date: Fri, 27 Jun 2003 13:48:29 +0200 Subject: [vtkusers] load tclvtk gives core exception Message-ID: <000f01c33ca2$0759f3d0$dc460b0a@rechner20> Hello, I am working for two or three years with VTK now, using VTK 3.2 and Tcl/Tk 8.2. Now that I would like to use a feature of Tk 8.3, I installed ActiveTcl 8.3.5. Unforunatly I cannot load vtktcl anymore. It gives me a core exception and Dr. Watson shows up. Everything worked fine before I installed Tcl/Tk 8.3.5. I changed nothing else. Any ideas, comments or suggestions on that topic? chris From jeff at cdnorthamerica.com Fri Jun 27 07:58:54 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 27 Jun 2003 07:58:54 -0400 Subject: [vtkusers] rendering isosurface and crashing In-Reply-To: <13ceb7139930.13993013ceb7@cs.unc.edu> References: <13ceb7139930.13993013ceb7@cs.unc.edu> Message-ID: <3EFC317E.1090606@cdnorthamerica.com> dsjen at cs.unc.edu wrote: >Hi Jeff, > >I'm not using threads, at least not explicitly. > using java = using threads. even if you aren't explicitly creating your own, there is always the event thread (AWT) for the ui, and there is the main thread, the gc thread, etc... not too bad once you understand the model and then its pretty easy to see where problems could occur when dealing with non-thread-safe libs. good luck -Jeff >A friend suggested >the same thing. I haven't gotten it to successfuly work though (I'm >not that familar with Java threads), but his explaination sounds very >similar to yours -- that the isosurface is being calculated in >parallel, while the volume rendering occurs during rendering time, >thus when the program tries to render before the isosurface is >finished, it dies. Ah, mutual exclusion... > >To solve this, my friend's suggestion was to remove the isosurface >from the actor list until the isosurface is complete, then add it >back, so that it can be rendered. Again, I haven't gotten this to >work, but it kind of makes sense. > >- Dennis > >----- Original Message ----- >From: Jeff Lee >Date: Friday, June 27, 2003 6:12 am >Subject: Re: [vtkusers] rendering isosurface and crashing > > > From vermaas at astron.nl Fri Jun 27 08:00:27 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Fri, 27 Jun 2003 14:00:27 +0200 Subject: [vtkusers] picking in a volume rendered with raycastMIP Message-ID: Hi, I have rendered a volume with raycastMIP, so that I can see the maximum values from within my cube projected on the outside. Is it possible to put the mouse pointer on one of those white spots and then get information about which x,y,z was responsible for that maximum? see: http://213.93.8.79/mips.jpg, the left window Nico ==================================================== Nico Vermaas ASTRON - Westerbork Synthesis Radio Telescope Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands tel: +31 593 598710 vermaas at astron.nl ==================================================== From ramakrishna.prakash at quest-global.com Fri Jun 27 08:07:56 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 27 Jun 2003 17:37:56 +0530 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <3EFAF6C5.2010502@cdnorthamerica.com> Message-ID: <001201c33ca4$bf348860$de0ba8c0@qtwblr01.questglobal.com> Jeff, Say I am loading a .stl file into SourceViewer(which is a subclass of vtkCanvas and it is a child of JTabbedPane). The crash occurs only during the first load operation. Once the model is loaded everything works fine. what I don't understand is, all operation gets executed in the event thread, so there is no chance of another thread accessing the data at the same time. Further, when I move the mouse over the actor, I pick the cell and change its scalar value(to paint the cell with a different color) . the whole thing gets executed in the mouseDragged event thread. if I do this operation for say, 8 to 10 minutes, the JAVA GUI freezes(toolbar and menubar goes blank) though the vtk window(vtkCanvas) works fine. at this point if I close the existing vtk window and open a new one everything returns to normal. I tried forcing repaint and all other things. but nothing seems to be working. Can you guess any reason for this? Thanks Shyam -----Original Message----- From: Jeff Lee [mailto:jeff at cdnorthamerica.com] Sent: Thursday, June 26, 2003 7:06 PM To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] VTK with JDK1.3.1_08 R K Shyamprakash wrote: >Jeff, > I am running the application on Windows NT. I will test the same on >Windows 2000 and check if it works. > One more thing. vtkPanel occasionally crashes(may be once in 150 times or >so) in the Render() method. Below is the exact location where crash occurs > public synchronized void Render() > { > if (!rendering) > { > rendering = true; > if (ren.VisibleActorCount() == 0) {rendering = false; return;} > if (rw != null) > { > if (windowset == 0) > { > // set the window id and the active camera > cam = ren.GetActiveCamera();//here the application crashes > > Is it because VTK is unable to find the active camera associated with >vtkRenderer? Have you come across the same problem? below is the error >message > > no, it is likely due to the fact that some other thread is manipulating the data while you are trying to access it from the renderer. how does this happen - are you adding/removing SourceViewer from its parent? the only time windowset= 0 is before the first render or when the panel gets removed and added-back. -Jeff > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x24807FCD >Function=vtkDataSetToPolyDataFilter::GetClassNameA+0x2577C >Library=D:\apps\vtk42\bin\vtkFiltering.dll > >Current Java thread: > at vtk.vtkRenderer.GetActiveCamera_23(Native Method) > at vtk.vtkRenderer.GetActiveCamera(vtkRenderer.java:104) > at vtk.vtkPanel.Render(vtkPanel.java:125) > - locked <114A22A0> (a SourceViewer) > at SourceViewer.Render()(SourceViewer.java:171) > - locked <114A22A0> (a SourceViewer) >Thanks >Shyam > > > From hel_carvalho at hotmail.com Fri Jun 27 08:16:46 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Fri, 27 Jun 2003 13:16:46 +0100 Subject: [vtkusers] Deforming Polydata Animation Message-ID: Hi VtkUsers, Can anyone tell me whats to best way to perform an animation of a 3d polydata deformation, where on each frame the polydata deforms in a diferent manner??? Regards, Helder Carvalho _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From jeff at cdnorthamerica.com Fri Jun 27 08:23:01 2003 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Fri, 27 Jun 2003 08:23:01 -0400 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <001201c33ca4$bf348860$de0ba8c0@qtwblr01.questglobal.com> References: <001201c33ca4$bf348860$de0ba8c0@qtwblr01.questglobal.com> Message-ID: <3EFC3725.3020705@cdnorthamerica.com> R K Shyamprakash wrote: >Jeff, > Say I am loading a .stl file into SourceViewer(which is a subclass of >vtkCanvas and it is a child of JTabbedPane). The crash occurs only during >the first load operation. Once the model is loaded everything works fine. >what I don't understand is, all operation gets executed in the event thread, >so there is no chance of another thread accessing the data at the same time. > there is a chance that the c++ interactor is performing a render while your data is loading. also could be that there really is a chance of another thread accessing the data at the same time. what does your load operation do? > > Further, when I move the mouse over the actor, I pick the cell and change >its scalar value(to paint the cell with a different color) . the whole thing >gets executed in the mouseDragged event thread. if I do this operation for >say, 8 to 10 minutes, the JAVA GUI freezes(toolbar and menubar goes blank) >though the vtk window(vtkCanvas) works fine. at this point if I close the >existing vtk window and open a new one everything returns to normal. I tried >forcing repaint and all other things. but nothing seems to be working. Can >you guess any reason for this? > event thread is starved. really can't diagnose your problem without some code. can try ctrl-\ to get a thread-dump if you use jdk1.4, otherwise its hard to see where the hang occurs. > > > From Poecher at gmx.net Fri Jun 27 08:30:10 2003 From: Poecher at gmx.net (=?iso-8859-1?Q?Christian_P=F6cher?=) Date: Fri, 27 Jun 2003 14:30:10 +0200 Subject: [vtkusers] Deforming Polydata Animation References: Message-ID: <001001c33ca7$da0b1430$dc460b0a@rechner20> ----- Original Message ----- From: Helder Carvalho To: Sent: Friday, June 27, 2003 2:16 PM Subject: [vtkusers] Deforming Polydata Animation > Can anyone tell me whats to best way to perform an animation of a 3d > polydata deformation, where on each frame the polydata deforms in a diferent > manner??? I'm not sure if I understood you right, but it sounds like you have for every timestep in that animation a dataset. We did this here too. At first we loaded a single datasets into one reader for timestep 0 and loaded another when the timestep changed. This took too long and then we "pre-loaded" them at the beginning, so changing timesteps is faster. We did this by loading every dataset into a own reader object. chris From ramakrishna.prakash at quest-global.com Fri Jun 27 08:58:20 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Fri, 27 Jun 2003 18:28:20 +0530 Subject: [vtkusers] VTK with JDK1.3.1_08 In-Reply-To: <3EFC3725.3020705@cdnorthamerica.com> Message-ID: <001301c33cab$c9c17980$de0ba8c0@qtwblr01.questglobal.com> In the load operation, I read the file, and create an actor out of the read data, add the actor to renderer and then call Render. I will dig into the code and see if really another thread is accessing the data. > event thread is starved. really can't diagnose your problem without some code. can try ctrl-\ to get a thread-dump if you use jdk1.4, otherwise its hard to see where the hang occurs. > I tried the thread dump. It says "AWT-EventQueue-0" prio=7 tid=0x008B20A0 nid=0x66 in Object.wait() [277ef000..27 7efd90] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:426) at java.awt.EventQueue.getNextEvent(EventQueue.java:333) - locked <114267A0> (a java.awt.EventQueue) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) But here the interesting thing is, if I click on toolbar or menubar item(they are blank), the event gets fired and I can continue operation in VTK window as usual. only that these buttons are not repainted properly. I have a strong feeling that VTK is holding the graphics resources which is disallowing java to repaint because if I close the VTK window(in case if I manage to hit the correct menu item) and reopen it all java objects return to normal state. Thanks Shyam -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Jeff Lee Sent: Friday, June 27, 2003 5:53 PM To: R K Shyamprakash Cc: vtkusers at vtk.org Subject: Re: [vtkusers] VTK with JDK1.3.1_08 R K Shyamprakash wrote: >Jeff, > Say I am loading a .stl file into SourceViewer(which is a subclass of >vtkCanvas and it is a child of JTabbedPane). The crash occurs only during >the first load operation. Once the model is loaded everything works fine. >what I don't understand is, all operation gets executed in the event thread, >so there is no chance of another thread accessing the data at the same time. > there is a chance that the c++ interactor is performing a render while your data is loading. also could be that there really is a chance of another thread accessing the data at the same time. what does your load operation do? > > Further, when I move the mouse over the actor, I pick the cell and change >its scalar value(to paint the cell with a different color) . the whole thing >gets executed in the mouseDragged event thread. if I do this operation for >say, 8 to 10 minutes, the JAVA GUI freezes(toolbar and menubar goes blank) >though the vtk window(vtkCanvas) works fine. at this point if I close the >existing vtk window and open a new one everything returns to normal. I tried >forcing repaint and all other things. but nothing seems to be working. Can >you guess any reason for this? > event thread is starved. really can't diagnose your problem without some code. can try ctrl-\ to get a thread-dump if you use jdk1.4, otherwise its hard to see where the hang occurs. > > > _______________________________________________ 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 jbiddiscombe at skippingmouse.co.uk Fri Jun 27 09:04:11 2003 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 27 Jun 2003 14:04:11 +0100 Subject: [vtkusers] Interactor still interacts... why ? References: <1484AEC8AB498A4EB64D4A8137D23FD984EECC@02polywbr.waldbronn.polytec.de> Message-ID: <000e01c33cac$9b513da0$0100a8c0@tigger> subclass vtkInteractorStyle instead and then do interactor->SetInteractorStyle(MyStlye) JB RPD - A Graphical Pipeline Editor for VTK http://www.skippingmouse.co.uk ----- Original Message ----- From: "de Boer Ingo" To: Sent: Friday, June 27, 2003 9:39 AM Subject: [vtkusers] Interactor still interacts... why ? Hi, I am trying to write my own windows interactor. But it seems that only overwriting the OnButton function isn't enough ?! What more to do ? I have written a small sample based on the cube example. Allthough I have overwritten all the functions I can still interact with my mouse. Debugging showed, that the functions from vtkRenderWindowInteractor are called and not from vtkMyInteractor !! any hints ? thanks, Ingo ############################################################################ # class vtkMyInteractor : public vtkRenderWindowInteractor { public: vtkMyInteractor::vtkMyInteractor() : vtkRenderWindowInteractor() {} vtkMyInteractor::~vtkMyInteractor() {}; void OnRButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnRButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; void OnMButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnMButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; void OnLButtonDown(HWND wnd, UINT nFlags, int X, int Y) {}; void OnLButtonUp (HWND wnd, UINT nFlags, int X, int Y) {}; }; int main( int argc, char *argv[] ) { int i; static float x[8][3]={{0,0,0}, {1,0,0}, {1,1,0}, {0,1,0}, {0,0,1}, {1,0,1}, {1,1,1}, {0,1,1}}; static vtkIdType pts[6][4]={{0,1,2,3}, {4,5,6,7}, {0,1,5,4}, {1,2,6,5}, {2,3,7,6}, {3,0,4,7}}; // We'll create the building blocks of polydata including data attributes. vtkPolyData *cube = vtkPolyData::New(); vtkPoints *points = vtkPoints::New(); vtkCellArray *polys = vtkCellArray::New(); vtkFloatArray *scalars = vtkFloatArray::New(); // Load the point, cell, and data attributes. for (i=0; i<8; i++) points->InsertPoint(i,x[i]); for (i=0; i<6; i++) polys->InsertNextCell(4,pts[i]); for (i=0; i<8; i++) scalars->InsertTuple1(i,i); // We now assign the pieces to the vtkPolyData. cube->SetPoints(points); points->Delete(); cube->SetPolys(polys); polys->Delete(); cube->GetPointData()->SetScalars(scalars); scalars->Delete(); // Now we'll look at it. vtkPolyDataMapper *cubeMapper = vtkPolyDataMapper::New(); cubeMapper->SetInput(cube); cubeMapper->SetScalarRange(0,7); vtkActor *cubeActor = vtkActor::New(); cubeActor->SetMapper(cubeMapper); // The usual rendering stuff. vtkCamera *camera = vtkCamera::New(); camera->SetPosition(1,1,1); camera->SetFocalPoint(0,0,0); vtkRenderer *renderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); vtkMyInteractor *iren = (vtkMyInteractor *)vtkMyInteractor::New(); iren->SetRenderWindow(renWin); renderer->AddActor(cubeActor); renderer->SetActiveCamera(camera); renderer->ResetCamera(); renderer->SetBackground(1,1,1); renWin->SetSize(300,300); // interact with data renWin->Render(); iren->Start(); // Clean up cube->Delete(); cubeMapper->Delete(); cubeActor->Delete(); camera->Delete(); renderer->Delete(); renWin->Delete(); iren->Delete(); return 0; } _______________________________________________ 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 hel_carvalho at hotmail.com Fri Jun 27 09:09:05 2003 From: hel_carvalho at hotmail.com (Helder Carvalho) Date: Fri, 27 Jun 2003 14:09:05 +0100 Subject: [vtkusers] Deforming Polydata Animation Message-ID: What I have is a 3d Polydata and for each timeset or frame, it deforms according to external parameters. So what you suggested is that i perform every deformation, save each change in the form into a different polydatas, add different mappers and different actors for each deformation and then add all this actors to different renders??? Is that it?? So each timestep is one render and when i pass to the next timestep i delete the previous one from the render window and add the next render in the list?? Is that it or am i thinking wrongly? Regards, Helder Carvalho _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From I.deBoer at polytec.de Fri Jun 27 09:48:37 2003 From: I.deBoer at polytec.de (de Boer Ingo) Date: Fri, 27 Jun 2003 15:48:37 +0200 Subject: [vtkusers] Interactorstyle has memory leaks Message-ID: <1484AEC8AB498A4EB64D4A8137D23FD986C9AD@02polywbr.waldbronn.polytec.de> Hi, the following code produces a memory leak ?! #Generic Warning: In vtkDebugLeaks.cxx, line 280 #Deleting unknown object: vtkInteractorStyle Why is that ? any hints ? greets Ingo I am using VTK 4.2.2 class vtkMyInteractorStyle : public vtkInteractorStyle { public: static vtkMyInteractorStyle *New(); protected: vtkMyInteractorStyle(void); ~vtkMyInteractorStyle(void); }; vtkStandardNewMacro(vtkMyInteractorStyle); vtkMyInteractorStyle::vtkMyInteractorStyle() : vtkInteractorStyle() { } vtkMyInteractorStyle::~vtkMyInteractorStyle() { } in my main prog I have: m_pvtkWin32RenderWI = vtkWin32RenderWindowInteractor::New(); vtkMyInteractorStyle *style = vtkMyInteractorStyle::New(); m_pvtkWin32RenderWI->SetInteractorStyle(style); style->Delete(); From tk.sinha at vanderbilt.edu Fri Jun 27 09:53:36 2003 From: tk.sinha at vanderbilt.edu (Tuhin Sinha) Date: Fri, 27 Jun 2003 08:53:36 -0500 Subject: [vtkusers] Deforming Polydata Animation In-Reply-To: References: Message-ID: <200306270853.36521.tk.sinha@vanderbilt.edu> Helder, Why not just save the deformation data as an array of point locations at each time step. Then use that array to update the vtkPoints instance that describes your vtkPolyData for each time step. This seems a lot easier and has much less overhead, in my opinion. You go from N (number of time steps) vtkPolyDatas, N vtkPolyDataMappers, N vtkActors, and N vtkRenderers -- to an N*numberofpoints array and one of each of the above. Hope this helps... Tuhin Sinha On Friday 27 June 2003 08:09, Helder Carvalho wrote: > What I have is a 3d Polydata and for each timeset or frame, it deforms > according to external parameters. > So what you suggested is that i perform every deformation, save each change > in the form into a different polydatas, add different mappers and different > actors for each deformation and then add all this actors to different > renders??? Is that it?? > So each timestep is one render and when i pass to the next timestep i > delete the previous one from the render window and add the next render in > the list?? Is that it or am i thinking wrongly? > > Regards, > Helder Carvalho > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > _______________________________________________ > 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 S.Nagella at rl.ac.uk Fri Jun 27 09:53:30 2003 From: S.Nagella at rl.ac.uk (Nagella, S (Srikanth) ) Date: Fri, 27 Jun 2003 14:53:30 +0100 Subject: [vtkusers] Maximum number of Triangles Message-ID: <350DC7048372D31197F200902773DF4C03A3533C@exchange11.rl.ac.uk> Hi everyone, I want to know maximum number of triangles that can be plotted. I am trying to plot 7 milion triangles. Its only plotting 40% of image. Thanks in advance, sri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Poecher at gmx.net Fri Jun 27 10:02:31 2003 From: Poecher at gmx.net (=?iso-8859-1?Q?Christian_P=F6cher?=) Date: Fri, 27 Jun 2003 16:02:31 +0200 Subject: [vtkusers] Deforming Polydata Animation References: Message-ID: <001101c33cb4$c1dcf8d0$dc460b0a@rechner20> ----- Original Message ----- From: Helder Carvalho To: ; Sent: Friday, June 27, 2003 3:09 PM Subject: [vtkusers] Deforming Polydata Animation > > > What I have is a 3d Polydata and for each timeset or frame, it deforms > according to external parameters. > So what you suggested is that i perform every deformation, save each change > in the form into a different polydatas, add different mappers and different > actors for each deformation and then add all this actors to different > renders??? Is that it I thought you already had the results of the transformations in several dataset files. If it deforms "as you visualize" maybe you could calculate the new points on the fly and update them in your existing dataset object. Or use the method Tuhin suggests. I suggested not to multiply the whole pipeline - only the readers and their datasets. chris From bruyns at parc.com Fri Jun 27 11:41:03 2003 From: bruyns at parc.com (..: cynthia bruyns ::..) Date: Fri, 27 Jun 2003 08:41:03 PDT Subject: [vtkusers] Nightly build working? Message-ID: <3EFC658F.D0084ABB@parc.com> I am new to the forum and have a question that is probably stupid! Hoorah! Anyways, doe sanyone h=know if the nightly build is working? I get the following: /tilde/bruyns/vtk/VTK/Wrapping/Java: building default_target Building Java Test /tilde/bruyns/vtk/VTK/Wrapping/Java/SimpleVTK.class... Building Java Test /tilde/bruyns/vtk/VTK/Wrapping/Java/TestVTKCanvas.class... /tilde/bruyns/vtk/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /tilde/bruyns/vtk/VTK/Wrapping/Java/vtk/vtkCanvas.java:14: cannot resolve symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ /tilde/bruyns/vtk/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve symbol symbol : class vtkPlaneWidget location: class vtk.vtkCanvas protected vtkPlaneWidget pw = new vtkPlaneWidget(); ^ /tilde/bruyns/vtk/VTK/Wrapping/Java/vtk/vtkCanvas.java:14: cannot resolve symbol symbol : class vtkBoxWidget location: class vtk.vtkCanvas protected vtkBoxWidget bw = new vtkBoxWidget(); ^ 4 errors make[3]: *** [/tilde/bruyns/vtk/VTK/Wrapping/Java/TestVTKCanvas.class] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Java] Error 2 make: *** [default_target] Error 2 Everything else seems to be building fine... From jlakshmi at iupui.edu Fri Jun 27 11:42:49 2003 From: jlakshmi at iupui.edu (Jagan Lakshmipathy) Date: Fri, 27 Jun 2003 10:42:49 -0500 Subject: [vtkusers] how to implement space-leaping in vtk? In-Reply-To: <002a01c32f5d$2b8227c0$6700a8c0@amit> Message-ID: Hi all, I want to implement a "space-leaping" algorithm so that Volume Ray Casting can be made faster. I found in some earlier postings that vtkRayBounder and vtkProjectedPolyDataBounder classes can be helpful for this purpose, but in recent versions of vtk these classes don't exist. Any idea, how to proceed?. Any help is greatly appreciated. thanks much Jagan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sxa at fluent.com Fri Jun 27 13:44:14 2003 From: sxa at fluent.com (Sebastien Auclair) Date: Fri, 27 Jun 2003 13:44:14 -0400 Subject: [vtkusers] about vtkPoints::Squeeze() ... Message-ID: <00c801c33cd3$b9860540$8ae4e9c0@sxapc> If i create a vtkPoints initilized to store 15 points and i only put 5 points... Will calling Squeeze() free the unused memory space for the missing 10 points? From david.maciasverde at gobiernodecanarias.org Fri Jun 27 14:39:48 2003 From: david.maciasverde at gobiernodecanarias.org (David Macias Verde) Date: Fri, 27 Jun 2003 19:39:48 +0100 Subject: [vtkusers] About viewers Message-ID: <3EFC8F74.9080405@gobiernodecanarias.org> Hi: If I use four viewers in the same application showing a set of CAT images, for example: - one image in the main viewer which is bigger. - three more slices in the rest which are smaller. Do I have to put in every viewer the hole data set of the reader? main_viewer->SetInput(reader->GetOutput(); 1_viewer->SetInput(reader->GetOutput(); 2_viewer->SetInput(reader->GetOutput(); 3_viewer->SetInput(reader->GetOutput(); This will run too slow, because I have all the data multiplied by four in memory. Is it possible to read it once and then pass the slice of interest to every viewer? Thanks, David MV Canary Islands - Spain From brian at math.unm.edu Fri Jun 27 16:14:41 2003 From: brian at math.unm.edu (Brian Arnold) Date: Fri, 27 Jun 2003 14:14:41 -0600 Subject: [vtkusers] Question re: wxWindows/VTK In-Reply-To: <3EFAB3FE.5050607@creatis.insa-lyon.fr> References: <3EFA0318.9090505@math.unm.edu> <3EFAB3FE.5050607@creatis.insa-lyon.fr> Message-ID: <3EFCA5B1.9090602@math.unm.edu> After installing cmake and using that to build what I needed, here's the errors I get. Information: OS: Win2K VTK: 4.2 wxWindows: 2.4.1 Compiler: MSVC++ 6.0 Service Pack 4 Minor tweak: I added the proper path to the wx files in the project, as those weren't added in the C++ or link tabs, and I also told it to use WXUSINGDLL, as without that I got two more warnings - seems that we're trying to use a DLL, so I added that directive in - it wouldn't know otherwise. Errors: Compiling... Sample.cpp wxVTKRenderWindowInteractor.cxx C:\Workspace\wxVTK\wxVTK\src\wxVTKRenderWindowInteractor.cxx(37) : warning C4273: 'public: static class wxClassInfo wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : inconsistent dll linkage. dllexport assumed. C:\Workspace\wxVTK\wxVTK\src\wxVTKRenderWindowInteractor.cxx(37) : error C2491: 'wxVTKRenderWindowInteractor::sm_classwxVTKRenderWindowInteractor' : definition of dllimport static data member not allowed ... As you can see, the sample portion compiles just fine (no errors), but when building the wxVTKRenderWindowInteractor, it spit up three errors (one above, two very similar, three lines down associated with the BEGIN_EVENT_TABLE macro), and 33 warnings (one above, all complaining of inconsistent dll linkage, and dllexport assumed. Any help would be awesome - thanks. :) Mathieu Malaterre wrote: > Brian, > > Did you tried wxVTKRenderWindowInteractor ? You'll find it here: > > http://www.creatis.insa-lyon.fr/~malaterre/wxVTK/ > > If you have problems compiling it, please report the whole message. > (Don't forget to specify OS, vtk version, wx version ...) > > thanks, > mathieu > > Brian Arnold wrote: > >> Hello all, >> >> I've been perusing the web and the archives for information regarding >> this with little luck, so maybe I'm just searching for the wrong >> phrases. Hopefully someone here can help me out. >> >> I'm looking for a way to use VTK within the wxWindows interface. What >> bits I've found on the web seem okay, but I can't get them to compile >> (using MSVC 6). I've gotten the MFC-based VTK samples working >> alright, but I'm trying to re-write an application from MFC to wxWin, >> and it uses VTK incredibly heavily. Any assistance would be greatly >> appreciated. >> >> ~Brian >> >> _______________________________________________ >> 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 sepp.huber21 at gmx.at Sat Jun 28 12:22:38 2003 From: sepp.huber21 at gmx.at (Sepp^ Huber) Date: Sat, 28 Jun 2003 18:22:38 +0200 (MEST) Subject: [vtkusers] Exporting a volume rendering Message-ID: <28841.1056817358@www67.gmx.net> Hi all, I'm facing a quite tricky problem and probably one of you has an idea. Currently I've developed a program the creates volume renderings of some voxel data by putting this into a vtkImage object. What I'd like to do now is to export this using a common 3D file format (something like VRML, OBJ, 3DS or so). The problem is how to export a volume which is not really a geometric object. Of course I could create a huge number of cubes or spheres with the appropriate color/material assigned to them but this will result in extremely large datasets. Any ideas would be greatly appreciated! Thanks Chris -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From sepp.huber21 at gmx.at Sat Jun 28 16:51:01 2003 From: sepp.huber21 at gmx.at (Sepp^ Huber) Date: Sat, 28 Jun 2003 22:51:01 +0200 (MEST) Subject: [vtkusers] Saving vtkImageData Message-ID: <30814.1056833461@www7.gmx.net> Sorry to bother you again but there is something which I can't quite figure out. I want to store a vtkImageData object using vtkImageExporter but somehow I can't find how to set the name of the file. What I do is the following: vtkImageData* pPointData = vtkImageData::New(); vtkImageExport* pExporter = vtkImageExport::New(); if( !DataToImageData( pPointData ) ) { return false; } assert( pPointData ); pExporter->SetInput( pPointData ); // shouldn't I be able to specify where the export goes to??? pExporter->Export(); pExporter->Delete(); pPointData->Delete(); Thanks in advance Chris -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte l?cheln! Fotogalerie online mit GMX ohne eigene Homepage! From braggzzz at yahoo.com Sun Jun 29 09:26:26 2003 From: braggzzz at yahoo.com (Alan Zhou) Date: Sun, 29 Jun 2003 06:26:26 -0700 (PDT) Subject: [vtkusers] 3D/2D Deconvolution Message-ID: <20030629132626.87000.qmail@web14812.mail.yahoo.com> Does anybody know if VTK has classes desinged to do 3D/2D deconvolution algorithm on volume data? I searched on their website but could not find any information. Thanks. Bragg. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From bert.schiettecatte at esat.kuleuven.ac.be Sun Jun 29 14:23:48 2003 From: bert.schiettecatte at esat.kuleuven.ac.be (Bert Schiettecatte) Date: Sun, 29 Jun 2003 20:23:48 +0200 Subject: [vtkusers] newbie.. Message-ID: <000a01c33e6b$984298f0$647ba8c0@laptop> Hi All, I'm new to VTK, and I'm trying to compile the examples in vtk42/Examples/Rendering/Cxx/ I'm using Microsoft Visual Studio .NET 2002 Academic on WinXP. I have CMake and Cygwin Installed. I'm running a Dell Inspiron 8100 laptop with GeForce 2 Go on board. I created a new solution/project for each of the examples in the directory above, added all the .lib files and include paths to the project configurations, and the build of the examples looks OK. When I try to run any of the examples, the OpenGL window pops up and then I get a vtk output Window that shows the following error message: ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 998 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 734 vtkWin32OpenGLRenderWindow (0x02012010): wglCreateContext failed in CreateAWindow(), error: 0 Does anyone have any idea what's wrong? Thanks, Bert. -------------- next part -------------- An HTML attachment was scrubbed... URL: From asiram00 at hotmail.com Sun Jun 29 14:30:43 2003 From: asiram00 at hotmail.com (marisa aurelio) Date: Sun, 29 Jun 2003 18:30:43 +0000 Subject: [vtkusers] HELP!! vtkActorCollection Message-ID: Hi vtkUsers, When I do: vtkActor *imageActor1 = vtkActor::New(); vtkActor *imageActor2 = vtkActor::New(); vtkActorCollection *imageActorCollection = vtkActorCollection::New(); // Add the first actor imageActorCollection->AddItem(imageActor1); // Add the second actor imageActorCollection->AddItem(imageActor2); When I'm adding the second actor, does it add it to the first position, deleting the actor that was already on the list ??? Or add it to the next position, maintaining the first actor??? I'm asking this because, I've several images of whitch I want to obtain their contour and show all the contours in the same image. The problem is that I don't know how many images I have because they can be in a different number. So I create a list that keeps the images. Than I obtained the contour and kept it in a vtkActor which I add to vtkActorCollection. For this I use a cicle 'for', that do this for all the images: vtkMarchingSquares *imageSquares = vtkMarchingSquares::New(); vtkPolyDataMapper *imageMapper = vtkPolyDataMapper::New(); for(int i = 0; i < ImageNumber; i++) { // some code............... //vtkImporter - contain the image imageSquares->SetInput(vtkImporter->GetOutput()); imageSquares->SetValue(0,63); imageSquares->Update(); vtkPolyData *maskMesh = imageSquares->GetOutput(); imageMapper->SetInput(maskMesh ); imageMapper->ScalarVisibilityOff(); imageActor->SetMapper(imageMapper); imageActorCollection->AddItem(imageActor); } But, when I ask to show the contours it just shows the contour of the last image from the list. vtkRenderer* renderer = vtkRenderer::New(); vtkRenderWindow* renWin = vtkRenderWindow::New(); imageActorCollection ->InitTraversal(); while (imageActor = imageActorCollection ->GetNextActor()) { renderer->AddActor(imageActor); } renWin->AddRenderer(renderer); Why??? Thanks in advance, Marisa _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From nick.smethurst at free.fr Sun Jun 29 18:31:40 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Mon, 30 Jun 2003 00:31:40 +0200 Subject: [vtkusers] HELP!! vtkActorCollection In-Reply-To: References: Message-ID: <200306300031.40163.nick.smethurst@free.fr> Hi The problem with your code isn't that the collection is overwriting the first actor with the second as in your first example. The problem seems to be (it is not possble to know for sure since you have not posted the full code) that you don't seem to be creating separate objects. You seem to be adding the same actor to the collection lots of times and thus when adding the actors of the collection to the renderer, only one actor will be added (as there is only one object). You need to create separate objects for each pipeline and add the actors to the collection: vtkMarchingSquares *imageSquares; vtkPolyDataMapper *imageMapper; vtkActor *imageActor; for(int i = 0; i < ImageNumber; i++) { imageSquares = vtkMarchingSquares::New(); imageMapper = vtkPolyDataMapper::New(); imageActor = vtkActor::New(); // unknown code to do contour.. imageSquares->SetInput(unknownContourObjectThing->GetOutput()); imageSquares->SetValue(0,63); imageSquares->Update(); imageMapper->SetInput(imageSquares->GetOutput()); imageMapper->ScalarVisibilityOff(); imageActor->SetMapper(imageMapper); imageActorCollection->AddItem(imageActor); // Reduce reference counts. imageSquares->Delete(); imageMapper->Delete(); imageActor->Delete(); } When you subsequently delete the renderer and the collection, the objects will self destruct. Le Dimanche 29 Juin 2003 20:30, marisa aurelio a ?crit : > So I create a list that keeps the images. Than I obtained the contour > and kept it in a vtkActor which I add to vtkActorCollection. For this I > use a cicle 'for', that do this for all the images: > > for(int i = 0; i < ImageNumber; i++) > { > // some code............... > > //vtkImporter - contain the image > > imageSquares->SetInput(vtkImporter->GetOutput()); > imageSquares->SetValue(0,63); > imageSquares->Update(); > > vtkPolyData *maskMesh = imageSquares->GetOutput(); > > imageMapper->SetInput(maskMesh ); > imageMapper->ScalarVisibilityOff(); > > imageActor->SetMapper(imageMapper); > > imageActorCollection->AddItem(imageActor); > } > > But, when I ask to show the contours it just shows the contour of the > last image from the list. > > vtkRenderer* renderer = vtkRenderer::New(); > vtkRenderWindow* renWin = vtkRenderWindow::New(); > > imageActorCollection ->InitTraversal(); > while (imageActor = imageActorCollection ->GetNextActor()) > { > renderer->AddActor(imageActor); > } > > renWin->AddRenderer(renderer); > > Why??? > > From c.p.botha at ewi.tudelft.nl Sun Jun 29 20:39:11 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Mon, 30 Jun 2003 01:39:11 +0100 Subject: [vtkusers] strange behaviour of vtkBoxWidget Message-ID: <3EFF86AF.3090305@ewi.tudelft.nl> Dear VTK users, I have attached a modified TransformWithBoxWidget example: It has 5 extra lines that implement a transform filter to translate the mace 20 units on the x-axis. Note that pressing 'i' to activate the interactor and then rotating the vtkBoxWidget causes the mace to fly out of the boxwidget, which is very definitely not desired behaviour. This is similar to the problem described here: http://public.kitware.com/pipermail/vtkusers/2003-February/016027.html which was never followed up on. I've looked at the source of vtkBoxWidget but haven't been able to find the problem. Could anyone else with more intimate knowledge of the vtkBoxWidget take a look at this? Thanks, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TransformWithBoxWidget2.py URL: From tobe at sdu.edu.cn Sun Jun 29 21:57:44 2003 From: tobe at sdu.edu.cn (¸ßÏþ³Ì) Date: Mon, 30 Jun 2003 09:57:44 +0800 Subject: [vtkusers] vtkTkRenderWidget Message-ID: <20030630020526.2D6791AAE2@public.kitware.com> hi,all I think i have installed vtk and tcl/tk correct.but there's a tcl tool in which vtkTkRenderWidget is needed,but i cannot find it in my system. what can i do? thanks in advance. tobe From ramakrishna.prakash at quest-global.com Mon Jun 30 00:14:13 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Mon, 30 Jun 2003 09:44:13 +0530 Subject: [vtkusers] Problems compiling SimpleVTK.java example. In-Reply-To: <3EF988A3.B45647C8@sophia.inria.fr> Message-ID: <003b01c33ebe$10903360$de0ba8c0@qtwblr01.questglobal.com> Do you have the directory containing vtk dll's in the system path? -----Original Message----- From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of Said. Sent: Wednesday, June 25, 2003 5:04 PM To: vtkusers Subject: [vtkusers] Problems compiling SimpleVTK.java example. Hi, When running the example SimpleVTK.java, I got the following stack. All what i see, it is a problem a native methods but I have no solution to this problem. maybe someone have an idea ? java.lang.UnsatisfiedLinkError: RenderCreate at caiman.vizu.vtkPanel.RenderCreate(Native Method) at caiman.vizu.vtkPanel.Render(vtkPanel.java:106) at caiman.vizu.vtkPanel.paint(vtkPanel.java:122) at sun.awt.RepaintArea.paint(RepaintArea.java:180) at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:339) at java.awt.Component.dispatchEventImpl(Component.java:3586) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) _______________________________________________ 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 Mon Jun 30 02:03:34 2003 From: vermaas at astron.nl (Nico Vermaas) Date: Mon, 30 Jun 2003 08:03:34 +0200 Subject: [vtkusers] picking in a volume rendered with raycastMIP Message-ID: Hi, I have rendered a volume with raycastMIP, so that I can see the maximum values from within my cube projected on the outside. Is it possible to put the mouse pointer on one of those white spots and then get information about which x,y,z was responsible for that maximum? see: http://213.93.8.79/mips.jpg, the left window Nico From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Jun 30 04:17:42 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 30 Jun 2003 10:17:42 +0200 Subject: [vtkusers] Question re: wxWindows/VTK In-Reply-To: <3EFCA5B1.9090602@math.unm.edu> References: <3EFA0318.9090505@math.unm.edu> <3EFAB3FE.5050607@creatis.insa-lyon.fr> <3EFCA5B1.9090602@math.unm.edu> Message-ID: <3EFFF226.8060102@creatis.insa-lyon.fr> Brian, Did you used my FindwxWindows.cmake http://www.creatis.insa-lyon.fr/~malaterre/cmake/FindwxWindows.cmake This set a lot of default flags for wxWindows (you'll find it also attached to this email). If you don't want to change the one shipped with CMake. Just create a directory under wxVTK: for example myCMakeModules Then open wxVTK/CMakeLists.txt Comment this line: #FIND_PACKAGE(wxWindows) and add this line instead: INCLUDE (${wxVTK_SOURCE_DIR}/myCMakeModules/FindwxWindows.cmake) rerun cmake, recompile and -hopefully- you should be all set. HTH mathieu > > As you can see, the sample portion compiles just fine (no errors), but > when building the wxVTKRenderWindowInteractor, it spit up three errors > (one above, two very similar, three lines down associated with the > BEGIN_EVENT_TABLE macro), and 33 warnings (one above, all complaining of > inconsistent dll linkage, and dllexport assumed. > > Any help would be awesome - thanks. :) > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: FindwxWindows.cmake URL: From nNunn at ausport.gov.au Mon Jun 30 05:13:18 2003 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Mon, 30 Jun 2003 19:13:18 +1000 Subject: [vtkusers] wxWindows/VTK Message-ID: <7AF3524792FFD511A17A0000F81E965E472E8C@ELMO> Hi Mathieu, Problem may include a failure of VC++ v6 preprocessor to expand WX_BASE_CLASS in the wx RTTI macros. Worked fine after explicit expansion of WX_BASE_CLASS (note: linked to static vtk libs) In file wxVTKRenderWindowInteractor.cxx, //IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, WX_BASE_CLASS) IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, wxWindow) //BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, WX_BASE_CLASS) BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, wxWindow) Also, commented out pRenderer->Delete(). This kills the process, but I get same problem with the MFC version. (Vtk: Dec 14 2002) void MyFrame::DestroyVTK() { if (pRenderer != 0) { // pRenderer->Delete(); ! Note: skip this line } ... } Nigel PS: Mathieu, nice implementation! > Did you used my FindwxWindows.cmake > > http://www.creatis.insa-lyon.fr/~malaterre/cmake/FindwxWindows.cmake > > This set a lot of default flags for wxWindows (you'll find it > also attached to this email). > > If you don't want to change the one shipped with CMake. Just create > a directory under wxVTK: for example myCMakeModules > > Then open wxVTK/CMakeLists.txt > > Comment this line: > #FIND_PACKAGE(wxWindows) > > and add this line instead: > INCLUDE (${wxVTK_SOURCE_DIR}/myCMakeModules/FindwxWindows.cmake) > > rerun cmake, recompile and -hopefully- you should be all set. > > HTH > mathieu > > > > > As you can see, the sample portion compiles just fine (no errors), > > but when building the wxVTKRenderWindowInteractor, it spit up three > > errors (one above, two very similar, three lines down associated > > with the BEGIN_EVENT_TABLE macro), and 33 warnings (one above, all > > complaining of inconsistent dll linkage, and dllexport assumed. ********************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************** From Janne.Hamalainen at hus.fi Mon Jun 30 06:08:43 2003 From: Janne.Hamalainen at hus.fi (=?iso-8859-1?Q?H=E4m=E4l=E4inen_Janne?=) Date: Mon, 30 Jun 2003 12:08:43 +0200 Subject: [vtkusers] How to plot vtkPiecewiseFunction? Message-ID: <57DADDD9B062454A82284FE2A5B97A3605582899@muikku2.hus.fi> Hi, This question might have an obvious solution, but still I haven't figured it out: Is there a class for plotting vtkPiecewiseFunctions (e.g. from color transfer function) or filtering them to dataset pipeline (vtkDataObjectToDataSetFilter doesn't seem to work) for plotting? And is there any methods for doing the same thing with lookup tables? Thanks in advance, -Janne -- Janne H?m?l?inen Research Assistant Helsinki University Central Hospital X-ray Department email janne.hamalainen at hus.fi -- Janne H?m?l?inen email job: janne.hamalainen at hus.fi Research Assistant other: janne.hamalainen at hut.fi Helsinki University Central Hospital X-ray Department phone (050) 356 7473 From ramakrishna.prakash at quest-global.com Mon Jun 30 05:31:39 2003 From: ramakrishna.prakash at quest-global.com (R K Shyamprakash) Date: Mon, 30 Jun 2003 15:01:39 +0530 Subject: [vtkusers] vtkLine Message-ID: <004401c33eea$69121d10$de0ba8c0@qtwblr01.questglobal.com> Hi, I get a vtkPolyData object by passing through following filters vtkPolyData-> vtkCutter->vtkFeatureEdges -> vtkPolyData The resulting polydata contains vtkLine and vtkEmpty cells. I want to reconstruct the polydata with cells of type vtkLine only. How can I achieve this? Thanks Shyam From gte631d at mail.gatech.edu Mon Jun 30 06:51:37 2003 From: gte631d at mail.gatech.edu (Michael S. Vaz) Date: Mon, 30 Jun 2003 06:51:37 -0400 (EDT) Subject: [vtkusers] Defining my own structuring element Message-ID: Hi all, I need help with some simple morphological operations Purpose: to dilate/erode using a simple 3D cross I am using VTK4.0 & 4.2, and for vtkImageContinuousDilate3D, and for vtkImageContinuousErode3D the only available parameter is SetKernelSize(x, y, z) so if for example I the following (in Python): dilim = vtkImageContinuousDilate3D() .... dilim.SetKernelSize(3,3,3) .... I can observe that my structing element comprises of a 3x3 array(middle layer) of 1s, inbetween two 2D crosses of 1s. I see a method in the vtk4.3 documentation: SelectInputScalars(). I do believe that this method provides us with a way to define our own structring element; however the said method is not available in vtk4.2 or older. **If someone knows of a way to perform erosion/dilation using a simple 3D-Cross as the structuring element, please let me know. Thanks, Sarju Michael S. Vaz 324607 Georgia Tech Station Atlanta Georgia, 30332 Internet: gte631d at prism.gatech.edu SMS : sarju at voicestream.net From Mathieu.Malaterre at creatis.insa-lyon.fr Mon Jun 30 08:46:15 2003 From: Mathieu.Malaterre at creatis.insa-lyon.fr (Mathieu Malaterre) Date: Mon, 30 Jun 2003 14:46:15 +0200 Subject: [vtkusers] wxWindows/VTK In-Reply-To: <7AF3524792FFD511A17A0000F81E965E472E8C@ELMO> References: <7AF3524792FFD511A17A0000F81E965E472E8C@ELMO> Message-ID: <3F003117.7060407@creatis.insa-lyon.fr> Nigel Nunn wrote: > Hi Mathieu, > > Problem may include a failure of VC++ v6 preprocessor to expand > WX_BASE_CLASS in the wx RTTI macros. Worked fine after explicit > expansion of WX_BASE_CLASS (note: linked to static vtk libs) > > In file wxVTKRenderWindowInteractor.cxx, > > //IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, WX_BASE_CLASS) > IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, wxWindow) > > //BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, WX_BASE_CLASS) > BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, wxWindow) Excellent ! I am not a wx guru, so thank you for this help. Should I also change: class wxVTKRenderWindowInteractor : public WX_BASE_CLASS into class wxVTKRenderWindowInteractor : public wxWindow > Also, commented out pRenderer->Delete(). This kills the process, > but I get same problem with the MFC version. (Vtk: Dec 14 2002) > > void MyFrame::DestroyVTK() > { > if (pRenderer != 0) { > // pRenderer->Delete(); ! Note: skip this line > } > ... > } Yeah, I don't understand this. I don't have problems under linux...if someone can shed some light on it... > Nigel > PS: Mathieu, nice implementation! Thank you ! mathieu From nNunn at ausport.gov.au Mon Jun 30 10:37:10 2003 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Tue, 1 Jul 2003 00:37:10 +1000 Subject: [vtkusers] wxWindows/VTK Message-ID: <7AF3524792FFD511A17A0000F81E965E472E8D@ELMO> Hi Mathieu, > Should I also change: > > class wxVTKRenderWindowInteractor : public WX_BASE_CLASS > > into > > class wxVTKRenderWindowInteractor : public wxWindow No need to change this. The problem appears to be limited to VC6's pre-processor expansion of WX_BASE_CLASS; by the time the compiler looks at the declaration of your class wxVTKRenderWindowInteractor, WX_BASE_CLASS has been replaced by wxWindow, as expected. thanks again, Nigel ********************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************** From cmarbur at iti.upv.es Mon Jun 30 10:57:42 2003 From: cmarbur at iti.upv.es (Carlos Martinez) Date: Mon, 30 Jun 2003 16:57:42 +0200 (CEST) Subject: [vtkusers] Surface reconstruction filters Message-ID: Hi all. I have to get a surface from a set of points on its boundary. I have tried using vtkSurfaceReconstructionFilter and vtkDelaunay3D but sometimes I don't get good results. I have tried using vtkPowerCrustSurfaceReconstruction and I get better surfaces but I can't use if because I'm developing comercial software. Are there any other reconstruction algorithms implemented in VTK? Have you any references about such class algorithms in other programs/libraries? Furthermore, I have another problem. I need to create a random set of points inside a surface (triangle mesh) and I don't know how exactly do it. I have tried to create points and test if they are inside the surface, using vtkOBBTree.InsideOrOutside method. The problem is that sometimes this method doesn't run well. I returs a value indicating that the points are inside the surface but really they are outside. I have thought this could be possible because of bad normal directions in the surface. I then run vtkPolyDataNormals to sort the points of the cells and calc normals correctly. Nothing changes. Then I have thought that I use a surface from Delaunay3D or SurfaceReconstructionFilter filter, and it could be possible that the surface was not closed. I don't know if there is a way to test if a surface is closed. Is there a method like this? How could I solve this problem? Do you know other methods to test if a point is inside a surface or to create a random point set inside this surface? Thank you in advance. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From mcguinpg at maths.tcd.ie Mon Jun 30 10:59:20 2003 From: mcguinpg at maths.tcd.ie (Paul McGuinness) Date: Mon, 30 Jun 2003 15:59:20 +0100 (BST) Subject: [vtkusers] VtkFollower: how to follow camera? In-Reply-To: <3EF3967F.D7A09294@cmeri.res.in> Message-ID: Hi, I am using vtkFollower such that some text follows the camera. I have achieved in getting my text to always face the camera as my camera moves, but I would like my text to move as the camera moves, such that as my camera moves the text will always be in the top corner of my display screen, and as I zoom in and out the text will zoom in and out with the camera such that the text never changes in size on the screen. Can anyone help please Paul. From gms158 at psu.edu Mon Jun 30 11:14:56 2003 From: gms158 at psu.edu (Gary M. Stump) Date: Mon, 30 Jun 2003 11:14:56 -0400 Subject: [vtkusers] enumeration labels Message-ID: <5.1.1.5.2.20030630110828.00b97660@email.psu.edu> I'm trying to label enumerations (ex. red, green, purple, blue, ...) on a 3D plot. The labels are to always face the camera and stay the same size. I have tried vtkFollower, but cannot keep a constant size. I have tried vtkLabeledDataMapper but cannot figure out how to label strings. Can anyone help me out? Thanks --Gary From Poecher at gmx.net Mon Jun 30 11:17:23 2003 From: Poecher at gmx.net (=?ISO-8859-1?Q?Christian_P=F6cher?=) Date: Mon, 30 Jun 2003 17:17:23 +0200 Subject: [vtkusers] VtkFollower: how to follow camera? In-Reply-To: Message-ID: Am Montag, 30.06.03, um 16:59 Uhr (Europe/Berlin) schrieb Paul McGuinness: > > Hi, > > I am using vtkFollower such that some text follows the camera. I have > achieved in getting my text to always face the camera as my camera > moves, > but I would like my text to move as the camera moves, such that as my > camera moves the text will always be in the top corner of my display > screen, and as I zoom in and out the text will zoom in and out with the > camera such that the text never changes in size on the screen. > It sounds like you would want to use some kind of text that draws on a imaginary 2D plane in front of the camera, like it is done with the vtkScalarBarActor. There are some classes that do this work, although I don't know the name. Perhaps you peek into the documetation for vtkTextMapper? From ljw at soc.soton.ac.uk Mon Jun 30 11:38:12 2003 From: ljw at soc.soton.ac.uk (Luke J West) Date: Mon, 30 Jun 2003 16:38:12 +0100 Subject: [vtkusers] Custom cursor and mouse on/off Message-ID: <1056987492.3f00596497d42@webmail.soc.soton.ac.uk> I've customized an interactor style that has its own complex 2D cursor that appears on a button down and tracks the mouse until the corresponding button up event. It would be better if I could turn off the mouse pointer while in this state. Is that possible in vtk? Thanks, Luke J West : Research Assistant : e-Science -------------------------------------------- Rm. 566/12, School of Ocean & Earth Sciences Southampton Oceanography Centre, Southampton SO14 3ZH United Kingdom -------------------------------------------- Tel: +44 23 8059 4801 Fax: +44 23 8059 3052 Mob: +44 79 6107 4783 From seemann at v2t.de Mon Jun 30 14:10:34 2003 From: seemann at v2t.de (=?iso-8859-1?Q?Dr._J=F6rg_Seemann_=28V2T=29?=) Date: Mon, 30 Jun 2003 20:10:34 +0200 Subject: [vtkusers] scalar value to color mapping Message-ID: Dear VTK-users, I tried to map scalar image data to a color map. Firstly, I defined a rainbow lookup table: vtkLookupTable *lut = vtkLookupTable::New(); lut->SetTableRange (minimumResult1, maximumResult1); lut->SetHueRange (0.6667, 0.0); lut->SetSaturationRange (1.0, 1.0); lut->SetValueRange (1.0, 1.0); lut->SetAlphaRange (1.0, 1.0); lut->SetNumberOfColors (256); lut->Build(); Here minimumResult1 and maximumResult1 are the minimum and maximum of the image data. Next, I used the vtkImageMapToWindowLevelColors filter: vtkImageMapToWindowLevelColors *Colors = vtkImageMapToWindowLevelColors::New(); Colors->SetInput(resample->GetOutput()); Colors->SetLookupTable(lut); Colors->SetWindow(maximumResult1-minimumResult1); Colors->SetLevel((maximumResult1-minimumResult1)/2); Colors->Update(); Finally, I used the vtkImageViewer to render the image. vtkImageViewer *viewer = vtkImageViewer::New();//window to visualisation viewer->SetInput(Colors->GetOutput()); viewer->SetColorWindow (255.0); viewer->SetColorLevel (127.5); viewer->Render(); I expected that the data range would cover the whole color palette, but I does nor work, if minimumResult1 is a negative (negative values are missing using the above code). May somebody know how to set the parameter for the filters correctly? Best regards, J?rg From david.maciasverde at gobiernodecanarias.org Mon Jun 30 14:18:57 2003 From: david.maciasverde at gobiernodecanarias.org (David Macias Verde) Date: Mon, 30 Jun 2003 19:18:57 +0100 Subject: [vtkusers] disabling TCL support Message-ID: Hi: I have the message "disabling TCL support" when executting an OPENGL application. How can I manage with it? Thanks, David MV -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From c.p.botha at ewi.tudelft.nl Mon Jun 30 15:24:42 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Mon, 30 Jun 2003 20:24:42 +0100 Subject: [vtkusers] disabling TCL support In-Reply-To: References: Message-ID: <3F008E7A.90402@ewi.tudelft.nl> David Macias Verde wrote: > I have the message "disabling TCL support" when executting an OPENGL > application. How can I manage with it? You should really supply more information with regards to your platform and version of VTK. However, in this case it looks like a typical DRI error, so I'm assuming that you're running VTK on Linux or FreeBSD with XFree86 DRI. It simply means that your Transform, Clipping and Lighting hardware is not present or not being used due to other factors. I'm assuming you have some kind of older Radeon. Unless you know that you do have TCL hardware onboard, this message can be safely ignored. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From david.maciasverde at gobiernodecanarias.org Mon Jun 30 14:36:48 2003 From: david.maciasverde at gobiernodecanarias.org (David Macias Verde) Date: Mon, 30 Jun 2003 19:36:48 +0100 Subject: Fwd: Re: [vtkusers] disabling TCL support In-Reply-To: <3F008E7A.90402@ewi.tudelft.nl> References: <3F008E7A.90402@ewi.tudelft.nl> Message-ID: I am using an ATI Mobility Radeon 6 card under Red Hat Linux 9 (i686). Is there anything I could do to solve it? Thanks, David ------- Forwarded message ------- From: "Charl P. Botha" To: VTK Users Subject: Re: [vtkusers] disabling TCL support Date: Mon, 30 Jun 2003 20:24:42 +0100 > David Macias Verde wrote: >> I have the message "disabling TCL support" when executting an OPENGL >> application. How can I manage with it? > > You should really supply more information with regards to your platform > and version of VTK. However, in this case it looks like a typical DRI > error, so I'm assuming that you're running VTK on Linux or FreeBSD with > XFree86 DRI. > > It simply means that your Transform, Clipping and Lighting hardware is > not present or not being used due to other factors. I'm assuming you > have some kind of older Radeon. Unless you know that you do have TCL > hardware onboard, this message can be safely ignored. > > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From c.p.botha at ewi.tudelft.nl Mon Jun 30 15:41:22 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Mon, 30 Jun 2003 20:41:22 +0100 Subject: Fwd: Re: [vtkusers] disabling TCL support In-Reply-To: References: <3F008E7A.90402@ewi.tudelft.nl> Message-ID: <3F009262.7070303@ewi.tudelft.nl> David Macias Verde wrote: > I am using an ATI Mobility Radeon 6 card under Red Hat Linux 9 (i686). > Is there anything I could do to solve it? The M6 doesn't have any TCL hardware. The message is harmless, you can just ignore it. I don't know if the message itself can be disabled, you'll have to check the source code for that. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From david.maciasverde at gobiernodecanarias.org Mon Jun 30 14:50:03 2003 From: david.maciasverde at gobiernodecanarias.org (David Macias Verde) Date: Mon, 30 Jun 2003 19:50:03 +0100 Subject: [vtkusers] RE: disabling TCL support Message-ID: Hi: Could this be related with a flicking image when I move a GL object? This did not happen to me while I was running under RH 8. I have other problem at that time: the computer got stack every time I try to move an object for a long time. When I heard about enhanced drivers for the ATI cards with RH9 I change to it. David MV -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From winston at cat.rpi.edu Mon Jun 30 14:55:07 2003 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon, 30 Jun 2003 14:55:07 -0400 Subject: [vtkusers] Re: disabling TCL support References: <3F008E7A.90402@ewi.tudelft.nl> <3F009262.7070303@ewi.tudelft.nl> Message-ID: <3F00878B.191FD6A5@cat.rpi.edu> "Charl P. Botha" wrote: > > David Macias Verde wrote: > > I am using an ATI Mobility Radeon 6 card under Red Hat Linux 9 (i686). > > Is there anything I could do to solve it? > > The M6 doesn't have any TCL hardware. ^^^ "Transform, Clipping and Lighting," not "Tool Command Language." I was wondering why graphics hardware vendors would implement a TCL interpretter in their hardware...then I found the intended expansion of the acronym at www.hardwarecentral.com. ;-) -Jeremy From c.p.botha at ewi.tudelft.nl Mon Jun 30 15:56:39 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Mon, 30 Jun 2003 20:56:39 +0100 Subject: [vtkusers] RE: disabling TCL support In-Reply-To: References: Message-ID: <3F0095F7.7050201@ewi.tudelft.nl> David Macias Verde wrote: > Could this be related with a flicking image when I move a GL object? The fact that TCL is being disabled shouldn't be causing this, no. The flickering could *possibly* be caused by PageFlipping. Your help/documentation and/or google.com should have more info about PageFlipping with the Radeon DRI drivers. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha at ewi.tudelft.nl Mon Jun 30 16:20:08 2003 From: c.p.botha at ewi.tudelft.nl (Charl P. Botha) Date: Mon, 30 Jun 2003 21:20:08 +0100 Subject: [vtkusers] Re: disabling TCL support In-Reply-To: <3F00878B.191FD6A5@cat.rpi.edu> References: <3F008E7A.90402@ewi.tudelft.nl> <3F009262.7070303@ewi.tudelft.nl> <3F00878B.191FD6A5@cat.rpi.edu> Message-ID: <3F009B78.9050705@ewi.tudelft.nl> Jeremy Winston wrote: > "Charl P. Botha" wrote: > >>David Macias Verde wrote: >> >>>I am using an ATI Mobility Radeon 6 card under Red Hat Linux 9 (i686). >>>Is there anything I could do to solve it? >> >>The M6 doesn't have any TCL hardware. > > ^^^ > "Transform, Clipping and Lighting," not > "Tool Command Language." > > I was wondering why graphics hardware vendors would implement > a TCL interpretter in their hardware...then I found the intended > expansion of the acronym at www.hardwarecentral.com. ;-) If you had read my mail two postings before that in this thread, you would have known this without having to go to that site. :) -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From nick.smethurst at free.fr Mon Jun 30 16:14:34 2003 From: nick.smethurst at free.fr (N Smethurst) Date: Mon, 30 Jun 2003 22:14:34 +0200 Subject: [vtkusers] enumeration labels In-Reply-To: <5.1.1.5.2.20030630110828.00b97660@email.psu.edu> References: <5.1.1.5.2.20030630110828.00b97660@email.psu.edu> Message-ID: <200306302214.34632.nick.smethurst@free.fr> You're probably better off using a 2D actor that is positioned using world coordinates. The quality of the font is also better than the follower's. Here's a bit of code in my app: axisLabelProperty = vtkTextProperty::New(); axisLabelProperty->SetFontSize(12); axisLabelProperty->SetJustificationToCentered(); axisLabelProperty->SetVerticalJustificationToCentered(); axisLabelProperty->SetLineSpacing(0.8); axisLabelProperty->SetColor(0.0, 0.0, 0.0); axisLabelMapper = vtkTextMapper::New(); axisLabelMapper->SetTextProperty(axisLabelProperty); axisLabelActor = vtkActor2D::New(); axisLabelActor->SetMapper(axisLabelMapper); axisLabelActor->GetPositionCoordinate()->SetCoordinateSystemToWorld(); axisLabelActor->GetPositionCoordinate()->SetValue(x, y, z); axisLabelMapper->SetInput("my label"); Le Lundi 30 Juin 2003 17:14, Gary M. Stump a ?crit : > I'm trying to label enumerations (ex. red, green, purple, blue, ...) on > a 3D plot. The labels are to always face the camera and stay the same > size. I have tried vtkFollower, but cannot keep a constant size. I have > tried vtkLabeledDataMapper but cannot figure out how to label strings. > Can anyone help me out? Thanks --Gary > > _______________________________________________ > 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 binns at mcs.anl.gov Mon Jun 30 17:43:08 2003 From: binns at mcs.anl.gov (Justin Binns) Date: Mon, 30 Jun 2003 16:43:08 -0500 (CDT) Subject: [vtkusers] downcasting in python wrappers in VTK 4.2.2 Message-ID: I'm having a problem in VTK 4.2.2 - it appears the behavior of the python wrappers is different between a windows build and a linux build, with the Windows build behavior being 'correct' (seemingly). To set the stage, these are both from the same tarball, from the latest stable release of VTK (4.2.2). They're built with the same options. The data file 'anlsx.1.vtu' is identical. I've double and triple checked that I'm getting the right libraries and everything on both machines. The output from the Windows box is as follows: D:\Projects\PyViz>python ActivePython 2.2.1 Build 222 (ActiveState Corp.) based on Python 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import vtk >>> ugridReader=vtk.vtkXMLUnstructuredGridReader() >>> ugridReader.SetFileName("./anlsx.1.vtu") >>> ugridReader >>> ugridReader.GetOutput() >>> ugridReader.GetOutput().GetPointData() >>> Notice: the object type of the GetOutput() call is an UnstructuredGrid, and the output from the GetOutput().GetPointData() is a likewise-useful PointData object. These are useful objects, and what one would expect. Now, under Linux: [binns at oddball2 PyViz]$ vtkpython vtk version 4.2.1, vtk source $Revision: 1.1495 $, $Date: 2003/02/18 03:45:04 $ (GMT) Python 2.2 (#1, Apr 12 2002, 15:29:57) [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import vtk >>> ugridReader=vtk.vtkXMLUnstructuredGridReader() >>> ugridReader.SetFileName("./anlsx.1.vtu") >>> ugridReader >>> ugridReader.GetOutput() >>> ugridReader.GetOutput().GetPointData() >>> ugridReader.Update() >>> ugridReader.GetOutput() >>> ugridReader.GetOutput().GetPointData() >>> Notice: the object type of the GetOutput() is a generic DataSet, and the output from the GetPointData() is a completely useless vtkObject. Even after an Update() (and it has noticably read the file), the objects are the same generic types. It appears that under Linux, the object isn't being cast back to it's appropriate type before return, while under windows, it is. Any thoughts on how I might fix this? Which sources to look in? Is this already fixed in CVS? Thanks much! Justin Binns Scientific Programmer Futures Lab / Argonne National Laboratory From cpanagio at cs.ucl.ac.uk Mon Jun 30 23:24:00 2003 From: cpanagio at cs.ucl.ac.uk (Christos Panagiotou) Date: Tue, 01 Jul 2003 04:24:00 +0100 Subject: [vtkusers] 2 simple questions Message-ID: <3F00FED0.9010200@cs.ucl.ac.uk> Hi i am actually new to vtk so I have some very simple questions to ask: 1. which is the best way to learn vtk? online tutorials or the books that are proposed in vtk.org? (please I need to know this as I haven't found a place to explain VTK and i am lost in the man pages) 2. I have created a quad 2D object and I want to create more quad objects by scaling the first one with various random scaling factors. Is there any scaling function that would do this automatically or should i write mine? thx all christos From prabhu at aero.iitm.ernet.in Mon Jun 30 23:25:59 2003 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 1 Jul 2003 08:55:59 +0530 Subject: [vtkusers] downcasting in python wrappers in VTK 4.2.2 In-Reply-To: References: Message-ID: <16128.65351.378007.310257@monster.linux.in> >>>>> "JB" == Justin Binns writes: JB> I'm having a problem in VTK 4.2.2 - it appears the behavior of JB> the python wrappers is different between a windows build and a JB> linux build, with the Windows build behavior being 'correct' JB> (seemingly). To set the stage, these are both from the same JB> tarball, from the latest stable release of VTK (4.2.2). [snip] JB> Notice: the object type of the GetOutput() is a generic JB> DataSet, and the output from the GetPointData() is a JB> completely useless vtkObject. Even after an Update() (and it JB> has noticably read the file), the objects are the same generic JB> types. It appears that under Linux, the object isn't being JB> cast back to it's appropriate type before return, while under JB> windows, it is. This is wierd. Does this happen when using Tcl and C++ also? I doubt that is has something to do with the sources but perhaps something is wrong with your build? You said that the right libraries are found, are you sure? Do you have multiple copies of the VTK libraries floating around on the system? Does ldd show you the right libraries? JB> Any thoughts on how I might fix this? Which sources to look JB> in? Is this already fixed in CVS? Thanks much! FWIW, with VTK CVS the following works: In [2]: r = vtk.vtkXMLUnstructuredGridReader () In [3]: r.SetFileName("/tmp/vtkbin.vtu") In [4]: r.GetOutput() Out[4]: In [5]: r.GetOutput().GetPointData() Out[5]: cheers, prabhu From sjk60 at iastate.edu Mon Jun 30 23:31:24 2003 From: sjk60 at iastate.edu (Steve Kirstukas) Date: Mon, 30 Jun 2003 22:31:24 -0500 (CDT) Subject: [vtkusers] BUG: polydata deepcopy loses lookup table Message-ID: <24312230510311801@webmail.iastate.edu> Hi all, We have noticed that when we deepcopy polydata from the reader output, we lose a predefined lookup table. Code and output follow. I had experienced this problem with an April version of the 4.3 code and duplicated it with the June 30 nightly release. CODE... vtkPolyDataReader *pdReader = vtkPolyDataReader::New(); pdReader->SetFileName( vtkFilename ); pdReader->Update(); if ( pdReader->GetOutput()->GetPointData()->GetScalars() ) { cout << "pdReader->GetOutput()->GetPointData()->GetScalars()->GetName() = " << pdReader->GetOutput()->GetPointData()->GetScalars()->GetName() << endl; cout << "pdReader->GetOutput()->GetPointData()->GetScalars()->GetLookupTable() = " << pdReader->GetOutput()->GetPointData()->GetScalars()->GetLookupTable() << endl; } vtkPolyData *polyData = vtkPolyData::New(); polyData->DeepCopy( pdReader->GetOutput() ); pdReader->Delete(); if ( polyData->GetPointData()->GetScalars() ) { cout << "polyData->GetPointData()->GetScalars()->GetName() = " << polyData->GetPointData()->GetScalars()->GetName() << endl; cout << "polyData->GetPointData()->GetScalars()->GetLookupTable() = " << polyData->GetPointData()->GetScalars()->GetLookupTable() << endl; } THE OUTPUT FOLLOWS. Note that the pointer to lookup table has gone to null after the deepcopy. Note that the scalar name is the same in both cases. All other data seems intact, except for the lookup table. pdReader->GetOutput()->GetPointData()->GetScalars()->GetName() = liquid-fraction pdReader->GetOutput()->GetPointData()->GetScalars()->GetLookupTable() = 0x10814978 polyData->GetPointData()->GetScalars()->GetName() = liquid-fraction polyData->GetPointData()->GetScalars()->GetLookupTable() = 0x0 Has anyone else seen this? Is there a workaround? Thanks, Steve From ddg4 at cmeri.res.in Mon Jun 30 10:10:53 2003 From: ddg4 at cmeri.res.in (ddg4) Date: Mon, 30 Jun 2003 19:40:53 +0530 Subject: [vtkusers] execution of VTK4.2 Message-ID: <3F0044ED.DF61FC75@cmeri.res.in> I have compiled VTK4.2 successfully, Question is how to execute VTK4.2 Can you please reply. From arkenau at v2t.de Fri Jun 6 08:59:54 2003 From: arkenau at v2t.de (Sebastian Arkenau) Date: Fri, 6 Jun 2003 14:59:54 +0200 Subject: [vtkusers] create ImageData Message-ID: <001701c32c2b$871b1220$5d12060a@V2TNANSEN> Hi, i tried to create my own ImageData with visualisation in the vtkImageViewer. This works fine with Type unsigned char. Then I tried the same example with type float and it did not work. Here is the full example of my code. vtkImageData *id = vtkImageData::New(); id->SetDimensions(256,256,256); id->SetScalarTypeToUnsignedChar(); //id->SetScalarTypeToFloat() id->AllocateScalars(); unsigned char *ptr = (unsigned char *) id->GetScalarPointer(); //the same with float for(int i=0;i<256;i++) for(int j=0;j<256;j++) for(int k=0;k<256;k++) *ptr++= i+j+k; cout << id->GetScalarTypeMin() << endl; cout << id->GetScalarTypeMax() << endl; vtkImageViewer *view = vtkImageViewer::New(); view->SetInput(id); view->SetColorWindow(400); view->SetColorLevel(0); for (int i=0;i<256;++i){ view->SetZSlice(i); view->Render(); } This works fine and the same example with float did not work?. Is anybody outside who can help me?? Thanks Sebastian Arkenau V2T VISION TO TECHNOLOGY GmbH Max-Planck-Strasse (Geb?ude GITZ) D-21502 Geesthacht Tel.: ++49 (0) 4152 / 889 22 - 0 Fax.: ++49 (0) 4152 / 889 23 - 2 EMail: arkenau at v2t.de Web: www.v2t.de Sitz der Gesellschaft: Geesthacht AG Geesthacht / HRB 679 / Ust-ID: DE218814753 Gesch?ftsf?hrer: Christian M. Senet, Dr. J?rg Seemann