From karshi.hasanov at utoronto.ca Sat Jun 1 09:56:20 2002 From: karshi.hasanov at utoronto.ca (Karshi) Date: Sat, 1 Jun 2002 06:56:20 -0700 Subject: [vtkusers] surface? Message-ID: <200206010656.20100.karshi.hasanov@utoronto.ca> Hi all, I want to visualize a surface (not iso surface) perpendicular a vector field- F(x,yz). Here what I've given: div(F)=0, and F=curlA. I need to build a surface which satisfies the following condition: F*A=0 ( dot products of F and A fileds). What VTK library I should use ? Thanks From thorsten at docteam.de Sat Jun 1 13:16:44 2002 From: thorsten at docteam.de (Thorsten Reith) Date: Sat, 1 Jun 2002 19:16:44 +0200 Subject: [vtkusers] Mac OS X and VTK Message-ID: <001701c20990$1af04610$2da6fea9@docteam> Hello, I want to use VTK on Mac OS X. Is this possible? Who can give me some tip`s for this? Thank you Thorsten Reith -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnorton at cisco.com Sat Jun 1 23:03:30 2002 From: mnorton at cisco.com (Michael Norton) Date: Sat, 01 Jun 2002 20:03:30 -0700 Subject: [vtkusers] [Q] CMake gurus and Mac OS X Message-ID: <4.3.2.7.2.20020601195432.01af5af0@mira-sjcm-2.cisco.com> hi, I put the following configurations into my CMakeCache.txt: // set path to the tcl.h header file TCL_INCLUDE_PATH:PATH/Library/Frameworks/Tcl.framework/Headers // set path to Tcl libraries TCL_LIBRARY:FILEPATH=-framework Tcl // set the path to the tk.h header file TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers // set the path to the Tk libraries TK_LIBRARY:FILEPATH=-framework Tk I have the following development paths: /CMake /Develop/VTK /Develop/osxBin The CMakeCache.txt file resides in /Develop/osxBin/CMakeCache.txt I make the edit as above then run cmake [localhost:/Develop/osxbin] michaeln% cmake ../VTK cmake executes and modifies the entries I made to this: //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/usr/local/include // set path to Tcl libraries TCL_LIBRARY:FILEPATH=-framework Tcl //Path to a program. TCL_TCLSH:FILEPATH=/usr/local/bin/tclsh // set the path to the tk.h header file TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers // set the path to the Tk libraries TK_LIBRARY:FILEPATH=-framework Tk //Path to a program. TK_WISH:FILEPATH=NOTFOUND Note I do have a /usr/local/include but I want to build a carbon rev and not X11. I have two flavors of TclTk installed. One for X11 and one for Carbon. As you can see I am specifying the carbon header and lib. How do I STOP cmake from replacing my carbon PATH and FILEPATH with the X11 one it is discovering? So whazzzsup??? later,,, Mike N. From lisong at vrac.iastate.edu Sat Jun 1 23:27:49 2002 From: lisong at vrac.iastate.edu (Song Li) Date: Sat, 01 Jun 2002 22:27:49 -0500 Subject: [vtkusers] vtkConfigure.h ?????? Message-ID: <3CF990B5.B8BB4B78@vrac.iastate.edu> When compiling a VTK application on linux,the following error message shows up: /home/users/lisong/vtk/linux/VTK/Common/vtkWin32Header.h", line 50: catastrophic error: could not open source file "vtkConfigure.h" #include "vtkConfigure.h" But I don't include vtkWin32Header.h in the program, why it check this ??? is this an indication that my installation of VTK4 has problem ? Thanks !!!! -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong at vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong -------------- next part -------------- An HTML attachment was scrubbed... URL: From szen16 at hotmail.com Sun Jun 2 21:03:55 2002 From: szen16 at hotmail.com (Brian Szender) Date: Mon, 03 Jun 2002 01:03:55 +0000 Subject: [vtkusers] Rendering Large Actors Message-ID: An HTML attachment was scrubbed... URL: From mnorton at cisco.com Sun Jun 2 21:42:51 2002 From: mnorton at cisco.com (Michael Norton) Date: Sun, 02 Jun 2002 18:42:51 -0700 Subject: [vtkusers] tracking down make-build errors Message-ID: <4.3.2.7.2.20020602184023.01af1948@mira-sjcm-2.cisco.com> hi, Where should I start to look for build errors? I have this message. /usr/bin/libtool: internal link edit command failed make[3]: *** [/Develop/osxBin/bin/libvtkCommonTCL.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 Where do I start looking for the culprit? Is there a make log? How I do I hunt down what this problem is? thanks, Mike From fxh39668 at gsk.com Mon Jun 3 04:52:57 2002 From: fxh39668 at gsk.com (Frederic Huguet) Date: Mon, 03 Jun 2002 10:52:57 +0200 Subject: [vtkusers] problem with vtkPlaneWidget Message-ID: <3CFB2E66.F67C1F20@gsk.com> hello vtkusers, I try to understant the tcl example for vtkPlane Widget and I try to use it with a C++ code. But I have a problem with the following lines : # Associate the line widget with the interactor planeWidget SetInteractor iren planeWidget AddObserver EnableEvent BeginInteraction planeWidget AddObserver StartInteractionEvent BeginInteraction planeWidget AddObserver InteractionEvent ProbeData So EnableEvent, StartInteractionEvent, InteractionEvant arte vtkCommand enum values for a public type member. But BeginInteraction and ProbeData are Undeclared identifires and I don't know what I sould use in C++ to call AddObserver. What should I use ? Thanks From yoshihiko_nagamine at pis.hitachi.co.jp Mon Jun 3 07:06:59 2002 From: yoshihiko_nagamine at pis.hitachi.co.jp (yoshihiko_nagamine at pis.hitachi.co.jp) Date: Mon, 3 Jun 2002 20:06:59 +0900 Subject: [vtkusers] How to set visualization network? Message-ID: Hi All Now, I have been developed medical image viewer for my reserch purpose. I use VTK 3.2 and Java In my test application, I define ImageData Class like this: In this ImgData class, I set ImageData (orgData) from vtkScalars. and then, I call Render class. In the Render class, the RenderCreate() function is a core function. It processes the visualization network. When run this sample application, the vtkContourFilter complaines, "No Input!" Does anybody knows the way to pass the vtkImageData to vtkContourFilter or How to start the visualization network ? Thanks in advance. =========Image Data Class============ public class ImgData{ static { System.loadLibrary("vtkJava"); } private vtkImageReader imgRdr; private vtkImageData orgData; vtkScalars scalars = new vtkScalars(); ImgDate() { imgRdr = new vtkImageReader(); orgData = new vtkImageData(); } private void SetImageReader() { imgRdr.SetDataByteOrderToLittleEndian(); imgRdr.SetDataExtent(0,63,0,63,1,90); imgRdr.SetFilePrefix(".\\headsq\\quarter"); imgRdr.SetDataMask(0x7fff); imgRdr.SetDataSpacing(3.2, 3.2, 1.5); imgRdr.Update(); } void SetImageData() { SetImageReader(); // a proxy reader for No VTK-LIKE image reader // in a feature, accesser to file server will use scalars.SetDataTypeToInt(); scalars = imgRdr.GetOutput().GetPointData().GetScalars(); orgData.SetDimensions(64,64,90); orgData.SetSpacing(3.2,3.2,1.5); orgData.SetNumberOfScalarComponents(1); orgData.GetPointData().SetScalars(scalars); } private vtkImageReader GetReader() { return imgRdr; } vtkImageData GetOutput() { return orgData; } } ================================== ===============vtkRender Class========= public class vtkRender { ImgData pat; ------ snip ------ vtkRender(ImgData _pat) { pat = _pat; } ------ snip ------- vtkRenderer RenderCreate() { // *** Extract Value *** //-------------------------- // volExt is a vtkCounterFilter //-------------------------- volExt.SetInput(pat.GetOutput()); volExt.UseScalarTreeOn(); volExt.SetValue(minCT, maxCT); // *** Mapping *** polyMap.SetInput(volExt.GetOutput()); polyMap.ScalarVisibilityOff(); // *** Actor *** actor.SetMapper(polyMap); light.SetIntensity(0.0); renderer.AddLight(light); // *** Renderer *** renderer.AddProp(actor); return renderer; } } ======================================== ---------------------------------------- Yoshihiko Nagamine From will.schroeder at kitware.com Mon Jun 3 07:32:31 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 03 Jun 2002 07:32:31 -0400 Subject: [vtkusers] problem with vtkPlaneWidget In-Reply-To: <3CFB2E66.F67C1F20@gsk.com> Message-ID: <5.0.2.1.0.20020603072757.027477f8@pop.nycap.rr.com> Hi Frederic- In C++, you create a callback and then use AddObserver() to associate the callback with the event like so: class vtkMyCallback : public vtkCommand { public: static vtkMyCallback *New() { return new vtkMyCallback; } void Delete() { delete this; } virtual void Execute(vtkObject *caller, unsigned long, void*) { vtkBoxWidget *boxWidget = reinterpret_cast(caller); boxWidget->GetTransform(this->Transform); this->Actor->SetUserTransform(this->Transform); } vtkMyCallback():Transform(0),Actor(0) {} vtkTransform *Transform; vtkActor *Actor; }; boxWidget->AddObserver(vtkCommand::InteractionEvent,myCallback); This example is from Hybrid/Testing/Cxx/BoxWidget.cxx Will From prabhu at aero.iitm.ernet.in Mon Jun 3 07:34:44 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 3 Jun 2002 17:04:44 +0530 Subject: [vtkusers] VTK RPMS. Message-ID: <15611.21588.381106.419915@monster.linux.in> hi, Just wanted the list to know that Fabrice Bellet and Eric Boix create nightly builds of VTK RPMS for RH 7.2 and 7.3 and put them up for download here: http://www.creatis.insa-lyon.fr/vtk/ Tcl, Python and Java are supported. Many thanks to Fabrice and Eric! Enjoy, prabhu p.s. Could this page be linked from the 'Get Software' VTK page? From andresba at hotmail.com Mon Jun 3 10:20:58 2002 From: andresba at hotmail.com (Andres Barrera) Date: Mon, 03 Jun 2002 09:20:58 -0500 Subject: [vtkusers] Actor Mode/Camera Mode Message-ID: Dear VTK list, There is something I don't know why it is happenings: - I add (N) actors to my Renderer, and I have (N) for "int NofActors = renGeneral->GetActors()->GetNumberOfItems();" - Then I change from "Camera" mode to "Actor" mode, and the I go back to "Camera" mode. Now, "NofActors" is (N+1) (?!). (I would expect N...) Can anybody tell me why? Thank you for your time. Andres _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From sebastien.barre at kitware.com Mon Jun 3 10:34:06 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon, 03 Jun 2002 10:34:06 -0400 Subject: [vtkusers] Actor Mode/Camera Mode In-Reply-To: Message-ID: <5.1.0.14.2.20020603103349.022ef808@pop.nycap.rr.com> At 6/3/2002 10:20 AM, Andres Barrera wrote: >Dear VTK list, > > There is something I don't know why it is happenings: > > - I add (N) actors to my Renderer, and I have (N) for > "int NofActors = renGeneral->GetActors()->GetNumberOfItems();" > > - Then I change from "Camera" mode to "Actor" mode, and the I go back to > "Camera" mode. Now, "NofActors" is (N+1) (?!). (I would expect N...) I could not reproduce the pb (VTK 4.1.1 CVS) -- Sebastien Barre From boyd at biomed.ee.ethz.ch Mon Jun 3 10:35:15 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Mon, 03 Jun 2002 16:35:15 +0200 Subject: [vtkusers] Setting multiple scalars to a dataset References: <3CF76894.6F69CFAB@biomed.ee.ethz.ch> <3CF78BC3.BEA8FD08@cs.uncc.edu> Message-ID: <3CFB7EA2.D4939143@biomed.ee.ethz.ch> KRS, Here's how I used multiple scalar arrays in my reader class in case it's of any help. I haven't tried it yet, but I think in order to switch between the added arrays I type something of the sort: myclass->GetPointData()->SetActiveAttribute("VTK_STRESS_VM",vtkDataSetAttributes::SCALARS); Hope this helps (and is correct!). Sincerely, Steve // Declare some variables float f7tuple[7]; int i, j; vtkFloatArray *stressesAndStrains[7]; // Initialize and set the array names for (i=0; i<7; i++) stressesAndStrains[i] = vtkFloatArray::New(); for (i=0; i<7; i++) stressesAndStrains[i]->SetNumberOfComponents(1); for (i=0; i<7; i++) stressesAndStrains[i]->SetNumberOfTuples(nCells); stressesAndStrains[0]->SetName("VTK_STRESS_11"); stressesAndStrains[1]->SetName("VTK_STRESS_22"); stressesAndStrains[2]->SetName("VTK_STRESS_33"); stressesAndStrains[3]->SetName("VTK_STRESS_12"); stressesAndStrains[4]->SetName("VTK_STRESS_23"); stressesAndStrains[5]->SetName("VTK_STRESS_31"); stressesAndStrains[6]->SetName("VTK_STRESS_VM"); // Read the data from file and set the array data for (i=0; iReadLine(line); sscanf(line,"%*d %*d %f %f %f %f %f %f %f %f %f", f7tuple,f7tuple+1,f7tuple+2,f7tuple+3,f7tuple+4,f7tuple+5,f7tuple+6); for (j=0; j<7; j++) stressesAndStrains[j]->SetTuple(i,f7tuple+j); } // Set the active array, indexed by my class variable this->ActiveScalar, to the cell data if ( stressesAndStrains[this->ActiveScalar] != NULL ) { output->GetCellData()->SetScalars(stressesAndStrains[this->ActiveScalar]); } else { vtkWarningMacro(<<"\n Scalar components were not successfully added."); } // Set all of the arrays (inactive and active) to the object for later use (????) for (i=0; i<7; i++) if (stressesAndStrains[i] != NULL) output->GetCellData()->AddArray(stressesAndStrains[i]); -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From jfilipe at isr.uc.pt Mon Jun 3 10:36:57 2002 From: jfilipe at isr.uc.pt (=?iso-8859-1?Q?Jo=E3o_Filipe_de_Castro_Ferreira?=) Date: Mon, 3 Jun 2002 15:36:57 +0100 Subject: [vtkusers] Setting different background colour for renderer using MFC demo Message-ID: Cheers everybody, I would like to implement "this->Renderer->SetBackground(255, 255, 255);" on my MFC demo but I haven't been able get it working properly. The best I could do was to put it on the OnUpdate method of my CSampleView class; this did make the background seem white as I wanted it for a while, but as soon as I enlarge the window frame (for example, by maximizing the window), the white background shows up covering a limited area of the default black background. I suspect that the solution is simple and that I am being a bit of an idiot, but my time is short and I have much more programming to do. Please help!, JFC -------------- next part -------------- An HTML attachment was scrubbed... URL: From andresba at hotmail.com Mon Jun 3 10:42:10 2002 From: andresba at hotmail.com (Andres Barrera) Date: Mon, 03 Jun 2002 09:42:10 -0500 Subject: [vtkusers] Actor Mode/Camera Mode Message-ID: Dear Sebastien, I am using "vtk 4.0". Should I install VTK 4.1.1? Thanks Andres >From: Sebastien BARRE >To: "Andres Barrera" >CC: vtkusers at public.kitware.com >Subject: Re: [vtkusers] Actor Mode/Camera Mode >Date: Mon, 03 Jun 2002 10:34:06 -0400 >MIME-Version: 1.0 >Received: from [24.92.226.177] by hotmail.com (3.2) with ESMTP id >MHotMailBEC4C96200514004370A185CE2B1B8530; Mon, 03 Jun 2002 07:34:11 -0700 >Received: from wonderland.kitware.com (tripoint.kitware.com >[24.97.130.20])by mailout6.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP >id g53EY9D07604;Mon, 3 Jun 2002 10:34:09 -0400 (EDT) >From sebastien.barre at kitware.com Mon, 03 Jun 2002 07:35:57 -0700 >Message-Id: <5.1.0.14.2.20020603103349.022ef808 at pop.nycap.rr.com> >X-Sender: krunnere at pop.nycap.rr.com >X-Mailer: QUALCOMM Windows Eudora Version 5.1 >In-Reply-To: > >At 6/3/2002 10:20 AM, Andres Barrera wrote: >>Dear VTK list, >> >> There is something I don't know why it is happenings: >> >> - I add (N) actors to my Renderer, and I have (N) for >> "int NofActors = renGeneral->GetActors()->GetNumberOfItems();" >> >> - Then I change from "Camera" mode to "Actor" mode, and the I go back to >>"Camera" mode. Now, "NofActors" is (N+1) (?!). (I would expect N...) > >I could not reproduce the pb (VTK 4.1.1 CVS) > > >-- >Sebastien Barre > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From tpan at crd.ge.com Mon Jun 3 10:50:32 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Mon, 3 Jun 2002 10:50:32 -0400 Subject: [vtkusers] Actor Mode/Camera Mode Message-ID: When you select an actor in actor mode, does VTK create an outline actor? tony -----Original Message----- From: Andres Barrera [mailto:andresba at hotmail.com] Sent: Monday, June 03, 2002 10:42 AM To: sebastien.barre at kitware.com Cc: vtkusers at public.kitware.com Subject: Re: [vtkusers] Actor Mode/Camera Mode Dear Sebastien, I am using "vtk 4.0". Should I install VTK 4.1.1? Thanks Andres >From: Sebastien BARRE >To: "Andres Barrera" >CC: vtkusers at public.kitware.com >Subject: Re: [vtkusers] Actor Mode/Camera Mode >Date: Mon, 03 Jun 2002 10:34:06 -0400 >MIME-Version: 1.0 >Received: from [24.92.226.177] by hotmail.com (3.2) with ESMTP id >MHotMailBEC4C96200514004370A185CE2B1B8530; Mon, 03 Jun 2002 07:34:11 -0700 >Received: from wonderland.kitware.com (tripoint.kitware.com >[24.97.130.20])by mailout6.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP >id g53EY9D07604;Mon, 3 Jun 2002 10:34:09 -0400 (EDT) >From sebastien.barre at kitware.com Mon, 03 Jun 2002 07:35:57 -0700 >Message-Id: <5.1.0.14.2.20020603103349.022ef808 at pop.nycap.rr.com> >X-Sender: krunnere at pop.nycap.rr.com >X-Mailer: QUALCOMM Windows Eudora Version 5.1 >In-Reply-To: > >At 6/3/2002 10:20 AM, Andres Barrera wrote: >>Dear VTK list, >> >> There is something I don't know why it is happenings: >> >> - I add (N) actors to my Renderer, and I have (N) for >> "int NofActors = renGeneral->GetActors()->GetNumberOfItems();" >> >> - Then I change from "Camera" mode to "Actor" mode, and the I go back to >>"Camera" mode. Now, "NofActors" is (N+1) (?!). (I would expect N...) > >I could not reproduce the pb (VTK 4.1.1 CVS) > > >-- >Sebastien Barre > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx _______________________________________________ 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 maraux at ondim.fr Mon Jun 3 11:12:29 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Mon, 3 Jun 2002 17:12:29 +0200 Subject: [vtkusers] how to reduce # of points in a polyline ? Message-ID: <000e01c20b11$14070870$c000a8c0@ouessant> Hello, I tried vtkQuantizePolyDataPoints, but it ends with bad looking (kind of pixelated) lines with square effect. I would prefer a "lesser square" method or something like that, applied between the 2 extreme points, avoiding vertical and horizontal lines. for example, an ideal function could remove existing points one by one till a certain amount of error. is there a function able to simplify a line this way ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfilipe at isr.uc.pt Mon Jun 3 11:11:28 2002 From: jfilipe at isr.uc.pt (=?iso-8859-1?Q?Jo=E3o_Filipe_de_Castro_Ferreira?=) Date: Mon, 3 Jun 2002 16:11:28 +0100 Subject: [vtkusers] Not a problem of a white background --- its a problem of renderer window resizing in OnUpdate Message-ID: I tried your solutions out, just to make sure, but, as I suspected, it didn't work any better than my efforts: I guess I wasn't clear on my email's subject. Sorry! The problem is: I *do* get the background to be white, I *haven't* managed to get the renderer window to completely resize itself along with an enlargement of the main frame (for example, when I maximize my app). With a black background, it doesn't show, since the window's default background seems to be black (I suspect because of the underlying OpenGL rendering), but with the white background it becomes quite clear --- the renderer window (and its white background) seems to occupy 90% of the whole frame. Please help!, Jo?o Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: From boyd at biomed.ee.ethz.ch Mon Jun 3 11:15:35 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Mon, 03 Jun 2002 17:15:35 +0200 Subject: [vtkusers] Histogram of a data array? Message-ID: <3CFB8817.CB7FC031@biomed.ee.ethz.ch> Hello, I would like to calculate a histogram of some scalar data that is associated with a vtkUnstructuredGrid dataset. How do I convert my vtkDataArray into vtkImageData (single component) so that I can use vtkImageAccumulate to calculate the histogram? I think it should be something like this, but not sure how to convert the data array: vtkUnstructuredGrid *ug; vtkDataArray *data = ug->GetPointData()->GetScalars(); // ?? vtkDataArrayToImageDataFilter ?? vtkDataArrayToImageDataFilter *imageData; imageData->SetInput(data); vtkImageAccumulate *histogram; histogram->SetInput(imageData->GetOutput()); I'm using vtk4.x on VC++. Thanks, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From eerkes at mailhost.cs.wwu.edu Mon Jun 3 11:24:03 2002 From: eerkes at mailhost.cs.wwu.edu (Gary Eerkes) Date: Mon, 3 Jun 2002 08:24:03 -0700 Subject: [vtkusers] Not a problem of a white background --- its a problem of renderer window resizing in OnUpdate In-Reply-To: Message-ID: I believe this is a bug in Microsoft's opengl.dll. I contacted Microsoft about this well over a year ago and they were not able find a solution. The black border bug along the right side and bottom of a full screen window also occurs in other OpenGL applications that do not use vtk. -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Jo?o Filipe de Castro Ferreira Sent: Monday, June 03, 2002 8:11 AM To: Lista do VTK Subject: [vtkusers] Not a problem of a white background --- its a problem of renderer window resizing in OnUpdate I tried your solutions out, just to make sure, but, as I suspected, it didn't work any better than my efforts: I guess I wasn't clear on my email's subject. Sorry! The problem is: I *do* get the background to be white, I *haven't* managed to get the renderer window to completely resize itself along with an enlargement of the main frame (for example, when I maximize my app). With a black background, it doesn't show, since the window's default background seems to be black (I suspect because of the underlying OpenGL rendering), but with the white background it becomes quite clear --- the renderer window (and its white background) seems to occupy 90% of the whole frame. Please help!, Jo?o Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: From christophe.avare at free.fr Mon Jun 3 16:31:47 2002 From: christophe.avare at free.fr (christophe.avare at free.fr) Date: Mon, 03 Jun 2002 22:31:47 +0200 (MEST) Subject: [vtkusers] [newbie] Some Java port questions Message-ID: <1023136307.3cfbd2331e3f7@imp.free.fr> Hello everybody, I started playing with VTK last week and it sounds really great! I am mostly interested in the Java language binding, and picking around the mailing I didn't find informations about the following topics: - Java seems to be the "poor man" binding in the Vtk family as there is much more useful examples in C++, Tcl & Python. [Q] Is there another download with more java examples available ? - The package naming convention do not follow the implicit rules (like org.vtk.*, com.kitware.*, ...) - The method naming convention is also different (starts with uppercase instead of capitals) - I understand that most of the binding it autogenerated [Q] Is there a plan to make the vtk packages more "Java compliant"? [Q] What is the benefit of the additional method indirection for the native calls, like in the following code: private native vtkDataSet GetInput_4(); public vtkDataSet GetInput() { return GetInput_4(); } Anyway, for the moment, I go back to my C++ lessons since all the nitty-gritty of Vtk should be found in thoses libraries. -- Christophe From jbiddiscombe at skippingmouse.co.uk Mon Jun 3 17:02:59 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Mon, 3 Jun 2002 22:02:59 +0100 Subject: [vtkusers] Histogram of a data array? References: <3CFB8817.CB7FC031@biomed.ee.ethz.ch> Message-ID: <001001c20b42$0b345000$0100a8c0@tigger> > I would like to calculate a histogram of some scalar data that is > associated with a vtkUnstructuredGrid dataset. How do I convert my > vtkDataArray into vtkImageData (single component) so that I can use > vtkImageAccumulate to calculate the histogram? I think it should be > something like this, but not sure how to convert the data array: Assuming you are only interested in the histogram and know that the topological information is lost, > vtkDataArray *data = ug->GetPointData()->GetScalars(); > > // ?? vtkDataArrayToImageDataFilter ?? > vtkDataArrayToImageDataFilter *imageData; > imageData->SetInput(data); try this... vtkImageData *dummyHolder = vtkImageData::New(); int N = data->GetNumberOfTuples(); \\ create a one dimensional image with N tuples dummyHolder->SetDimensions(N,1,1); dummyHolder->GetPointData()->SetScalars(data); > vtkImageAccumulate *histogram; histogram->SetInput(dummyHolder); You may need to fiddle with a few other parameters, but the above ought to do the right thing JB From david_pont at hotmail.com Mon Jun 3 17:50:25 2002 From: david_pont at hotmail.com (David Pont) Date: Tue, 04 Jun 2002 09:50:25 +1200 Subject: [vtkusers] surface? Message-ID: An HTML attachment was scrubbed... URL: From recampb at sandia.gov Mon Jun 3 19:17:35 2002 From: recampb at sandia.gov (Campbell, Robert E) Date: Mon, 3 Jun 2002 17:17:35 -0600 Subject: [vtkusers] bounding box/volume Message-ID: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637C5@es05snlnt> Is there a way to create a bounding volume from an unstructure grid? From vtk_replies at yahoo.com Mon Jun 3 21:22:09 2002 From: vtk_replies at yahoo.com (vtk replies) Date: Mon, 3 Jun 2002 18:22:09 -0700 (PDT) Subject: [vtkusers] running C++ examples in Windows 2000 using MS Visual Studio 5.0 Message-ID: <20020604012209.10439.qmail@web21503.mail.yahoo.com> Hi, I use vtk3.2 on Linux . I want to use the same on Windows 2000. I downloaded the precompiled binaries but have problems with running c++ examples using MS Visual Studio 5.0 . VS is unable to locate the ".h" files. The only dll that I found for vtk was the vtkdll.dll . I included this and the dir that contained all the ".h" files in the Link options. I still get "cannot open ...h file " errors. Is there anything I can do other than copy all the .h files into the examplesCxx directory ? Thanks for any help. Regards Joseph. --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From takaya at cv.cs.ritsumei.ac.jp Mon Jun 3 21:39:47 2002 From: takaya at cv.cs.ritsumei.ac.jp (Naoko TAKAYA) Date: Tue, 04 Jun 2002 10:39:47 +0900 Subject: [vtkusers] running C++ examples in Windows 2000 using MS Visual Studio 5.0 In-Reply-To: <20020604012209.10439.qmail@web21503.mail.yahoo.com> References: <20020604012209.10439.qmail@web21503.mail.yahoo.com> Message-ID: <20020604014045.A00731AA52@public.kitware.com> Hi Joseph, I think you have to copy all .h files in C\Prgram Files\Micorsoft Visual Studio\VC98\Include and include .h files in the program like #include "vtk*.h" Or you can copy all .h files in C\Prgram Files\Micorsoft Visual Studio\VC98\Include\VTK and include .h files in the program like #include "VTK/vtk*.h" I hope this helps. Naoko vtk replies wrote: > > Hi, > > I use vtk3.2 on Linux . I want to use the same on Windows 2000. I downloaded the precompiled binaries but have problems with running c++ examples using MS Visual Studio 5.0 . VS is unable to locate the ".h" files. The only dll that I found for vtk was the vtkdll.dll . I included this and the dir that contained all the ".h" files in the Link options. I still get "cannot open ...h file " errors. Is there anything I can do other than copy all the .h files into the examplesCxx directory ? > > Thanks for any help. > > > > Regards > > Joseph. > > > > --------------------------------- > Do You Yahoo!? > Sign-up for Video Highlights of 2002 FIFA World Cup From dalleyg at dma.org Mon Jun 3 21:36:11 2002 From: dalleyg at dma.org (Gerald Dalley) Date: Mon, 3 Jun 2002 21:36:11 -0400 Subject: [vtkusers] running C++ examples in Windows 2000 using MS Visual Studio 5.0 In-Reply-To: <20020604012209.10439.qmail@web21503.mail.yahoo.com> Message-ID: I'm using VC6, but I'm guessing the answer is the same. Solution 1: Go to your tools menu and select the options dialog. Go to the directories tab. Enter the directory/directories that have the include files. Solution 2: Go to Project | Project Settings | C/C++ | Category: Preprocessor, and add the directory/directories to "Additional include directories". The first solution is good if you only plan on having one version of VTK installed. This way you only have to make the change once. The second solution is saved in the project file and therefore has the opposite advantages. --Gerald Dalley dalleyg at dma.org -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of vtk replies Sent: Monday, June 03, 2002 9:22 PM To: vtkusers at public.kitware.com Subject: [vtkusers] running C++ examples in Windows 2000 using MS Visual Studio 5.0 Hi, I use vtk3.2 on Linux . I want to use the same on Windows 2000. I downloaded the precompiled binaries but have problems with running c++ examples using MS Visual Studio 5.0 . VS is unable to locate the ".h" files. The only dll that I found for vtk was the vtkdll.dll . I included this and the dir that contained all the ".h" files in the Link options. I still get "cannot open ...h file " errors. Is there anything I can do other than copy all the .h files into the examplesCxx directory ? Thanks for any help. Regards Joseph. ---------------------------------------------------------------------------- ---- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.maclean at acfr.usyd.edu.au Mon Jun 3 21:56:13 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 4 Jun 2002 11:56:13 +1000 Subject: [vtkusers] A request for the implementation of ShallowCopy() in vtkDataSetMapper Message-ID: <000601c20b6b$01b43a30$acd24e81@acfr.usyd.edu.au> Can I please put in a request for : void ShallowCopy (vtkAbstractMapper *m) To be implemented in vtkDataSetMapper? I have been using vtkPolyDataMapper where it is implemented but when I switched to using vtkDataSetMapper it took me a while to find the problem! It would be nice to have it implemented in vtkDataSetMapper, unless there are compelling technical reasons not to. Thanks Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From baudet at ondim.fr Tue Jun 4 03:43:10 2002 From: baudet at ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Tue, 4 Jun 2002 09:43:10 +0200 Subject: [vtkusers] Link error in release Message-ID: <000601c20b9b$79a8d7a0$1c00a8c0@muscles> Hello, I've got an unresolved external symbol link error in release only and on RemoveProp only (no problem with AddProp, etc.) ?? Do i forget something particular in my settings? I'm using vtk 4 with VS6. Thank you. R?my Baudet ONDIM - Signal | Image | Multim?dia Email : baudet at ondim.fr T?l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Tue Jun 4 03:47:24 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 4 Jun 2002 09:47:24 +0200 Subject: [vtkusers] how to create an image from scratch ? Message-ID: <000a01c20b9c$113d50f0$c000a8c0@ouessant> I would like to create a yellow background image in which I could draw some lines and triangles in a chosen color (with ImageCanvasSource2D ??) What is the best way to do this ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Tue Jun 4 03:53:45 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 4 Jun 2002 09:53:45 +0200 (CEST) Subject: [vtkusers] Tagged Axes Message-ID: Hi everybody, is there an example that illustrate to me how to build a XYZ axes with labels and numbers? I use tcl and Vtk 3.1. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From eplanung at t-online.de Tue Jun 4 04:33:32 2002 From: eplanung at t-online.de (Franz Th. Langer) Date: Tue, 04 Jun 2002 10:33:32 +0200 Subject: [vtkusers] gif-Importer Message-ID: <3CFC7B5C.B21A6CAE@t-online.de> Hi dear vtk-users, is there any possib. to read/import a gif-file and position it at a certain point within my vtkpolydata and let the gif-file do its work? thanks very much for any help! franz From vtk at le.isac.cnr.it Tue Jun 4 04:56:44 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Tue, 4 Jun 2002 10:56:44 +0200 Subject: [vtkusers] volume rendering (HELP) Message-ID: <200206040856.g548uiM13854@nemesi.le.isac.cnr.it> Hi.. I work with VTK 4 and tcl/tk on workstation Linux. What can I do to configure this function to visualize many different color in volume rendering?? vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0 1 0 0 colorTransferFunction AddRGBPoint 64 2 0 0 colorTransferFunction AddRGBPoint 128 3 0 0 colorTransferFunction AddRGBPoint 255 4 0 0 colorTransferFunction AddRGBPoint 0 0 0 1 colorTransferFunction AddRGBPoint 64 0 0 2 colorTransferFunction AddRGBPoint 128 0 0 3 colorTransferFunction AddRGBPoint 192 0 0 4 colorTransferFunction AddRGBPoint 255 0 0 5 colorTransferFunction AddRGBPoint 0 0 1 0 colorTransferFunction AddRGBPoint 128 0 2 0 colorTransferFunction AddRGBPoint 192 0 3 0 colorTransferFunction AddRGBPoint 255 0 4 0 ***************************** The source code is: package require vtk package require vtkinteraction # Create the standard renderer, render window # and interactor vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # Create the reader for the data vtkStructuredPointsReader reader reader SetFileName "binHeart.vtk" # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 20 0.0 opacityTransferFunction AddPoint 255 0.2 vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0 1 0 0 colorTransferFunction AddRGBPoint 64 2 0 0 colorTransferFunction AddRGBPoint 128 3 0 0 colorTransferFunction AddRGBPoint 255 4 0 0 colorTransferFunction AddRGBPoint 0 0 0 1 colorTransferFunction AddRGBPoint 64 0 0 2 colorTransferFunction AddRGBPoint 128 0 0 3 colorTransferFunction AddRGBPoint 192 0 0 4 colorTransferFunction AddRGBPoint 255 0 0 5 colorTransferFunction AddRGBPoint 0 0 1 0 colorTransferFunction AddRGBPoint 128 0 2 0 colorTransferFunction AddRGBPoint 192 0 3 0 colorTransferFunction AddRGBPoint 255 0 4 0 # The property describes how the data will look vtkVolumeProperty volumeProperty volumeProperty SetColor colorTransferFunction volumeProperty SetScalarOpacity opacityTransferFunction # The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction compositeFunction vtkVolumeRayCastMapper volumeMapper volumeMapper SetVolumeRayCastFunction compositeFunction volumeMapper SetInput [reader GetOutput] # The volume holds the mapper and the property and # can be used to position/orient the volume vtkVolume volume volume SetMapper volumeMapper volume SetProperty volumeProperty ren1 SetBackground 0 0 0 ren1 AddVolume volume renWin Render wm withdraw . From baudet at ondim.fr Tue Jun 4 05:15:17 2002 From: baudet at ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Tue, 4 Jun 2002 11:15:17 +0200 Subject: [vtkusers] vtkExpat.dll Message-ID: <001a01c20ba8$57a5f360$1c00a8c0@muscles> Hello, What 'vtkExpat.dll' is used for? At execution of my app, the dll is required but it is not present in my bin directory (from vtkNightly Core + Cpp). Is the dll mandatory or only in some cases? Should I compile it myself from the sources? Thanks for your help. R?my Baudet ONDIM - Signal | Image | Multim?dia Email : baudet at ondim.fr T?l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris -------------- next part -------------- An HTML attachment was scrubbed... URL: From rsanfer at neptuno.lpi.tel.uva.es Tue Jun 4 05:53:18 2002 From: rsanfer at neptuno.lpi.tel.uva.es (=?ISO-8859-1?Q?Roc=EDo_S=E1nchez_Fern=E1ndez?=) Date: Tue, 4 Jun 2002 11:53:18 +0200 (CEST) Subject: [vtkusers] How can I open a TIFF file? Message-ID: Hello vtkusers! Is there any way to open a TIFF file and to get a pointer of the luminance of the pixels independently of the NumberOfScalarsComponents? I only work with gray-level images, but I have images with 1 and 4 ScalarComponents... I work with VTK 3.2 and tcl/tk on workstation Linux. Thanks for your help. Rocio Sanchez Fernandez. From orlandomhb at yahoo.com Tue Jun 4 06:00:36 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Tue, 4 Jun 2002 03:00:36 -0700 (PDT) Subject: [vtkusers] Actor Mode/Camera Mode In-Reply-To: Message-ID: <20020604100036.15607.qmail@web10101.mail.yahoo.com> --- "Pan, Tony C (Research)" wrote: > When you select an actor in actor mode, does VTK > create an outline actor? > > tony > > -----Original Message----- > From: Andres Barrera [mailto:andresba at hotmail.com] > Sent: Monday, June 03, 2002 10:42 AM > To: sebastien.barre at kitware.com > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] Actor Mode/Camera Mode > > > Dear Sebastien, > > I am using "vtk 4.0". Should I install VTK 4.1.1? > > Thanks > > Andres > > > >From: Sebastien BARRE > >To: "Andres Barrera" > >CC: vtkusers at public.kitware.com > >Subject: Re: [vtkusers] Actor Mode/Camera Mode > >Date: Mon, 03 Jun 2002 10:34:06 -0400 > >MIME-Version: 1.0 > >Received: from [24.92.226.177] by hotmail.com (3.2) > with ESMTP id > >MHotMailBEC4C96200514004370A185CE2B1B8530; Mon, 03 > Jun 2002 07:34:11 -0700 > >Received: from wonderland.kitware.com > (tripoint.kitware.com > >[24.97.130.20])by mailout6.nyroc.rr.com > (8.11.6/RoadRunner 1.20) with ESMTP > >id g53EY9D07604;Mon, 3 Jun 2002 10:34:09 -0400 > (EDT) > >From sebastien.barre at kitware.com Mon, 03 Jun 2002 > 07:35:57 -0700 > >Message-Id: > <5.1.0.14.2.20020603103349.022ef808 at pop.nycap.rr.com> > >X-Sender: krunnere at pop.nycap.rr.com > >X-Mailer: QUALCOMM Windows Eudora Version 5.1 > >In-Reply-To: > > > > >At 6/3/2002 10:20 AM, Andres Barrera wrote: > >>Dear VTK list, > >> > >> There is something I don't know why it is > happenings: > >> > >> - I add (N) actors to my Renderer, and I have > (N) for > >> "int NofActors = > renGeneral->GetActors()->GetNumberOfItems();" > >> > >> - Then I change from "Camera" mode to "Actor" > mode, and the I go back to > >>"Camera" mode. Now, "NofActors" is (N+1) (?!). (I > would expect N...) > > > >I could not reproduce the pb (VTK 4.1.1 CVS) > > > > > >-- > >Sebastien Barre > > > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print > your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From orlandomhb at yahoo.com Tue Jun 4 06:00:49 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Tue, 4 Jun 2002 03:00:49 -0700 (PDT) Subject: [vtkusers] Actor Mode/Camera Mode In-Reply-To: Message-ID: <20020604100049.15637.qmail@web10101.mail.yahoo.com> --- Andres Barrera wrote: > Dear Sebastien, > > I am using "vtk 4.0". Should I install VTK 4.1.1? > > Thanks > > Andres > > > >From: Sebastien BARRE > >To: "Andres Barrera" > >CC: vtkusers at public.kitware.com > >Subject: Re: [vtkusers] Actor Mode/Camera Mode > >Date: Mon, 03 Jun 2002 10:34:06 -0400 > >MIME-Version: 1.0 > >Received: from [24.92.226.177] by hotmail.com (3.2) > with ESMTP id > >MHotMailBEC4C96200514004370A185CE2B1B8530; Mon, 03 > Jun 2002 07:34:11 -0700 > >Received: from wonderland.kitware.com > (tripoint.kitware.com > >[24.97.130.20])by mailout6.nyroc.rr.com > (8.11.6/RoadRunner 1.20) with ESMTP > >id g53EY9D07604;Mon, 3 Jun 2002 10:34:09 -0400 > (EDT) > >From sebastien.barre at kitware.com Mon, 03 Jun 2002 > 07:35:57 -0700 > >Message-Id: > <5.1.0.14.2.20020603103349.022ef808 at pop.nycap.rr.com> > >X-Sender: krunnere at pop.nycap.rr.com > >X-Mailer: QUALCOMM Windows Eudora Version 5.1 > >In-Reply-To: > > > > >At 6/3/2002 10:20 AM, Andres Barrera wrote: > >>Dear VTK list, > >> > >> There is something I don't know why it is > happenings: > >> > >> - I add (N) actors to my Renderer, and I have > (N) for > >> "int NofActors = > renGeneral->GetActors()->GetNumberOfItems();" > >> > >> - Then I change from "Camera" mode to "Actor" > mode, and the I go back to > >>"Camera" mode. Now, "NofActors" is (N+1) (?!). (I > would expect N...) > > > >I could not reproduce the pb (VTK 4.1.1 CVS) > > > > > >-- > >Sebastien Barre > > > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print > your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From orlandomhb at yahoo.com Tue Jun 4 06:01:19 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Tue, 4 Jun 2002 03:01:19 -0700 (PDT) Subject: [vtkusers] Setting multiple scalars to a dataset In-Reply-To: <3CFB7EA2.D4939143@biomed.ee.ethz.ch> Message-ID: <20020604100120.15117.qmail@web10106.mail.yahoo.com> --- Steve Boyd wrote: > KRS, > > Here's how I used multiple scalar arrays in my > reader class in case it's > of any help. I haven't tried it yet, but I think in > order to switch > between the added arrays I type something of the > sort: > myclass->GetPointData()->SetActiveAttribute("VTK_STRESS_VM",vtkDataSetAttributes::SCALARS); > > Hope this helps (and is correct!). > > Sincerely, > > Steve > > > // Declare some variables > float f7tuple[7]; > int i, j; > vtkFloatArray *stressesAndStrains[7]; > > // Initialize and set the array names > for (i=0; i<7; i++) stressesAndStrains[i] = > vtkFloatArray::New(); > for (i=0; i<7; i++) > stressesAndStrains[i]->SetNumberOfComponents(1); > for (i=0; i<7; i++) > stressesAndStrains[i]->SetNumberOfTuples(nCells); > stressesAndStrains[0]->SetName("VTK_STRESS_11"); > stressesAndStrains[1]->SetName("VTK_STRESS_22"); > stressesAndStrains[2]->SetName("VTK_STRESS_33"); > stressesAndStrains[3]->SetName("VTK_STRESS_12"); > stressesAndStrains[4]->SetName("VTK_STRESS_23"); > stressesAndStrains[5]->SetName("VTK_STRESS_31"); > stressesAndStrains[6]->SetName("VTK_STRESS_VM"); > > // Read the data from file and set the array > data > for (i=0; i this->ReadLine(line); > sscanf(line,"%*d %*d %f %f %f %f %f %f %f %f > %f", > > f7tuple,f7tuple+1,f7tuple+2,f7tuple+3,f7tuple+4,f7tuple+5,f7tuple+6); > for (j=0; j<7; j++) > > stressesAndStrains[j]->SetTuple(i,f7tuple+j); > } > > // Set the active array, indexed by my class > variable > this->ActiveScalar, to the cell data > if ( stressesAndStrains[this->ActiveScalar] != > NULL ) { > > output->GetCellData()->SetScalars(stressesAndStrains[this->ActiveScalar]); > } else { > vtkWarningMacro(<<"\n Scalar components were > not successfully > added."); > } > > // Set all of the arrays (inactive and active) > to the object for > later use (????) > for (i=0; i<7; i++) > if (stressesAndStrains[i] != NULL) > > output->GetCellData()->AddArray(stressesAndStrains[i]); > > -- > Steven Boyd, PhD > > Institute for Biomedical Engineering > ETH and University Zuerich > Moussonstrasse 18 > 8044 Zuerich, Switzerland > > tel. +41.1.632.4591 fax. +41.1.632.1214 > boyd at biomed.ee.ethz.ch > ------------------------------------------------------------------- > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From h.huisman at rad.umcn.nl Tue Jun 4 06:57:35 2002 From: h.huisman at rad.umcn.nl (h.huisman at rad.umcn.nl) Date: Tue, 04 Jun 2002 12:57:35 +0200 (CEST) Subject: [vtkusers] BrownianPoints Message-ID: Hi, Tried to use vtkBrownianPoints. Saw only positve displacements, which is odd considering Brownian motion should occur in all directions. Source code says: speed = vtkMath::Random(this->MinimumSpeed,this->MaximumSpeed); if ( speed != 0.0 ) { for (j=0; j<3; j++) { v[j] = vtkMath::Random(0,speed); } norm = vtkMath::Norm(v); for (j=0; j<3; j++) { v[j] *= (speed / norm); } } I think the vtkMath line should read: v[j] = speed*vtkMath::Random(-1,1); which assigns a vector of complete random orientation to v, instead of the positive half space only. Henkjan --------------------------------------------------------------------- H.J. Huisman, PhD, MSEE E : h.huisman at rad.umcn.nl Biomedical Physicist T : +31 24 3617536/14545 Dept. Radiology F : +31 24 3540866 UMC St. Radboud S : 430 Radiologie/POBox 9101/ 6500HB Nijmegen/Netherlands From Marc.Jaspar at ca.nestle.com Tue Jun 4 07:50:41 2002 From: Marc.Jaspar at ca.nestle.com (Jaspar,Marc,TRENTON,Engineering) Date: Tue, 4 Jun 2002 07:50:41 -0400 Subject: [vtkusers] Linear Extrusion Message-ID: <2F56456289DBD111A45B00805FC1DE7ABF97EF@ytr1n002.nestle.ca> Hi All Extruding structural shapes (W, S, etc.). From the point of origin on my generating surface as well as on the terminal surface, triangular sheets are generated to the extreme points of the shape. Moved the point of origin and the triangular panels follow. Wireframe view shows properly generate surfaces. Tried with convex surfaces and the generation is correct. Anyone know a work around for concave surfaces? M. Jaspar From andy.cedilnik at kitware.com Tue Jun 4 08:07:11 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 04 Jun 2002 08:07:11 -0400 Subject: [vtkusers] gif-Importer In-Reply-To: <3CFC7B5C.B21A6CAE@t-online.de> References: <3CFC7B5C.B21A6CAE@t-online.de> Message-ID: <1023192431.14153.17.camel@xanth.kitwarein.com> I think the problem is that GIF has some legal issues when using it? Andy On Tue, 2002-06-04 at 04:33, Franz Th. Langer wrote: > Hi dear vtk-users, > is there any possib. to read/import a gif-file and position it at a > certain point within my vtkpolydata and let the gif-file do its work? > > thanks very much for any help! From andy.cedilnik at kitware.com Tue Jun 4 08:08:53 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 04 Jun 2002 08:08:53 -0400 Subject: [vtkusers] vtkExpat.dll In-Reply-To: <001a01c20ba8$57a5f360$1c00a8c0@muscles> References: <001a01c20ba8$57a5f360$1c00a8c0@muscles> Message-ID: <1023192533.14153.20.camel@xanth.kitwarein.com> vtkExpat.dll is used for vtkXMLParser class inside VTK. It is not used directly by classes inside VTK but there are several projects that use it and soon some internals will use it. I will make sure it will appear in the vtkNightlyCore. Andy On Tue, 2002-06-04 at 05:15, R?my Baudet wrote: > Hello, > > What 'vtkExpat.dll' is used for? At execution of my app, the dll is > required but it is not present in my bin directory (from vtkNightly Core > + Cpp). > Is the dll mandatory or only in some cases? > Should I compile it myself from the sources? > Thanks for your help. From andy.cedilnik at kitware.com Tue Jun 4 08:11:01 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 04 Jun 2002 08:11:01 -0400 Subject: [vtkusers] How can I open a TIFF file? In-Reply-To: References: Message-ID: <1023192661.13895.23.camel@xanth.kitwarein.com> If I remember correctly, VTK 3.2 had the old TIFF reader inside (vtkTIFFReader). It is however limited to only a hand full of TIFF formats. If you want to be able to open arbitrary TIFF format, I suggest switching to VTK 4.*. vtkTIFFReader r r SetFileName "file.tif" r Update Andy On Tue, 2002-06-04 at 05:53, Roc?o S?nchez Fern?ndez wrote: > Is there any way to open a TIFF file and to get a pointer of the > luminance of the pixels independently of the NumberOfScalarsComponents? I > only work with gray-level images, but I have images with 1 and 4 > ScalarComponents... > I work with VTK 3.2 and tcl/tk on workstation Linux. From maraux at ondim.fr Tue Jun 4 08:23:06 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 4 Jun 2002 14:23:06 +0200 Subject: [vtkusers] how to create an implicit function from an extruded polygon? Message-ID: <005001c20bc2$955790a0$c000a8c0@ouessant> Hello, I wish to clip (x,y,z) points & triangles. I would like to keep values whose inside a (x,y) polygon, z doesn't matter. How can I produce a volume / implicit function of the clipping polygon "extruded" and sending it to vtkClipPolyData ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From robbel at science.uva.nl Tue Jun 4 09:02:17 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Tue, 4 Jun 2002 15:02:17 +0200 Subject: [vtkusers] gif-Importer In-Reply-To: <1023192431.14153.17.camel@xanth.kitwarein.com>; from andy.cedilnik@kitware.com on Tue, Jun 04, 2002 at 08:07:11AM -0400 References: <3CFC7B5C.B21A6CAE@t-online.de> <1023192431.14153.17.camel@xanth.kitwarein.com> Message-ID: <20020604150217.A2503@cruz.science.uva.nl> On Tue, Jun 04, 2002 at 08:07:11AM -0400, Andy Cedilnik wrote: > I think the problem is that GIF has some legal issues when using it? > > Andy Actually; you are allowed to *read* gifs. If you want to *generate* them, you have to pay a $5000 license fee to Unisys. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From warozzi at imation.com Tue Jun 4 10:11:16 2002 From: warozzi at imation.com (warozzi at imation.com) Date: Tue, 4 Jun 2002 09:11:16 -0500 Subject: vtk TIFF support (Was Re: [vtkusers] How can I open a TIFF file?) Message-ID: Beware, As of the nightly version of 2 April, it appears that there is a blend of both the original TIFF code and new support for the libtiff library. If a particular image's TIFF structure is supported by the old code, that code is used to read the data. Otherwise, the libtiff code is used, and in particular the libtiff RGBA interface. This means that no matter what the color space or bit depth of your image is, you'll get out 8-bit RGBA data For many applications this may be acceptable, but 1-bit images will consume 32 times the amount of memory necessary. In my application with TIFF files in the hundreds of megabites, this is a showstopper. (This fails even if I try to do an ExtractComponents right after the TIFF Reader so that there's only an 8x memory expansion, as the failure occurs in the vtkTIFFReader object.) I haven't had time to check whether this code blend has changed; would someone please post a note if the situation has improved? Regards, Bill Andy Cedilnik ware.com> cc: vtkusers at public.kitware.com Sent by: Subject: Re: [vtkusers] How can I open a TIFF file? vtkusers-admin at pub lic.kitware.com 06/04/2002 07:11 AM If I remember correctly, VTK 3.2 had the old TIFF reader inside (vtkTIFFReader). It is however limited to only a hand full of TIFF formats. If you want to be able to open arbitrary TIFF format, I suggest switching to VTK 4.*. vtkTIFFReader r r SetFileName "file.tif" r Update Andy On Tue, 2002-06-04 at 05:53, Roc?o S?nchez Fern?ndez wrote: > Is there any way to open a TIFF file and to get a pointer of the > luminance of the pixels independently of the NumberOfScalarsComponents? I > only work with gray-level images, but I have images with 1 and 4 > ScalarComponents... > I work with VTK 3.2 and tcl/tk on workstation Linux. _______________________________________________ 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 tpan at crd.ge.com Tue Jun 4 10:19:26 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Tue, 4 Jun 2002 10:19:26 -0400 Subject: [vtkusers] volume rendering (HELP) Message-ID: colorTransferFunction AddRGBPoint takes RGB color specification as float between 0.0 and 1.0 So your code would look like colorTransferFunction AddRGBPoint 128 0.3 0 0 colorTransferFunction AddRGBPoint 255 0 0 0.8 which gives a dark red for scalar value of 128, a bright blue at scalar value of 255, and shades of purple (linearly interpolated in RGB color space) in between. See http://public.kitware.com/VTK/doc/nightly/html/classvtkColorTransferFunction.html for api spec and examples. Tony -----Original Message----- From: vtk at le.isac.cnr.it [mailto:vtk at le.isac.cnr.it] Sent: Tuesday, June 04, 2002 4:57 AM To: vtkusers at public.kitware.com Subject: [vtkusers] volume rendering (HELP) Hi.. I work with VTK 4 and tcl/tk on workstation Linux. What can I do to configure this function to visualize many different color in volume rendering?? vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0 1 0 0 colorTransferFunction AddRGBPoint 64 2 0 0 colorTransferFunction AddRGBPoint 128 3 0 0 colorTransferFunction AddRGBPoint 255 4 0 0 colorTransferFunction AddRGBPoint 0 0 0 1 colorTransferFunction AddRGBPoint 64 0 0 2 colorTransferFunction AddRGBPoint 128 0 0 3 colorTransferFunction AddRGBPoint 192 0 0 4 colorTransferFunction AddRGBPoint 255 0 0 5 colorTransferFunction AddRGBPoint 0 0 1 0 colorTransferFunction AddRGBPoint 128 0 2 0 colorTransferFunction AddRGBPoint 192 0 3 0 colorTransferFunction AddRGBPoint 255 0 4 0 ***************************** The source code is: package require vtk package require vtkinteraction # Create the standard renderer, render window # and interactor vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # Create the reader for the data vtkStructuredPointsReader reader reader SetFileName "binHeart.vtk" # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 20 0.0 opacityTransferFunction AddPoint 255 0.2 vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0 1 0 0 colorTransferFunction AddRGBPoint 64 2 0 0 colorTransferFunction AddRGBPoint 128 3 0 0 colorTransferFunction AddRGBPoint 255 4 0 0 colorTransferFunction AddRGBPoint 0 0 0 1 colorTransferFunction AddRGBPoint 64 0 0 2 colorTransferFunction AddRGBPoint 128 0 0 3 colorTransferFunction AddRGBPoint 192 0 0 4 colorTransferFunction AddRGBPoint 255 0 0 5 colorTransferFunction AddRGBPoint 0 0 1 0 colorTransferFunction AddRGBPoint 128 0 2 0 colorTransferFunction AddRGBPoint 192 0 3 0 colorTransferFunction AddRGBPoint 255 0 4 0 # The property describes how the data will look vtkVolumeProperty volumeProperty volumeProperty SetColor colorTransferFunction volumeProperty SetScalarOpacity opacityTransferFunction # The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction compositeFunction vtkVolumeRayCastMapper volumeMapper volumeMapper SetVolumeRayCastFunction compositeFunction volumeMapper SetInput [reader GetOutput] # The volume holds the mapper and the property and # can be used to position/orient the volume vtkVolume volume volume SetMapper volumeMapper volume SetProperty volumeProperty ren1 SetBackground 0 0 0 ren1 AddVolume volume renWin Render wm withdraw . _______________________________________________ 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 Tue Jun 4 10:30:45 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Tue, 4 Jun 2002 10:30:45 -0400 Subject: [vtkusers] a widget observation Message-ID: Hi, I've noticed something that seems odd to me. To see it, I have just updated /Examples/GUI/Tcl/ImagePlaneWidget.tcl to show use of SetKeyPressActivationValue function inherited from vtkInteractorObserver. Run the example, enlarge the window, and left click on the red outlined plane: highlights green indicating it recieved the mouse click event. Hit the 'x' key to make it "deactivate" while the mouse cursor is in a position over the red plane such that when the plane is gone the cursor will be over one of the other planes. Now click the mouse: it's as if the red plane is still recieving mouse click/events...? I would think this behaviour is undesirable. Any thoughts anyone? Dean From maraux at ondim.fr Tue Jun 4 10:36:26 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 4 Jun 2002 16:36:26 +0200 Subject: [vtkusers] _desperatly_ need a way of clipping 3D surface with a 2D polygon Message-ID: <00b501c20bd5$3598a150$c000a8c0@ouessant> I cannot manage to clip a 3D xyz surface according to a 2D xy polygon. If someone has any clue, I would be glad to hear of it. any beginning of solution would be warmly welcome. Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From fxh39668 at gsk.com Tue Jun 4 10:52:00 2002 From: fxh39668 at gsk.com (Frederic Huguet) Date: Tue, 04 Jun 2002 16:52:00 +0200 Subject: [vtkusers] Intersection between a vtkPlane and a vtkRectilinearGrid Message-ID: <3CFCD410.435ABFA4@gsk.com> Hi vtkusers I try to find the4 intersection points between a vtkPlane and a vtkRectilinearGrid. I can find the coordinates of the 8 corners of the grid, and then I use the function vtkPlane::IntersectWithLine to find the points. My plane has its normal parallel to the Z axis and goes through the center of my Grid. The problem is that all my intersection points are FALSE (ouside the grid) and I really can't understant why. Has anyone some idea about this problem or a mean to use something else ? Thanks. From sebastien.barre at kitware.com Tue Jun 4 11:02:31 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Tue, 04 Jun 2002 11:02:31 -0400 Subject: [vtkusers] VTK RPMS. In-Reply-To: <15611.21588.381106.419915@monster.linux.in> Message-ID: <5.1.0.14.2.20020604110223.02d70e50@pop.nycap.rr.com> At 6/3/2002 07:34 AM, Prabhu Ramachandran wrote: >hi, > >Just wanted the list to know that Fabrice Bellet and Eric Boix create >nightly builds of VTK RPMS for RH 7.2 and 7.3 and put them up for >download here: > > http://www.creatis.insa-lyon.fr/vtk/ > >Tcl, Python and Java are supported. > >Many thanks to Fabrice and Eric! > >Enjoy, >prabhu > >p.s. Could this page be linked from the 'Get Software' VTK page? Done. -- Sebastien Barre From boyd at biomed.ee.ethz.ch Tue Jun 4 11:40:27 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Tue, 04 Jun 2002 17:40:27 +0200 Subject: [vtkusers] vtkTetra::JacobianInverse mistake? Message-ID: <3CFCDF6B.7AA25E7B@biomed.ee.ethz.ch> Hi, Am I mistaken, or should vtkTetra::JacobianInverse take three variables rather than the two defined: double **inverse float derivs[12] What about the pcoords[3]? Hmm... maybe I'm missing something. I'm using vtk4.1.1, rev 1.1214 Sincerely, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From jbiddiscombe at skippingmouse.co.uk Tue Jun 4 11:51:14 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 4 Jun 2002 16:51:14 +0100 Subject: [vtkusers] _desperatly_ need a way of clipping 3D surface with a 2D polygon References: <00b501c20bd5$3598a150$c000a8c0@ouessant> Message-ID: <000c01c20bdf$a8b12770$0100a8c0@tigger> vtkImplicitSelectionLoop ----- Original Message ----- From: "Sebastien_MARAUX" To: "vtk mailing list" Sent: Tuesday, June 04, 2002 3:36 PM Subject: [vtkusers] _desperatly_ need a way of clipping 3D surface with a 2D polygon I cannot manage to clip a 3D xyz surface according to a 2D xy polygon. If someone has any clue, I would be glad to hear of it. any beginning of solution would be warmly welcome. Sebastien MARAUX From ted at caept.com Tue Jun 4 12:20:47 2002 From: ted at caept.com (Ted Christiansen) Date: Tue, 04 Jun 2002 18:20:47 +0200 Subject: [vtkusers] vtkscalarbar - 3d entities "overwriting it" Message-ID: <3CFCE8DF.D161752B@caept.com> Hello, Has anyone seen the case where 3d entities - vtkUnstructuredgrid - overwrite the vtkscalarbar, i.e. the vtkscalarbar is not on top as it should be. I have not seen it in my testing, it is happening on a customer's computer. Ted From rannou at mednet.ucla.edu Tue Jun 4 13:13:14 2002 From: rannou at mednet.ucla.edu (Fernando Rannou) Date: Tue, 04 Jun 2002 10:13:14 -0700 Subject: [vtkusers] help need to compile Cone.java Message-ID: <3CFCF52A.42D62F39@mednet.ucla.edu> Hello, When I try to compile $VTKHOME/Examples/Tutorial/Step1/Java/Cone.java I get the following error message: Cone.java:9: package vtk does not exist import vtk.*; ^ Cone.java:31: cannot access vtkConeSource bad class file: /home/rannou/VTK/Java/vtkConeSource.class class file contains wrong class: vtk.vtkConeSource Please remove or make sure it appears in the correct subdirectory of the classpath. vtkConeSource cone = new vtkConeSource(); ^ 2 errors My Java classes are under $VTKHOME/Java I created a vtk.jar and put it there. Then I set CLASSPATH=$VTKHOME/Java export CLASSPATH I also tried: javac -classpath $VTKHOME/Java Cone.java and javac -classpath $VTKHOME/Java/vtk.jar Cone.java and I got the same error. Any ideas? Thanks lot Fernando Rannou Crump Institute for Molecular Imaging, UCLA School of Medicine From elbanna_m at hotmail.com Tue Jun 4 14:24:08 2002 From: elbanna_m at hotmail.com (Mahmoud El-Banna) Date: Tue, 04 Jun 2002 21:24:08 +0300 Subject: [vtkusers] Reading RAW format in vtk4? Message-ID: hello; i use the following code in vtk4 as an upgraded version of a certain code segment in reading raw format,the application runs perfectly in the old version, after upgrading there is no compilation error but the application stops with a run time error, i use vc++6 under windows xp,and the upgraded code is in the same logic as the old code any help will be appreciated *****************************code*********************** CString m_FileName; char STUDY[100]; int length=m_FileName.GetLength(); for(int i=0;iSetFilePrefix(STUDY); ROW=512; COL=512; reader->SetDataDimensions(512,512); reader->SetDataByteOrderToBigEndian(); reader->SetHeaderSize(3416); vtkStructuredPoints *sp=vtkStructuredPoints ::New(); scalar=vtkFloatArray :: New(); sp=reader->GetImage (1); scalar = (vtkFloatArray*) sp->GetPointData()->GetScalars(); int sc=0; UpdateData(true); sp->GetPointData()->SetScalars(scalar); int *dim=sp->GetDimensions (); // vtkStructuredPointsToImage *toImage=vtkStructuredPointsToImage ::New(); // toImage->SetInput(sp); vtkImageViewer *viewer = vtkImageViewer :: New(); viewer-> SetInput (sp); viewer->SetColorWindow (1000); viewer->SetColorLevel (1000); // Image display vtkImageMapper *mapper=vtkImageMapper::New(); mapper->SetInput(sp); vtkActor2D *actor=vtkActor2D::New(); actor->SetMapper (mapper); vtkRenderer *ren1=vtkRenderer::New(); vtkRenderWindow *renWin=vtkRenderWindow::New(); renWin->AddRenderer (ren1); iren=vtkRenderWindowInteractor::New(); iren->SetRenderWindow (renWin); ren1->AddActor(actor); renWin->SetSize (425,425); iren->Initialize(); int * pos; pos=iren->GetEventPosition (); m_window1=pos[0]; m_level1 =pos[1]; UpdateData(false); Mahmoud El-Banna _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From a.trum at teraport.de Tue Jun 4 16:27:08 2002 From: a.trum at teraport.de (Alexander Trum) Date: Tue, 04 Jun 2002 22:27:08 +0200 Subject: [vtkusers] Performance with NVidia GForce Message-ID: <3CFD229C.7AD4B211@teraport.de> Hello We are now evaluating Kitware's GoFly on following machine: AMD Athlon 800 MHz 640 MB RAM Windows NT 4.0 NVidia GForce4 MX440 64MB DDR NVidia Treiber V28.80 The ViewPerf tests on this machine can render round about 3 millions of triangles per second. With GoFly only 0.6 millions of triangles per second are rendered. As far as i know GoFly based on VTK. Does VTK use software rendering instead of hardware rendering? Or is this a problem of Tcl/Tk? Thanks a lot in advance, Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: a.trum.vcf Type: text/x-vcard Size: 409 bytes Desc: Karte f?r Alexander Trum URL: From robmitch at eng.uts.edu.au Tue Jun 4 20:37:07 2002 From: robmitch at eng.uts.edu.au (Robert Mitchell) Date: Wed, 05 Jun 2002 10:37:07 +1000 Subject: [vtkusers] Re: How can I open a TIFF file? Message-ID: <3CFD5D33.EF6D2C19@eng.uts.edu.au> Rocio, Take note of other replies, but to get your single gray-scale components, try this... vtkTIFFReader --> vtkImageLuminance cheers -- Robert Mitchell Faculty of Engineering University of Technology, Sydney +61 2 9514 2317 From lisong at vrac.iastate.edu Tue Jun 4 21:12:03 2002 From: lisong at vrac.iastate.edu (Song Li) Date: Tue, 04 Jun 2002 20:12:03 -0500 Subject: [vtkusers] vtk4.0 installation failed on linux ???? Message-ID: <3CFD6563.CB2C794C@vrac.iastate.edu> Hi, Does anybody has the same experience : I installed VTK4.0 using cmake, most variables are defualt , except disable test,the installation seems just fine, but when I compiling my own code have vtk function, the result is like : ----------------------------------------------------------------------------------- g++ -DHAVE_CONFIG_H -LANG:std -g -O2 -I/home/users/lisong/vtk/linux/VTK/. -I/home/users/lisong/vtk/linux/VTK/Graphics -I/home/users/lisong/vtk/linux/VTK/Filtering -I/home/users/lisong/vtk/linux/VTK/Common -I/home/users/lisong/vtk/linux/VTK/Hybrid -I/home/users/lisong/vtk/linux/VTK/Imaging -I/home/users/lisong/vtk/linux/VTK/IO -I/home/users/lisong/vtk/linux/VTK/Rendering -I/home/users/lisong/vtk/linux/VTK/Parallel -I/home/users/lisong/vtk/linux/VTK/Patented -LANG:std -c ./cfdApp.cxx g++ -DHAVE_CONFIG_H -LANG:std -g -O2 -I/home/users/lisong/vtk/linux/VTK/. -I/home/users/lisong/vtk/linux/VTK/Graphics -I/home/users/lisong/vtk/linux/VTK/Filtering -I/home/users/lisong/vtk/linux/VTK/Common -I/home/users/lisong/vtk/linux/VTK/Hybrid -I/home/users/lisong/vtk/linux/VTK/Imaging -I/home/users/lisong/vtk/linux/VTK/IO -I/home/users/lisong/vtk/linux/VTK/Rendering -I/home/users/lisong/vtk/linux/VTK/Parallel -I/home/users/lisong/vtk/linux/VTK/Patented -c ./cfdDataSet.cxx g++ -DHAVE_CONFIG_H -LANG:std -g -O2 -I/home/users/lisong/vtk/linux/VTK/. -I/home/users/lisong/vtk/linux/VTK/Graphics -I/home/users/lisong/vtk/linux/VTK/Filtering -I/home/users/lisong/vtk/linux/VTK/Common -I/home/users/lisong/vtk/linux/VTK/Hybrid -I/home/users/lisong/vtk/linux/VTK/Imaging -I/home/users/lisong/vtk/linux/VTK/IO -I/home/users/lisong/vtk/linux/VTK/Rendering -I/home/users/lisong/vtk/linux/VTK/Parallel -I/home/users/lisong/vtk/linux/VTK/Patented -c ./cfdIsosurface.cxx g++ -Bdynamic -LANG:std -o project cfdApp.o cfdDataSet.o cfdIsosurface.o -L/usr/X11R6/lib -L/home/users/lisong/vtk/linux/VTK/bin -L/usr/lib -L/usr -lvtkGraphics -lvtkCommon -lvtkFiltering -lvtkRendering -lGLU -lGL -lXext -lX11 -lXmu -lXt -lm ...... /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:79: undefined reference to `vtkProp::GetRedrawMTime(void)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:80: undefined reference to `vtkProp::GetNextPath(void)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:81: undefined reference to `vtkProp::GetNumberOfPaths(void)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:83: undefined reference to `vtkProp::RenderOverlay(vtkViewport *)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:84: undefined reference to `vtkProp::GetEstimatedRenderTime(vtkViewport *)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:84: undefined reference to `vtkProp::GetEstimatedRenderTime(void)' /home9/users/lisong/vtk/linux/VTK/Rendering/vtkLODProp3D.cxx:84: undefined reference to `vtkProp::SetEstimatedRenderTime(float)' ........................................................... make: *** [project] Error 1 ------------------------------------------------------------------------ it can generate .o , but ons of such errors indicate that there are some unresolved symbol in the libraries I linked, did I do something wrong, or my installation of VTK4.0 actually failed????? Thanks in advance. -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong at vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong -------------- next part -------------- An HTML attachment was scrubbed... URL: From dai_shuocn at 163.com Tue Jun 4 21:12:18 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Wed, 5 Jun 2002 9:12:18 +0800 Subject: [vtkusers] A simple question about vtkPolyData Message-ID: <20020605011213.E03121C6F0550@sm5.163.com> Hi, all I have a vtkPolyData, and I know it's composed of some polygons. Now I want to get the point list of each polygon, how? vtkPolyData::GetPolys() seems helpful, but I don't know how to deal with a vtkCellArray which it returns. Please give me a solution. Thank you very much! ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-05 From parvanes at ece.ubc.ca Tue Jun 4 22:48:02 2002 From: parvanes at ece.ubc.ca (Parvaneh Saeedi) Date: Tue, 4 Jun 2002 19:48:02 -0700 Subject: [vtkusers] VRML objects Message-ID: <002b01c20c3b$69162d20$98385289@rcl.ece.ubc.ca> Hi everyone, I am trying to import a VRML object into vtk. One of the users advised me to read the VRML and save it into vtk format. This way I have access to the actors. Through hi help I wrote the following code: int main( int argc, char *argv[] ) { vtkRenderer *ren1= vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); vtkVRMLImporter *importer=vtkVRMLImporter::New(); importer->SetRenderWindow(renWin); importer->SetFileName("woman.wrl"); importer->Read(); ren1=importer->GetRenderer(); ren1->SetBackground(0.1, 0.2, 0.4); renWin->SetSize(300,300); vtkRendererCollection *renCollection=vtkRendererCollection::New(); renCollection = renWin->GetRenderers(); renCollection->InitTraversal(); vtkRenderer *ren= vtkRenderer::New(); ren = renCollection->GetNextItem(); ren->ResetCamera(); ren->GetActiveCamera()->Dolly(1.75); ren1->ResetCameraClippingRange(); vtkActorCollection *actorcol=vtkActorCollection::New(); actorcol=ren->GetActors(); vtkActor *actor=vtkActor::New(); actor=actorcol->GetLastActor(); vtkMapper *map=actor->GetMapper(); vtkDataSet *PolyData=map->GetInput(); //vtkDataSet *PolyData=ren->GetActors()->GetLastActor()->GetMapper()->GetInput(); vtkDataSetWriter *writer=vtkDataSetWriter::New(); writer->SetInput(PolyData); writer->SetFileName("woman.vtk"); writer->Write(); } The woman.vtk file is created successfully! However when I read it later and try to scale it only one item of my VRML object, hair piece, is there. Either I am not transforming the VRML into vtk completely or I have problem later when I read the vtk. Could anyone who has worked with VRML objects provide me with some guidance? Thanks very much. Parvaneh Saeedi -------------- next part -------------- An HTML attachment was scrubbed... URL: From requiem at altavista.fr Wed Jun 5 02:35:56 2002 From: requiem at altavista.fr (Israel Huerta) Date: 5 Jun 2002 06:35:56 +0000 Subject: [vtkusers] vtkRenderingJava.dll Help Message-ID: <20020605063556.28320.cpmta@c000.lhr.cp.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From yoshihiko_nagamine at pis.hitachi.co.jp Wed Jun 5 03:51:26 2002 From: yoshihiko_nagamine at pis.hitachi.co.jp (yoshihiko_nagamine at pis.hitachi.co.jp) Date: Wed, 5 Jun 2002 16:51:26 +0900 Subject: [vtkusers] How to display PolyData(which converted from image data) and PolySource together Message-ID: Dear VTK users I'm trying to display a PolyData and PolySource together. After execute program, I expect the extracted born and red sphere are appeared together on the window. But, the result of this program only showed Extracted Born.. I know there are some mistakes in the program, but I cant find. Dose anybody knows the hints or has the suggetions? --------------------------------------------- I wrote following program: //======================== // ****** Extract Born ****** //======================== //*** construct staff**** vtkContourFilter volExtBorn = new vtkContourFilter(); vtkPolyDataMapper polyMapBorn = new vtkPolyDataMapper(); vtkActor actorBorn = new vtkActor(); vtkRenderer renderer = new vtkRenderer(); vtkLight light = new vtkLight(); volExtBorn.SetInput(imageReader.GetOutput()); volExtBorn.UseScalarTreeOn(); volExtBorn.SetValue(0, 1150); // *** Mapping *** polyMapBorn.SetInput(volExtBorn.GetOutput()); polyMapBorn.ScalarVisibilityOff(); // *** Actor *** actorBorn.SetMapper(polyMapBorn); actorBorn.GetProperty().SetOpacity(0.5); //======================== // ****** Sphere Source **** //======================== vtkSphereSource sph = new vtkSphereSource(); vtkPolyDataMapper sphMapper = new vtkPolyDataMapper(); sphMapper.SetInput(sph.GetOutput()); sphMapper.ScalarVisibilityOff(); vtkActor sphActor = new vtkActor(); sphActor.SetMapper(sphMapper); sphActor.GetProperty().SetColor(1,0,0); sphActor.GetProperty().SetOpacity(0.8); renderer.AddProp(sphActor); renderer.AddProp(actorBorn); ------------------------------------------------ Thanks ---------------------------------------- Yoshihiko Nagamine From maraux at ondim.fr Wed Jun 5 04:04:30 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 5 Jun 2002 10:04:30 +0200 Subject: [vtkusers] A simple question about vtkPolyData References: <20020605011213.E03121C6F0550@sm5.163.com> Message-ID: <001901c20c67$9f5a5f60$c000a8c0@ouessant> try : int index; for (int i=0;iGetNumberOfPolys();i++,index++) { // looking for polygon cells / quad cells or triangle cells, you can remove some types if //you want but beware that you need to count the number of this special type cells for the //loop, or getnumberofpolys will loop too far in the cell and a memory error will occure. while (vtkPlyData->GetCellType(index) != VTK_POLYGON && (idem) != VTK_QUAD //which is also a poly && (idem) != VTK_TRIANGLE //idem, I can forget some types, refer to vtkCellTypes //for more types ) index++; vtkIdList *points = vtkIdList::New(); vtkPolyData::GetCellPoints(index, points); // points contained in "points" are the current cell points, do whatever you want with it. // you can retrieve them by looping for points->GetNumberOfIds() in // vtkPolyData->GetPoint(points->GetId(x)); for each polygon/quad/triangle cell. } you can tweak this for use with get polys, which should be simpler: once you have your cell array, you can loop in each cell and do the same job : loop for number of ids (getpointids) and do a getcellpoints on the vtkpolydata Hope this helps Sebastien Maraux ----- Original Message ----- From: "Dai Shuo" To: "vtk" Sent: Wednesday, June 05, 2002 3:12 AM Subject: [vtkusers] A simple question about vtkPolyData Hi, all I have a vtkPolyData, and I know it's composed of some polygons. Now I want to get the point list of each polygon, how? vtkPolyData::GetPolys() seems helpful, but I don't know how to deal with a vtkCellArray which it returns. Please give me a solution. Thank you very much! ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-05 _______________________________________________ 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 fxh39668 at gsk.com Wed Jun 5 04:29:57 2002 From: fxh39668 at gsk.com (Frederic Huguet) Date: Wed, 05 Jun 2002 10:29:57 +0200 Subject: [vtkusers] bug with vtkPlane ? Message-ID: <3CFDCC04.EF4498CF@gsk.com> Hi, When defining a vtkPlane with an origin and a normal vector, I want to rotate the plane by changing the normal vector. But when I do that,(with the vtkPlane::SetNormal method) the vtkPlane always stays at the same position, it is impossible to define another orientation. Is it a bug in VTK ???? Thanks From c.p.botha at its.tudelft.nl Wed Jun 5 04:42:13 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Wed, 5 Jun 2002 10:42:13 +0200 Subject: [vtkusers] bug with vtkPlane ? In-Reply-To: <3CFDCC04.EF4498CF@gsk.com> References: <3CFDCC04.EF4498CF@gsk.com> Message-ID: <20020605084213.GB4874@dutidad.twi.tudelft.nl> On Wed, Jun 05, 2002 at 10:29:57AM +0200, Frederic Huguet wrote: > When defining a vtkPlane with an origin and a normal vector, I want to > rotate the plane by changing the normal vector. But when I do that,(with > the vtkPlane::SetNormal method) the vtkPlane always stays at the same > position, it is impossible to define another orientation. Is it a bug in > VTK ???? Are you sure that the plane is staying at the same position? It could be that your pipeline is just not updating. Could you post a small snippet of code that shows your pipeline? -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From ottermo at stud.ntnu.no Wed Jun 5 05:10:13 2002 From: ottermo at stud.ntnu.no (Maria Vatshaug Ottermo) Date: Wed, 5 Jun 2002 11:10:13 +0200 (CEST) Subject: [vtkusers] Arbitrary cut plane Message-ID: Hi! I am trying to cut an arbitrary plane in a volume. To do this I use vtkPlane and vtkCutter. I've managed to do cutting by selecting three points in the volume and computing the plane normals. The problem is that I would like to do the cutting by letting a user move a plane that intersects with the volume and then return the intersection. I have tried to do this by using vtkPlaneSource to draw a plane in the same window as the volume. The user can select an arbitrary centerpoint for rotation of the plane. After interaction I was hoping that I could extract the new plane normal and then use vtkPlane and vtkCutter to do the cutting in the same way as I did for the points, but I am not able to find the normals after interaction. Does anybody know how this can be done? Thank you in advance! Maria Ottermo From maraux at ondim.fr Wed Jun 5 05:11:07 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 5 Jun 2002 11:11:07 +0200 Subject: [vtkusers] using selection loop and vtkClipPolyData Message-ID: <00a401c20c70$ed7f7960$c000a8c0@ouessant> Hello, About vtkPolyData : I thought vtkPolyData was able to clip properly a polydata and to create new triangles when needed. It seems with my results that it is not the case, because my vtkClipPolyData output holes when it should not. I use it with selection loop, to extract pieces such as city area on a Digital elevation/terrain model. The elevation model being complete on the study area, I expected the area extracted to be exactly the city area in 3D. instead it output some triangles which does not match correctly borders, creating holes for example between city areas. Do you have any clue about how to correct this ? Thanks in advance Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From orlandomhb at yahoo.com Wed Jun 5 05:48:22 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Wed, 5 Jun 2002 02:48:22 -0700 (PDT) Subject: [vtkusers] How can I open a TIFF file? In-Reply-To: <1023192661.13895.23.camel@xanth.kitwarein.com> Message-ID: <20020605094822.14532.qmail@web10107.mail.yahoo.com> --- Andy Cedilnik wrote: > If I remember correctly, VTK 3.2 had the old TIFF > reader inside > (vtkTIFFReader). It is however limited to only a > hand full of TIFF > formats. If you want to be able to open arbitrary > TIFF format, I suggest > switching to VTK 4.*. > > vtkTIFFReader r > r SetFileName "file.tif" > r Update > > Andy > > On Tue, 2002-06-04 at 05:53, Roc?o S?nchez Fern?ndez > wrote: > > Is there any way to open a TIFF file and to get a > pointer of the > > luminance of the pixels independently of the > NumberOfScalarsComponents? I > > only work with gray-level images, but I have > images with 1 and 4 > > ScalarComponents... > > I work with VTK 3.2 and tcl/tk on workstation > Linux. > > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From maraux at ondim.fr Wed Jun 5 07:49:48 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 5 Jun 2002 13:49:48 +0200 Subject: [vtkusers] how to _ color_ write on a vtkImageCanvasSource2D ? Message-ID: <00c301c20c87$189c9b30$c000a8c0@ouessant> I would like to draw lines, etc. on a (jpeg read) image data. I use a vtkimageCanvasSource2D to gain access to the image data , but when I read the re exported image as a jpeg file, I can only see white drawings. What do I do wrong ? snippet : /*==============================================*/ vtkImageData *fond = vtkImageData::New(); fond->SetDimensions(2048,2048,1); fond->SetImageData(jpgReader->GetOutput()); fond->SetScalarTypeToUnsignedChar(); fond->SetNumberOfScalarComponents(3); fond->SetExtent(jpgReader->GetOutput()->GetExtent()); vtkImageCanvasSource2D *vicsSIG = vtkImageCanvasSource2D::New(); vicsSIG->SetScalarTypeToUnsignedChar(); vicsSIG->SetNumberOfScalarComponents(3); vicsSIG->SetExtent(fond->GetExtent()); vicsSIG->SetDrawColor(0.0,0.0,0.0); vicsSIG->FillBox(0,texSize[0],0,texSize[1]); vicsSIG->SetDrawColor(255.0,0.0,0.0); vicsSIG->FillBox(100,500,100,500); vicsSIG->SetDrawColor(255.0,255.0,0,0); vicsSIG->DrawSegment(0,0,1024,1024); vicsSIG->Update(); vtkJPEGWriter *jpgWriter2=vtkJPEGWriter::New(); jpgWriter2->SetInput(vicsSIG->GetOutput()); jpgWriter2->SetFileName("sortie2048.jpg"); jpgWriter2->SetQuality(95); jpgWriter2->ProgressiveOn(); tPrint("\toutputing texture : sorti2048.jpg\n"); /*==============================================*/ Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From orlandomhb at yahoo.com Wed Jun 5 08:07:50 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Wed, 5 Jun 2002 05:07:50 -0700 (PDT) Subject: [vtkusers] vtkAxes In-Reply-To: <15605.4372.116324.455295@monster.linux.in> Message-ID: <20020605120750.45274.qmail@web10101.mail.yahoo.com> --- Prabhu Ramachandran wrote: > >>>>> "MH" == M Hardikar > writes: > > MH> Hi there, I am using following code to > display X,Y,Z axes: > > MH> Does anybody know how to increase the > thickness for the axes > MH> and change the color too? > > You can use > actorAxes->GetProperty()->SetLineWidth(2) to simply > increase the linewidth or better use a vtkTubeFilter > with a suitable > radius and number of sides. I'm not exactly sure of > a great way to > change the axes color. > > prabhu > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From dai_shuocn at 163.com Wed Jun 5 09:30:00 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Wed, 5 Jun 2002 21:30:0 +0800 Subject: [vtkusers] A simple question about vtkPolyData Message-ID: <20020605132959.BC89B1DEAEEC1@sm6.163.com> Hi Sebastien, Thank you for the detailed reply. It works well. >try : > >int index; >for (int i=0;iGetNumberOfPolys();i++,index++) { > > // looking for polygon cells / quad cells or triangle cells, you can >remove some types if > //you want but beware that you need to count the number of this special >type cells for the > //loop, or getnumberofpolys will loop too far in the cell and a memory >error will occure. > > while (vtkPlyData->GetCellType(index) != VTK_POLYGON > && (idem) != VTK_QUAD //which is also a poly > && (idem) != VTK_TRIANGLE //idem, I can forget some types, >refer to vtkCellTypes > //for more types > ) index++; > > vtkIdList *points = vtkIdList::New(); > vtkPolyData::GetCellPoints(index, points); > >// points contained in "points" are the current cell points, do whatever you >want with it. >// you can retrieve them by looping for points->GetNumberOfIds() in >// vtkPolyData->GetPoint(points->GetId(x)); for each polygon/quad/triangle >cell. >} > >you can tweak this for use with get polys, which should be simpler: >once you have your cell array, you can loop in each cell and do the same job >: >loop for number of ids (getpointids) and do a getcellpoints on the >vtkpolydata > > >Hope this helps > >Sebastien Maraux > >----- Original Message ----- >From: "Dai Shuo" >To: "vtk" >Sent: Wednesday, June 05, 2002 3:12 AM >Subject: [vtkusers] A simple question about vtkPolyData > > >Hi, all > I have a vtkPolyData, and I know it's composed of some polygons. >Now I want to get the point list of each polygon, how? >vtkPolyData::GetPolys() >seems helpful, but I don't know how to deal with a vtkCellArray which it >returns. >Please give me a solution. Thank you very much! > >????????Dai Shuo >????????dai_shuocn at 163.com >??????????2002-06-05 > > > >_______________________________________________ >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 >. = = = = = = = = = = = = = = = = = = = = ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-05 From dai_shuocn at 163.com Wed Jun 5 09:44:22 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Wed, 5 Jun 2002 21:44:22 +0800 Subject: [vtkusers] Arbitrary cut plane Message-ID: <20020605134416.008DB1C45F939@sm6.163.com> try the following steps: Firstly, you should know the original normal vector of your vtkPlaneSource, Secondly, // get the transformation matrix of your PlaneSource after interaction double matrix[16]; PlaneSourceActor->GetMatrix(matrix); Third, Multiplies the matrix and the original normal vector, and the result is the current normal vector >Hi! > >I am trying to cut an arbitrary plane in a volume. To do this I use >vtkPlane and vtkCutter. I've managed to do cutting by selecting three >points in the volume and computing the plane normals. The problem is that >I would like to do the cutting by letting a user move a plane that >intersects with the volume and then return the intersection. I have tried >to do this by using vtkPlaneSource to draw a plane in the same window as >the volume. The user can select an arbitrary centerpoint for rotation of >the plane. After interaction I was hoping that I could extract the new >plane normal and then use vtkPlane and vtkCutter to do the cutting in the >same way as I did for the points, but I am not able to find the normals after >interaction. Does anybody know how this can be done? > >Thank you in advance! > >Maria Ottermo > > >_______________________________________________ >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 >. = = = = = = = = = = = = = = = = = = = = ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-05 From rgupta at irus.rri.ca Wed Jun 5 09:50:18 2002 From: rgupta at irus.rri.ca (Ravi Gupta) Date: Wed, 05 Jun 2002 09:50:18 -0400 Subject: [vtkusers] vtkSocketCommunicator etc. Message-ID: <3CFE171A.2090903@irus.rri.ca> Hi, I've been experimenting with vtkSocketCommunicator and associated classes to run vtkMarchingCubes on a remote machine and display the results on a local machine. It works great! This will allow me to use high end computation resources at a remote location. Question -------- How do i send the remote process running marching cubes information such as a new iso surface value to compute? I have a few ideas that would require some hacking but I was wondering if this problem was already solved by someone. A look at the classes in VTK 4.n does not seem to explicitly provide an answer. Thanks for providing these classes. I was about to write my own :) -Ravi -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta at irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi From boyd at biomed.ee.ethz.ch Wed Jun 5 09:55:59 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Wed, 05 Jun 2002 15:55:59 +0200 Subject: [vtkusers] Bug in vtkImageAccumulate? Message-ID: <3CFE186F.CEA42457@biomed.ee.ethz.ch> Hi, The problem seems to be whenever I send data of type double and int to vtkImageAccumulate, but no problems with floats. It seems that the pointer within the templated method of vtkImageAccumulate doesn't resolve the doubles and floats correctly (and maybe other types that I didn't try). I've attached a modified version of vtkImageAccumulate called vtkImageAccumulate2 that includes some terminal outputs at various points of the histogram calculation, and a main program that runs the class. I think this should re-create the bug for the case of ints. Sincerely, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: TestHistogramBug.cxx Type: application/x-unknown-content-type-cxxfile Size: 1674 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkImageAccumulate2.cxx Type: application/x-unknown-content-type-cxxfile Size: 13290 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkImageAccumulate2.h Type: application/x-unknown-content-type-hfile Size: 5081 bytes Desc: not available URL: From vtk at le.isac.cnr.it Wed Jun 5 10:03:57 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Wed, 5 Jun 2002 16:03:57 +0200 Subject: [vtkusers] vtkStructuredPointsReader and color Message-ID: <200206051403.g55E3vM25675@nemesi.le.isac.cnr.it> Hi.. i have an other problem with vtk 4.0 (tcl/tk on linux). I have a vtkStructuredPointsReader, and i would like to visualize a 2d images with: ******************************************************** vtkStructuredPointsReader reader reader SetFileName "heart.vtk" reader Update vtkPlane cutPlane eval cutPlane SetOrigin [[reader GetOutput] GetCenter] cutPlane SetNormal 1 0 0 vtkCutter planeCut planeCut SetInput [reader GetOutput] planeCut SetCutFunction cutPlane # Isosuperficie 2d vtkDataSetMapper mapper mapper SetInput [planeCut GetOutput] eval mapper SetScalarRange [[[[reader GetOutput] GetPointData] GetScalars] GetRange] # Linee di livello vtkContourFilter contours contours SetInput [planeCut GetOutput] contours GenerateValues 20 0.0 200 # mapper SetInput [contours GetOutput] vtkActor cutActor cutActor SetMapper mapper **************************************************** then i want to visualize a volume, with this code: ************************************************ # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 20 0.0 opacityTransferFunction AddPoint 255 0.2 vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 64 0 1 0 colorTransferFunction AddRGBPoint 128 1 0 0 colorTransferFunction AddRGBPoint 255 0 0 1 # The property describes how the data will look vtkVolumeProperty volumeProperty volumeProperty SetColor colorTransferFunction volumeProperty SetScalarOpacity opacityTransferFunction # The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction compositeFunction vtkVolumeRayCastMapper volumeMapper volumeMapper SetVolumeRayCastFunction compositeFunction volumeMapper SetInput [reader GetOutput] # The volume holds the mapper and the property and # can be used to position/orient the volume vtkVolume volume volume SetMapper volumeMapper volume SetProperty volumeProperty ******************************************************** my header file data is: # vtk DataFile Version 2.0 CT scan data of human heart, courtesy by Henk Mastenbroek RuG ASCII DATASET STRUCTURED_POINTS DIMENSIONS 32 32 12 ORIGIN 0.000 0.000 0.000 SPACING 1.000 1.000 4.000 POINT_DATA 12288 SCALARS colors unsigned_char LOOKUP_TABLE default ************************************************** so I visualize the volume with many different color, and the 2d images in the gray scale color. If I change SCALARS colors unsigned_char in to SCALAR scalars float, i visualize 2d images in many different color and don't view the volume. What can i do to visualize all images in many different color??? thanks From berk.geveci at kitware.com Wed Jun 5 10:31:23 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 05 Jun 2002 10:31:23 -0400 Subject: [vtkusers] vtkSocketCommunicator etc. In-Reply-To: <3CFE171A.2090903@irus.rri.ca> References: <3CFE171A.2090903@irus.rri.ca> Message-ID: <1023287489.23622.23.camel@caemlyn.kitwarein.com> You have a few options: 1. Use RMIs (see vtkMultiProcessController and vtkSocketController) which have send/receive in them. For example, setup a ReceiveNewParameter RMI on the server and have a Receive call in it. Then the client can do something like controller->TriggerRMI(1, RECEIVE_RMI_TAG); controller->Send( the parameters here ) 2. Use RMIs and the support for sending an array with the RMI controller->Trigger(1, array, array_length, DO_SOMETHING_TAG); Your RMI will now receive this array 3. Use something like Tcl, Python etc. and send commands as strings which are executed on the server 4. Use a second communication mechanism (such as corba, some other RMI library etc..) together with communicators I am sure there are others. These are the ones I can think of now. -Berk On Wed, 2002-06-05 at 09:50, Ravi Gupta wrote: > Hi, > > I've been experimenting with vtkSocketCommunicator and associated > classes to run vtkMarchingCubes on a remote machine and display the > results on a local machine. It works great! This will allow me to use > high end computation resources at a remote location. > > Question > -------- > How do i send the remote process running marching cubes information such > as a new iso surface value to compute? > > I have a few ideas that would require some hacking but I was wondering > if this problem was already solved by someone. A look at the classes in > VTK 4.n does not seem to explicitly provide an answer. > > Thanks for providing these classes. I was about to write my own :) > > -Ravi > > > -- > Ravi Gupta > > Programmer > > > ################################################# > The John P. | P.O. Box 5015 > Robarts Research Institute | 100 Perth Drive > Imaging Research Laboratories | London > Tel: (519) 663-5777 ext. 1-34077| Ontario > Fax: (519) 663-3403 | Canada > E-Mail: rgupta at irus.rri.ca | N6A 5K8 > ################################################# > > ################################################# > http://www.irus.rri.ca/igns > > http://www.irus.rri.ca/~rgupta > > ################################################# > > "Be the change you wish to see in the world." > -Mohandas Karamchand Gandhi > > _______________________________________________ > 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 ron at mediguide.co.il Wed Jun 5 12:11:19 2002 From: ron at mediguide.co.il (Ron Inbar) Date: Wed, 5 Jun 2002 18:11:19 +0200 Subject: [vtkusers] VTK 4.0 + Tcl (born-again newbie) Message-ID: <41D589F200A5D511AA0D000102DEB87948A8D8@MAIL-S> Hi, I used VTK 3.1 until about a year ago and haven't used it recently. Now I'm trying to upgrade to VTK 4.0. First I installed the pre-compiled binaries for Windows. They worked nicely, but I didn't have support for my VolumePro 500 card. Next, I configured CMake with the necessary variables (VLI_INCLUDE_PATH_FOR_VG500 and VLI_LIBRARY_FOR_VG500) and re-compiled from the sources. The compilation seemed to go through just fine. At this point I got stuck. I understand that vtkdll.dll and vtktcl.dll are no longer generated or loaded by Tcl. Instead, if I'm not mistaken, you use Tcl's package mechanism. What I couldn't figure out is: which files need to be loaded by Tcl and how do I get Tcl to load these files rather than the ones in the pre-compiled installation? Thanks in advance, Ron From orlandomhb at yahoo.com Wed Jun 5 11:22:03 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Wed, 5 Jun 2002 08:22:03 -0700 (PDT) Subject: [vtkusers] Help -- running Tcl example In-Reply-To: <007d01c2062d$08da1480$40449f82@SSRC> Message-ID: <20020605152203.90911.qmail@web10103.mail.yahoo.com> --- Bekir Turkmen wrote: > In windows, set up your TCLLIBPATH and add the vtk > executables (/vtk40/bin) ,dll files' path to your > path variable or you can put the dlls and > executables directly to your System directory. > > In Unix, The path of vtk's shared libraries(*.so) > and vtk executables must be defined in your path > variable. Although make install would put them the > directory where other system libraries are( you may > not need to modify your path variable). To modify > the path variable,for example in IRIX you can > modify .cshrc file( C shell) in your account's root > directory to add vtk executables' path > > In Unix > Then type > > vtk Your_Tcl_file.tcl > > I hope this helps.... > ----- Original Message ----- > From: Song Li > To: vtkusers at public.kitware.com > Sent: Monday, May 27, 2002 10:43 PM > Subject: [vtkusers] Help -- running Tcl example > > > Hi, > When I try to run a tcl example , it gives such > error message: > Error in startup script: can't find package vtk > while executing > "package require vtk" > > So where to define package????? Thanks! > > -- > Song Li > VRAC(Virtual Reality Application Center),Iowa State > University > Email: lisong at vrac.iastate.edu > Homepage: http://www.vrac.iastate.edu/~lisong > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From berk.geveci at kitware.com Wed Jun 5 11:24:21 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 05 Jun 2002 11:24:21 -0400 Subject: [vtkusers] vtkSocketCommunicator etc. In-Reply-To: <3CFE2BF8.7060604@irus.rri.ca> References: <3CFE171A.2090903@irus.rri.ca> <1023287489.23622.23.camel@caemlyn.kitwarein.com> <3CFE2BF8.7060604@irus.rri.ca> Message-ID: <1023290661.23622.28.camel@caemlyn.kitwarein.com> Now, you are breaking my heart. Check VTK/Examples/ParallelProcessing/Generic/Cxx/ParallelIso.cxx This is one of the earliest parallel examples. -Berk On Wed, 2002-06-05 at 11:19, Ravi Gupta wrote: > Thanks, > > Will have to read up on RMIs, I don't know how to use them and there > does not seem to be any examples... > > thanks > Ravi > > Berk Geveci wrote: > > > You have a few options: > > 1. Use RMIs (see vtkMultiProcessController and vtkSocketController) > > which have send/receive in them. For example, setup a > > ReceiveNewParameter RMI on the server and have a Receive call in it. > > Then the client can do something like > > controller->TriggerRMI(1, RECEIVE_RMI_TAG); > > controller->Send( the parameters here ) > > 2. Use RMIs and the support for sending an array with the RMI > > controller->Trigger(1, array, array_length, DO_SOMETHING_TAG); > > Your RMI will now receive this array > > 3. Use something like Tcl, Python etc. and send commands as strings > > which are executed on the server > > 4. Use a second communication mechanism (such as corba, some other > > RMI library etc..) together with communicators > > > > I am sure there are others. These are the ones I can think of now. > > > > -Berk > > > > > > On Wed, 2002-06-05 at 09:50, Ravi Gupta wrote: > > > >>Hi, > >> > >>I've been experimenting with vtkSocketCommunicator and associated > >>classes to run vtkMarchingCubes on a remote machine and display the > >>results on a local machine. It works great! This will allow me to use > >>high end computation resources at a remote location. > >> > >>Question > >>-------- > >>How do i send the remote process running marching cubes information such > >>as a new iso surface value to compute? > >> > >>I have a few ideas that would require some hacking but I was wondering > >>if this problem was already solved by someone. A look at the classes in > >>VTK 4.n does not seem to explicitly provide an answer. > >> > >>Thanks for providing these classes. I was about to write my own :) > >> > >>-Ravi > >> > >> > >>-- > >>Ravi Gupta > >> > >>Programmer > >> > >> > >>################################################# > >>The John P. | P.O. Box 5015 > >>Robarts Research Institute | 100 Perth Drive > >>Imaging Research Laboratories | London > >>Tel: (519) 663-5777 ext. 1-34077| Ontario > >>Fax: (519) 663-3403 | Canada > >>E-Mail: rgupta at irus.rri.ca | N6A 5K8 > >>################################################# > >> > >>################################################# > >>http://www.irus.rri.ca/igns > >> > >>http://www.irus.rri.ca/~rgupta > >> > >>################################################# > >> > >>"Be the change you wish to see in the world." > >>-Mohandas Karamchand Gandhi > >> > >>_______________________________________________ > >>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 > >> > > > > > -- > Ravi Gupta > > Programmer > > > ################################################# > The John P. | P.O. Box 5015 > Robarts Research Institute | 100 Perth Drive > Imaging Research Laboratories | London > Tel: (519) 663-5777 ext. 1-34077| Ontario > Fax: (519) 663-3403 | Canada > E-Mail: rgupta at irus.rri.ca | N6A 5K8 > ################################################# > > ################################################# > http://www.irus.rri.ca/igns > > http://www.irus.rri.ca/~rgupta > > ################################################# > > "Be the change you wish to see in the world." > -Mohandas Karamchand Gandhi > From orlandomhb at yahoo.com Wed Jun 5 11:24:17 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Wed, 5 Jun 2002 08:24:17 -0700 (PDT) Subject: [vtkusers] Help -- running Tcl example In-Reply-To: <4.3.2.7.2.20020527155715.0371bef8@mira-sjcm-2.cisco.com> Message-ID: <20020605152417.2644.qmail@web10108.mail.yahoo.com> --- Michael Norton wrote: > hi, > > What environment are you using? Windows? UNIX? > > You need to set the TCLLIBPATH to the > /VTK/wrapping/Tcl directory > > see /VTK/wrapping/Tcl/README > > Once this is set check your tclsh application with > > puts $auto_path > > to set if the TCLLIBPATH is set. > > later,,, > > Mike N. > > > > At 04:43 PM 5/27/2002 -0500, Song Li wrote: > >Hi, > > When I try to run a tcl example , it gives such > error message: > > > >Error in startup script: can't find package vtk > > while executing > >"package require vtk" > > > >So where to define package????? Thanks! > >-- > >Song Li > >VRAC(Virtual Reality Application Center),Iowa State > University > >Email: lisong at vrac.iastate.edu > >Homepage: > >http://www.vrac.iastate.edu/~lisong > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From gregory.bleiker at phonak.ch Wed Jun 5 12:11:27 2002 From: gregory.bleiker at phonak.ch (Gregory Bleiker) Date: Wed, 05 Jun 2002 18:11:27 +0200 Subject: [vtkusers] Screenshots Message-ID: Hi all I'm using vtkWindowToImageFilter* l_w2if= vtkWindowToImageFilter::New(); l_w2if->SetInput(RenderWindow); vtkJPEGWriter* l_wr= vtkJPEGWriter::New(); l_wr->SetInput(l_w2if->GetOutput()); l_wr->SetQuality(100); l_wr->SetFileName("screenshot.jpg"); l_wr->Write(); to do screenshots. However, the quality is not as good as the image rendered on the screen. Any help or ideas would be highly appreciated. Gregi From andresba at hotmail.com Wed Jun 5 12:34:42 2002 From: andresba at hotmail.com (Andres Barrera) Date: Wed, 05 Jun 2002 11:34:42 -0500 Subject: [vtkusers] Renderer into a form.... Message-ID: Hello everyone, I wish to put the renderer window inside some form I had created before. I don't want to create another window. I am using C++ (Borland) and VTK 4.0 Can anybody give me some idea on how to do that? Thank you for your help. Andres _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From tpan at crd.ge.com Wed Jun 5 12:38:56 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Wed, 5 Jun 2002 12:38:56 -0400 Subject: [vtkusers] Screenshots Message-ID: JPEG uses lossy compression, so quality degradation should be expected. You can try one of the other image formats, like BMP, PNM, or TIFF. PNG format is lossy, but it might give you better quality than JPEG. Tony -----Original Message----- From: Gregory Bleiker [mailto:gregory.bleiker at phonak.ch] Sent: Wednesday, June 05, 2002 12:11 PM To: vtkusers at public.kitware.com Subject: [vtkusers] Screenshots Hi all I'm using vtkWindowToImageFilter* l_w2if= vtkWindowToImageFilter::New(); l_w2if->SetInput(RenderWindow); vtkJPEGWriter* l_wr= vtkJPEGWriter::New(); l_wr->SetInput(l_w2if->GetOutput()); l_wr->SetQuality(100); l_wr->SetFileName("screenshot.jpg"); l_wr->Write(); to do screenshots. However, the quality is not as good as the image rendered on the screen. Any help or ideas would be highly appreciated. Gregi _______________________________________________ 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 VChalana at dxu.com Wed Jun 5 12:55:53 2002 From: VChalana at dxu.com (Vikram Chalana) Date: Wed, 5 Jun 2002 09:55:53 -0700 Subject: [vtkusers] VRML & volume rendering Message-ID: <5815E8F9C46BD311A9F0009027B6B9C4DA6551@mail.webdxu.com> Hello! Is it possible to export a volume rendering scene into a VRML file? If so, is there a trick to make it work? I seem to be getting the following message: vtkVRMLExporter (0x009DD8E0): no actors found for writing VRML file. My volume rendering code is the same as in vol.cxx in the examples. Thanks much, Vikram Chalana From lisa.avila at kitware.com Wed Jun 5 12:57:20 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Wed, 05 Jun 2002 12:57:20 -0400 Subject: [vtkusers] vtkStructuredPointsReader and color In-Reply-To: <200206051403.g55E3vM25675@nemesi.le.isac.cnr.it> Message-ID: <5.1.0.14.0.20020605125546.0424aec8@pop.nycap.rr.com> Hello, unsigned char is a special type that is used directly as a color. You'll need to do mapper->SetColorModeToMapScalars() to get it to map the colors through the lookup table. Lisa At 10:03 AM 6/5/2002, vtk at le.isac.cnr.it wrote: >Hi.. >i have an other problem with vtk 4.0 (tcl/tk on linux). >I have a vtkStructuredPointsReader, and i would like to visualize a 2d >images with: > > >******************************************************** >vtkStructuredPointsReader reader > reader SetFileName "heart.vtk" > reader Update > >vtkPlane cutPlane > eval cutPlane SetOrigin [[reader GetOutput] GetCenter] > cutPlane SetNormal 1 0 0 > > >vtkCutter planeCut > planeCut SetInput [reader GetOutput] > planeCut SetCutFunction cutPlane > > ># Isosuperficie 2d >vtkDataSetMapper mapper > mapper SetInput [planeCut GetOutput] > eval mapper SetScalarRange [[[[reader GetOutput] GetPointData] > GetScalars] GetRange] > ># Linee di livello >vtkContourFilter contours > contours SetInput [planeCut GetOutput] > contours GenerateValues 20 0.0 200 > ># mapper SetInput [contours GetOutput] > >vtkActor cutActor > cutActor SetMapper mapper > >**************************************************** > >then i want to visualize a volume, with this code: > >************************************************ ># Create transfer mapping scalar value to opacity >vtkPiecewiseFunction opacityTransferFunction > opacityTransferFunction AddPoint 20 0.0 > opacityTransferFunction AddPoint 255 0.2 > >vtkColorTransferFunction colorTransferFunction > colorTransferFunction AddRGBPoint 64 0 1 0 > colorTransferFunction AddRGBPoint 128 1 0 0 > colorTransferFunction AddRGBPoint 255 0 0 1 > > ># The property describes how the data will look >vtkVolumeProperty volumeProperty > volumeProperty SetColor colorTransferFunction > volumeProperty SetScalarOpacity opacityTransferFunction > ># The mapper / ray cast function know how to render the data >vtkVolumeRayCastCompositeFunction compositeFunction > >vtkVolumeRayCastMapper volumeMapper > volumeMapper SetVolumeRayCastFunction compositeFunction > volumeMapper SetInput [reader GetOutput] > > ># The volume holds the mapper and the property and ># can be used to position/orient the volume >vtkVolume volume > volume SetMapper volumeMapper > volume SetProperty volumeProperty >******************************************************** > >my header file data is: > > ># vtk DataFile Version 2.0 >CT scan data of human heart, courtesy by Henk Mastenbroek RuG >ASCII > >DATASET STRUCTURED_POINTS >DIMENSIONS 32 32 12 >ORIGIN 0.000 0.000 0.000 >SPACING 1.000 1.000 4.000 > >POINT_DATA 12288 >SCALARS colors unsigned_char >LOOKUP_TABLE default > >************************************************** > >so I visualize the volume with many different color, and the 2d images in >the gray scale color. >If I change SCALARS colors unsigned_char in to SCALAR scalars float, i >visualize 2d images in many different color and don't view the volume. > >What can i do to visualize all images in many different color??? > >thanks > > > >_______________________________________________ >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 Wed Jun 5 13:04:37 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Wed, 05 Jun 2002 13:04:37 -0400 Subject: [vtkusers] Performance with NVidia GForce In-Reply-To: <3CFD229C.7AD4B211@teraport.de> Message-ID: <5.1.0.14.0.20020605125959.04214418@pop.nycap.rr.com> Hello Alex, I would not use GoFly to evaluate performance. The version available on the web is fairly old (before many performance improvements were made to VTK) and is not focused on high performance visualization of a small number of models with a large number of polygons but rather a large number of models with a small number of polygons in each. There is a sphere benchmark test (http://www.barre.nom.fr/vtk/bench.html) but I am not sure if that is up-to-date any more. We have run performance evaluations and have found VTK's performance with one actor with a large number of polygons to be comparable to raw OpenGL. If you create many separate actors/mappers, the performance obviously degrades due to overhead and state changes. Lisa At 04:27 PM 6/4/2002, Alexander Trum wrote: >Hello > >We are now evaluating Kitware's GoFly on following machine: > >AMD Athlon 800 MHz >640 MB RAM >Windows NT 4.0 >NVidia GForce4 MX440 64MB DDR >NVidia Treiber V28.80 > >The ViewPerf tests on this machine can render round about 3 millions of >triangles per second. >With GoFly only 0.6 millions of triangles per second are rendered. > >As far as i know GoFly based on VTK. Does VTK use software rendering >instead of hardware rendering? >Or is this a problem of Tcl/Tk? > >Thanks a lot in advance, > Alex From cwant at ualberta.ca Wed Jun 5 13:22:03 2002 From: cwant at ualberta.ca (Chris Want) Date: Wed, 05 Jun 2002 11:22:03 -0600 Subject: [vtkusers] Mac OS X build problems Message-ID: <3CFE48BB.9030701@ualberta.ca> Hello, I am trying to build vtk for OS X using quartz and python wrapping (python is from the python-nox package in fink). I am new to OS X so this has been an interesting adventure, and although I have managed to overcome many obstacles along the way I am finally stumped by this error: c++ -bundle -flat_namespace -undefined suppress -fno-coalesce-templates -fno-coalesce-static-vtables -o /Users/cwant/vtk/VTK/bin/libvtkHybridPython.so vtkHybridPythonInit.o vtk3DSImporterPython.o vtkArcPlotterPython.o vtkCaptionActor2DPython.o vtkCubeAxesActor2DPython.o vtkDepthSortPolyDataPython.o vtkEarthSourcePython.o vtkGridTransformPython.o vtkImplicitModellerPython.o vtkImageToPolyDataFilterPython.o vtkIterativeClosestPointTransformPython.o vtkLandmarkTransformPython.o vtkLegendBoxActorPython.o vtkPolyDataToImageStencilPython.o vtkRenderLargeImagePython.o vtkRIBExporterPython.o vtkRIBLightPython.o vtkRIBPropertyPython.o vtkThinPlateSplineTransformPython.o vtkTransformToGridPython.o vtkVectorTextPython.o vtkVideoSourcePython.o vtkVRMLImporterPython.o vtkXYPlotActorPython.o vtkWeightedTransformFilterPython.o -L/Users/cwant/vtk/VTK/bin -L/sw/lib/python2.2 -lpthread -lm -lvtkRenderingPython -lvtkIOPython -lvtkGraphicsPython -lvtkImagingPython -lvtkFilteringPython -lvtkCommonPython -framework Carbon -framework AGL -framework OpenGL -framework AppKit -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics -lvtkIO -lvtkRendering -lvtkHybrid -lvtkRendering -framework Carbon -framework AGL -framework OpenGL -framework AppKit -lvtkImaging -lvtkIO -lvtkpng -lvtkzlib -lvtkjpeg -lvtkGraphics -lvtkFiltering -lvtkCommon -lpthread -lm /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkRenderingPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkIOPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkGraphicsPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkImagingPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkFilteringPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again /usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkCommonPython.dylib is input for the dynamic link editor, is not relocatable by the static link editor again make[3]: *** [/Users/cwant/vtk/VTK/bin/libvtkHybridPython.so] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Hybrid] Error 2 make: *** [default_target] Error 2 Anybody know a workaround for this error? Thanks, Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From prabhu at aero.iitm.ernet.in Wed Jun 5 13:30:30 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 5 Jun 2002 23:00:30 +0530 Subject: [vtkusers] Screenshots In-Reply-To: References: Message-ID: <15614.19126.728632.135220@monster.linux.in> >>>>> "TCP" == "Pan, Tony C (Research)" writes: TCP> JPEG uses lossy compression, so quality degradation should be TCP> expected. You can try one of the other image formats, like TCP> BMP, PNM, or TIFF. PNG format is lossy, but it might give TCP> you better quality than JPEG. The PNG format is *not* lossy. From http://www.w3.org/Graphics/PNG/ """PNG is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel for transparency. Sample depths range from 1 to 16 bits.""" cheers, prabhu From ystarrev at uwo.ca Wed Jun 5 13:35:35 2002 From: ystarrev at uwo.ca (Yves Starreveld) Date: Wed, 5 Jun 2002 13:35:35 -0400 Subject: [vtkusers] Mac OS X build problems In-Reply-To: <3CFE48BB.9030701@ualberta.ca> Message-ID: Chris, There shouldn't be much in the way of obstacles: Get the latest CMake from cvs (./configure, make, sudo make install) Get the latest VTK from cvs create a binary directory from that directory, type cmake where sourceDir is the location of your VTK directory edit the CMakeCache.txt file to set wrap_python to on and make_shared to on run cmake again (the same way, specifying the location of your VTK directory) edit the CMakeCache.txt file to show where your python.h file is and your python lib is run cmake again type make Let me know if you have problems. (all this info is being added to the README.html file as we speak) Yves From gregory.bleiker at phonak.ch Wed Jun 5 13:46:12 2002 From: gregory.bleiker at phonak.ch (Gregory Bleiker) Date: Wed, 05 Jun 2002 19:46:12 +0200 Subject: [vtkusers] Screenshots Message-ID: Thank you all for your feedback. I have also tried the other formats and still the lines seem to be jaggy... can I control the resolution of the image other than by pixel size of the rendered image? From melvin.hadasht at free.fr Wed Jun 5 13:44:43 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Wed, 5 Jun 2002 19:44:43 +0200 Subject: [vtkusers] Screenshots In-Reply-To: References: Message-ID: <20020605194443.7a7da5c9.melvin.hadasht@free.fr> Hi, on Wed, 05 Jun 2002 19:46:12 +0200 "Gregory Bleiker" wrote: > Thank you all for your feedback. > I have also tried the other formats and still the lines seem to be jaggy... > can I control the resolution of the image other than by pixel size of the > rendered image? You may try a vector postscript output using GL2PS library: http://www.geuz.org/gl2ps/ [In the example they have, just replace draw() by renWin->Render()]. Beware that it does make large files and that it does not handle the alpha channel. Cheers -- Melvin Hadasht From jeff at cdnorthamerica.com Wed Jun 5 13:55:55 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 05 Jun 2002 13:55:55 -0400 Subject: [vtkusers] Screenshots References: Message-ID: <3CFE50AB.9050702@cdnorthamerica.com> Set the magnification on the vtkWindowToImageFilter : w2if->SetMagnification(mag); where mag is used to control resolution. To double resolution/size of image, mag=2. -Jeff Gregory Bleiker wrote: >Thank you all for your feedback. >I have also tried the other formats and still the lines seem to be jaggy... can I control the resolution of the image other than by pixel size of the rendered image? > > > >_______________________________________________ >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 Wed Jun 5 14:00:19 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 5 Jun 2002 23:30:19 +0530 Subject: [vtkusers] Screenshots In-Reply-To: References: Message-ID: <15614.20915.879854.639573@monster.linux.in> >>>>> "GB" == Gregory Bleiker writes: GB> Thank you all for your feedback. I have also tried the other GB> formats and still the lines seem to be jaggy... can I control GB> the resolution of the image other than by pixel size of the GB> rendered image? You might want to anti-alias or even try the line smoothing/polygon smoothing options of the vtkRenderWindow. rw = vtkRenderWindow() rw.SetAAFrames(16) # will slow down rendering very much. rw.LineSmoothingOn() rw.PolygonSmoothingOn() Experiment with these. Please remember that some of these settings require that you call them before you do the first render. Read the vtkRenderWindow class docs for more info. prabhu From ken.martin at kitware.com Wed Jun 5 14:02:35 2002 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 5 Jun 2002 14:02:35 -0400 Subject: [vtkusers] CMake version 1.4 beta released Message-ID: Hello Folks, There is a beta version of CMake 1.4 available for your inspection. You can download the windows binary at www.cmake.org/CMSetupBeta.exe and UNIX source tar files can be found at www.cmake.org/HTML/Download.html Please let us know what issues you run into so that we can address them prior to the 1.4 release. Thanks Ken -------------------------- Ken Martin, PhD Kitware Inc. 518 371-3971 x101 469 Clifton Corporate Pkwy. Clifton Park, NY 12065 From krs at cs.uncc.edu Wed Jun 5 14:21:26 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Wed, 05 Jun 2002 14:21:26 -0400 Subject: [vtkusers] CMake version 1.4 beta released References: Message-ID: <3CFE56A6.B652F1B8@cs.uncc.edu> Ken Martin wrote: > Hello Folks, > > There is a beta version of CMake 1.4 available for your inspection. > You can download the windows binary at www.cmake.org/CMSetupBeta.exe > and UNIX source tar files can be found at > www.cmake.org/HTML/Download.html Please let us know what issues you > run into so that we can address them prior to the 1.4 release. When I recently build vtk4.1.1 on my SGI IRIX 6.5, there was one problem; the Makefiles that were generated generated the following CC commands.. CC ...........stuff deleted...... -I\ /usr/include/python-1.5/............ etc.. Everytime the compilation started for python in each subdirectory, this would stop and I had to go and touch up the Makefile by removing the \ and the space characters in the above. Pretty annoying. I am pretty sure I gave the right pathname for python to cmake -i Under linux, I had no problem building the same source. -- krs > > > Thanks > Ken > > -------------------------- > Ken Martin, PhD > Kitware Inc. > 518 371-3971 x101 > 469 Clifton Corporate Pkwy. > Clifton Park, NY 12065 > > _______________________________________________ > 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 -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From maraux at ondim.fr Wed Jun 5 14:37:45 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 5 Jun 2002 20:37:45 +0200 Subject: [vtkusers] vtkClipPolyData does not clip properly. Message-ID: <002401c20cc0$15dca0f0$c000a8c0@ouessant> Hello, With selection Loop as an implicit function, vtkClipPolyData does not clip as I think it should : It only keeps faces entirely contained by the clip volume, instead of producing new triangles when faces are partially contained by the clip volume. Usually, vtkClipPolyData is able to produce new triangles to respect clipping Volume, How can I obtain those triangles ? Is there a probleme with InsideOutOn ? here is my code : /*============================================*/ vtkIdList *DEMPoints = vtkIdList::New(); vtkImplicitSelectionLoop *clipLoop = vtkImplicitSelectionLoop::New(); points->Reset(); // recuperation de la cellule courante dataGISClean->GetCellPoints(i,DEMPoints); clipLoop->SetLoop(points); clipLoop->SetNormal(0.0,1.0,0.0); // my y is height cause of vrml export // ajout du clipping du mnt selon les polygones vtkClipPolyData *clipper3=vtkClipPolyData::New(); clipper3->SetInput(pdn->GetOutput()); clipper3->GenerateClipScalarsOn(); clipper3->SetClipFunction(clipLoop); clipper3->GenerateClippedOutputOff(); clipper3->InsideOutOn(); clipper3->SetValue(0.5); clipper3->Update(); cout <GetNumberOfPolys() <GetOutput()->GetNumberOfPolys() <GetNumberOfCells() > 0){ vtkIdList *listCells = vtkIdList::New(); for (j=0;jGetOutput()->GetNumberOfCells();j++) { listCells->InsertNextId(j); } //clipper3->GetOutput() does not contain a properly clipped DEM dataGIS1->CopyCells(clipper3->GetOutput(),listCells); } /*===============================================================*/ Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpan at crd.ge.com Wed Jun 5 14:48:30 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Wed, 5 Jun 2002 14:48:30 -0400 Subject: [vtkusers] Screenshots Message-ID: oops.... :) -----Original Message----- From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] Sent: Wednesday, June 05, 2002 1:31 PM To: Pan, Tony C (Research) Cc: 'Gregory Bleiker'; vtkusers at public.kitware.com Subject: RE: [vtkusers] Screenshots >>>>> "TCP" == "Pan, Tony C (Research)" writes: TCP> JPEG uses lossy compression, so quality degradation should be TCP> expected. You can try one of the other image formats, like TCP> BMP, PNM, or TIFF. PNG format is lossy, but it might give TCP> you better quality than JPEG. The PNG format is *not* lossy. From http://www.w3.org/Graphics/PNG/ """PNG is an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel for transparency. Sample depths range from 1 to 16 bits.""" cheers, prabhu From maraux at ondim.fr Wed Jun 5 15:25:52 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 5 Jun 2002 21:25:52 +0200 Subject: [vtkusers] how to _ color_ write on a vtkImageCanvasSource2D ? References: <00c301c20c87$189c9b30$c000a8c0@ouessant> Message-ID: <006b01c20cc6$cebe6f80$c000a8c0@ouessant> Answer : I Just did not know that it was needed to set vtkImageData::SetNumberOfScalarComponents(3); in addition to vtkImageData::SetScalarTypeToUnsignedChar(); to be able to set rgb values (0-255 range) Does 4 components allow transparency when exported as PNG ? ----- Original Message ----- From: Sebastien_MARAUX To: vtk mailing list Sent: Wednesday, June 05, 2002 1:49 PM Subject: [vtkusers] how to _ color_ write on a vtkImageCanvasSource2D ? I would like to draw lines, etc. on a (jpeg read) image data. I use a vtkimageCanvasSource2D to gain access to the image data , but when I read the re exported image as a jpeg file, I can only see white drawings. What do I do wrong ? snippet : /*==============================================*/ vtkImageData *fond = vtkImageData::New(); fond->SetDimensions(2048,2048,1); fond->SetImageData(jpgReader->GetOutput()); fond->SetScalarTypeToUnsignedChar(); fond->SetNumberOfScalarComponents(3); fond->SetExtent(jpgReader->GetOutput()->GetExtent()); vtkImageCanvasSource2D *vicsSIG = vtkImageCanvasSource2D::New(); vicsSIG->SetScalarTypeToUnsignedChar(); vicsSIG->SetNumberOfScalarComponents(3); vicsSIG->SetExtent(fond->GetExtent()); vicsSIG->SetDrawColor(0.0,0.0,0.0); vicsSIG->FillBox(0,texSize[0],0,texSize[1]); vicsSIG->SetDrawColor(255.0,0.0,0.0); vicsSIG->FillBox(100,500,100,500); vicsSIG->SetDrawColor(255.0,255.0,0,0); vicsSIG->DrawSegment(0,0,1024,1024); vicsSIG->Update(); vtkJPEGWriter *jpgWriter2=vtkJPEGWriter::New(); jpgWriter2->SetInput(vicsSIG->GetOutput()); jpgWriter2->SetFileName("sortie2048.jpg"); jpgWriter2->SetQuality(95); jpgWriter2->ProgressiveOn(); tPrint("\toutputing texture : sorti2048.jpg\n"); /*==============================================*/ Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnorton at cisco.com Wed Jun 5 15:40:32 2002 From: mnorton at cisco.com (Michael Norton) Date: Wed, 05 Jun 2002 12:40:32 -0700 Subject: [vtkusers] Mac OS X build problems In-Reply-To: <3CFE48BB.9030701@ualberta.ca> Message-ID: <4.3.2.7.2.20020605123330.01eac560@mira-sjcm-2.cisco.com> I ran into a similar problem while I was building for Tcl. Make sure you include the python paths at the same time set the python wrap to on in CMakeCache.txt. Also, blow off your bins from your run that generated make errors. Then run CMake and make. Yves recommend that I should build vtk like this. mkdir /Develop mkdir /Develop/VTK mkidr /Develop/osxBin a few setup things... cd osxBin cmake ../VTK Do your builds like that. Have you gotten the Mace demo to work? Mike At 11:22 AM 6/5/2002 -0600, you wrote: >Hello, > >I am trying to build vtk for OS X using quartz >and python wrapping (python is from the python-nox >package in fink). I am new to OS X so this has >been an interesting adventure, and although I have >managed to overcome many obstacles along the way >I am finally stumped by this error: > >c++ -bundle -flat_namespace -undefined suppress -fno-coalesce-templates >-fno-coalesce-static-vtables -o >/Users/cwant/vtk/VTK/bin/libvtkHybridPython.so vtkHybridPythonInit.o >vtk3DSImporterPython.o vtkArcPlotterPython.o vtkCaptionActor2DPython.o >vtkCubeAxesActor2DPython.o vtkDepthSortPolyDataPython.o >vtkEarthSourcePython.o vtkGridTransformPython.o >vtkImplicitModellerPython.o vtkImageToPolyDataFilterPython.o >vtkIterativeClosestPointTransformPython.o vtkLandmarkTransformPython.o >vtkLegendBoxActorPython.o vtkPolyDataToImageStencilPython.o >vtkRenderLargeImagePython.o vtkRIBExporterPython.o vtkRIBLightPython.o >vtkRIBPropertyPython.o vtkThinPlateSplineTransformPython.o >vtkTransformToGridPython.o vtkVectorTextPython.o vtkVideoSourcePython.o >vtkVRMLImporterPython.o vtkXYPlotActorPython.o >vtkWeightedTransformFilterPython.o -L/Users/cwant/vtk/VTK/bin >-L/sw/lib/python2.2 -lpthread -lm -lvtkRenderingPython -lvtkIOPython >-lvtkGraphicsPython -lvtkImagingPython -lvtkFilteringPython >-lvtkCommonPython -framework Carbon -framework AGL -framework OpenGL >-framework AppKit -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics >-lvtkIO -lvtkRendering -lvtkHybrid -lvtkRendering -framework Carbon >-framework AGL -framework OpenGL -framework AppKit -lvtkImaging -lvtkIO >-lvtkpng -lvtkzlib -lvtkjpeg -lvtkGraphics -lvtkFiltering -lvtkCommon >-lpthread -lm >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkRenderingPython.dylib is input >for the dynamic link editor, is not relocatable by the static link editor again >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkIOPython.dylib is input for >the dynamic link editor, is not relocatable by the static link editor again >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkGraphicsPython.dylib is input >for the dynamic link editor, is not relocatable by the static link editor again >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkImagingPython.dylib is input >for the dynamic link editor, is not relocatable by the static link editor again >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkFilteringPython.dylib is input >for the dynamic link editor, is not relocatable by the static link editor again >/usr/bin/ld: /Users/cwant/vtk/VTK/bin/libvtkCommonPython.dylib is input >for the dynamic link editor, is not relocatable by the static link editor again >make[3]: *** [/Users/cwant/vtk/VTK/bin/libvtkHybridPython.so] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Hybrid] Error 2 >make: *** [default_target] Error 2 > >Anybody know a workaround for this error? > >Thanks, > >Chris Want >Research Computing Support >Computing & Network Services >University of Alberta >Tel: 1-780-492-9418 > >_______________________________________________ >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_pont at hotmail.com Wed Jun 5 17:51:13 2002 From: david_pont at hotmail.com (David Pont) Date: Thu, 06 Jun 2002 09:51:13 +1200 Subject: [vtkusers] vtkClipPolyData does not clip properly. Message-ID: An HTML attachment was scrubbed... URL: From cwant at ualberta.ca Wed Jun 5 18:02:03 2002 From: cwant at ualberta.ca (Chris Want) Date: Wed, 05 Jun 2002 16:02:03 -0600 Subject: [vtkusers] Mac OS X build problems References: Message-ID: <3CFE8A5B.4080104@ualberta.ca> Hi Yves and Michael, Thanks very much for responding! > There shouldn't be much in the way of obstacles: As I have learned from building vtk on other platforms, there indeed shouldn't be (after the forth or fifth attempt =D). I followed the directions you supplied and it built (well ... I also had to throw in a " -framework AppKit" in there somewhere too). And, to Michael: the Mace example didn't work (a blank window appeared briefly then vanished). When I try to run any scripts (even very rudimentary ones, like just a vtkSphereSource in a renderer), I get a window with the object rendered, but the window is frozen (really frozen -- I can't even drag the window around let alone interact with the windows contents, and the only way to get rid off it is with kill -9). The terminal window issues this error: 2002-06-05 15:35:54.409 python[14788] Error 1011 in _sendFinishLaunchingNotification I then tried rebuild again with hybrid and patented added (I frequently use stuff from these) and the error I get this time is: c++ -bundle -flat_namespace -undefined suppress -fno-coalesce-templates -fno-coalesce-static-vtables -o /Users/cwant/vtk40/binary/bin/libvtkHybridPython.so vtkHybridPythonInit.o vtk3DSImporterPython.o vtkArcPlotterPython.o vtkCaptionActor2DPython.o vtkCubeAxesActor2DPython.o vtkDepthSortPolyDataPython.o vtkEarthSourcePython.o vtkGridTransformPython.o vtkImplicitModellerPython.o vtkImageToPolyDataFilterPython.o vtkIterativeClosestPointTransformPython.o vtkLandmarkTransformPython.o vtkLegendBoxActorPython.o vtkPolyDataToImageStencilPython.o vtkRenderLargeImagePython.o vtkRIBExporterPython.o vtkRIBLightPython.o vtkRIBPropertyPython.o vtkThinPlateSplineTransformPython.o vtkTransformToGridPython.o vtkVectorTextPython.o vtkVideoSourcePython.o vtkVRMLImporterPython.o vtkXYPlotActorPython.o vtkWeightedTransformFilterPython.o -L/Users/cwant/vtk40/binary/bin -L/sw/lib/python2.2 -lpthread -lm -lvtkRenderingPython -lvtkIOPython -lvtkGraphicsPython -lvtkImagingPython -lvtkFilteringPython -lvtkCommonPython -framework Carbon -framework AGL -framework OpenGL -framework AppKit -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics -lvtkIO -lvtkRendering -lvtkHybrid -lvtkRendering -framework Carbon -framework AGL -framework OpenGL -framework AppKit -lvtkImaging -lvtkIO -lvtkpng -lvtkzlib -lvtkjpeg -lvtkGraphics -lvtkFiltering -lvtkCommon -lpthread -lm /usr/bin/ld: can't locate file for: -lvtkRenderingPython make[3]: *** [/Users/cwant/vtk40/binary/bin/libvtkHybridPython.so] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Hybrid] Error 2 make: *** [default_target] Error 2 Are hybrid and patented not available for the OS X build? Anyways, I've included my CMakeCache.txt below. If somebody has vtk running satisfactorily on OS X would be willing to post their CMakeCache.txt I'd really appreciate it. Thanks for your assistance, Chris Want ------------ CMakeCache.txt ---------- # This is the CMakeCache file. # For build in directory: /Users/cwant/vtk40/binary # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a varible in the cache. # TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Build the documentation (Doxygen). BUILD_DOCUMENTATION:BOOL=OFF //Build VTK examples. BUILD_EXAMPLES:BOOL=OFF //Build VTK with shared libraries. BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=ON //Archive program used to make archive libraries. CMAKE_AR:FILEPATH=/usr/bin/ar //Arguments for CMAKE_AR program to create an archive library. CMAKE_AR_ARGS:STRING=cr //Archive program used to make archive libraries of c++ object // files. CMAKE_CXX_AR:FILEPATH=/usr/bin/ar //Arguments for CMAKE_CXX_AR program to create an archive library. // CMAKE_CXX_AR_ARGS:STRING=cr //Name of C++ compiler used. CMAKE_CXX_COMPILER:FILEPATH=c++ //Flags used by CXX compiler. CMAKE_CXX_FLAGS:STRING= //program used to link c++ shared libraries CMAKE_CXX_LINK_SHARED:STRING=c++ CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined suppress CMAKE_CXX_MODULE_LINK_FLAGS:STRING= CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-dynamiclib CMAKE_CXX_SHLIB_CFLAGS:STRING= CMAKE_CXX_SHLIB_LINK_FLAGS:STRING= CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING= CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=: //Name of C compiler used. CMAKE_C_COMPILER:FILEPATH=gcc //Flags for C compiler. CMAKE_C_FLAGS:STRING= //program used to link c shared libraries CMAKE_C_LINK_SHARED:STRING=gcc //Dynamic link library to link in. CMAKE_DL_LIBS:STRING= //Use HP pthreads. CMAKE_HP_PTHREADS:BOOL=0 //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr/local //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make //Flag used by CXX to build a shared library. CMAKE_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined suppress //Flags used to link a shared library. CMAKE_MODULE_LINK_FLAGS:STRING= //Module library suffix. CMAKE_MODULE_SUFFIX:STRING=.so //Library randomizer program used on archive libraries. CMAKE_RANLIB:FILEPATH=ranlib //Flag used by CXX to build a shared library. CMAKE_SHLIB_BUILD_FLAGS:STRING=-dynamiclib //Flag used for building shared library objects. CMAKE_SHLIB_CFLAGS:STRING= //Libraries used by LD for shared libraries. CMAKE_SHLIB_LD_LIBS:STRING= //Flags used to link a shared library. CMAKE_SHLIB_LINK_FLAGS:STRING= //Flag used to specify run-time search paths. CMAKE_SHLIB_RUNTIME_FLAG:STRING= //If null, each runtime path is a separate option. Otherwise, they // are all joined, separated by this. CMAKE_SHLIB_RUNTIME_SEP:STRING=: //Shared library suffix. CMAKE_SHLIB_SUFFIX:STRING=.dylib //If set, runtime paths are not added when using shared libraries. // CMAKE_SKIP_RPATH:BOOL=NO //CXX template flags used by compiler. CMAKE_TEMPLATE_FLAGS:STRING= //Thread library used. CMAKE_THREAD_LIBS:STRING=-lpthread //Use the pthreads library. CMAKE_USE_PTHREADS:BOOL=1 //Use sproc libs. CMAKE_USE_SPROC:BOOL=0 //The system uses big endian byte ordering. CMAKE_WORDS_BIGENDIAN:BOOL=1 //X11 extra flags. CMAKE_X_CFLAGS:STRING= -I/usr/X11R6/include //Libraries and options used in X11 programs. CMAKE_X_LIBS:STRING=' -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext ' //If you have Dart installed, where is it located? DART_ROOT:PATH=NOTFOUND //Single output directory for building all executables. EXECUTABLE_OUTPUT_PATH:PATH=/Users/cwant/vtk40/binary/bin //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH=/Users/cwant/vtk40/binary/bin //OpenGL library for OSX OPENGL_LIBRARY:STRING=-framework Carbon -framework AGL -framework OpenGL -framework AppKit //What is the path where the file Python.h can be found PYTHON_INCLUDE_PATH:PATH=/sw/include/python2.2 //Where can one of the python, python21, python2.1, python20, python2.0, // python1.5 or python15 libraries be found PYTHON_LIBRARY:FILEPATH=/sw/lib/python2.2 //Value Computed by CMake VTKJPEG_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/jpeg //Value Computed by CMake VTKJPEG_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/jpeg //Value Computed by CMake VTKPNG_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/png //Value Computed by CMake VTKPNG_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/png //Value Computed by CMake VTKZLIB_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/zlib //Value Computed by CMake VTKZLIB_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/zlib //Value Computed by CMake VTK_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary //What is the path where the file VTKData.readme can be found VTK_DATA_ROOT:PATH=/Users/cwant/vtk40/VTKData //Build leak checking support into vtk. VTK_DEBUG_LEAKS:BOOL=OFF //Use mangled Mesa with OpenGL VTK_MANGLE_MESA:BOOL=OFF //The opengl library being used supports off screen Mesa calls. // VTK_OPENGL_HAS_OSMESA:BOOL=OFF //Value Computed by CMake VTK_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK //Build VTK with 64 bit ids VTK_USE_64BIT_IDS:BOOL=OFF //Use the ANSI standard iostream library VTK_USE_ANSI_STDLIB:BOOL=OFF //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=ON //Build the parallel directory classes VTK_USE_PARALLEL:BOOL=OFF //Build the patented directory classes, these classes are patented // and may require a license to use VTK_USE_PATENTED:BOOL=ON //Build classes for the Quartz window manager VTK_USE_QUARTZ:BOOL=ON //Build the rendering classes used for displaying VTK_USE_RENDERING:BOOL=ON //Build VTK with volume pro support VTK_USE_VOLUMEPRO:BOOL=OFF //Build classes for the X11 window manager VTK_USE_X:BOOL=OFF //Where can the hints file be found VTK_WRAP_HINTS:FILEPATH=/Users/cwant/vtk40/VTK/Wrapping/hints //wrap classes into the Java language VTK_WRAP_JAVA:BOOL=OFF //wrap classes into the Python interpreted language VTK_WRAP_PYTHON:BOOL=ON //Path to an internal program. VTK_WRAP_PYTHON_EXE:FILEPATH=/Users/cwant/vtk40/binary/bin/./vtkWrapPython //wrap classes into the TCL intepreted language VTK_WRAP_TCL:BOOL=OFF //Dependencies for the target vtkCommonPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;/sw/lib/python2.2;vtkCommon; //Dependencies for the target vtkCommon_LIB_DEPENDS:STATIC=-lpthread;-lm; //Dependencies for the target vtkFilteringPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering; //Dependencies for the target vtkFiltering_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon; //Dependencies for the target vtkGraphicsPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkGraphics; //Dependencies for the target vtkGraphics_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon;vtkFiltering; //Dependencies for the target vtkHybridPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkRenderingPython;vtkIOPython;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;-framework Carbon -framework AGL -framework OpenGL -framework AppKit;/sw/lib/python2.2;vtkHybrid; //Dependencies for the target vtkHybrid_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO;vtkRendering; //Dependencies for the target vtkIOPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkpng;vtkzlib;vtkjpeg;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkIO; //Dependencies for the target vtkIO_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkpng;vtkzlib;vtkjpeg;vtkCommon;vtkFiltering; //Dependencies for the target vtkImagingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkImaging; //Dependencies for the target vtkImaging_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;vtkFiltering; //Dependencies for the target vtkPatentedPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/sw/lib/python2.2;vtkIO;vtkPatented; //Dependencies for the target vtkPatented_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO; //Dependencies for the target vtkRenderingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;-framework Carbon -framework AGL -framework OpenGL -framework AppKit;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkRendering; //Dependencies for the target vtkRendering_LIB_DEPENDS:STATIC=-lpthread;;-lm;-framework Carbon -framework AGL -framework OpenGL -framework AppKit;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics; //Dependencies for the target vtkjpeg_LIB_DEPENDS:STATIC=-lpthread;-lm; //Dependencies for the target vtkpng_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkzlib; //Dependencies for the target vtkzlib_LIB_DEPENDS:STATIC=-lpthread;-lm; ######################## # INTERNAL cache entries ######################## //Executable to project name. /Users/cwant/vtk40/binary/bin/./vtkWrapPython:INTERNAL=vtkWrapPython //Advanced flag for variable: BUILD_DOCUMENTATION BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CFLAGS CMAKE_ANSI_CFLAGS-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CXXFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CXXFLAGS CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR_ARGS CMAKE_AR_ARGS-ADVANCED:INTERNAL=1 //What is the target build tool cmake is generating for. CMAKE_BUILD_TOOL:INTERNAL=make //This is the directory where this CMakeCahe.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/Users/cwant/vtk40/binary //Major version of cmake used to create the current loaded cache // CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1 //Minor version of cmake used to create the current loaded cache // CMAKE_CACHE_MINOR_VERSION:INTERNAL=3 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/Users/cwant/vtk40/CMake/Source/cmake //Is the compile GNU C++. CMAKE_COMPILER_IS_GNUCXX:INTERNAL=1 //Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_AR CMAKE_CXX_AR-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_AR_ARGS CMAKE_CXX_AR_ARGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_LINK_SHARED CMAKE_CXX_LINK_SHARED-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_MODULE_BUILD_FLAGS CMAKE_CXX_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_MODULE_LINK_FLAGS CMAKE_CXX_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_BUILD_FLAGS CMAKE_CXX_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_CFLAGS CMAKE_CXX_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_LINK_FLAGS CMAKE_CXX_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_FLAG CMAKE_CXX_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_SEP CMAKE_CXX_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_LINK_SHARED CMAKE_C_LINK_SHARED-ADVANCED:INTERNAL=1 //shared link flags for cc CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL= //Advanced flag for variable: CMAKE_C_SHLIB_LINK_FLAGS CMAKE_C_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //runtime directory flag for cc CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL= //Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_DL_LIBS CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/Users/cwant/vtk40/CMake/Source/ccmake //Advanced flag for variable: CMAKE_EXECUTABLE_SUFFIX CMAKE_EXECUTABLE_SUFFIX-ADVANCED:INTERNAL=1 //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Is X11 around. CMAKE_HAS_X:INTERNAL=1 //Start directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/Users/cwant/vtk40/VTK //Advanced flag for variable: CMAKE_HP_PTHREADS CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_SUFFIX CMAKE_MODULE_SUFFIX-ADVANCED:INTERNAL=1 //Does the compiler support ansi for scoping. CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1 //Does the compiler support headers like iostream. CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1 //Does the compiler not support explicit template instantiation. // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL=1 //Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1 //Does the compiler support std::. CMAKE_NO_STD_NAMESPACE:INTERNAL= //Advanced flag for variable: CMAKE_NO_STD_NAMESPACE CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_OBJECT_FILE_SUFFIX CMAKE_OBJECT_FILE_SUFFIX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/Users/cwant/vtk40/CMake //Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_CFLAGS CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LD_LIBS CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_SUFFIX CMAKE_SHLIB_SUFFIX-ADVANCED:INTERNAL=1 //Size of char data type CMAKE_SIZEOF_CHAR:INTERNAL=1 //Size of double data type CMAKE_SIZEOF_DOUBLE:INTERNAL=8 //Size of float data type CMAKE_SIZEOF_FLOAT:INTERNAL=4 //Size of int data type CMAKE_SIZEOF_INT:INTERNAL=4 //Size of long data type CMAKE_SIZEOF_LONG:INTERNAL=4 //Size of short data type CMAKE_SIZEOF_SHORT:INTERNAL=2 //Size of void* data type CMAKE_SIZEOF_VOID_P:INTERNAL=4 //Advanced flag for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_STATICLIB_SUFFIX CMAKE_STATICLIB_SUFFIX-ADVANCED:INTERNAL=1 //What system is this. Result of uname. CMAKE_SYSTEM:INTERNAL=Darwin-5.4 //Advanced flag for variable: CMAKE_TEMPLATE_FLAGS CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_THREAD_LIBS CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_PTHREADS CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_SPROC CMAKE_USE_SPROC-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_WIN32_THREADS CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_WORDS_BIGENDIAN CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_CFLAGS CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_LIBS CMAKE_X_LIBS-ADVANCED:INTERNAL=1 //Path to an executable CellLocator:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Advanced flag for variable: EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable FrustumClip:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to an executable ImportExport:INTERNAL=/Users/cwant/vtk40/binary/Imaging/Testing/Cxx //Advanced flag for variable: LIBRARY_OUTPUT_PATH LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable Mace:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to an executable ObjectFactory:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable PointLocator:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to an executable RGrid:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to an executable TimeRenderer:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx //Path to an executable TimeRenderer2:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx //Is this VTK built with shared libraries. VTK_BUILD_SHARED_LIBS:INTERNAL=ON //Advanced flag for variable: VTK_DEBUG_LEAKS VTK_DEBUG_LEAKS-ADVANCED:INTERNAL=1 //Where VTK libraries are. Used by projects which depend on VTK. // Do not remove. VTK_LIBRARY_PATH:INTERNAL=/Users/cwant/vtk40/binary/bin //Advanced flag for variable: VTK_MANGLE_MESA VTK_MANGLE_MESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_OPENGL_HAS_OSMESA VTK_OPENGL_HAS_OSMESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_64BIT_IDS VTK_USE_64BIT_IDS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_HINTS VTK_WRAP_HINTS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_PYTHON_EXE VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 //Path to an executable expCos:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to an executable otherArrays:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherByteSwap:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCellArray:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCellBoundaries:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCellDerivatives:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCellPosition:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCellTypes:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherCoordinate:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx //Path to an executable otherEmptyCell:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherLookupTable:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherRectilinearGrid:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherStructuredGrid:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable otherTimerLog:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx //Path to an executable volProt:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx //Path to a library vtkCommon:INTERNAL=/Users/cwant/vtk40/binary/Common //Path to a library vtkCommonPython:INTERNAL=/Users/cwant/vtk40/binary/Common //Whether a library is static, shared or module. vtkCommonPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFiltering:INTERNAL=/Users/cwant/vtk40/binary/Filtering //Path to a library vtkFilteringPython:INTERNAL=/Users/cwant/vtk40/binary/Filtering //Whether a library is static, shared or module. vtkFilteringPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphics:INTERNAL=/Users/cwant/vtk40/binary/Graphics //Path to a library vtkGraphicsPython:INTERNAL=/Users/cwant/vtk40/binary/Graphics //Whether a library is static, shared or module. vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybrid:INTERNAL=/Users/cwant/vtk40/binary/Hybrid //Path to a library vtkHybridPython:INTERNAL=/Users/cwant/vtk40/binary/Hybrid //Whether a library is static, shared or module. vtkHybridPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIO:INTERNAL=/Users/cwant/vtk40/binary/IO //Path to a library vtkIOPython:INTERNAL=/Users/cwant/vtk40/binary/IO //Whether a library is static, shared or module. vtkIOPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkIO_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImaging:INTERNAL=/Users/cwant/vtk40/binary/Imaging //Path to a library vtkImagingPython:INTERNAL=/Users/cwant/vtk40/binary/Imaging //Whether a library is static, shared or module. vtkImagingPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatented:INTERNAL=/Users/cwant/vtk40/binary/Patented //Path to a library vtkPatentedPython:INTERNAL=/Users/cwant/vtk40/binary/Patented //Whether a library is static, shared or module. vtkPatentedPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkPatented_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRendering:INTERNAL=/Users/cwant/vtk40/binary/Rendering //Path to a library vtkRenderingPython:INTERNAL=/Users/cwant/vtk40/binary/Rendering //Whether a library is static, shared or module. vtkRenderingPython_LIBRARY_TYPE:INTERNAL=MODULE //Whether a library is static, shared or module. vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkWrapPython:INTERNAL=/Users/cwant/vtk40/binary/Wrapping //Path to a library vtkjpeg:INTERNAL=/Users/cwant/vtk40/binary/Utilities/jpeg //Whether a library is static, shared or module. vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkpng:INTERNAL=/Users/cwant/vtk40/binary/Utilities/png //Whether a library is static, shared or module. vtkpng_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkzlib:INTERNAL=/Users/cwant/vtk40/binary/Utilities/zlib //Whether a library is static, shared or module. vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED From mnorton at cisco.com Wed Jun 5 18:12:47 2002 From: mnorton at cisco.com (Michael Norton) Date: Wed, 05 Jun 2002 15:12:47 -0700 Subject: [vtkusers] Mac OS X build problems In-Reply-To: <3CFE8A5B.4080104@ualberta.ca> References: Message-ID: <4.3.2.7.2.20020605151041.01e99ba8@mira-sjcm-2.cisco.com> hi, Try ./Mace -I & <-- leaves the demo on the screen. My G4 450 the machine is relatively slow enough to see the quick flicker of Mace. The -I argument is for interactive mode. Which isn't quite there yet. But you can see the demo. Do the same for the TimeRender demos. The ExpCos.cxx is a cool example too. Mike At 04:02 PM 6/5/2002 -0600, Chris Want wrote: >Hi Yves and Michael, > >Thanks very much for responding! > > > There shouldn't be much in the way of obstacles: > >As I have learned from building vtk on other platforms, >there indeed shouldn't be (after the forth or fifth >attempt =D). > >I followed the directions you supplied and it >built (well ... I also had to throw in a >" -framework AppKit" in there somewhere too). > >And, to Michael: the Mace example didn't work >(a blank window appeared briefly then vanished). > >When I try to run any scripts (even very rudimentary >ones, like just a vtkSphereSource in a renderer), >I get a window with the object rendered, but the >window is frozen (really frozen -- I can't even >drag the window around let alone interact with >the windows contents, and the only way to get >rid off it is with kill -9). The terminal window >issues this error: > >2002-06-05 15:35:54.409 python[14788] Error 1011 in >_sendFinishLaunchingNotification > >I then tried rebuild again with hybrid and patented >added (I frequently use stuff from these) and the >error I get this time is: > >c++ -bundle -flat_namespace -undefined suppress >-fno-coalesce-templates -fno-coalesce-static-vtables -o >/Users/cwant/vtk40/binary/bin/libvtkHybridPython.so >vtkHybridPythonInit.o vtk3DSImporterPython.o vtkArcPlotterPython.o >vtkCaptionActor2DPython.o vtkCubeAxesActor2DPython.o >vtkDepthSortPolyDataPython.o vtkEarthSourcePython.o >vtkGridTransformPython.o vtkImplicitModellerPython.o >vtkImageToPolyDataFilterPython.o >vtkIterativeClosestPointTransformPython.o vtkLandmarkTransformPython.o >vtkLegendBoxActorPython.o vtkPolyDataToImageStencilPython.o >vtkRenderLargeImagePython.o vtkRIBExporterPython.o vtkRIBLightPython.o >vtkRIBPropertyPython.o vtkThinPlateSplineTransformPython.o >vtkTransformToGridPython.o vtkVectorTextPython.o vtkVideoSourcePython.o >vtkVRMLImporterPython.o vtkXYPlotActorPython.o >vtkWeightedTransformFilterPython.o -L/Users/cwant/vtk40/binary/bin >-L/sw/lib/python2.2 -lpthread -lm -lvtkRenderingPython -lvtkIOPython >-lvtkGraphicsPython -lvtkImagingPython -lvtkFilteringPython >-lvtkCommonPython -framework Carbon -framework AGL -framework OpenGL >-framework AppKit -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics >-lvtkIO -lvtkRendering -lvtkHybrid -lvtkRendering -framework Carbon >-framework AGL -framework OpenGL -framework AppKit -lvtkImaging -lvtkIO >-lvtkpng -lvtkzlib -lvtkjpeg -lvtkGraphics -lvtkFiltering -lvtkCommon >-lpthread -lm >/usr/bin/ld: can't locate file for: -lvtkRenderingPython >make[3]: *** [/Users/cwant/vtk40/binary/bin/libvtkHybridPython.so] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Hybrid] Error 2 >make: *** [default_target] Error 2 > >Are hybrid and patented not available for the OS X build? > >Anyways, I've included my CMakeCache.txt below. If somebody >has vtk running satisfactorily on OS X would be willing to post >their CMakeCache.txt I'd really appreciate it. > >Thanks for your assistance, >Chris Want > >------------ CMakeCache.txt ---------- > ># This is the CMakeCache file. ># For build in directory: /Users/cwant/vtk40/binary ># You can edit this file to change values found and used by cmake. ># If you do not want to change any of the values, simply exit the editor. ># If you do want to change a value, simply edit, save, and exit the editor. ># The syntax for the file is as follows: ># KEY:TYPE=VALUE ># KEY is the name of a varible in the cache. ># TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. ># VALUE is the current value for the KEY. > >######################## ># EXTERNAL cache entries >######################## > >//Build the documentation (Doxygen). >BUILD_DOCUMENTATION:BOOL=OFF > >//Build VTK examples. >BUILD_EXAMPLES:BOOL=OFF > >//Build VTK with shared libraries. >BUILD_SHARED_LIBS:BOOL=ON > >//Build the testing tree. >BUILD_TESTING:BOOL=ON > >//Archive program used to make archive libraries. >CMAKE_AR:FILEPATH=/usr/bin/ar > >//Arguments for CMAKE_AR program to create an archive library. >CMAKE_AR_ARGS:STRING=cr > >//Archive program used to make archive libraries of c++ object >// files. >CMAKE_CXX_AR:FILEPATH=/usr/bin/ar > >//Arguments for CMAKE_CXX_AR program to create an archive library. >// >CMAKE_CXX_AR_ARGS:STRING=cr > >//Name of C++ compiler used. >CMAKE_CXX_COMPILER:FILEPATH=c++ > >//Flags used by CXX compiler. >CMAKE_CXX_FLAGS:STRING= > >//program used to link c++ shared libraries >CMAKE_CXX_LINK_SHARED:STRING=c++ > >CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined >suppress > >CMAKE_CXX_MODULE_LINK_FLAGS:STRING= > >CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-dynamiclib > >CMAKE_CXX_SHLIB_CFLAGS:STRING= > >CMAKE_CXX_SHLIB_LINK_FLAGS:STRING= > >CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING= > >CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=: > >//Name of C compiler used. >CMAKE_C_COMPILER:FILEPATH=gcc > >//Flags for C compiler. >CMAKE_C_FLAGS:STRING= > >//program used to link c shared libraries >CMAKE_C_LINK_SHARED:STRING=gcc > >//Dynamic link library to link in. >CMAKE_DL_LIBS:STRING= > >//Use HP pthreads. >CMAKE_HP_PTHREADS:BOOL=0 > >//Install path prefix, prepended onto install directories. >CMAKE_INSTALL_PREFIX:PATH=/usr/local > >//Path to a program. >CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make > >//Flag used by CXX to build a shared library. >CMAKE_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined suppress > >//Flags used to link a shared library. >CMAKE_MODULE_LINK_FLAGS:STRING= > >//Module library suffix. >CMAKE_MODULE_SUFFIX:STRING=.so > >//Library randomizer program used on archive libraries. >CMAKE_RANLIB:FILEPATH=ranlib > >//Flag used by CXX to build a shared library. >CMAKE_SHLIB_BUILD_FLAGS:STRING=-dynamiclib > >//Flag used for building shared library objects. >CMAKE_SHLIB_CFLAGS:STRING= > >//Libraries used by LD for shared libraries. >CMAKE_SHLIB_LD_LIBS:STRING= > >//Flags used to link a shared library. >CMAKE_SHLIB_LINK_FLAGS:STRING= > >//Flag used to specify run-time search paths. >CMAKE_SHLIB_RUNTIME_FLAG:STRING= > >//If null, each runtime path is a separate option. Otherwise, they >// are all joined, separated by this. >CMAKE_SHLIB_RUNTIME_SEP:STRING=: > >//Shared library suffix. >CMAKE_SHLIB_SUFFIX:STRING=.dylib > >//If set, runtime paths are not added when using shared libraries. >// >CMAKE_SKIP_RPATH:BOOL=NO > >//CXX template flags used by compiler. >CMAKE_TEMPLATE_FLAGS:STRING= > >//Thread library used. >CMAKE_THREAD_LIBS:STRING=-lpthread > >//Use the pthreads library. >CMAKE_USE_PTHREADS:BOOL=1 > >//Use sproc libs. >CMAKE_USE_SPROC:BOOL=0 > >//The system uses big endian byte ordering. >CMAKE_WORDS_BIGENDIAN:BOOL=1 > >//X11 extra flags. >CMAKE_X_CFLAGS:STRING= -I/usr/X11R6/include > >//Libraries and options used in X11 programs. >CMAKE_X_LIBS:STRING=' -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext ' > >//If you have Dart installed, where is it located? >DART_ROOT:PATH=NOTFOUND > >//Single output directory for building all executables. >EXECUTABLE_OUTPUT_PATH:PATH=/Users/cwant/vtk40/binary/bin > >//Single output directory for building all libraries. >LIBRARY_OUTPUT_PATH:PATH=/Users/cwant/vtk40/binary/bin > >//OpenGL library for OSX >OPENGL_LIBRARY:STRING=-framework Carbon -framework AGL -framework OpenGL >-framework AppKit > >//What is the path where the file Python.h can be found >PYTHON_INCLUDE_PATH:PATH=/sw/include/python2.2 > >//Where can one of the python, python21, python2.1, python20, python2.0, >// python1.5 or python15 libraries be found >PYTHON_LIBRARY:FILEPATH=/sw/lib/python2.2 > >//Value Computed by CMake >VTKJPEG_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/jpeg > >//Value Computed by CMake >VTKJPEG_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/jpeg > >//Value Computed by CMake >VTKPNG_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/png > >//Value Computed by CMake >VTKPNG_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/png > >//Value Computed by CMake >VTKZLIB_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary/Utilities/zlib > >//Value Computed by CMake >VTKZLIB_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK/Utilities/zlib > >//Value Computed by CMake >VTK_BINARY_DIR:STATIC=/Users/cwant/vtk40/binary > >//What is the path where the file VTKData.readme can be found >VTK_DATA_ROOT:PATH=/Users/cwant/vtk40/VTKData > >//Build leak checking support into vtk. >VTK_DEBUG_LEAKS:BOOL=OFF > >//Use mangled Mesa with OpenGL >VTK_MANGLE_MESA:BOOL=OFF > >//The opengl library being used supports off screen Mesa calls. >// >VTK_OPENGL_HAS_OSMESA:BOOL=OFF > >//Value Computed by CMake >VTK_SOURCE_DIR:STATIC=/Users/cwant/vtk40/VTK > >//Build VTK with 64 bit ids >VTK_USE_64BIT_IDS:BOOL=OFF > >//Use the ANSI standard iostream library >VTK_USE_ANSI_STDLIB:BOOL=OFF > >//Build the hybrid directory classes >VTK_USE_HYBRID:BOOL=ON > >//Build the parallel directory classes >VTK_USE_PARALLEL:BOOL=OFF > >//Build the patented directory classes, these classes are patented >// and may require a license to use >VTK_USE_PATENTED:BOOL=ON > >//Build classes for the Quartz window manager >VTK_USE_QUARTZ:BOOL=ON > >//Build the rendering classes used for displaying >VTK_USE_RENDERING:BOOL=ON > >//Build VTK with volume pro support >VTK_USE_VOLUMEPRO:BOOL=OFF > >//Build classes for the X11 window manager >VTK_USE_X:BOOL=OFF > >//Where can the hints file be found >VTK_WRAP_HINTS:FILEPATH=/Users/cwant/vtk40/VTK/Wrapping/hints > >//wrap classes into the Java language >VTK_WRAP_JAVA:BOOL=OFF > >//wrap classes into the Python interpreted language >VTK_WRAP_PYTHON:BOOL=ON > >//Path to an internal program. >VTK_WRAP_PYTHON_EXE:FILEPATH=/Users/cwant/vtk40/binary/bin/./vtkWrapPython > >//wrap classes into the TCL intepreted language >VTK_WRAP_TCL:BOOL=OFF > >//Dependencies for the target >vtkCommonPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;/sw/lib/python2.2;vtkCommon; > >//Dependencies for the target >vtkCommon_LIB_DEPENDS:STATIC=-lpthread;-lm; > >//Dependencies for the target >vtkFilteringPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering; > >//Dependencies for the target >vtkFiltering_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon; > >//Dependencies for the target >vtkGraphicsPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkGraphics; > >//Dependencies for the target >vtkGraphics_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon;vtkFiltering; > >//Dependencies for the target >vtkHybridPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkRenderingPython;vtkIOPython;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;-framework >Carbon -framework AGL -framework OpenGL -framework >AppKit;/sw/lib/python2.2;vtkHybrid; > >//Dependencies for the target >vtkHybrid_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO;vtkRendering; > >//Dependencies for the target >vtkIOPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkpng;vtkzlib;vtkjpeg;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkIO; > >//Dependencies for the target >vtkIO_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkpng;vtkzlib;vtkjpeg;vtkCommon;vtkFiltering; > >//Dependencies for the target >vtkImagingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkImaging; > >//Dependencies for the target >vtkImaging_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon;vtkFiltering; > >//Dependencies for the target >vtkPatentedPython_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/sw/lib/python2.2;vtkIO;vtkPatented; > >//Dependencies for the target >vtkPatented_LIB_DEPENDS:STATIC=-lpthread;;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO; > >//Dependencies for the target >vtkRenderingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;-framework Carbon >-framework AGL -framework OpenGL -framework >AppKit;/sw/lib/python2.2;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkRendering; > >//Dependencies for the target >vtkRendering_LIB_DEPENDS:STATIC=-lpthread;;-lm;-framework Carbon >-framework AGL -framework OpenGL -framework >AppKit;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics; > >//Dependencies for the target >vtkjpeg_LIB_DEPENDS:STATIC=-lpthread;-lm; > >//Dependencies for the target >vtkpng_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkzlib; > >//Dependencies for the target >vtkzlib_LIB_DEPENDS:STATIC=-lpthread;-lm; > > >######################## ># INTERNAL cache entries >######################## > >//Executable to project name. >/Users/cwant/vtk40/binary/bin/./vtkWrapPython:INTERNAL=vtkWrapPython >//Advanced flag for variable: BUILD_DOCUMENTATION >BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 >//What flags are required by the c++ compiler to make it ansi. >CMAKE_ANSI_CFLAGS:INTERNAL= >//Advanced flag for variable: CMAKE_ANSI_CFLAGS >CMAKE_ANSI_CFLAGS-ADVANCED:INTERNAL=1 >//What flags are required by the c++ compiler to make it ansi. >CMAKE_ANSI_CXXFLAGS:INTERNAL= >//Advanced flag for variable: CMAKE_ANSI_CXXFLAGS >CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_AR >CMAKE_AR-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_AR_ARGS >CMAKE_AR_ARGS-ADVANCED:INTERNAL=1 >//What is the target build tool cmake is generating for. >CMAKE_BUILD_TOOL:INTERNAL=make >//This is the directory where this CMakeCahe.txt was created >CMAKE_CACHEFILE_DIR:INTERNAL=/Users/cwant/vtk40/binary >//Major version of cmake used to create the current loaded cache >// >CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1 >//Minor version of cmake used to create the current loaded cache >// >CMAKE_CACHE_MINOR_VERSION:INTERNAL=3 >//Path to CMake executable. >CMAKE_COMMAND:INTERNAL=/Users/cwant/vtk40/CMake/Source/cmake >//Is the compile GNU C++. >CMAKE_COMPILER_IS_GNUCXX:INTERNAL=1 >//Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX >CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_AR >CMAKE_CXX_AR-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_AR_ARGS >CMAKE_CXX_AR_ARGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_COMPILER >CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_LINK_SHARED >CMAKE_CXX_LINK_SHARED-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_MODULE_BUILD_FLAGS >CMAKE_CXX_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_MODULE_LINK_FLAGS >CMAKE_CXX_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_SHLIB_BUILD_FLAGS >CMAKE_CXX_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_SHLIB_CFLAGS >CMAKE_CXX_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_SHLIB_LINK_FLAGS >CMAKE_CXX_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_FLAG >CMAKE_CXX_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_SEP >CMAKE_CXX_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_C_COMPILER >CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_C_LINK_SHARED >CMAKE_C_LINK_SHARED-ADVANCED:INTERNAL=1 >//shared link flags for cc >CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL= >//Advanced flag for variable: CMAKE_C_SHLIB_LINK_FLAGS >CMAKE_C_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 >//runtime directory flag for cc >CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL= >//Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG >CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_DL_LIBS >CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 >//Path to cache edit program executable. >CMAKE_EDIT_COMMAND:INTERNAL=/Users/cwant/vtk40/CMake/Source/ccmake >//Advanced flag for variable: CMAKE_EXECUTABLE_SUFFIX >CMAKE_EXECUTABLE_SUFFIX-ADVANCED:INTERNAL=1 >//Name of generator. >CMAKE_GENERATOR:INTERNAL=Unix Makefiles >//Is X11 around. >CMAKE_HAS_X:INTERNAL=1 >//Start directory with the top level CMakeLists.txt file for this >// project >CMAKE_HOME_DIRECTORY:INTERNAL=/Users/cwant/vtk40/VTK >//Advanced flag for variable: CMAKE_HP_PTHREADS >CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_MAKE_PROGRAM >CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS >CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS >CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_MODULE_SUFFIX >CMAKE_MODULE_SUFFIX-ADVANCED:INTERNAL=1 >//Does the compiler support ansi for scoping. >CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL= >//Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE >CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1 >//Does the compiler support headers like iostream. >CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL= >//Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS >CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1 >//Does the compiler not support explicit template instantiation. >// >CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL=1 >//Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION >// >CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1 >//Does the compiler support std::. >CMAKE_NO_STD_NAMESPACE:INTERNAL= >//Advanced flag for variable: CMAKE_NO_STD_NAMESPACE >CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_OBJECT_FILE_SUFFIX >CMAKE_OBJECT_FILE_SUFFIX-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_RANLIB >CMAKE_RANLIB-ADVANCED:INTERNAL=1 >//Path to CMake installation. >CMAKE_ROOT:INTERNAL=/Users/cwant/vtk40/CMake >//Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS >CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_CFLAGS >CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_LD_LIBS >CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS >CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG >CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP >CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_SHLIB_SUFFIX >CMAKE_SHLIB_SUFFIX-ADVANCED:INTERNAL=1 >//Size of char data type >CMAKE_SIZEOF_CHAR:INTERNAL=1 >//Size of double data type >CMAKE_SIZEOF_DOUBLE:INTERNAL=8 >//Size of float data type >CMAKE_SIZEOF_FLOAT:INTERNAL=4 >//Size of int data type >CMAKE_SIZEOF_INT:INTERNAL=4 >//Size of long data type >CMAKE_SIZEOF_LONG:INTERNAL=4 >//Size of short data type >CMAKE_SIZEOF_SHORT:INTERNAL=2 >//Size of void* data type >CMAKE_SIZEOF_VOID_P:INTERNAL=4 >//Advanced flag for variable: CMAKE_SKIP_RPATH >CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_STATICLIB_SUFFIX >CMAKE_STATICLIB_SUFFIX-ADVANCED:INTERNAL=1 >//What system is this. Result of uname. >CMAKE_SYSTEM:INTERNAL=Darwin-5.4 >//Advanced flag for variable: CMAKE_TEMPLATE_FLAGS >CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_THREAD_LIBS >CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_USE_PTHREADS >CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_USE_SPROC >CMAKE_USE_SPROC-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_USE_WIN32_THREADS >CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_WORDS_BIGENDIAN >CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_X_CFLAGS >CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: CMAKE_X_LIBS >CMAKE_X_LIBS-ADVANCED:INTERNAL=1 >//Path to an executable >CellLocator:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Advanced flag for variable: EXECUTABLE_OUTPUT_PATH >EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 >//Path to an executable >FrustumClip:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to an executable >ImportExport:INTERNAL=/Users/cwant/vtk40/binary/Imaging/Testing/Cxx >//Advanced flag for variable: LIBRARY_OUTPUT_PATH >LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 >//Path to an executable >Mace:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to an executable >ObjectFactory:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >PointLocator:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to an executable >RGrid:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to an executable >TimeRenderer:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx >//Path to an executable >TimeRenderer2:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx >//Is this VTK built with shared libraries. >VTK_BUILD_SHARED_LIBS:INTERNAL=ON >//Advanced flag for variable: VTK_DEBUG_LEAKS >VTK_DEBUG_LEAKS-ADVANCED:INTERNAL=1 >//Where VTK libraries are. Used by projects which depend on VTK. >// Do not remove. >VTK_LIBRARY_PATH:INTERNAL=/Users/cwant/vtk40/binary/bin >//Advanced flag for variable: VTK_MANGLE_MESA >VTK_MANGLE_MESA-ADVANCED:INTERNAL=1 >//Advanced flag for variable: VTK_OPENGL_HAS_OSMESA >VTK_OPENGL_HAS_OSMESA-ADVANCED:INTERNAL=1 >//Advanced flag for variable: VTK_USE_64BIT_IDS >VTK_USE_64BIT_IDS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: VTK_WRAP_HINTS >VTK_WRAP_HINTS-ADVANCED:INTERNAL=1 >//Advanced flag for variable: VTK_WRAP_PYTHON_EXE >VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 >//Path to an executable >expCos:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to an executable >otherArrays:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherByteSwap:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCellArray:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCellBoundaries:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCellDerivatives:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCellPosition:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCellTypes:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherCoordinate:INTERNAL=/Users/cwant/vtk40/binary/Rendering/Testing/Cxx >//Path to an executable >otherEmptyCell:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherLookupTable:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherRectilinearGrid:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherStructuredGrid:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >otherTimerLog:INTERNAL=/Users/cwant/vtk40/binary/Common/Testing/Cxx >//Path to an executable >volProt:INTERNAL=/Users/cwant/vtk40/binary/Graphics/Testing/Cxx >//Path to a library >vtkCommon:INTERNAL=/Users/cwant/vtk40/binary/Common >//Path to a library >vtkCommonPython:INTERNAL=/Users/cwant/vtk40/binary/Common >//Whether a library is static, shared or module. >vtkCommonPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkFiltering:INTERNAL=/Users/cwant/vtk40/binary/Filtering >//Path to a library >vtkFilteringPython:INTERNAL=/Users/cwant/vtk40/binary/Filtering >//Whether a library is static, shared or module. >vtkFilteringPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkGraphics:INTERNAL=/Users/cwant/vtk40/binary/Graphics >//Path to a library >vtkGraphicsPython:INTERNAL=/Users/cwant/vtk40/binary/Graphics >//Whether a library is static, shared or module. >vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkHybrid:INTERNAL=/Users/cwant/vtk40/binary/Hybrid >//Path to a library >vtkHybridPython:INTERNAL=/Users/cwant/vtk40/binary/Hybrid >//Whether a library is static, shared or module. >vtkHybridPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkIO:INTERNAL=/Users/cwant/vtk40/binary/IO >//Path to a library >vtkIOPython:INTERNAL=/Users/cwant/vtk40/binary/IO >//Whether a library is static, shared or module. >vtkIOPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkIO_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkImaging:INTERNAL=/Users/cwant/vtk40/binary/Imaging >//Path to a library >vtkImagingPython:INTERNAL=/Users/cwant/vtk40/binary/Imaging >//Whether a library is static, shared or module. >vtkImagingPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkPatented:INTERNAL=/Users/cwant/vtk40/binary/Patented >//Path to a library >vtkPatentedPython:INTERNAL=/Users/cwant/vtk40/binary/Patented >//Whether a library is static, shared or module. >vtkPatentedPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkPatented_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkRendering:INTERNAL=/Users/cwant/vtk40/binary/Rendering >//Path to a library >vtkRenderingPython:INTERNAL=/Users/cwant/vtk40/binary/Rendering >//Whether a library is static, shared or module. >vtkRenderingPython_LIBRARY_TYPE:INTERNAL=MODULE >//Whether a library is static, shared or module. >vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED >//Path to an executable >vtkWrapPython:INTERNAL=/Users/cwant/vtk40/binary/Wrapping >//Path to a library >vtkjpeg:INTERNAL=/Users/cwant/vtk40/binary/Utilities/jpeg >//Whether a library is static, shared or module. >vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkpng:INTERNAL=/Users/cwant/vtk40/binary/Utilities/png >//Whether a library is static, shared or module. >vtkpng_LIBRARY_TYPE:INTERNAL=SHARED >//Path to a library >vtkzlib:INTERNAL=/Users/cwant/vtk40/binary/Utilities/zlib >//Whether a library is static, shared or module. >vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED > > > >_______________________________________________ >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 lamar1 at llnl.gov Wed Jun 5 18:43:34 2002 From: lamar1 at llnl.gov (Eric LaMar) Date: Wed, 05 Jun 2002 15:43:34 -0700 Subject: [vtkusers] alpha missing f/vtkWindowToImageFilter Message-ID: <3CFE9416.F73FA9D1@llnl.gov> Hello: I have the following problem: I want to read a rendered image, which includes an alpha component, from the display buffer and use it for further processing. The problem is that vtkWindowToImageFilter only handles 'vtkWindow's, which has a 'ReadPixelData' method, but no 'ReadRGBAPixelData' method (as found in most of the derived classes). Since there is no common parent class that has a 'ReadRGBAPixelData' as a method, where is the best place to put it? 'vtkWindow' seems the most obvious place, but what are the more general design considerations that would make this a bad idea? What is the least amount of work that I could do to allow this, that would conform to the spirit of VTK? For comparison, is one does a glReadPixels, and requests 4 components (RGBA), and there is no alpha channel in the currently selected visual, OpenGL returns a '255' in the alpha channel. thanks, Eric LaMar Research, LLNL From hucat30777 at hotmail.com Wed Jun 5 21:34:32 2002 From: hucat30777 at hotmail.com (=?gb2312?B?uvog0KG+6g==?=) Date: Thu, 06 Jun 2002 09:34:32 +0800 Subject: [vtkusers] about save image Message-ID: hi: I use vtk4.0 and vc6.0 on windows2000,I extract the bone from the Quarter.* and render it . How can I save the result as ppm file or other file? In the vtk3.2 I can do this by renWin->SaveImageAsPpm, but in vtk4.0 vtkRenderWindow has not the member. thanks in advance! Hu XiaoJuan _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.microsoft.com/cn From yoshihiko_nagamine at pis.hitachi.co.jp Wed Jun 5 22:38:42 2002 From: yoshihiko_nagamine at pis.hitachi.co.jp (yoshihiko_nagamine at pis.hitachi.co.jp) Date: Thu, 6 Jun 2002 11:38:42 +0900 Subject: [vtkusers] about save image Message-ID: Hello vtkWindowToImageFilter and vtkImageWrite and it's subclass is what you want. ---------------------------------------- Yoshihiko Nagamine "? ??" cc: ???: ??: [vtkusers] about save image vtkusers-admin at public.k itware.com 2002/06/06 10:34 hi: I use vtk4.0 and vc6.0 on windows2000,I extract the bone from the Quarter.* and render it . How can I save the result as ppm file or other file? In the vtk3.2 I can do this by renWin->SaveImageAsPpm, but in vtk4.0 vtkRenderWindow has not the member. thanks in advance! Hu XiaoJuan _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.microsoft.com/cn _______________________________________________ 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 dai_shuocn at 163.com Wed Jun 5 22:42:04 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Thu, 6 Jun 2002 10:42:4 +0800 Subject: [vtkusers] about save image Message-ID: <20020606024211.78C811C724B9C@sm6.163.com> hi, You could refer to the MFC example of vtk4.0, which is in ..\vtk40\Examples\GUI\Win32\SampleMFC. When running that application, you can copy the render window as an image into the clipboard. ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-06 ======= 2002-06-06 09:34:00 ????????======= >hi: >I use vtk4.0 and vc6.0 on windows2000,I extract the bone from the Quarter.* >and render it . >How can I save the result as ppm file or other file? In the vtk3.2 I can do >this by renWin->SaveImageAsPpm, but in vtk4.0 vtkRenderWindow has not the >member. > >thanks in advance! > >Hu XiaoJuan > > > > > >_________________________________________________________________ >?????????????? MSN Messenger: >http://messenger.microsoft.com/cn > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers >. = = = = = = = = = = = = = = = = = = = = From martin_thornalley at hotmail.com Thu Jun 6 06:24:11 2002 From: martin_thornalley at hotmail.com (Martin Thornalley) Date: Thu, 06 Jun 2002 11:24:11 +0100 Subject: [vtkusers] .obj texture map Message-ID: I have an .obj file that I can read in using the vtkOBJReader class. This file contains vertex, face and texture coordinate data. I can display the vertex and face data simply by reading in the file, mapping and rendering an actor. However I'm not sure how to display the texture map on top of the generated surface. Any help would be appreciated. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From mininel.ml at gnbts.univ.trieste.it Thu Jun 6 02:34:46 2002 From: mininel.ml at gnbts.univ.trieste.it (stefano mininel) Date: Thu, 06 Jun 2002 08:34:46 +0200 Subject: [vtkusers] Renderer into a form.... References: Message-ID: <3CFF0286.98E63A6@gnbts.univ.trieste.it> I'm doing this with wxWindows and the wxVTKWindow class created by D.Marshall & B.Todd. Link is http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html. IMHO wxWindows alone is an excellent/easy/powerful way to create (cross-platform) GUIs in C++; combined with VTK is even better! Bye Stefano Mininel Andres Barrera wrote: > Hello everyone, > > I wish to put the renderer window inside some form I had created before. I > don't want to create another window. > > I am using C++ (Borland) and VTK 4.0 > > Can anybody give me some idea on how to do that? > > Thank you for your help. > > Andres > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.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 vtk_replies at yahoo.com Thu Jun 6 00:40:10 2002 From: vtk_replies at yahoo.com (vtk replies) Date: Wed, 5 Jun 2002 21:40:10 -0700 (PDT) Subject: [vtkusers] Unable to access vtkDataArray after reading data from file Message-ID: <20020606044010.39445.qmail@web21502.mail.yahoo.com> Hi, I have problems accessing the vtkDataArray class instance in my program. I have a structured Grid data file that I read with the help of the vtkStructuredGridReader class. The points in the file are of type double. I want to copy some of the points from the vtkDoubleArray, ( I presume that the (x,y,z) point coordinates are stored after structuredGridReader reads the file), into my own double array. It looks like it is possible to get points of type float or int using the code below but there is no method that returns points of type double. **** vtkStructuredGridReader *reader = vtkStructuredGridReader::New(); reader->SetFileName("../../../vtk32/java/frame51.vtk"); reader->SetScalarsName("sc2"); reader->Update(); vtkStructuredGrid *structGrid = vtkStructuredGrid::New(); structGrid = reader->GetOutput(); structGrid->GetPoint (vtkIdType ptId, float p[3]); // some variable ptId . I want to get type double points that I initially had on the file. Is there a way to do this ? ( I want to use the StructuredGridReader object so that I can get the structuredGrid that I intend to use for finding cell connectivity later ). I tested using the ReadArray(const char* dataType, int numTuples, int numComponents) in the vtkDataReader class but the method seems to dump core. The code is given below. If anyone knows a way to get the point coordinates as type double, please let me know. Thanks in advance for any help. Regards, Joseph. ************************************************* vtkStructuredGridReader *reader = vtkStructuredGridReader::New(); reader->SetFileName("../../../vtk32/java/frame51.vtk"); reader->SetScalarsName("sc2"); reader->Update(); vtkStructuredGrid *structGrid = vtkStructuredGrid::New(); structGrid = reader->GetOutput(); int dimensions[3]; structGrid->GetDimensions(dimensions); static int totalPoints = 1; for(int i=0; i<3; i++) totalPoints = totalPoints * dimensions[i]; cout << "total Points is " << totalPoints <ReadArray("double", totalPoints, 3); --------------------------------- Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup -------------- next part -------------- An HTML attachment was scrubbed... URL: From elbanna_m at hotmail.com Thu Jun 6 10:28:37 2002 From: elbanna_m at hotmail.com (Mahmoud El-Banna) Date: Thu, 06 Jun 2002 17:28:37 +0300 Subject: [vtkusers] reading raw format using vtk4.0? Message-ID: hello; i want to read a raw image using vtk4.0,i handel it in previous version and it was working perfectly but under vtk4.0 there is a problem in reading images using vtkvolume16reader. any help will be appreciated Mahmoud El-Banna _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From dean.inglis at on.aibn.com Thu Jun 6 10:35:38 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Thu, 6 Jun 2002 10:35:38 -0400 Subject: [vtkusers] Renderer into a form.... Message-ID: Andres, have a look at this previous post/thread http://public.kitware.com/pipermail/vtkusers/2002-May/011599.html and get back to me if you need more info... Dean From dean.inglis at on.aibn.com Thu Jun 6 10:40:09 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Thu, 6 Jun 2002 10:40:09 -0400 Subject: [vtkusers] CMake version 1.4 beta released Message-ID: Ken, any chance there could be a windows beta src ? CMake1.4-src-windows.zip Dean From ebachta at ncsa.uiuc.edu Thu Jun 6 12:16:45 2002 From: ebachta at ncsa.uiuc.edu (Edward Bachta) Date: Thu, 6 Jun 2002 11:16:45 -0500 (CDT) Subject: [vtkusers] tkAppInit build error Message-ID: I'm having trouble building a version of VTK that I checked out from CVS yesterday (6/5/02). I have version 8.3.1 of Tcl/Tk, and when the build gets into the Wrapping directory I'm getting this error: c++ -rdynamic tkAppInit.o -L/usr/local/src/VTK/bin -lpthread -ldl -lm -lvtkpng -lvtkzlib -lvtkjpeg -lvtktiff -lvtkexpat -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -ltcl -lGL -ltk -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -lvtkPatentedTCL -lvtkPatented -lvtkHybridTCL -lvtkHybrid -lvtkParallelTCL -lvtkParallel -lvtkRenderingTCL -ltk -lvtkImagingTCL -lvtkIOTCL -lvtkGraphicsTCL -lvtkFilteringTCL -lvtkCommonTCL -ltcl -lvtkRendering -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkImaging -lvtkIO -lvtktiff -lvtkpng -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkGraphics -lvtkFiltering -lvtkCommon -lpthread -lm -ldl -Wl,-rpath,/usr/local/src/VTK/bin -o /usr/local/src/VTK/bin/vtk tkAppInit.o: In function `main': tkAppInit.o(.text+0x1a): undefined reference to `Tk_Main' /usr/local/src/VTK/bin/libvtkRenderingTCL.so: undefined reference to `tkMainWindowList' collect2: ld returned 1 exit status gmake[3]: *** [/usr/local/src/VTK/bin/vtk] Error 1 gmake[2]: *** [default_target] Error 2 gmake[1]: *** [default_target_Wrapping_Tcl] Error 2 gmake: *** [default_target] Error 2 This is using gcc 2.9.6 on Red Hat Linux 7.1 Has anyone seen this before or have any advice? I want to use ParaView, and I've heard that it works with Tcl/Tk 8.3.1. If it works with more recent versions as well, maybe upgrading Tcl/Tk would solve the problem. Thanks. _______________ Ed Bachta bachta at uiuc.edu From tarifa at rpi.edu Thu Jun 6 12:40:48 2002 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Thu, 6 Jun 2002 12:40:48 -0400 Subject: [vtkusers] Old VTK files Message-ID: <000701c20d78$e9ca2190$0201a8c0@nycap.rr.com> Hi, The old vtk files used to be on: http://public.kitware.com/VTK/files/ Now, this link is no longer there. Did kitware stop providing the older versions or did this link just move? Thanks, Asad *********************************************************************** * Asad A. Abu-Tarif * Computer Engineering. * PhD Candidate, Rensselaer Polytechnic Institute (RPI). * Web-site: http://asad.ods.org/Professional/ * Registration Toolkit: http://asad.ods.org/RegMagicTKDoc/ * tarifa at rpi.edu *********************************************************************** From vtk_replies at yahoo.com Thu Jun 6 13:16:50 2002 From: vtk_replies at yahoo.com (vtk replies) Date: Thu, 6 Jun 2002 10:16:50 -0700 (PDT) Subject: [vtkusers] compiling my own classes for use with vtk classes Message-ID: <20020606171650.72687.qmail@web21505.mail.yahoo.com> Hello, Many Thanks to all the good folks who replied to my previous queries. I have one more question - I have a couple of my own classes that I want to use along with the the classes in vtk for my application. For example, I have a node class that I would like to initialise with the help of the vtkStructuredGrid functions in my main program. I want to know how to go about compiling this class along with the other classes in vtk so that I dont get "unknown variable" and other errors when I run the main program. to which directory should I add my classes ? and how should I tell my program to find and compile these classes ? Can anyone please guide me as to how to do this ? Thanks in advance for any help . Regards, Joseph. __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From srfpala at earthlink.com Thu Jun 6 13:17:25 2002 From: srfpala at earthlink.com (Bob Palank) Date: Thu, 6 Jun 2002 12:17:25 -0500 Subject: [vtkusers] Java+BorlandJB6+vtkPanel In-Reply-To: Message-ID: Does a set of Java examples exist that match the tcl set? TIA Bob -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Bob Palank Sent: Friday, May 31, 2002 7:53 AM To: vtkusers list Subject: [vtkusers] Java+BorlandJB6+vtkPanel I'm Running vtk40 on XP from within Borland's JB6. IS ANYONE ELSE ? With the two imports active in my code and all other vtk related statements commented out, I get a clean compile, build and execution which shows the panel with the exit button - which works as expected. If I uncomment vtkPanel renWin = new vtkPanel(); I get a clean compile build and the following errors on an attempted execution. ------------------------------------------------------- java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at vtkPanel.(vtkPanel.java:22) at test000.test000.(test000.java:22) at test000.test000.main(test000.java:56) Exception in thread "main" ----------------------------------------------------- vtk.jar and vtkPanel.jar both live in vtk40\bin Within JB6 one Path statement points to the bin directory. The second path entry points to vtk40\lib\vtk which hold the libraries loaded in vtkPanel. I've got no clue as to where to go from here? BTW, using vtkPanel.java, I created the vtkPanel.class and placed it in vtkPanel.jar (using jar ;-)) which may have been an erroneous move. Hopefully when I finally get this working, I hope to write up a clear and concise procedure so that others can benefit. TIA for any help. Bob Palank _______________________________________________ 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.barre at kitware.com Thu Jun 6 13:22:40 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Thu, 06 Jun 2002 13:22:40 -0400 Subject: [vtkusers] compiling my own classes for use with vtk classes In-Reply-To: <20020606171650.72687.qmail@web21505.mail.yahoo.com> Message-ID: <5.1.0.14.2.20020606132156.02f53580@pop.nycap.rr.com> At 6/6/2002 01:16 PM, vtk replies wrote: >Hello, >Many Thanks to all the good folks who replied to my >previous queries. >I have one more question - I have a couple of my own >classes that I want to use along with the the classes >in vtk for my application. > >For example, I have a node class that I would like to >initialise with the help of the vtkStructuredGrid >functions in my main program. > >I want to know how to go about compiling this class >along with the other classes in vtk so that I dont get >"unknown variable" and other errors when I run the >main program. >to which directory should I add my classes ? >and >how should I tell my program to find and compile these >classes ? >Can anyone please guide me as to how to do this ? Basically this example in the source distrib should help you: \VTK\Examples\Build\vtkMy It shows you how to setup a local class repository. -- Sebastien Barre From anast.jm at pg.com Thu Jun 6 14:17:30 2002 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 6 Jun 2002 14:17:30 -0400 Subject: [vtkusers] java wrapping - vtkPanel error Message-ID: I just rebuilt vtk4 from cvs update with Java (jre 1.3.1) wrapping. Everything works except if I try to use vtkPanel, when compiling SimpleVTK example code I get this error. I recompiled vtkPanel just to make sure it was current. Just learning java so be nice.... P:\>javac SimpleVTK.java SimpleVTK.java:19: cannot access vtkPanel bad class file: p:\wincvs\vtk40\vtkbin\java\vtkPanel.class class file contains wrong class: vtk.vtkPanel Please remove or make sure it appears in the correct subdirectory of the classpath. vtkPanel renWin = new vtkPanel(); ^ 1 error Any ideas what I'm doing wrong...this used to work okay....john From jeff at cdnorthamerica.com Thu Jun 6 14:44:30 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 06 Jun 2002 14:44:30 -0400 Subject: [vtkusers] java wrapping - vtkPanel error References: Message-ID: <3CFFAD8E.9090306@cdnorthamerica.com> Hi, vtkPanel is packaged now, so the path should be p:\wincvs\vtk40\vtkbin\java\vtk\vtkPanel.class -Jeff anast.jm at pg.com wrote: >I just rebuilt vtk4 from cvs update with Java (jre 1.3.1) wrapping. Everything >works except if I try to use vtkPanel, when compiling SimpleVTK example code I >get this error. I recompiled vtkPanel just to make sure it was current. Just >learning java so be nice.... > >P:\>javac SimpleVTK.java >SimpleVTK.java:19: cannot access vtkPanel >bad class file: p:\wincvs\vtk40\vtkbin\java\vtkPanel.class >class file contains wrong class: vtk.vtkPanel >Please remove or make sure it appears in the correct subdirectory of the classpath. > vtkPanel renWin = new vtkPanel(); > ^ >1 error > >Any ideas what I'm doing wrong...this used to work okay....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 amati at ira.cnr.it Thu Jun 6 10:58:56 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Thu, 6 Jun 2002 16:58:56 +0200 (CEST) Subject: [vtkusers] Bounding Sphere Message-ID: Hello Everybody, is there the possibility to build a bounding sphere instead of a boundig box? Thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From lisong at vrac.iastate.edu Thu Jun 6 17:47:44 2002 From: lisong at vrac.iastate.edu (Song Li) Date: Thu, 06 Jun 2002 16:47:44 -0500 Subject: [vtkusers] using icc ?? Message-ID: <3CFFD87F.16526DE4@vrac.iastate.edu> Hi, Just wondering does anybody has using icc(Intel's C++ compiler on Linux) to compile VTK4.0 on linux, now i can doing this by g++, but when I try to using icc as compiler, it gives an error while linking : "ld: bad -rpath option", it seems icc does not accept "-Wl,-rpath," flag, which is default for shared library. BTW, what is the purpose of using "-Wl,-rpath,$(A_PATH}" in VTK's compilation ??? is the flag not supported, or I should change a path( but it works when using g++)..... Thanks in advance!!!! -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong at vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong -------------- next part -------------- An HTML attachment was scrubbed... URL: From ebachta at ncsa.uiuc.edu Thu Jun 6 17:33:27 2002 From: ebachta at ncsa.uiuc.edu (Edward Bachta) Date: Thu, 6 Jun 2002 16:33:27 -0500 (CDT) Subject: [vtkusers] tkAppInit build error In-Reply-To: Message-ID: Okay, I figured out what was wrong. I had some old tcl/tk headers in /usr/local/include that were messing things up. On Thu, 6 Jun 2002, Edward Bachta wrote: > > I'm having trouble building a version of VTK that I checked out from CVS > yesterday (6/5/02). I have version 8.3.1 of Tcl/Tk, and when the build > gets into the Wrapping directory I'm getting this error: > > c++ -rdynamic tkAppInit.o -L/usr/local/src/VTK/bin -lpthread -ldl -lm > -lvtkpng -lvtkzlib -lvtkjpeg -lvtktiff -lvtkexpat -lvtkImagingTCL > -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO > -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -ltcl -lGL -ltk -lXt > -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL > -lvtkRendering -lvtkPatentedTCL -lvtkPatented -lvtkHybridTCL -lvtkHybrid > -lvtkParallelTCL -lvtkParallel -lvtkRenderingTCL -ltk -lvtkImagingTCL > -lvtkIOTCL -lvtkGraphicsTCL -lvtkFilteringTCL -lvtkCommonTCL -ltcl > -lvtkRendering -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext > -lvtkImaging -lvtkIO -lvtktiff -lvtkpng -lvtkzlib -lvtkjpeg -lvtkexpat > -lvtkGraphics -lvtkFiltering -lvtkCommon -lpthread -lm -ldl > -Wl,-rpath,/usr/local/src/VTK/bin -o /usr/local/src/VTK/bin/vtk > tkAppInit.o: In function `main': > tkAppInit.o(.text+0x1a): undefined reference to `Tk_Main' > /usr/local/src/VTK/bin/libvtkRenderingTCL.so: undefined reference to > `tkMainWindowList' > collect2: ld returned 1 exit status > gmake[3]: *** [/usr/local/src/VTK/bin/vtk] Error 1 > gmake[2]: *** [default_target] Error 2 > gmake[1]: *** [default_target_Wrapping_Tcl] Error 2 > gmake: *** [default_target] Error 2 > > This is using gcc 2.9.6 on Red Hat Linux 7.1 > > Has anyone seen this before or have any advice? I want to use ParaView, > and I've heard that it works with Tcl/Tk 8.3.1. If it works with more > recent versions as well, maybe upgrading Tcl/Tk would solve the problem. > > Thanks. > > _______________ > Ed Bachta > bachta at uiuc.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 > -- Ed Bachta bachta at uiuc.edu From jlakshmi at iupui.edu Thu Jun 6 18:54:20 2002 From: jlakshmi at iupui.edu (Jagannathan) Date: Thu, 06 Jun 2002 17:54:20 -0500 Subject: [vtkusers] undefined symbol: =?iso-8859-1?q?JAWT=5FGetAWT?= In-Reply-To: Message-ID: <200206062254.RAA06481@indiana.edu> Hello everybody, I have successfully compiled VTK4.0 (and yesterday's cvs) with Java wraps (jvm is Sun 1.4.0) on linux, no problems with compiling java wrap classes, no problem to compile Reggresion.java or vtkPanel.java, however, when I try java -cp .:../../java/vtk.jar Regression or java -cp .:../../java/vtk.jar vtkPanel I get following exception Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/vtk/libvtkRenderingJava.so: /usr/local/lib/vtk/libvtkRenderingJava.so: undefined symbol: JAWT_GetAWT at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404) at java.lang.Runtime.loadLibrary0(Runtime.java:772) at java.lang.System.loadLibrary(System.java:832) at Regression.(Regression.java:10) I have included /usr/loval/lib/vtk into my /etc/ld.so.conf and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/vtk. I couldn't find any messages related to this error in a list archives. Any help will be very much appreciated. Regards, From cnavarro at ncsa.uiuc.edu Thu Jun 6 20:30:23 2002 From: cnavarro at ncsa.uiuc.edu (Christopher Navarro) Date: Thu, 6 Jun 2002 19:30:23 -0500 (CDT) Subject: [vtkusers] undefined symbol: =?iso-8859-1?q?JAWT=5FGetAWT?= In-Reply-To: <200206062254.RAA06481@indiana.edu> Message-ID: Hi When you compiled vtk, it asks for the path to the jawt library (as one of the advanced options using cmake), did you include the library in that path? ie: /libjawt.so ? If not, you will need to set that properly and compile it again. -chris Christopher Navarro Automated Learning Group National Center for Supercomputing Applications University of Illinois @ Urbana-Champaign On Thu, 6 Jun 2002, Jagannathan wrote: > Hello everybody, > > I have successfully compiled VTK4.0 (and yesterday's cvs) with Java > wraps > (jvm is Sun 1.4.0) on linux, no problems with compiling java wrap > classes, no > problem to compile Reggresion.java or vtkPanel.java, however, when I > try > > java -cp .:../../java/vtk.jar Regression > > or > > java -cp .:../../java/vtk.jar vtkPanel > > I get following exception > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /usr/local/lib/vtk/libvtkRenderingJava.so: > /usr/local/lib/vtk/libvtkRenderingJava.so: undefined symbol: > JAWT_GetAWT > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404) > at java.lang.Runtime.loadLibrary0(Runtime.java:772) > at java.lang.System.loadLibrary(System.java:832) > at Regression.(Regression.java:10) > > I have included /usr/loval/lib/vtk into my /etc/ld.so.conf and > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/vtk. > > I couldn't find any messages related to this error in a list archives. > > Any help will be very much appreciated. > > Regards, > > _______________________________________________ > 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 yoshihiko_nagamine at pis.hitachi.co.jp Thu Jun 6 21:26:07 2002 From: yoshihiko_nagamine at pis.hitachi.co.jp (yoshihiko_nagamine at pis.hitachi.co.jp) Date: Fri, 7 Jun 2002 10:26:07 +0900 Subject: [vtkusers] Get slice image from image data Message-ID: Hello I tried get imagedata (number of slice is one) from other imagedata ( 128 x 128 x 90; number of slice is 90). How can I get one slice image data? thanks -------------- Nagamine Yoshihiko From flash at itp.tu-graz.ac.at Fri Jun 7 04:04:27 2002 From: flash at itp.tu-graz.ac.at (Christian Pfaffel) Date: Fri, 7 Jun 2002 10:04:27 +0200 (CEST) Subject: [vtkusers] Visualizing Points Message-ID: Hello, I have a rather simple problem, I think at least. I have a dataset consisting of x,y,z coordinates (forming a torus) with a scalar value (Magnetic Field) assigned. I want to show the surface(and cuts), mapped to colors according to its magnetic value. I do not know though which filters to use. I have tried to use something like this: ----------- bfield = vtkFloatArray() points = vtkPoints() #filling up bfield and points with values [...] bfield.CreateDefaultLookupTable() grid = vtkPolyData() grid.SetPoints(points) grid.GetPointData().SetScalars(bfield) mapper = vtkDataSetMapper() mapper.SetInput(grid) mapper.SetLookupTable(bfield.GetLookupTable()) mapper.SetScalarRange(0,2) actor = vtkActor() actor.SetMapper(mapper) renderer = vtkRenderer() renderer.AddActor(actor) renderer.SetBackground(1,1,1) renwin = vtkRenderWindow() renwin.AddRenderer(renderer) iren = vtkRenderWindowInteractor() iren.SetRenderWindow(renwin) iren.Initialize() iren.Start() ---------- The problem is, I have browsed the example source codes, looked in the "VTK Users's Guide", but there never is an example given that shows how to make a "surfaceplot". Any help will be appreciated regards, Christian Pfaffel -- PGP-Key: http://fubphpc.tu-graz.ac.at/~flash/pubkey.gpg From poete66 at caramail.com Fri Jun 7 13:13:36 2002 From: poete66 at caramail.com (Régis BLANCHON) Date: Fri, 07 Jun 2002 13:13:36 GMT+1 Subject: [vtkusers] VTK files for visualisation Message-ID: <1023448416003843@caramail.com> Hi, Do anyone could give me some vtk files (unstructuredgrid type if possible), because I would like to show some examples of visualisation in a vtk presentation. I already have those which are on the Kitware CD. Thanks in advance, R?gis BLANCHON ______________________________________________________ Bo?te aux lettres - Caramail - http://www.caramail.com From fxh39668 at gsk.com Fri Jun 7 07:32:56 2002 From: fxh39668 at gsk.com (Frederic Huguet) Date: Fri, 07 Jun 2002 13:32:56 +0200 Subject: [vtkusers] vtkPlaneSource and normal Message-ID: <3D0099E8.89ECC8AD@gsk.com> Hi, I use a vtkPlaneSource and MFC to create a cutting plane on a 3D object. But I need to get the normal of this plane in real time. There is no function GetNormal, so How could I compute the normal vector to the plane ? I thought vtkPlaneWidget was useful but I can't integrate it to my MFC Interface. Is there any way to find the normal ? Thanks From will.schroeder at kitware.com Fri Jun 7 07:44:09 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 07 Jun 2002 07:44:09 -0400 Subject: [vtkusers] vtkPlaneSource and normal In-Reply-To: <3D0099E8.89ECC8AD@gsk.com> Message-ID: <5.0.2.1.0.20020607074224.027910c8@pop.nycap.rr.com> At 01:32 PM 6/7/2002 +0200, Frederic Huguet wrote: >Hi, > >I use a vtkPlaneSource and MFC to create a cutting plane on a 3D object. >But I need to get the normal of this plane in real time. There is no >function GetNormal, so How could I compute the normal vector to the >plane ? I thought vtkPlaneWidget was useful but I can't integrate it to >my MFC Interface. Is there any way to find the normal ? From vtkPlaneSource.h: vtkGetVectorMacro(Normal,float,3); Which expands into GetNormal(). See Common/vtkSetGet.h for details on that macro. Will William J. Schroeder, Ph.D Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 1-518-371-3971 (fax) From amati at ira.cnr.it Fri Jun 7 07:49:28 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Fri, 7 Jun 2002 13:49:28 +0200 (CEST) Subject: [vtkusers] Vtk Linking file TCL Message-ID: Hi everybody, I compiled VTK under MSWindows using CMAKE and I enabled the TCL compiling too. After that many files were generated DLL, .LIB,..., but I do not find a VTKTCL file that I use in my tcl program and I load it with catch [load vtktcl] Where is it? Have I to use that command or a different one? Have I choose some other compiling options? Have I do something after compilin to generate vtktcl? Thank you. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From alexandre.gouaillard at insa-lyon.fr Fri Jun 7 07:48:52 2002 From: alexandre.gouaillard at insa-lyon.fr (alexandre gouaillard) Date: Fri, 7 Jun 2002 13:48:52 +0200 Subject: [vtkusers] vtkWindowsInteractor References: <5.0.2.1.0.20020607074224.027910c8@pop.nycap.rr.com> Message-ID: <00bc01c20e19$4be1b690$b8a4d686@piwi> hi everyone, I've made a little script in tcl to demonstrate a remeshing process. I vizualize The original mesh, the final mesh, and several harmonic maps I used during the process in differents viewports. My problem is : I 'd like to interact with the two meshes in the usual way, but I'd like the harmonic maps to stand still. does anyone knows how to do it ? alex ----- Original Message ----- From: "Will Schroeder" To: "Frederic Huguet" ; Sent: Friday, June 07, 2002 1:44 PM Subject: Re: [vtkusers] vtkPlaneSource and normal > At 01:32 PM 6/7/2002 +0200, Frederic Huguet wrote: > >Hi, > > > >I use a vtkPlaneSource and MFC to create a cutting plane on a 3D object. > >But I need to get the normal of this plane in real time. There is no > >function GetNormal, so How could I compute the normal vector to the > >plane ? I thought vtkPlaneWidget was useful but I can't integrate it to > >my MFC Interface. Is there any way to find the normal ? > > From vtkPlaneSource.h: > > vtkGetVectorMacro(Normal,float,3); > > Which expands into GetNormal(). See Common/vtkSetGet.h for details on that > macro. > > Will > > > William J. Schroeder, Ph.D > Kitware, Inc. > 469 Clifton Corporate Parkway > Clifton Park, NY 12065 > will.schroeder at kitware.com > 1-518-371-3971 x102 > 1-518-371-3971 (fax) > > _______________________________________________ > 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 lucantiga at hotmail.com Fri Jun 7 08:22:16 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Fri, 07 Jun 2002 14:22:16 +0200 Subject: [vtkusers] vtkPlaneSource and normal Message-ID: If you define vtkPlaneSource with three points a, b, c, you can get the normal by vtkMath::Cross(b-a,c-a,n) and then vtkMath::Normalize(n). Luca >From: Frederic Huguet >To: vtkusers at public.kitware.com >Subject: [vtkusers] vtkPlaneSource and normal >Date: Fri, 07 Jun 2002 13:32:56 +0200 > >Hi, > >I use a vtkPlaneSource and MFC to create a cutting plane on a 3D object. >But I need to get the normal of this plane in real time. There is no >function GetNormal, so How could I compute the normal vector to the >plane ? I thought vtkPlaneWidget was useful but I can't integrate it to >my MFC Interface. Is there any way to find the normal ? > >Thanks > > >_______________________________________________ >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 _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From cjwhite1 at ews.uiuc.edu Fri Jun 7 09:41:38 2002 From: cjwhite1 at ews.uiuc.edu (white colin john) Date: Fri, 7 Jun 2002 08:41:38 -0500 (CDT) Subject: [vtkusers] memory usage with python+vtk Message-ID: I'm writing some simple vtk scripts using python, and I have a simple gui to control some aspects of it. I am new to both vtk and python, so my implementation is not the most sophisticated. When some changes are made, I remake some vtk objects and throw away the old ones. One thing I'm not sure about is reclaiming the memory used for the objects I no longer need. In the example code Cone2 distributed with vtk4.0 from the kitware site, there's this python code: # # Free up any objects we created # cone = None coneMapper = None coneActor = None ren1 = None renWin = None in the tcl version: # # Free up any objects we created # vtkCommand DeleteAllObjects My question is, does setting the variable referencing a vtk object to None definitely reclaim the resources used? Is there some interface in python for destroying these objects which is more explicit, such as that used in the tcl example? Any advice is welcome. -colin From vivek at cmcltd.com Fri Jun 7 20:33:49 2002 From: vivek at cmcltd.com (T S VIVEK) Date: Fri, 7 Jun 2002 19:33:49 -0500 (GMT) Subject: [vtkusers] stack overflow in vc++ Message-ID: hi, iam running an application in vc++ which gives a Stack overflow exception when a particular function is called.it's not even recursive coz the exception is thrown at the very first call.i changed certain parameters from objects to object references.i was able to step into the function.but in there another function is called which fails with the same error. i tried increasing the stack size from 1Mb to 2Mb. does'nt seem to work. i would appreciate any help in this regard. vivek From dgobbi at irus.rri.ca Fri Jun 7 10:15:01 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Fri, 7 Jun 2002 10:15:01 -0400 (EDT) Subject: [vtkusers] memory usage with python+vtk In-Reply-To: Message-ID: On Fri, 7 Jun 2002, white colin john wrote: > My question is, does setting the variable referencing a vtk object to None > definitely reclaim the resources used? Is there some interface in python > for destroying these objects which is more explicit, such as that used in > the tcl example? Any advice is welcome. The most explicit way of deleting a reference in python is with the 'del' statement, e.g. del cone This will decrement the reference count of the python name 'cone' and, if the resulting reference count is zero, it will go on to decrement the reference count of the VTK object that 'cone' points to. This is only guaranteed to destroy the VTK object if the reference counts of both the python name 'cone' and the VTK object were both exactly 1. Also, if you call 'del' on a global variable in python, the variable is usually destroyed a couple code lines after the 'del' statement, just because of the way the python interpreter works. The best way to ensure that objects are destroyed in python is to avoid the use of the global namespace. Put all your code inside of the bodies of functions or methods so that the scope of each variable is clearly defined. When the function/method terminates all local variables go out of scope and their reference counts are reliably decremented. Cheers, - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario From heiland at ncsa.uiuc.edu Fri Jun 7 10:34:05 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 7 Jun 2002 09:34:05 -0500 Subject: [vtkusers] Visualizing Points In-Reply-To: Christian Pfaffel "[vtkusers] Visualizing Points" (Jun 7, 10:04am) References: Message-ID: <1020607093405.ZM23794@pecos.ncsa.uiuc.edu> Here's a self-contained Python example (using vtk 4.x) that offers one technique: --Randy # # python torus.py # from libvtkCommonPython import * from libvtkGraphicsPython import * from libvtkRenderingPython import * from libvtkImagingPython import * from math import * ren = vtkRenderer() renWin = vtkRenderWindow() renWin.AddRenderer(ren) iren = vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) points = vtkPoints() npts = 20 # pts per big and small radii totpts = npts*npts # Scalars assoc'd with each point sval = vtkFloatArray() sval.SetNumberOfTuples(totpts) points.SetNumberOfPoints( totpts ) c = 2 a = 0.5 k = 0 delta = 2*3.1415 / (npts-1) # rf. http://mathworld.wolfram.com/Torus.html for iv in range(0,npts): v = iv*delta zval = a*sin(v) const = c + a*cos(v) for iu in range(0,npts): u = iu*delta points.InsertPoint(k, const*cos(u), const*sin(u), zval) sval.SetValue(k, zval) k = k+1 print 'sval range = ',sval.GetRange() verts = vtkCellArray() for i in range(0,totpts): verts.InsertNextCell( 1 ) verts.InsertCellPoint( i ) pd = vtkPolyData() pd.SetPoints( points ) pd.SetVerts( verts ) pd.GetPointData().SetScalars(sval) pd.Update() print 'pd range = ',pd.GetPointData().GetScalars().GetRange() pdMapper = vtkPolyDataMapper() pdMapper.SetInput(pd) actor = vtkActor() actor.SetMapper(pdMapper) surf = vtkDelaunay3D() surf.SetInput(pd) surf.SetAlpha(0.5) mapper = vtkDataSetMapper() mapper.SetInput(surf.GetOutput()) mapper.ScalarVisibilityOn() mapper.SetScalarModeToUsePointData() mapper.SetColorModeToMapScalars() mapper.SetScalarRange( -.5, .5) surfActor = vtkActor() surfActor.SetMapper(mapper) ren.AddActor(actor) ren.AddActor(surfActor) renWin.Render() iren.Start() On Jun 7, 10:04am, Christian Pfaffel wrote: > Subject: [vtkusers] Visualizing Points > Hello, > > I have a rather simple problem, I think at least. I have a dataset > consisting of x,y,z coordinates (forming a torus) with a scalar value > (Magnetic Field) assigned. > I want to show the surface(and cuts), mapped to > colors according to its magnetic value. I do not know though which filters > to use. I have tried to use something like this: > > ----------- > bfield = vtkFloatArray() > points = vtkPoints() > > #filling up bfield and points with values > [...] > > bfield.CreateDefaultLookupTable() > grid = vtkPolyData() > grid.SetPoints(points) > grid.GetPointData().SetScalars(bfield) > > mapper = vtkDataSetMapper() > mapper.SetInput(grid) > mapper.SetLookupTable(bfield.GetLookupTable()) > mapper.SetScalarRange(0,2) > > actor = vtkActor() > actor.SetMapper(mapper) > > renderer = vtkRenderer() > renderer.AddActor(actor) > renderer.SetBackground(1,1,1) > renwin = vtkRenderWindow() > renwin.AddRenderer(renderer) > iren = vtkRenderWindowInteractor() > iren.SetRenderWindow(renwin) > iren.Initialize() > iren.Start() > > ---------- > > The problem is, I have browsed the example source codes, looked in the > "VTK Users's Guide", but there never is an example given that shows how to > make a "surfaceplot". > > Any help will be appreciated > > regards, > Christian Pfaffel From king at stud.uni-hannover.de Fri Jun 7 16:21:14 2002 From: king at stud.uni-hannover.de (Benjamin King) Date: Fri, 7 Jun 2002 22:21:14 +0200 Subject: [vtkusers] Getting LOD Properties with Tcl Message-ID: <20020607222114.B2968@benni.superwg.de> Hi, I'm new to VTK and have a problem with vtkLODProp3D. I did volume AddLOD lowresmapper volprop 0.0 and afterwards tried to get the property with volume GetLODProperty [volume GetLastRenderedLODID] but that didn't work. Any idea what went wrong? cu, Benni -- Unfortunately, the current generation of mail programs do not have checkers to see if the sender knows what he is talking about (A. S. Tanenbaum) From wlorens1 at nycap.rr.com Fri Jun 7 16:38:31 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Fri, 07 Jun 2002 16:38:31 -0400 Subject: [vtkusers] itk Seminar in Boston, Thursday, June 13 In-Reply-To: <3D0110C5.2020200@engineering.uiowa.edu> Message-ID: <5.1.0.14.2.20020607163508.025fb5e0@pop.nycap.rr.com> ANNOUNCING ITK: The Insight Segmentation and Registration Toolkit When: Thursday, June 13, 2002 2:00-5:00pm Where: Auditorium 250, Second Floor Tosteson Medical Education Center Info: www.itk.org The Insight Segmentation and Registration Toolkit (ITK) is an open source software system supporting the Visible Human Project. ITK was developed by six principal firms (three academic-UNC,U. of Pennsylvania, U. of Utah; and three commercial-GE Research, Insightful, Kitware) and funded through The National Library of Medicine at NIH. ITK employs a variety of leading edge segmentation and registration algorithms in 2D, 3D, and more dimensions, and is being developed using advanced, distributed software processes. This presentation marks the first formal introduction of ITK to the public. We will provide a brief history of and motivation for the software, a survey of available registration and segmentation algorithms, live demonstrations, and an overview of the development environment. We will also discuss some early reviews from the ITK community and plans for the future. Developers, Principal Investigators, and NLM project officers will be available for questions after the presentation. Thursday June 13, 2002 Schedule of Presentations ========================= 2:00 - 3:00 An Introduction to ITK + Introduction Goals, objectives, team, relationship to VHP (Visible Human Project) Validation Effort + Overview Architecture, major design decisions, major subsystems Use of templates/generic programming Image representation Mesh Representation + Registration Algorithms & Framework Various algorithms and results + Segmentation Algorithms & Framework Various algorithms and results + Future Upcoming releases, etc. Annoucement of the Beta2. 3:00 - 4:20 Demonstrations + Live demos 4:00 - 5:00 Developing with ITK + Development Environment + Architectural Features Memory management (smart pointers, object factories, etc.) Events (command/observer) Image Processing (Image, iterators, etc.) Mesh Data flow Image IO 5:00 - Informal Meetings Directions The address is: Tosteson Medical Medical Education Center (T-MEC) 260 Longwood Ave Boston, MA 02115 General map and direction information about Harvard Medical School can be found at http://www.hms.harvard.edu/about/mapsdir.html . T-MEC is located in Harvard Medical School Quadrangle (http://www.hms.harvard.edu/about/maps/quadmap.html) at the intersection of Longwood Ave and Ave Louis Pasteur, at Longwood Medical Area (http://www.hms.harvard.edu/about/maps/lmamap.html). By MBTA subway or bus or by car: Subway Green Line (E line Longwood Medical Area stop or D line Longwood stop), bus routes 47, CT2 and 8A will all take you there. For more information on public transportation, and for DRIVING DIRECTIONS, please check http://www.hms.harvard.edu/about/direction.html . By M2 shuttle M2 shuttle bus runs between Harvard Yard (Quincy Street outside Lamont Library Gate) and Longwood Medical Area (T-MEC is right across the street from shuttle stop). Harvard GSAS students can take M2 for free. The shuttle also makes stops on the way, including one at MBTA bus stop of MIT's main entrance. The shuttle leaving at 7pm from Harvard Yard will take you there on time. For more information, please check http://www.masco.org/transit/ptsM2.htm . From rrp at imm.dtu.dk Sat Jun 8 05:14:34 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Sat, 8 Jun 2002 11:14:34 +0200 (METDST) Subject: [vtkusers] itk Seminar in Boston, Thursday, June 13 In-Reply-To: <5.1.0.14.2.20020607163508.025fb5e0@pop.nycap.rr.com> Message-ID: Hi Bill, Sounds very good. Hard to go to Boston for a single event though ;) Do you know if there will be any ITK related events at MICCAI 2002 in Tokyo, Japan ? Regards, Rasmus From meschman at engima.com Sat Jun 8 07:31:27 2002 From: meschman at engima.com (mikee) Date: Sat, 8 Jun 2002 06:31:27 -0500 Subject: [vtkusers] 'A New Kind of Science': You Know That Space-Time Thing? Never Mind (NY Times link) Message-ID: hello, " ... the continuum is a fiction ... time doesn't flow, it ticks." Steven Wolfram (Mathematica) http://www.nytimes.com/2002/06/09/books/review/09JOHNSOT.html From aernst82 at hotmail.com Sat Jun 8 15:52:59 2002 From: aernst82 at hotmail.com (Andreas Ernst) Date: Sat, 08 Jun 2002 15:52:59 -0400 Subject: [vtkusers] Building Problem Message-ID: I have a problem to build VTK on my Linux machine. I am using SuSE Linux 8.0. If I run cmake -i in the VTK directory, the following error messages appear: configure: error: installation or configuration problem: C++ compiler cannot create executables. CMake Error: error can not open file /home/aernst/vis/VTK/CMakeSystemConfig.cmake CMake Error: error can not open file /home/aernst/vis/VTK/CMakeSystemConfig.cmake The file CMakeSystemConfig.cmake does not exist in my VTK directory. What to do? Thanks in advance. Andreas _________________________________________________________________ Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp. From c.p.botha at its.tudelft.nl Sat Jun 8 16:28:02 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Sat, 8 Jun 2002 22:28:02 +0200 Subject: [vtkusers] Building Problem In-Reply-To: References: Message-ID: <20020608202802.GA27013@dutidad.twi.tudelft.nl> On Sat, Jun 08, 2002 at 03:52:59PM -0400, Andreas Ernst wrote: > configure: error: installation or configuration problem: C++ compiler > cannot create executables. What happens on this machine when you type: g++ -v -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From lisa.avila at kitware.com Sat Jun 8 21:56:35 2002 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Sat, 08 Jun 2002 21:56:35 -0400 Subject: [vtkusers] Getting LOD Properties with Tcl In-Reply-To: <20020607222114.B2968@benni.superwg.de> Message-ID: <5.1.0.14.0.20020608215408.00a65cb0@pop.nycap.rr.com> Hi Benni, I am surprised that method is even wrapped in tcl - it returns a void and requires a pointer to a vtkVolumeProperty or a vtkProperty as a parameter (for the returned property). From tcl I would suggest keeping track of your properties and use the last rendered LOD to select from your set of properties. Lisa At 10:21 PM 6/7/2002 +0200, Benjamin King wrote: >Hi, > > >I'm new to VTK and have a problem with vtkLODProp3D. I did > > volume AddLOD lowresmapper volprop 0.0 > >and afterwards tried to get the property with > > volume GetLODProperty [volume GetLastRenderedLODID] > >but that didn't work. >Any idea what went wrong? > >cu, > Benni > >-- >Unfortunately, the current generation of mail programs do not have checkers >to see if the sender knows what he is talking about (A. S. Tanenbaum) >_______________________________________________ >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 M.Hardikar at asu.edu Sun Jun 9 00:36:23 2002 From: M.Hardikar at asu.edu (M.Hardikar at asu.edu) Date: Sat, 08 Jun 2002 21:36:23 -0700 (MST) Subject: [vtkusers] problems superimposing external 3D data onto CAD rendering Message-ID: dear users, i have text data (3D point coordinates) which I read from the text file. these are supposed to lie on the surface of a CAD file that I am reading in STL format. When I try to superimpose these points on the CAD rendering of the same part, they dont lie where they are supposed to . i am not sure why this is happeneing can somebody give me some possible sources of problem and hints as to why this could be happening? Mahesh From M.Hardikar at asu.edu Sun Jun 9 02:08:15 2002 From: M.Hardikar at asu.edu (M.Hardikar at asu.edu) Date: Sat, 08 Jun 2002 23:08:15 -0700 (MST) Subject: [vtkusers] help with vtkPointLocator Message-ID: following is the code that I am using: pSTL_poly is the source that I have populated using STLreader and the input data is a sheet metal body in STL format. ------------------------------ vtkPointLocator *pointLocator = vtkPointLocator::New(); pointLocator->SetDataSet(pSTL_poly->GetOutput()->GetPoints()); pointLocator->BuildLocator(); vtkSphereSource *spot = vtkSphereSource::New(); spot->SetPhiResolution(6); spot->SetThetaResolution(6); spot->SetRadius(0.1); vtkPolyDataMapper *spotMapper = vtkPolyDataMapper::New(); spotMapper->SetInput(spot->GetOutput()); // Find closest point vtkIdType ptId; float dist; float p1[] = {2.0, 1.0, 3.0}; p1[0] = med->get_X_component(); p1[1] = med->get_Y_component(); p1[2] = med->get_Z_component(); ptId = pointLocator->FindClosestPoint(p1); vtkActor *closestPointActor = vtkActor::New(); closestPointActor->SetMapper(spotMapper); closestPointActor->SetPosition(pSTL_poly->GetOutput()->GetPoints()->GetPoint(ptId)); closestPointActor->GetProperty()->SetColor(0.0, 1.0, 0.0); GetProps()->AddItem(closestPointActor); -------------------------------------------- i am getting follwoing error and program crashes: ERROR: c:\martink\vtk40\VTK\Common\vtkPointLocator.cxx, line 975 vtkPointLocator [0x00E7A4C0] : No points to subdivide Help.. Thanks From wlorens1 at nycap.rr.com Sun Jun 9 08:24:25 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sun, 09 Jun 2002 08:24:25 -0400 Subject: [Insight-users] Re: [vtkusers] itk Seminar in Boston, Thursday, June 13 In-Reply-To: References: <5.1.0.14.2.20020607163508.025fb5e0@pop.nycap.rr.com> Message-ID: <5.1.0.14.2.20020609082335.04188820@pop.nycap.rr.com> None at MICCAI this year. However, there will be a tutorial at IEEE Visualization 2002. Bill At 11:14 AM 6/8/02 +0200, Rasmus Reinhold Paulsen wrote: >Hi Bill, > >Sounds very good. Hard to go to Boston for a single event though ;) > >Do you know if there will be any ITK related events at MICCAI 2002 in >Tokyo, Japan ? > >Regards, >Rasmus > > >_______________________________________________ >Insight-users mailing list >Insight-users at public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users From hucat30777 at hotmail.com Sun Jun 9 21:43:23 2002 From: hucat30777 at hotmail.com (=?gb2312?B?uvog0KG+6g==?=) Date: Mon, 10 Jun 2002 09:43:23 +0800 Subject: [vtkusers] where is the package? Message-ID: Hi: Tcl is new to me. When I try to run some tcl example code,it always say "can not find package vtk",Where are these packages and how can I add them ? thanks in advance _________________________________________________________________ ???? MSN Explorer?http://explorer.msn.com/lccn/intl.asp From hucat30777 at hotmail.com Sun Jun 9 21:44:24 2002 From: hucat30777 at hotmail.com (=?gb2312?B?uvog0KG+6g==?=) Date: Mon, 10 Jun 2002 09:44:24 +0800 Subject: [vtkusers] where is the package? Message-ID: Hi: Tcl is new to me. When I try to run some tcl example code,it always say "can not find package vtk",Where are these packages and how can I add them ? thanks in advance _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.microsoft.com/cn From hucat30777 at hotmail.com Sun Jun 9 21:59:38 2002 From: hucat30777 at hotmail.com (=?gb2312?B?uvog0KG+6g==?=) Date: Mon, 10 Jun 2002 09:59:38 +0800 Subject: [vtkusers] where is the package? Message-ID: Hi: Tcl is new to me. When I try to run some tcl example code,it always say "can not find package vtk",Where are these packages and how can I add them ? thanks in advance _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.microsoft.com/cn From amati at ira.cnr.it Mon Jun 10 04:37:49 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Mon, 10 Jun 2002 10:37:49 +0200 (CEST) Subject: [vtkusers] older version Message-ID: Hi everybody, where can I download older version of VTK? I need Vtk 3.2.1 Thanks Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From sebastien.barre at kitware.com Mon Jun 10 08:06:03 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon, 10 Jun 2002 08:06:03 -0400 Subject: [vtkusers] older version In-Reply-To: Message-ID: <5.1.0.14.2.20020610080552.02707c40@pop.nycap.rr.com> At 6/10/2002 04:37 AM, Giancarlo Amati wrote: >Hi everybody, > >where can I download older version of VTK? >I need Vtk 3.2.1 ftp://public.kitware.com/pub/vtk/vtk3.2/ -- Sebastien Barre From dgobbi at irus.rri.ca Mon Jun 10 09:12:16 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Mon, 10 Jun 2002 09:12:16 -0400 (EDT) Subject: [vtkusers] vtkAmoebaMinimizer Message-ID: Hi All, I added a downhill simplex minimization class to VTK over the weekend, it is in the Hybrid directory in CVS and includes examples in Hybrid/Testing/Cxx and Hybrid/Testing/Tcl. My intention is to eventually split off a vtkAbstractMinimizer base class (once I know whether people like the basic interface), but for now if anyone wants to create their own minimizer class they can derive from vtkAmoebaMinimizer and override the Iterate() and Minimize() methods. Here is a short example (in python) of how to use the class: m = vtkAmoebaMinimizer() # create the function that will be minimized def func(): x = m.GetParameterValue("x") y = m.GetParameterValue("y") z = m.GetParameterValue("z") r = (x-5)*(x-5) + (y+2)*(y+2) + (z)*(z) m.SetResult(r) m.SetFunction(func) m.SetParameterBracket("x",-2,2) # initial guess is -2, 2nd guess is +2 m.SetParameterBracket("y",-2,2) m.SetParameterBracket("z",-2,2) m.Minimize() m.Iterate() print "should get x=5, y=-2, z=0" print "x =", m.GetParameterValue("x") print "y =", m.GetParameterValue("y") print "z =", m.GetParameterValue("z") print "minimum =", m.GetResult() print "iterations =", m.GetIterations() - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario From eplanung at t-online.de Mon Jun 10 09:35:24 2002 From: eplanung at t-online.de (Franz Th. Langer) Date: Mon, 10 Jun 2002 15:35:24 +0200 Subject: [vtkusers] vtknightly Message-ID: <3D04AB1C.70B7615@t-online.de> Dear vtknightly users, until now I was working with vtk 4.0 , W 2000, VC 6.0/MFC compiling / linking / running with vtk 4.0 ok. compiling / linking with vtk 4.x nightly (8.6.02) ok, but in the run-phase I get a "missing" entry point error: for ---------- vtkWindowToImageFilter ::SetInput------------- is missing in the Rendering.dll. perhaps somebody has an explanation. regards Franz. From krs at cs.uncc.edu Mon Jun 10 10:59:48 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Mon, 10 Jun 2002 10:59:48 -0400 Subject: [vtkusers] JPEG Reader.. Message-ID: <3D04BEE4.7F08D8CD@cs.uncc.edu> In 4.0, there seems to be a JPEG writer, but not a reader. Any plans for it? --krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From krs at cs.uncc.edu Mon Jun 10 11:01:27 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Mon, 10 Jun 2002 11:01:27 -0400 Subject: [vtkusers] JPEG Reader.. oops! Message-ID: <3D04BF47.CAD5266B@cs.uncc.edu> I spoke too soon - I just found it - I didnt realize there were two ImageReader classes.. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From cmarbur at iti.upv.es Mon Jun 10 12:53:42 2002 From: cmarbur at iti.upv.es (=?ISO-8859-1?Q?Carlos_Mart=EDnez_Burgos?=) Date: Mon, 10 Jun 2002 18:53:42 +0200 (CEST) Subject: [vtkusers] Xlib: unexpected async reply Message-ID: Hi all. I have problems with VTK, Linux and Java. I have compiled a nightly version of VTK from the last day of May. I have run programs without problems, but when I run them exporting the DISPLAY to another host, I get this error: libGL error: failed to open DRM: Operaci?n no permitida libGL error: reverting to (slow) indirect rendering Xlib: unexpected async reply (sequence 0x10ea)! I don't know what is the problem. Do you know it? Thanks 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 cnavarro at ncsa.uiuc.edu Mon Jun 10 13:42:03 2002 From: cnavarro at ncsa.uiuc.edu (Christopher Navarro) Date: Mon, 10 Jun 2002 12:42:03 -0500 (CDT) Subject: [vtkusers] Obtaining scalar data from vtkStructuredPoints Message-ID: Hi, I am using vtk 4.0 and I can't seem to locate the function on the man pages to get a particular scalar from a vtkStructuredPoints object. I have just 1 scalar (for the time being in this vtk file that I read in). Does anyone know how I can access the scalar given a point ID? Thanks! -chris From samson at mit.edu Mon Jun 10 14:20:55 2002 From: samson at mit.edu (Samson Timoner) Date: Mon, 10 Jun 2002 14:20:55 -0400 Subject: [vtkusers] Re: NVidia 1.0-2802 problem also in vtk4 Message-ID: I was experiencing the same types of problems reported on this list with Nvidia 1.0-28. I have just installed the newest version of the Nvidia drivers and all my previous problems have gone away. Info: Nvidia 1.0-2960 vtk3.2 XFree86-4 Debian Testing Linux 2.4.18-686 nVidia Riva TnT2 So, I think Nvidia fixed the problem. -- Samson From c.p.botha at its.tudelft.nl Mon Jun 10 14:47:42 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 10 Jun 2002 20:47:42 +0200 Subject: [vtkusers] Re: NVidia 1.0-2802 problem also in vtk4 In-Reply-To: References: Message-ID: <20020610184742.GB12613@dutidad.twi.tudelft.nl> On Mon, Jun 10, 2002 at 02:20:55PM -0400, Samson Timoner wrote: > I was experiencing the same types of problems reported on this list > with Nvidia 1.0-28. > > I have just installed the newest version of the Nvidia drivers > and all my previous problems have gone away. > > Info: > Nvidia 1.0-2960 > vtk3.2 Brilliant! I've just confirmed this on my side. Thanks for mentioning. Regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From prabhu at aero.iitm.ernet.in Mon Jun 10 14:47:53 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 11 Jun 2002 00:17:53 +0530 Subject: [vtkusers] Re: NVidia 1.0-2802 problem also in vtk4 In-Reply-To: References: Message-ID: <15620.62553.328432.169341@monster.linux.in> >>>>> "ST" == Samson Timoner writes: ST> I have just installed the newest version of the Nvidia drivers ST> and all my previous problems have gone away. ST> Info: Nvidia 1.0-2960 vtk3.2 XFree86-4 Debian Testing Linux ST> 2.4.18-686 nVidia Riva TnT2 ST> So, I think Nvidia fixed the problem. Thanks for letting us know! prabhu [who is very happy not to have to backport the debian nvidia* packages in the future!] From parvanes at ece.ubc.ca Mon Jun 10 15:35:55 2002 From: parvanes at ece.ubc.ca (Parvaneh Saeedi) Date: Mon, 10 Jun 2002 12:35:55 -0700 Subject: [vtkusers] Error in writing vtkPolyDataWriter Message-ID: <001201c210b6$09da29e0$98385289@rcl.ece.ubc.ca> Hi, I am just wondering if any one knows the reason for the following error when I am trying to write a vtkAppendPolyData using command vtkPolyDataWriter. ERROR: In C:\martink\vtk40\VTK\Graphics\vtkAppendPolyData.cxx, line 607 vtkAppendPolyData (0x01038AD0): Destination not big enough My code is : vtkPolyData *polydata[30]; vtkAppendPolyData *appendall=vtkAppendPolyData::New(); for(j=0;jGetMapper()->GetInput(); appendall->AddInput(polydata[j]); } vtkPolyDataWriter *writer=vtkPolyDataWriter::New(); writer->SetInput(appendall->GetOutput()); writer->SetFileName("woman.vtk"); writer->Write(); Any help is greatly appreciated. Parvaneh Saeedi ----------------------------------------------------------------- Robotics and Control Laboratory Dept. of Electrical and Computer Engineering University of British Columbia -------------- next part -------------- An HTML attachment was scrubbed... URL: From brownr at ucalgary.ca Mon Jun 10 18:16:29 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Mon, 10 Jun 2002 16:16:29 -0600 Subject: [vtkusers] VTK and Python 2.3 Message-ID: I have VTK working with python 2.2 but when I try to use it with 2.3 I get undefined symbols. I noticed something similar happening with other packages and the problem was resolved by recompiling these other packages. Recompiling VTK did not resolve the problem. Here is the error (Python 2.3 built from CVS and VTK build from a CVS about a month ago): >>> from vtkpython import * Traceback (most recent call last): File "", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/vtkpython.py", line 7, in ? from vtk import * File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/vtk/__init__.py", line 8, in ? from filtering import * File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/vtk/filtering.py", line 7, in ? from libvtkFilteringPython import * ImportError: Failure linking new module: : dyld: /Applications/Python.app/Contents/MacOS/python Undefined symbols: _PyArg_VTKParseTuple _PyVTKClass_Check _PyVTKClass_New _PyVTKClass_vtkCollectionNew _PyVTKClass_vtkDataObjectNew _PyVTKClass_vtkImplicitFunctionNew _PyVTKClass_vtkLocatorNew _PyVTKClass_vtkObjectNew _PyVTKClass_vtkPointLocator2DNew _PyVTKClass_vtkPointLocatorNew _PyVTKClass_vtkScalarsToColorsNew _PyVTKClass_vtkSourceNew _vtkPythonCheckArray__FP7_objectiPfi _vtkPythonCheckArray__FP7_objectiPii _vtkPythonGet >>> Thanks, -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From mnorton at cisco.com Mon Jun 10 18:26:07 2002 From: mnorton at cisco.com (Michael Norton) Date: Mon, 10 Jun 2002 15:26:07 -0700 Subject: [vtkusers] looking for a 3D plotting example (tcl) Message-ID: <4.3.2.7.2.20020610152420.01dc5b60@mira-sjcm-2.cisco.com> hi, I have seen the expcos.tcl for the bessel function. Does anyone have an example of a simple straight forward plot of r- sin(theta) or r = cos(theta) or something simple like that? thanks, Mike From bsapp at lanl.gov Mon Jun 10 19:10:36 2002 From: bsapp at lanl.gov (Ben Sapp) Date: Mon, 10 Jun 2002 18:10:36 -0500 Subject: [vtkusers] looking for a 3D plotting example (tcl) In-Reply-To: <4.3.2.7.2.20020610152420.01dc5b60@mira-sjcm-2.cisco.com> References: <4.3.2.7.2.20020610152420.01dc5b60@mira-sjcm-2.cisco.com> Message-ID: <200206102310.g5ANAbL16783@manowar.lanl.gov> Hi Michael, The attached c++ file is modifed from a tcl file and it creates a helix. It also creates a box around the helix. It's a bit sloppy because it was just a learning exercise for myself. The functional form in cartesian coordinates is: z -> goes from 1 to 5; x = cos(2.0*M_PI*z); y = sin(2.0*M_PI*z); Good luck, Ben. On Monday 10 June 2002 05:26 pm, Michael Norton wrote: > hi, > > I have seen the expcos.tcl for the bessel function. Does anyone have an > example of a simple straight forward plot of r- sin(theta) or r = > cos(theta) or something simple like that? > > thanks, > > Mike > > _______________________________________________ > 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 -- Ben Sapp Los Alamos National Laboratory email: Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/ -- -------------- next part -------------- A non-text attachment was scrubbed... Name: PolyLine.cxx Type: text/x-c++ Size: 4983 bytes Desc: not available URL: From chpchew at hotmail.com Mon Jun 10 21:34:39 2002 From: chpchew at hotmail.com (Chew Hock Ping) Date: Tue, 11 Jun 2002 09:34:39 +0800 Subject: [vtkusers] newbie Message-ID: hi: l'm totally new in vtk. l had install vtk4.0Core.exe and vtk4.0Java.exe in my computer. after that, l try to compiled the file in Examples\Tutorial\Step1\Java\Cone.java, it seems ok. But when l try to run the main, it show me the error. Is that anyone can help me? the error message is as below: java.lang.UnsatisfiedLinkError: D:\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at Cone.(Cone.java:22) thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From hucat30777 at hotmail.com Mon Jun 10 22:57:24 2002 From: hucat30777 at hotmail.com (=?gb2312?B?uvog0KG+6g==?=) Date: Tue, 11 Jun 2002 10:57:24 +0800 Subject: [vtkusers] get the coordinate Message-ID: hi? I need to get a get the mouse's 3d coordinate (x,y,z),now I want to use the PickMethod to capture the mouse position.But the picker->GetPickPosition() method dont return a Descartes coordinate. how can I get it? thanks in advance _________________________________________________________________ ?????????????? MSN Messenger: http://messenger.microsoft.com/cn From yoshihiko_nagamine at pis.hitachi.co.jp Tue Jun 11 00:59:16 2002 From: yoshihiko_nagamine at pis.hitachi.co.jp (yoshihiko_nagamine at pis.hitachi.co.jp) Date: Tue, 11 Jun 2002 13:59:16 +0900 Subject: [vtkusers] InternalFrame Message-ID: Hello I use vtk3.2 and jdk1.3. I want to use Internal Frame and DesktopPane with vtkPanel. In trial, I made an application, it has two internal Frame and one DesktopPane. I expect One Internal Frame displays 2D image and the other displays 2D Multi slice view. But I can not get image on the screen. I guess this is because the heavy component and light component mixing problem. Does anybody know the slution? Or Is it impossible ? Thanks in advance ------------ Yoshihiko Nagamine From a.maclean at acfr.usyd.edu.au Tue Jun 11 02:12:28 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 11 Jun 2002 16:12:28 +1000 Subject: [vtkusers] vtk nightly build / VC7 Warnings and other related issues. Message-ID: <00ba01c2110e$f70094e0$acd24e81@acfr.usyd.edu.au> As of June 10th 2002: A) Is there any indication when the "Out of heap space" issue (which is sometimes fixed by setting /Zm to some value like 600 or 800) will be resolved? B) I get a lot of warnings of the following types when building the nightly release using VisualC++ V7.0: 1) C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xmemory(111): warning C4661: 'void vtkImageIterator::NextSpan(void)' : no suitable definition provided for explicit template instantiation request with [ DType=unsigned char ] 2) C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xlocale(582): warning C4661: 'vtkImageIterator::vtkImageIterator(vtkImageData *,int *)' : no suitable definition provided for explicit template instantiation request with [ DType=unsigned long ] They are confined to vtkImageIterator. Is it safe to ignore these? C) Can the scripts for CMake be modified to remove thefollowing error when running the tests: "vtk.exe - Unable to Locate Component error: This application has failed to start because tcl83.dll was not found. Re-installing the application may fix this problem. " You just need to add in the path to tcl83.dll. The beta of CMake seems to work OK. Thanks Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From eplanung at t-online.de Tue Jun 11 05:24:01 2002 From: eplanung at t-online.de (Franz Th. Langer) Date: Tue, 11 Jun 2002 11:24:01 +0200 Subject: [vtkusers] positional light Message-ID: <3D05C1B1.E16E89A9@t-online.de> Dear VTK-users, I am using 2 Actors: one vtkActor with vtkPolyData and 2d-Text with vtkActor2D. I can show both at the same time when I use normal light conditions! as soon as I switch the light to positional light, only the polygonal data are shown, and the space where the 2d-Text should be is empty? has anybody an explanation for this behavier? regards Franz From a.trum at teraport.de Tue Jun 11 11:21:52 2002 From: a.trum at teraport.de (Alexander Trum) Date: Tue, 11 Jun 2002 17:21:52 +0200 Subject: [vtkusers] Error in writing vtkPolyDataWriter References: <001201c210b6$09da29e0$98385289@rcl.ece.ubc.ca> Message-ID: <3D061590.AF7389A4@teraport.de> Parvaneh Saeedi schrieb: > > Hi, > > I am just wondering if any one knows the reason for the following > error when I am trying to write a vtkAppendPolyData using command > vtkPolyDataWriter. > > > ERROR: In C:\martink\vtk40\VTK\Graphics\vtkAppendPolyData.cxx, line > 607 > vtkAppendPolyData (0x01038AD0): Destination not big enough > My code is : > > vtkPolyData *polydata[30]; > vtkAppendPolyData *appendall=vtkAppendPolyData::New(); > > for(j=0;j polydata[j] = vtkPolyData::New(); > polydata[j]=(vtkPolyData*)actor[j]->GetMapper()->GetInput(); > appendall->AddInput(polydata[j]); > } Perhaps appendall->Update(); will help. > > vtkPolyDataWriter *writer=vtkPolyDataWriter::New(); > > writer->SetInput(appendall->GetOutput()); > writer->SetFileName("woman.vtk"); > writer->Write(); > Any help is greatly appreciated. > Parvaneh Saeedi > ----------------------------------------------------------------- > Robotics and Control Laboratory > Dept. of Electrical and Computer Engineering > University of British Columbia > -- Alexander Trum Dipl.-Math. (FH) Senior Softwareentwickler Engineering IT Consulting Teraport GmbH Tel: +49-(0)89-651086-721 Fax: +49-(0)89-651086-701 Cell:+49-(0)170-4904748 mailto:alexander.trum at teraport.de From Matthieu.Chabanas at imag.fr Tue Jun 11 14:04:23 2002 From: Matthieu.Chabanas at imag.fr (Matthieu Chabanas) Date: Tue, 11 Jun 2002 20:04:23 +0200 Subject: [vtkusers] Gouraud interpolation, vtkUnstructedGrid Message-ID: <3D063BA7.DD78DDB1@imag.fr> I would like to render a vtkUnstructuredGrid (composed of hexaedrons and wedges) with Gouraud interpolation instead of flat faces to enhance the rendering aspect. I have changed my actor property (with GetProperty()->SetInterpolationToGouraud()), but the aspect is exactly the same as in flat interpolation mode. (I have the same behaviour with Phong as well, nothing is changed). Do I have to compute normals first? In that case, how to do it? Thanks for any help Matt From king at stud.uni-hannover.de Tue Jun 11 14:54:24 2002 From: king at stud.uni-hannover.de (Benjamin King) Date: Tue, 11 Jun 2002 20:54:24 +0200 Subject: [vtkusers] Interactive clipping Message-ID: <20020611205424.A2551@benni.superwg.de> Hi, using Tcl, I want to clip a volume with a clipping plane. Currently, the origin of the plane can be moved with a scale widget and in the procedure that is called when the user modifies the scale, I tried to 1) Render() the renderer and 2) Update() its volume after setting the new origin, but the volume isn't correctly updated until I click in the vtkTkRenderWidget that contains the renderer _and_ move the mouse (clicking alone doesn't change anything either). I used BindTkRenderWidget to interact with the renderer. What's wrong? Benni -- Unfortunately, the current generation of mail programs do not have checkers to see if the sender knows what he is talking about (A. S. Tanenbaum) From 4mg19 at qlink.queensu.ca Tue Jun 11 15:15:36 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Tue, 11 Jun 2002 15:15:36 -0400 (EDT) Subject: [vtkusers] Linking Static Libraries Message-ID: Hello: I need to create and link VTK 4.0 static libraries using Linex RH 7.1. Could someone please offer help to figure out how to do this? Thanks, Mike From sonar34 at hotmail.com Tue Jun 11 15:21:30 2002 From: sonar34 at hotmail.com (Hugo Martinez) Date: Tue, 11 Jun 2002 19:21:30 +0000 Subject: [vtkusers] saving images with vtk??? Message-ID: Hello, I am trying to save a series of images in order to later use these images in an mpeg movie. I was wondering if there is any way I can save these images without having to worry about making sure no windows cover the window where the image is being displayed. Currently, if another window is placed over the image's window the picture saved will include the overlapping window... like a screen capture. Please let me know what I can do to fix this. Hugo _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From minnus at eng.buffalo.edu Tue Jun 11 17:50:44 2002 From: minnus at eng.buffalo.edu (Martins D Innus) Date: Tue, 11 Jun 2002 17:50:44 -0400 (EDT) Subject: [vtkusers] MarchingCubes/ScalarRange Bug ? Message-ID: Hi, Using vtkMarchingCubes from VTK4.0 if I set the contour level at say 593, then call GetScalarRange on the output, I get [592,593]. Because of this, in my mapper with a custom LUT I need to set LUT values for both 592 and 593. If I just set 593 with a value, about 1/3 of the cells appear transparent. If I give LUT values for both 592 and 593 the output is as expected. Any reason for this? Thanks. Martins From clcarter at mac.com Tue Jun 11 19:19:49 2002 From: clcarter at mac.com (Catherine Carter) Date: Tue, 11 Jun 2002 19:19:49 -0400 Subject: [vtkusers] VTK on Mac OS X Message-ID: Has anyone installed VTK on OS X? If so, can you tell me the procedure? Thanks in advance!! From amati at ira.cnr.it Wed Jun 12 02:59:00 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 12 Jun 2002 08:59:00 +0200 (CEST) Subject: [vtkusers] Arc Sphere Message-ID: Hi everybody, I would like to build a arc of a sphere or a portion of it, is there any vtk class that can help me? Thank you -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From P.J.H.de_Koning at lumc.nl Wed Jun 12 03:03:46 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Wed, 12 Jun 2002 09:03:46 +0200 Subject: [vtkusers] Get slice image from image data In-Reply-To: Message-ID: <94HDUO354QK4YHCRLLKED65YW2VWR.3d06f252@MRI-PATRICK> 07-06-02 3:26:07, yoshihiko_nagamine at pis.hitachi.co.jp wrote: >Hello > >I tried get imagedata (number of slice is one) from other imagedata ( 128 >x 128 x 90; number of slice is 90). >How can I get one slice image data? > >thanks >-------------- >Nagamine Yoshihiko > use vtkImageData->GetScalarPointer(0, 0, slice) will give you the first pixel of the slice >_______________________________________________ >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 lehrig at t-online.de Wed Jun 12 03:58:13 2002 From: lehrig at t-online.de (Rainer Lehrig) Date: Wed, 12 Jun 2002 09:58:13 +0200 Subject: [vtkusers] unresolved external Message-ID: <200206120958.13308.lehrig@t-online.de> Hi, I have an application that is calling Tcl from C++ This application is working on Linux. But on Windows I get an unresolved external. Line in sourcecode that is unresolved: tclcommand = vtkTclCommand::New(); ########################################################## --------------------Configuration: processview - Win32 Debug-------------------- Linking... Creating library Debug/processview.lib and object Debug/processview.exp pvVtkTclWidget.obj : error LNK2001: unresolved external symbol "protected: __thiscall vtkTclCommand::vtkTclCommand(void)" (??0vtkTclCommand@@IAE at XZ) Debug/processview.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. processview.exe - 2 error(s), 0 warning(s) ########################################################## The corresponding file is located under: ./Common/vtkTclUtil.h and vtkTclUtil.cxx On Linux I made a source installation. On Windows I made a binary installation. Version: VTK 4.0 CD from Book VC++ 6.0 What's wrong ? Yours: Rainer Lehrig From orlandomhb at yahoo.com Wed Jun 12 04:14:55 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Wed, 12 Jun 2002 01:14:55 -0700 (PDT) Subject: [vtkusers] problem with vtk3DWidgets and observer order In-Reply-To: <3CE0E79D.7050601@cdnorthamerica.com> Message-ID: <20020612081455.71048.qmail@web10107.mail.yahoo.com> --- Jeff Lee wrote: > Charl, > I have implemented vtkGenericInteractor > functionality on the java side > and it works as advertised with the 3d widgets and > all other > interactorObservers. I didn't notice any strange > behavior. > Linux/Solaris platforms, CVS April30 (eons-old in > today's fast-paced > world of software);) > -Jeff > > Charl P. Botha wrote: > > >On Tue, May 14, 2002 at 08:45:21AM +0200, Robert > Belleman wrote: > > > >>It's broken here; I have camera movemement. Even > worse: if I move one > >>of the balls, the camera moves a little, then all > interaction freezes. > >>Vtk then consumes 99% CPU. > >> > >>May 13th nightly. > >> > > > >Thanks for testing Rob! > > > >Okay, it's working for John and Sebastien and it's > broken for you, me and > >Prabhu. I'm also working with a CVS checkout of > May 11 / 12. I've also > >seen the interaction freeze, and so has Prabhu. > Common denominators: I > >believe John and Sebastien are testing on Windows; > Rob, Prabhu and I are on > >Linux. > > > >Any more testers? > > > > -- > Jeff Lee > Software Engineer jeff at cdnorthamerica.com > CD North America > 21 Lafayette Street, Suite 230 > Lebanon, NH 03766 > Tel: (603) 643-9993 ext. 109 > Fax: (603) 643-9994 > > > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From vtk at le.isac.cnr.it Wed Jun 12 04:18:33 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Wed, 12 Jun 2002 10:18:33 +0200 Subject: [vtkusers] Lines width Message-ID: <200206120818.g5C8IXd08489@nemesi.le.isac.cnr.it> Hi , I work witdh VTK 4, tcl/tk on linux workstation. I'd drow a line, but i want to change a width. Can i do to change it? *************************************************** vtkPoints Pts #set barra [expr $barra + $incrementobarra] Pts InsertNextPoint 0.70 0.055 0.0 Pts InsertNextPoint 0.70 0.055 0.0 vtkCellArray Lines Lines InsertNextCell 2 Lines InsertCellPoint 0 Lines InsertCellPoint 1 vtkPolyData Grid Grid SetPoints Pts Grid SetLines Lines # Set up the mapper and actor (2D) for the grid. vtkPolyDataMapper2D mapper_linea mapper_linea SetInput Grid mapper_linea SetTransformCoordinate normCoords vtkActor2D gridActor gridActor SetMapper mapper_linea [gridActor GetProperty] SetColor 0 1 0 ******************************************************* From amati at ira.cnr.it Wed Jun 12 04:35:32 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 12 Jun 2002 10:35:32 +0200 (CEST) Subject: [vtkusers] Lines width In-Reply-To: <200206120818.g5C8IXd08489@nemesi.le.isac.cnr.it> Message-ID: Yes you can with: [gridActor GetProperty] SetLineWidth Number>1 On Wed, 12 Jun 2002 vtk at le.isac.cnr.it wrote: > Hi , > I work witdh VTK 4, tcl/tk on linux workstation. > I'd drow a line, but i want to change a width. > Can i do to change it? > > > *************************************************** > > vtkPoints Pts > > #set barra [expr $barra + $incrementobarra] > Pts InsertNextPoint 0.70 0.055 0.0 > Pts InsertNextPoint 0.70 0.055 0.0 > > vtkCellArray Lines > Lines InsertNextCell 2 > Lines InsertCellPoint 0 > Lines InsertCellPoint 1 > > > > vtkPolyData Grid > Grid SetPoints Pts > Grid SetLines Lines > > > > # Set up the mapper and actor (2D) for the grid. > vtkPolyDataMapper2D mapper_linea > mapper_linea SetInput Grid > mapper_linea SetTransformCoordinate normCoords > vtkActor2D gridActor > gridActor SetMapper mapper_linea > [gridActor GetProperty] SetColor 0 1 0 > ******************************************************* > > > _______________________________________________ > 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 > -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From prabhu at aero.iitm.ernet.in Wed Jun 12 04:40:42 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 12 Jun 2002 14:10:42 +0530 Subject: [vtkusers] Lines width In-Reply-To: <200206120818.g5C8IXd08489@nemesi.le.isac.cnr.it> References: <200206120818.g5C8IXd08489@nemesi.le.isac.cnr.it> Message-ID: <15623.2314.148251.320256@monster.linux.in> >>>>> "vtk" == vtk writes: vtk> Hi , I work witdh VTK 4, tcl/tk on linux workstation. I'd vtk> drow a line, but i want to change a width. Can i do to vtk> change it? [gridActor GetProperty] SetLineWidth 2.0 prabhu From G.R.Tabor at exeter.ac.uk Wed Jun 12 05:01:14 2002 From: G.R.Tabor at exeter.ac.uk (Gavin Tabor) Date: Wed, 12 Jun 2002 10:01:14 +0100 Subject: [vtkusers] Test Message-ID: <3D070DDA.9090105@exeter.ac.uk> Test. -- Dr. Gavin Tabor School of Engineering and Computer Science Department of Engineering University of Exeter From G.R.Tabor at exeter.ac.uk Wed Jun 12 05:33:19 2002 From: G.R.Tabor at exeter.ac.uk (Gavin Tabor) Date: Wed, 12 Jun 2002 10:33:19 +0100 Subject: [vtkusers] Problems installing Message-ID: <3D07155F.9000905@exeter.ac.uk> Dear All, I am trying to compile the VTK code on my Sun workstation under Solaris 8, using the gcc compiler. I have downloaded and installed (I believe) cmake, but when I try to run cmake -i in the VTK directory as instructed, I get the error messages CMake Error: error can not open file /space/VTK/CMakeSystemConfig.cmake CMake Error: error can not open file /space/VTK/CMakeSystemConfig.cmake Sure enough, this file is not there. Where should it come from/what am I doing wrong? My thanks in advance for any help. Gavin -- Dr. Gavin Tabor School of Engineering and Computer Science Department of Engineering University of Exeter From baudet at ondim.fr Wed Jun 12 09:10:46 2002 From: baudet at ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Wed, 12 Jun 2002 15:10:46 +0200 Subject: [vtkusers] Picking and Back Face Culling Message-ID: <00cc01c21212$91eb1850$1c00a8c0@muscles> Hi everybody, I wonder if it's normal that picking is enable on faces that are not shown because of back face culling...? (I'd like to pick an actor which inside another one.) Thank you. R?my Baudet ONDIM - Signal | Image | Multim?dia Email : baudet at ondim.fr T?l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris -------------- next part -------------- An HTML attachment was scrubbed... URL: From billlist at nycap.rr.com Wed Jun 12 09:28:45 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 12 Jun 2002 09:28:45 -0400 Subject: [vtkusers] Problems installing In-Reply-To: <3D07155F.9000905@exeter.ac.uk> Message-ID: <5.0.2.1.0.20020612092803.0581a568@pop.nycap.rr.com> My guess is that there was an error in the configure step of cmake. Most likely your c++ compiler does not work. -Bill At 10:33 AM 6/12/2002 +0100, Gavin Tabor wrote: >Dear All, > >I am trying to compile the VTK code on my Sun workstation under Solaris 8, using the gcc compiler. I have downloaded and installed (I believe) cmake, but when I try to run cmake -i in the VTK directory as instructed, I get the error messages > >CMake Error: error can not open file /space/VTK/CMakeSystemConfig.cmake >CMake Error: error can not open file /space/VTK/CMakeSystemConfig.cmake > > >Sure enough, this file is not there. Where should it come from/what am I >doing wrong? > >My thanks in advance for any help. > >Gavin > >-- > >Dr. Gavin Tabor >School of Engineering and Computer Science >Department of Engineering >University of Exeter > >_______________________________________________ >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 ted at caept.com Wed Jun 12 10:13:13 2002 From: ted at caept.com (Ted Christiansen) Date: Wed, 12 Jun 2002 10:13:13 -0400 Subject: [vtkusers] Using VTK in an existing OpenGL window (Win32) Message-ID: <3D0756F9.F9B69CD2@caept.com> Hello, I need to use VTK in a window that is already setup for OpenGL on Win32. My code will be notified that the OGL buffers are about to be swapped at which point I can use VTK to draw the necessary objects. Anyone have any ideas on how to go about doing this? Ted From c.p.botha at its.tudelft.nl Wed Jun 12 10:20:57 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Wed, 12 Jun 2002 16:20:57 +0200 Subject: [vtkusers] Using VTK in an existing OpenGL window (Win32) Message-ID: <20020612142057.GD21321@dutidad.twi.tudelft.nl> On Wed, Jun 12, 2002 at 10:13:13AM -0400, Ted Christiansen wrote: > I need to use VTK in a window that is already setup for OpenGL on > Win32. My code will be notified that the OGL buffers are about to be > swapped at which point I can use VTK to draw the necessary objects. > Anyone have any ideas on how to go about doing this? You could pass the window ID of the configured Window to the vtkRenderWindow::SetWindowId() call, followed by a Render(). Have a look at some of the widgets that combine VTK with the various widget sets to see how this works. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From zjzhang at ee.cuhk.edu.hk Wed Jun 12 10:50:40 2002 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Wed, 12 Jun 2002 22:50:40 +0800 Subject: [vtkusers] question about vtkImageReslice speed Message-ID: <000901c21220$858da060$1223bd89@ee.cuhk.edu.hk> Dear all: I use vtkImageReslice to get the 3 orthogonal views of a 3D image. For axial, sagittal and coronal image I use 3 imagereslicer to get the image slice respectively. Then I change the image slice index interactively by adding or substracting the slice_index_x, slice_index_y and slice_index_z by 1 then use the axial->SetResliceAxesOrigin(0,0,this->slice_index_z) etc functions to refresh the new slice images. there is no problem with the image displayed, the speed for the axial and coronal slices are quite ok when I add or substract the image index by 1, but the speed for the sagittal slice is much more slower then axial and coronal slices. is there any reason for this? Here is the code segment for this. void CDeformView::Addactors() { axial=vtkImageReslice::New(); axial->SetInput(imageData); axial->SetResliceAxesOrigin(0,0,0); axial->SetOutputDimensionality(2); axial->SetOutputSpacing(1,1,voxel_size_z); axial->InterpolateOn(); axial->SetResliceAxesDirectionCosines(1, 0, 0, 0, 1, 0, 0, 0, 1); axial_mapper=vtkImageMapper::New(); axial_mapper->SetInput(axial->GetOutput()); axial_mapper->SetColorWindow(255); axial_mapper->SetColorLevel(127.5); vtkActor2D *axial_actor=vtkActor2D::New(); axial_actor->SetMapper(axial_mapper); axial_actor->SetPosition(interval,interval); this->Renderer->AddActor(axial_actor); sagittal=vtkImageReslice::New(); sagittal->SetInput(imageData); sagittal->SetOutputDimensionality(2); sagittal->InterpolateOn(); sagittal->SetResliceAxesOrigin(0,0,0); sagittal->SetOutputSpacing(1,1,voxel_size_x); sagittal->SetResliceAxesDirectionCosines(0,0,-1, 0,1,0, 1,0,0); sagittal_mapper = vtkImageMapper::New(); sagittal_mapper->SetInput(sagittal->GetOutput()); sagittal_mapper->SetColorWindow(255); sagittal_mapper->SetColorLevel(127.5); vtkActor2D *sagittal_actor=vtkActor2D::New(); sagittal_actor->SetMapper(sagittal_mapper); sagittal_actor->SetPosition(2*interval+(width-1)*voxel_size_x,interval); this->Renderer->AddActor(sagittal_actor); coronal=vtkImageReslice::New(); coronal->SetInput(imageData); coronal->SetResliceAxesOrigin(0,0,0); coronal->SetOutputDimensionality(2); coronal->InterpolateOn(); coronal->SetOutputSpacing(1,1,voxel_size_y); coronal->SetResliceAxesDirectionCosines(1,0,0, 0,0,1, 0,-1,0); coronal_mapper = vtkImageMapper::New(); coronal_mapper->SetInput(coronal->GetOutput()); coronal_mapper->SetColorWindow(255); coronal_mapper->SetColorLevel(127.5); vtkActor2D *coronal_actor=vtkActor2D::New(); coronal_actor->SetMapper(coronal_mapper); coronal_actor->SetPosition((depth-1)*voxel_size_z+(width-1)*voxel_size_x+3*interval, interval+((height-1)*voxel_size_y-(depth-1)*voxel_size_z)/2); this->Renderer->AddActor(coronal_actor); } void CDeformView::OnSliceAxialup() { this->slice_index_z++; axial->SetResliceAxesOrigin(0,0,this->slice_index_z); this->InvalidateRect(NULL,FALSE); } void CDeformView::OnSliceAxialdown() { this->slice_index_z--; axial->SetResliceAxesOrigin(0,0,this->slice_index_z); this->InvalidateRect(NULL,FALSE); } void CDeformView::OnSliceSagittalup() { this->slice_index_x++; sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); this->InvalidateRect(NULL,FALSE); } void CDeformView::OnSliceSagittaldown() { this->slice_index_x--; sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); this->InvalidateRect(NULL,FALSE); } void CDeformView::OnSliceCoronalup() { this->slice_index_y++; coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); this->InvalidateRect(NULL,FALSE); } void CDeformView::OnSliceCoronaldown() { this->slice_index_y--; coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); this->InvalidateRect(NULL,FALSE); } regards, zhang zhijun -------------- next part -------------- An HTML attachment was scrubbed... URL: From paklein at sandia.gov Wed Jun 12 12:34:37 2002 From: paklein at sandia.gov (Klein, Patrick) Date: Wed, 12 Jun 2002 10:34:37 -0600 Subject: [vtkusers] VTK on Mac OS X Message-ID: I've been using VTK on OS X since just before VTK 4.0 was released, initially using Quartz as the window manager, for a little while with Tenon's XTools, but for the majority of time using XDarwin (OroborOSX). What are your plans? Patrick > ---------- > From: Catherine Carter > Sent: Tuesday, June 11, 2002 04:19 PM > To: vtkusers at public.kitware.com > Subject: [vtkusers] VTK on Mac OS X > > Has anyone installed VTK on OS X? If so, can you tell me the procedure? > Thanks in advance!! > > _______________________________________________ > 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 bthomas at engineering.uiowa.edu Wed Jun 12 14:12:20 2002 From: bthomas at engineering.uiowa.edu (bthomas) Date: Wed, 12 Jun 2002 13:12:20 -0500 Subject: [vtkusers] origin problems Message-ID: <3CE3BC99@webmail.engineering.uiowa.edu> I am helping to develop a image rendering tool using python and vtk. I have set up the rendering window so that rotations actually rotate the objects in the scene and not the camera. Now I am trying to put in text and write a method that will allow my text to be similar to a vtkFollower object where it always faces the camera. The problem is I can't seem to change the origin of the text object so I can rotate it about its local origin instead of the world origin so I end up just getting text that doesn't move at all because it negates the original rotation. Is it only possible to have one origin for all rotations or can I have a seperate origin for each object that can be changed? This is part of my code: def FaceCamera(self, w, x, y, z): """ used for text so that it rotates back about its local axis to face the camera""" origin = self.actor.GetOrigin() self.actor.SetOrigin(self.localOrigin[0], self.localOrigin[1], self.localOrigin[2]) #rotate opposite original rotation about own origin self.actor.RotateWXYZ(-w, x, y, z) self.actor.SetOrigin(origin[0], origin[1], origin[2]) But the rotation takes place about the origin instead of the self.localOrigin. Why? Thanks for any help. Benjamin Thomas From mcameron at mail630.gsfc.nasa.gov Wed Jun 12 14:28:05 2002 From: mcameron at mail630.gsfc.nasa.gov (Marietta E. Cameron) Date: Wed, 12 Jun 2002 14:28:05 -0400 Subject: [vtkusers] VTK on Mac OS X Message-ID: Hi Patrick and Catherine, I am "attempting" to install vtk on Mac OS X using Orobor OSX. Right now I am receiving the following error messages: ============================= /usr/bin/ld: Undefined symbols: .objc_class_name_NSApplication .objc_class_name_NSAutoreleasePool _objc_msgSend _objc_msgSend_stret .objc_class_name_NSEvent _NSApp .objc_class_name_NSOpenGLPixelFormat .objc_class_name_NSOpenGLView _NSLog __NSConstantStringClassReference _objc_msgSendSuper .objc_class_name_NSTimer .objc_class_name_NSWindow make[5]: *** [/Users/marietta/FellowProject/VTK/bin/CellLocator] Error 1 make[4]: *** [default_target] Error 2 make[3]: *** [default_target_Cxx] Error 2 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Graphics_Testing] Error 2 make: *** [default_target] Error 2 ================================= Any suggestions???? --Marietta From dean.inglis at on.aibn.com Wed Jun 12 16:02:34 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 12 Jun 2002 16:02:34 -0400 Subject: [vtkusers] design suggestions Message-ID: Hi all, I am working on a voxel/pixel profiler widget that takes as input the vtkPoints from the vtkPolyData of a 3D spline widget (not available but could be...). The widget incorporates 3 vtkCardinalSplines (one for x,y,z) and spherical widget handles become the 'n' control points. The widget represents the 3D spline as vtkPolyData with 'N' vtkPoints interpolated along the splines, and a vtkCellArray for the (rendered) line segments. (For lack of a better name,) the 'vtkVoxelProfiler' takes the spline points, and a vtkImageData* as input, scans along the line and inserts unique points that map into the image data into a standard template library vector object. The vector object is then sorted and analyzed for min, max, mean, median, variance, std dev. The design issue is this: vtkVoxelProfiler inherits from vtkObject and uses STL vector to store/sort the scalar image data on a point by point basis. Any suggestions on a native vtk class that could do this faster? better? regards, Dean From mmalat at irus.rri.ca Wed Jun 12 16:43:05 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Wed, 12 Jun 2002 16:43:05 -0400 Subject: [vtkusers] polygon + spline Message-ID: <3D07B259.2E159900@irus.rri.ca> Hi all, I have 2 questions: -I have a bunch of points (in 2D) and I would like to fill the polygon (which is convex) associated with this points. I saw vtkImageCanvasSource2D, but doesn't offer the possibility to antialiased the border of the polygon. Any idea ? (I would like this process to be off screen). - Furthermore I would like to use a spline to better match my bunch of points. Thanks a lot Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From prabhu at aero.iitm.ernet.in Wed Jun 12 16:39:56 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 13 Jun 2002 02:09:56 +0530 Subject: [vtkusers] ANN: MayaVi-1.2 released Message-ID: <15623.45468.950445.451894@monster.linux.in> Hi, This is to announce the availability of the MayaVi Data Visualizer version 1.2. MayaVi is a free, easy to use, scientific data visualizer. It is written in Python and uses the Visualization Toolkit (VTK) for the graphics. It provides a GUI written using Tkinter. MayaVi is free and distributed under a BSD license. It is also cross platform and should run on any platform where both Python and VTK are available. For more information, downloadable sources and binaries, screenshots, installation instructions, documentation etc. visit the MayaVi home page at: http://mayavi.sourceforge.net Also bundled with MayaVi is a VTK pipeline browser written in Python and a new utility module that makes using VTK easier from the interpreter. New in this release: (*) Changed license from GPL/LGPL to BSD. [1] (*) Added an integrated data picker. Thanks to Jose Paulo for initial contributions. (*) Added a light control toolkit (contributed by Raymond Maple). This lets you configure 8 different lights using a GUI. (*) Added a CellData to PointData filter. (*) Fixed bad problem in the lookup table editor that would freeze MayaVi under Win32. (*) The scalar/vector range can be set to predetermined values. A visible range for data can also be specified. Anything outside this range is made transparent. (*) Added --display and --geometry command line options and a new help menu. (*) Geomview OOGL export option (thanks to Jeremy Gill). (*) RPM and Debian packages are available in addition to source and binary releases for Win32 and GNU/Linux. PDF docs are also available at the site. [1] Please don't flame me on the license change issue. I posted about it on the MayaVi-users list and gave it considerable thought. You can read the original post here: http://sourceforge.net/mailarchive/forum.php?thread_id=694778&forum_id=1824 It seemed that moving to BSD would be the best possible option. Have fun! prabhu From jreigle at concentric.net Wed Jun 12 16:53:26 2002 From: jreigle at concentric.net (Jim Reigle) Date: Wed, 12 Jun 2002 16:53:26 -0400 Subject: [vtkusers] Segmentation Faults Message-ID: <001601c21253$3600c1c0$0264a8c0@celeron> Hello Fellow VTK Users: I'm new to VTK and am working through the examples in the VTK User's Guide. I'm a C++ programmer, so I'm translating the examples in the book from Tcl to C++. The cylinder example (procedural source object 4.1) worked fine, so I know the basic setup of VTK is OK. The next example, CADPart, in which a data file is read instead of generating the data, however, crashes while running with the error: "Segmentation Fault". Using the debugger, I pinpointed the crash to the vtkSTLReader::SetFileName() call. If anyone knows the cause I would appreciate your help. Second, I inserted a vtkShrinkPolyData filter into the Cylinder example, since I could not get the CADPart example to work. The return type for vtkCylinderSource::GetOutput() matches the input type for vtkShrinkPolyData::SetInput(), so I though it would work, however I get a "Segmentation Fault" again at the vtkShrinkPolyData::SetInput() call. Any answers? Thank you. Jim Reigle -------------- next part -------------- An HTML attachment was scrubbed... URL: From brownr at ucalgary.ca Wed Jun 12 15:44:22 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Wed, 12 Jun 2002 13:44:22 -0600 Subject: [vtkusers] VTK on Mac OS X In-Reply-To: References: Message-ID: Complimenting Patrick's experience, I've been using VTK with Python and have recently switched over to an all Aqua system which works very well. What language are you interested in using? >I've been using VTK on OS X since just before VTK 4.0 was released, >initially using Quartz as the window manager, for a little while with >Tenon's XTools, but for the majority of time using XDarwin (OroborOSX). What >are your plans? > >Patrick > > >> ---------- >> From: Catherine Carter >> Sent: Tuesday, June 11, 2002 04:19 PM >> To: vtkusers at public.kitware.com >> Subject: [vtkusers] VTK on Mac OS X >> >> Has anyone installed VTK on OS X? If so, can you tell me the procedure? >> Thanks in advance!! >> >> _______________________________________________ >> 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 -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From szen16 at hotmail.com Wed Jun 12 17:29:43 2002 From: szen16 at hotmail.com (Brian Szender) Date: Wed, 12 Jun 2002 21:29:43 +0000 Subject: [vtkusers] Large Actor Rendering Message-ID: I have 33 large actors that I am trying to add to a rendering window. I am wondering if there is someway to streamline the process beyond this: vtkPolyDataMapper *airwayTreeMapper8 = vtkPolyDataMapper::New(); airwayTreeMapper8->SetInput( appendAirwayTree8->GetOutput() ); appendAirwayTree8->Delete(); ... vtkActor *airwayTreeActor8 = vtkActor::New(); airwayTreeActor8->SetMapper( airwayTreeMapper8 ); airwayTreeActor8->GetProperty()->SetColor( 1, 1, 0 ); airwayTreeMapper8->Delete(); ... actors.push_back( airwayTreeActor8 ); ... renderer->AddActor( airwayTreeActor8 ); airwayTreeActor8->Delete(); ... vtkwindow->getRenderWindow()->Render(); Thanks, Brian _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From robbel at science.uva.nl Thu Jun 13 02:08:15 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Thu, 13 Jun 2002 08:08:15 +0200 (MEST) Subject: [vtkusers] Timer Event In-Reply-To: References: Message-ID: <32802.62.108.20.46.1023948495.squirrel@webmail.science.uva.nl> Jagan, If by "asynchronous call" you mean that multiple threads access the X server, try adding a call to XInitThreads() just after the render window is created. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > Hi All, > > In my application main I have the following code. > > main() > { > CompositerServer cs = new CompositerServer(); > > cs.reader1 = new vtkTIFFReader(); > cs.reader1.SetFileName("./Test.tif"); > > vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor(); > iren.SetRenderWindow(cs.viewer.GetRenderWindow()); > . > . > . > > cs.viewer.Render(); > iren.Start(); > } > > When I set the cs.viewer.SetOutput() and call cs.viewer.Render() in an > asynchronous call I get an X-Window error. Any help? > > thanks much > -jagan From lucantiga at hotmail.com Thu Jun 13 03:25:55 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Thu, 13 Jun 2002 09:25:55 +0200 Subject: [vtkusers] question about vtkImageReslice speed Message-ID: Dear Zhang, if I'm not wrong you look for 3 orthogonal views along the axes of your image, so you don't really need to reslice your dataset. I think you should better use vtkExtractVOI, or even method CopyAndCastFrom (vtkImageData* inData, int extent[6]) in vtkImageData, if you really want to speed up things. Of course if you want to obtain a transversal slice, you will need to use vtkImageReslice. Luca >From: "zhangzhijun" >To: >Subject: [vtkusers] question about vtkImageReslice speed >Date: Wed, 12 Jun 2002 22:50:40 +0800 > > >Dear all: > I use vtkImageReslice to get the 3 orthogonal views of a 3D image. >For axial, sagittal and coronal image I use 3 >imagereslicer to get the image slice respectively. Then I change the image >slice index interactively by >adding or substracting the slice_index_x, slice_index_y and slice_index_z >by 1 then use the axial->SetResliceAxesOrigin(0,0,this->slice_index_z) etc >functions to refresh the new slice images. there is no problem with the >image displayed, the speed for the axial and coronal slices are quite ok >when I add or substract the image index by 1, but the speed for the >sagittal slice is much more slower then axial and coronal slices. is there >any reason for this? Here is the code segment for this. > >void CDeformView::Addactors() >{ > axial=vtkImageReslice::New(); > axial->SetInput(imageData); > axial->SetResliceAxesOrigin(0,0,0); > axial->SetOutputDimensionality(2); > axial->SetOutputSpacing(1,1,voxel_size_z); > axial->InterpolateOn(); > axial->SetResliceAxesDirectionCosines(1, 0, 0, > 0, 1, 0, > 0, 0, 1); > axial_mapper=vtkImageMapper::New(); > axial_mapper->SetInput(axial->GetOutput()); > axial_mapper->SetColorWindow(255); > axial_mapper->SetColorLevel(127.5); > vtkActor2D *axial_actor=vtkActor2D::New(); > axial_actor->SetMapper(axial_mapper); > axial_actor->SetPosition(interval,interval); > this->Renderer->AddActor(axial_actor); > > sagittal=vtkImageReslice::New(); > sagittal->SetInput(imageData); > sagittal->SetOutputDimensionality(2); > sagittal->InterpolateOn(); > sagittal->SetResliceAxesOrigin(0,0,0); > sagittal->SetOutputSpacing(1,1,voxel_size_x); > sagittal->SetResliceAxesDirectionCosines(0,0,-1, > 0,1,0, > 1,0,0); > sagittal_mapper = vtkImageMapper::New(); > sagittal_mapper->SetInput(sagittal->GetOutput()); > sagittal_mapper->SetColorWindow(255); > sagittal_mapper->SetColorLevel(127.5); > vtkActor2D *sagittal_actor=vtkActor2D::New(); > sagittal_actor->SetMapper(sagittal_mapper); > sagittal_actor->SetPosition(2*interval+(width-1)*voxel_size_x,interval); > this->Renderer->AddActor(sagittal_actor); > > > coronal=vtkImageReslice::New(); > coronal->SetInput(imageData); > coronal->SetResliceAxesOrigin(0,0,0); > coronal->SetOutputDimensionality(2); > coronal->InterpolateOn(); > coronal->SetOutputSpacing(1,1,voxel_size_y); > coronal->SetResliceAxesDirectionCosines(1,0,0, > 0,0,1, > 0,-1,0); > coronal_mapper = vtkImageMapper::New(); > coronal_mapper->SetInput(coronal->GetOutput()); > coronal_mapper->SetColorWindow(255); > coronal_mapper->SetColorLevel(127.5); > vtkActor2D *coronal_actor=vtkActor2D::New(); > coronal_actor->SetMapper(coronal_mapper); > >coronal_actor->SetPosition((depth-1)*voxel_size_z+(width-1)*voxel_size_x+3*interval, > >interval+((height-1)*voxel_size_y-(depth-1)*voxel_size_z)/2); > this->Renderer->AddActor(coronal_actor); >} > >void CDeformView::OnSliceAxialup() >{ > this->slice_index_z++; > axial->SetResliceAxesOrigin(0,0,this->slice_index_z); > this->InvalidateRect(NULL,FALSE); >} > >void CDeformView::OnSliceAxialdown() >{ > this->slice_index_z--; > axial->SetResliceAxesOrigin(0,0,this->slice_index_z); > this->InvalidateRect(NULL,FALSE); > >} > >void CDeformView::OnSliceSagittalup() >{ > this->slice_index_x++; > sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); > this->InvalidateRect(NULL,FALSE); >} > >void CDeformView::OnSliceSagittaldown() >{ > this->slice_index_x--; > sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); > this->InvalidateRect(NULL,FALSE); >} > >void CDeformView::OnSliceCoronalup() >{ > this->slice_index_y++; > coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); > this->InvalidateRect(NULL,FALSE); >} > >void CDeformView::OnSliceCoronaldown() >{ > this->slice_index_y--; > coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); > this->InvalidateRect(NULL,FALSE); >} > > >regards, >zhang zhijun _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From G.R.Tabor at exeter.ac.uk Thu Jun 13 07:08:31 2002 From: G.R.Tabor at exeter.ac.uk (Gavin Tabor) Date: Thu, 13 Jun 2002 12:08:31 +0100 Subject: [vtkusers] Problems compiling pt 2 Message-ID: <3D087D2F.10804@exeter.ac.uk> My thanks to those who responded earlier : I think the CXX and CC flags were incorrectly set. I've got a bit further this time : in fact compilation occurred as far as doing something with the ObjectFactory, at which point I get the following error messages /usr/local/bin/gcc -g -O2 -I/space/VTK/Common/Testing/Cxx -I/space/VTK/Rendering -I/space/VTK -I/space/VTK/Common -I/space/VTK/Filtering -I/space/VTK/Imaging -I/space/VTK/Graphics -I/space/VTK/IO -I/space/VTK/Utilities/zlib -I/space/VTK/Utilities/png -I/space/VTK/Utilities/jpeg -I/space/VTK/Common/Testing/Cxx -c /space/VTK/Common/Testing/Cxx/ObjectFactory.cxx -o ObjectFactory.o /usr/local/bin/gcc -g -O2 ObjectFactory.o -L/space/VTK/bin/ -lpthread -ldl -lm -lvtkCommon -lvtkCommon -lpthread -ldl -lm -lvtkCommon -lvtkCommon -Wl,-R,/space/VTK/bin/ -o /space/VTK/bin/ObjectFactory Undefined first referenced symbol in file strstreambase::ios virtual table ObjectFactory.o cout ObjectFactory.o ostream::write(char const *, int) /space/VTK/bin//libvtkCommon.so strstreambuf::init_dynamic(void *(*)(unsigned int), void (*)(void *), int)ObjectFactory.o streambuf::streambuf(int) ObjectFactory.o ostrstream::~ostrstream(void) ObjectFactory.o ofstream::ios virtual table /space/VTK/bin//libvtkCommon.so endl(ostream &) ObjectFactory.o ostream::ios virtual table ObjectFactory.o istream::operator>>(char &) /space/VTK/bin//libvtkCommon.so strstreambuf::str(void) ObjectFactory.o cerr /space/VTK/bin//libvtkCommon.so ostream::operator<<(void const *) /space/VTK/bin//libvtkCommon.so ostream::operator<<(char const *) ObjectFactory.o ends(ostream &) ObjectFactory.o ostrstream::ios virtual table ObjectFactory.o which continues for a while. I'm guessing that some important library/header file has not been included, but I'm rather a klutz at this, so I can't work out what to do. Any suggestions gratefully recieved, and as before, my thanks for any help. Gavin -- Dr. Gavin Tabor School of Engineering and Computer Science Department of Engineering University of Exeter From lehrig at t-online.de Thu Jun 13 07:39:25 2002 From: lehrig at t-online.de (Rainer Lehrig) Date: Thu, 13 Jun 2002 13:39:25 +0200 Subject: [vtkusers] Two issues (wish for modification, Tcl problem on Windows) Message-ID: <200206131339.25778.lehrig@t-online.de> Two issues (1) Please add a VTKTCL_EXPORT to vtkTclCommand class class VTKTCL_EXPORT vtkTclCommand : public vtkCommand so that it is exported from the DLL in future versions of vtk (2) I have a project on http://pvbrowser.sourceforge.net (Process Visualisation) VTK is beeing integrated in my browser now. It already works on Linux. But on Windows I have a problem in starting Tcl See this code: interp = Tcl_CreateInterp(); // returns valid address if (Tcl_Init(interp) == TCL_ERROR) { return TCL_ERROR; // here I get an error } What must I do to get this running on Windows ? My Version: vtk 4.0 from CD of Book User's Guide tcl8.3 from this CD WindowsXP VC++ 6.0 Yours: Rainer Lehrig From poete66 at caramail.com Thu Jun 13 14:25:38 2002 From: poete66 at caramail.com (Régis BLANCHON) Date: Thu, 13 Jun 2002 14:25:38 GMT+1 Subject: [vtkusers] Examples of vtk files Message-ID: <1023971138010071@caramail.com> Hi, Do anyone have some vtk files (unstructuredgrid type if possible), because I would like to show some examples of visualisation in a vtk presentation. I already have those which are on the Kitware CD. Thanks in advance, R?gis BLANCHON ______________________________________________________ Bo?te aux lettres - Caramail - http://www.caramail.com From jeff at cdnorthamerica.com Thu Jun 13 08:34:45 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 13 Jun 2002 08:34:45 -0400 Subject: [vtkusers] Timer Event References: <32802.62.108.20.46.1023948495.squirrel@webmail.science.uva.nl> Message-ID: <3D089165.3080605@cdnorthamerica.com> Hi, This looks like java, and there is no way to call XInitThreads() from there. You should be using vtkPanel and its Render method instead of calling Render directly on a RenderWindow. -Jeff Robert Belleman wrote: >Jagan, > >If by "asynchronous call" you mean that multiple threads access the >X server, try adding a call to XInitThreads() just after the render >window is created. > >-- Rob > > > From dgobbi at irus.rri.ca Thu Jun 13 09:36:55 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 13 Jun 2002 09:36:55 -0400 (EDT) Subject: [vtkusers] question about vtkImageReslice speed In-Reply-To: Message-ID: Hi Luca, Zhang, The speed problem with the sagittal slice has to do with how the data is cached in memory. Using vtkExtractVOI will not improve the speed, in fact it might make things worse because you might have to use vtkImagePermute to re-orient the slice image before you can display it. To speed things up, do this: reslice->GetInput()->SetUpdateExtentToWholeExtent(); reslice->GetInput()->Update(); This will cache the entire image inside the input to vtkImageReslice. You will notice a huge increase in speed. Cheers, - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 13 Jun 2002, Luca Antiga wrote: > Dear Zhang, > if I'm not wrong you look for 3 orthogonal views along the axes of your > image, so you don't really need to reslice your dataset. I think you should > better use vtkExtractVOI, or even method CopyAndCastFrom (vtkImageData* > inData, int extent[6]) in vtkImageData, if you really want to speed up > things. Of course if you want to obtain a transversal slice, you will need > to use vtkImageReslice. > > Luca > > >From: "zhangzhijun" > >To: > >Subject: [vtkusers] question about vtkImageReslice speed > >Date: Wed, 12 Jun 2002 22:50:40 +0800 > > > > > >Dear all: > > I use vtkImageReslice to get the 3 orthogonal views of a 3D image. > >For axial, sagittal and coronal image I use 3 > >imagereslicer to get the image slice respectively. Then I change the image > >slice index interactively by > >adding or substracting the slice_index_x, slice_index_y and slice_index_z > >by 1 then use the axial->SetResliceAxesOrigin(0,0,this->slice_index_z) etc > >functions to refresh the new slice images. there is no problem with the > >image displayed, the speed for the axial and coronal slices are quite ok > >when I add or substract the image index by 1, but the speed for the > >sagittal slice is much more slower then axial and coronal slices. is there > >any reason for this? Here is the code segment for this. > > > >void CDeformView::Addactors() > >{ > > axial=vtkImageReslice::New(); > > axial->SetInput(imageData); > > axial->SetResliceAxesOrigin(0,0,0); > > axial->SetOutputDimensionality(2); > > axial->SetOutputSpacing(1,1,voxel_size_z); > > axial->InterpolateOn(); > > axial->SetResliceAxesDirectionCosines(1, 0, 0, > > 0, 1, 0, > > 0, 0, 1); > > axial_mapper=vtkImageMapper::New(); > > axial_mapper->SetInput(axial->GetOutput()); > > axial_mapper->SetColorWindow(255); > > axial_mapper->SetColorLevel(127.5); > > vtkActor2D *axial_actor=vtkActor2D::New(); > > axial_actor->SetMapper(axial_mapper); > > axial_actor->SetPosition(interval,interval); > > this->Renderer->AddActor(axial_actor); > > > > sagittal=vtkImageReslice::New(); > > sagittal->SetInput(imageData); > > sagittal->SetOutputDimensionality(2); > > sagittal->InterpolateOn(); > > sagittal->SetResliceAxesOrigin(0,0,0); > > sagittal->SetOutputSpacing(1,1,voxel_size_x); > > sagittal->SetResliceAxesDirectionCosines(0,0,-1, > > 0,1,0, > > 1,0,0); > > sagittal_mapper = vtkImageMapper::New(); > > sagittal_mapper->SetInput(sagittal->GetOutput()); > > sagittal_mapper->SetColorWindow(255); > > sagittal_mapper->SetColorLevel(127.5); > > vtkActor2D *sagittal_actor=vtkActor2D::New(); > > sagittal_actor->SetMapper(sagittal_mapper); > > sagittal_actor->SetPosition(2*interval+(width-1)*voxel_size_x,interval); > > this->Renderer->AddActor(sagittal_actor); > > > > > > coronal=vtkImageReslice::New(); > > coronal->SetInput(imageData); > > coronal->SetResliceAxesOrigin(0,0,0); > > coronal->SetOutputDimensionality(2); > > coronal->InterpolateOn(); > > coronal->SetOutputSpacing(1,1,voxel_size_y); > > coronal->SetResliceAxesDirectionCosines(1,0,0, > > 0,0,1, > > 0,-1,0); > > coronal_mapper = vtkImageMapper::New(); > > coronal_mapper->SetInput(coronal->GetOutput()); > > coronal_mapper->SetColorWindow(255); > > coronal_mapper->SetColorLevel(127.5); > > vtkActor2D *coronal_actor=vtkActor2D::New(); > > coronal_actor->SetMapper(coronal_mapper); > > > >coronal_actor->SetPosition((depth-1)*voxel_size_z+(width-1)*voxel_size_x+3*interval, > > > >interval+((height-1)*voxel_size_y-(depth-1)*voxel_size_z)/2); > > this->Renderer->AddActor(coronal_actor); > >} > > > >void CDeformView::OnSliceAxialup() > >{ > > this->slice_index_z++; > > axial->SetResliceAxesOrigin(0,0,this->slice_index_z); > > this->InvalidateRect(NULL,FALSE); > >} > > > >void CDeformView::OnSliceAxialdown() > >{ > > this->slice_index_z--; > > axial->SetResliceAxesOrigin(0,0,this->slice_index_z); > > this->InvalidateRect(NULL,FALSE); > > > >} > > > >void CDeformView::OnSliceSagittalup() > >{ > > this->slice_index_x++; > > sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); > > this->InvalidateRect(NULL,FALSE); > >} > > > >void CDeformView::OnSliceSagittaldown() > >{ > > this->slice_index_x--; > > sagittal->SetResliceAxesOrigin(this->slice_index_x,0,0); > > this->InvalidateRect(NULL,FALSE); > >} > > > >void CDeformView::OnSliceCoronalup() > >{ > > this->slice_index_y++; > > coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); > > this->InvalidateRect(NULL,FALSE); > >} > > > >void CDeformView::OnSliceCoronaldown() > >{ > > this->slice_index_y--; > > coronal->SetResliceAxesOrigin(0,this->slice_index_y,0); > > this->InvalidateRect(NULL,FALSE); > >} > > > > > >regards, > >zhang zhijun > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > 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 bthomas at engineering.uiowa.edu Thu Jun 13 10:27:36 2002 From: bthomas at engineering.uiowa.edu (bthomas) Date: Thu, 13 Jun 2002 09:27:36 -0500 Subject: [vtkusers] Position/Center/Origin Message-ID: <3CE40208@webmail.engineering.uiowa.edu> I was just wondering how a prop3D's postion and origin are defined. When I call actor.GetPosition() it always returns (0, 0, 0) even thought GetCenter() returns some non-zero coordinates. What is the difference between GetCenter() and GetPosition(). Are position and origin somehow related? I am confused. Thanks for the help. Benjamin Thomas From jeff at cdnorthamerica.com Thu Jun 13 11:38:18 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 13 Jun 2002 11:38:18 -0400 Subject: [vtkusers] How to generate TimerEvents References: Message-ID: <3D08BC6A.1070508@cdnorthamerica.com> What are these timer events doing? Are you using vtkGenericInteractor to do this? -Jeff Jagan Lakshmipathy wrote: >hi All, > >In my application I have need to fire timer events (I need to be able to >tweak the resolution of the event generation) from the main event loop. > >I used the OnTimer() callback in the vtkInteractorStyeUser. But >unfortunately this generates events >only when the mouse bottons are pressed. I want the events irrespective of >the mouse events. > >Any help will be appreciated. Thanks in advance. > >-jagan >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From jeff at cdnorthamerica.com Thu Jun 13 12:20:24 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 13 Jun 2002 12:20:24 -0400 Subject: [vtkusers] How to generate TimerEvents References: Message-ID: <3D08C648.20900@cdnorthamerica.com> I am working on spiffing up vtkPanel with vtkGenericInteractor capability - it allows you to use any vtkInteractorStyle and 3d widgets as well. It also contains protection from java's multithreading which is what you are experiencing now. I'll notify when it is ready. Basically, you can't call vtkRenderWindowInteractor.Render() arbitrarily like that in java - it must be wrapped with appropriate mutex locks to avoid the asynchronous errors in X. -Jeff Jagan Lakshmipathy wrote: >Those Timer events will call vtkRenderWindowInteractor.Render(). That is >pretty much what they do. >I am using VTK4.0, there isn't a class called vtkGenericWindowInteractor. So >I am stuck with vtkRenderWindowInteractor/vtkXRenderWindowInteractor. > >Any thoughts? > >thanks for the response. > >-jagan >-----Original Message----- >From: Jeff Lee [mailto:jeff at cdnorthamerica.com] >Sent: Thursday, June 13, 2002 10:38 AM >To: Jagan Lakshmipathy >Cc: vtkusers at public.kitware.com >Subject: Re: [vtkusers] How to generate TimerEvents > > >What are these timer events doing? Are you using vtkGenericInteractor >to do this? >-Jeff > >Jagan Lakshmipathy wrote: > > > >>hi All, >> >>In my application I have need to fire timer events (I need to be able to >>tweak the resolution of the event generation) from the main event loop. >> >>I used the OnTimer() callback in the vtkInteractorStyeUser. But >>unfortunately this generates events >>only when the mouse bottons are pressed. I want the events irrespective of >>the mouse events. >> >>Any help will be appreciated. Thanks in advance. >> >>-jagan >>_______________________________________________ >>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 >> >> >> >> >> >> > >-- >Jeff Lee >Software Engineer >CD North America >21 Lafayette Street, Suite 230 >Lebanon, NH 03766 >Tel: (603) 643-9993 ext. 109 >Fax: (603) 643-9994 > > > > >_______________________________________________ >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 > > > > -- Jeff Lee Software Engineer CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From mnorton at cisco.com Thu Jun 13 12:57:06 2002 From: mnorton at cisco.com (Michael Norton) Date: Thu, 13 Jun 2002 09:57:06 -0700 Subject: [vtkusers] expcos.cxx and expcos.tcl runtime differences Message-ID: <4.3.2.7.2.20020613095444.03883eb0@mira-sjcm-2.cisco.com> hi, I noticed on my Mac OS X install that the runtime of expcos.cxx and expcos.tcl differ in the way the bessel function is initially displayed. The source in cxx looks pretty straight forward with the tcl. The question I guess is, how do I change the camera angle from an overhead view of the function to one say off from the side? How do I change the camera angle? thanks. Mike N. From king at stud.uni-hannover.de Thu Jun 13 13:13:53 2002 From: king at stud.uni-hannover.de (Benjamin King) Date: Thu, 13 Jun 2002 19:13:53 +0200 Subject: [vtkusers] Clipping plane transformation Message-ID: <20020613191353.A1343@benni.superwg.de> Hi! The follwing code demonstrates a problem I had with clipping planes: ---- package require vtk vtkTkRenderWidget .rw pack .rw -expand yes -fill both vtkRenderer renderer [.rw GetRenderWindow] AddRenderer renderer vtkPlane plane vtkTransform transform plane SetTransform transform vtkSampleFunction sample sample SetImplicitFunction plane sample SetSampleDimensions 2 2 2 vtkContourFilter contour contour SetInput [sample GetOutput] contour SetValue 0 0.0 vtkPolyDataMapper planemapper planemapper SetInput [contour GetOutput] vtkActor planeactor planeactor SetMapper planemapper vtkCubeSource cube vtkPolyDataMapper cubemapper cubemapper SetInput [cube GetOutput] cubemapper AddClippingPlane plane vtkActor cubeactor cubeactor SetMapper cubemapper renderer AddActor planeactor renderer AddActor cubeactor [renderer GetActiveCamera] Azimuth 127 update while 1 { transform RotateX 1 ## even uncommenting the following two lines doesn't help #cubemapper RemoveAllClippingPlanes #cubemapper AddClippingPlane plane .rw Render } ---- The clipping plane isn't transformed like the version that is mapped with planemapper. Is this a bug? Using the plane's SetNormal method is a workaround for this. cu, Benni -- [ X ] nail here for new monitor From bayley at me.queensu.ca Thu Jun 13 13:29:46 2002 From: bayley at me.queensu.ca (Christopher Bayley) Date: Thu, 13 Jun 2002 13:29:46 -0400 Subject: [vtkusers] Accessing Cutter Point Values Message-ID: <3D08D68A.1D1A3DF2@me.queensu.ca> Hello all VTK Users; I am having alot of difficulty trying to get the numeric values of points within vtkpolydata and in particular vtkcutter. In my application I am cutting a simple 3D surface with a plane which results in a line. I am able to view the line, but can't figure out how to get the data values for each of the points along that line. Could someone show me how to access the xyz coordinate information of the line I have created using vtkcutter. Your help is much appreciated Thanks Chris Bayley PhD Candidate Mechanical Engineering Queens University Kingston Ont Canada From prabhu at aero.iitm.ernet.in Thu Jun 13 13:58:49 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 13 Jun 2002 23:28:49 +0530 Subject: [vtkusers] Accessing Cutter Point Values In-Reply-To: <3D08D68A.1D1A3DF2@me.queensu.ca> References: <3D08D68A.1D1A3DF2@me.queensu.ca> Message-ID: <15624.56665.271220.620988@monster.linux.in> >>>>> "CB" == Christopher Bayley writes: CB> Hello all VTK Users; I am having alot of difficulty trying to CB> get the numeric values of points within vtkpolydata and in CB> particular vtkcutter. In my application I am cutting a simple CB> 3D surface with a plane which results in a line. I am able to CB> view the line, but can't figure out how to get the data values CB> for each of the points along that line. CB> Could someone show me how to access the xyz coordinate CB> information of the line I have created using vtkcutter. Couldnt you do something like this? cutter = vtkCutter() # or whatever. # ... setup pipeline ... o = cutter.GetOutput() p = o.GetPoints() pd = o.GetPointData() s = pd.GetScalars() for i in range(s.GetNumberOfTuples()): print p.GetValue(i), s.GetValue(i) prabhu From prabhu at aero.iitm.ernet.in Thu Jun 13 14:03:45 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 13 Jun 2002 23:33:45 +0530 Subject: [vtkusers] expcos.cxx and expcos.tcl runtime differences In-Reply-To: <4.3.2.7.2.20020613095444.03883eb0@mira-sjcm-2.cisco.com> References: <4.3.2.7.2.20020613095444.03883eb0@mira-sjcm-2.cisco.com> Message-ID: <15624.56961.542401.681498@monster.linux.in> >>>>> "MN" == Michael Norton writes: MN> hi, I noticed on my Mac OS X install that the runtime of MN> expcos.cxx and expcos.tcl differ in the way the bessel MN> function is initially displayed. The source in cxx looks MN> pretty straight forward with the tcl. MN> The question I guess is, how do I change the camera angle from MN> an overhead view of the function to one say off from the side? MN> How do I change the camera angle? Well, look at Graphics/Testing/Cxx/expCos.cxx The lines like: ren->GetActiveCamera()->Zoom(1.4); ren->GetActiveCamera()->Elevation(-55); ren->GetActiveCamera()->Azimuth(25); ren->ResetCameraClippingRange(); change the orientation. Read the vtkCamera docs and try different parameters to get what you want. prabhu From s9653742 at sms.ed.ac.uk Thu Jun 13 17:14:04 2002 From: s9653742 at sms.ed.ac.uk (Bruce Lamond) Date: Thu, 13 Jun 2002 22:14:04 +0100 Subject: [vtkusers] RenderWindow GetPixelData Message-ID: <3D090B1C.EDA21771@sms.ed.ac.uk> Hi there, Just wondering if anyone knows how to probe the colour value of a pixel in a render window? I presume it has something to do with the 'GetPixelData' function, but I don't seem to be able to get any values back from this. I would appreciate a quick description of how to use this function. cheers, Bruce Lamond From david_pont at hotmail.com Thu Jun 13 19:29:08 2002 From: david_pont at hotmail.com (David Pont) Date: Fri, 14 Jun 2002 11:29:08 +1200 Subject: [vtkusers] Arc Sphere Message-ID: An HTML attachment was scrubbed... URL: From mm6 at gte.net Thu Jun 13 19:36:44 2002 From: mm6 at gte.net (Jerry Pulley) Date: Thu, 13 Jun 2002 19:36:44 -0400 Subject: [vtkusers] Spherec Dev Message-ID: <001a01c21333$2ed70ae0$57aac843@pavilion> Hello All, I am working on a sphere and I want to render a smaller sphere inside a large sphere, and add actors and properties to the smaller sphere after planning a set distance into the larger sphere. Thanks in advance for your input. Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: From tatsumi at nfi.co.jp Thu Jun 13 20:39:01 2002 From: tatsumi at nfi.co.jp (=?ISO-2022-JP?B?Ik1hc2FoaXJvIFRBVFNVTUkgKBskQkMnGyhCICA=?= =?ISO-2022-JP?B?GyRCMm1NThsoQiki?=) Date: Fri, 14 Jun 2002 09:39:01 +0900 Subject: [vtkusers] Linking problem on Cygwin Message-ID: <20020614092812.10F6.TATSUMI@nfi.co.jp> Hi, I'm trying to compile the CVS version of vtk on the latest cygwin (1.3.10) to obtain a executable for Python (i.e. vtkpython). When linking libvtkImaging.dll, I got huge numbers of "undefined reference" error to vtkImageIterator::NextSpan(void) and vtkImageProgressIterator::NextSpan(void). It seems that vtkImageIterator.o and vtkImageProgressIterator.o is in libvtkCommon.dll.a with some text codes for NextSpan(void) and it would be linked to generate libvtkImaging.dll. Thus it looks very strange and is ununderstandable for me. Does anyone know this problem? P.S. On linux, I could build vtypython without any problem. --- Masahiro TATSUMI, Ph.D. // Parallel, it works! Fuel Engineering and Develpment Dpt., Nuclear Fuel Industries, Ltd. 950 Ohaza Noda, Kumatori-cho, Sennan-gun, Osaka 590-0481 JAPAN Tel.: +81-724-52-8111 Fax: +81-724-52-8117 From paklein at sandia.gov Fri Jun 14 02:20:20 2002 From: paklein at sandia.gov (Klein, Patrick) Date: Fri, 14 Jun 2002 00:20:20 -0600 Subject: [vtkusers] VTK on Mac OS X Message-ID: Marietta, Try adding -framework AppKit to the link instructions for CellLocator in the makefile $(your VTK home)/Graphics/Testing/Cxx/Makefile It looks like you're building for the Quartz window manager. If this is true, be sure you "hide" any X11 installation from cmake while it's generating the makefile's. Headers and libraries with the same names exist in /System/Library/Frameworks/OpenGL.framework and /usr/X11R6 that gave me trouble if mixed by cmake. Good luck, Patrick -----Original Message----- From: Marietta E. Cameron To: vtkusers at public.kitware.com Sent: 6/12/2002 12:28 PM Subject: RE: [vtkusers] VTK on Mac OS X Hi Patrick and Catherine, I am "attempting" to install vtk on Mac OS X using Orobor OSX. Right now I am receiving the following error messages: ============================= /usr/bin/ld: Undefined symbols: .objc_class_name_NSApplication .objc_class_name_NSAutoreleasePool _objc_msgSend _objc_msgSend_stret .objc_class_name_NSEvent _NSApp .objc_class_name_NSOpenGLPixelFormat .objc_class_name_NSOpenGLView _NSLog __NSConstantStringClassReference _objc_msgSendSuper .objc_class_name_NSTimer .objc_class_name_NSWindow make[5]: *** [/Users/marietta/FellowProject/VTK/bin/CellLocator] Error 1 make[4]: *** [default_target] Error 2 make[3]: *** [default_target_Cxx] Error 2 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Graphics_Testing] Error 2 make: *** [default_target] Error 2 ================================= Any suggestions???? --Marietta _______________________________________________ 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 at le.isac.cnr.it Fri Jun 14 04:07:52 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Fri, 14 Jun 2002 10:07:52 +0200 Subject: [vtkusers] AXES Message-ID: <200206140807.g5E87qd14595@nemesi.le.isac.cnr.it> Hi... I work with the vtk 4, tcl/tk on workstation linux. I have inserted the axes. I would want to visualize the arrows to the end of the axes and to insert also the written ones (x, y, z)! Can i do to visualize the aces all of the same color?? Thanks!!! MINO! ************************************************* vtkAxes assi assi SetOrigin -5 -5 -5 vtkTubeFilter assiTube assiTube SetInput [assi GetOutput] assiTube SetNumberOfSides 2 vtkPolyDataMapper assiMapper assiMapper SetInput [assiTube GetOutput] vtkActor assiActor assiActor SetMapper assiMapper [assiActor GetProperty] SetColor 0 0 0 assiActor SetPosition 0 0 0 assi SetScaleFactor 30 ********************************************************* From boyd at biomed.ee.ethz.ch Fri Jun 14 05:57:09 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Fri, 14 Jun 2002 11:57:09 +0200 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake Message-ID: <3D09BDF5.C2C59736@biomed.ee.ethz.ch> Hi, I get a compile error during the java wrapping portion of my build due to the inclusion of a file called "1" (and in some other cases "0"). See the snippet from the compilation below. Where is the "1" or "0" coming from? Is it something I'm not setting in cmake? I am running on Solaris 5.8, vtk nightly release (June 12, 2002), with cmake v1.2. I also tried running with cmake 1.4, but get the same error. Thanks for any help. Steve ps. Has anybody ever compiled under solaris 5.8 with 64 bits? Is it just a matter of adding -m64 on the g++ compiler? Compile report: ...snip... > /home/boyd/pack/vtk/./vtkParseJava /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java > Parsed func New > Parsed func GetEdgePoints > Parsed func GetFacePoints > Parsed func MakeObject > Parsed func GetCellType > Parsed func GetCellDimension > Parsed func GetNumberOfEdges > Parsed func GetNumberOfFaces > Parsed func GetEdge > Parsed func GetFace > Parsed func CellBoundary > Parsed func Contour > Parsed func EvaluatePosition > Parsed func EvaluateLocation > Parsed func IntersectWithLine > Parsed func Triangulate > Parsed func Derivatives > Parsed func GetParametricCenter > Parsed func InterpolationFunctions > Parsed func InterpolationDerivs > Parsed func JacobianInverse > Parsed func GetEdgeArray > Parsed func GetFaceArray > Parsed func vtkWedge > Parsed func vtkWedge > Parsed func vtkWedge > Converted operator > Error opening output file 1 > *** Error code 1 > The following command caused the error: > /home/boyd/pack/vtk/./vtkParseJava /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java ...snip... -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From amati at ira.cnr.it Fri Jun 14 06:33:04 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Fri, 14 Jun 2002 12:33:04 +0200 (CEST) Subject: [vtkusers] Sphere & Isolines Message-ID: Hello everybody, I have a vtkSphereSource visualized as points. I would connect that points with isolines just like a geographics map with parallels and meridians lines. Any suggestions? thank a lot giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From j.robinson at kepler.ie Fri Jun 14 08:04:16 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Fri, 14 Jun 2002 13:04:16 +0100 Subject: [vtkusers] Problems running application Message-ID: Dear All, I have written an application that uses VTK. It is a MS MFC C++ application. It runs perfectly on my PC, but crashes when run on another. I have installed VTK on my PC, but not on the other. What files (dlls etc) are necessary to run a VTK application on any PC? Thanks in advance, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From dellinge at cimrs1.mnhn.fr Fri Jun 14 08:37:21 2002 From: dellinge at cimrs1.mnhn.fr (Marc Dellinger) Date: Fri, 14 Jun 2002 14:37:21 +0200 Subject: [vtkusers] vtk for Mayavi on MacOSX? Message-ID: <785BB244-7F93-11D6-B67A-0003930E18B6@mnhn.fr> Hi vtkusers, Anyone has compiled vtk with Python & Tcl/Tk on MacOSX (Quartz or XDarwin) , so that it can work with Mayavi? I would like to know what Python, Tcl/Tk and CMake.list you used. Thanks in advance, Marc Dellinger From alexandre.gouaillard at insa-lyon.fr Fri Jun 14 08:38:33 2002 From: alexandre.gouaillard at insa-lyon.fr (alexandre gouaillard) Date: Fri, 14 Jun 2002 14:38:33 +0200 Subject: [vtkusers] Raycast Message-ID: <005b01c213a0$653f0840$b8a4d686@piwi> hi everyone I have an origin point, a direction (vector), and I 'd like to find the first intersection with a given mesh (polydata). I tried to take a look at raycasting method in vtk , but they all deal with volume rendering issues. Is there anything allready written in VTK to do this , or any class/method which could give me a hint on how to do this ? thanks in advance. alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Fri Jun 14 08:43:33 2002 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 14 Jun 2002 08:43:33 -0400 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake In-Reply-To: <3D09BDF5.C2C59736@biomed.ee.ethz.ch> Message-ID: I believe that for some reason your build is using an old version of vtkParseJava to try wrapping into java. Maybe you have an old version of that executable in your path etc Ken > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Steve Boyd > Sent: Friday, June 14, 2002 5:57 AM > To: vtk > Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake > > > Hi, > > I get a compile error during the java wrapping portion of > my build due > to the inclusion of a file called "1" (and in some other > cases "0"). > See the snippet from the compilation below. > > Where is the "1" or "0" coming from? Is it something I'm > not setting in > cmake? > > I am running on Solaris 5.8, vtk nightly release (June 12, > 2002), with > cmake v1.2. I also tried running with cmake 1.4, but get the same > error. > > Thanks for any help. > > Steve > > ps. Has anybody ever compiled under solaris 5.8 with 64 bits? Is it > just a matter of adding -m64 on the g++ compiler? > > Compile report: > ...snip... > > /home/boyd/pack/vtk/./vtkParseJava > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java > > Parsed func New > > Parsed func GetEdgePoints > > Parsed func GetFacePoints > > Parsed func MakeObject > > Parsed func GetCellType > > Parsed func GetCellDimension > > Parsed func GetNumberOfEdges > > Parsed func GetNumberOfFaces > > Parsed func GetEdge > > Parsed func GetFace > > Parsed func CellBoundary > > Parsed func Contour > > Parsed func EvaluatePosition > > Parsed func EvaluateLocation > > Parsed func IntersectWithLine > > Parsed func Triangulate > > Parsed func Derivatives > > Parsed func GetParametricCenter > > Parsed func InterpolationFunctions > > Parsed func InterpolationDerivs > > Parsed func JacobianInverse > > Parsed func GetEdgeArray > > Parsed func GetFaceArray > > Parsed func vtkWedge > > Parsed func vtkWedge > > Parsed func vtkWedge > > Converted operator > > Error opening output file 1 > > *** Error code 1 > > The following command caused the error: > > /home/boyd/pack/vtk/./vtkParseJava > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java > ...snip... > > > > > > -- > Steven Boyd, PhD > > Institute for Biomedical Engineering > ETH and University Zuerich > Moussonstrasse 18 > 8044 Zuerich, Switzerland > > tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch > ------------------------------------------------------------------- > _______________________________________________ > 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 maraux at ondim.fr Fri Jun 14 09:11:09 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Fri, 14 Jun 2002 15:11:09 +0200 Subject: [vtkusers] Raycast References: <005b01c213a0$653f0840$b8a4d686@piwi> Message-ID: <002301c213a4$f46047b0$c000a8c0@ouessant> Yes there is : try to read about cell locator, and point locator here is a snippet : //------------------------------------------------------------------------------------------------------ // here i got a xyz surface, y=height. I want to find height at a specified point of yourpolydata vtkCellLocator *cellLocator = vtkCellLocator::New(); cellLocator->SetDataSet(yourpolydata); cellLocator->CacheCellBoundsOn(); cellLocator->SetTolerance(0.0); cellLocator->AutomaticOn(); cellLocator->BuildLocator(); float myPoint[3]={yourx,whatever, yourz}; float a0[3], a1[3], x[3], pcoords[3]; // from a0 a0[0]=myPoint[0]; a0[1]=-10000; a0[2]=myPoint[2]; // to a1 a1[0]=myPoint[0]; a1[1]=10000; a1[2]=myPoint[2]; // ray cast cellLocator->IntersectWithLine(a0,a1,0.0,t,x,pcoords,subId); //get new altitude for this point myPoint[1]=x[1]; //----------------------------------------------------------------------------------------------------------------------------------------- ----- Original Message ----- From: alexandre gouaillard To: vtkusers at public.kitware.com Sent: Friday, June 14, 2002 2:38 PM Subject: [vtkusers] Raycast hi everyone I have an origin point, a direction (vector), and I 'd like to find the first intersection with a given mesh (polydata). I tried to take a look at raycasting method in vtk , but they all deal with volume rendering issues. Is there anything allready written in VTK to do this , or any class/method which could give me a hint on how to do this ? thanks in advance. alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From boyd at biomed.ee.ethz.ch Fri Jun 14 09:20:14 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Fri, 14 Jun 2002 15:20:14 +0200 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake References: Message-ID: <3D09ED8D.9B1380E3@biomed.ee.ethz.ch> Hi, It doesn't seem to be a problem with vtkParseJava. It is built prior to the wrapping process. I've put clipped versions of my compile log and the CMakeCache at the links below if that helps. http://www.biomed.ee.ethz.ch/~boyd/info/Compilation-cmake1.2.txt http://www.biomed.ee.ethz.ch/~boyd/info/CMakeCache.txt Cheers, Steve Ken Martin wrote: > > I believe that for some reason your build is using an old version of > vtkParseJava to try wrapping into java. Maybe you have an old version > of that executable in your path etc > > Ken > > > -----Original Message----- > > From: vtkusers-admin at public.kitware.com > > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Steve Boyd > > Sent: Friday, June 14, 2002 5:57 AM > > To: vtk > > Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake > > > > > > Hi, > > > > I get a compile error during the java wrapping portion of > > my build due > > to the inclusion of a file called "1" (and in some other > > cases "0"). > > See the snippet from the compilation below. > > > > Where is the "1" or "0" coming from? Is it something I'm > > not setting in > > cmake? > > > > I am running on Solaris 5.8, vtk nightly release (June 12, > > 2002), with > > cmake v1.2. I also tried running with cmake 1.4, but get the same > > error. > > > > Thanks for any help. > > > > Steve > > > > ps. Has anybody ever compiled under solaris 5.8 with 64 bits? Is it > > just a matter of adding -m64 on the g++ compiler? > > > > Compile report: > > ...snip... > > > /home/boyd/pack/vtk/./vtkParseJava > > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h > > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 > > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java > > > Parsed func New > > > Parsed func GetEdgePoints > > > Parsed func GetFacePoints > > > Parsed func MakeObject > > > Parsed func GetCellType > > > Parsed func GetCellDimension > > > Parsed func GetNumberOfEdges > > > Parsed func GetNumberOfFaces > > > Parsed func GetEdge > > > Parsed func GetFace > > > Parsed func CellBoundary > > > Parsed func Contour > > > Parsed func EvaluatePosition > > > Parsed func EvaluateLocation > > > Parsed func IntersectWithLine > > > Parsed func Triangulate > > > Parsed func Derivatives > > > Parsed func GetParametricCenter > > > Parsed func InterpolationFunctions > > > Parsed func InterpolationDerivs > > > Parsed func JacobianInverse > > > Parsed func GetEdgeArray > > > Parsed func GetFaceArray > > > Parsed func vtkWedge > > > Parsed func vtkWedge > > > Parsed func vtkWedge > > > Converted operator > > > Error opening output file 1 > > > *** Error code 1 > > > The following command caused the error: > > > /home/boyd/pack/vtk/./vtkParseJava > > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h > > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 > > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java > > ...snip... > > > > > > > > > > > > -- > > Steven Boyd, PhD > > > > Institute for Biomedical Engineering > > ETH and University Zuerich > > Moussonstrasse 18 > > 8044 Zuerich, Switzerland > > > > tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch > > ------------------------------------------------------------------- > > _______________________________________________ > > 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 -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From billlist at nycap.rr.com Fri Jun 14 09:43:01 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 14 Jun 2002 09:43:01 -0400 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake In-Reply-To: <3D09ED8D.9B1380E3@biomed.ee.ethz.ch> References: Message-ID: <5.0.2.1.0.20020614094157.043f9b40@pop.nycap.rr.com> /home/boyd/pack/vtk/./vtkParseJava /home/boyd/pack/vtk4.1/VTK/Common/vtkAbstractMapper.h /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 0 /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkAbstractMapper.java Parsed func PrintSelf Parsed func GetMTime Parsed func ReleaseGraphicsResources Parsed func AddClippingPlane Parsed func RemoveClippingPlane Parsed func RemoveAllClippingPlanes Parsed func SetClippingPlanes Parsed func ShallowCopy Parsed func GetScalars Parsed func AddConsumer Parsed func RemoveConsumer Parsed func GetConsumer Parsed func IsConsumer Parsed func vtkAbstractMapper Parsed func vtkAbstractMapper Parsed func vtkAbstractMapper Converted operator Error opening output file 0 *** Error code 1 It looks like vtkParseJava can not open /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkAbstractMapper.java for write, are you out of disk, or is there a permission problem? -Bill At 03:20 PM 6/14/2002 +0200, Steve Boyd wrote: >Hi, > >It doesn't seem to be a problem with vtkParseJava. It is built prior to >the wrapping process. I've put clipped versions of my compile log and >the CMakeCache at the links below if that helps. > >http://www.biomed.ee.ethz.ch/~boyd/info/Compilation-cmake1.2.txt > >http://www.biomed.ee.ethz.ch/~boyd/info/CMakeCache.txt > >Cheers, > >Steve > > >Ken Martin wrote: >> >> I believe that for some reason your build is using an old version of >> vtkParseJava to try wrapping into java. Maybe you have an old version >> of that executable in your path etc >> >> Ken >> >> > -----Original Message----- >> > From: vtkusers-admin at public.kitware.com >> > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Steve Boyd >> > Sent: Friday, June 14, 2002 5:57 AM >> > To: vtk >> > Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake >> > >> > >> > Hi, >> > >> > I get a compile error during the java wrapping portion of >> > my build due >> > to the inclusion of a file called "1" (and in some other >> > cases "0"). >> > See the snippet from the compilation below. >> > >> > Where is the "1" or "0" coming from? Is it something I'm >> > not setting in >> > cmake? >> > >> > I am running on Solaris 5.8, vtk nightly release (June 12, >> > 2002), with >> > cmake v1.2. I also tried running with cmake 1.4, but get the same >> > error. >> > >> > Thanks for any help. >> > >> > Steve >> > >> > ps. Has anybody ever compiled under solaris 5.8 with 64 bits? Is it >> > just a matter of adding -m64 on the g++ compiler? >> > >> > Compile report: >> > ...snip... >> > > /home/boyd/pack/vtk/./vtkParseJava >> > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h >> > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 >> > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java >> > > Parsed func New >> > > Parsed func GetEdgePoints >> > > Parsed func GetFacePoints >> > > Parsed func MakeObject >> > > Parsed func GetCellType >> > > Parsed func GetCellDimension >> > > Parsed func GetNumberOfEdges >> > > Parsed func GetNumberOfFaces >> > > Parsed func GetEdge >> > > Parsed func GetFace >> > > Parsed func CellBoundary >> > > Parsed func Contour >> > > Parsed func EvaluatePosition >> > > Parsed func EvaluateLocation >> > > Parsed func IntersectWithLine >> > > Parsed func Triangulate >> > > Parsed func Derivatives >> > > Parsed func GetParametricCenter >> > > Parsed func InterpolationFunctions >> > > Parsed func InterpolationDerivs >> > > Parsed func JacobianInverse >> > > Parsed func GetEdgeArray >> > > Parsed func GetFaceArray >> > > Parsed func vtkWedge >> > > Parsed func vtkWedge >> > > Parsed func vtkWedge >> > > Converted operator >> > > Error opening output file 1 >> > > *** Error code 1 >> > > The following command caused the error: >> > > /home/boyd/pack/vtk/./vtkParseJava >> > /home/boyd/pack/vtk4.1/VTK/Common/vtkWedge.h >> > /home/boyd/pack/vtk4.1/VTK/Wrapping/hints 1 >> > /home/boyd/pack/vtk4.1/VTK/java/vtk/vtkWedge.java >> > ...snip... >> > >> > >> > >> > >> > >> > -- >> > Steven Boyd, PhD >> > >> > Institute for Biomedical Engineering >> > ETH and University Zuerich >> > Moussonstrasse 18 >> > 8044 Zuerich, Switzerland >> > >> > tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >> > ------------------------------------------------------------------- >> > _______________________________________________ >> > 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 > >-- >Steven Boyd, PhD > >Institute for Biomedical Engineering >ETH and University Zuerich >Moussonstrasse 18 >8044 Zuerich, Switzerland > >tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >------------------------------------------------------------------- >_______________________________________________ >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 boyd at biomed.ee.ethz.ch Fri Jun 14 10:08:41 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Fri, 14 Jun 2002 16:08:41 +0200 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake References: <5.0.2.1.0.20020614094157.043f9b40@pop.nycap.rr.com> Message-ID: <3D09F8E9.B201D21D@biomed.ee.ethz.ch> Hi, You were right about the write problem. I had been focussing on the "0" or "1", but didn't realize the problem was writing to a directory that had not yet been created. The java home directory /home/boyd/pack/vtk4.1/VTK/java/vtk specified in CMake is fine, but I didn't actually create that directory. I assumed CMake would make it if it didn't exist. I have previously been using CMake on a PC, and I think that if I gave a directory target that didn't yet exist it would automatically create it for me (no?). Anyways, not the case on the SUN and now that I've made the target directory it seems to be compiling fine. Thanks for pointing out my mistake. Sincerely, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From billlist at nycap.rr.com Fri Jun 14 10:19:29 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 14 Jun 2002 10:19:29 -0400 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake In-Reply-To: <3D09F8E9.B201D21D@biomed.ee.ethz.ch> References: <5.0.2.1.0.20020614094157.043f9b40@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20020614101802.043ff370@pop.nycap.rr.com> When did you last do a cvs update? Does your top level CMakeLists.txt file have this: IF (VTK_WRAP_JAVA) .... IF (NOT VTK_JAVA_HOME) SET (VTK_JAVA_HOME ${VTK_BINARY_DIR}/java/vtk CACHE PATH "Path to Java install") ENDIF (NOT VTK_JAVA_HOME) MAKE_DIRECTORY(${VTK_JAVA_HOME}) ..... ENDIF (VTK_WRAP_JAVA) Note, the MAKE_DIRECTORY call. -Bill At 04:08 PM 6/14/2002 +0200, Steve Boyd wrote: >Hi, > >You were right about the write problem. I had been focussing on the "0" >or "1", but didn't realize the problem was writing to a directory that >had not yet been created. The java home directory >/home/boyd/pack/vtk4.1/VTK/java/vtk specified in CMake is fine, but I >didn't actually create that directory. I assumed CMake would make it if >it didn't exist. I have previously been using CMake on a PC, and I >think that if I gave a directory target that didn't yet exist it would >automatically create it for me (no?). Anyways, not the case on the SUN >and now that I've made the target directory it seems to be compiling >fine. > >Thanks for pointing out my mistake. > >Sincerely, > >Steve >-- >Steven Boyd, PhD > >Institute for Biomedical Engineering >ETH and University Zuerich >Moussonstrasse 18 >8044 Zuerich, Switzerland > >tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >------------------------------------------------------------------- >_______________________________________________ >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 Fri Jun 14 10:55:45 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 14 Jun 2002 10:55:45 -0400 Subject: [vtkusers] Compile problem on Solaris 5.8 using cmake In-Reply-To: <5.0.2.1.0.20020614101802.043ff370@pop.nycap.rr.com> References: <3D09F8E9.B201D21D@biomed.ee.ethz.ch> <5.0.2.1.0.20020614094157.043f9b40@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20020614105325.04429d20@pop.nycap.rr.com> The process to create the nightly source tar file has been broken since we changed servers here at Kitware back in April. We have fixed the problem. If you want the current source without cvs, you can download it now. http://public.kitware.com/VTK/get-software.php#nightly This problem only affected the unix source files. -Bill At 10:19 AM 6/14/2002 -0400, William A. Hoffman wrote: >When did you last do a cvs update? > > >Does your top level CMakeLists.txt file have this: >IF (VTK_WRAP_JAVA) > .... > IF (NOT VTK_JAVA_HOME) > SET (VTK_JAVA_HOME ${VTK_BINARY_DIR}/java/vtk CACHE PATH "Path to Java install") > ENDIF (NOT VTK_JAVA_HOME) > MAKE_DIRECTORY(${VTK_JAVA_HOME}) > ..... >ENDIF (VTK_WRAP_JAVA) > >Note, the MAKE_DIRECTORY call. > >-Bill > >At 04:08 PM 6/14/2002 +0200, Steve Boyd wrote: >>Hi, >> >>You were right about the write problem. I had been focussing on the "0" >>or "1", but didn't realize the problem was writing to a directory that >>had not yet been created. The java home directory >>/home/boyd/pack/vtk4.1/VTK/java/vtk specified in CMake is fine, but I >>didn't actually create that directory. I assumed CMake would make it if >>it didn't exist. I have previously been using CMake on a PC, and I >>think that if I gave a directory target that didn't yet exist it would >>automatically create it for me (no?). Anyways, not the case on the SUN >>and now that I've made the target directory it seems to be compiling >>fine. >> >>Thanks for pointing out my mistake. >> >>Sincerely, >> >>Steve >>-- >>Steven Boyd, PhD >> >>Institute for Biomedical Engineering >>ETH and University Zuerich >>Moussonstrasse 18 >>8044 Zuerich, Switzerland >> >>tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >>------------------------------------------------------------------- >>_______________________________________________ >>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 brownr at ucalgary.ca Fri Jun 14 13:10:40 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Fri, 14 Jun 2002 11:10:40 -0600 Subject: [vtkusers] Python can't find dylibs on OSX Message-ID: When trying to create an instance of vtkTkRenderWidge in Python I get a dyld: /Applications/Python.app/Contents/MacOS/python Undefined symbols: _Vtkrenderingpythontkwidgets_SafeInit error. Is anyone successfully using VTK's Tk widgets under Aqua with Python? This is with a CVS build of VTK from about a month ago and the latest release of Python 2.2, built and linked with OSX Tk 8.4a4-2. Thanks, -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From ystarrev at uwo.ca Fri Jun 14 13:55:36 2002 From: ystarrev at uwo.ca (Yves Starreveld) Date: Fri, 14 Jun 2002 13:55:36 -0400 Subject: [vtkusers] Python can't find dylibs on OSX In-Reply-To: Message-ID: Robb, I only added the tkwidget stuff a few weeks ago. You need the latest cvs version. Yves On Friday, June 14, 2002, at 01:10 PM, Robb Brown wrote: > > When trying to create an instance of vtkTkRenderWidge in Python I get a > > dyld: /Applications/Python.app/Contents/MacOS/python Undefined symbols: > _Vtkrenderingpythontkwidgets_SafeInit > > error. Is anyone successfully using VTK's Tk widgets under Aqua with > Python? > > This is with a CVS build of VTK from about a month ago and the latest > release of Python 2.2, built and linked with OSX Tk 8.4a4-2. > > Thanks, > > > -- ______________________________ > Robb Brown > Seaman Family MR Research Centre > Calgary, Alberta, Canada > _______________________________________________ > 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 jmanjon at fis.upv.es Fri Jun 14 14:39:42 2002 From: jmanjon at fis.upv.es (jose manjon) Date: Fri, 14 Jun 2002 20:39:42 +0200 Subject: [vtkusers] ImageReslice to data References: <20020614142104.49F9D1AB64@public.kitware.com> Message-ID: <3D0A386E.E7C66509@fis.upv.es> Hi all, I am using vtkImageReslice class to get arbitrary planes from my 256x256x165 mri volume I have used the sample (data is a vtkStructuredPoints volume ): vtkTransform* transform=vtkTransform::New(); transform->RotateX(90); transform->RotateY(90); transform->RotateZ(90); vtkImageReslice* reslice=vtkImageReslice::New(); reslice->SetInput(data); reslice->SetResliceTransform(transform); reslice->InterpolateOn(); reslice->SetOutputSpacing(pDoc->resx,pDoc->resy,pDoc->resz); reslice->SetBackgroundLevel(0); reslice->GetInput()->SetUpdateExtentToWholeExtent(); // to speed up reslice->GetInput()->Update(); vtkImageViewer * viewer=vtkImageViewer::New(); viewer->SetInput(reslice->GetOutput()); viewer->SetZSlice(122); viewer->SetColorWindow(128); viewer->SetColorLevel(128); viewer->Render(); and all works perfect .... but I dont want to show the results on a vtkImageViewer window. I want to show the results on my MFC view (VC++6.0). For this reason I have tried to extract the resliced image for painting it on a view. I do this: int ca=132; vtkTransform* transform=vtkTransform::New(); transform->RotateX(0); transform->RotateY(80); transform->RotateZ(0); reslice=vtkImageReslice::New(); reslice->SetInput(data); reslice->SetResliceTransform(transform); reslice->InterpolateOn(); reslice->SetOutputSpacing(pDoc->resx,pDoc->resy,pDoc->resz); reslice->SetBackgroundLevel(0); reslice->GetInput()->SetUpdateExtentToWholeExtent(); // to speed up reslice->GetInput()->Update(); vtkImageData * ima=reslice->GetOutput(); ima->Update(); // very slow !!! int dim[3]; ima->GetDimensions(dim); unsigned short * puntero=(unsigned short *)ima->GetScalarPointer(); for(i=0;i Message-ID: <20020614192209.37824.qmail@web10104.mail.yahoo.com> --- Robert Belleman wrote: > Jagan, > > If by "asynchronous call" you mean that multiple > threads access the > X server, try adding a call to XInitThreads() just > after the render > window is created. > > -- Rob > > -- > [] Robert Belleman X Section Computational > Science [] > [] robbel at science.uva.nl |X| University of > Amsterdam, the Netherlands [] > [] tel: (+31) 20 525 7510 X > http://www.science.uva.nl/~robbel/ [] > > > Hi All, > > > > In my application main I have the following code. > > > > main() > > { > > CompositerServer cs = new CompositerServer(); > > > > cs.reader1 = new vtkTIFFReader(); > > cs.reader1.SetFileName("./Test.tif"); > > > > vtkRenderWindowInteractor iren = new > vtkRenderWindowInteractor(); > > > iren.SetRenderWindow(cs.viewer.GetRenderWindow()); > > . > > . > > . > > > > cs.viewer.Render(); > > iren.Start(); > > } > > > > When I set the cs.viewer.SetOutput() and call > cs.viewer.Render() in an > > asynchronous call I get an X-Window error. Any > help? > > > > thanks much > > -jagan > > > > > > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From orlandomhb at yahoo.com Fri Jun 14 15:38:43 2002 From: orlandomhb at yahoo.com (Orlando Hernandez) Date: Fri, 14 Jun 2002 12:38:43 -0700 (PDT) Subject: [vtkusers] Lines width In-Reply-To: <15623.2314.148251.320256@monster.linux.in> Message-ID: <20020614193843.79145.qmail@web10108.mail.yahoo.com> --- Prabhu Ramachandran wrote: > >>>>> "vtk" == vtk writes: > > vtk> Hi , I work witdh VTK 4, tcl/tk on linux > workstation. I'd > vtk> drow a line, but i want to change a width. > Can i do to > vtk> change it? > > [gridActor GetProperty] SetLineWidth 2.0 > > prabhu > _______________________________________________ > 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 __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From heiland at ncsa.uiuc.edu Fri Jun 14 18:51:58 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 14 Jun 2002 17:51:58 -0500 Subject: [vtkusers] nVidia extensions on Linux Message-ID: <1020614175158.ZM10501@pecos.ncsa.uiuc.edu> Just curious - anyone out there using nVidia GL extensions under Linux and willing to share some code? --Randy From david_pont at hotmail.com Fri Jun 14 19:40:29 2002 From: david_pont at hotmail.com (David Pont) Date: Sat, 15 Jun 2002 11:40:29 +1200 Subject: [vtkusers] Sphere & Isolines Message-ID: An HTML attachment was scrubbed... URL: From jeff at cdnorthamerica.com Sun Jun 16 11:43:41 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Sun, 16 Jun 2002 11:43:41 -0400 Subject: [vtkusers] nVidia extensions on Linux References: <1020614175158.ZM10501@pecos.ncsa.uiuc.edu> Message-ID: <3D0CB22D.6050404@cdnorthamerica.com> What kind of code? -Jeff Randy Heiland wrote: >Just curious - anyone out there using nVidia GL extensions under Linux and >willing to share some code? > >--Randy >_______________________________________________ >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 ted at caept.com Sun Jun 16 13:01:57 2002 From: ted at caept.com (Ted Christiansen) Date: Sun, 16 Jun 2002 19:01:57 +0200 Subject: [vtkusers] Displaying image sequence inside of vtkMFCRenderView Message-ID: <3D0CC485.FD41E7A7@caept.com> Hello, I would like to add animation capability to my MFC based application by displaying a sequence of previously generated images (bitmaps). My view class GLview is derived from vtkMFCRenderView. Is there an image class in vtk that I can use to display this sequence of images inside of this GLview class (without flicker)? Does anyone have any code snippets to do this? Thanks, Ted From mmalat at irus.rri.ca Sun Jun 16 22:27:43 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Sun, 16 Jun 2002 22:27:43 -0400 Subject: [vtkusers] vtkSubPixelPositionEdgels seg fault Message-ID: <3D0D491F.8A3EE84@irus.rri.ca> Hi all, I tried vtkSubPixelPositionEdgels on a volume image and I get a seg fault. I look into the code and I found that the Move method (line 107) is called on real points (origin and spacing are taken into account). But these coordinate also serve to access the pixel value in memory (lines 256 through 292)! Why do you need to use origin and spacing ? They are totally outside of memory allocation. Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From martin_thornalley at hotmail.com Mon Jun 17 04:16:53 2002 From: martin_thornalley at hotmail.com (Martin Thornalley) Date: Mon, 17 Jun 2002 09:16:53 +0100 Subject: [vtkusers] VTK4 and QT3 Message-ID: I have followed the links on Sebastien Barre's page for the integrating VTK and QT. Unfortunately these all seem to apply to earlier versions of both VTK and QT. Has anyone had anyone success in getting these to work with the latest versions or does anyone know of any alternatives? Regards, Martin T _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From elbanna_m at hotmail.com Mon Jun 17 04:50:44 2002 From: elbanna_m at hotmail.com (Mahmoud El-Banna) Date: Mon, 17 Jun 2002 11:50:44 +0300 Subject: [vtkusers] getting the output window of vtk4.0 on my frame? Message-ID: hello; i am using vtk4.0 under VC++ i want to ask about how can i put the output window of vtk on my designed frame? and how can overcome the problem of closing the vtk4.0 window that cause the closing of the whole exe file? thank u for ur expected cooperation Mahmoud El-Banna _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From zjzhang at ee.cuhk.edu.hk Mon Jun 17 05:36:08 2002 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Mon, 17 Jun 2002 17:36:08 +0800 Subject: [vtkusers] about Dicom3 viewer Message-ID: <001601c215e2$68fd0600$1223bd89@ee.cuhk.edu.hk> Dear all: Does anyone know how I can open files in Dicom3 format? I searched for the programs, but failed all the time. Many programs deals with Dicom2 format and it seems these program can't work with Dicom3 format. Is there any hint for this? Thank you very much. regards, zhang zhijun -------------- next part -------------- An HTML attachment was scrubbed... URL: From robbel at science.uva.nl Mon Jun 17 07:34:37 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Mon, 17 Jun 2002 13:34:37 +0200 (MEST) Subject: [vtkusers] about Dicom3 viewer In-Reply-To: <001601c215e2$68fd0600$1223bd89@ee.cuhk.edu.hk> References: <001601c215e2$68fd0600$1223bd89@ee.cuhk.edu.hk> Message-ID: <34863.62.108.20.46.1024313677.squirrel@webmail.science.uva.nl> Try http://www.dclunie.com/dicom3tools.html -- Rob [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > Dear all: > Does anyone know how I can open files in Dicom3 format? I > searched for the programs, but > failed all the time. Many programs deals with Dicom2 format and it > seems these program can't work with Dicom3 format. Is there any hint > for this? Thank you very much. > > > regards, > zhang zhijun From sebastien.barre at kitware.com Mon Jun 17 07:59:15 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon, 17 Jun 2002 07:59:15 -0400 Subject: [vtkusers] about Dicom3 viewer In-Reply-To: <001601c215e2$68fd0600$1223bd89@ee.cuhk.edu.hk> Message-ID: <5.1.1.6.0.20020617075511.0251ae80@pop.nycap.rr.com> Hi At 6/17/2002 05:36 AM, zhangzhijun wrote: >Dear all: > Does anyone know how I can open files in Dicom3 format? I > searched for the programs, but >failed all the time. Many programs deals with Dicom2 format and it seems >these program can't >work with Dicom3 format. There is no "DICOM 2" format so to speak. DICOM refers to (implicitly) ACR/NEMA 3.0 format, that's the reason why some people use DICOM 3.0 for DICOM. Indeed, check David's Clunie dicom3tools, or my dicom2 tools (I wish I never picked that name) at http://dicom2.barre.nom.fr, or the links at http://www.barre.nom.fr/medical/samples/index.html#links Hope this helps -- Sebastien Barre -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebbe at multitel.be Mon Jun 17 08:03:10 2002 From: sebbe at multitel.be (Raphael Sebbe) Date: Mon, 17 Jun 2002 14:03:10 +0200 Subject: [vtkusers] VTK on MacOS X using native Cocoa backend Message-ID: <31B18674-81EA-11D6-B7D6-000A27E4B65E@multitel.be> Hi all, I'm new to the list and new to VTK. I try to get it to work on a Mac OS X machine, using the native Cocoa implementation (I saw NSWindow subclass, and stuff like that), by opposition to runinng it through XFree (which is also installed). All I could see so far was an empty window appear and immediately disappear when running Mace, for instance. Also found some suspect -lgl flags in the build process (instead of using the OpenGL framework) I searched the archive, found some interesting info, but could someone with a similar setup give me the required steps to get it to work (in particular, answers to cmake -i) using the Cocoa windowing backend ? I am using Mac OS X 10.1.5, VTK Nightly build. Thanks, Raphael Sebbe ps: I also tried with a Mandrake/Intel setup, without success (GLX problem), but one thing at a time... From lorensen at crd.ge.com Mon Jun 17 08:03:42 2002 From: lorensen at crd.ge.com (Lorensen, William E (Research)) Date: Mon, 17 Jun 2002 08:03:42 -0400 Subject: [vtkusers] vtkSubPixelPositionEdgels seg fault Message-ID: Mathieu, Certainly you have found a bug and diagnosed it correctly. It's apparent that we never tested this code with a non zero origin and non unit spacing. I was able to get the test Canny.tcl to crash when I change the origin and spacing of the image. We'll have to look at the code for a correction. Thanks for the bug report. Bill -----Original Message----- From: Mathieu Malaterre [mailto:mmalat at irus.rri.ca] Sent: Sunday, June 16, 2002 10:28 PM To: VTK Mailing list Subject: [vtkusers] vtkSubPixelPositionEdgels seg fault Hi all, I tried vtkSubPixelPositionEdgels on a volume image and I get a seg fault. I look into the code and I found that the Move method (line 107) is called on real points (origin and spacing are taken into account). But these coordinate also serve to access the pixel value in memory (lines 256 through 292)! Why do you need to use origin and spacing ? They are totally outside of memory allocation. Mathieu From kuebler at ira.uka.de Mon Jun 17 08:22:26 2002 From: kuebler at ira.uka.de (Carsten =?ISO-8859-1?Q?K=FCbler?=) Date: Mon, 17 Jun 2002 14:22:26 +0200 Subject: [vtkusers] Re: VTK4 and QT3 References: <20020617104404.1017C1AB3F@public.kitware.com> Message-ID: <3D0DD482.3070901@ira.uka.de> > > >I have followed the links on Sebastien Barre's page for the integrating VTK >and QT. Unfortunately these all seem to apply to earlier versions of both >VTK and QT. Has anyone had anyone success in getting these to work with the >latest versions or does anyone know of any alternatives? > Yes, but barre's links are "old". I think all solutions which works under QT 2.3 will also work with QT 3.0. There is also a solution on my web-page which wasn't added on the Barre's link page. http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html Carsten From deelipmenezes at hotmail.com Mon Jun 17 10:17:28 2002 From: deelipmenezes at hotmail.com (Deelip Menezes) Date: Mon, 17 Jun 2002 19:47:28 +0530 Subject: [vtkusers] 3D operations Message-ID: I guess this question has been asked earlier on the list, but I could not find any helpful answers. Can anyone tell me the method of performing 3d boolean operations, such as addition, subtraction and intersection of triangular polydata, if at all it is possible with VTK. Deelip Menezes _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From dsaez at iti.upv.es Mon Jun 17 10:35:00 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Mon, 17 Jun 2002 16:35:00 +0200 Subject: [vtkusers] why vtkQuartzImageWindow.c has disappeared Message-ID: <20020617143501.2892015EA22@mailborg.iti.upv.es> Hello, I once built VTK on a MAC OSX whith only quartz. Some features with Java doesn't function. Now, I have download the Nightly SRC but I have find that vtkQuartzImageWindow (.h .cxx) files don't appear in this version. Why? Thanks. Daniel S?ez From ystarrev at uwo.ca Mon Jun 17 10:42:28 2002 From: ystarrev at uwo.ca (Yves Starreveld) Date: Mon, 17 Jun 2002 10:42:28 -0400 Subject: [vtkusers] why vtkQuartzImageWindow.c has disappeared In-Reply-To: <20020617143501.2892015EA22@mailborg.iti.upv.es> Message-ID: <728A3507-8200-11D6-9EA9-0003935783E4@uwo.ca> The Quartz classes were replaced with Carbon and Cocoa classes, since these are the names of the two different APIs to the Quartz Window Manager. I recommend building with the Carbon classes (option is set as default in CMakeCache.txt) since (currently) its integration with Apple's agl is better, so that fonts can be used in OpenGL graphics context using the aglUseFont call rather than using some CoreGraphics keniptions. Also, the Carbon API is accessible from C/C++ without needing to include ObjC calls, so the new files are .cxx files rather than .mm Yves On Monday, June 17, 2002, at 10:35 AM, Daniel S?ez Domingo wrote: > Hello, I once built VTK on a MAC OSX whith only quartz. Some features > with > Java doesn't function. > Now, I have download the Nightly SRC but I have find that > vtkQuartzImageWindow (.h .cxx) files don't appear in this version. Why? > > Thanks. > Daniel Saez > _______________________________________________ > 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 Gowri.Gopalakrishnan at inteq.com Mon Jun 17 11:11:38 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Mon, 17 Jun 2002 10:11:38 -0500 Subject: [vtkusers] vrml exporter buggy may be? Message-ID: Hi I am exporting the following scene to a wrl file using the vtkVRMLExporter. My scene has a curve inside a grid. In the wrl output the grid which normally appears as a wireframe appears completely solid. I make the grid using vtkCubeAxesActor2D. Is there a bug in the wrl exporter or am I supposed to do something .... Regards Gowri -------------- next part -------------- An HTML attachment was scrubbed... URL: From paklein at sandia.gov Mon Jun 17 11:38:44 2002 From: paklein at sandia.gov (Patrick Klein) Date: Mon, 17 Jun 2002 08:38:44 -0700 Subject: Fwd: [vtkusers] VTK on MacOS X using native Cocoa backend Message-ID: <4ECBC8EA-8208-11D6-AC69-003065F94666@sandia.gov> Hi Raphael, > I'm new to the list and new to VTK. I try to get it to work on a Mac OS > X machine, using the native Cocoa implementation (I saw NSWindow > subclass, and stuff like that), by opposition to runinng it through > XFree (which is also installed).... I had to move my XFree installation to someplace CMake wouldn't find it. Mixing OpenGL from XFree and the OS X frameworks doesn't work. -Patrick From dsaez at iti.upv.es Mon Jun 17 11:57:56 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-1?q?S=E1ez=20Domingo?=) Date: Mon, 17 Jun 2002 17:57:56 +0200 Subject: [vtkusers] why vtkQuartzImageWindow.c has disappeared In-Reply-To: <728A3507-8200-11D6-9EA9-0003935783E4@uwo.ca> References: <728A3507-8200-11D6-9EA9-0003935783E4@uwo.ca> Message-ID: <20020617155758.F12B415EA23@mailborg.iti.upv.es> Hello Ives, Then, I'm going to tell you all the changes I did when I built VTK and I would thank you tell me what things I have to do now an what things I don't have to do. First, in /usr/local/src/VTK/Rendering/CMakeLists.txt I added the next (see //ADDED): .... IF(UNIX) IF(NOT WIN32) IF(NOT APPLE) SOURCE_FILES ( Rendering_SRCS vtkXImageWindow vtkXRenderWindowInteractor vtkXTextMapper) //ADDED ELSE (NOT APPLE) IF (NOT VTK_USE_QUARTZ) IF (VTK_USE_X) SOURCE_FILES ( Rendering_SRCS vtkXImageWindow vtkXRenderWindowInteractor vtkXTextMapper) ENDIF (VTK_USE_X) ENDIF (NOT VTK_USE_QUARTZ) //END ADDED ENDIF(NOT APPLE) ENDIF(NOT WIN32) ENDIF(UNIX) IF (WIN32) SET(HAVE_OPENGL_SRCS ON) SOURCE_FILES(RenderingOpenGL_SRCS vtkWin32OpenGLRenderWindow vtkWin32RenderWindowInteractor vtkWin32OpenGLImageWindow vtkWin32OpenGLTextMapper vtkWin32TextMapper) LINK_LIBRARIES ( ${OPENGL_LIBRARY} ) IF(MESA_OS_LIBRARY) LINK_LIBRARIES( ${MESA_OS_LIBRARY} ) ENDIF(MESA_OS_LIBRARY) ELSE (WIN32) IF (APPLE) //ADDED IF (VTK_USE_QUARTZ) ADD_DEFINITIONS(-DVTK_USE_QUARTZ) SET(HAVE_OPENGL_SRCS ON) SOURCE_FILES(RenderingOpenGL_SRCS vtkQuartzImageWindow vtkQuartzTextMapper vtkQuartzRenderWindowInteractor vtkQuartzRenderWindow vtkQuartzWindow vtkQuartzGLView) WRAP_EXCLUDE_FILES(vtkQuartzGLView vtkQuartzWindow) LINK_LIBRARIES (${OPENGL_LIBRARY} ) IF(MESA_OS_LIBRARY) LINK_LIBRARIES( ${MESA_OS_LIBRARY} ) ENDIF(MESA_OS_LIBRARY) ADD_LIBRARY(vtkRendering Rendering_SRCS RenderingOpenGL_SRCS) ELSE (VTK_USE_QUARTZ) IF (VTK_USE_X) IF (OPENGL_LIBRARY) SET(HAVE_OPENGL_SRCS ON) SOURCE_FILES(RenderingOpenGL_SRCS vtkOpenGLImageWindow vtkXOpenGLRenderWindow vtkXOpenGLTextMapper) ABSTRACT_FILES( vtkXImageWindow vtkXTextMapper) LINK_LIBRARIES (${OPENGL_LIBRARY} ) IF(MESA_OS_LIBRARY) LINK_LIBRARIES( ${OSMESA_LIBRARY} ) ENDIF(MESA_OS_LIBRARY) ENDIF (OPENGL_LIBRARY) ENDIF (VTK_USE_X) ENDIF (VTK_USE_QUARTZ) //END ADDED ELSE (APPLE) IF (OPENGL_LIBRARY) SET(HAVE_OPENGL_SRCS ON) SOURCE_FILES(RenderingOpenGL_SRCS vtkOpenGLImageWindow vtkXOpenGLRenderWindow vtkXOpenGLTextMapper) ABSTRACT_FILES( vtkXImageWindow vtkXTextMapper) LINK_LIBRARIES (${OPENGL_LIBRARY} ) IF(MESA_OS_LIBRARY) LINK_LIBRARIES( ${OSMESA_LIBRARY} ) ENDIF(MESA_OS_LIBRARY) ENDIF (OPENGL_LIBRARY) ENDIF (APPLE) ENDIF (WIN32) .... In /usr/local/src/VTK/Common/vtkJavaUtil.cxx to solve an error with synch.h and thread.h, I added : .... #ifdef _WIN32 HANDLE vtkGlobalMutex = NULL; #define VTK_GET_MUTEX() WaitForSingleObject(vtkGlobalMutex,INFINITE) #define VTK_RELEASE_MUTEX() ReleaseMutex(vtkGlobalMutex) #include #else #ifdef VTK_USE_SPROC // for SGI's #include abilock_t vtkGlobalMutex; static void vtk_get_mutex() { static int inited = 0; if (!inited) { if (init_lock(&vtkGlobalMutex) < 0) perror("initializing mutex"); inited = 1; } spin_lock(&vtkGlobalMutex); } static void vtk_release_mutex() { if (release_lock(&vtkGlobalMutex) < 0) perror("releasing mutex"); } #define VTK_GET_MUTEX() vtk_get_mutex() #define VTK_RELEASE_MUTEX() vtk_release_mutex() //ADDED #elif defined(__FreeBSD__) || defined(__linux__) || defined(sgi) || defined(VTK_USE_QUARTZ) //ADDED #include pthread_mutex_t vtkGlobalMutex; #define VTK_GET_MUTEX() pthread_mutex_lock(&vtkGlobalMutex) #define VTK_RELEASE_MUTEX() pthread_mutex_unlock(&vtkGlobalMutex) #else // for solaris #include #include mutex_t vtkGlobalMutex; #define VTK_GET_MUTEX() mutex_lock(&vtkGlobalMutex) #define VTK_RELEASE_MUTEX() mutex_unlock(&vtkGlobalMutex) #endif #endif .... In /usr/local/src/VTK/Common/CMakeLists.txt I added the next definition: ... IF (VTK_WRAP_JAVA) VTK_WRAP_JAVA(vtkCommonJava CommonJava_SRCS Common_SRCS) //ADDED ADD_DEFINITIONS(-DVTK_USE_QUARTZ) //END ADDED ADD_LIBRARY(vtkCommonJava SHARED CommonJava_SRCS vtkJavaUtil) INSTALL_TARGETS(/lib/vtk vtkCommonJava) INSTALL_FILES(/include/vtk .h vtkJavaUtil ) ENDIF (VTK_WRAP_JAVA) .... Well, I wanted to wrap Java, then as I haven't X support, I copied /usr/local/src/VTK/Common/vtkJavaAwt.h into /usr/local/src/VTK/Common/vtkJavaAwtQuartz.h and in this last file I added: .... // Here is the win32 drawing code #if defined(_WIN32) || defined(WIN32) JAWT_Win32DrawingSurfaceInfo* dsi_win; dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo; temp0->SetWindowId((void *)dsi_win->hwnd); //ADDED #elif defined (VTK_USE_QUARTZ) JAWT_MacDrawingSurfaceInfo* dsi_mac; dsi_mac = (JAWT_MacDrawingSurfaceInfo*)dsi->platformInfo; temp0->SetDisplayId((void *)dsi_mac->fQDDevice); temp0->SetWindowId((void *)dsi_mac->fCGWindowID); //ENDADDED // otherwise use X11 code #else JAWT_X11DrawingSurfaceInfo* dsi_x11; dsi_x11 = (JAWT_X11DrawingSurfaceInfo*)dsi->platformInfo; temp0->SetDisplayId((void *)dsi_x11->display); temp0->SetWindowId((void *)dsi_x11->drawable); #endif .... and then, in /usr/local/src/VTK/Wrapping/vtkWrapJava.c I changed vtkJavaAwt.h by vtkJavaAwtQuartz.h: /* for vtkRenderWindow we want to add a special method to support */ /* native AWT rendering */ if (!strcmp("vtkRenderWindow",data->ClassName)) { fprintf(fp,"\n#include \"vtkJavaAwtQuartz.h\"\n\n"); } Once these changes done, my cmake options were: Variable Name: BUILD_DOCUMENTATION Description: Build the documentation (Doxygen). Current Value: OFF New Value (Enter to keep current value): Variable Name: BUILD_EXAMPLES Description: Build VTK examples. Current Value: ON New Value (Enter to keep current value): Variable Name: BUILD_SHARED_LIBS Description: Build VTK with shared libraries. Current Value: ON New Value (Enter to keep current value): Variable Name: BUILD_TESTING Description: Build the testing tree. Current Value: OFF New Value (Enter to keep current value): Variable Name: CMAKE_AR Description: Archive program used to make archive libraries. Current Value: /usr/bin/ar New Value (Enter to keep current value): Variable Name: CMAKE_AR_ARGS Description: Arguments for CMAKE_AR program to create an archive library. Current Value: cr New Value (Enter to keep current value): Variable Name: CMAKE_CXX_COMPILER Description: Name of C++ compiler used. Current Value: c++ New Value (Enter to keep current value): Variable Name: CMAKE_CXX_FLAGS Description: Flags used by CXX compiler. Current Value: -g -O2 New Value (Enter to keep current value): Variable Name: CMAKE_C_COMPILER Description: Name of C compiler used. Current Value: cc New Value (Enter to keep current value): Variable Name: CMAKE_C_FLAGS Description: Flags for C compiler. Current Value: -g -O2 New Value (Enter to keep current value): Variable Name: CMAKE_DL_LIBS Description: Dynamic link library to link in. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_HP_PTHREADS Description: Use HP pthreads. Current Value: 0 New Value (Enter to keep current value): Variable Name: CMAKE_INSTALL_PREFIX Description: Install path prefix, prepended onto install directories. Current Value: /usr/local New Value (Enter to keep current value): Variable Name: CMAKE_LIB_EXT Description: Library extension used by this machine. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_MAKE_PROGRAM Description: Path to a program. Current Value: /usr/bin/make New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_BUILD_FLAGS Description: Flag used by CXX to build a shared library. Current Value: -bundle -flat_namespace -undefined suppress New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_LINK_FLAGS Description: Flags used to link a shared library. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_SUFFIX Description: Module library suffix. Current Value: .so New Value (Enter to keep current value): Variable Name: CMAKE_RANLIB Description: Library randomizer program used on archive libraries. Current Value: ranlib New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_BUILD_FLAGS Description: Flag used by CXX to build a shared library. Current Value: -dynamiclib New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_CFLAGS Description: Flag used for building shared library objects. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_LD_LIBS Description: Libraries used by LD for shared libraries. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_LINK_FLAGS Description: Flags used to link a shared library. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_RUNTIME_FLAG Description: Flag used to specify run-time search paths. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_RUNTIME_SEP Description: If null, each runtime path is a separate option. Otherwise, they are all joined, separated by this. Current Value: : New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_SUFFIX Description: Shared library suffix. Current Value: .dylib New Value (Enter to keep current value): Variable Name: CMAKE_SKIP_RPATH Description: If set, runtime paths are not added when using shared libraries. Current Value: NO New Value (Enter to keep current value): Variable Name: CMAKE_TEMPLATE_FLAGS Description: CXX template flags used by compiler. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_THREAD_LIBS Description: Thread library used. Current Value: -lpthread New Value (Enter to keep current value): Variable Name: CMAKE_USE_PTHREADS Description: Use the pthreads library. Current Value: 1 New Value (Enter to keep current value): Variable Name: CMAKE_USE_SPROC Description: Use sproc libs. Current Value: 0 New Value (Enter to keep current value): Variable Name: CMAKE_WORDS_BIGENDIAN Description: is this system big endian Current Value: 1 New Value (Enter to keep current value): Variable Name: CMAKE_X_CFLAGS Description: X11 extra flags. Current Value: -I/usr/X11R6/include New Value (Enter to keep current value): Variable Name: CMAKE_X_LIBS Description: Libraries and options used in X11 programs. Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext New Value (Enter to keep current value): Variable Name: DART_ROOT Description: If you have Dart installed, where is it located? Current Value: New Value (Enter to keep current value): Variable Name: EXECUTABLE_OUTPUT_PATH Description: Single output directory for building all executables. Current Value: /usr/local/src/VTK/bin New Value (Enter to keep current value): Variable Name: JAVA_AWT_INCLUDE_PATH Description: What is the path where the file jawt.h can be found Current Value: /System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers New Value (Enter to keep current value): Variable Name: JAVA_AWT_LIBRARY Description: Where can the jawt library be found Current Value: -framework JavaEmbedding New Value (Enter to keep current value): Variable Name: JAVA_INCLUDE_PATH Description: What is the path where the file jni.h can be found Current Value: /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers New Value (Enter to keep current value): Variable Name: JAVA_INCLUDE_PATH2 Description: What is the path where the file jni_md.h can be found Current Value: /System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/ New Value (Enter to keep current value): Variable Name: LIBRARY_OUTPUT_PATH Description: Single output directory for building all libraries. Current Value: /usr/local/src/VTK/bin New Value (Enter to keep current value): Variable Name: OPENGL_INCLUDE_PATH Description: What is the path where the file GL/gl.h can be found Current Value: /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers New Value (Enter to keep current value): Variable Name: OPENGL_LIBRARY Description: Where can the GL library be found Current Value: -framework AppKit -framework OpenGL New Value (Enter to keep current value): Variable Name: VTK_DATA_ROOT Description: What is the path where the file VTKData.readme can be found Current Value: /usr/local/share/VTKData New Value (Enter to keep current value): Variable Name: VTK_DEBUG_LEAKS Description: Build leak checking support into vtk. Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_JAVA_HOME Description: Path to Java install Current Value: /usr/local/src/VTK/java/vtk New Value (Enter to keep current value): Variable Name: VTK_MANGLE_MESA Description: Use mangled Mesa with OpenGL Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_OPENGL_HAS_OSMESA Description: The opengl library being used supports off screen Mesa calls. Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_PARSE_JAVA_EXE Description: Path to an internal program. Current Value: /usr/local/src/VTK/bin/./vtkParseJava New Value (Enter to keep current value): Variable Name: VTK_USE_64BIT_IDS Description: Build VTK with 64 bit ids Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_ANSI_STDLIB Description: Use the ANSI standard iostream library Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_HYBRID Description: Build the hybrid directory classes Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_PARALLEL Description: Build the parallel directory classes Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_PATENTED Description: Build the patented directory classes, these classes are patented and may require a license to use Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_QUARTZ Description: Build classes for the Quartz window manager Current Value: ON New Value (Enter to keep current value): Variable Name: VTK_USE_RENDERING Description: Build the rendering classes used for displaying Current Value: ON New Value (Enter to keep current value): Variable Name: VTK_USE_VOLUMEPRO Description: Build VTK with volume pro support Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_X Description: Build calsses for tha X window manager Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_WRAP_HINTS Description: Where can the hints file be found Current Value: /usr/local/src/VTK/Wrapping/hints New Value (Enter to keep current value): Variable Name: VTK_WRAP_JAVA Description: wrap classes into the Java language Current Value: ON New Value (Enter to keep current value): Variable Name: VTK_WRAP_JAVA_EXE Description: Path to an internal program. Current Value: /usr/local/src/VTK/bin/./vtkWrapJava New Value (Enter to keep current value): Variable Name: VTK_WRAP_PYTHON Description: wrap classes into the Python interpreted language Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_WRAP_TCL Description: wrap classes into the TCL intepreted language Current Value: OFF New Value (Enter to keep current value): Once here, I did make and no error ocurred, but if I wanted to load libraries in Java I had to create jnilib libraries. Then I create a unique library to solve interdependencies problem doing: c++ -bundle -g -O2 -fno-coalesce-templates -fno-coalesce-static-vtables -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Filtering -I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics -I/usr/local/src/VTK/IO -I/usr/local/src/VTK/Utilities/zlib -I/usr/local/src/VTK/Utilities/png -I/usr/local/src/VTK/Utilities/jpeg -I/usr/local/src/VTK/Common/Testing/Cxx -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/ -I/System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers -DVTK_USE_QUARTZ -o /usr/local/src/VTK/bin/libvtkJava.jnilib /usr/local/src/VTK/Common/*Java.o /usr/local/src/VTK/Common/vtkJavaUtil.o /usr/local/src/VTK/Filtering/*Java.o /usr/local/src/VTK/Imaging/*Java.o /usr/local/src/VTK/Graphics/*Java.o /usr/local/src/VTK/IO/*Java.o /usr/local/src/VTK/Rendering/*Java.o -L/usr/local/src/VTK/bin/ -framework JavaEmbedding -lpthread -lm -framework AppKit -framework OpenGL -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics -lvtkRendering -lvtkIO And this is all. I had problems with vtkPanel (a Bus error) and I didn't know how to solve it. If I did any thing wrong or I have to do more other things, please tell me. Thank you very much. El Lun 17 Jun 2002 16:42, Yves Starreveld escribi?: > The Quartz classes were replaced with Carbon and Cocoa classes, since > these are the names of the two different APIs to the Quartz Window > Manager. I recommend building with the Carbon classes (option is set as > default in CMakeCache.txt) since (currently) its integration with > Apple's agl is better, so that fonts can be used in OpenGL graphics > context using the aglUseFont call rather than using some CoreGraphics > keniptions. > > Also, the Carbon API is accessible from C/C++ without needing to include > ObjC calls, so the new files are .cxx files rather than .mm > > Yves > > On Monday, June 17, 2002, at 10:35 AM, Daniel S?ez Domingo wrote: > > Hello, I once built VTK on a MAC OSX whith only quartz. Some features > > with > > Java doesn't function. > > Now, I have download the Nightly SRC but I have find that > > vtkQuartzImageWindow (.h .cxx) files don't appear in this version. Why? > > > > Thanks. > > Daniel Saez > > _______________________________________________ > > 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 alex_lear at hotmail.com Mon Jun 17 12:48:01 2002 From: alex_lear at hotmail.com (Alex Lear) Date: Mon, 17 Jun 2002 10:48:01 -0600 Subject: [vtkusers] Coloring vtkTubeFilter Output Message-ID: An HTML attachment was scrubbed... URL: From j.robinson at kepler.ie Mon Jun 17 13:13:41 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Mon, 17 Jun 2002 18:13:41 +0100 Subject: [vtkusers] Conversion to v4.0 Message-ID: Dear All, I am currently trying to convert from VTK v3.2 to v4.0. I am recompiling my code and am getting a strange error. The following line: PauseSpan += CTime::GetCurrentTime() - Pause_time ; Results in the following error: C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2039: 'GetCurrentTime' : is not a member of 'CTime' C:\Program Files\Microsoft Visual Studio\VC98\MFC\Include\afx.h(1532) : see declaration of 'CTime' C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2065: 'GetCurrentTime' : undeclared identifier However, the definition of CTime does include a GetCurrentTime method: class CTime { public: // Constructors static CTime PASCAL GetCurrentTime(); If I remove the include files that are connected to vtk this error disappears. Has anybody an idea of the source of the error (NB: The same file compiles without erro when the include files are the v3.2 versions). Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From j.robinson at kepler.ie Mon Jun 17 13:19:50 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Mon, 17 Jun 2002 18:19:50 +0100 Subject: [vtkusers] MOre info Message-ID: Dear All, In the same vein as my last e-mail, could somebody point me to a text (online) that details all the pitfalls of making a vtk v3.2 application run using the VTK v4.0 libraries. Thanks in advance, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From j.robinson at kepler.ie Mon Jun 17 14:11:34 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Mon, 17 Jun 2002 19:11:34 +0100 Subject: [vtkusers] scalars etc Message-ID: Dear All, It continues - I have a very specific query. The following code no longer works (as vtkScalar no longer seems to exist). Any ideas: vtkScalars *pPressures = pUnstructuredGrid->GetPointData()->GetScalars() ; I have quickly gone thru the new doc and it seems that I should be accessing a vtkDataArray where I either have a tuple of value 1 or 3 (for accessing vector in a similar manner). Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From tarifa at rpi.edu Mon Jun 17 14:14:40 2002 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Mon, 17 Jun 2002 14:14:40 -0400 Subject: [vtkusers] scalars etc References: Message-ID: <011701c2162a$d9a87a90$0201a8c0@nycap.rr.com> Hi Jim, I attached the email below that was sent to the vtk list before and I kept for my future reference. I think you'll find it useful. Asad &&&&&&&&&&&&&&&&& * Asad A. Abu-Tarif * Computer Engineering. * PhD Candidate, Rensselaer Polytechnic Institute (RPI). * Web-site: http://asad.ods.org/Professional/ * Registration Toolkit: http://asad.ods.org/RegMagicTKDoc/ * tarifa at rpi.edu &&&&&&&&&&&&&&&&&& Hello vtkusers! I've just ported my medium-sized (40K lines) application from vtk3.2 to vtk4.x. I thought I would share my experiences with you, in case there were people out there contemplating it but a bit scared. The documentation in http://public.kitware.com/VTK/files/misc/Upgrading.zip and the FAQ entry 6.7 at http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq06.007.htp are both useful but don't have enough concrete examples. Hopefully this email will help a little, though it is by no means complete. I'm using VC++6 + MFC on Win2K and was unable/unwilling to run the script in the zip file. So, I switched all my include directories to the new VTK ones and recompiled. 337 errors, not unexpectedly. Most concerned vtkScalars and vtkTCoords which have both been removed. Where I was using single value scalars, like this: vtkScalars *scalars = vtkScalars::New(); scalars->SetNumberOfScalars(N_POINTS); ... polydata->GetPointData()->SetScalars(scalars); ... scalars->SetScalar(i,2.3); ... I replaced with: vtkFloatArray *scalars = vtkFloatArray::New(); scalars->SetNumberOfComponents(1); scalars->SetNumberOfTuples(N_POINTS); ... polydata->GetPointData()->SetScalars(scalars); ... scalars->SetTuple1(i,2.3); ... OK so far, far fewer errors. Where I had 2D texture coordinates: vtkTCoords *tcoords = vtkTCoords::New(); tcoords->SetNumberOfTCoords(N); ... float p[3]; p[0]=x; p[1]=y; tcoords->SetTCoord(i,p); ... I replaced with: vtkFloatArray *tcoords = vtkTCoords::New(); tcoords->SetNumberOfComponents(2); tcoords->SetNumberOfTuples(N); ... float p[2]; p[0]=x; p[1]=y; tcoords->SetTuple(i,p); .... All well and good, still fewer errors. Make sure you call SetNumberOfComponents *before* SetNumberOfTuples else you'll get problems (I did!). Where I was creating 0-255 image data and had been using: vtkScalars* scalars = vtkScalars::New(); scalars->SetDataTypeToUnsignedChar(); ... I replaced with: vtkUnsignedCharArray *scalars = vtkUnsignedCharArray::New() ... Going well! When creating RGB images, I had been using: vtkScalars *scalars = vtkScalars::New(); scalars->SetDataTypeToUnsignedChar(); scalars->SetNumberOfComponents(3); scalars->SetNumberOfScalars(X*Y); ... scalars->SetActiveComponent(0); scalars->SetScalar(i,val1); scalars->SetActiveComponent(1); scalars->SetScalar(i,val2); scalars->SetActiveComponent(2); scalars->SetScalar(i,val3); ... I replaced with: vtkUnsignedCharArray *scalars = vtkUnsignedCharArray::New() scalars->SetNumberOfComponents(3); scalars->SetNumberOfScalars(X*Y); ... scalars->SetComponent(i,0,val1); scalars->SetComponent(i,1,val2); scalars->SetComponent(i,2,val3); ... My remaining errors concerned vtkWin32OffscreenRenderWindow that has been removed. Where I had been using: vtkWin32OffscreenRenderWindow *offscreen = vtkWin32OffscreenRenderWindow::New(); ... I replaced with: vtkWin32OpenGLRenderWindow *offscreen = vtkWin32OpenGLRenderWindow::New(); offscreen->SetOffScreenRendering(1); ... All done. I'd had to throw in some #include "vtkFloatArray.h" and things like that of course. Zero compile errors. Had to remember to link against the new vtk lib files, so I removed vtkdll.lib and added vtkCommon.lib vtkGraphics.lib etc. Zero link errors. My program is up and running again, no apparant problems. Plus now I can use all the new features of vtk4. (And I'm sure it's faster but maybe that's my imagination.) Bye! Tim. ----- Original Message ----- From: "James C. Robinson" To: "Vtkusers at Public. Kitware. Com" Sent: Monday, June 17, 2002 2:11 PM Subject: [vtkusers] scalars etc > > Dear All, > > It continues - I have a very specific query. The following code no longer > works (as vtkScalar no longer seems to exist). Any ideas: > > vtkScalars *pPressures = pUnstructuredGrid->GetPointData()->GetScalars() > ; > > I have quickly gone thru the new doc and it seems that I should be accessing > a vtkDataArray where I either have a tuple of value 1 or 3 (for accessing > vector in a similar manner). > > Regards, > > Jim > ______________________ > > Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, > Kepler Engineering Software Ltd., > 42 Rivergrove, > Glanmire, Co. Cork, > Eire > > Tel: +353-21-4822028 > Tel: +353-87-2393010 > Fax: +353-21-4822721 > E-mail: j.robinson at kepler.ie > ______________________ > > > _______________________________________________ > 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 mnorton at cisco.com Mon Jun 17 14:24:59 2002 From: mnorton at cisco.com (Michael Norton) Date: Mon, 17 Jun 2002 11:24:59 -0700 Subject: [vtkusers] [Q]vtk40 Tcl programming vtkUnstructuredGrid Message-ID: <4.3.2.7.2.20020617112108.01f2c538@mira-sjcm-2.cisco.com> hi, I have the following lines of C++ code. vtkUnstructuredGrid *aPolyLineGrid = vtkUnstructuredGrid::New(); aPolyLineGrid->Allocate(1, 1); aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(), aPolyLine->GetPointIds()); aPolyLineGrid->SetPoints(polyLinePoints); What would the Tcl code look like? vtkUnstructuredGrid aPolyLineGrid aPolyLineGrid Allocate 1 1 # ??? and how do I handle this? aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(), aPolyLine->GetPointIds()); aPolyLineGrid->SetPoints(polyLinePoints); thanks, Mike N From jbiddiscombe at skippingmouse.co.uk Mon Jun 17 16:29:59 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Mon, 17 Jun 2002 21:29:59 +0100 Subject: [vtkusers] Conversion to v4.0 References: Message-ID: <002501c2163d$c104f960$0100a8c0@tigger> /* ctime.h Standard C header file wrapper for time.h */ You mioght be getting this included as vtk4 does include a lot of standard headers. see some of the VTK_USE_STUFF flags in cmake and try tuirning off some of them just guessing JB ----- Original Message ----- From: "James C. Robinson" To: "Vtkusers at Public. Kitware. Com" Sent: Monday, June 17, 2002 6:13 PM Subject: [vtkusers] Conversion to v4.0 > Dear All, > > I am currently trying to convert from VTK v3.2 to v4.0. I am recompiling my > code and am getting a strange error. The following line: > > PauseSpan += CTime::GetCurrentTime() - Pause_time ; > > Results in the following error: > > C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2039: > 'GetCurrentTime' : is not a member of 'CTime' > C:\Program Files\Microsoft Visual > Studio\VC98\MFC\Include\afx.h(1532) : see declaration of 'CTime' > C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2065: > 'GetCurrentTime' : undeclared identifier > > However, the definition of CTime does include a GetCurrentTime method: > > class CTime > { > public: > > // Constructors > static CTime PASCAL GetCurrentTime(); > > If I remove the include files that are connected to vtk this error > disappears. Has anybody an idea of the source of the error (NB: The same > file compiles without erro when the include files are the v3.2 versions). > > Regards, > > Jim > ______________________ > > Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, > Kepler Engineering Software Ltd., > 42 Rivergrove, > Glanmire, Co. Cork, > Eire > > Tel: +353-21-4822028 > Tel: +353-87-2393010 > Fax: +353-21-4822721 > E-mail: j.robinson at kepler.ie > ______________________ > > > _______________________________________________ > 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 17 16:38:42 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 17 Jun 2002 16:38:42 -0400 Subject: [vtkusers] Conversion to v4.0 In-Reply-To: Message-ID: <5.0.2.1.0.20020617163420.04432a70@pop.nycap.rr.com> In windows.h GetCurrentTime is #define to GetCurrentTime[AD] depending on if you are debug or release. (There are about 1000 of these #define's in windows.h.) To get around this problem in vtkTimerLog.h VTK now has this macro: // The microsoft compiler defines this as a macro, so // undefine it here #undef GetCurrentTime class VTK_COMMON_EXPORT vtkTimerLog : public vtkObject You could try re-ordering your #include lines. -Bill At 06:13 PM 6/17/2002 +0100, James C. Robinson wrote: >Dear All, > >I am currently trying to convert from VTK v3.2 to v4.0. I am recompiling my >code and am getting a strange error. The following line: > >PauseSpan += CTime::GetCurrentTime() - Pause_time ; > >Results in the following error: > >C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2039: >'GetCurrentTime' : is not a member of 'CTime' > C:\Program Files\Microsoft Visual >Studio\VC98\MFC\Include\afx.h(1532) : see declaration of 'CTime' >C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2065: >'GetCurrentTime' : undeclared identifier > >However, the definition of CTime does include a GetCurrentTime method: > >class CTime >{ >public: > >// Constructors > static CTime PASCAL GetCurrentTime(); > >If I remove the include files that are connected to vtk this error >disappears. Has anybody an idea of the source of the error (NB: The same >file compiles without erro when the include files are the v3.2 versions). > >Regards, > >Jim >______________________ > >Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, >Kepler Engineering Software Ltd., >42 Rivergrove, >Glanmire, Co. Cork, >Eire > >Tel: +353-21-4822028 >Tel: +353-87-2393010 >Fax: +353-21-4822721 >E-mail: j.robinson at kepler.ie >______________________ > > >_______________________________________________ >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 recampb at sandia.gov Mon Jun 17 17:45:39 2002 From: recampb at sandia.gov (Campbell, Robert E) Date: Mon, 17 Jun 2002 15:45:39 -0600 Subject: [vtkusers] using multiple vectors Message-ID: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637DB@es05snlnt> Hi, does anyone know if there is a way to set multiple sets of vectors for vtkPointData? I am trying to represent vector data as glyphs as well as using a separate set of displacement vectors along with the vtkWarpVector, but right now I'm only able to use one or the other, due to the limited vtkPointData->SetVectors() function. Does anyone know a way around this? Thanks, ~Bob From krw at viz-solutions.com Mon Jun 17 17:44:34 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon, 17 Jun 2002 14:44:34 -0700 Subject: [vtkusers] using multiple vectors In-Reply-To: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637DB@es05snlnt> Message-ID: <5.1.0.14.0.20020617144110.00a953b0@mail.viz-solutions.com> At 03:45 PM 6/17/2002 -0600, you wrote: >Hi, does anyone know if there is a way to set multiple sets of vectors for >vtkPointData? I am trying to represent vector data as glyphs as well as >using a separate set of displacement vectors along with the vtkWarpVector, >but right now I'm only able to use one or the other, due to the limited >vtkPointData->SetVectors() function. Does anyone know a way around this? vtkPointData *pd = data->GetPointData(); vtkDataArray *otherVector; pd->AddArray(otherVector); Kevin. From berk.geveci at kitware.com Mon Jun 17 19:22:28 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 17 Jun 2002 18:22:28 -0500 Subject: [vtkusers] using multiple vectors In-Reply-To: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637DB@es05snlnt> References: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637DB@es05snlnt> Message-ID: <1024356151.2735.4.camel@TarValon> As of VTK 4.0, you can add as many arrays as you want to the point or cell data with AddArray() (to learn more about the interface, look at the documentation of vtkFieldData and vtkDataSetAttributes -superclasses of vtkPointData and vtkCellData-). However, there can be only one active "attribute" of each type (scalar, vector, normal etc.) at one time. To change the active attribute, you can use the vtkAssignAttribute filter. -Berk On Mon, 2002-06-17 at 16:45, Campbell, Robert E wrote: > Hi, does anyone know if there is a way to set multiple sets of vectors for > vtkPointData? I am trying to represent vector data as glyphs as well as > using a separate set of displacement vectors along with the vtkWarpVector, > but right now I'm only able to use one or the other, due to the limited > vtkPointData->SetVectors() function. Does anyone know a way around this? > Thanks, > ~Bob > > _______________________________________________ > 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 alexandre.gouaillard at insa-lyon.fr Mon Jun 17 19:03:52 2002 From: alexandre.gouaillard at insa-lyon.fr (alexandre gouaillard) Date: Tue, 18 Jun 2002 01:03:52 +0200 Subject: [vtkusers] [Q]vtk40 Tcl programming vtkUnstructuredGrid References: <4.3.2.7.2.20020617112108.01f2c538@mira-sjcm-2.cisco.com> Message-ID: <003001c21653$3f7dc960$b8a4d686@piwi> try this vtkUnstructuredGrid aPolyLineGrid aPolyLineGrid Allocate 1 1 aPolyLineGrid InsertNextCell [aPolyLine GetCellType] [aPolyLine GetPointIds] aPolyLineGrid SetPoints polyLinePoints ----- Original Message ----- From: "Michael Norton" To: Sent: Monday, June 17, 2002 8:24 PM Subject: [vtkusers] [Q]vtk40 Tcl programming vtkUnstructuredGrid > hi, > > I have the following lines of C++ code. > > vtkUnstructuredGrid *aPolyLineGrid = vtkUnstructuredGrid::New(); > aPolyLineGrid->Allocate(1, 1); > aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(), > aPolyLine->GetPointIds()); > aPolyLineGrid->SetPoints(polyLinePoints); > > What would the Tcl code look like? > > vtkUnstructuredGrid aPolyLineGrid > aPolyLineGrid Allocate 1 1 # ??? > > and how do I handle this? > aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(), > aPolyLine->GetPointIds()); > aPolyLineGrid->SetPoints(polyLinePoints); > > > thanks, > > Mike N > > _______________________________________________ > 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 acfr.usyd.edu.au Tue Jun 18 01:00:10 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 18 Jun 2002 15:00:10 +1000 Subject: [vtkusers] Parametric Representations of surfaces Message-ID: <006501c21685$05f8d450$acd24e81@acfr.usyd.edu.au> Is it possible for vtk to handle parametric representations of a surface in a way simular to the implicit functions? I.e For a given p(u, v) in [0, 2* PI] Generate x(p), y(p), z(p), x'(p), y'(p), z'(p) and use them in a similar way to the implicit functions like vtkSphere etc. Has anyone any ideas on how to do plots of parametric representations of a surface? Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernard.frei at unifr.ch Tue Jun 18 05:20:48 2002 From: bernard.frei at unifr.ch (Bernard FREI) Date: Tue, 18 Jun 2002 10:20:48 +0100 Subject: [vtkusers] Version conflict within VisualStudio6 at CMake files Message-ID: <4.2.0.58.20020618101917.00971960@f-user.unifr.ch> An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Tue Jun 18 04:31:29 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 18 Jun 2002 10:31:29 +0200 (CEST) Subject: [vtkusers] patended?? Message-ID: Hello Everybody, just a simple question, using CMAKE I saw the Patented option, what does it mean? What I will produce enabling that option? thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From j.robinson at kepler.ie Tue Jun 18 07:07:44 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Tue, 18 Jun 2002 12:07:44 +0100 Subject: [vtkusers] GetCurrentTime Message-ID: Dear All, Thanks for the help in this matter. Probably others of you who didn't reply realised that there is a simpler solution (one of two that I have implemented). The first is to create a new .cpp file to separate the methods that make a call to the offending Ctime::GetCurrentTime from the methods that use VTK. This will not be possible, though, when the call is being made in a VTK based class that makes the call. The solution there is to create a global function that calls the CTime::GetCurrentTime method and passes back the result: #include "stdafx.h" #include "global.h" // This separate file is created to avoid a compile error associated with VTK and // GetCurrentTime. CTime GetTime() { return CTime::GetCurrentTime() ; } Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From j.robinson at kepler.ie Tue Jun 18 07:07:57 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Tue, 18 Jun 2002 12:07:57 +0100 Subject: [vtkusers] dlls? Message-ID: Dear All, Another area of confusion (for this amateur programmer) is the use of dlls. I have created my application with the intention of attaching all required libraries statically (setting them in the link settings dialog box). I have managed to compile and link ? creating the application. I then figured out that the application still needed all the dlls provided with VTK. My questions are: * Where are the libs required for each class listed? * Can I link my application statically so that I do not have to supply any dlls with it? Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 959 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 501 bytes Desc: not available URL: From j.robinson at kepler.ie Tue Jun 18 07:07:46 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Tue, 18 Jun 2002 12:07:46 +0100 Subject: [vtkusers] Unclear manifold edges Message-ID: Dear All, I am using VTK to view a FE mesh (3D). I read in the mesh as a vtkUnStructuredGrid. I create the element outlines using a vtkFeatures object and turning the manifold edges on. The result using version 4.0: is not as good as what was achieved using v3.2: As you can see the lines aren't as solid and flicker when the image is rotated. Any ideas? Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 12106 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 13487 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 959 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 6257 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 6652 bytes Desc: not available URL: From dsaez at iti.upv.es Tue Jun 18 09:43:15 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Tue, 18 Jun 2002 15:43:15 +0200 Subject: [vtkusers] VTK MAC OSX wrap Java Message-ID: <20020618134322.1CE9F15EA24@mailborg.iti.upv.es> Hello all, I once built VTK on a Mac OSX using only Quartz, I had to do some changes in some files, but it built. Now I have heard that it's not necessary any change if I get the last source code version. Then, I have get the last CVS version of CMake, VTKSrc and VTKData. If I build without any wrapping, there is no error (well, this goes well), but when I try to build with wrapping Java, the same error that I found with the last version appears: In vtkJavaUtil.cxx: thread.h and synch.h aren't found. Why this error is prodeced? In the last version I solved it by adding in vtkJavaUtil.cxx (see ADDED): #ifdef VTK_USE_SPROC // for SGI's #include abilock_t vtkGlobalMutex; static void vtk_get_mutex() { static int inited = 0; if (!inited) { if (init_lock(&vtkGlobalMutex) < 0) perror("initializing mutex"); inited = 1; } spin_lock(&vtkGlobalMutex); } static void vtk_release_mutex() { if (release_lock(&vtkGlobalMutex) < 0) perror("releasing mutex"); } #define VTK_GET_MUTEX() vtk_get_mutex() #define VTK_RELEASE_MUTEX() vtk_release_mutex() //ADDED #elif defined(__FreeBSD__) || defined(__linux__) || defined(sgi) || defined (__APPLE__) //END ADDED #include pthread_mutex_t vtkGlobalMutex; #define VTK_GET_MUTEX() pthread_mutex_lock(&vtkGlobalMutex) #define VTK_RELEASE_MUTEX() pthread_mutex_unlock(&vtkGlobalMutex) #else // for solaris #include #include mutex_t vtkGlobalMutex; #define VTK_GET_MUTEX() mutex_lock(&vtkGlobalMutex) #define VTK_RELEASE_MUTEX() mutex_unlock(&vtkGlobalMutex) #endif Do I have to do this in this version? How do I solve this error? Thank You Daniel From schein at cs.Technion.AC.IL Tue Jun 18 11:16:27 2002 From: schein at cs.Technion.AC.IL (sagi schein) Date: Tue, 18 Jun 2002 17:16:27 +0200 Subject: [vtkusers] how do I set normals Message-ID: <000001c216db$1fddbe70$54294484@cs.technion.ac.il> Is there any way to set normals to the vertices of a polygonal model ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Vincent.Daanen at imag.fr Tue Jun 18 10:56:35 2002 From: Vincent.Daanen at imag.fr (Vincent Daanen) Date: Tue, 18 Jun 2002 16:56:35 +0200 Subject: [vtkusers] Bug in VRML exporter ? Message-ID: <3D0F4A23.E3F2E0A0@mail-timc.imag.fr> Hi boys I'm using vtk to generate an isosurface with the marching cube algorithm. Once the isosurface has been built, I export it with the VRML exporter. Here comes the problem ! I can read the vrml file generated with the VRML importer of vtk but others softwares can't ? Is there a known bug in the vtk VRML exporter ? thanks Vince From ron at mediguide.co.il Tue Jun 18 11:50:29 2002 From: ron at mediguide.co.il (Ron Inbar) Date: Tue, 18 Jun 2002 17:50:29 +0200 Subject: [vtkusers] Tcl interaction Message-ID: <41D589F200A5D511AA0D000102DEB87948A8EF@MAIL-S> Hi, If I remember correctly, there are two ways to interact with the contents of a RenderWindow using Tcl: 1. the class vtkRenderWindowInteractor 2. the Tcl package vtkinteraction The first method has the disadvantage that it cannot be customized using Tcl. Correct me if I'm wrong so far. Where can I find a description of the 2nd method? Thanks in advance, Ron From sebbe at multitel.be Tue Jun 18 11:34:52 2002 From: sebbe at multitel.be (Raphael Sebbe) Date: Tue, 18 Jun 2002 17:34:52 +0200 Subject: [vtkusers] Running VTK on Mac OS X, II Message-ID: Hi all, There's some progress since my last post, but I can't still get it to work. Here is what I did so far: Variable Name: OPENGL_INCLUDE_PATH Description: What is the path where the file GL/gl.h can be found Current Value: /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers New Value (Enter to keep current value): Variable Name: OPENGL_LIBRARY Description: Where can the GL library be found Current Value: -framework OpenGL -framework AppKit New Value (Enter to keep current value): Variable Name: VTK_USE_QUARTZ Description: Build classes for the Quartz window manager Current Value: ON ------ When running Mace from VTK/bin, I now see a window open with 3D content (spiky ball, or something), but it immediately closes saying: ./Mace pure virtual method called Abort I give a gdb backtrace at the end of the message. More, I saw from a previous post it was somehow possible to configure whether to use the Carbon or Cocoa back-end from CMakeCache.txt, but I only saw VTK_USE_QUARTZ:BOOL=ON in it that seems to be relevant. Could someone give some more specifics on this (name and value of the flag) ? Thanks, Raphael Sebbe #0 0x7001a70c in kill () #1 0x7006f990 in abort () #2 0x03c9caa8 in __terminate () at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderingInstantiator8.cxx:15 #3 0x03c9a120 in __pure_virtual () at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderingInstantiator8.cxx:15 #4 0x03c7cfd4 in vtkOpenGLPolyDataMapper::ReleaseGraphicsResources (this=0x19d070, win=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkOpenGLPolyDataMapper.cxx:69 #5 0x03b6eef0 in vtkActor::ReleaseGraphicsResources (this=0x19d2c0, win=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkActor.cxx:221 #6 0x03c1d980 in vtkRenderer::SetRenderWindow (this=0x1995f0, renwin=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderer.cxx:901 #7 0x03c1a8c0 in vtkRenderer::~vtkRenderer (this=0x1995f0, __in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderer.cxx:84 #8 0x03c86d90 in vtkOpenGLRenderer::~vtkOpenGLRenderer (this=0x1995f0, __in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkOpenGLRenderer.cxx:334 #9 0x00c42248 in vtkObject::UnRegister (this=0x1995f0, o=0x1999f0) at /Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253 #10 0x00bac4a8 in vtkCollection::DeleteElement (this=0x0, e=0x1976b0) at /Users/raf/Desktop/VTK/VTK/Common/vtkCollection.cxx:57 #11 0x00bac43c in vtkCollection::~vtkCollection (this=0x1999f0, __in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Common/vtkCollection.cxx:47 #12 0x03c23354 in vtkRendererCollection::~vtkRendererCollection (this=0x0, __in_chrg=0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRendererCollection.h:57 #13 0x00c42248 in vtkObject::UnRegister (this=0x1999f0, o=0x0) at /Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253 #14 0x00c41190 in vtkObject::Delete (this=0x0) at /Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:125 #15 0x03c09f0c in vtkRenderWindow::~vtkRenderWindow (this=0x1998a0, __in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindow.cxx:91 #16 0x03c8f37c in _._21vtkQuartzRenderWindow (this=0x1998a0, __in_chrg=3) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkQuartzRenderWindow.mm:98 #17 0x00c42248 in vtkObject::UnRegister (this=0x1998a0, o=0x199a80) at /Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:253 #18 0x03c0cf8c in vtkRenderWindow::UnRegister (this=0x1998a0, o=0x199a80) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindow.cxx:1013 #19 0x03c1345c in vtkRenderWindowInteractor::SetRenderWindow (this=0x199a80, aren=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindowInteractor.cxx:125 #20 0x03c133f8 in vtkRenderWindowInteractor::UnRegister (this=0x199a80, o=0x0) at /Users/raf/Desktop/VTK/VTK/Rendering/vtkRenderWindowInteractor.cxx:109 #21 0x00c41190 in vtkObject::Delete (this=0x0) at /Users/raf/Desktop/VTK/VTK/Common/vtkObject.cxx:125 #22 0x000038d4 in main (argc=1, argv=0xbffff938) at /Users/raf/Desktop/VTK/VTK/Graphics/Testing/Cxx/Mace.cxx:81 #23 0x00002b70 in _start () #24 0x000029a0 in start () From krw at viz-solutions.com Tue Jun 18 12:08:13 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Tue, 18 Jun 2002 09:08:13 -0700 Subject: [vtkusers] patended?? In-Reply-To: Message-ID: <5.1.0.14.0.20020618090604.00b00eb0@mail.viz-solutions.com> >just a simple question, using CMAKE I saw the Patented option, what does >it mean? Everything in the patented directory is an algorithm which has a patent. So, if you're developing commercial software, you'll need to get somebody's permission to use these classes. Building this directory just gives you access to these other classes. Kevin. From brownr at ucalgary.ca Tue Jun 18 12:25:53 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Tue, 18 Jun 2002 10:25:53 -0600 Subject: [vtkusers] problems building latest VTK on OSX Message-ID: I can't seem to build the latest (CVS from last Friday or nightly from today) VTK on OSX (carbon). I'm getting undefined symbols that look like part of the open (Apple?) GL library. I notice that the Cocoa framework is being included even though I specified to build with Carbon. Is this normal? Here's the part that crashes: c++ -multiply_defined suppress -framework Carbon -dynamiclib -Wno-deprecated -fpascal-strings -o /Users/rbrown/compilation/VTKAqua-June18/bin/libvtkRendering.dylib vtkAbstractMapper3D.o vtkAbstractPicker.o vtkAbstractPropPicker.o vtkActor.o vtkActorCollection.o vtkAssembly.o vtkAxisActor2D.o vtkCamera.o vtkCellPicker.o vtkCuller.o vtkCullerCollection.o vtkDataSetMapper.o vtkDirectionEncoder.o vtkEncodedGradientEstimator.o vtkEncodedGradientShader.o vtkExporter.o vtkFiniteDifferenceGradientEstimator.o vtkFollower.o vtkFrustumCoverageCuller.o vtkGenericRenderWindowInteractor.o vtkGraphicsFactory.o vtkIVExporter.o vtkImageActor.o vtkImageMapper.o vtkImageViewer.o vtkImageViewer2.o vtkImagingFactory.o vtkImporter.o vtkInteractorObserver.o vtkInteractorStyle.o vtkInteractorStyleFlight.o vtkInteractorStyleImage.o vtkInteractorStyleJoystickActor.o vtkInteractorStyleJoystickCamera.o vtkInteractorStyleSwitch.o vtkInteractorStyleTerrain.o vtkInteractorStyleTrackball.o vtkInteractorStyleTrackballActor.o vtkInteractorStyleTrackballCamera.o vtkInteractorStyleUnicam.o vtkInteractorStyleUser.o vtkLODActor.o vtkLODProp3D.o vtkLabeledDataMapper.o vtkLight.o vtkLightCollection.o vtkLightKit.o vtkMapper.o vtkMapperCollection.o vtkOBJExporter.o vtkOOGLExporter.o vtkParallelCoordinatesActor.o vtkPicker.o vtkPointPicker.o vtkPolyDataMapper.o vtkPolyDataMapper2D.o vtkProp3D.o vtkProp3DCollection.o vtkPropPicker.o vtkProperty.o vtkRecursiveSphereDirectionEncoder.o vtkRenderWindow.o vtkRenderWindowCollection.o vtkRenderWindowInteractor.o vtkRenderer.o vtkRendererCollection.o vtkRendererSource.o vtkScalarBarActor.o vtkScaledTextActor.o vtkSelectVisiblePoints.o vtkTextActor.o vtkTextMapper.o vtkTexture.o vtkVRMLExporter.o vtkVolume.o vtkVolumeCollection.o vtkVolumeMapper.o vtkVolumeProMapper.o vtkVolumeProperty.o vtkVolumeRayCastCompositeFunction.o vtkVolumeRayCastFunction.o vtkVolumeRayCastIsosurfaceFunction.o vtkVolumeRayCastMIPFunction.o vtkVolumeRayCastMapper.o vtkVolumeTextureMapper.o vtkVolumeTextureMapper2D.o vtkWindowToImageFilter.o vtkWorldPointPicker.o vtkOpenGLActor.o vtkOpenGLCamera.o vtkOpenGLImageActor.o vtkOpenGLImageMapper.o vtkOpenGLLight.o vtkOpenGLPolyDataMapper.o vtkOpenGLPolyDataMapper2D.o vtkOpenGLProperty.o vtkOpenGLRenderer.o vtkOpenGLRenderWindow.o vtkOpenGLTexture.o vtkOpenGLVolumeRayCastMapper.o vtkOpenGLVolumeTextureMapper2D.o vtkCarbonTextMapper.o vtkCarbonRenderWindowInteractor.o vtkCarbonRenderWindow.o vtkRenderingInstantiator.o vtkRenderingInstantiator0.o vtkRenderingInstantiator1.o vtkRenderingInstantiator2.o vtkRenderingInstantiator3.o vtkRenderingInstantiator4.o vtkRenderingInstantiator5.o vtkRenderingInstantiator6.o vtkRenderingInstantiator7.o vtkRenderingInstantiator8.o -L/Users/rbrown/compilation/VTKAqua-June18/bin -lpthread -lm -framework AppKit -framework OpenGL -framework Cocoa -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkGraphics -lvtkImaging -lvtkGraphics -lvtkFiltering -lvtkCommon -lpthread -lm -framework AppKit -framework OpenGL -framework Cocoa -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -framework AppKit -framework OpenGL -framework Cocoa -lm -lpthread ld: Undefined symbols: _aglErrorString _aglGetError _aglSetCurrentContext _aglUseFont _aglUpdateContext _aglChoosePixelFormat _aglCreateContext _aglDescribeRenderer _aglDestroyContext _aglDestroyRendererInfo _aglEnable _aglNextRendererInfo _aglQueryRendererInfo _aglSetDrawable _aglSetInteger _aglSwapBuffers /usr/bin/libtool: internal link edit command failed make[3]: *** [/Users/rbrown/compilation/VTKAqua-June18/bin/libvtkRendering.dylib] Error 1 Thanks, -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From jaume at tele.ucl.ac.be Tue Jun 18 12:50:54 2002 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Tue, 18 Jun 2002 18:50:54 +0200 (MEST) Subject: [vtkusers] how do I set normals In-Reply-To: <000001c216db$1fddbe70$54294484@cs.technion.ac.il> Message-ID: try vtkPolyDataNormals Sylvain On Tue, 18 Jun 2002, sagi schein wrote: > Is there any way to set normals to the vertices of a polygonal model ? > From Nikil.Mehta at jpl.nasa.gov Tue Jun 18 14:47:19 2002 From: Nikil.Mehta at jpl.nasa.gov (Nikil Mehta) Date: Tue, 18 Jun 2002 11:47:19 -0700 Subject: [vtkusers] newbie vtk/java help? Message-ID: <5.1.0.14.2.20020618114425.00a94e48@mail1.jpl.nasa.gov> I'm a fairly young coder who is trying to use VTK with java. The documentation for doing so is pretty much non-existant. The first thing (and most important) that I need to do is create a simple 2D plot. Does anyone have any example code that may help? Thanks. Nikil From simon.faust at post.rwth-aachen.de Tue Jun 18 15:11:59 2002 From: simon.faust at post.rwth-aachen.de (Simon Faust) Date: Tue, 18 Jun 2002 21:11:59 +0200 Subject: [vtkusers] Visible-surface determination Message-ID: <3D0F85FF.70603@post.rwth-aachen.de> Hi, I use vtkTkRenderWidget in order to display several objects that alltogether form a building with some installations in it. Problem ist that objects that should not be visible (i.e. the floor of a room when your viewpoint is over the roof) "jump" into the foreground and overlay objects that should be visible. The error occurs when rotating or zooming around/in the scene. Any hints welcome. Simon From dgobbi at irus.rri.ca Tue Jun 18 15:20:18 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Tue, 18 Jun 2002 15:20:18 -0400 (EDT) Subject: [vtkusers] Visible-surface determination In-Reply-To: <3D0F85FF.70603@post.rwth-aachen.de> Message-ID: Hi Simon, The problem is probably not that the floor 'jumps in front of' the roof, it is more likely that the roof is positioned in front of the near clipping plane and is not being rendered. If you do a ResetCameraClippingPlanes before each render the problem should go away (as long as roof does not end up behind the camera). Cheers, - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Tue, 18 Jun 2002, Simon Faust wrote: > Hi, > I use vtkTkRenderWidget in order to display several objects that > alltogether form a building with some installations in it. Problem ist > that objects that should not be visible (i.e. the floor of a room when > your viewpoint is over the roof) "jump" into the foreground and overlay > objects that should be visible. The error occurs when rotating or > zooming around/in the scene. Any hints welcome. > Simon > > > _______________________________________________ > 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 rgupta at irus.rri.ca Tue Jun 18 15:27:22 2002 From: rgupta at irus.rri.ca (Ravi Gupta) Date: Tue, 18 Jun 2002 15:27:22 -0400 Subject: [vtkusers] Extracting Volume Of Interest from Image Data References: <5.1.0.14.2.20020618114425.00a94e48@mail1.jpl.nasa.gov> Message-ID: <3D0F899A.4080809@irus.rri.ca> Hi, vtkImageReader has a method SetVOI() Set/get the data VOI. You can limit the reader to only read a subset of the data. How would I do the same if I had a volume of vtkImageData and wanted to use/extract only a subset of the data? I looked at vtkImageCut & Reslice but they don't seem to have what I need, unless I missed something. Thanks for you help. Ravi -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta at irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi From elbanna_m at hotmail.com Tue Jun 18 15:27:35 2002 From: elbanna_m at hotmail.com (Mahmoud El-Banna) Date: Tue, 18 Jun 2002 22:27:35 +0300 Subject: [vtkusers] VTKN Warning? Message-ID: Dear All, i have encounterd the following warning in vtk ouput window: Warning: In D:\VTK\Patented\vtkDecimate.cxx, line 678 vtkDecimate (016FE840): Non-manifold geometry encountered i want to know the reason of the this warning and how can i fix it. any help will be appreciated Mahmoud El-Banna _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From MulhearnJF at Npt.NUWC.Navy.Mil Tue Jun 18 15:34:56 2002 From: MulhearnJF at Npt.NUWC.Navy.Mil (Mulhearn James F NPRI) Date: Tue, 18 Jun 2002 15:34:56 -0400 Subject: [vtkusers] C++ Gui file Message-ID: <3BEEE23D31CAD2118D920008C75D8946026B5A39@NPRI54EXC21.NPT.NUWC.NAVY.MIL> Does anyone have a simple C++ GUI example using vtkInteractorStyle/vtkInteractorStyleUser to select "something" by moving/clicking the mouse in a visualization of a 3-D structured data set ? I'm not quite there yet as a C++ programmer but do well with examples! > Jim Mulhearn > MulhearnJF at npt.nuwc.navy.mil > 401-832-5734(VOICE) or 800-NOW-NUWC then enter 25734 > 401-832-7487(FAX) > > From dakca at ins.itu.edu.tr Tue Jun 18 18:20:06 2002 From: dakca at ins.itu.edu.tr (Devrim =?iso-8859-1?Q?AK=C7A?=) Date: Wed, 19 Jun 2002 01:20:06 +0300 Subject: [vtkusers] 3D PointCloud Visualization VERSUS Memory usage Message-ID: <20020618222006.21434.qmail@srv.ins.itu.edu.tr> Hello (from an unexperienced VTK user) to all VTK users, I have a Point Cloud which have 3 000 000 points. Every point have X-Y-Z coordinates (float) and an intensity value (integer). How can I visualize this point cloud in a afficiently manner (with using minumum MEMORY)? For visualization of this point cloud, I write a code (below). But when it runs, it takes approximately 250MB memory from OS. But the size of my data approximately 40MB. What is the meaning of this big difference? So, it works very very slowly. Is there another efficiently solution? //---------------------------------------------------------- float x[3]; vtkIdType pts[1]; int iPON; //.... vtkPolyData *cloud = vtkPolyData::New(); vtkPoints *points = vtkPoints::New(); vtkCellArray *cells = vtkCellArray::New(); vtkIntArray *intensities = vtkintArray::New(); //loop started... points->InsertPoint(i,x); cells->InsertNextCell(1,pts); intensities->InsertTuple(i,iPON); //loop ended... cloud->SetPoints(points); points->Delete(); cloud->SetPolys(cells); cells->Delete(); cloud->GetPointData()->SetScalars(intensities); intensities->Delete(); vtkPolyDataMapper *cloudMapper = vtkPolyDataMapper::New(); cloudMapper->SetInput(cloud); vtkActor *cloudActor = vtkActor::New(); cloudActor->SetMapper(cloudMapper); cloudActor->GetProperty()->SetRepresentationToPoints(); //...... //----------------------------------------------------------- My Specifications: C++Builder 5.0 + WIN2000 Pentium III CPU + 128MB Memory ATI 3D RAGE PRO AGP 2X (8 MB) displayCard //----------------------------------------------------------- Is there a more efficient and more faster way to visualize this PointCloud? If anybody prefer something to me I would be pleased... Best Regards... Ass.Res.M.Devrim AKCA Istanbul Technical University Dep. of Geodesy and Photogrammetry Division of Photogrammetry 80626-Maslak/Istanbul TURKEY +90 212 2856553 +90 533 2200022 From berk.geveci at kitware.com Tue Jun 18 16:43:32 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 18 Jun 2002 16:43:32 -0400 Subject: [vtkusers] 3D PointCloud Visualization VERSUS Memory usage In-Reply-To: <20020618222006.21434.qmail@srv.ins.itu.edu.tr> References: <20020618222006.21434.qmail@srv.ins.itu.edu.tr> Message-ID: <1024433013.9468.30.camel@caemlyn.kitwarein.com> Did you try switching to immediate mode rendering ? Check http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq03.007.htp Also, you should use vtkPolyData::SetVerts() not vtkPolyData::SetPolys() You won't gain any memory but it's a better way. -Berk On Tue, 2002-06-18 at 18:20, Devrim AK?A wrote: > Hello (from an unexperienced VTK user) to all VTK users, > > I have a Point Cloud which have 3 000 000 points. Every point have X-Y-Z > coordinates (float) and an intensity value (integer). How can I visualize > this point cloud in a afficiently manner (with using minumum MEMORY)? > > For visualization of this point cloud, I write a code (below). But when it > runs, it takes approximately 250MB memory from OS. But the size of my data > approximately 40MB. What is the meaning of this big difference? > > So, it works very very slowly. Is there another efficiently solution? > > > //---------------------------------------------------------- > float x[3]; > vtkIdType pts[1]; > int iPON; > > //.... > > vtkPolyData *cloud = vtkPolyData::New(); > vtkPoints *points = vtkPoints::New(); > vtkCellArray *cells = vtkCellArray::New(); > vtkIntArray *intensities = vtkintArray::New(); > > //loop started... > > points->InsertPoint(i,x); > cells->InsertNextCell(1,pts); > intensities->InsertTuple(i,iPON); > > //loop ended... > > cloud->SetPoints(points); points->Delete(); > cloud->SetPolys(cells); cells->Delete(); > cloud->GetPointData()->SetScalars(intensities); intensities->Delete(); > > vtkPolyDataMapper *cloudMapper = vtkPolyDataMapper::New(); > cloudMapper->SetInput(cloud); > > vtkActor *cloudActor = vtkActor::New(); > cloudActor->SetMapper(cloudMapper); > cloudActor->GetProperty()->SetRepresentationToPoints(); > > //...... > //----------------------------------------------------------- > > My Specifications: C++Builder 5.0 + WIN2000 > Pentium III CPU + 128MB Memory > ATI 3D RAGE PRO AGP 2X (8 MB) displayCard > //----------------------------------------------------------- > Is there a more efficient and more faster way to visualize this PointCloud? > If anybody prefer something to me I would be pleased... > > Best Regards... > > > > Ass.Res.M.Devrim AKCA > Istanbul Technical University > Dep. of Geodesy and Photogrammetry > Division of Photogrammetry > 80626-Maslak/Istanbul TURKEY > +90 212 2856553 > +90 533 2200022 > _______________________________________________ > 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 simon.faust at post.rwth-aachen.de Tue Jun 18 16:58:37 2002 From: simon.faust at post.rwth-aachen.de (Simon Faust) Date: Tue, 18 Jun 2002 22:58:37 +0200 Subject: [vtkusers] Visible-surface determination References: Message-ID: <3D0F9EFD.7050603@post.rwth-aachen.de> Hi David, thanks for your help. When I try to call ResetCameraClippingRange, nothing seems to happen. Only when I try to set the clipping range manually the effect disappears. The objects of the foreground (roof) are rendered, but as they were located in the background, i.e. the faces of the roof that are not covered by the floor (that actually should be covered by the roof) are displayed. Another aspect might be that the effect does not occur when opacity is set to1 (still testing that). ciao Simon David Gobbi wrote: >Hi Simon, > >The problem is probably not that the floor 'jumps in front of' the >roof, it is more likely that the roof is positioned in front of the >near clipping plane and is not being rendered. >If you do a ResetCameraClippingPlanes before each render the problem >should go away (as long as roof does not end up behind the camera). > >Cheers, > - David > >-- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > >On Tue, 18 Jun 2002, Simon Faust wrote: > >>Hi, >>I use vtkTkRenderWidget in order to display several objects that >>alltogether form a building with some installations in it. Problem ist >>that objects that should not be visible (i.e. the floor of a room when >>your viewpoint is over the roof) "jump" into the foreground and overlay >>objects that should be visible. The error occurs when rotating or >>zooming around/in the scene. Any hints welcome. >>Simon >> >> >>_______________________________________________ >>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 alex_lear at hotmail.com Tue Jun 18 17:09:02 2002 From: alex_lear at hotmail.com (Alex Lear) Date: Tue, 18 Jun 2002 15:09:02 -0600 Subject: [vtkusers] Need probing help Message-ID: An HTML attachment was scrubbed... URL: From c.p.botha at its.tudelft.nl Tue Jun 18 17:15:02 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Tue, 18 Jun 2002 23:15:02 +0200 Subject: [vtkusers] Visible-surface determination Message-ID: <20020618211502.GB6321@o2w.nl> On Tue, Jun 18, 2002 at 10:58:37PM +0200, Simon Faust wrote: > covered by the roof) are displayed. Another aspect might be that the > effect does not occur when opacity is set to1 (still testing that). > ciao Simon If you're working with translucent geometry (i.e. with opacity non-unity) you should be very careful always to render in back-to-front order with the correct blending equations (or front-to-back, with suitable blending equations; in VTK, stick to back-to-front). -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From dgobbi at irus.rri.ca Tue Jun 18 17:17:35 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Tue, 18 Jun 2002 17:17:35 -0400 (EDT) Subject: [vtkusers] Visible-surface determination In-Reply-To: <3D0F9EAA.7030906@post.rwth-aachen.de> Message-ID: Hi Simon, The opacity is what is causing the problem. The depth buffer method that OpenGL (and most graphics toolkits) use to figure out which object are in front of other objects does not work properly unless everything in the scene is opaque. The solution is to make sure that polygons are rendered back to front, so that the rendering does not have to rely on the depth buffer. The vtkDepthSortPolyData filter can sort the polygons in an actor back-to-front, but this only works if you have only one transparent actor in the scene. If you have more than one transparent actor, then each time you render you have to remove all the actors from the renderer, and then add them back to the renderer in back-to-front order. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Tue, 18 Jun 2002, Simon Faust wrote: > Hi David, > thanks for your help. When I try to call ResetCameraClippingRange, > nothing seems to happen. Only when I try to set the clipping range > manually the effect disappears. The objects of the foreground (roof) are > rendered, but as they were located in the background, i.e. the faces of > the roof that are not covered by the floor (that actually should be > covered by the roof) are displayed. Another aspect might be that the > effect does not occur when opacity is set to1 (still testing that). > ciao Simon > > David Gobbi wrote: > > >Hi Simon, > > > >The problem is probably not that the floor 'jumps in front of' the > >roof, it is more likely that the roof is positioned in front of the > >near clipping plane and is not being rendered. > >If you do a ResetCameraClippingPlanes before each render the problem > >should go away (as long as roof does not end up behind the camera). > > > >Cheers, > > - David > > > >-- > > David Gobbi, MSc dgobbi at irus.rri.ca > > Advanced Imaging Research Group > > Robarts Research Institute, University of Western Ontario > > > >On Tue, 18 Jun 2002, Simon Faust wrote: > > > >>Hi, > >>I use vtkTkRenderWidget in order to display several objects that > >>alltogether form a building with some installations in it. Problem ist > >>that objects that should not be visible (i.e. the floor of a room when > >>your viewpoint is over the roof) "jump" into the foreground and overlay > >>objects that should be visible. The error occurs when rotating or > >>zooming around/in the scene. Any hints welcome. > >>Simon > >> > >> > >>_______________________________________________ > >>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 thomasvw at rogers.com Tue Jun 18 19:05:09 2002 From: thomasvw at rogers.com (Thomas Werner) Date: Tue, 18 Jun 2002 19:05:09 -0400 Subject: [vtkusers] Installation Problems Message-ID: <200206181905.09282.thomasvw@rogers.com> Hi there Sorry about yesturday, I thought I had previously subscribed. I have installed the redhat 7.3 rpms as packaged by Fabrice Bellet. I will be using vtk to run mayavi, a cfd vizualization tool. When I run the attached python test script, I get an error telling me that python can't find vtkpython. Any suggestions? Thanks in advance Thomas #!/usr/bin/env python import sys, traceback, re __HAS_TK = 0 def print_msg(msg): if __HAS_TK: tkMessageBox.showinfo("Information", msg) print msg else: print msg def print_err(msg): if __HAS_TK: tkMessageBox.showerror("ERROR", msg) print msg else: print msg def exception (): """ This function handles any exception derived from Exception and prints it out in a message box. Code merrily stolen from the Thinking in Python site.""" try: type, value, tb = sys.exc_info () info = traceback.extract_tb (tb) filename, lineno, function, text = info[-1] # last line only print_err ("Exception: %s:%d: %s: %s (in %s)" %\ (filename, lineno, type.__name__, str (value), function)) finally: type = value = tb = None # clean up print_msg("Testing if Tkinter is available... ") try: import Tkinter except ImportError: msg = "Sorry Tkinter does not appear to be available.\n"\ "Please check your Python installation. "\ "It is possible that you have not installed Tcl/Tk and Tkinter."\ "Please visit http://www.python.org for more details." print_err(msg) sys.exit(1) else: import tkMessageBox print_msg("OK - you have Tkinter") print_msg("TclVersion = %s, TkVersion = %s"%(Tkinter.TclVersion, Tkinter.TkVersion)) __HAS_TK = 1 def test_vtk_cone(): import vtkpython msg = """Testing a sample vtk program. You should see a 300x300 pixel window with a black background and with a magenta coloured Cone. You can interact with the cone using the mouse. To quit the test press q on the window. If this test is successful then the basic vtkpython installation is OK.""" print_msg (re.sub('\s+', ' ', msg)) # create a rendering window and renderer ren = vtkpython.vtkRenderer() renWin = vtkpython.vtkRenderWindow() renWin.AddRenderer(ren) iren = vtkpython.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create an actor and give it cone geometry cone = vtkpython.vtkConeSource() cone.SetResolution(40) coneMapper = vtkpython.vtkPolyDataMapper() coneMapper.SetInput(cone.GetOutput()) coneActor = vtkpython.vtkActor() coneActor.SetMapper(coneMapper) coneActor.GetProperty ().SetColor (0.5, 0.5, 1.0) ren.AddActor(coneActor) # enable user interface interactor iren.Initialize() iren.Start() def test_vtk_tk_render_widget(root): import vtkpython from vtkRenderWidget import vtkTkRenderWidget msg = """Testing a sample vtk program that uses the vtkTkRenderWidget. You should see a 300x300 pixel window with a black background and with a magenta coloured Cone. You can interact with the cone using the mouse. To quit the test press q on the window. If this test is successful then the vtkpython installation is OK. You should be able to use Tkinter and VTK properly.""" print_msg (re.sub('\s+', ' ', msg)) # create vtkTkRenderWidget t = Tkinter.Toplevel(root) pane = vtkTkRenderWidget(t,width=300,height=300) pane.bind("", lambda e=None: e.widget.winfo_toplevel().master.destroy()) ren = vtkpython.vtkRenderer() pane.GetRenderWindow().AddRenderer(ren) pane.pack(expand=1, fill='both') cone = vtkpython.vtkConeSource() cone.SetResolution(40) coneMapper = vtkpython.vtkPolyDataMapper() coneMapper.SetInput(cone.GetOutput()) coneActor = vtkpython.vtkActor() coneActor.SetMapper(coneMapper) coneActor.GetProperty ().SetColor (0.5, 0.5, 1.0) ren.AddActor(coneActor) def test_vtk(root): print_msg ("Testing if VTK can be imported ...") try: import vtkpython except ImportError: msg = "Sorry, vtkpython cannot be found by your Python "\ "installation." print_err(msg) sys.exit(1) else: print_msg("OK, vtkpython found.") test_kits() test_vtk_cone() print_msg ("Testing if vtkRenderWidget can be imported...") try: import vtkRenderWidget except ImportError: msg = """Sorry, module vtkRenderWidget cannot be found by your Python installation. First check if you have the file called vtkRenderWidget.py somewhere. If you do then most probably Python doesn't have this directory in its search path. The way to fix this would be to create a file called 'vtk.pth' containing a single line which is the path to the directory that contains vtkRenderWidget.py. Put this file in your Python directory's 'site-packages' directory.""" print_err (re.sub('\s+', ' ', msg)) sys.exit(1) else: print_msg("OK, vtkRenderWidget found.") test_vtk_tk_render_widget(root) def test_kits(): import vtkpython print_msg ("Testing if vtkCubeAxesActor2D can be instantiated ...") try: a = vtkpython.vtkCubeAxesActor2D() except AttributeError: msg = """Warning: Unable to create a vtkCubeAxesActor2D object. You will not be able to use all the MayaVi modules especially the Axes module. Under VTK 3.x you need to also compile the 'contrib' classes. Under 4.x you need to also compile the 'Hybrid' classes.""" print_err (re.sub('\s+', ' ', msg)) else: print_msg("OK, vtkCubeAxesActor2D can be instantiated.") if __name__ == "__main__": root = Tkinter.Tk() root.withdraw() test_vtk(root) root.mainloop() From andresba at hotmail.com Tue Jun 18 21:25:49 2002 From: andresba at hotmail.com (Andres Barrera) Date: Tue, 18 Jun 2002 20:25:49 -0500 Subject: [vtkusers] Visible-surface determination Message-ID: This question is not exactly related with the problem presented by Simon, but it looks you can help me... - Given a surface made out of triangles, there is any way I can get the intensity of light from each visible triangle by using VTK, or should I implement some ray-casting myself? Thank you very much for your help Andres >From: David Gobbi >To: Simon Faust >CC: VTK Mailing List >Subject: Re: [vtkusers] Visible-surface determination >Date: Tue, 18 Jun 2002 17:17:35 -0400 (EDT) >MIME-Version: 1.0 >Received: from [24.97.130.19] by hotmail.com (3.2) with ESMTP id >MHotMailBED8EF6800B84004325818618213E9000; Tue, 18 Jun 2002 14:22:12 -0700 >Received: from public.kitware.com (localhost [127.0.0.1])by >public.kitware.com (Postfix) with ESMTPid 4A6C21ABF3; Tue, 18 Jun 2002 >17:18:04 -0400 (EDT) >Received: from theremin.irus.rri.on.ca (theremin.irus.robarts.ca >[198.20.40.10])by public.kitware.com (Postfix) with ESMTP id 233361AA40for >; Tue, 18 Jun 2002 17:17:52 -0400 (EDT) >Received: from banquo.irus.robarts.ca (banquo.irus.robarts.ca >[198.20.41.50])by theremin.irus.rri.on.ca (8.11.6/8.11.6) with ESMTP id >g5ILHbk24850;Tue, 18 Jun 2002 17:17:37 -0400 (EDT) >From vtkusers-admin at public.kitware.com Tue, 18 Jun 2002 14:22:41 -0700 >Delivered-To: vtkusers at public.kitware.com >X-X-Sender: >In-Reply-To: <3D0F9EAA.7030906 at post.rwth-aachen.de> >Message-ID: > >Sender: vtkusers-admin at public.kitware.com >Errors-To: vtkusers-admin at public.kitware.com >X-BeenThere: vtkusers at public.kitware.com >X-Mailman-Version: 2.0.9 >Precedence: bulk >List-Help: >List-Post: >List-Subscribe: >, >List-Id: >List-Unsubscribe: >, >List-Archive: > >Hi Simon, > >The opacity is what is causing the problem. The depth buffer method >that OpenGL (and most graphics toolkits) use to figure out which object >are in front of other objects does not work properly unless everything >in the scene is opaque. > >The solution is to make sure that polygons are rendered back to front, >so that the rendering does not have to rely on the depth buffer. The >vtkDepthSortPolyData filter can sort the polygons in an actor >back-to-front, but this only works if you have only one transparent >actor in the scene. > >If you have more than one transparent actor, then each time you render >you have to remove all the actors from the renderer, and then add them >back to the renderer in back-to-front order. > > - David > >-- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > >On Tue, 18 Jun 2002, Simon Faust wrote: > > > Hi David, > > thanks for your help. When I try to call ResetCameraClippingRange, > > nothing seems to happen. Only when I try to set the clipping range > > manually the effect disappears. The objects of the foreground (roof) are > > rendered, but as they were located in the background, i.e. the faces of > > the roof that are not covered by the floor (that actually should be > > covered by the roof) are displayed. Another aspect might be that the > > effect does not occur when opacity is set to1 (still testing that). > > ciao Simon > > > > David Gobbi wrote: > > > > >Hi Simon, > > > > > >The problem is probably not that the floor 'jumps in front of' the > > >roof, it is more likely that the roof is positioned in front of the > > >near clipping plane and is not being rendered. > > >If you do a ResetCameraClippingPlanes before each render the problem > > >should go away (as long as roof does not end up behind the camera). > > > > > >Cheers, > > > - David > > > > > >-- > > > David Gobbi, MSc dgobbi at irus.rri.ca > > > Advanced Imaging Research Group > > > Robarts Research Institute, University of Western Ontario > > > > > >On Tue, 18 Jun 2002, Simon Faust wrote: > > > > > >>Hi, > > >>I use vtkTkRenderWidget in order to display several objects that > > >>alltogether form a building with some installations in it. Problem ist > > >>that objects that should not be visible (i.e. the floor of a room when > > >>your viewpoint is over the roof) "jump" into the foreground and >overlay > > >>objects that should be visible. The error occurs when rotating or > > >>zooming around/in the scene. Any hints welcome. > > >>Simon > > >> > > >> > > >>_______________________________________________ > > >>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 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From prabhu at aero.iitm.ernet.in Tue Jun 18 22:30:04 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 19 Jun 2002 08:00:04 +0530 Subject: [vtkusers] Need probing help In-Reply-To: References: Message-ID: <15631.60588.241546.407297@monster.linux.in> >>>>> "AL" == Alex Lear writes: AL> lines that goes through a structured points set.  I would AL> like to set the scalars of the points in the line to the AL> values at those points in the structured points.  I am AL> setting the input as the line data and the source to the AL> structured points.  I do the probe filter but now I need AL> to change the scalars associated with the line to the output AL> of the probe filter. 
 
Does AL> the probe filter do this automatically or do I need to do The output of the probe will contain the scalars. You could possibly do something like: probe.SetInput(input) probe.Update() s = probe.GetOutput().GetPointData().GetScalars() input.GetPointData().SetScalars(s) Or something equivalent. prabhu From mmalat at irus.rri.ca Tue Jun 18 22:57:44 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Tue, 18 Jun 2002 22:57:44 -0400 Subject: [vtkusers] vtkProbeFilter.Update() Message-ID: <3D0FF328.7ABB4558@irus.rri.ca> Hi all, I think I didn't understand the vtk pipeline. I thought that the 'Update' method would call the Execute method again (providing the modified time was changed). So here is two scripts, the first one is the one that work but not really -memory- efficient: //first one: for k in range(0, 10): probe = vtkProbeFilter() probe.SetSource(reader.GetOutput()) probe.SetInput(mesh) probe.Update() //do some change to 'mesh' with the result of probeFilter del probe //second one: probe = vtkProbeFilter() probe.SetSource(reader.GetOutput()) for k in range(0, 10): probe.SetInput(mesh) probe.Update() //do some change to 'mesh' with the result of probeFilter Does anyone knows what I lack ? Thanks a lot. Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From netmag at etang.com Wed Jun 19 00:16:39 2002 From: netmag at etang.com (net) Date: Wed, 19 Jun 2002 12:16:39 +0800 Subject: [vtkusers] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Wed Jun 19 03:31:16 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 19 Jun 2002 09:31:16 +0200 (CEST) Subject: [vtkusers] OpenGL + VTK Message-ID: Hi Everybody, If I build a VTK render Window and I use glVertex to turn on a point should it automatically appear in the vtk render window, doesn't it? thank Giancarloo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From amati at ira.cnr.it Wed Jun 19 03:38:03 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 19 Jun 2002 09:38:03 +0200 (CEST) Subject: [vtkusers] Camera Message-ID: Hello Everybody, How can I get the Azimuth angle of my camera? I thought there was something like GetAzimuth or similar, but I didn't find nothing. Any suggestion? Thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From vtk at le.isac.cnr.it Wed Jun 19 04:07:31 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Wed, 19 Jun 2002 10:07:31 +0200 Subject: [vtkusers] vtkColorTransferFunction Message-ID: <200206190807.g5J87Vd29451@nemesi.le.isac.cnr.it> Hi, I 'have a problem with tkColorTransferFunction. I want to visualize one as an example volumetric image (heart.vtk), associating the following colors: 0 -> Red 64 -> Jellow 128 -> green 255 - > blue and to the intermediate values the intermediate tonalities of color. I have used this code: colorTransferFunction AddRGBPoint 0 1 0 0 colorTransferFunction AddRGBPoint 64 0 1 0 colorTransferFunction AddRGBPoint 128 0 1 1 colorTransferFunction AddRGBPoint 255 0 0 1 but therefore I visualize alone the blue color and the green. How I can visualize all the colors demands? Thanks From amati at ira.cnr.it Wed Jun 19 04:17:10 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 19 Jun 2002 10:17:10 +0200 (CEST) Subject: [vtkusers] Cone with curved base Message-ID: Hello Everybody, any suggestion to create a cone with a curved (sphere arc) base? Thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From poecher at icom-consulting.de Wed Jun 19 05:10:45 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Wed, 19 Jun 2002 11:10:45 +0200 Subject: [vtkusers] Camera References: Message-ID: <3D104A95.3776AA75@icom-consulting.de> The state of a vtkCamera is defined by Position, FocalPoint and ViewUp (and a few other properties which does not matter for your purpose). Azimuth manipulates those properies. So if you want to get Azimuth you will have to define a "standard" plain (e.g. (x, y, 0) for Focal and Position) and compare it to your camera's actual state. To make it short: Azimuth is no property of vtkCamera. chris Giancarlo Amati schrieb: > > Hello Everybody, > > How can I get the Azimuth angle of my camera? I thought there was > something like GetAzimuth or similar, but I didn't find nothing. > Any suggestion? -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From G.R.Tabor at exeter.ac.uk Wed Jun 19 06:55:44 2002 From: G.R.Tabor at exeter.ac.uk (Gavin Tabor) Date: Wed, 19 Jun 2002 11:55:44 +0100 Subject: [vtkusers] Installation Message-ID: <3D106330.2010603@exeter.ac.uk> Dear All, I've managed to correctly compile VTK4 to produce a static library (.a) which seems to work fine. I wanted to change this to produce a shared object library, so I reran cmake -i, and then make'd the result. What I got was the following error message : cmake.depends is up-to-date rm -f libvtkzlib.so /usr/local/bin/g++ -shared -fPIC -shared -nostdlib -fPIC -g -O2 -o /space/VTK/bin/libvtkzlib.so adler32.o gzio.o inftrees.o uncompr.o compress.o infblock.o infutil.o zutil.o crc32.o infcodes.o deflate.o inffast.o inflate.o trees.o -L/space/VTK/bin/ -lpthread -ldl -lm -Wl,-R,/space/VTK/bin/ Text relocation remains referenced against symbol offset in file 0xe94 infblock.o 0xe98 infblock.o 0xe9c infblock.o 0xea0 infblock.o ... a lot of similar message, then .umul 0x350 trees.o .umul 0x458 trees.o ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make[5]: *** [/space/VTK/bin/libvtkzlib.so] Error 1 make[4]: *** [default_target] Error 2 make[3]: *** [default_target_zlib] Error 2 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Utilities] Error 2 make: *** [default_target] Error 2 I think this is to do with not setting the correct flags under cmake. Can someone tell me what I need to set for this? I am using gcc/g++ under solaris. My thanks for any help. Gavin -- Dr. Gavin Tabor School of Engineering and Computer Science Department of Engineering University of Exeter From el_basha_ems at hotmail.com Wed Jun 19 08:51:58 2002 From: el_basha_ems at hotmail.com (omda sobhy) Date: Wed, 19 Jun 2002 12:51:58 +0000 Subject: [vtkusers] need help in using marching cubes Message-ID: An HTML attachment was scrubbed... URL: From velame at velame.inel.gov Wed Jun 19 09:54:00 2002 From: velame at velame.inel.gov (Elena Velasquez) Date: Wed, 19 Jun 2002 07:54:00 -0600 Subject: [vtkusers] picker function Message-ID: <200206191352.g5JDqIP02966@mail.inel.gov> Hello everyone! I am using the picker function to select objects, in the case cubes. It seem to select the object, yet when I try to retrive the address of the object so that I can access some of the properties of the objects, I do not seem to be able to get it. Can anyone help me with this or give me a suggestion? I select the object using the picker function then I used the getactor function to try to get the address of the object and thereby the properties of the object Thank you for your help Elena Velasquez From anast.jm at pg.com Wed Jun 19 10:01:45 2002 From: anast.jm at pg.com (anast.jm at pg.com) Date: Wed, 19 Jun 2002 10:01:45 -0400 Subject: [vtkusers] Cone with curved base Message-ID: Giancarlo, There is a vtk example script (iceCream.tcl) that just combines clipped cone and sphere to make an ice cream cone....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Giancarlo Amati @public.kitware.com on 06/19/2002 10:17 AM ZE2 Giancarlo Amati To: vtkusers at public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Cone with curved base Sent by: vtkusers-admin at public.kitware.com 06/19/2002 04:17 AM Hello Everybody, any suggestion to create a cone with a curved (sphere arc) base? Thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- _______________________________________________ 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 dai_shuocn at 163.com Wed Jun 19 10:58:50 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Wed, 19 Jun 2002 22:58:50 +0800 Subject: [vtkusers] about the source code of vtkCell::Clip() Message-ID: <20020619145901.C23B81C9FEC92@sm5.163.com> Hi, everyone I'm studying the source code of vtk40, but didn't find the source for vtkCell::Clip(). Who can tell me where I can get it, or the flow chart of this method. Thank you very much! ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-19 From dean.inglis at on.aibn.com Wed Jun 19 11:02:53 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 19 Jun 2002 11:02:53 -0400 Subject: [vtkusers] Unresolved externals due to vtkObjectBase Message-ID: Hi, I have a set of vtk classes set up as in /Examples/Build/vtkMy that won't link (Borland) today: Error: Unresolved external 'vtkObjectBase::Delete()' referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ Error: Unresolved external 'vtkObject::UnRegister(vtkObjectBase *)' referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ Error: Unresolved external 'vtkObjectBase::operator delete(void *)' referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ Error: Unresolved external 'vtkObjectBase::~vtkObjectBase()' referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ Error: Unresolved external 'vtkObjectBase::Register(vtkObjectBase *)' referenced from C:\BUILDER\VTKMY\HYBRID\VTKIMAGEPLANEWIDGET2.OBJ Any help would be appreciated... Dean From D.Duke at bath.ac.uk Wed Jun 19 11:07:09 2002 From: D.Duke at bath.ac.uk (David Duke) Date: Wed, 19 Jun 2002 16:07:09 +0100 Subject: [vtkusers] vtkObjectFactory::UnRegisterAllFactories() Message-ID: <3D109E1D.90901@bath.ac.uk> There is a bug in vtkObjectFactory::UnRegisterAllFactories(); I'm using 4.1.1, release 1.1246, the nightly files from 2002/06/14. File Common/vtkObjectFactory.cxx, Line 427, libs[index] = factory->LibraryHandle; should be libs[index++] = factory->LibraryHandle; David From andy.cedilnik at kitware.com Wed Jun 19 11:10:07 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 19 Jun 2002 11:10:07 -0400 Subject: [vtkusers] Unresolved externals due to vtkObjectBase In-Reply-To: References: Message-ID: <1024499407.2299.109.camel@xanth.kitwarein.com> Hi Dean, Try updating VTK and rerun CMake. Andy On Wed, 2002-06-19 at 11:02, Dean Inglis wrote: > Hi, > > I have a set of vtk classes set up as in /Examples/Build/vtkMy that won't > link (Borland) today: > > Error: Unresolved external 'vtkObjectBase::Delete()' referenced from > C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObject::UnRegister(vtkObjectBase *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::operator delete(void *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::~vtkObjectBase()' referenced from > C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::Register(vtkObjectBase *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKIMAGEPLANEWIDGET2.OBJ > > Any help would be appreciated... > > 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 19 11:28:25 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 19 Jun 2002 11:28:25 -0400 Subject: [vtkusers] Unresolved externals due to vtkObjectBase In-Reply-To: <1024499407.2299.109.camel@xanth.kitwarein.com> Message-ID: Hi I just figured that vtk 4 isn't compiling vtkObjectBase on Proximal.CRU (Win2k, Borland) due to a fail during the link for the freetype lib work in progress. Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Fatal: Unable to open file 'GLU32.LIB' ** error 1 ** deleting c:\Builder\Vtk\bin\vtkftgl.dll Can you tell me how to add the path to glu32.lib in the CMakeCache file? I think it goes here with import32.lib: CMAKE_STANDARD_WINDOWS_LIBRARIES:STRING=import32.lib and is found in my compiler in a subdir from where import32.lib is stored: C:\Program files\Borland\CBuilder5\Lib\import32.lib C:\Program files\Borland\CBuilder5\Lib\PSDK\glu32.lib I'm not sure, but it may be that with Borland you don't need to explicitly include glu32.lib, just import32.lib. Dean -----Original Message----- From: Andy Cedilnik [mailto:andy.cedilnik at kitware.com] Sent: June 19, 2002 11:10 AM To: Dean Inglis Cc: vtkusers Subject: Re: [vtkusers] Unresolved externals due to vtkObjectBase Hi Dean, Try updating VTK and rerun CMake. Andy On Wed, 2002-06-19 at 11:02, Dean Inglis wrote: > Hi, > > I have a set of vtk classes set up as in /Examples/Build/vtkMy that won't > link (Borland) today: > > Error: Unresolved external 'vtkObjectBase::Delete()' referenced from > C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObject::UnRegister(vtkObjectBase *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::operator delete(void *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::~vtkObjectBase()' referenced from > C:\BUILDER\VTKMY\HYBRID\VTKANATOMICALLABEL.OBJ > Error: Unresolved external 'vtkObjectBase::Register(vtkObjectBase *)' > referenced from C:\BUILDER\VTKMY\HYBRID\VTKIMAGEPLANEWIDGET2.OBJ > > Any help would be appreciated... > > 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 ming at ca.wai.com Wed Jun 19 12:16:03 2002 From: ming at ca.wai.com (Ming Xie) Date: Wed, 19 Jun 2002 09:16:03 -0700 Subject: [vtkusers] Partial model display Message-ID: Hi, I have a model built with boxes and cylinders. I want to display only a portion of it by specifying a box to cut the model. It is possible to do this in vtk automatically, or I have to go through all the members and cut off the ones outside the box? Thanks, Ming From eric at cctcorp.com Wed Jun 19 12:55:42 2002 From: eric at cctcorp.com (Eric F. Sorton) Date: Wed, 19 Jun 2002 12:55:42 -0400 Subject: [vtkusers] Need method to associate "string" labels with points/cells Message-ID: <20020619125541.A8994@buri.inside.cctcorp.com> Hi All, I've been trying to find a way to associate "string" labels with point/cell data within VTK. I am able to use vtkLabeledDataMapper in conjunction with vtkCellCenters to place a number (the VTK Id) in the center of a cell. However, I am unable to place an arbituary text string there. For example, one of the example applications provided with VTK is eleState.tcl (found in Graphics/Testing/Tcl). I am looking for a technique that would allow me to place the two letter state abbreviation at the center of each state. Any help would be appreciated, Eric -- +--=--=- Eric F. Sorton =--=--=--=--=--=--=--=--=--=-+ | Command and Control Technologies Corporation (http://www.cctcorp.com) | | Phone: (321) 264-1193 Fax: (321) 383-5096 | +--=--=--=--=--=--=--=--=--=--=--=-+-=--=--=--=--=--=--=--=--=--=--=--=-+ From sebastien.barre at kitware.com Wed Jun 19 12:56:14 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Wed, 19 Jun 2002 12:56:14 -0400 Subject: [vtkusers] Unresolved externals due to vtkObjectBase In-Reply-To: References: <1024499407.2299.109.camel@xanth.kitwarein.com> Message-ID: <5.1.1.6.0.20020619125351.02075190@pop.nycap.rr.com> At 6/19/2002 11:28 AM, Dean Inglis wrote: >Hi > >I just figured that vtk 4 isn't compiling vtkObjectBase on Proximal.CRU >(Win2k, Borland) >due to a fail during the link for the freetype lib work in progress. > >Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland >Fatal: Unable to open file 'GLU32.LIB' Just set GLU_LIBRARY:STRING=import32 The reason it is failing is that the CMake *release* set it wrong. You won't have any problem with the CVS, or the next release (coming soon) Or set VTK_USE_FREETYPE to OFF, since you do not need it for the moment. But do not set it to OFF for your dashboard build, I need it to test. -- Sebastien Barre From eric at cctcorp.com Wed Jun 19 12:56:35 2002 From: eric at cctcorp.com (Eric F. Sorton) Date: Wed, 19 Jun 2002 12:56:35 -0400 Subject: [vtkusers] Repeatable core using nested vtkPropAssembly under VTK 3.2.0 and X In-Reply-To: <5.0.2.1.0.20020425135135.025d5e28@pop.nycap.rr.com>; from will.schroeder@kitware.com on Thu, Apr 25, 2002 at 01:53:55PM -0400 References: <20020424125556.A10767@buri.inside.cctcorp.com> <20020424125556.A10767@buri.inside.cctcorp.com> <20020425124745.A1706@buri.inside.cctcorp.com> <5.0.2.1.0.20020425135135.025d5e28@pop.nycap.rr.com> Message-ID: <20020619125635.B8994@buri.inside.cctcorp.com> On Thu, Apr 25, 2002 at 01:53:55PM -0400, Will Schroeder wrote: > I'll take responsibility for this. Maybe while travelling next week I can > find time to clean it up. Thanks for the feedback and detailed analysis. It would also appear that the bug manifests itself while performing "picking" operations. Eric -- +--=--=- Eric F. Sorton =--=--=--=--=--=--=--=--=--=-+ | Command and Control Technologies Corporation (http://www.cctcorp.com) | | Phone: (321) 264-1193 Fax: (321) 383-5096 | +--=--=--=--=--=--=--=--=--=--=--=-+-=--=--=--=--=--=--=--=--=--=--=--=-+ From sebastien.barre at kitware.com Wed Jun 19 13:14:10 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Wed, 19 Jun 2002 13:14:10 -0400 Subject: [vtkusers] Unresolved externals due to vtkObjectBase In-Reply-To: References: <1024499407.2299.109.camel@xanth.kitwarein.com> Message-ID: <5.1.1.6.0.20020619131033.02007518@pop.nycap.rr.com> Hi At 6/19/2002 11:28 AM, Dean Inglis wrote: >Hi > >I just figured that vtk 4 isn't compiling vtkObjectBase on Proximal.CRU >(Win2k, Borland) >due to a fail during the link for the freetype lib work in progress. I don't see why they would be related. Freetype is not used by VTK for the moment. And not by vtkObjectBase :) Which CMake are you using ? I tried the release 1.2 patch 3, and had no such pb. Is BUILD_EXAMPLES on ? -- Sebastien Barre From kitware-vtk at kulnet.kuleuven.ac.be Wed Jun 19 13:38:36 2002 From: kitware-vtk at kulnet.kuleuven.ac.be (kitware-vtk at kulnet.kuleuven.ac.be) Date: Wed, 19 Jun 2002 19:38:36 +0200 Subject: [vtkusers] Bump Mapping Message-ID: <1024508284.718504@seven.kulnet.kuleuven.ac.be> --- Forwarded by news2mail for "Stijn Goris" --- Hi all, I want to try simulating bump mapping on a sphere by altering the normals (randomly) of the vertixes. I find it hard to understand the way I have to acces the individual vertexes in TCL. Can someone point me to an example? kind regards Stijn From mmalat at irus.rri.ca Wed Jun 19 15:08:06 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Wed, 19 Jun 2002 15:08:06 -0400 Subject: [vtkusers] VTK nighlty compiling problem Message-ID: <3D10D696.51DD9B7E@irus.rri.ca> Hi all, I updated VTK today. And recompile it. But I have a compiling problem: /shalom/data/mmalat/VTK/Common/vtkDataArray.cxx: In method `void vtkDataArray::CopyComponent (int, vtkDataArray *, int)': /shalom/data/mmalat/VTK/Common/vtkDataArray.cxx:852: Unable to find a register to spill in class `AREG '. /shalom/data/mmalat/VTK/Common/vtkDataArray.cxx:852: confused by earlier errors, bailing out make[3]: *** [vtkDataArray.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 Does anyone know how to work around ? Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From mmalat at irus.rri.ca Wed Jun 19 15:17:04 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Wed, 19 Jun 2002 15:17:04 -0400 Subject: [vtkusers] vtkImageReslice question Message-ID: <3D10D8B0.AA048720@irus.rri.ca> Hi all, I used vtkImageReslice to generate an anisotropic volume (from a minc image). So I did: reslice = vtkImageReslice() reslice.SetInput(reader.GetOutput()) reslice.SetOutputSpacing(1,1,1) reslice.SetInterpolationModeToCubic() reslice.Update() At the end my volume has the good spacing. But when I display it, the border are black instead of white ? (by border I mean x=0 , y=0 , z=0, x=xmax, y=ymax and z=zmax ). Does anyone knows how to avoid this ? Or at least how to remove them ? thanks Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From dgobbi at irus.rri.ca Wed Jun 19 15:41:30 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Wed, 19 Jun 2002 15:41:30 -0400 (EDT) Subject: [vtkusers] vtkImageReslice question In-Reply-To: <3D10D8B0.AA048720@irus.rri.ca> Message-ID: Hi Mathieu, The reason for the black border is that vtkImageReslice assumes that the 'background' grey level beyond the input image border is zero. So when you use interpolation, the edge pixel of the output image will contain a certain amount of blackness. This is easy to fix, for most images you can use reslice->MirrorOn() which will essentially duplicate the edge pixels for the purpose of interpolation. Or, if the image is an MRI, you should use reslice->WrapOn() which will wrap around to the opposite edge of the image when pixels beyond the edge are needed for the interpolation. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 19 Jun 2002, Mathieu Malaterre wrote: > Hi all, > I used vtkImageReslice to generate an anisotropic volume (from a minc > image). So I did: > > reslice = vtkImageReslice() > reslice.SetInput(reader.GetOutput()) > reslice.SetOutputSpacing(1,1,1) > reslice.SetInterpolationModeToCubic() > reslice.Update() > > At the end my volume has the good spacing. But when I display it, the > border are black instead of white ? > (by border I mean x=0 , y=0 , z=0, x=xmax, y=ymax and z=zmax ). Does > anyone knows how to avoid this ? Or at least how to remove them ? > > thanks > Mathieu > From lcardoso at bhvirtual.com.br Wed Jun 19 18:02:04 2002 From: lcardoso at bhvirtual.com.br (Luciano Cardoso) Date: Wed, 19 Jun 2002 19:02:04 -0300 Subject: [vtkusers] vtk and Qt References: <3D10D696.51DD9B7E@irus.rri.ca> Message-ID: <3D10FF5C.4070607@bhvirtual.com.br> Hi, Could anyone help me on how to get Vtk working in a Qt widget? I try all the classes listed at http://www.barre.nom.fr/vtk/links-classes.html#qt but they are for older versions of Vtk. Thanks in advance, Luciano Cardoso From thomasvw at rogers.com Wed Jun 19 19:27:47 2002 From: thomasvw at rogers.com (Thomas Werner) Date: Wed, 19 Jun 2002 19:27:47 -0400 Subject: [vtkusers] Re: Installation Problems In-Reply-To: <200206181905.09282.thomasvw@rogers.com> References: <200206181905.09282.thomasvw@rogers.com> Message-ID: <200206191927.48094.thomasvw@rogers.com> I tried Mathieus suggestion, and indeed my PYTHONPATH was unset. I did the following: setenv PYTHONPATH "/usr/lib/python2.2:/usr/lib/vtk/python" and ran the test, which failed, giving me the following: [thomas at Guiness ~]$ python test_vtk.py 'import site' failed; use -v for traceback Traceback (innermost last): File "test_vtk.py", line 3, in ? import sys, traceback, re File "/usr/lib/python2.2/traceback.py", line 3, in ? import linecache File "/usr/lib/python2.2/linecache.py", line 9, in ? import os File "/usr/lib/python2.2/os.py", line 38 return [n for n in dir(module) if n[0] != '_'] ^ SyntaxError: invalid syntax [thomas at Guiness ~]$ From a.maclean at acfr.usyd.edu.au Wed Jun 19 20:12:53 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 20 Jun 2002 10:12:53 +1000 Subject: [vtkusers] Parametric representation of a surface. Message-ID: <005601c217ef$38c82aa0$acd24e81@acfr.usyd.edu.au> Has anyone any ideas on how to visualise the parametric representation of a surface? Currently I create a vtkPolyData structure containing the points (x,y,z) and normals and sample this using vtkImplicitModeller. I also set the scalars to 0 because this represents the surface (I think that it is correct) - this step may not be necessary. Problems appear when I contour it. It seems that I can only extract a surface lying outside (in the direction of the normal) of the points. I thought that something like: Cf->SetValue(1,0) would extract the surface (where cf is the contour filter) but this does not work. I can use Cf->GenerateValues(2, -maxDist, maxDist); where maxDist is a small value, but the rendering of the surface is critically dependent on the value of maxDist. If it is too small then a surface is generated with missing triangles and if large, then surface moves away from the points. But this generates a surface with a finite thickness. I am using SetMaximumDistance(maxDist) and SetAdjustDistance(2 * minDist); in the implicit modeller. Has anyone any ideas on how to get a surface whose "thickness" is 0? Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lorensen at crd.ge.com Wed Jun 19 20:17:44 2002 From: lorensen at crd.ge.com (Lorensen, William E (Research)) Date: Wed, 19 Jun 2002 20:17:44 -0400 Subject: [vtkusers] about the source code of vtkCell::Clip() Message-ID: The Clip method is implemented in each cell subclass. For example, look at vtkTetrahedron::Clip or vtkPixel::Clip. -----Original Message----- From: Dai Shuo [mailto:dai_shuocn at 163.com] Sent: Wednesday, June 19, 2002 10:59 AM To: vtk Subject: [vtkusers] about the source code of vtkCell::Clip() Hi, everyone I'm studying the source code of vtk40, but didn't find the source for vtkCell::Clip(). Who can tell me where I can get it, or the flow chart of this method. Thank you very much! ????????Dai Shuo ????????dai_shuocn at 163.com ??????????2002-06-19 _______________________________________________ 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 lehrig at t-online.de Thu Jun 20 01:40:45 2002 From: lehrig at t-online.de (Rainer Lehrig) Date: Thu, 20 Jun 2002 07:40:45 +0200 Subject: [vtkusers] New application using VTK Message-ID: <200206200740.45123.lehrig@t-online.de> Hello, I have a project on http://pvbrowser.sourceforge.net This project is concerned with process visualisation. Now I have integrated VTK into this software. The software consists out of the ProcessViewBrowser which you can compare with a http browser and a server which you write by your own. You can design the server software graphically using Qt designer http;//www.trolltech.com. And now you can use VTK from your server. This is done by using Tcl for controlling the individual VTK widgets you designed into ProcessViewBrowser. I think that because of VTK now you can do much more than process visualisation with this software. Yours: Rainer Lehrig From a.maclean at acfr.usyd.edu.au Thu Jun 20 02:47:02 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 20 Jun 2002 16:47:02 +1000 Subject: [vtkusers] Please help me with triangle strps! Message-ID: <008501c21826$489da4f0$acd24e81@acfr.usyd.edu.au> I have a series of m by n points along with their normals. I also have generated m-1 triangle strips but I don't know how to combine the data in order to render it. E.g if m = 3 and n = 5 then there are 15 points ( and their normals), so, the triangle strips will be: Strip 1: 5, 0, 6, 1, 7, 2, 8, 3, 9, 4 Strip 2: 10, 5, 11, 6, 12, 7, 13, 8, 14, 9 The numbers are the indexes of the points. ( I think that this is the vtk format, where the first three indexes define the triangle and subsequent ones correspond to each additional triangle) How do I set up the vtkPolyData structure to incorporate the triangle strips? If someone can point me to an example, I would really appreciate it. Since I have the normals will Gourand shading be used automatically if I pass the vtkPolydata to a mapper? Thanks Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From boyd at biomed.ee.ethz.ch Thu Jun 20 03:21:21 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Thu, 20 Jun 2002 09:21:21 +0200 Subject: [vtkusers] Sampling vtkImageData Message-ID: <3D118271.36B163DD@biomed.ee.ethz.ch> Hi, I want to interpolate a scalar value from my vtkImageData at various 3D points. Can somebody explain how I should do this? I've been trying vtkImageData::FindPoint(p3) where p3 is a given point. This gives a pointId which I can use to get the scalar data. However, I'm not sure what criteria FindPoint uses. Maybe this isn't the correct approach? Sincerely, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From lucantiga at hotmail.com Thu Jun 20 03:26:59 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Thu, 20 Jun 2002 09:26:59 +0200 Subject: [vtkusers] vtkStreamer and vtkFunctionSet Message-ID: Dear users, I was looking into the source code of vtkStreamer and I noticed that an instance of vtkInterpolatedVelocityField (subclass of vtkFunctionSet) is created each time ThreadedIntegrate is called. At the same time, if one uses vtkStreamer::SetIntegrator(vtkInitialValueProblemSolver* ) and then vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* ), apparently he could use an integrator with another subclass of vtkFunctionSet in the streamer, but this is not actually the case. Thus, if one wants to implement a subclass of vtkFunctionSet and use it to compute streamlines, he basically has to write another vtkStreamer class. I think it would be better, if possible, to use a generic vtkFunctionSet in vtkStreamer. Thanks Luca _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From lucantiga at hotmail.com Thu Jun 20 04:15:34 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Thu, 20 Jun 2002 10:15:34 +0200 Subject: [vtkusers] custom vtkFunctionSet in vtkStreamer Message-ID: Dear users, I was looking into the source code of vtkStreamer and I noticed that an instance of vtkInterpolatedVelocityField (subclass of vtkFunctionSet) is created each time ThreadedIntegrate is called. At the same time, if one uses vtkStreamer::SetIntegrator(vtkInitialValueProblemSolver* ) and then vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* ), apparently he could use an integrator with another subclass of vtkFunctionSet in the streamer, but this is not actually the case. Thus, if one wants to implement a subclass of vtkFunctionSet and use it to compute streamlines, he basically has to write another vtkStreamer class. I think it would be better, if possible, to use a generic vtkFunctionSet in vtkStreamer. Thanks Luca _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From kuebler at ira.uka.de Thu Jun 20 05:46:30 2002 From: kuebler at ira.uka.de (=?iso-8859-1?Q?Carsten_K=FCbler?=) Date: Thu, 20 Jun 2002 11:46:30 +0200 Subject: [vtkusers] AW: vtkusers digest, Vol 1 #1088 - 9 msgs In-Reply-To: <20020620072303.F313F1AB45@public.kitware.com> Message-ID: Hej Luciano, a few days ago I wrote the same mail on a similar question. 1. You did (see barre) 2. See on my homepage... wwwipr.ira.uka.de/~kuebler/ ... and you will find a solution Carsten Hi, Could anyone help me on how to get Vtk working in a Qt widget? I try all the classes listed at http://www.barre.nom.fr/vtk/links-classes.html#qt but they are for older versions of Vtk. Thanks in advance, Luciano Cardoso From berk.geveci at kitware.com Thu Jun 20 07:48:25 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 20 Jun 2002 07:48:25 -0400 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: References: Message-ID: <1024573705.8404.11.camel@caemlyn.kitwarein.com> You are absolutely right. That was the real reason I changed the streamer to use separate integrators and function sets in the first place. However, since no one (including me) ever created or at least mentioned that they created a different function set, I didn't bother to provide a way for setting it from outside. Did you write or will you write a different function set ? -Berk On Thu, 2002-06-20 at 03:26, Luca Antiga wrote: > Dear users, > I was looking into the source code of vtkStreamer and I noticed that an > instance of vtkInterpolatedVelocityField (subclass of vtkFunctionSet) is > created each time ThreadedIntegrate is called. > At the same time, if one uses > vtkStreamer::SetIntegrator(vtkInitialValueProblemSolver* ) and then > vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* ), apparently > he could use an integrator with another subclass of vtkFunctionSet in the > streamer, but this is not actually the case. > Thus, if one wants to implement a subclass of vtkFunctionSet and use it to > compute streamlines, he basically has to write another vtkStreamer class. > I think it would be better, if possible, to use a generic vtkFunctionSet in > vtkStreamer. > Thanks > > Luca > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.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 lucantiga at hotmail.com Thu Jun 20 08:25:19 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Thu, 20 Jun 2002 14:25:19 +0200 Subject: [vtkusers] vtkStreamer and vtkFunctionSet Message-ID: Hi Berk, (sorry for the repeated message, I wasn't sure about mail delivery) I needed to track massless particles in a time-varying pulsatile CFD simulation of blood vessels. I did it by first writing a vtkInterpolatedTransientVelocityField, in which time evaluation is taken into account (I make use of velocity vectors organized in time steps with vtkFieldData), and thanks to your intelligent organization the work was almost done, since vtkRungeKutta integrators already handle time. In order to overcome the aforementioned limit and to add some more time support (timeStepSize specification and pulsatility) I just wrote a vtkStreaker class and a vtkStreakLine class which slightly generalize their steady couterparts. If you want I can send you the code of the three classes. Thanks for consideration Luca >From: Berk Geveci >To: Luca Antiga >CC: vtkusers >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet >Date: 20 Jun 2002 07:48:25 -0400 > >You are absolutely right. That was the real reason I changed >the streamer to use separate integrators and function sets >in the first place. However, since no one (including me) ever >created or at least mentioned that they created a different >function set, I didn't bother to provide a way for setting it >from outside. Did you write or will you write a different >function set ? > >-Berk > >On Thu, 2002-06-20 at 03:26, Luca Antiga wrote: > > Dear users, > > I was looking into the source code of vtkStreamer and I noticed that an > > instance of vtkInterpolatedVelocityField (subclass of vtkFunctionSet) is > > created each time ThreadedIntegrate is called. > > At the same time, if one uses > > vtkStreamer::SetIntegrator(vtkInitialValueProblemSolver* ) and then > > vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* ), >apparently > > he could use an integrator with another subclass of vtkFunctionSet in >the > > streamer, but this is not actually the case. > > Thus, if one wants to implement a subclass of vtkFunctionSet and use it >to > > compute streamlines, he basically has to write another vtkStreamer >class. > > I think it would be better, if possible, to use a generic vtkFunctionSet >in > > vtkStreamer. > > Thanks > > > > Luca > > > > > > _________________________________________________________________ > > Chat with friends online, try MSN Messenger: http://messenger.msn.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 > > >_______________________________________________ >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 _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From kitware-vtk at kulnet.kuleuven.ac.be Thu Jun 20 12:13:58 2002 From: kitware-vtk at kulnet.kuleuven.ac.be (kitware-vtk at kulnet.kuleuven.ac.be) Date: Thu, 20 Jun 2002 18:13:58 +0200 Subject: [vtkusers] [vtkusers] Message-ID: <1024589605.909835@seven.kulnet.kuleuven.ac.be> --- Forwarded by news2mail for "Stijn Goris" --- Hello, I want to know the number of points in the sphere bump with the function GetNumberOfPoints (vtkPolyData). but when I use puts [$pDatat GetNumberOfPoints] or puts [pDatat GetNumberOfPoints]. I get 0 as treturn. Am I doing something wrong? Please help me out vtkSphereSource bump bump SetThetaResolution 10 bump SetPhiResolution 10 bump SetRadius 1.8 vtkPolyData pDatat set pDatat [bump GetOutput] puts [$pDatat GetNumberOfPoints] vtkPointData pointData set pointData [pDatat GetPointData] puts [$pointData GetNumberOfTuples] From prabhu at aero.iitm.ernet.in Thu Jun 20 13:05:34 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 20 Jun 2002 22:35:34 +0530 Subject: [vtkusers] Re: Installation Problems In-Reply-To: <200206191927.48094.thomasvw@rogers.com> References: <200206181905.09282.thomasvw@rogers.com> <200206191927.48094.thomasvw@rogers.com> Message-ID: <15634.2910.253199.844948@monster.linux.in> >>>>> "TW" == Thomas Werner writes: TW> I tried Mathieus suggestion, and indeed my PYTHONPATH was TW> unset. TW> I did the following: TW> setenv PYTHONPATH "/usr/lib/python2.2:/usr/lib/vtk/python" TW> and ran the test, which failed, giving me the following: TW> [thomas at Guiness ~]$ python test_vtk.py 'import site' failed; TW> use -v for traceback Traceback (innermost last): File TW> "test_vtk.py", line 3, in ? import sys, traceback, re File TW> "/usr/lib/python2.2/traceback.py", line 3, in ? import TW> linecache File "/usr/lib/python2.2/linecache.py", line 9, in ? TW> import os File "/usr/lib/python2.2/os.py", line 38 return [n TW> for n in dir(module) if n[0] != '_'] ^ SyntaxError: invalid Looks like you have multiple versions of Python installed and are running an older Python which is using the newer versions modules. You should not set /usr/lib/python2.2 in your PYTHONPATH at all. Just point it to /usr/lib/vtk/python (if at all that is needed). Also if your VTK Python was built with Python 2.2 then you should run python2.2 and not plain python i.e. $ python2.2 test_vtk.py prabhu From andresba at hotmail.com Thu Jun 20 13:11:54 2002 From: andresba at hotmail.com (Andres Barrera) Date: Thu, 20 Jun 2002 12:11:54 -0500 Subject: [vtkusers] ray-casting values Message-ID: Hello everyone: Before I start reaserching and/or writing code there is something I would like to now from VTK. Given any surface, there is any way I can get the NUMERICAL VALUE of the intensity of light from each visible area? (or should I implement some ray-casting myself? ) Thank you very much for your help Andres _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From rgupta at irus.rri.ca Thu Jun 20 13:13:23 2002 From: rgupta at irus.rri.ca (Ravi Gupta) Date: Thu, 20 Jun 2002 13:13:23 -0400 Subject: [vtkusers] vtkAppendPolydata - Can you mend my broken heart :) Message-ID: <3D120D33.20207@irus.rri.ca> Method ------ I cut my image data into 4 sections along the z-axis, translated each section appropriately, generated an iso surface, used vtkPolyData append to join the iso surfaces back into one surface. Problem ------- Each section when rendered independently looks great. After appending them together it looks like some one dropped it and stuck it back together. The severity and location seems to differ depending on the translation values I use. I'm not worried about the crack that is present at the section borders. Please see attached image. Please comment. Thanks Ravi # Cut up the image volume into 4 sections ######################################### section1 = vtkImageClip() etc. section1.SetInput(imageData) etc. overlap=8 z11 = z1 z12 = (z2/4)+overlap z21 = (z2/4)-overlap z22 = (z2*2/4)+overlap z31 = (z2*2/4)-overlap z32 = (z2*3/4)+overlap z41 = (z2*3/4)-overlap z42 = z2 section1.SetOutputWholeExtent(x1,x2,y1,y2,z11,z12) etc. section1.ClipDataOn() etc. # Translate the image sections ############################## translateSection1 = vtkImageTranslateExtent() etc. translateSection1.SetInput(section1.GetOutput()) etc. zTranslation1 = z11 - z11 zTranslation2 = z11 - z21 zTranslation3 = z11 - z31 zTranslation4 = z11 - z41 translateSection1.SetTranslation(0,0,zTranslation1) etc. # Generate an ISO surface for each section ########################################## iso1 = vtkMarchingCubes() etc. iso1.SetInput(translateSection1.GetOutput()) etc. iso1.SetValue(0,200) etc. iso1.ComputeNormalsOn() etc. # Collect and join the polydata sections ######################################## appendIso = vtkAppendPolyData() appendIso.AddInput(iso1.GetOutput()) etc. etc. -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta at irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi -------------- next part -------------- A non-text attachment was scrubbed... Name: brokenHeart4colours.gif Type: image/gif Size: 4927 bytes Desc: not available URL: From prabhu at aero.iitm.ernet.in Thu Jun 20 13:19:58 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 20 Jun 2002 22:49:58 +0530 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: References: Message-ID: <15634.3774.277553.548646@monster.linux.in> >>>>> "LA" == Luca Antiga writes: LA> Hi Berk, (sorry for the repeated message, I wasn't sure about LA> mail delivery) I needed to track massless particles in a LA> time-varying pulsatile CFD simulation of blood vessels. I did LA> it by first writing a vtkInterpolatedTransientVelocityField, [snip] LA> vtkStreakLine class which slightly generalize their steady LA> couterparts. If you want I can send you the code of the three LA> classes. Thanks for consideration Sounds great! Would be nice if this code were part of VTK. Quite a while ago there was talk of creating a more advanced data file format for VTK that would support more features. There was also talk of streak lines etc. Here are a few thoughts I've had. They are still thoughts and I'm not going to have time to implement anything either. Effectively this is a wish list. Just in case someone is listening. 1. A slightly more intelligent VTK file. Maybe an additional file format that allows for a more flexible syntax with scope for multiple datasets, something like a #include etc. 2. I guess Luca's classes handle integration over time. So that should be already done. 3. The ablity to use zipped VTK files. Would this be useful or are binary files good enough? Now that zlib is distributed as part of VTK this should not be a problem to implement. cheers, prabhu From tavares at fe.up.pt Thu Jun 20 13:49:34 2002 From: tavares at fe.up.pt (=?iso-8859-1?Q?Jo=E3o_Manuel_R._S._Tavares?=) Date: Thu, 20 Jun 2002 18:49:34 +0100 Subject: [vtkusers] Raw to DICOM Message-ID: <004401c21882$d6701540$7300a8c0@torgh> Hi, In my VTK program I need to convert raw images to the DICOM format. Any one knows where I can find any open implementation? Thanks Jo?o Tavares -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmpd at onetel.net.uk Thu Jun 20 19:29:54 2002 From: dmpd at onetel.net.uk (D.M.P.Davies) Date: Fri, 21 Jun 2002 00:29:54 +0100 Subject: [vtkusers] [vtkusers] References: <1024589605.909835@seven.kulnet.kuleuven.ac.be> Message-ID: <3D126572.AF4D269F@onetel.net.uk> kitware-vtk at kulnet.kuleuven.ac.be wrote: > --- Forwarded by news2mail for "Stijn Goris" --- > > Hello, > > I want to know the number of points in the sphere bump with the function > GetNumberOfPoints (vtkPolyData). but when I use puts [$pDatat > GetNumberOfPoints] or puts [pDatat GetNumberOfPoints]. I get 0 as treturn. Looks like an update problem -- Further your tcl set and puts statements look wrong to me. I stuck your code (and modified it) in my visualiser and the following worked: ##################################################################### proc SphereNormals {object widget no1 dummy} { vtkSphereSource bump bump SetThetaResolution 10 bump SetPhiResolution 10 bump SetRadius 1.8 bump Update puts " Output [bump GetOutput] Input to ppp" puts " Polys [[bump GetOutput] GetPolys] " puts " Points [[bump GetOutput] GetPoints] " puts " Data [[[bump GetOutput] GetPolys] GetData] " puts " Tuples [[[[bump GetOutput] GetPolys] GetData] GetNumberOfTuples] " ######### To Change a Point ########## [[bump GetOutput] GetPoints] SetPoint 1 -2 -2 -2 ####### If You Mant The Normals ###### vtkPolyDataNormals qqq qqq SetInput [bump GetOutput] qqq ComputePointNormalsOn qqq Update puts " PolyDataNormals Output [qqq GetOutput]" puts " PolyDataNormals PointData [[qqq GetOutput] GetPointData]" puts " PolyDataNormals Normals [[[qqq GetOutput] GetPointData] GetNormals]" ####### For Point Displaced ########### puts " Normal at point [[[[qqq GetOutput] GetPointData] GetNormals] GetNormal 1" ######## Lets Plot Them #### vtkPolyDataMapper ppp ppp SetInput [bump GetOutput] # vtkActor aaa aaa SetMapper ppp aaa SetProperty property(alloy) # Renderer($widget) AddActor aaa # Render .backdrop.drawing } Best Of Luck Dave Davies -------------- next part -------------- An HTML attachment was scrubbed... URL: From svong at email.arc.nasa.gov Thu Jun 20 19:29:00 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Thu, 20 Jun 2002 16:29:00 -0700 Subject: [vtkusers] vtkCutter question -- vtk and qt Message-ID: <3D12653C.61DB9003@email.arc.nasa.gov> Hi vtkusers, I have a question of speed. Right now I have a qt widget that displays a cross-section that is the result of a vtkCutter cuts through some 3D dataset. The position of the cut plane can be controlled by some qt sliders which are responsible for getting different values of normals and origins for a vtkPlane serving as the vtkImplicitFunction for the vtkCutter. There is a slight delay between the adjusting of the slider and the redrawing of the vtk object. Is there a way to speed it up? My co-worker suggested it may have something to do with how the interpolation scheme works. So aside from needing suggestion to speed this up, does anyone know what the interpolation scheme is for vtkCutter and/or vtkPlane (linear, quadric, cubic, gaussian?) Can I manually change something? Below is the main part of the code. Thanks, Shwuping Vong ========================================================================= . . . vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New(); reader->SetFileName(FILENAME); vtkStructuredPoints *data = vtkStructuredPoints::New(); data = reader->GetOutput(); data->Update(); float *bounds; bounds = data->GetBounds(); float xmin = bounds[0]; float xmax = bounds[1]; float ymin = bounds[2]; float ymax = bounds[3]; float zmin = bounds[4]; float zmax = bounds[5]; vtkAxes *axes = vtkAxes::New(); axes->SetOrigin(xmin, ymin, zmin); axes->SetScaleFactor( xmax - xmin ); vtkTubeFilter *axesTube = vtkTubeFilter::New(); axesTube->SetInput(axes->GetOutput()); axesTube->SetRadius(1); axesTube->SetNumberOfSides(20); vtkPolyDataMapper *axesMapper = vtkPolyDataMapper::New(); axesMapper ->SetInput (axesTube ->GetOutput()); axesActor = vtkActor::New(); axesActor-> SetMapper (axesMapper); origin = data->GetCenter(); origin_x = origin[0]; origin_y = origin[1]; origin_z = origin[2]; planeOrigin_x->valChange(origin_x, xmin, xmax); planeOrigin_y->valChange(origin_y, ymin, ymax); planeOrigin_z->valChange(origin_z, zmin, zmax); plane = vtkPlane::New(); plane->SetOrigin(origin_x, origin_y, origin_z); normal_x = 1; normal_y = 0; normal_z = 0; plane->SetNormal(normal_x, normal_y, normal_z); planeNormal_x->valChange(normal_x); planeNormal_y->valChange(normal_y); planeNormal_z->valChange(normal_z); vtkCutter *planeCut = vtkCutter::New(); planeCut->SetInput(data); planeCut->SetCutFunction(plane); vtkDataSetMapper *cutMapper = vtkDataSetMapper::New(); cutMapper->SetInput(planeCut->GetOutput()); cutActor = vtkActor::New(); cutActor->SetMapper(cutMapper); m_interactor->GetRenderer()->SetBackground( 0.1, 0.2, 0.4); m_interactor->GetRenderer()->AddActor(cutActor); m_interactor->GetRenderer()->AddActor(axesActor); m_interactor->GetRenderer()->ResetCamera(); connect( planeOrigin_x, SIGNAL(setChange(float) ), this, SLOT(setPlaneOriginXVal(float)) ); connect( planeOrigin_y, SIGNAL(setChange(float) ), this, SLOT(setPlaneOriginYVal(float)) ); connect( planeOrigin_z, SIGNAL(setChange(float) ), this, SLOT(setPlaneOriginZVal(float)) ); connect( planeNormal_x, SIGNAL(setChange(float) ), this, SLOT(setPlaneNormalXVal(float)) ); connect( planeNormal_y, SIGNAL(setChange(float) ), this, SLOT(setPlaneNormalYVal(float)) ); connect( planeNormal_z, SIGNAL(setChange(float) ), this, SLOT(setPlaneNormalZVal(float)) ); . . . From VChalana at dxu.com Thu Jun 20 20:03:45 2002 From: VChalana at dxu.com (Vikram Chalana) Date: Thu, 20 Jun 2002 17:03:45 -0700 Subject: [vtkusers] Re: Raw to DICOM Message-ID: <5815E8F9C46BD311A9F0009027B6B9C4DA658D@mail.webdxu.com> For a Linux and other Unix systems you can use David Clunie's DICOM tools for converting all kinds of formats to and from DICOM. http://www.dclunie.com/dicom3tools.html Vikram Reply-To: From: "=?iso-8859-1?Q?Jo=E3o_Manuel_R._S._Tavares?=" To: Date: Thu, 20 Jun 2002 18:49:34 +0100 Organization: Feup-Demegi Subject: [vtkusers] Raw to DICOM This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C2188B.38347D40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 In my VTK program I need to convert raw images to the DICOM format. Any one knows where I can find any open implementation? =20 Thanks =20 Jo=E3o Tavares From parvanes at ece.ubc.ca Thu Jun 20 20:30:57 2002 From: parvanes at ece.ubc.ca (Parvaneh Saeedi) Date: Thu, 20 Jun 2002 17:30:57 -0700 Subject: [vtkusers] SetCenter for ConeSource! References: Message-ID: <001701c218ba$e90e7e20$98385289@rcl.ece.ubc.ca> Hi everyone, Dose anybody know why I can not use the SetCenter for ConeSource? I get the following message :'SetCentre' : is not a member of 'vtkConeSource'. Thanks a lot, Parvaneh Saeedi Parvaneh From dgobbi at irus.rri.ca Thu Jun 20 21:13:40 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 20 Jun 2002 21:13:40 -0400 (EDT) Subject: [vtkusers] SetCenter for ConeSource! In-Reply-To: <001701c218ba$e90e7e20$98385289@rcl.ece.ubc.ca> Message-ID: Hi Pavaneh, The vtkConeSource does not have a SetCenter method. If you want to move the data, then you have to use vtkTransformPolyDataFilter. It is kind of odd that the SetCenter method is missing, since the vtkSphereSource, vtkCubeSource, vtkCylinderSource, etc. all have a SetCenter method. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 20 Jun 2002, Parvaneh Saeedi wrote: > Hi everyone, > > Dose anybody know why I can not use the SetCenter for ConeSource? > I get the following message :'SetCentre' : is not a member of > 'vtkConeSource'. > > > Thanks a lot, > Parvaneh Saeedi > > Parvaneh > > _______________________________________________ > 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 dgobbi at irus.rri.ca Thu Jun 20 21:22:29 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 20 Jun 2002 21:22:29 -0400 (EDT) Subject: [vtkusers] SetCenter for ConeSource! In-Reply-To: Message-ID: Whoops, a little heads-up was delivered to me by Mathieu Malaterre. The CVS version of vtkConeSource does have a SetCenter method. I checked the CVS logs and it looks like it was added March 30, 2002. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 20 Jun 2002, David Gobbi wrote: > Hi Pavaneh, > > The vtkConeSource does not have a SetCenter method. If you > want to move the data, then you have to use > vtkTransformPolyDataFilter. > > It is kind of odd that the SetCenter method is missing, since > the vtkSphereSource, vtkCubeSource, vtkCylinderSource, etc. > all have a SetCenter method. > > - David > > -- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > > On Thu, 20 Jun 2002, Parvaneh Saeedi wrote: > > > Hi everyone, > > > > Dose anybody know why I can not use the SetCenter for ConeSource? > > I get the following message :'SetCentre' : is not a member of > > 'vtkConeSource'. > > > > > > Thanks a lot, > > Parvaneh Saeedi > > > > Parvaneh > > > > _______________________________________________ > > 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 mmalat at irus.rri.ca Thu Jun 20 21:36:30 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Thu, 20 Jun 2002 21:36:30 -0400 Subject: [vtkusers] SetCenter for ConeSource! References: Message-ID: <3D12831E.2710EAE9@irus.rri.ca> Hi Pavaneh Are you sure you are using a new version of VTK ? After 30 march 2002 ? Since this day there is a SetCenter Method Check: http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Graphics/vtkConeSource.cxx reagrds Mathieu David Gobbi wrote: > Hi Pavaneh, > > The vtkConeSource does not have a SetCenter method. If you > want to move the data, then you have to use > vtkTransformPolyDataFilter. > > It is kind of odd that the SetCenter method is missing, since > the vtkSphereSource, vtkCubeSource, vtkCylinderSource, etc. > all have a SetCenter method. > > - David > > -- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > > On Thu, 20 Jun 2002, Parvaneh Saeedi wrote: > > > Hi everyone, > > > > Dose anybody know why I can not use the SetCenter for ConeSource? > > I get the following message :'SetCentre' : is not a member of > > 'vtkConeSource'. > > > > > > Thanks a lot, > > Parvaneh Saeedi > > > > Parvaneh > > > > _______________________________________________ > > 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: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From cboehnen at nd.edu Thu Jun 20 18:51:56 2002 From: cboehnen at nd.edu (Chris Boehnen) Date: Thu, 20 Jun 2002 17:51:56 -0500 Subject: [vtkusers] Microsoft Visual Studio .NET C++ MFC Example Message-ID: <001701c218ad$14766ef0$0300a8c0@DualXenon> Hi All, I'm trying to put together a simple viewer from scratch using Microsoft Visual Studio .NET's C++ MFC. I'm a new user to VTK and am a little confused on the basic setup of doing this to get me started. This is not an option in CMake (that I have been able to find) and after looking at the sample MFC as a win32 GUI I'm unsure of how to link all the files in myself. Do I need to have CMake create the starting project to open for me, or do I need to start a new project in MSV C++ and then try and link the files I've compiled (VTK Files) in myself? Any hints on how to move this along would be greatly appreciated. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucantiga at hotmail.com Fri Jun 21 03:42:36 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Fri, 21 Jun 2002 09:42:36 +0200 Subject: [vtkusers] vtkStreamer and vtkFunctionSet Message-ID: Hi Prabhu, I agree with you as to file format. By now I use vtkFieldData to store velocity time steps as vtkFloatArray's (the improvement in data classes made with vtk4.0 was cool) and save the whole in a vtk file. To distinguish data arrays you can put them in order them or, better, name them, but a more hierarchical organization of information is needed (maybe making use of XML, so to conform once for all to that standard). Since this would mean re-designing some vtk features, I think we'd better wait for discussion with Berk and collegues. Hear you soon Luca >From: Prabhu Ramachandran >To: "Luca Antiga" >CC: vtkusers at public.kitware.com >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet >Date: Thu, 20 Jun 2002 22:49:58 +0530 > > >>>>> "LA" == Luca Antiga writes: > > LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > LA> mail delivery) I needed to track massless particles in a > LA> time-varying pulsatile CFD simulation of blood vessels. I did > LA> it by first writing a vtkInterpolatedTransientVelocityField, > >[snip] > > LA> vtkStreakLine class which slightly generalize their steady > LA> couterparts. If you want I can send you the code of the three > LA> classes. Thanks for consideration > >Sounds great! Would be nice if this code were part of VTK. Quite a >while ago there was talk of creating a more advanced data file format >for VTK that would support more features. There was also talk of >streak lines etc. Here are a few thoughts I've had. They are still >thoughts and I'm not going to have time to implement anything either. >Effectively this is a wish list. Just in case someone is listening. > > 1. A slightly more intelligent VTK file. Maybe an additional file > format that allows for a more flexible syntax with scope for multiple > datasets, something like a #include etc. > > 2. I guess Luca's classes handle integration over time. So that > should be already done. > > 3. The ablity to use zipped VTK files. Would this be useful or are > binary files good enough? Now that zlib is distributed as part of > VTK this should not be a problem to implement. > > >cheers, >prabhu >_______________________________________________ >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 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From robbel at science.uva.nl Fri Jun 21 04:01:41 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Fri, 21 Jun 2002 10:01:41 +0200 (MEST) Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: References: Message-ID: <34891.146.50.1.207.1024646501.squirrel@webmail.science.uva.nl> Instead of designing yet another file format, perhaps it would be better to adopt existing hierarchical scientific data formats such as HDF or NetCDF? We have a guy here at our appartment who implemented a vtkNetCDFReader some time ago. It hasn't been rigorously tested but perhaps it could be a starting point. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > Hi Prabhu, > I agree with you as to file format. By now I use vtkFieldData to store > velocity time steps as vtkFloatArray's (the improvement in data classes > made with vtk4.0 was cool) and save the whole in a vtk file. To > distinguish data arrays you can put them in order them or, better, > name them, but a more hierarchical organization of information is > needed (maybe making use of XML, so to conform once for all to that > standard). > > Since this would mean re-designing some vtk features, I think we'd > better wait for discussion with Berk and collegues. > Hear you soon > > Luca > > >>From: Prabhu Ramachandran >>To: "Luca Antiga" >>CC: vtkusers at public.kitware.com >>Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet >>Date: Thu, 20 Jun 2002 22:49:58 +0530 >> >> >>>>> "LA" == Luca Antiga writes: >> >> LA> Hi Berk, (sorry for the repeated message, I wasn't sure about >> LA> mail delivery) I needed to track massless particles in a LA> >> time-varying pulsatile CFD simulation of blood vessels. I did LA> >> it by first writing a vtkInterpolatedTransientVelocityField, >> >>[snip] >> >> LA> vtkStreakLine class which slightly generalize their steady LA> >> couterparts. If you want I can send you the code of the three LA> >> classes. Thanks for consideration >> >>Sounds great! Would be nice if this code were part of VTK. Quite a >>while ago there was talk of creating a more advanced data file format >>for VTK that would support more features. There was also talk of >>streak lines etc. Here are a few thoughts I've had. They are still >>thoughts and I'm not going to have time to implement anything either. >>Effectively this is a wish list. Just in case someone is listening. >> >> 1. A slightly more intelligent VTK file. Maybe an additional file >> format that allows for a more flexible syntax with scope for multiple >> datasets, something like a #include etc. >> >> 2. I guess Luca's classes handle integration over time. So that >> should be already done. >> >> 3. The ablity to use zipped VTK files. Would this be useful or are >> binary files good enough? Now that zlib is distributed as part of >> VTK this should not be a problem to implement. >> >> >>cheers, >>prabhu >>_______________________________________________ >>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 > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > > _______________________________________________ > 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 at le.isac.cnr.it Fri Jun 21 05:08:14 2002 From: vtk at le.isac.cnr.it (vtk at le.isac.cnr.it) Date: Fri, 21 Jun 2002 11:08:14 +0200 Subject: [vtkusers] TEXT (HELP)! Message-ID: <200206210908.g5L98Ed02683@nemesi.le.isac.cnr.it> hello! I work with vtk 4.0, tcl/tk on linux workstation. how I can make in order to insert a text that is not 2d, but is legacy to the images? I want that the text wheels with the images! thancks!!! MINO From Gowri.Gopalakrishnan at inteq.com Fri Jun 21 05:34:21 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Fri, 21 Jun 2002 04:34:21 -0500 Subject: [vtkusers] TEXT (HELP)! Message-ID: I am not very sure I understand your quesiion very well, but it looks like what you are looking for is vtkpolydata mapper combined with vtkFollower. The example file is called textorigin.tcl in the vtk examples Gowri -----Original Message----- From: vtk at le.isac.cnr.it [mailto:vtk at le.isac.cnr.it] Sent: 21 June 2002 10:08 To: vtkusers at public.kitware.com Subject: [vtkusers] TEXT (HELP)! hello! I work with vtk 4.0, tcl/tk on linux workstation. how I can make in order to insert a text that is not 2d, but is legacy to the images? I want that the text wheels with the images! thancks!!! MINO _______________________________________________ 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 boyd at biomed.ee.ethz.ch Fri Jun 21 05:51:35 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Fri, 21 Jun 2002 11:51:35 +0200 Subject: [vtkusers] vtkThinPlateSplineTransform limits Message-ID: <3D12F726.453B0D67@biomed.ee.ethz.ch> Hi, Does somebody know the practical limitations of the vtkThinPlateSplineTransform in terms of the number of target and source points it can typically handle? Are there ways to get around limitations related to the number of points used? Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From amati at ira.cnr.it Fri Jun 21 06:11:32 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Fri, 21 Jun 2002 12:11:32 +0200 (CEST) Subject: [vtkusers] TEXT (HELP)! In-Reply-To: <200206210908.g5L98Ed02683@nemesi.le.isac.cnr.it> Message-ID: Hello Mino, you have to use the following classes: vtkTextSource tx tx SetText "TESTO" vtkPolyDataMapper mp mp SetInput [tx GetOutput] vtkFollower act act SetMapper mp act SetCamera [CAMERA] act SetPosition x y z in this way you create a Text that is a poly data and you can see the text from every point of view of the camera. Bye Giancarlo On Fri, 21 Jun 2002 vtk at le.isac.cnr.it wrote: > hello! > I work with vtk 4.0, tcl/tk on linux workstation. > > how I can make in order to insert a text that is not 2d, but is legacy to the images? > I want that the text wheels with the images! > > thancks!!! MINO > > > _______________________________________________ > 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 > -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From T.Hutton at eastman.ucl.ac.uk Fri Jun 21 06:46:20 2002 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 21 Jun 2002 11:46:20 +0100 Subject: [vtkusers] vtkThinPlateSplineTransform limits In-Reply-To: <3D12F726.453B0D67@biomed.ee.ethz.ch> Message-ID: <5.1.0.14.0.20020621113139.046f7a08@144.82.123.1> Good question. In terms of computational cost, the expensive bit is decomposing an N+D+1 x N+D+1 matrix, where N is the number of points and D is the number of dimensions (2 or 3) and decomposition is an O(N^3) operation. If you're using more than, say, 50 or 100 points then it can start to slow down. While I haven't pushed vtkTPS to see when it will break, I think there is no intrinsic limit other than the amount of memory available and your patience. One way to get around having to do one big TPS warp would be to divide your object into different parts if this is possible, and do a smaller TPS on each. On a related note, vtkMath uses the Jacobi method for eigen-decomposition - there are faster ways that you could use if this would help (and contribute to VTK if they do). Tim. At 11:51 21/06/2002 +0200, Steve Boyd wrote: >Hi, > >Does somebody know the practical limitations of the >vtkThinPlateSplineTransform in terms of the number of target and source >points it can typically handle? Are there ways to get around >limitations related to the number of points used? > >Steve > > >-- >Steven Boyd, PhD > >Institute for Biomedical Engineering >ETH and University Zuerich >Moussonstrasse 18 >8044 Zuerich, Switzerland > >tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >------------------------------------------------------------------- >_______________________________________________ >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 lucantiga at hotmail.com Fri Jun 21 07:12:06 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Fri, 21 Jun 2002 13:12:06 +0200 Subject: [vtkusers] vtkStreamer and vtkFunctionSet Message-ID: Hi Robert, I completely agree with you Luca >From: "Robert Belleman" >To: >CC: >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet >Date: Fri, 21 Jun 2002 10:01:41 +0200 (MEST) > >Instead of designing yet another file format, perhaps it would be >better to adopt existing hierarchical scientific data formats >such as HDF or NetCDF? > >We have a guy here at our appartment who implemented a vtkNetCDFReader >some time ago. It hasn't been rigorously tested but perhaps it could >be a starting point. > >-- Rob > >-- >[] Robert Belleman X Section Computational Science [] >[] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] >[] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > > > Hi Prabhu, > > I agree with you as to file format. By now I use vtkFieldData to store > > velocity time steps as vtkFloatArray's (the improvement in data classes > > made with vtk4.0 was cool) and save the whole in a vtk file. To > > distinguish data arrays you can put them in order them or, better, > > name them, but a more hierarchical organization of information is > > needed (maybe making use of XML, so to conform once for all to that > > standard). > > > > Since this would mean re-designing some vtk features, I think we'd > > better wait for discussion with Berk and collegues. > > Hear you soon > > > > Luca > > > > > >>From: Prabhu Ramachandran > >>To: "Luca Antiga" > >>CC: vtkusers at public.kitware.com > >>Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > >>Date: Thu, 20 Jun 2002 22:49:58 +0530 > >> > >> >>>>> "LA" == Luca Antiga writes: > >> > >> LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > >> LA> mail delivery) I needed to track massless particles in a LA> > >> time-varying pulsatile CFD simulation of blood vessels. I did LA> > >> it by first writing a vtkInterpolatedTransientVelocityField, > >> > >>[snip] > >> > >> LA> vtkStreakLine class which slightly generalize their steady LA> > >> couterparts. If you want I can send you the code of the three LA> > >> classes. Thanks for consideration > >> > >>Sounds great! Would be nice if this code were part of VTK. Quite a > >>while ago there was talk of creating a more advanced data file format > >>for VTK that would support more features. There was also talk of > >>streak lines etc. Here are a few thoughts I've had. They are still > >>thoughts and I'm not going to have time to implement anything either. > >>Effectively this is a wish list. Just in case someone is listening. > >> > >> 1. A slightly more intelligent VTK file. Maybe an additional file > >> format that allows for a more flexible syntax with scope for multiple > >> datasets, something like a #include etc. > >> > >> 2. I guess Luca's classes handle integration over time. So that > >> should be already done. > >> > >> 3. The ablity to use zipped VTK files. Would this be useful or are > >> binary files good enough? Now that zlib is distributed as part of > >> VTK this should not be a problem to implement. > >> > >> > >>cheers, > >>prabhu > >>_______________________________________________ > >>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 > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at > > http://explorer.msn.com/intl.asp. > > > > _______________________________________________ > > 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 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From berk.geveci at kitware.com Fri Jun 21 08:27:52 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 21 Jun 2002 08:27:52 -0400 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: References: Message-ID: <1024662473.11040.5.camel@caemlyn.kitwarein.com> Oh, did I not mention that we are working on a new (XML based) file format ? :-) This doesn't mean that VTK shouldn't support HDF and netCDF. I believe it should. We have experimented with both and have some readers for specific versions of both. The main problem is that they are very general and require additional information describing which arrays correspond to geometry, which to data etc. Also, netCDF and HDF readers would require additional libraries since we don't want to distribute the libaries with VTK. -Berk On Fri, 2002-06-21 at 03:42, Luca Antiga wrote: > Hi Prabhu, > I agree with you as to file format. By now I use vtkFieldData to store > velocity time steps as vtkFloatArray's (the improvement in data classes made > with vtk4.0 was cool) and save the whole in a vtk file. To distinguish data > arrays you can put them in order them or, better, name them, but a more > hierarchical organization of information is needed (maybe making use of XML, > so to conform once for all to that standard). > > Since this would mean re-designing some vtk features, I think we'd better > wait for discussion with Berk and collegues. > Hear you soon > > Luca > > > >From: Prabhu Ramachandran > >To: "Luca Antiga" > >CC: vtkusers at public.kitware.com > >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > >Date: Thu, 20 Jun 2002 22:49:58 +0530 > > > > >>>>> "LA" == Luca Antiga writes: > > > > LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > > LA> mail delivery) I needed to track massless particles in a > > LA> time-varying pulsatile CFD simulation of blood vessels. I did > > LA> it by first writing a vtkInterpolatedTransientVelocityField, > > > >[snip] > > > > LA> vtkStreakLine class which slightly generalize their steady > > LA> couterparts. If you want I can send you the code of the three > > LA> classes. Thanks for consideration > > > >Sounds great! Would be nice if this code were part of VTK. Quite a > >while ago there was talk of creating a more advanced data file format > >for VTK that would support more features. There was also talk of > >streak lines etc. Here are a few thoughts I've had. They are still > >thoughts and I'm not going to have time to implement anything either. > >Effectively this is a wish list. Just in case someone is listening. > > > > 1. A slightly more intelligent VTK file. Maybe an additional file > > format that allows for a more flexible syntax with scope for multiple > > datasets, something like a #include etc. > > > > 2. I guess Luca's classes handle integration over time. So that > > should be already done. > > > > 3. The ablity to use zipped VTK files. Would this be useful or are > > binary files good enough? Now that zlib is distributed as part of > > VTK this should not be a problem to implement. > > > > > >cheers, > >prabhu > >_______________________________________________ > >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 > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > _______________________________________________ > 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 ben.held at staarinc.com Fri Jun 21 08:56:58 2002 From: ben.held at staarinc.com (Ben Held) Date: Fri, 21 Jun 2002 07:56:58 -0500 Subject: [vtkusers] Coloring edges of vtkCells Message-ID: Hello, I need to be able to color individual edges of cells of a finite element mesh displayed in VTK. I know how to extract the edges and display them as a single color (via vtkExtractEdges). What is the best way to do this? Thanks, Ben Ben L. Held Simulation Technology & Applied Research, Inc. 11520 N. Port Washington Rd. Suite 101B Mequon, WI 53092 Phone: (262) 240-0291 x101 FAX: (262) 240-0294 e-mail: ben.held at staarinc.com web: http://www.staarinc.com From heiland at ncsa.uiuc.edu Fri Jun 21 09:43:00 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 21 Jun 2002 08:43:00 -0500 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: Berk Geveci "Re: [vtkusers] vtkStreamer and vtkFunctionSet" (Jun 21, 8:27am) References: <1024662473.11040.5.camel@caemlyn.kitwarein.com> Message-ID: <1020621084301.ZM25460@pecos.ncsa.uiuc.edu> So when can we begin to see/use this new XML format of which you speak? --Randy On Jun 21, 8:27am, Berk Geveci wrote: > Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > Oh, did I not mention that we are working on a new (XML based) file > format ? :-) This doesn't mean that VTK shouldn't support HDF and > netCDF. I believe it should. We have experimented with both and > have some readers for specific versions of both. The main problem is > that they are very general and require additional information describing > which arrays correspond to geometry, which to data etc. Also, netCDF and > HDF readers would require additional libraries since we don't want > to distribute the libaries with VTK. > > -Berk > > On Fri, 2002-06-21 at 03:42, Luca Antiga wrote: > > Hi Prabhu, > > I agree with you as to file format. By now I use vtkFieldData to store > > velocity time steps as vtkFloatArray's (the improvement in data classes made > > with vtk4.0 was cool) and save the whole in a vtk file. To distinguish data > > arrays you can put them in order them or, better, name them, but a more > > hierarchical organization of information is needed (maybe making use of XML, > > so to conform once for all to that standard). > > > > Since this would mean re-designing some vtk features, I think we'd better > > wait for discussion with Berk and collegues. > > Hear you soon > > > > Luca > > > > > > >From: Prabhu Ramachandran > > >To: "Luca Antiga" > > >CC: vtkusers at public.kitware.com > > >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > > >Date: Thu, 20 Jun 2002 22:49:58 +0530 > > > > > > >>>>> "LA" == Luca Antiga writes: > > > > > > LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > > > LA> mail delivery) I needed to track massless particles in a > > > LA> time-varying pulsatile CFD simulation of blood vessels. I did > > > LA> it by first writing a vtkInterpolatedTransientVelocityField, > > > > > >[snip] > > > > > > LA> vtkStreakLine class which slightly generalize their steady > > > LA> couterparts. If you want I can send you the code of the three > > > LA> classes. Thanks for consideration > > > > > >Sounds great! Would be nice if this code were part of VTK. Quite a > > >while ago there was talk of creating a more advanced data file format > > >for VTK that would support more features. There was also talk of > > >streak lines etc. Here are a few thoughts I've had. They are still > > >thoughts and I'm not going to have time to implement anything either. > > >Effectively this is a wish list. Just in case someone is listening. > > > > > > 1. A slightly more intelligent VTK file. Maybe an additional file > > > format that allows for a more flexible syntax with scope for multiple > > > datasets, something like a #include etc. > > > > > > 2. I guess Luca's classes handle integration over time. So that > > > should be already done. > > > > > > 3. The ablity to use zipped VTK files. Would this be useful or are > > > binary files good enough? Now that zlib is distributed as part of > > > VTK this should not be a problem to implement. > > > > > > > > >cheers, > > >prabhu > > >_______________________________________________ > > >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 aulenbac at cgd.ucar.edu Fri Jun 21 09:56:26 2002 From: aulenbac at cgd.ucar.edu (Steve Aulenbach) Date: Fri, 21 Jun 2002 07:56:26 -0600 (MDT) Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: <1020621084301.ZM25460@pecos.ncsa.uiuc.edu> Message-ID: I'm interested in learning more about the netCDF and HDF readers as well. Steve On Fri, 21 Jun 2002, Randy Heiland wrote: > So when can we begin to see/use this new XML format of which you speak? > > --Randy > > > On Jun 21, 8:27am, Berk Geveci wrote: > > Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > > Oh, did I not mention that we are working on a new (XML based) file > > format ? :-) This doesn't mean that VTK shouldn't support HDF and > > netCDF. I believe it should. We have experimented with both and > > have some readers for specific versions of both. The main problem is > > that they are very general and require additional information describing > > which arrays correspond to geometry, which to data etc. Also, netCDF and > > HDF readers would require additional libraries since we don't want > > to distribute the libaries with VTK. > > > > -Berk > > > > On Fri, 2002-06-21 at 03:42, Luca Antiga wrote: > > > Hi Prabhu, > > > I agree with you as to file format. By now I use vtkFieldData to store > > > velocity time steps as vtkFloatArray's (the improvement in data classes > made > > > with vtk4.0 was cool) and save the whole in a vtk file. To distinguish data > > > arrays you can put them in order them or, better, name them, but a more > > > hierarchical organization of information is needed (maybe making use of > XML, > > > so to conform once for all to that standard). > > > > > > Since this would mean re-designing some vtk features, I think we'd better > > > wait for discussion with Berk and collegues. > > > Hear you soon > > > > > > Luca > > > > > > > > > >From: Prabhu Ramachandran > > > >To: "Luca Antiga" > > > >CC: vtkusers at public.kitware.com > > > >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > > > >Date: Thu, 20 Jun 2002 22:49:58 +0530 > > > > > > > > >>>>> "LA" == Luca Antiga writes: > > > > > > > > LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > > > > LA> mail delivery) I needed to track massless particles in a > > > > LA> time-varying pulsatile CFD simulation of blood vessels. I did > > > > LA> it by first writing a vtkInterpolatedTransientVelocityField, > > > > > > > >[snip] > > > > > > > > LA> vtkStreakLine class which slightly generalize their steady > > > > LA> couterparts. If you want I can send you the code of the three > > > > LA> classes. Thanks for consideration > > > > > > > >Sounds great! Would be nice if this code were part of VTK. Quite a > > > >while ago there was talk of creating a more advanced data file format > > > >for VTK that would support more features. There was also talk of > > > >streak lines etc. Here are a few thoughts I've had. They are still > > > >thoughts and I'm not going to have time to implement anything either. > > > >Effectively this is a wish list. Just in case someone is listening. > > > > > > > > 1. A slightly more intelligent VTK file. Maybe an additional file > > > > format that allows for a more flexible syntax with scope for multiple > > > > datasets, something like a #include etc. > > > > > > > > 2. I guess Luca's classes handle integration over time. So that > > > > should be already done. > > > > > > > > 3. The ablity to use zipped VTK files. Would this be useful or are > > > > binary files good enough? Now that zlib is distributed as part of > > > > VTK this should not be a problem to implement. > > > > > > > > > > > >cheers, > > > >prabhu > > > >_______________________________________________ > > > >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 boyd at biomed.ee.ethz.ch Fri Jun 21 10:01:17 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Fri, 21 Jun 2002 16:01:17 +0200 Subject: [vtkusers] vtkThinPlateSplineTransform limits References: <5.1.0.14.0.20020621113139.046f7a08@144.82.123.1> Message-ID: <3D1331AD.10BBF8DB@biomed.ee.ethz.ch> Hi Tim, Thanks for the points about the TPS. In the past I had once looked at some papers by JC Carr which are available for download (http://aranz.com/). For example, the following paper is a nice overview: http://aranz.com/download/modelling/papers/siggraph01.pdf I understand that they have worked out a way to deal with large matrices, but I'll have to look again to see what they did. At any rate, I thought I'd point that out in case you're interested. Maybe I'll try to implement their techniques... we'll see. Cheers, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From berk.geveci at kitware.com Fri Jun 21 10:24:26 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 21 Jun 2002 10:24:26 -0400 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: <1020621084301.ZM25460@pecos.ncsa.uiuc.edu> References: <1024662473.11040.5.camel@caemlyn.kitwarein.com> <1020621084301.ZM25460@pecos.ncsa.uiuc.edu> Message-ID: <1024669466.11040.7.camel@caemlyn.kitwarein.com> A few months. Fall, I think. On Fri, 2002-06-21 at 09:43, Randy Heiland wrote: > So when can we begin to see/use this new XML format of which you speak? > > --Randy > > > On Jun 21, 8:27am, Berk Geveci wrote: > > Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > > Oh, did I not mention that we are working on a new (XML based) file > > format ? :-) This doesn't mean that VTK shouldn't support HDF and > > netCDF. I believe it should. We have experimented with both and > > have some readers for specific versions of both. The main problem is > > that they are very general and require additional information describing > > which arrays correspond to geometry, which to data etc. Also, netCDF and > > HDF readers would require additional libraries since we don't want > > to distribute the libaries with VTK. > > > > -Berk > > > > On Fri, 2002-06-21 at 03:42, Luca Antiga wrote: > > > Hi Prabhu, > > > I agree with you as to file format. By now I use vtkFieldData to store > > > velocity time steps as vtkFloatArray's (the improvement in data classes > made > > > with vtk4.0 was cool) and save the whole in a vtk file. To distinguish data > > > arrays you can put them in order them or, better, name them, but a more > > > hierarchical organization of information is needed (maybe making use of > XML, > > > so to conform once for all to that standard). > > > > > > Since this would mean re-designing some vtk features, I think we'd better > > > wait for discussion with Berk and collegues. > > > Hear you soon > > > > > > Luca > > > > > > > > > >From: Prabhu Ramachandran > > > >To: "Luca Antiga" > > > >CC: vtkusers at public.kitware.com > > > >Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > > > >Date: Thu, 20 Jun 2002 22:49:58 +0530 > > > > > > > > >>>>> "LA" == Luca Antiga writes: > > > > > > > > LA> Hi Berk, (sorry for the repeated message, I wasn't sure about > > > > LA> mail delivery) I needed to track massless particles in a > > > > LA> time-varying pulsatile CFD simulation of blood vessels. I did > > > > LA> it by first writing a vtkInterpolatedTransientVelocityField, > > > > > > > >[snip] > > > > > > > > LA> vtkStreakLine class which slightly generalize their steady > > > > LA> couterparts. If you want I can send you the code of the three > > > > LA> classes. Thanks for consideration > > > > > > > >Sounds great! Would be nice if this code were part of VTK. Quite a > > > >while ago there was talk of creating a more advanced data file format > > > >for VTK that would support more features. There was also talk of > > > >streak lines etc. Here are a few thoughts I've had. They are still > > > >thoughts and I'm not going to have time to implement anything either. > > > >Effectively this is a wish list. Just in case someone is listening. > > > > > > > > 1. A slightly more intelligent VTK file. Maybe an additional file > > > > format that allows for a more flexible syntax with scope for multiple > > > > datasets, something like a #include etc. > > > > > > > > 2. I guess Luca's classes handle integration over time. So that > > > > should be already done. > > > > > > > > 3. The ablity to use zipped VTK files. Would this be useful or are > > > > binary files good enough? Now that zlib is distributed as part of > > > > VTK this should not be a problem to implement. > > > > > > > > > > > >cheers, > > > >prabhu > > > >_______________________________________________ > > > >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 andy.cedilnik at kitware.com Fri Jun 21 10:25:16 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 21 Jun 2002 10:25:16 -0400 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: <1024662473.11040.5.camel@caemlyn.kitwarein.com> References: <1024662473.11040.5.camel@caemlyn.kitwarein.com> Message-ID: <1024669518.7253.89.camel@xanth.kitwarein.com> Also libraries such as HDF5 are problematic for several reasons. An example is the way they do memory management. Purify always detect memory leaks even though they are not actual leaks. Another major drawback of including HDF5 and NetCDF is that every time we include another library in VTK, somebody has to port it to CMake, make it work on all platforms, maintain the compatibility with new versions, etc. The CMake 1.4 will solve the problem of linking libraries to your projects, but the libraries will have to be present for all projects even for those who do not use HDF5 and NetCDF. Andy On Fri, 2002-06-21 at 08:27, Berk Geveci wrote: > Oh, did I not mention that we are working on a new (XML based) file > format ? :-) This doesn't mean that VTK shouldn't support HDF and > netCDF. I believe it should. We have experimented with both and > have some readers for specific versions of both. The main problem is > that they are very general and require additional information describing > which arrays correspond to geometry, which to data etc. Also, netCDF and > HDF readers would require additional libraries since we don't want > to distribute the libaries with VTK. From heiland at ncsa.uiuc.edu Fri Jun 21 10:51:18 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 21 Jun 2002 09:51:18 -0500 Subject: [vtkusers] adding libs (was vtkStreamer and vtkFunctionSet) In-Reply-To: Andy Cedilnik "Re: [vtkusers] vtkStreamer and vtkFunctionSet" (Jun 21, 10:25am) References: <1024662473.11040.5.camel@caemlyn.kitwarein.com> <1024669518.7253.89.camel@xanth.kitwarein.com> Message-ID: <1020621095119.ZM27433@pecos.ncsa.uiuc.edu> I don't exactly follow these arguments. Specifically, I don't see the issue with providing a CMake boolean for using HDF. Just as, when we build VTK w/ parallel w/ MPI, the user is responsible for building/providing the MPI lib, why can't the same be true for HDF (or whatever)? Surely Kitware doesn't verify that all flavors of MPI work on all platforms. --Randy On Jun 21, 10:25am, Andy Cedilnik wrote: > Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet > Also libraries such as HDF5 are problematic for several reasons. An > example is the way they do memory management. Purify always detect > memory leaks even though they are not actual leaks. Another major > drawback of including HDF5 and NetCDF is that every time we include > another library in VTK, somebody has to port it to CMake, make it work > on all platforms, maintain the compatibility with new versions, etc. The > CMake 1.4 will solve the problem of linking libraries to your projects, > but the libraries will have to be present for all projects even for > those who do not use HDF5 and NetCDF. > > Andy > > On Fri, 2002-06-21 at 08:27, Berk Geveci wrote: > > Oh, did I not mention that we are working on a new (XML based) file > > format ? :-) This doesn't mean that VTK shouldn't support HDF and > > netCDF. I believe it should. We have experimented with both and > > have some readers for specific versions of both. The main problem is > > that they are very general and require additional information describing > > which arrays correspond to geometry, which to data etc. Also, netCDF and > > HDF readers would require additional libraries since we don't want > > to distribute the libaries with VTK. > > > _______________________________________________ > 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 >-- End of excerpt from Andy Cedilnik From cnavarro at ncsa.uiuc.edu Fri Jun 21 11:22:47 2002 From: cnavarro at ncsa.uiuc.edu (Christopher Navarro) Date: Fri, 21 Jun 2002 10:22:47 -0500 (CDT) Subject: [vtkusers] Rendering inside Java JPanel? Message-ID: Hi, I'm fairly new to Java and was wondering if it is possible to render an image within a JPanel object instead of the default render window that is created? (for reference I am using vtk 4.0) ie: vtkConeSource cone = new vtkConeSource() . mapper . actor . renderer etc JPanel panel; // render the image inside this panel I notice there is a SetWindowId....can I obtain a Java windows ID and set the renderwindow's ID to that? -chris From andy.cedilnik at kitware.com Fri Jun 21 11:39:07 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 21 Jun 2002 11:39:07 -0400 Subject: [vtkusers] adding libs (was vtkStreamer and vtkFunctionSet) In-Reply-To: <1020621095119.ZM27433@pecos.ncsa.uiuc.edu> References: <1024662473.11040.5.camel@caemlyn.kitwarein.com> <1024669518.7253.89.camel@xanth.kitwarein.com> <1020621095119.ZM27433@pecos.ncsa.uiuc.edu> Message-ID: <1024673948.7253.97.camel@xanth.kitwarein.com> Randy, You are right. Kitware does not verify if MPI works on all platform. But you have to admit that there is lots of people using VTK without parallel. But, by adopting HDF file format (or NetCDF), we would have to make sure that all users of VTK would be able to compile and use it. This is especially anoying when you say somebody to download CMake, VTK, and by the way, if you want to compile this, you will need: libHDF, libNetCDF, libTiff, libJpeg, libPng, libExpat... And not only that, most vtk classes (especially IO) use fairly standard API's from these libraries, but still; the libraries change. They change API... By adding these libraries to VTK, we make sure that not only there is a library, but there is the right version. That said, I think adding HDF and NetCDF is not completely out of the picture. I suspect better way of adding libraries will have to be designed. For example, a way to include (or not) tiff if your application needs it. Andy On Fri, 2002-06-21 at 10:51, Randy Heiland wrote: > I don't exactly follow these arguments. Specifically, I don't see the issue > with providing a CMake boolean for using HDF. Just as, when we build VTK w/ > parallel w/ MPI, the user is responsible for building/providing the MPI lib, > why can't the same be true for HDF (or whatever)? > > Surely Kitware doesn't verify that all flavors of MPI work on all platforms. From maraux at ondim.fr Fri Jun 21 11:49:49 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Fri, 21 Jun 2002 17:49:49 +0200 Subject: [vtkusers] vtkExtractEdges, how does it work ? Message-ID: <00ca01c2193b$46856f70$c000a8c0@ouessant> I got a polydata populated with 234 polys and 12730 points. I want to transform the polydata polygons in lines / polylines. I know how to do it manually, but I tried to use vtkExtractEdges to save time. Here is my code : //------------------------------------------------------------------------------------------------------------------------------------------------- cout <<"polydata content : " <GetNumberOfPoints() <<"points, " // 12760 points <GetNumberOfLines() <<"Lignes, " // 0 lines <GetNumberOfPolys() <<"Polys." // 234 polys <SetInput(shapePolyData); //edgeExtracter->CreateDefaultLocator(); // i tried with and without cout <<"edge extracter : points / lines / polys" <GetOutput()->GetNumberOfPoints() <<" / " <GetOutput()->GetNumberOfLines() <<" / " <GetOutput()->GetNumberOfPolys() < edge extracter 0 / 0 / 0 - I expected some lines and points. // and I want to copy it back to the original polyData //shapePolyData->SetPoints(edgeExtracter->GetOutput()->GetPoints()); //shapePolyData->DeepCopy(edgeExtracter->GetOutput()); //------------------------------------------------------------------------------------------------------------------------------------------------------ I would like to obtain some lines, but edgeExtracter output is empty. What do I do wrong ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Fri Jun 21 11:57:55 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 21 Jun 2002 21:27:55 +0530 Subject: [vtkusers] vtkStreamer and vtkFunctionSet In-Reply-To: <34891.146.50.1.207.1024646501.squirrel@webmail.science.uva.nl> References: <34891.146.50.1.207.1024646501.squirrel@webmail.science.uva.nl> Message-ID: <15635.19715.717171.327406@monster.linux.in> >>>>> "RB" == Robert Belleman writes: RB> Instead of designing yet another file format, perhaps it would RB> be better to adopt existing hierarchical scientific data RB> formats such as HDF or NetCDF? RB> We have a guy here at our appartment who implemented a RB> vtkNetCDFReader some time ago. It hasn't been rigorously RB> tested but perhaps it could be a starting point. FWIW, I found this utility that converts HDF5 files to VTK files (and many others): http://ab-initio.mit.edu/h5utils/ Maybe some of you might find it useful. prabhu From marcio.mathias at edb.ericsson.se Fri Jun 21 11:59:49 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Fri, 21 Jun 2002 12:59:49 -0300 Subject: [vtkusers] VTK&TCL/TK From the CDROM Message-ID: Hi guys, Is it possible to get everything, VTK4.0 and the Tcl/TK,running directling from a CDROM (whitout having to install anything into the HD)? If someone has the recipe, please send me the necessary patches how to create such CD-ROM. Thanks in advance for any help, Marcio. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnorton at cisco.com Fri Jun 21 20:21:24 2002 From: mnorton at cisco.com (Michael Norton) Date: Fri, 21 Jun 2002 17:21:24 -0700 Subject: [vtkusers] vtkActor in Tcl Message-ID: <4.3.2.7.2.20020621171829.038cd968@mira-sjcm-2.cisco.com> hi, How do I convert this to Tcl? (vtkActor) aPolyLineActor->GetProperty()->SetDiffuser(0,0,0); I tried: aPolyLineActor GetProperty [ SetDiffuser 0 0 0] Doesn't work. :{ thanks, Mike From mnorton at cisco.com Fri Jun 21 20:31:45 2002 From: mnorton at cisco.com (Michael Norton) Date: Fri, 21 Jun 2002 17:31:45 -0700 Subject: [vtkusers] vtkActor in Tcl In-Reply-To: <4.3.2.7.2.20020621171829.038cd968@mira-sjcm-2.cisco.com> Message-ID: <4.3.2.7.2.20020621173059.01c7bbb0@mira-sjcm-2.cisco.com> Never mind! I figured it out. :) Solution: [ aPolyLineActor GetProperty ] SetDiffuseColor 0 0 0 Mike At 05:21 PM 6/21/2002 -0700, Michael Norton wrote: >hi, > >How do I convert this to Tcl? > >(vtkActor) > >aPolyLineActor->GetProperty()->SetDiffuser(0,0,0); > >I tried: > >aPolyLineActor GetProperty [ SetDiffuser 0 0 0] > >Doesn't work. :{ > >thanks, > >Mike > >_______________________________________________ >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 schein at cs.Technion.AC.IL Sat Jun 22 02:02:13 2002 From: schein at cs.Technion.AC.IL (sagi schein) Date: Sat, 22 Jun 2002 08:02:13 +0200 Subject: [vtkusers] concave polygons Message-ID: <000201c219b2$5a9c21d0$54294484@cs.technion.ac.il> Is there any to 1. Generate convex polygon(s) out of a concave polygon using vtk? 2. Identify concave polygons? -------------- next part -------------- An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Sat Jun 22 06:26:18 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Sat, 22 Jun 2002 12:26:18 +0200 (CEST) Subject: [vtkusers] MFC + VisualC 6.0 + VTK Message-ID: Hello everybody, I finaly obtaind my .dll and .lib after 1 hour of compiling and now I produced dll and lib. How can I set the "project settings" properties in visual C++ 6.0 to use VTK library? thank a lot Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From mepisto at hotmail.com Sat Jun 22 07:46:49 2002 From: mepisto at hotmail.com (mepisto) Date: Sat, 22 Jun 2002 13:46:49 +0200 Subject: [vtkusers] altering the normals Message-ID: hi all, I m trying to simulate bump mapping on a sphere by changing the normals in a random manner. I actually make a vtkFloatArray with random numbers and copy that array with the SetNormals to a vtkPointData of the sphere. The methode doesnt work. What I m I doing wrong? kind regards Stijn #------------------------------ # BUMP MAPPING #------------------------------ # create the sphere vtkSphereSource bump bump SetThetaResolution 20 bump SetPhiResolution 20 bump SetRadius 1.8 bump Update vtkPolyDataNormals qqq qqq SetInput [bump GetOutput] qqq ComputePointNormalsOn qqq Update vtkPolyData pDatat set pDatat [bump GetOutput] puts [$pDatat GetNumberOfPoints] pDatat Update vtkPointData pData1 set pData1 [[[qqq GetOutput] GetPointData] GetNormals] #get the normals data puts [$pData1 GetNumberOfTuples ] pData1 Update vtkFloatArray floatArrayNormals vtkMath rand floatArrayNormals SetNumberOfComponents 3 floatArrayNormals SetNumberOfTuples 362 for {set i 0} {$i<362} {incr i} { floatArrayNormals InsertNextValue [rand Random 0 1] # puts [floatArrayNormals GetValue $i] } puts [floatArrayNormals GetNumberOfTuples] pData1 SetNormals floatArrayNormals pData1 Update pDatat Update qqq Update bump Update vtkPolyDataMapper bumpMapper bumpMapper SetInput [bump GetOutput] vtkActor bumpActor bumpActor SetMapper bumpMapper [bumpActor GetProperty] SetColor 0.9 0.1 0.15 bumpActor SetPosition 2.5 1.6 2.55 eval [bumpActor GetProperty] SetInterpolationToGouraud -------------- next part -------------- An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Sat Jun 22 10:41:02 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Sat, 22 Jun 2002 16:41:02 +0200 (CEST) Subject: [vtkusers] MFC Classes and VTK Message-ID: Hello again, is there a little tutorial to how to build a single document application which use vtk library and MFC? thank you giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From prabhu at aero.iitm.ernet.in Sat Jun 22 12:03:52 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 22 Jun 2002 21:33:52 +0530 Subject: [vtkusers] altering the normals In-Reply-To: References: Message-ID: <15636.40936.718989.916589@monster.linux.in> >>>>> "Mepisto" == mepisto writes: Mepisto> hi all, I m trying to simulate bump mapping on a sphere Mepisto> by changing the normals in a random manner. I actually Mepisto> make a vtkFloatArray with random numbers and copy that Mepisto> array with the SetNormals to a vtkPointData of the Mepisto> sphere. The methode doesnt work. What I m I doing wrong? Setting the normals wont do the job. You need to warp the existing polydata. I'd suggest that you add your random bump values as a vector and then use the vtkWarpVector class to warp the polydata using the vectors at each point. cheers, prabhu From j.robinson at kepler.ie Sat Jun 22 13:34:39 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Sat, 22 Jun 2002 18:34:39 +0100 Subject: [vtkusers] Static Libraries!!!!????? Message-ID: NB: OS Windows 98 Compiler: MS C++ v6 Dear All, I must be missing something fundamental, but I simply cannot achieve my goal, which is to add the vtk libraries as static libraries into my project. I have used Cmake to create static libraries (I think!!??) by directing Cmake at the folders containing the source code that I downloaded and getting it to compile. The BUILD_SHARED_LIBS is OFF by default (which is what I want??). The resulting *.lib files are larger than the originals that were generating during the original install process (which is what I woul dexpect). I have used the OPTIONS/DIRECTORIES to point my project to the appropriate folder and have included vtkCommon.lib etc in the settings under the link tab. I am getting the following errors: cross-section.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) IsoSurface.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z) vtkFlows.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall GAP for removed similar errors. vtkMFCRenderView.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __stdcall vtkHandleMessage2(struct HWND__ *,unsigned int,unsigned int,long,class vtkWin32RenderWindowInteractor *)" (__imp_?vtkHandleMessage2@@YGJPAUHWND__@ @IIJPAVvtkWin32RenderWindowInteractor@@@Z) .\Presentation Version/PISPARSEPanMeshv3.1.exe : fatal error LNK1120: 62 unresolved externals Error executing link.exe. PISPARSEPanMeshv3.1.exe - 82 error(s), 6 warning(s) I would have assumed that compiling the vtk libraries statically would mean that all the code has been included and that there is no need for dlls (which is what I want to achieve). Please help, as I am becoming increasingly despondent/frustrated/annoyed/tired etc. Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 959 bytes Desc: not available URL: From ted at caept.com Sat Jun 22 14:52:55 2002 From: ted at caept.com (Ted Christiansen) Date: Sat, 22 Jun 2002 20:52:55 +0200 Subject: [vtkusers] vtk & static libraries References: <20020622173602.760C61AB4D@public.kitware.com> Message-ID: <3D14C787.8E4D1DDB@caept.com> James, Sounds like CMake didnt setup the dll export macros properly. In vtk3.2 I had to change these lines in vtkWin32Header.h: // Handle compiler warning messages, etc. #pragma warning ( disable : 4244 ) #pragma warning ( disable : 4305 ) #pragma warning ( disable : 4309 ) #ifndef VTKSTATIC #ifdef VTKDLL #define VTK_EXPORT // __declspec( dllexport ) #else #define VTK_EXPORT // __declspec( dllimport ) #endif #else #define VTK_EXPORT #endif commenting out the __declspec( dllexport ). This makes the VTK_EXPORT macro expand to nothing which makes the libraries static. I haven't tried vtk40 yet so I cant say how that works. Ted From amati at ira.cnr.it Sat Jun 22 16:59:11 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Sat, 22 Jun 2002 22:59:11 +0200 (CEST) Subject: [vtkusers] creating a VTk in MFC Message-ID: Hello everybody, I have serious problem in creating a render window in a MFC application, I mean that I would like to create a render window in the client area of my MFC application, while now I obtained only to create a new window outside the main application. Any body can help me? thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From karshi.hasanov at utoronto.ca Sun Jun 23 02:12:36 2002 From: karshi.hasanov at utoronto.ca (karshi) Date: Sun, 23 Jun 2002 02:12:36 -0400 Subject: [vtkusers] vtk_source_installation Message-ID: <3D1566D4.1080509@utoronto.ca> Hi all, I've installed VTK4.0 from the source, but can't find the vtkRenderWidget.dll . What options I should enable to produle the vtkRenserWidget library? Thanks From ottermo at stud.ntnu.no Sun Jun 23 06:02:30 2002 From: ottermo at stud.ntnu.no (Maria Vatshaug Ottermo) Date: Sun, 23 Jun 2002 12:02:30 +0200 (CEST) Subject: [vtkusers] ExtractVOI with arbitrary shape Message-ID: Hi I am working on segmentation of an ultrasound volume, and to save computation time I want to extract a volume of interest. Until now I have been using vtkExtractVOI, but as far as I understand ExtractVOI can only be used to extract a rectangular shape. I am using a snake algorithm to define the area of interest in each slice of my volume, and the output of this algorithm is a linked list. Does anybody know if there is a class in vtk that takes a list of coordinates as input instead of a rectangular shape? Thank you! Maria Ottermo From tarifa at rpi.edu Sun Jun 23 11:44:46 2002 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Sun, 23 Jun 2002 11:44:46 -0400 Subject: [vtkusers] creating a VTk in MFC References: Message-ID: <000d01c21acc$e73620d0$0201a8c0@nycap.rr.com> Hi Giancarlo, You do everything normally except you call SetParentId(m_hWnd); of the rendering window instance. For the more advanced stuf, you can be as creative as you want. I personally put the vtk code in a class derived from the MFC CView class. I trap the screen size change inside the main CView class and resize the rendering window accordingly. Below you can find pieces of code form my main application. They should be easy to follow. I use the single-document-single-view architecture. Good luck. Asad /*********************************************************/ // Code I put in a class derived from CView // when I want to visualize something. GetDocument()->m_WindowRenderMode=1; // Define the window to render and the renderer. //{ GetDocument()->renderer1 = vtkRenderer::New(); GetDocument()->renWin = vtkRenderWindow::New(); GetDocument()->renWin->AddRenderer(GetDocument()->renderer1); GetDocument()->renWin->SetParentId(m_hWnd); GetDocument()->iren = vtkRenderWindowInteractor::New(); GetDocument()->iren->SetRenderWindow(GetDocument()->renWin); // Visualization code. this->Render(); //} /*********************************************************/ /*********************************************************/ // The render functions I have in the main CView class. void CRegMagicWINGUIView::Render() { RECT ClientRect; GetClientRect(&ClientRect); Render(ClientRect.right-ClientRect.left,ClientRect.bottom-ClientRect.top); } void CRegMagicWINGUIView::Render(int cx,int cy) { if((GetDocument()->renWin)==NULL) { AfxMessageBox("The redering window is not instantiated...."); return; } GetDocument()->renWin->SetSize(cx,cy); if(GetDocument()->m_WindowRenderMode==0) { AfxMessageBox("The redering mode is set to zero....",MB_ICONERROR); return; } if(GetDocument()->m_WindowRenderMode==1) { if(GetDocument()->renderer1!=NULL) GetDocument()->renderer1->SetViewport(0,0,1,1); } if(GetDocument()->m_WindowRenderMode==2) { if(GetDocument()->renderer1!=NULL) GetDocument()->renderer1->SetViewport(0,0.5,1,1); if(GetDocument()->renderer2!=NULL) GetDocument()->renderer2->SetViewport(0,0,1,0.5); } if(GetDocument()->m_WindowRenderMode==3) { if(GetDocument()->renderer1!=NULL) GetDocument()->renderer1->SetViewport(0,0.5,1,1); if(GetDocument()->renderer2!=NULL) GetDocument()->renderer2->SetViewport(0,0,0.5,0.5); if(GetDocument()->renderer3!=NULL) GetDocument()->renderer3->SetViewport(0.5,0,1,0.5); } if(GetDocument()->m_WindowRenderMode==4) { if(GetDocument()->renderer1!=NULL) GetDocument()->renderer1->SetViewport(0,0.5,0.5,1); if(GetDocument()->renderer2!=NULL) GetDocument()->renderer2->SetViewport(0.5,0.5,1,1); if(GetDocument()->renderer3!=NULL) GetDocument()->renderer3->SetViewport(0,0,0.5,0.5); if(GetDocument()->renderer4!=NULL) GetDocument()->renderer4->SetViewport(0.5,0,1,0.5); } GetDocument()->renWin->Render(); OnDraw(GetDC()); } /*********************************************************/ &&&&&&&&&&&&&&&&& * Asad A. Abu-Tarif * Computer Engineering. * PhD Candidate, Rensselaer Polytechnic Institute (RPI). * Web-site: http://asad.ods.org/Professional/ * Registration Toolkit: http://asad.ods.org/RegMagicTKDoc/ * tarifa at rpi.edu &&&&&&&&&&&&&&&&&& * When in charge, ponder * When in trouble, delegate * When in doubt, mumble &&&&&&&&&&&&&&&&& ----- Original Message ----- From: "Giancarlo Amati" To: Sent: Saturday, June 22, 2002 4:59 PM Subject: [vtkusers] creating a VTk in MFC > Hello everybody, > > I have serious problem in creating a render window in a MFC application, I > mean that I would like to create a render window in the client area of my > MFC application, while now I obtained only to create a new window outside > the main application. > > Any body can help me? > > thank you > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 gamati at libero.it Sun Jun 23 13:22:58 2002 From: gamati at libero.it (Giancarlo Amati) Date: Sun, 23 Jun 2002 19:22:58 +0200 Subject: [vtkusers] Expanding VTk Message-ID: <001f01c21ada$9e836880$2108ff25@fastwebnet.it> Hello everybody, I would like to expand vtkDataReader deriving my new class vtkPLYReader. Is there a tutorial which explain kitware rules to expand vtk classes? thank a lot giancarlo Amati -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at imaging.robarts.ca Sun Jun 23 13:55:28 2002 From: dgobbi at imaging.robarts.ca (David Gobbi) Date: Sun, 23 Jun 2002 13:55:28 -0400 (EDT) Subject: [vtkusers] ExtractVOI with arbitrary shape In-Reply-To: Message-ID: Hi Maria, It is a multistep process, but you can use a pipeline like the following: vtkPoints <- create your list of points vtkImplicitSelectionLoop <- turn the list of points into a function vtkImplicitFunctionToImageStencil <- turn function into a stencil (mask) vtkImageStencil <- apply the stencil to the image or vtkImageAccumulate <- compute histogram within stencil area, or do image statistics within stencil area It is also possible to use vtkClipDataSet to clip the image. This will convert the image into a vtkUnstructuredGrid. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Sun, 23 Jun 2002, Maria Vatshaug Ottermo wrote: > Hi > > I am working on segmentation of an ultrasound volume, and to save > computation time I want to extract a volume of interest. Until now I have > been using vtkExtractVOI, but as far as I understand ExtractVOI can only > be used to extract a rectangular shape. I am using a snake algorithm to > define the area of interest in each slice of my volume, and the output of > this algorithm is a linked list. Does anybody know if there is a class in > vtk that takes a list of coordinates as input instead of a rectangular > shape? > > Thank you! > > Maria Ottermo > > _______________________________________________ > 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 maxxiesgang at comcast.net Sun Jun 23 17:40:32 2002 From: maxxiesgang at comcast.net (maxxiesgang at comcast.net) Date: Sun, 23 Jun 2002 17:40:32 -0400 Subject: [vtkusers] Python 2.2 Message-ID: <001901c21afe$99fb6500$0100a8c0@naugus01.ga.comcast.net> Hello, I would like to use Python 2.2 witk vtk40. Can anyone tell me if an update is available and how to set it up. Presently I am getting errors dealing with the Python21.dll. Thanks, MCL -------------- next part -------------- An HTML attachment was scrubbed... URL: From schein at cs.Technion.AC.IL Mon Jun 24 02:40:37 2002 From: schein at cs.Technion.AC.IL (sagi schein) Date: Mon, 24 Jun 2002 08:40:37 +0200 Subject: [vtkusers] concave polygons In-Reply-To: <012001c21b0d$c13efa50$acd24e81@acfr.usyd.edu.au> Message-ID: <000101c21b4a$0d3e6d00$54294484@cs.technion.ac.il> AFAIK Open gl does not guarantee that concave polygons would be rendered correctly, the question is does vtk has a class/filter that would take a polygonal data and split the concave polygons into a set of convex one - and do it efficiently that is without doing excessive split. The same for the second Q - does vtk has the facilities to detect a concave polygon so I don't have to reinvent it. -----Original Message----- From: Andrew J. P. Maclean [mailto:a.maclean at acfr.usyd.edu.au] Sent: Monday, June 24, 2002 1:29 AM To: 'sagi schein' Subject: RE: [vtkusers] concave polygons If I understand the questions: 1: No - they are geometrically distinct. 2: Look at the curvatures - a differential geometry book should give you some examples of how to do this. ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] On Behalf Of sagi schein Sent: Saturday, 22 June 2002 16:02 To: vtkusers at public.kitware.com Subject: [vtkusers] concave polygons Is there any to 1. Generate convex polygon(s) out of a concave polygon using vtk? 2. Identify concave polygons? -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Mon Jun 24 04:07:10 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Mon, 24 Jun 2002 10:07:10 +0200 Subject: [vtkusers] will this works ? Message-ID: <000a01c21b56$24355e90$c000a8c0@ouessant> Hello, Here is a byte of code. Do you think it can work? ie. will the aVtkPolyData contain a cleaned version of itself ? //-------------------------------------------------------------------------------- vtkCleanPolyData *cleaner = vtkCleanPolyData::New(); cleaner->SetInput(aVtkPolyData); aVtkPolyData->DeepCopy(cleaner->GetOutput()); //---------------------------------------------------------------------------------- Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bernhard.Gschaider at unileoben.ac.at Mon Jun 24 16:06:28 2002 From: Bernhard.Gschaider at unileoben.ac.at (Bernhard Gschaider) Date: 24 Jun 2002 13:06:28 -0700 Subject: [vtkusers] Python 2.2 In-Reply-To: <001901c21afe$99fb6500$0100a8c0@naugus01.ga.comcast.net> References: <001901c21afe$99fb6500$0100a8c0@naugus01.ga.comcast.net> Message-ID: >>>>> On Sun, 23 Jun 2002 17:40:32 -0400 >>>>> "SM" == maxxiesgang wrote: SM> Hello, I would like to use Python 2.2 witk vtk40. Can anyone SM> tell me if an update is available and how to set it up. SM> Presently I am getting errors dealing with the Python21.dll. AFAIK you'll have to recompile the vtk*Phython DLLs. At least I had to when I was upgrading Python. From maraux at ondim.fr Mon Jun 24 08:57:57 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Mon, 24 Jun 2002 14:57:57 +0200 Subject: [vtkusers] delaunay2D issue Message-ID: <000a01c21b7e$c3759f10$c000a8c0@ouessant> This byte of code does not produce any triangle. any idea about what I did wrong? tmpPolyData is a vtkPolyData; points coordinates range from 500000 to 1000000 in x and z, -5000 to 5000 in y //---------------------------------------------------------------------------------------- cout <<"# points : " <GetNumberOfPoints() <GetNumberOfPolys() <SetInput(tmpPolyData); delaunay->SetTolerance(0.001); cout <<"# points : " <GetOutput()->GetNumberOfPoints() <GetOutput()->GetNumberOfPolys() < From maraux at ondim.fr Mon Jun 24 09:05:15 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Mon, 24 Jun 2002 15:05:15 +0200 Subject: [vtkusers] delaunay2D issue References: <000a01c21b7e$c3759f10$c000a8c0@ouessant> Message-ID: <001a01c21b7f$c8e43230$c000a8c0@ouessant> forgot ->update(), sorry I thought it was called by GetOutput() when required. ----- Original Message ----- From: Sebastien_MARAUX To: vtk mailing list Sent: Monday, June 24, 2002 2:57 PM Subject: [vtkusers] delaunay2D issue This byte of code does not produce any triangle. any idea about what I did wrong? tmpPolyData is a vtkPolyData; points coordinates range from 500000 to 1000000 in x and z, -5000 to 5000 in y //---------------------------------------------------------------------------------------- cout <<"# points : " <GetNumberOfPoints() <GetNumberOfPolys() <SetInput(tmpPolyData); delaunay->SetTolerance(0.001); cout <<"# points : " <GetOutput()->GetNumberOfPoints() <GetOutput()->GetNumberOfPolys() < From J.Riley at cs.ucl.ac.uk Mon Jun 24 10:43:42 2002 From: J.Riley at cs.ucl.ac.uk (Jason Riley) Date: Mon, 24 Jun 2002 15:43:42 +0100 Subject: [vtkusers] IGES format Message-ID: <3D17301E.815EFEA1@cs.ucl.ac.uk> Hi, Is there an easy way (e.g. an existing function or a piece of code you'd be willing to share) to either import an IGES format file and create a vtkpolydata, or to export an IGES format file from a vtkpolydata? Thanks, Jason From recampb at sandia.gov Mon Jun 24 13:22:11 2002 From: recampb at sandia.gov (Campbell, Robert E) Date: Mon, 24 Jun 2002 11:22:11 -0600 Subject: [vtkusers] removing bounding box when picking Message-ID: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637E7@es05snlnt> Hi, does anyone know how to remove the bounding box that shows up when an actor is picked? I'm guessing it can be done using the vtkInteractorStyle::OnChar or OnKeyPress, but I can't find any good examples on how to use these. Thanks -Bob From c.p.botha at its.tudelft.nl Mon Jun 24 13:33:35 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 24 Jun 2002 19:33:35 +0200 Subject: [vtkusers] removing bounding box when picking In-Reply-To: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637E7@es05snlnt> References: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637E7@es05snlnt> Message-ID: <20020624173335.GA25494@dutidad.twi.tudelft.nl> On Mon, Jun 24, 2002 at 11:22:11AM -0600, Campbell, Robert E wrote: > Hi, does anyone know how to remove the bounding box that shows up when an > actor is picked? I'm guessing it can be done using the > vtkInteractorStyle::OnChar or OnKeyPress, but I can't find any good examples Do you want to disable picking for a single actor, or for a whole render window? Or do you want the picking to work, but no visual feedback to be shown? Your question is not entirely clear. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From prabhu at aero.iitm.ernet.in Mon Jun 24 13:37:58 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 24 Jun 2002 23:07:58 +0530 Subject: [vtkusers] Python 2.2 In-Reply-To: <001901c21afe$99fb6500$0100a8c0@naugus01.ga.comcast.net> References: <001901c21afe$99fb6500$0100a8c0@naugus01.ga.comcast.net> Message-ID: <15639.22774.845105.118943@monster.linux.in> >>>>> "MCL" == maxxiesgang writes: MCL> Hello, I would like to use Python 2.2 witk vtk40. Can anyone MCL> tell me if an update is available and how to set it up. Building VTK with Python 2.2 should be straight forward basically the same things to do as with Python2.1 MCL> Presently I am getting errors dealing with the Python21.dll. What errors? What is Python21.dll doing with a Python2.2 build?? prabhu From CADCAMadmin at asu.edu Mon Jun 24 14:03:23 2002 From: CADCAMadmin at asu.edu (shen) Date: Mon, 24 Jun 2002 11:03:23 -0700 Subject: [vtkusers] kind help? Message-ID: <3D175EEB.408FEACE@asu.edu> Hello! there, i am new in this group. i appreiciate any help from you guys. Could anybody tell me the project settings and system environment varaible settings for using MS VC++ together with VTK4.0? i got an example from the web to create a sphere. But when i compile within MS VC++, it says cannot open "vtkConfigure.h", which is in the include file "vtkWIN32Header.h". i am working on w2k machines. Thanks a lot. Shen -- ================================================ Zhengshu Shen ================================================ Mechanical & Aerospace Engineering Mail code 6106, Arizona State University - Main Tempe AZ 85287-6106 Phone: 480-727-6002, 480-965-3423 Fax: 480-965-2412 Email: Zhengshu.Shen at asu.edu =============================================== From rrp at imm.dtu.dk Mon Jun 24 14:14:22 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Mon, 24 Jun 2002 20:14:22 +0200 (METDST) Subject: [vtkusers] kind help? In-Reply-To: <3D175EEB.408FEACE@asu.edu> Message-ID: On Mon, 24 Jun 2002, shen wrote: > Could anybody tell me the project settings and system environment > varaible settings for using MS VC++ together with VTK4.0? i got an > example from the web to create a sphere. But when i compile within MS > VC++, it says cannot open "vtkConfigure.h", which is in the include file > "vtkWIN32Header.h". Perhaps you can use something from the installation guide "Installing VTK 4.1.x on a Windows PC" found at: http://www.imm.dtu.dk/~rrp/ For an introduction to VTK I recommend the books. Regards, Rasmus From dean.inglis at on.aibn.com Mon Jun 24 15:17:21 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Mon, 24 Jun 2002 15:17:21 -0400 Subject: [vtkusers] using a custom Callback Message-ID: Hi, the effect I'm trying to generate is to show a vtkAxes, usually aligned with the origin and axes of a (3D) vtkImageData, but offset and scaled so that the axes appears in a corner of a render window. When the outline of the image bounding box is rotated interactively, the axes in the corner rotates (but does not scale or translate). I'm trying to do this with the following code snippet: // Callback for the interaction class vtkAxesCallback : public vtkCommand { public: static vtkAxesCallback *New() { return new vtkAxesCallback; } vtkAxesCallback():transform(0),axes(0),renderer(0){}; vtkRenderer *renderer; vtkTransform *transform; vtkAxes *axes; virtual void Execute(vtkObject *caller, unsigned long, void* ) { vtkInteractorStyle *self = reinterpret_cast(caller); vtkRenderWindowInteractor *iren = self->GetInteractor(); vtkRenderWindow *renwin = iren->GetRenderWindow(); vtkRendererCollection *collection = renwin->GetRenderers(); if ( collection->IsItemPresent((vtkObject*)renderer) ) { renderer->NormalizedViewportToViewport(0.1,0.1); renderer->GetViewPoint(vp); renderer->ViewToWorld(vp[0],vp[1],vp[2]); renderer->GetWorldPoint(wp); axes->GetOrigin(ao); transform->Identity(); transform->Translate(ao[0]-wp[0],ao[1]-wp[1],ao[2]-wp[2]); transform->Modified(); cout << vp[0] << vp [1] << vp[2] <AddActor(this->AxesActor); this->AxesCB->renderer = aren; vtkInteractorStyle *style = (vtkInteractorStyle *)(aren->GetRenderWindow()->GetInteractor()->GetInteractorStyle()); if(style) { style->AddObserver(vtkCommand::InteractionEvent,this->AxesCB); vtkGenericWarningMacro(<<"style found..."); } else { vtkGenericWarningMacro(<<"no style..."); } } the style is found but the callback doesn't work. What is the correct object in the rendering pipeline to add this particular callback to? Is there another way that would avoid the callback altogether? Dean From wvoit at lanl.gov Mon Jun 24 15:32:50 2002 From: wvoit at lanl.gov (Walter E Voit) Date: Mon, 24 Jun 2002 13:32:50 -0600 Subject: [vtkusers] Subclasses for vtkInteractorStyle Message-ID: <5.1.0.14.2.20020624132931.00b19eb0@cic-mail.lanl.gov> Hello, I am a summer student new to vtk working on a visual editor. I want to change some of the user interaction buttons like changing the "left mouse button click" to pick a cell instead of scroll around. As far as I can tell, the way to subclass vtkInteractorStyle and its derived classes deals with the Object Factory. However, I can't figure out how to have a program use functions from the class I created instead of using the functions from the classes in the library. The documentation clearly says it can be done, but not specifically how to do it. This novice would appreciate any help. Sincerely, Walter From c.p.botha at its.tudelft.nl Mon Jun 24 15:58:37 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 24 Jun 2002 21:58:37 +0200 Subject: [vtkusers] removing bounding box when picking In-Reply-To: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637E8@es05snlnt> References: <9A4B2157EFDBE546BECD68C62AC3B1C80BB637E8@es05snlnt> Message-ID: <20020624195836.GB25494@dutidad.twi.tudelft.nl> On Mon, Jun 24, 2002 at 11:56:27AM -0600, Campbell, Robert E wrote: > I want the picking to work, but no visual feedback to be shown. Please do not top-quote, it makes it difficult to create a readable reply. :) In anycase, have a look at vtkInteractorStyle.cxx, and especially at the HighlightProp method. Unless somebody else has a better idea, you're going to have to derive a new vtkInteractorStyle class. You could: 1. derive a new vtkInteractorStyle class. This is probably going to be more trouble than it's worth. 2. use AddObserver on the RenderWindowInteractor to add a callback for vtkCommand::EndPickEvent. In this callback, call HighlightProp(NULL) on the associated InteractorStyle. This is a bit kludgy, but it has high InstantSatisfaction(tm). 3. Do not switch off the visual feedback. It's quite handy. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha at its.tudelft.nl Mon Jun 24 16:01:27 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 24 Jun 2002 22:01:27 +0200 Subject: [vtkusers] Subclasses for vtkInteractorStyle In-Reply-To: <5.1.0.14.2.20020624132931.00b19eb0@cic-mail.lanl.gov> References: <5.1.0.14.2.20020624132931.00b19eb0@cic-mail.lanl.gov> Message-ID: <20020624200127.GC25494@dutidad.twi.tudelft.nl> On Mon, Jun 24, 2002 at 01:32:50PM -0600, Walter E Voit wrote: > I am a summer student new to vtk working on a visual editor. I want to > change some of the user interaction buttons like changing the "left mouse > button click" to pick a cell instead of scroll around. > > As far as I can tell, the way to subclass vtkInteractorStyle and its > derived classes deals with the Object Factory. However, I can't figure out > how to have a program use functions from the class I created instead of > using the functions from the classes in the library. You could subclass the vtkInteractorStyle. For what you're doing however, VTK 4.x has a much better mechanism. You can attach an arbitrary number of observers to e.g. the RenderWindowInteractor. This more or less follows the Observer design pattern (doh). Have a look at the AddObserver method of the vtkRenderWindowInteractor. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From david_pont at hotmail.com Mon Jun 24 19:08:07 2002 From: david_pont at hotmail.com (David Pont) Date: Tue, 25 Jun 2002 11:08:07 +1200 Subject: [vtkusers] 3D PointCloud Visualization VERSUS Memory usage Message-ID: An HTML attachment was scrubbed... URL: From david_pont at hotmail.com Mon Jun 24 19:17:52 2002 From: david_pont at hotmail.com (David Pont) Date: Tue, 25 Jun 2002 11:17:52 +1200 Subject: [vtkusers] Parametric Representations of surfaces Message-ID: An HTML attachment was scrubbed... URL: From david_pont at hotmail.com Mon Jun 24 19:22:57 2002 From: david_pont at hotmail.com (David Pont) Date: Tue, 25 Jun 2002 11:22:57 +1200 Subject: [vtkusers] Partial model display Message-ID: An HTML attachment was scrubbed... URL: From CADCAMadmin at asu.edu Mon Jun 24 19:51:23 2002 From: CADCAMadmin at asu.edu (shen) Date: Mon, 24 Jun 2002 16:51:23 -0700 Subject: [vtkusers] DLLs References: Message-ID: <3D17B07B.8C452558@asu.edu> Does anybody out there know how can i obtain all the DLLs?Thanks a lot. Shen From mmalat at imaging.robarts.ca Mon Jun 24 20:13:08 2002 From: mmalat at imaging.robarts.ca (Mathieu Malaterre) Date: Mon, 24 Jun 2002 20:13:08 -0400 Subject: [vtkusers] DLLs References: <3D17B07B.8C452558@asu.edu> Message-ID: <3D17B594.4B31BCB7@irus.rri.ca> Hi shen, Sure the easiest way is: For the offical release: http://public.kitware.com/VTK/get-software.php#release And for the last build: http://public.kitware.com/VTK/get-software.php#nightly Enjoy Mathieu shen wrote: > Does anybody out there know how can i obtain all the DLLs?Thanks a lot. > Shen > > _______________________________________________ > 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: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From charlie.chang at nchc.gov.tw Mon Jun 24 23:14:59 2002 From: charlie.chang at nchc.gov.tw (Charlie H. Chang) Date: Tue, 25 Jun 2002 11:14:59 +0800 Subject: [vtkusers] CVS bug?? Message-ID: <3D17E033.501@nchc.gov.tw> Hi there, I just downloaded the CVS tree last night and re-built VTK on win2000 sp2. The compiling process went well and completed successfully, but when I tried to compile the examples I couldn't get any of them working. The Tcl examples were ok though. Have I done something wrong? Or it's a bug? The following is the error message: ---------------------------------------------------------------------- Compiling... Cylinder.cxx D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(48) : error C2027: use of undefined type 'vtkProperty' D:\opt\VTK\Rendering\vtkActor.h(42) : see declaration of 'vtkProperty' D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(48) : error C2227: left of '->SetColor' must point to class/struct/union D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(71) : error C2027: use of undefined type 'vtkCamera' D:\opt\VTK\Rendering\vtkRenderer.h(51) : see declaration of 'vtkCamera' D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(71) : error C2227: left of '->Zoom' must point to class/struct/union Error executing cl.exe. Cylinder.exe - 4 error(s), 0 warning(s) ----------------------------------------------------------------------------- Thank you in advance! -- Charlie H. Chang, Software Development Group National Center for High-performance Computing T: 1-886-3-5776085x362 E: charlie.chang at nchc.gov.tw W: www.nchc.gov.tw From Husainkb at aramco.com.sa Tue Jun 25 03:28:13 2002 From: Husainkb at aramco.com.sa (Kamran Husain) Date: Tue, 25 Jun 2002 10:28:13 +0300 Subject: [vtkusers] Problems in build Message-ID: <733BFE10BD82D14CBD25E84626926E442CD7FB@edha-00730-nm26.aramco.com> Please help I get the following error when I attempt to build VTK on a sun 8 workstation. Here are the configuration details. uname: SunOS XXXX 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Blade-1000 CC : /opt/bin/cc CXX : /opt/bin/CC CMake: version 1.2 from www.cmake.org VTK : 4.0 from kitware Does anyone have an idea whatn the c_dataparse.cc file is refered to is? Thanks in advance Kamran Husain husainkb at aramco.com.sa 8<------... snip.....8<------------------- /opt/bin/CC -g -DvtkImaging_EXPORTS -KPIC -I/work1/VTK/Imaging -I/work1/VTK/Rendering -I/work1/VTK -I/work1/VTK/Common -I/work1/VTK/Filtering -I/work1/VTK/Imaging -I/work1/VTK/Graphics -I/work1/VTK/IO -I/work1/VTK/Utilities/zlib -I/work1/VTK/Utilities/png -I/work1/VTK/Utilities/jpeg -I/work1/VTK/Common/Testing/Cxx -c /work1/VTK/Imaging/vtkBooleanTexture.cxx -o vtkBooleanTexture.o "/work1/VTK/Imaging/SunWS_cache/CC_state", line 126625: Error: String/char constants may not include line separator. ** Assertion ** : 0 (/home/fitzer/src/Zephyr_patch/sparc-S2/lang/cafe/resources/cdr/src/c_da taparse.cc: 802) *** Error code 34 The following command caused the error: /opt/bin/CC -g -DvtkImaging_EXPORTS -KPIC -I/work1/VTK/Imaging -I/work1/VTK/Rendering -I/work1/VTK -I/work1/VTK/Common -I/work1/VTK/Filtering -I/work1/VTK/Imaging -I/work1/VTK/Graphics -I/work1/VTK/IO -I/work1/VTK/Utilities/zlib -I/work1/VTK/Utilities/png -I/work1/VTK/Utilities/jpeg -I/work1/VTK/Common/Testing/Cxx -c /work1/VTK/Imaging/vtkBooleanTexture.cxx -o vtkBooleanTexture.o make: Fatal error: Command failed for target `vtkBooleanTexture.o' Current working directory /work1/VTK/Imaging *** Error code 1 The following command caused the error: make - all make: Fatal error: Command failed for target `default_target' Current working directory /work1/VTK/Imaging *** Error code 1 The following command caused the error: cd /work1/VTK/Imaging; make - default_target make: Fatal error: Command failed for target `default_target_Imaging' Current working directory /work1/VTK *** Error code 1 The following command caused the error: make - all make: Fatal error: Command failed for target `default_target' $ -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie.chang at nchc.gov.tw Tue Jun 25 05:07:27 2002 From: charlie.chang at nchc.gov.tw (Charlie H. Chang) Date: Tue, 25 Jun 2002 17:07:27 +0800 Subject: [vtkusers] CVS bug?? References: <3D17E033.501@nchc.gov.tw> Message-ID: <3D1832CF.5020609@nchc.gov.tw> Ok, I found a way to solve the problem. Simply add the following two lines: #include "vtkProperty.h" #include "vtkCamera.h" will do. However, the same piece of code didn't require to include the above two header files in previous CVS source code.(about one month ago) So I guess that vtkProperty and vtkCamera were included by the other header file (could be vtkActor.h??) but then they were excluded. What is the rationale behind this change? Charlie H. Chang wrote: >Hi there, >I just downloaded the CVS tree last night and re-built VTK on win2000 sp2. >The compiling process went well and completed successfully, but when I >tried >to compile the examples I couldn't get any of them working. >The Tcl examples were ok though. >Have I done something wrong? Or it's a bug? >The following is the error message: >---------------------------------------------------------------------- >Compiling... >Cylinder.cxx >D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(48) : error C2027: use of >undefined type 'vtkProperty' >D:\opt\VTK\Rendering\vtkActor.h(42) : see declaration of 'vtkProperty' >D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(48) : error C2227: left >of '->SetColor' must point to class/struct/union >D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(71) : error C2027: use of >undefined type 'vtkCamera' >D:\opt\VTK\Rendering\vtkRenderer.h(51) : see declaration of 'vtkCamera' >D:\opt\VTK\Examples\Rendering\Cxx\Cylinder.cxx(71) : error C2227: left >of '->Zoom' must point to class/struct/union >Error executing cl.exe. > >Cylinder.exe - 4 error(s), 0 warning(s) >----------------------------------------------------------------------------- > >Thank you in advance! > > > -- Charlie H. Chang, Software Development Group National Center for High-performance Computing T: 1-886-3-5776085x362 E: charlie.chang at nchc.gov.tw W: www.nchc.gov.tw From andy.cedilnik at kitware.com Tue Jun 25 08:35:50 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 25 Jun 2002 08:35:50 -0400 Subject: [vtkusers] CVS bug?? In-Reply-To: <3D1832CF.5020609@nchc.gov.tw> References: <3D17E033.501@nchc.gov.tw> <3D1832CF.5020609@nchc.gov.tw> Message-ID: <1025008565.14866.24.camel@xanth.kitwarein.com> Hi Charlie, This would be my "fault". A while ago we started to test VTK on MS Visual Studio .NET. One of the interesting things about this compiler is that it is extremely eager to run out of heap space. So, VTK did not compile. The problem is that lots of header files include several header files. This in a large hierarchy like VTK means that when you include something from the bottom of the hierarchy (such as something from Hybrid), you include half of the VTK. The solution is to start following the last addition to coding standard: * The header file of the class should include only the superclasses header file. If you need any other includes, include comment at each one describing why it should be included. Because of this, some of the header files do not include the same header files that they used to. Andy Cedilnik On Tue, 2002-06-25 at 05:07, Charlie H. Chang wrote: > > Ok, I found a way to solve the problem. Simply add the following two lines: > #include "vtkProperty.h" > #include "vtkCamera.h" > will do. However, the same piece of code didn't require to include the > above two > header files in previous CVS source code.(about one month ago) > So I guess that vtkProperty and vtkCamera were included by the other > header file > (could be vtkActor.h??) but then they were excluded. What is the > rationale behind > this change? From amati at ira.cnr.it Tue Jun 25 09:52:02 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 25 Jun 2002 15:52:02 +0200 (CEST) Subject: [vtkusers] VtkTIFFWriter & BMP Message-ID: Hello Everybody, my question is: I'm using VtkTIFFWriter to save TIFF images of my render window. And it works well for one image. While I'm producing a sequece of images, the output I obtain is always the same initial image. Is there a way to update the writer with the new contents of my window? Thank a lot Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From moitinho at civil.ist.utl.pt Tue Jun 25 10:07:10 2002 From: moitinho at civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Tue, 25 Jun 2002 15:07:10 +0100 Subject: [vtkusers] Bug in the documentation of vtkQuadraticTetra Message-ID: <200206251507.10656.moitinho@civil.ist.utl.pt> Hello While browsing the documentation for vtkQuadraticTetra I read this: The ordering of the ten points defining the cell is point ids (0-3,4-9) where ids 0-3 are the four tetra vertices; and point ids 4-9 are the midedge nodes between (0,1), (1,2), (2,3), (3,0), (0,3), (1,3), and (2,3). Started drawing it,... and oops, even without drawing, it cannot be right. Using the force (sorry, the source) confirms that the correct text is: the midedge nodes between (0,1), (1,2), (2,0), (0,3), (1,3), and (2,3). Regards Ze Paulo From neri at hobbes.nrl.navy.mil Tue Jun 25 11:09:45 2002 From: neri at hobbes.nrl.navy.mil (Jesse Neri) Date: Tue, 25 Jun 2002 11:09:45 -0400 Subject: [vtkusers] (no subject) Message-ID: <001201c21c5a$57d0eee0$fa9efa84@nrl.navy.mil> And the answer is, for the WindowToImageFilter that serves as the input for the vtkTIFFWriter, send it a modified command as in (in TCL) vtkWindowToImageFilter wif ..... wif Modified vtkTIFFWriter wr wr SetInput [wif GetOuput] -- Jess Neri neri at hobbes.nrl.navy.mil (202) 404-4365 Pulsed Power Physics Branch, Plasma Physics Division Naval Research Laboratory, Washington DC 20375 > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Giancarlo Amati > Sent: Tuesday, June 25, 2002 9:52 AM > To: vtkusers at public.kitware.com > Subject: [vtkusers] VtkTIFFWriter & BMP > > > Hello Everybody, > > my question is: I'm using VtkTIFFWriter to save TIFF images > of my render > window. And it works well for one image. While I'm producing > a sequece of > images, the output I obtain is always the same initial image. > Is there a way to update the writer with the new contents of > my window? > > Thank a lot > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 cboehnen at nd.edu Tue Jun 25 04:33:08 2002 From: cboehnen at nd.edu (Chris Boehnen) Date: Tue, 25 Jun 2002 03:33:08 -0500 Subject: [vtkusers] CVS bug?? In-Reply-To: <1025008565.14866.24.camel@xanth.kitwarein.com> Message-ID: <004001c21c22$ef5eabe0$0300a8c0@DualXenon> You Can Increase the Heap Space (properties, add command line /Zm1000 or whatever size you want), although from my experience it means you will need to increase the swap space on your computer as well. I ran into that problem with a program that was only 150K when all was said and done. Microsoft needs to work on that. Chris -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] On Behalf Of Andy Cedilnik Sent: Tuesday, June 25, 2002 6:36 AM To: Charlie H. Chang Cc: vtkusers Subject: Re: [vtkusers] CVS bug?? Hi Charlie, This would be my "fault". A while ago we started to test VTK on MS Visual Studio .NET. One of the interesting things about this compiler is that it is extremely eager to run out of heap space. So, VTK did not compile. The problem is that lots of header files include several header files. This in a large hierarchy like VTK means that when you include something from the bottom of the hierarchy (such as something from Hybrid), you include half of the VTK. The solution is to start following the last addition to coding standard: * The header file of the class should include only the superclasses header file. If you need any other includes, include comment at each one describing why it should be included. Because of this, some of the header files do not include the same header files that they used to. Andy Cedilnik On Tue, 2002-06-25 at 05:07, Charlie H. Chang wrote: > > Ok, I found a way to solve the problem. Simply add the following two lines: > #include "vtkProperty.h" > #include "vtkCamera.h" > will do. However, the same piece of code didn't require to include the > above two > header files in previous CVS source code.(about one month ago) > So I guess that vtkProperty and vtkCamera were included by the other > header file > (could be vtkActor.h??) but then they were excluded. What is the > rationale behind > this change? _______________________________________________ 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 its.tudelft.nl Tue Jun 25 12:19:28 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Tue, 25 Jun 2002 18:19:28 +0200 Subject: [vtkusers] CVS bug?? In-Reply-To: <004001c21c22$ef5eabe0$0300a8c0@DualXenon> References: <1025008565.14866.24.camel@xanth.kitwarein.com> <004001c21c22$ef5eabe0$0300a8c0@DualXenon> Message-ID: <20020625161928.GE29628@dutidad.twi.tudelft.nl> On Tue, Jun 25, 2002 at 03:33:08AM -0500, Chris Boehnen wrote: > You Can Increase the Heap Space (properties, add command line /Zm1000 or > whatever size you want), although from my experience it means you will > need to increase the swap space on your computer as well. I ran into > that problem with a program that was only 150K when all was said and > done. Microsoft needs to work on that. > > Chris Chris, please don't top-quote. :) > Hi Charlie, > > This would be my "fault". A while ago we started to test VTK on MS > Visual Studio .NET. One of the interesting things about this compiler is > that it is extremely eager to run out of heap space. So, VTK did not > compile. The problem is that lots of header files include several header > files. This in a large hierarchy like VTK means that when you include > something from the bottom of the hierarchy (such as something from > Hybrid), you include half of the VTK. The solution is to start following > the last addition to coding standard: > > * The header file of the class should include only the superclasses > header file. If you need any other includes, include comment at each one > describing why it should be included. > > Because of this, some of the header files do not include the same header > files that they used to. > > Andy Cedilnik I think Andy's changes are improvements and not "fixes". These changes make the header files more orthogonal and that is definitely desirable for several reasons. The fact that it solved a problem with a typically inferior MS product is coincidental. ;) -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From sebastian.hirschberg at bluewin.ch Tue Jun 25 17:15:45 2002 From: sebastian.hirschberg at bluewin.ch (Sebastian Hirschberg) Date: Tue, 25 Jun 2002 23:15:45 +0200 Subject: [vtkusers] VtkTIFFWriter & BMP In-Reply-To: References: Message-ID: <200206252315.45197.sebastian.hirschberg@bluewin.ch> Hi Giancarlo I have recently found the same behaviour and I think, this is not a problem with the vtkTIFFWriter but with the vtkWindowToImageFilter. If you call the Modified method of the vtkWindowToImageFilter every time before you write the image, it will work. Sebastian Am Tuesday 25 June 2002 15:52 schrieb Giancarlo Amati: > Hello Everybody, > > my question is: I'm using VtkTIFFWriter to save TIFF images of my render > window. And it works well for one image. While I'm producing a sequece of > images, the output I obtain is always the same initial image. > Is there a way to update the writer with the new contents of my window? > > Thank a lot > Giancarlo From Gharrison9 at aol.com Tue Jun 25 19:00:04 2002 From: Gharrison9 at aol.com (Gharrison9 at aol.com) Date: Tue, 25 Jun 2002 19:00:04 EDT Subject: [vtkusers] Camera Dollying Message-ID: <93.1f1fd507.2a4a4ff4@aol.com> I have a project where I am using the cursor keys and Page Up/Down to do camera yaw, pitch, and dolly. The comments for Dolly in vtkCamera is // Description: // Move the position of the camera along the direction of projection. Moving // towards the focal point (e.g., greater than 1) is a dolly-in, moving away // from the focal point (e.g., less than 1) is a dolly-out. void Dolly(double distance); Also, according to the description of Dolly in the VTK book (2nd edition) Dollying in and out should move the camer's positon along the direction of the focal point. I take it that the focal point remains the same while the distance from it and the camera gets shorter or longer (dollying in or out). So, If I want to preserve my focal length, do I have to change both the focal point and the position of the camera as it moves throughout three space? Thanks friends! George George C. Harrison Professor of Computer Science Norfolk State University Telephone: 757-823-8654 Fax: 757-823-9229 email: gharrison9 at aol.com or gcharrison at nsu.edu (same difference..) -------------- next part -------------- An HTML attachment was scrubbed... URL: From gapolation at hotmail.com Wed Jun 26 01:54:43 2002 From: gapolation at hotmail.com (gapolation) Date: Wed, 26 Jun 2002 14:54:43 +0900 Subject: [vtkusers] Problem of One Actor added 4-5 Renderers Message-ID: Hi Vtkusers.. I make a MFC program.. and tried two actors add a 4~5 renderers at once. all renderer's good working... but I tried a change the one actor's property(position, rotation....) some renderer's has a problem.. problem is another actor's property(polydata) changed .... we call the this problem 'not invented shadow' how can I correct this problem...... best regard gapol at cantibio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From baudet at ondim.fr Wed Jun 26 03:43:42 2002 From: baudet at ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Wed, 26 Jun 2002 09:43:42 +0200 Subject: [vtkusers] Problem of One Actor added 4-5 Renderers In-Reply-To: Message-ID: <004b01c21ce5$43d20100$1c00a8c0@muscles> I had a similar problem, and turning vtkMapper::GlobalImmediateModeRendering on resolved it! Hope it helps you... R?my -----Message d'origine----- De : vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] De la part de gapolation Envoy? : mercredi 26 juin 2002 07:55 ? : vtkusers at public.kitware.com Objet : [vtkusers] Problem of One Actor added 4-5 Renderers Hi Vtkusers.. I make a MFC program.. and tried two actors add a 4~5 renderers at once. all renderer's good working... but I tried a change the one actor's property(position, rotation....) some renderer's has a problem.. problem is another actor's property(polydata) changed .... we call the this problem 'not invented shadow' how can I correct this problem...... best regard gapol at cantibio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From T.Hutton at eastman.ucl.ac.uk Wed Jun 26 04:52:02 2002 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Wed, 26 Jun 2002 09:52:02 +0100 Subject: [vtkusers] vtkThinPlateSplineTransform limits In-Reply-To: <3D1331AD.10BBF8DB@biomed.ee.ethz.ch> References: <5.1.0.14.0.20020621113139.046f7a08@144.82.123.1> Message-ID: <5.1.0.14.0.20020626094139.049f4cc0@144.82.123.1> Steve, Thanks for that paper ref, it looks very interesting. RBFs for surface reconstruction, clever - Will, take a look if you haven't already. Tim. At 16:01 21/06/2002 +0200, Steve Boyd wrote: >Hi Tim, > >Thanks for the points about the TPS. In the past I had once looked at >some papers by JC Carr which are available for download >(http://aranz.com/). For example, the following paper is a nice >overview: > >http://aranz.com/download/modelling/papers/siggraph01.pdf > >I understand that they have worked out a way to deal with large >matrices, but I'll have to look again to see what they did. At any >rate, I thought I'd point that out in case you're interested. > >Maybe I'll try to implement their techniques... we'll see. > >Cheers, > >Steve > > >-- >Steven Boyd, PhD > >Institute for Biomedical Engineering >ETH and University Zuerich >Moussonstrasse 18 >8044 Zuerich, Switzerland > >tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch >------------------------------------------------------------------- >_______________________________________________ >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 maraux at ondim.fr Wed Jun 26 05:34:23 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 26 Jun 2002 11:34:23 +0200 Subject: [vtkusers] vtkDecimatePro Bug + hanging Message-ID: <001101c21cf4$a87011b0$c000a8c0@ouessant> I experienced some problems using decimatePro: 1. with a number of points = 29160, vtkDecimatePro Hangs. Is there some allocation to do ? 2. with a number of point = 25000 or less : vtkDecimatePro runs but does not produce correct output : decimation->SetInput(myPolyData); decimation->PreserveTopologyOn(); decimation->BoundaryVertexDeletionOff(); decimation->SetMaximumError(0.0); decimation->Update(); doed not respect 0 error, even when specified with absolute error. It keeps decimating till 10 % polygons number target is reached even with a "not flat" set of triangles. Setting another target percentage does affect the output. I can produce more tests if needed. Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From malcolm at geovision.co.za Wed Jun 26 06:21:02 2002 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Wed, 26 Jun 2002 12:21:02 +0200 Subject: [vtkusers] concave polygons References: <000201c219b2$5a9c21d0$54294484@cs.technion.ac.il> Message-ID: <008801c21cfb$67c49260$cefefea9@bart> Hi Sagi I don't know of any filters that do precisely what you want. Assuming this is just an issue for rendering, you could use vtkTriangleFilter on the whole polygon dataset. If your polygons have holes try Tom Cintrinitis vtkGLUTesselatorTriangleFilter. Hope this helps Malcolm ----- Original Message ----- From: sagi schein To: vtkusers at public.kitware.com Sent: Saturday, June 22, 2002 8:02 AM Subject: [vtkusers] concave polygons Is there any to 1.. Generate convex polygon(s) out of a concave polygon using vtk? 2.. Identify concave polygons? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucantiga at hotmail.com Wed Jun 26 10:40:48 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Wed, 26 Jun 2002 16:40:48 +0200 Subject: [vtkusers] vtkPolyData::IsEdge Message-ID: Hi users, I noticed that method int vtkPolyData::IsEdge(int p1, int p2) returns 1 whenever two points are in the same cell, but this is not what its name suggests (it is only true for simplices). I think it should be either fixed or renamed. Have a nice day Luca _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From kmorel at sandia.gov Wed Jun 26 10:46:36 2002 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 26 Jun 2002 08:46:36 -0600 Subject: [vtkusers] Interfacing Parallel VTK with other parallel API Message-ID: Hi all, I'm having trouble interfacing the parallel VTK objects with another parallel API which exclusively uses MPI. Specifically, I'm making a VTK object (as a wrapper over the auxiliary API) which accepts a vtkMPIController and must extract the MPI_Comm object from the associated vtkMPICommunicator. The tricky bit is that the reference to the MPI_Comm object in the vtkMPICommunicator is protected. I previously got around this problem by making a dummy class that inherited from vtkMPICommunicator and provided a public method to return the MPI_Comm object. This has been working for quite a while, but yesterday I checked out the latest nightly build and found that the constructor and destructor for vtkMPICommunicator have been made private, making inheritance impossible. Is there another way to get at the MPI_Comm object? If not, could the vtkMPICommunicator constructor and destructor be made protected again? Or could a public method for returning the vtkMPICommunicatorOpaqueComm be added? -Ken **** Kenneth Moreland *** Sandia National Laboratories *********** *** *** *** email: kmorel at sandia.gov ** *** ** phone: (505) 844-8919 *** fax: (505) 844-9297 From dreed at capital.edu Wed Jun 26 10:55:33 2002 From: dreed at capital.edu (Dave Reed) Date: Wed, 26 Jun 2002 10:55:33 -0400 (EDT) Subject: [vtkusers] Re: vtkDecimatePro Bug + hanging In-Reply-To: <001101c21cf4$a87011b0$c000a8c0@ouessant> (maraux@ondim.fr) References: <001101c21cf4$a87011b0$c000a8c0@ouessant> Message-ID: <200206261455.g5QEtXs19137@fourier.capital.edu> First, please turn off the HTML in your mail client to reduce the size of your message when posting to mailing lists. I can't really help you, but you need to provide more information. At a minimum, what version of VTK are you using? Other helpful information is your platform (Windows, Linux, etc.). Dave > From: "Sebastien_MARAUX" > > This is a multi-part message in MIME format. > ------=_NextPart_000_000E_01C21D05.6B87D060 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I experienced some problems using decimatePro: > > 1. with a number of points =3D 29160, vtkDecimatePro Hangs. Is there = > some allocation=20 > to do ? > > 2. with a number of point =3D 25000 or less : > vtkDecimatePro runs but does not produce correct > output : > > decimation->SetInput(myPolyData); > decimation->PreserveTopologyOn(); > decimation->BoundaryVertexDeletionOff(); > decimation->SetMaximumError(0.0); > decimation->Update(); > > doed not respect 0 error, even when specified with=20 > absolute error. It keeps decimating till 10 %=20 > polygons number target is reached even with a=20 > "not flat" set of triangles. > > Setting another target percentage does affect the=20 > output. > > I can produce more tests if needed. > > Sebastien MARAUX From lucantiga at hotmail.com Wed Jun 26 10:56:49 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Wed, 26 Jun 2002 16:56:49 +0200 Subject: [vtkusers] vtkPolyData::IsEdge fix Message-ID: Hi, here's a simple fix for IsEdge behaviour (hope not too simple) inline int vtkPolyData::IsEdge(int p1, int p2) { unsigned short int ncells; int npts; int i, j; vtkIdType *cells, *pts; this->GetPointCells(p1,ncells,cells); for (i=0; iGetCellPoints(cells[i],npts,pts); for (j=0; j References: Message-ID: <1025104460.5142.6.camel@caemlyn.kitwarein.com> Oops. There is really no good reason why the constructor and destructor are private. My mistake. I fixed it. I can also add an accessor to the "opaque" communicator, if you prefer. -Berk On Wed, 2002-06-26 at 10:46, Moreland, Kenneth wrote: > Hi all, > > I'm having trouble interfacing the parallel VTK objects with another > parallel API which exclusively uses MPI. Specifically, I'm making a VTK > object (as a wrapper over the auxiliary API) which accepts a > vtkMPIController and must extract the MPI_Comm object from the associated > vtkMPICommunicator. > > The tricky bit is that the reference to the MPI_Comm object in the > vtkMPICommunicator is protected. I previously got around this problem by > making a dummy class that inherited from vtkMPICommunicator and provided a > public method to return the MPI_Comm object. This has been working for > quite a while, but yesterday I checked out the latest nightly build and > found that the constructor and destructor for vtkMPICommunicator have been > made private, making inheritance impossible. > > Is there another way to get at the MPI_Comm object? If not, could the > vtkMPICommunicator constructor and destructor be made protected again? Or > could a public method for returning the vtkMPICommunicatorOpaqueComm be > added? > > -Ken > > **** Kenneth Moreland > *** Sandia National Laboratories > *********** > *** *** *** email: kmorel at sandia.gov > ** *** ** phone: (505) 844-8919 > *** fax: (505) 844-9297 > > _______________________________________________ > 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 maraux at ondim.fr Wed Jun 26 12:44:58 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 26 Jun 2002 18:44:58 +0200 Subject: [vtkusers] Re: vtkDecimatePro Bug + hanging References: <001101c21cf4$a87011b0$c000a8c0@ouessant> <200206261455.g5QEtXs19137@fourier.capital.edu> Message-ID: <001401c21d30$cf31fa70$c000a8c0@ouessant> I am using Windows 2K with VTK 4.0 standard build for windows. more precisely it hangs saying it cannot read memory at address xxxxx. So I guess it is an allocation problem. The other problem is that it doesn't care about error settings, maybe I should try CVS / nightly version ? Sorry for html mails, I wasn't actually aware of it and didn't think about pine and other small mail clients users. Sebastien ----- Original Message ----- From: "Dave Reed" To: Cc: Sent: Wednesday, June 26, 2002 4:55 PM Subject: [vtkusers] Re: vtkDecimatePro Bug + hanging > > > First, please turn off the HTML in your mail client to reduce the > size of your message when posting to mailing lists. > > I can't really help you, but you need to provide more information. At > a minimum, what version of VTK are you using? Other helpful > information is your platform (Windows, Linux, etc.). > > Dave > > > > From: "Sebastien_MARAUX" > > > > This is a multi-part message in MIME format. > > ------=_NextPart_000_000E_01C21D05.6B87D060 > > Content-Type: text/plain; > > charset="iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > I experienced some problems using decimatePro: > > > > 1. with a number of points =3D 29160, vtkDecimatePro Hangs. Is there = > > some allocation=20 > > to do ? > > > > 2. with a number of point =3D 25000 or less : > > vtkDecimatePro runs but does not produce correct > > output : > > > > decimation->SetInput(myPolyData); > > decimation->PreserveTopologyOn(); > > decimation->BoundaryVertexDeletionOff(); > > decimation->SetMaximumError(0.0); > > decimation->Update(); > > > > doed not respect 0 error, even when specified with=20 > > absolute error. It keeps decimating till 10 %=20 > > polygons number target is reached even with a=20 > > "not flat" set of triangles. > > > > Setting another target percentage does affect the=20 > > output. > > > > I can produce more tests if needed. > > > > Sebastien MARAUX > > _______________________________________________ > 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 dreed at capital.edu Wed Jun 26 12:56:09 2002 From: dreed at capital.edu (Dave Reed) Date: Wed, 26 Jun 2002 12:56:09 -0400 (EDT) Subject: [vtkusers] Re: vtkDecimatePro Bug + hanging In-Reply-To: <001401c21d30$cf31fa70$c000a8c0@ouessant> (maraux@ondim.fr) References: <001101c21cf4$a87011b0$c000a8c0@ouessant> <200206261455.g5QEtXs19137@fourier.capital.edu> <001401c21d30$cf31fa70$c000a8c0@ouessant> Message-ID: <200206261656.g5QGu9w19523@fourier.capital.edu> > From: "Sebastien_MARAUX" > > I am using Windows 2K with VTK 4.0 > standard build for windows. > > more precisely it hangs saying it cannot > read memory at address xxxxx. So > I guess it is an allocation problem. Given that, I would see if you can get someone else to run your program to check if it is "reproducible" (it is possible that you could have a flaky memory chip). It could be a bug in Windows or of course, a bug in VTK. I'd first see if you can get someone else with the same software (Windows 2000 with VTK 4.0 standard build). If not, I'm willing to try it on my Linux system. > The other problem is that it doesn't > care about error settings, maybe I > should try CVS / nightly version ? I've used vtkDecimatePro, but never paid exact attention to the results. > Sorry for html mails, I wasn't actually > aware of it and didn't think about > pine and other small mail clients users. > > Sebastien Thanks, it bothers me to have to delete all the HTML garbage when replying and of course it wastes bandwidth, especially on a mailing list. Dave From dean.inglis at on.aibn.com Wed Jun 26 13:14:26 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Wed, 26 Jun 2002 13:14:26 -0400 Subject: [vtkusers] How do I reset vtkProcessObject inputs to NULL? Message-ID: In my app, I load in a large data file to a reader which checks for an abort signal on user command during reader->Update(). That is, the reader has had reader->SetStartMethod(&BeginGauge ,static_cast(this)); reader->SetEndMethod(&EndGauge ,static_cast(this)); reader->SetProgressMethod(&UpdateProgress ,static_cast(this)); with a check and flag for abort in the ProgressMethod. In the case of an abort, I would like to reset the reader so that any prior completed inputs (i.e. reader->Update() was successful) are removed and the reader is 'reset' to an un-initialized status. Do I also need to reset all downstream members of the pipeline, i.e. any filters: filter->SetInut(reader->GetOuptut()); with filter->SetInut(NULL); ? What are the correct methods/setup to do this? Dean From cnavarro at ncsa.uiuc.edu Wed Jun 26 13:39:55 2002 From: cnavarro at ncsa.uiuc.edu (Christopher Navarro) Date: Wed, 26 Jun 2002 12:39:55 -0500 (CDT) Subject: [vtkusers] Java VTK rendering Message-ID: I am interested in learning some different approaches to rendering VTK objects with Java. I want to avoid using vtkPanel.class and what the simple example codes do: ie renwin.Render() iren.Start() etc Would anyone be willing to share some code as examples of what you have done? -chris From ming at ca.wai.com Wed Jun 26 14:04:55 2002 From: ming at ca.wai.com (Ming Xie) Date: Wed, 26 Jun 2002 11:04:55 -0700 Subject: [vtkusers] 3D Axes Message-ID: Hi, I draw 3D axes using cones, cylinders, and 3d text. Is there a way to keep the size and location of the axes constant when the camera is translated/rotated? Thanks, Ming From robando78 at hotmail.com Wed Jun 26 18:19:55 2002 From: robando78 at hotmail.com (Rodrigo Obando Restrepo) Date: Wed, 26 Jun 2002 17:19:55 -0500 Subject: [vtkusers] Java exception reading vtkRenderingJava.dll Message-ID: HI. I,m trying to run an application of vtk made on java, but returns this exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Program Files\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at test.(test.java:13) Can someone tell me what happend? How can I fix it? Thanks. _________________________________________________________________ Env?e y reciba su correo de Hotmail desde el m?vil: http://mobile.msn.com From a.maclean at acfr.usyd.edu.au Wed Jun 26 19:40:40 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 27 Jun 2002 09:40:40 +1000 Subject: [vtkusers] CVS bug?? In-Reply-To: <20020626085202.5C7AE1AB5C@public.kitware.com> Message-ID: <008b01c21d6a$e14687f0$acd24e81@acfr.usyd.edu.au> Charlie, I think that it is also conceptually cleaner. I am in the habit now of including just the header file for the VTK object that I am using. I had a lot of old code that was caught out by the change, but it was simple to update. The dreaded out of heap space error is not just restricted to VTK, boost also has problems here. For your information: Jason Shirk once described, how /Zm works: http://aspn.activestate.com/ASPN/Mail/Message/1156165 /////////////////// Hi Charlie, This would be my "fault". A while ago we started to test VTK on MS Visual Studio .NET. One of the interesting things about this compiler is that it is extremely eager to run out of heap space. So, VTK did not compile. The problem is that lots of header files include several header files. This in a large hierarchy like VTK means that when you include something from the bottom of the hierarchy (such as something from Hybrid), you include half of the VTK. The solution is to start following the last addition to coding standard: * The header file of the class should include only the superclasses header file. If you need any other includes, include comment at each one describing why it should be included. Because of this, some of the header files do not include the same header files that they used to. Andy Cedilnik ////////////////// ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] On Behalf Of vtkusers-request at public.kitware.com Sent: Wednesday, 26 June 2002 18:51 To: vtkusers at public.kitware.com Subject: vtkusers digest, Vol 1 #1100 - 11 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..." From a.maclean at acfr.usyd.edu.au Wed Jun 26 19:54:22 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 27 Jun 2002 09:54:22 +1000 Subject: [vtkusers] CVS bug?? - update: The /Zm Option (VC7) Message-ID: <008d01c21d6c$cbf59ce0$acd24e81@acfr.usyd.edu.au> Hi Charlie, There is hope! The following comments will be interesting to the VTK Team! See below. It seems that setting /Zm does not take effect until the compiler is restarted, and settings cannot be expected to be the same for all systems. Regards Andrew ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: Jason Shirk [mailto:jasonsh at microsoft.com] Sent: Wednesday, 26 June 2002 13:51 To: boost at lists.boost.org Subject: [boost] Re: Re: Problems with uBLAS and /Zm Option (VC7) "Paul A. Bristow" wrote in message news:... > "This should also explain the need for the /Zm option. The compiler > needs to ensure it has a contiguous address space for the heap we > create the PCH from. > > Jason Shirk, VC++ Compiler Team" > > from > > http://aspn.activestate.com/ASPN/Mail/Message/1156165 > > I turned off pre-compiled headers for my compilations, just in case. > This may explain the different requirements, but not my confusion? > Perhaps it is to do with getting the compiler re-started so it finds > the contiguous space? > > (It fails C1060 immediately without appearing to do anything, whereas > on the first try, it takes some seconds before failing). > When it fails immediately, the compiler is trying to reserve more memory than the system allows. This depends on which version of the compiler you have, how much physical memory you've got, and if you've tweaked the size of the pagefile. When if fails after running awhile, an internal heap is exceeding it's predetermined limit. With our upcoming release, this option will rarely be necessary. It will never be necessary if you aren't creating a PCH, and it will only be necessary if your PCH is > ~50MB (and I'd rethink your build if your PCH is that big.) Jason Shirk VC++ Compiler Team From svong at email.arc.nasa.gov Wed Jun 26 20:18:31 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Wed, 26 Jun 2002 17:18:31 -0700 Subject: [vtkusers] need some useful 3D data to test Message-ID: <3D1A59D7.15273F85@email.arc.nasa.gov> Hi vtkusers, I have built a small tool that uses volume rendering technique. All along I just used "ironProt.vtk" that comes with vtk to test. However, since the final goal for my tool is to analyse streaming data, I need some other 3D dataset for testing, preferably some weather data, but not necessary. Can anyone out there provide me with some data or point me to some websites? Thanks, Shwuping Vong From shanker at iiitb.ac.in Wed Jun 26 22:05:07 2002 From: shanker at iiitb.ac.in (Shanker Krishnan) Date: Thu, 27 Jun 2002 07:35:07 +0530 Subject: [vtkusers] Java Help Message-ID: Hi, I downloaded the Binary installation of java for Windows from the Net. After installing it the JDK doesnot work It keeps saying Noclassdeffound for any program i try to compile. I have uninstalled it and but the jar file in the ext folders. Now it compiles the vtk program but when i try to run the class file then it gives a linking error. VTKInit() failed or something. Can anyone tell me how set VTK up with java. From forzakim at yahoo.co.jp Wed Jun 26 22:32:08 2002 From: forzakim at yahoo.co.jp (forzakim) Date: Thu, 27 Jun 2002 11:32:08 +0900 (JST) Subject: [vtkusers] Compile errors with vtk40release with C++Builder6 Message-ID: <20020627023208.27604.qmail@web702.mail.yahoo.co.jp> Hello, Compile errors are generated. "D:\Program Files\Borland\CBuilder6\Bin\bcc32.exe" -P -w- -whid -waus -wpar -tWM -Od -v -DvtkHybrid_EXPORTS -tWR -ovtkVRMLImporter.obj -ID:/VTK/Hybrid -ID:/VTK/Rendering -ID:/VTK/Hybrid -ID:/VTK/Parallel -ID:/VTKBin -ID:/VTK/Common -ID:/VTK/Filtering -ID:/VTK/Imaging -ID:/VTK/Graphics -ID:/VTK/IO -ID:/VTK/Utilities/zlib -ID:/VTK/Utilities/png -ID:/VTK/Utilities/jpeg -ID:/VTK/Common/Testing/Cxx -ID:/PROGRA~1/Tcl/include -c D:/VTK/Hybrid/vtkVRMLImporter.cxx Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland D:/VTK/Hybrid/vtkVRMLImporter.cxx: Error E2171 D:/VTK/Hybrid/vtkVRML.h 79: Function 'operator new[](unsigned int,void *)' body is defined already. Error E2451 D:/VTK/Hybrid/vtkVRML.h 80: Undefined symbol v(Function operator new[](unsigned int,void *) ) *** 2 errors in Compile *** ** error 1 ** deleting vtkVRMLImporter.obj ** error 1 ** deleting default_target ** error 1 ** deleting default_target_Hybrid ** error 1 ** deleting default_target Any help would be appreciated. Regards. forzakim __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ From blowek1 at csee.umbc.edu Thu Jun 27 00:13:08 2002 From: blowek1 at csee.umbc.edu (Brad Lowekamp) Date: Thu, 27 Jun 2002 00:13:08 -0400 (EDT) Subject: [vtkusers] Bug with Shallow Copy and Deconstructors Message-ID: The way that this bug has manifested itself to me is by the field data disappearing during filters operating on it. I have encountered a similar bug with the vtkDataObjectToDataSetFilter and posted about it. I have also encountered similar problems with several other classes. If two data objects share an object lets say from a shallow copy, and one of the data objects is deleted the data is deleted in the other. I have frequently encountered this with the field data. I have spent a significant amount of time tracking down and understanding all the related code. This bug can be easily seen in the following tcl code, when the source contains field data. vtkPolyDataReader reader reader SetFileName test.vtk vtkPolyData pd pd ShallowCopy [reader GetOutput] puts [[pd GetFieldData] GetNumberOffArrays] reader Delete puts [[reader GetFieldData] GetNumberOfArrays] Have other people encountered their data disappearing too? I have searched that archive and not found much. I can't image that I am the only one. To me this type of bug seems very significant and that other people must have encountered it before. Or do few people delete their classes before they are finished? The project that I have been working on involves using the fielddata in vtkDataObject and dynamically creating and deleting vtk objects. As a result I have had to create an abstract filter vtkDataObjectToDataObject to do a lot of transformation. And I have needed to keep careful track of Objects, making sure they get deleted and filters remain correct when the input and outputs are changed. In working with this I have had much frustration working with VTK. Because it seems as though neither of these aspects of VTK have been tested or worked with much before. It is infrequent when there is a task that I wish to get done where the filters are neither designed to work with vtkDataObject nor handle the FieldData in a vtkDataSet correctly. For example I was working with the vtkSourcePort and vtkInputPort and trying to transmit FieldData with it. It does not accept vtkDataObject as a class to transmit. No problem, I will just add a dumpy point and send a vtkPolyData across the network. But wait the field data mysteriously disappears! After a day of searching, I have come to discover that the vtkDataSetReader uses SHALLOWCOPY. Which can be traced to the source of the disappearing data! I dont see how vtkDataSetReader can read FieldData! (Try using vtkDataSetReader instead of vtkPolyData in the above example, interesting!) I have seen this bug occour in many other filters as well. ANY filter which uses a ShallowCopy will likely have this same bug too! Perhaps people have not encountered this bug more because few people use the FieldData and still fewer realize what is sometime goes on is a bug. It is wide spread and shows itself is many different places, but there us just a few places that need modification to fix it and those are with the interaction with the deconstructors and initialization function of DataObjects and related classes. There is a simple rule that should be adopted by deconstruction that would work and solve this problem so that shallow copies can be used with out fear of causing bugs! The rule is: For every vtkObject an objects owns (has a registered pointer to) Unregister or Delete it, and then set the variable to NULL, but DO NOT CALL THAT VTKOBJECTS INITIALIZATION function. To get my project to work, I must fix this bug myself in vtkDataObject. I don't know how people submit code, but certainly I think that this is a good candidate for that. However because these fixes are so close to the core and could affect most of the other classes I am sure there many issues. I certainly hope that this issue well be addressed. And I am willing to give my help to getting it fixed. From krs at cs.uncc.edu Thu Jun 27 00:18:22 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Thu, 27 Jun 2002 00:18:22 -0400 Subject: [vtkusers] font size - XYPlotActor.. Message-ID: <3D1A920E.E53AD559@cs.uncc.edu> Is there a way to increase the font size of the labels in vtkXYPlotActor? I saw calls to set the font, but didnt see anything to increase font size. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From jbiddiscombe at skippingmouse.co.uk Thu Jun 27 03:49:57 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 27 Jun 2002 08:49:57 +0100 Subject: [vtkusers] Compile errors with vtk40release with C++Builder6 References: <20020627023208.27604.qmail@web702.mail.yahoo.co.jp> Message-ID: <000d01c21daf$3c7702f0$0100a8c0@tigger> This is fixed in the cvs copy of vtk. CBuilder 5 had a bug which I inserted a #ifdef __BORLANDC__ check to fix, but in CBUilder6 it isn't needed. Look in vtkVrml.h near the start and remove the check. (or do a cvs update) JB ----- Original Message ----- From: "forzakim" To: "VTK Mailing list" Sent: Thursday, June 27, 2002 3:32 AM Subject: [vtkusers] Compile errors with vtk40release with C++Builder6 > Hello, > > Compile errors are generated. > > "D:\Program Files\Borland\CBuilder6\Bin\bcc32.exe" -P -w- -whid -waus -wpar > -tWM -Od -v -DvtkHybrid_EXPORTS -tWR -ovtkVRMLImporter.obj -ID:/VTK/Hybrid > -ID:/VTK/Rendering -ID:/VTK/Hybrid -ID:/VTK/Parallel -ID:/VTKBin > -ID:/VTK/Common -ID:/VTK/Filtering -ID:/VTK/Imaging -ID:/VTK/Graphics > -ID:/VTK/IO -ID:/VTK/Utilities/zlib -ID:/VTK/Utilities/png > -ID:/VTK/Utilities/jpeg -ID:/VTK/Common/Testing/Cxx > -ID:/PROGRA~1/Tcl/include -c D:/VTK/Hybrid/vtkVRMLImporter.cxx > Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland > D:/VTK/Hybrid/vtkVRMLImporter.cxx: > Error E2171 D:/VTK/Hybrid/vtkVRML.h 79: Function 'operator new[](unsigned > int,void *)' body is defined already. > Error E2451 D:/VTK/Hybrid/vtkVRML.h 80: Undefined symbol v(Function > operator new[](unsigned int,void *) ) > *** 2 errors in Compile *** > > ** error 1 ** deleting vtkVRMLImporter.obj > > ** error 1 ** deleting default_target > > ** error 1 ** deleting default_target_Hybrid > > ** error 1 ** deleting default_target > > > Any help would be appreciated. > > Regards. > forzakim > > > __________________________________________________ > Do You Yahoo!? > Yahoo! BB is Broadband by Yahoo! > http://bb.yahoo.co.jp/ > > _______________________________________________ > 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 j.robinson at kepler.ie Thu Jun 27 07:43:23 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Thu, 27 Jun 2002 12:43:23 +0100 Subject: [vtkusers] Continuing problems Message-ID: Dear All, My problems continue ? hopefully it is something stupid that I am doing and there will be a simple solution . Firstly, I still can?t create a set of static libraries for version 4.0. If anybody has a set compiled for win32 and MS C++ V6 they would be greatly appreciated (as well as instructions on how I might compile them myself). I have noticed that the CMake application doesn?t seem to set the flags (#define s) correctly for the options that I choose. That?s a bad start when trying to achieve the desired goal. Next, I have an application that has a vtk 3.2 mfc doc/view window. It works perfectly on my laptop (Win 98, PIII 750MHz, 256Mb RAM) but crashes on a different PC (Win 2000, PIV 1.5 GHz, 256MB RAM) when the vtk window is opened. Interestingly enough, I am having a similar problem on the laptop with the vtk 4.0 compiled version, except that it crashes when the vtk window is closed. Effectively, I can open the window and view everything (all actors etc.) but when I close the window I get a crash. Even more interestingly, if I create all the vtk objects and actors, but DON?T make them visible, I don? t get any crash????? I would appreciate all constructive advice/comments/criticism. Many thanks (in advance), Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 959 bytes Desc: not available URL: From andy.cedilnik at kitware.com Thu Jun 27 07:47:42 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 27 Jun 2002 07:47:42 -0400 Subject: [vtkusers] CVS bug?? - update: The /Zm Option (VC7) In-Reply-To: <008d01c21d6c$cbf59ce0$acd24e81@acfr.usyd.edu.au> References: <008d01c21d6c$cbf59ce0$acd24e81@acfr.usyd.edu.au> Message-ID: <1025178462.14866.71.camel@xanth.kitwarein.com> Hi Andrew, That is a good news (that MS will actually fix their product), but it does not change the fact that the header files of VTK include too much bloat. VTK's philosophy is that for every class you are using in your cxx file, you have to include the appropriate header file. In the header files you include only superclass and under extreme circumstances a class that is absolutely necessary. This way not only some compilers are capable of compiling the code but also the compiling time is much faster. For example, by cleaning Rendering, on dual Athlon MP 1600+ with 1G RAM, using make -j 2, building all the kits and Tcl wrapping, the compile time shrunk by about 20%. Andy On Wed, 2002-06-26 at 19:54, Andrew J. P. Maclean wrote: > There is hope! > The following comments will be interesting to the VTK Team! > See below. > > It seems that setting /Zm does not take effect until the compiler is > restarted, and settings cannot be expected to be the same for all > systems. From agibson at medphys.ucl.ac.uk Thu Jun 27 08:09:13 2002 From: agibson at medphys.ucl.ac.uk (Adam Gibson) Date: Thu, 27 Jun 2002 13:09:13 +0100 Subject: [vtkusers] vtkIterativeClosestPointTransform Message-ID: <200206271309.13902.agibson@medphys.ucl.ac.uk> Hello I'm working in medical imaging, trying to fit a generic head-shaped surface to a set of points measured on an individual patient's scalp. In the first instance, I'm fitting a sphere to 29 measured points unevenly spread over the back of the head. I want to move the sphere using vtkIterativeClosestPointTransform so it best fits these points. My sphere is generated by vtkSphereSource, and I'm reading my points in from a file so they're vtkPoints. If I run vtkIterativeClosestPointTransform with the sphere as source and points as target, like this: vtkIterativeClosestPointTransform icp icp SetSource [sphere GetOutput] icp SetTarget [pointSource GetOutput] I get the error message Error in startup script: Object named: pointSource, could not find requested method: GetOutput or the method was called with incorrect arguments. So I tried converting the points to a vtkPolyData surface. I could display the sphere and the new surface nicely but when I ran vtkIterativeClosestPointTransform, I got a different error ERROR: In /home/adam/downloads/vtk/VTK/Hybrid/vtkIterativeClosestPointTransform.cxx, line 317 vtkIterativeClosestPointTransform (0x8fa4a00): Can't execute with NULL or empty target Can anybody tell me what I'm doing wrong? Or even better, how to fix it? Thanks - I'm new to VTK so please go easy in your replies! Adam Gibson -- ------------------------------------------- Adam Gibson PhD Dept. Medical Physics and Bioengineering 1st Floor Shropshire House, 11-20 Capper St London WC1E 6JA 020 7679 6415 www.medphys.ucl.ac.uk/~agibson/ From berk.geveci at kitware.com Thu Jun 27 08:31:56 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 27 Jun 2002 08:31:56 -0400 Subject: [Fwd: Re: [vtkusers] Bug with Shallow Copy and Deconstructors] Message-ID: <1025181118.10061.8.camel@caemlyn.kitwarein.com> -----Forwarded Message----- > From: Berk Geveci > To: Brad Lowekamp > Subject: Re: [vtkusers] Bug with Shallow Copy and Deconstructors > Date: 27 Jun 2002 08:13:14 -0400 > > This bug has already been fixed. However, the fix is not > in 4.0. You will have to either wait for the next release > or download a nightly distribution. > > -Berk > > On Thu, 2002-06-27 at 00:13, Brad Lowekamp wrote: > > The way that this bug has manifested itself to me is by the field data > > disappearing during filters operating on it. I have encountered a similar > > bug with the vtkDataObjectToDataSetFilter and posted about it. I have also > > encountered similar problems with several other classes. If two data > > objects share an object lets say from a shallow copy, and one of the data > > objects is deleted the data is deleted in the other. I have frequently > > encountered this with the field data. I have spent a significant amount of > > time tracking down and understanding all the related code. This bug can be > > easily seen in the following tcl code, when the source contains field > > data. > > > > vtkPolyDataReader reader > > reader SetFileName test.vtk > > > > vtkPolyData pd > > pd ShallowCopy [reader GetOutput] > > > > puts [[pd GetFieldData] GetNumberOffArrays] > > > > reader Delete > > > > puts [[reader GetFieldData] GetNumberOfArrays] > > > > Have other people encountered their data disappearing too? I have searched > > that archive and not found much. I can't image that I am the only one. To > > me this type of bug seems very significant and that other people must have > > encountered it before. Or do few people delete their classes before they > > are finished? > > > > The project that I have been working on involves using the fielddata in > > vtkDataObject and dynamically creating and deleting vtk objects. As a > > result I have had to create an abstract filter vtkDataObjectToDataObject > > to do a lot of transformation. And I have needed to keep careful track of > > Objects, making sure they get deleted and filters remain correct when the > > input and outputs are changed. In working with this I have had much > > frustration working with VTK. Because it seems as though neither of these > > aspects of VTK have been tested or worked with much before. It is > > infrequent when there is a task that I wish to get done where the filters > > are neither designed to work with vtkDataObject nor handle the FieldData > > in a vtkDataSet correctly. > > > > For example I was working with the vtkSourcePort and vtkInputPort and > > trying to transmit FieldData with it. It does not accept vtkDataObject as > > a class to transmit. No problem, I will just add a dumpy point and send a > > vtkPolyData across the network. But wait the field data mysteriously > > disappears! After a day of searching, I have come to discover that the > > vtkDataSetReader uses SHALLOWCOPY. Which can be traced to the source of > > the disappearing data! I dont see how vtkDataSetReader can read FieldData! > > (Try using vtkDataSetReader instead of vtkPolyData in the above example, > > interesting!) > > > > I have seen this bug occour in many other filters as well. ANY filter > > which uses a ShallowCopy will likely have this same bug too! Perhaps > > people have not encountered this bug more because few people use the > > FieldData and still fewer realize what is sometime goes on is a bug. It is > > wide spread and shows itself is many different places, but there us just a > > few places that need modification to fix it and those are with the > > interaction with the deconstructors and initialization function of > > DataObjects and related classes. > > > > There is a simple rule that should be adopted by deconstruction that would > > work and solve this problem so that shallow copies can be used with out > > fear of causing bugs! The rule is: For every vtkObject an objects owns > > (has a registered pointer to) Unregister or Delete it, and then set the > > variable to NULL, but DO NOT CALL THAT VTKOBJECTS INITIALIZATION function. > > > > > > To get my project to work, I must fix this bug myself in vtkDataObject. I > > don't know how people submit code, but certainly I think that this is a > > good candidate for that. However because these fixes are so close to the > > core and could affect most of the other classes I am sure there many > > issues. I certainly hope that this issue well be addressed. And I am > > willing to give my help to getting it fixed. > > > > > > _______________________________________________ > > 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 neri at hobbes.nrl.navy.mil Thu Jun 27 10:37:49 2002 From: neri at hobbes.nrl.navy.mil (Jesse Neri) Date: Thu, 27 Jun 2002 10:37:49 -0400 Subject: [vtkusers] Continuing problems Message-ID: <001901c21de8$36dc4a60$fa9efa84@nrl.navy.mil> For the error at exit, add the command (in Tcl) vtkCommand DeleteAllObjects before calling the exit to Tcl. I noticed this effect when going from vtk 3.2 to vtk 4.0 on Win 2000. -- Jess Neri neri at hobbes.nrl.navy.mil (202) 404-4365 Pulsed Power Physics Branch, Plasma Physics Division Naval Research Laboratory, Washington DC 20375 -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of James C. Robinson Sent: Thursday, June 27, 2002 7:43 AM To: Vtkusers at Public. Kitware. Com Subject: [vtkusers] Continuing problems Dear All, My problems continue ? hopefully it is something stupid that I am doing and there will be a simple solution . Firstly, I still can?t create a set of static libraries for version 4.0. If anybody has a set compiled for win32 and MS C++ V6 they would be greatly appreciated (as well as instructions on how I might compile them myself). I have noticed that the CMake application doesn?t seem to set the flags (#define s) correctly for the options that I choose. That?s a bad start when trying to achieve the desired goal. Next, I have an application that has a vtk 3.2 mfc doc/view window. It works perfectly on my laptop (Win 98, PIII 750MHz, 256Mb RAM) but crashes on a different PC (Win 2000, PIV 1.5 GHz, 256MB RAM) when the vtk window is opened. Interestingly enough, I am having a similar problem on the laptop with the vtk 4.0 compiled version, except that it crashes when the vtk window is closed. Effectively, I can open the window and view everything (all actors etc.) but when I close the window I get a crash. Even more interestingly, if I create all the vtk objects and actors, but DON?T make them visible, I don? t get any crash????? I would appreciate all constructive advice/comments/criticism. Many thanks (in advance), Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ From j.robinson at kepler.ie Thu Jun 27 13:18:36 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Thu, 27 Jun 2002 18:18:36 +0100 Subject: [vtkusers] Continuing problems In-Reply-To: <001901c21de8$36dc4a60$fa9efa84@nrl.navy.mil> Message-ID: Thanks for the idea. I actually "new and delete" all objects explicitly. Is this a problem (I wonder)? ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Jesse Neri Sent: 27 June 2002 15:38 To: Vtkusers (E-mail) Subject: RE: [vtkusers] Continuing problems For the error at exit, add the command (in Tcl) vtkCommand DeleteAllObjects before calling the exit to Tcl. I noticed this effect when going from vtk 3.2 to vtk 4.0 on Win 2000. -- Jess Neri neri at hobbes.nrl.navy.mil (202) 404-4365 Pulsed Power Physics Branch, Plasma Physics Division Naval Research Laboratory, Washington DC 20375 -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of James C. Robinson Sent: Thursday, June 27, 2002 7:43 AM To: Vtkusers at Public. Kitware. Com Subject: [vtkusers] Continuing problems Dear All, My problems continue - hopefully it is something stupid that I am doing and there will be a simple solution....... Firstly, I still can't create a set of static libraries for version 4.0. If anybody has a set compiled for win32 and MS C++ V6 they would be greatly appreciated (as well as instructions on how I might compile them myself). I have noticed that the CMake application doesn't seem to set the flags (#define s) correctly for the options that I choose. That's a bad start when trying to achieve the desired goal. Next, I have an application that has a vtk 3.2 mfc doc/view window. It works perfectly on my laptop (Win 98, PIII 750MHz, 256Mb RAM) but crashes on a different PC (Win 2000, PIV 1.5 GHz, 256MB RAM) when the vtk window is opened. Interestingly enough, I am having a similar problem on the laptop with the vtk 4.0 compiled version, except that it crashes when the vtk window is closed. Effectively, I can open the window and view everything (all actors etc.) but when I close the window I get a crash. Even more interestingly, if I create all the vtk objects and actors, but DON'T make them visible, I don' t get any crash????? I would appreciate all constructive advice/comments/criticism. Many thanks (in advance), Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ _______________________________________________ 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 amati at ira.cnr.it Fri Jun 28 05:20:03 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Fri, 28 Jun 2002 11:20:03 +0200 (CEST) Subject: [vtkusers] Coloring one single point Message-ID: Hello everybody, my question is a very hard question :) but I will ask you: I have a polydata structure and I would like to color one and only one point with a different color. with pd->GetPoint(ID) I obtain my point, can I change it's color? thank you. giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From amati at ira.cnr.it Fri Jun 28 09:32:29 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Fri, 28 Jun 2002 15:32:29 +0200 (CEST) Subject: [vtkusers] vtk numerical precision Message-ID: Hello everybody, I have the following question, as I have to implement some phisycal numerical operation I need to know which is the vtk library numerical precision. Thank Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From hsalas at grupomar.com Fri Jun 28 09:42:27 2002 From: hsalas at grupomar.com (=?iso-8859-1?Q?L.O.Q._Hector_Salas_Rodr=EDguez?=) Date: Fri, 28 Jun 2002 08:42:27 -0500 Subject: [vtkusers] How to wrap VTK classes Message-ID: <001201c21ea9$a45d9d20$1001a8c0@grupomar.com> Hi vtk users. I?m writing a Basic interpreter and I would like to wrap the VTK classes with it. Could some body tell me how to do that? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Fri Jun 28 09:51:41 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 28 Jun 2002 09:51:41 -0400 Subject: [vtkusers] vtk numerical precision In-Reply-To: References: Message-ID: <1025272306.32105.11.camel@caemlyn.kitwarein.com> In general, float. double is used in a few places (very few). On Fri, 2002-06-28 at 09:32, Giancarlo Amati wrote: > Hello everybody, > > I have the following question, as I have to implement some phisycal > numerical operation I need to know which is the vtk library numerical > precision. > > Thank > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 nNunn at ausport.gov.au Fri Jun 28 09:51:22 2002 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Fri, 28 Jun 2002 23:51:22 +1000 Subject: [vtkusers] RE: Coloring one single point Message-ID: <7AF3524792FFD511A17A0000F81E965E4729E8@elmo.ausport.gov.au> Hi Giancarlo, You need to associate a scalar value with each point (or cell). Before Vtk 4.x, this was done by assigning a vtkScalars object as the point (cell) data in your grid. In Vtk 4.x, use one of the vtk[Int/Float/Double]Array classes, and set this array as the grid's point (or cell) data. Try something like this: // CellData m_bdryCellBC = vtkIntArray::New(); m_bdryCellBC->SetNumberOfComponents(1); // PointData m_bdryPointBC = vtkIntArray::New(); m_bdryPointBC->SetNumberOfComponents(1); m_bdryGrid = vtkUnstructuredGrid::New(); m_bdryGrid->Allocate(); m_bdryGrid->SetPoints(m_pPoints); // Map boundary markers to element (cell) faces (m_bdryGrid->GetCellData())->SetScalars(m_bdryCellBC); // Map boundary markers to nodes (m_bdryGrid->GetPointData())->SetScalars(m_bdryPointBC); Later, m_bdryPointBC->InsertNextValue( oldval ); Later still, m_bdryPointBC->SetValue( pd->GetPoint(ID), newval ); Nigel ------- Giancarlo Amati wrote ------- > I have a polydata structure and I would like to color > one and only one point with a different color. with > pd->GetPoint(ID) I obtain my point, can I change it's > color? ********************************************************************** 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 spanish_vtk at hotmail.com Fri Jun 28 10:53:31 2002 From: spanish_vtk at hotmail.com (fernando hierro) Date: Fri, 28 Jun 2002 14:53:31 +0000 Subject: [vtkusers] Adding A New Class Message-ID: How i can add a new class to my library??? vtkImageCloseUp2D.h vtkImageCrossHair2D.h I tried.... 1) Create a new directory called VTK/Local. 2) Create a file called LocalUserOptions.cmake in VTK/. In that file, add the command "SUBDIRS(Local)". This will add the Local directory to the build. 3) Create the .cxx and .h file for the new class in VTK/Local. Make sure that you use VTK conventions to insure that the wrapping occurs correctly. Complex code may break the wrapper parser; use //BTX and //ETX around the code to fix this. 4) Create a CMakeLists.txt in VTK/Local. You can model it after a CMakeList.txt file found in another directory (like VTK/IO/CMakeLists.txt). 5) Rerun ccmake (Unix) or CMakeSetup.exe (Windows). 6) Then make/gmake (Unix) or msdev (Windows). but it don?t work. _________________________________________________________________ MSN Fotos: la forma m?s f?cil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx From spanish_vtk at hotmail.com Fri Jun 28 10:53:34 2002 From: spanish_vtk at hotmail.com (fernando hierro) Date: Fri, 28 Jun 2002 14:53:34 +0000 Subject: [vtkusers] Adding A New Class Message-ID: How i can add a new class to my library??? vtkImageCloseUp2D.h vtkImageCrossHair2D.h I tried.... 1) Create a new directory called VTK/Local. 2) Create a file called LocalUserOptions.cmake in VTK/. In that file, add the command "SUBDIRS(Local)". This will add the Local directory to the build. 3) Create the .cxx and .h file for the new class in VTK/Local. Make sure that you use VTK conventions to insure that the wrapping occurs correctly. Complex code may break the wrapper parser; use //BTX and //ETX around the code to fix this. 4) Create a CMakeLists.txt in VTK/Local. You can model it after a CMakeList.txt file found in another directory (like VTK/IO/CMakeLists.txt). 5) Rerun ccmake (Unix) or CMakeSetup.exe (Windows). 6) Then make/gmake (Unix) or msdev (Windows). but it don?t work. _________________________________________________________________ Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com From andy.cedilnik at kitware.com Fri Jun 28 10:59:21 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 28 Jun 2002 10:59:21 -0400 Subject: [vtkusers] Adding A New Class In-Reply-To: References: Message-ID: <1025276365.12430.1.camel@xanth.kitwarein.com> Hello Fernando, When you say "but it don?t work", what do you mean? Does not compile? Andy On Fri, 2002-06-28 at 10:53, fernando hierro wrote: > How i can add a new class to my library??? > > vtkImageCloseUp2D.h > vtkImageCrossHair2D.h > > I tried.... > > > 1) Create a new directory called VTK/Local. ... > 6) Then make/gmake (Unix) or msdev (Windows). > > > but it don?t work. From sebastien.barre at kitware.com Fri Jun 28 10:59:36 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Fri, 28 Jun 2002 10:59:36 -0400 Subject: [vtkusers] Adding A New Class In-Reply-To: Message-ID: <5.1.1.6.0.20020628105840.023991e0@pop.nycap.rr.com> At 6/28/2002 10:53 AM, fernando hierro wrote: >How i can add a new class to my library??? This example (and its README) in the source distrib might help you: \VTK\Examples\Build\vtkMy It shows you how to setup a local class repository. -- Sebastien Barre From aks01 at doc.ic.ac.uk Fri Jun 28 11:08:24 2002 From: aks01 at doc.ic.ac.uk (Alia) Date: Fri, 28 Jun 2002 16:08:24 +0100 (BST) Subject: [vtkusers] help! problems saving as ppm Message-ID: hello I'm trying to save the contents of a rendering window as a PPM file, using vtk40 and windows. However I keep getting the error ' Error: Object named: renWin, could not find requested method: SetFileName or the method was called with incorrect arguments' when it hits this bit of the script. renWin SetFileName $name renWin SaveImageAsPPM (The whole of the sample script I'm using can be found at: http://www.cs.utah.edu/~cs5630/intro/ballanim.tcl.html ) Has anybody come across this before? I would be extremely grateful for some help on the matter. Thanks Alia --------------------------------------------------------- To lift an autumn hair is no sign of great strength; To see the sun and moon is no sign of sharp sight; To hear the noise of thunder is no sign of a quick ear. -Sun Tzu on The Art Of War --------------------------------------------------------- ......... (its a herd of elephants seen from VERY far away) --------------------------------------------------------- From andy.cedilnik at kitware.com Fri Jun 28 11:25:15 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 28 Jun 2002 11:25:15 -0400 Subject: [vtkusers] help! problems saving as ppm In-Reply-To: References: Message-ID: <1025277916.12430.4.camel@xanth.kitwarein.com> Try: vtkWindowToImageFilter w2i w2i SetInput renWin vtkPGMWriter w w SetInput [ w2i GetOutput ] w SetFileName "whatever.ppm" w Write Andy On Fri, 2002-06-28 at 11:08, Alia wrote: > > > hello > > I'm trying to save the contents of a rendering window as a PPM file, > using vtk40 and windows. > > However I keep getting the error > > ' Error: Object named: renWin, could not find requested method: > SetFileName or the method was called with incorrect arguments' > > when it hits this bit of the script. > renWin SetFileName $name > renWin SaveImageAsPPM > > (The whole of the sample script I'm using can be found at: > http://www.cs.utah.edu/~cs5630/intro/ballanim.tcl.html ) > > Has anybody come across this before? I would be extremely grateful for > some help on the matter. > > Thanks > > Alia > > > --------------------------------------------------------- > To lift an autumn hair is no sign of great strength; > To see the sun and moon is no sign of sharp sight; > To hear the noise of thunder is no sign of a quick ear. > -Sun Tzu on The Art Of War > --------------------------------------------------------- > > ......... > > (its a herd of elephants seen from VERY far away) > --------------------------------------------------------- > > > _______________________________________________ > 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 p.cook at cs.ucl.ac.uk Fri Jun 28 12:06:30 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Fri, 28 Jun 2002 17:06:30 +0100 Subject: [vtkusers] Shared libraries on Solaris 8 Message-ID: <20020628160630.8BB8B1ABF6@public.kitware.com> I have been trying to build VTK 4n (CVS) on Solaris 8. The build completes OK but as soon as I try to load the Java libraries in an application, I get the following; Exception in thread "main" java.lang.UnsatisfiedLinkError: /cs/research/medim/common0/green/common/VTK4n/lib/vtk/libvtkCommonJava.so: ld.so.1: /cs/research/medim/common0/green/common/j2sdk1.4.0_01/jre/bin/java: fatal: relocation error: file /cs/research/medim/common0/green/common/VTK4n/lib/vtk/libvtkCommonJava.so: symbol __pure_virtual: referenced symbol not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404) at java.lang.Runtime.loadLibrary0(Runtime.java:772) at java.lang.System.loadLibrary(System.java:832) at dwite.dtDisplay.DWITE.(DWITE.java:34) My CMakeCache is shown below. I am building with gcc / g++ v. 2.95.2. I have tried using Sun's cc / c++ but that fails during the build because the option for PIC is different on each (cc wants the flag -KPIC, while c++ wants -fPIC). I think the problem is to do with linking. I have attempted to add -lgcc to the line CMAKE_SHLIB_BUILD_FLAGS but that doesn't help. Any ideas are appreciated. # This is the CMakeCache file. # For build in directory: /cs/research/medim/common0/green/common/src/VTK # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a varible in the cache. # TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Build the documentation (Doxygen). BUILD_DOCUMENTATION:BOOL=OFF //Build VTK examples. BUILD_EXAMPLES:BOOL=OFF //Build VTK with shared libraries. BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=OFF //Archive program used to make archive libraries. CMAKE_AR:FILEPATH=/usr/ccs/bin/ar //Arguments for CMAKE_AR program to create an archive library. CMAKE_AR_ARGS:STRING=cr //Name of C++ compiler used. CMAKE_CXX_COMPILER:FILEPATH=c++ //Flags used by CXX compiler. CMAKE_CXX_FLAGS:STRING=-O2 //Name of C compiler used. CMAKE_C_COMPILER:FILEPATH=gcc //Flags for C compiler. CMAKE_C_FLAGS:STRING=-O //Dynamic link library to link in. CMAKE_DL_LIBS:STRING=-ldl //Use HP pthreads. CMAKE_HP_PTHREADS:BOOL=OFF //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/cs/research/medim/common0/green/common/VTK4n //Library extension used by this machine. CMAKE_LIB_EXT:STRING= //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/opt/ucl/bin/gmake //Flag used by CXX to build a shared library. CMAKE_MODULE_BUILD_FLAGS:STRING=-shared -nostdlib //Flags used to link a shared library. CMAKE_MODULE_LINK_FLAGS:STRING= //Module library suffix. CMAKE_MODULE_SUFFIX:STRING=.so //Library randomizer program used on archive libraries. CMAKE_RANLIB:FILEPATH=ranlib //Flag used by CXX to build a shared library. CMAKE_SHLIB_BUILD_FLAGS:STRING=-shared -nostdlib //Flag used for building shared library objects. CMAKE_SHLIB_CFLAGS:STRING=-fPIC //Libraries used by LD for shared libraries. CMAKE_SHLIB_LD_LIBS:STRING=${LIBS} //Flags used to link a shared library. CMAKE_SHLIB_LINK_FLAGS:STRING= //Flag used to specify run-time search paths. CMAKE_SHLIB_RUNTIME_FLAG:STRING=-Wl,-R, //If null, each runtime path is a separate option. Otherwise, they // are all joined, separated by this. CMAKE_SHLIB_RUNTIME_SEP:STRING=: //Shared library suffix. CMAKE_SHLIB_SUFFIX:STRING=.so //If set, runtime paths are not added when using shared libraries. // CMAKE_SKIP_RPATH:BOOL=OFF //CXX template flags used by compiler. CMAKE_TEMPLATE_FLAGS:STRING= //Thread library used. CMAKE_THREAD_LIBS:STRING=-lpthread //Use the pthreads library. CMAKE_USE_PTHREADS:BOOL=ON //Use sproc libs. CMAKE_USE_SPROC:BOOL=OFF //is this system big endian CMAKE_WORDS_BIGENDIAN:BOOL=ON //X11 extra flags. CMAKE_X_CFLAGS:STRING= -I/usr/openwin/include //Libraries and options used in X11 programs. CMAKE_X_LIBS:STRING= -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl //If you have Dart installed, where is it located? DART_ROOT:PATH=NOTFOUND //Single output directory for building all executables. EXECUTABLE_OUTPUT_PATH:PATH=/cs/research/medim/common0/green/common/VTK4n/bin //What is the path where the file jawt.h can be found JAVA_AWT_INCLUDE_PATH:PATH=/cs/research/medim/common0/green/common/j2sdk1.4.0_01/include //Where can the jawt library be found JAVA_AWT_LIBRARY:FILEPATH=/cs/research/medim/common0/green/common/j2sdk1.4.0_01/jre/lib/sparc/libawt.so //What is the path where the file jni.h can be found JAVA_INCLUDE_PATH:PATH=/cs/research/medim/common0/green/common/j2sdk1.4.0_01/include //What is the path where the file jni_md.h can be found JAVA_INCLUDE_PATH2:PATH=/cs/research/medim/common0/green/common/j2sdk1.4.0_01/include/solaris //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH=/cs/research/medim/common0/green/common/VTK4n/bin //What is the path where the file GL/gl.h can be found OPENGL_INCLUDE_PATH:PATH=/usr/include //Where can the GL library be found OPENGL_LIBRARY:FILEPATH=/usr/lib/libGL.so //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/opt/ucl/include //Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82, // tcl8.2, tcl80 or tcl8.0 libraries be found TCL_LIBRARY:FILEPATH=/opt/ucl/lib/libtcl.so //Path to a program. TCL_TCLSH:FILEPATH=/opt/ucl/bin/tclsh //What is the path where the file tk.h can be found TK_INCLUDE_PATH:PATH=/opt/ucl/include //Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2, // tk80 or tk8.0 libraries be found TK_LIBRARY:FILEPATH=/opt/ucl/lib/libtk.so //Path to a program. TK_WISH:FILEPATH=/opt/ucl/bin/wish //Value Computed by CMake VTKEXPAT_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/expat //Value Computed by CMake VTKEXPAT_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/expat //Value Computed by CMake VTKJPEG_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/jpeg //Value Computed by CMake VTKJPEG_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/jpeg //Value Computed by CMake VTKPNG_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/png //Value Computed by CMake VTKPNG_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/png //Value Computed by CMake VTKTIFF_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/tiff //Value Computed by CMake VTKTIFF_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/tiff //Value Computed by CMake VTKZLIB_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/zlib //Value Computed by CMake VTKZLIB_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK/Utilities/zlib //Value Computed by CMake VTK_BINARY_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK //What is the path where the file VTKData.readme can be found VTK_DATA_ROOT:PATH=NOTFOUND //Build leak checking support into vtk. VTK_DEBUG_LEAKS:BOOL=OFF //Allows the user to disable the automatic initialization of Tk // widgets when loading the rendering library. VTK_DISABLE_TK_INIT:BOOL=OFF //Path to Java install VTK_JAVA_HOME:PATH=/cs/research/medim/common0/green/common/VTK4n/java/vtk //Use mangled Mesa with OpenGL VTK_MANGLE_MESA:BOOL=OFF //The opengl library being used supports off screen Mesa calls. // VTK_OPENGL_HAS_OSMESA:BOOL=OFF //Path to an internal program. VTK_PARSE_JAVA_EXE:FILEPATH=/cs/research/medim/common0/green/common/VTK4n/bin/./vtkParseJava //Value Computed by CMake VTK_SOURCE_DIR:STATIC=/cs/research/medim/common0/green/common/src/VTK //Build VTK with 64 bit ids VTK_USE_64BIT_IDS:BOOL=OFF //Use the ANSI standard iostream library VTK_USE_ANSI_STDLIB:BOOL=OFF //Build VTK with Freetype support VTK_USE_FREETYPE:BOOL=OFF //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=OFF //Build the parallel directory classes VTK_USE_PARALLEL:BOOL=OFF //Build the patented directory classes, these classes are patented // and may require a license to use VTK_USE_PATENTED:BOOL=OFF //Build the rendering classes used for displaying VTK_USE_RENDERING:BOOL=ON //Build VTK with volume pro support VTK_USE_VOLUMEPRO:BOOL=OFF //Build classes for the X11 window manager VTK_USE_X:BOOL=ON //Where can the hints file be found VTK_WRAP_HINTS:FILEPATH=/cs/research/medim/common0/green/common/src/VTK/Wrapping/hints //wrap classes into the Java language VTK_WRAP_JAVA:BOOL=ON //Path to an internal program. VTK_WRAP_JAVA_EXE:FILEPATH=/cs/research/medim/common0/green/common/VTK4n/bin/./vtkWrapJava //wrap classes into the Python interpreted language VTK_WRAP_PYTHON:BOOL=OFF //wrap classes into the TCL intepreted language VTK_WRAP_TCL:BOOL=OFF //Path to an internal program. VTK_WRAP_TCL_EXE:FILEPATH=/cs/research/medim/common0/green/common/VTK4n/bin/./vtkWrapTcl ######################## # INTERNAL cache entries ######################## //Executable to project name. /cs/research/medim/common0/green/common/VTK4n/bin/./vtkParseJava:INTERNAL=vtkParseJava //Executable to project name. /cs/research/medim/common0/green/common/VTK4n/bin/./vtkWrapJava:INTERNAL=vtkWrapJava //Executable to project name. /cs/research/medim/common0/green/common/VTK4n/bin/./vtkWrapTcl:INTERNAL=vtkWrapTcl //Advanced flag for variable: BUILD_DOCUMENTATION BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CFLAGS CMAKE_ANSI_CFLAGS-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CXXFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CXXFLAGS CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR_ARGS CMAKE_AR_ARGS-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCahe.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/cs/research/medim/common0/green/common/src/VTK //Major version of cmake used to create the current loaded cache // CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1 //Minor version of cmake used to create the current loaded cache // CMAKE_CACHE_MINOR_VERSION:INTERNAL=2 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/cs/research/medim/common0/green/common/src/CMake/CMake-1.2/Source/cmake //Is the compile GNU C++. CMAKE_COMPILER_IS_GNUCXX:INTERNAL=1 //Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_DL_LIBS CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_EXECUTABLE_SUFFIX CMAKE_EXECUTABLE_SUFFIX-ADVANCED:INTERNAL=1 //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Is X11 around. CMAKE_HAS_X:INTERNAL=1 //Advanced flag for variable: CMAKE_HP_PTHREADS CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_LIB_EXT CMAKE_LIB_EXT-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_SUFFIX CMAKE_MODULE_SUFFIX-ADVANCED:INTERNAL=1 //Does the compiler support ansi for scoping. CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1 //Does the compiler support headers like iostream. CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1 //Does the compiler not support explicit template instantiation. // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL= //Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1 //Does the compiler support std::. CMAKE_NO_STD_NAMESPACE:INTERNAL= //Advanced flag for variable: CMAKE_NO_STD_NAMESPACE CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_OBJECT_FILE_SUFFIX CMAKE_OBJECT_FILE_SUFFIX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/cs/research/medim/common0/green/common/src/CMake/CMake-1.2 //Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_CFLAGS CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LD_LIBS CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_SUFFIX CMAKE_SHLIB_SUFFIX-ADVANCED:INTERNAL=1 //Size of char data type CMAKE_SIZEOF_CHAR:INTERNAL=1 //Size of double data type CMAKE_SIZEOF_DOUBLE:INTERNAL=8 //Size of float data type CMAKE_SIZEOF_FLOAT:INTERNAL=4 //Size of int data type CMAKE_SIZEOF_INT:INTERNAL=4 //Size of long data type CMAKE_SIZEOF_LONG:INTERNAL=4 //Size of short data type CMAKE_SIZEOF_SHORT:INTERNAL=2 //Size of void* data type CMAKE_SIZEOF_VOID_P:INTERNAL=4 //Advanced flag for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_STATICLIB_SUFFIX CMAKE_STATICLIB_SUFFIX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_TEMPLATE_FLAGS CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_THREAD_LIBS CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_PTHREADS CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_SPROC CMAKE_USE_SPROC-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_WIN32_THREADS CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_WORDS_BIGENDIAN CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_CFLAGS CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_LIBS CMAKE_X_LIBS-ADVANCED:INTERNAL=1 //Path to an executable CellLocator:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Advanced flag for variable: EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable FrustumClip:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable ImportExport:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Imaging/Testing/Cxx //Advanced flag for variable: JAVA_AWT_INCLUDE_PATH JAVA_AWT_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_AWT_LIBRARY JAVA_AWT_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH2 JAVA_INCLUDE_PATH2-ADVANCED:INTERNAL=1 //Advanced flag for variable: LIBRARY_OUTPUT_PATH LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable Mace:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable ObjectFactory:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable PointLocator:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable RGrid:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable TestContainers:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestImageIterator:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestList:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestMap:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestReferenceCountedList:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestRenderWindow:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering/Testing/Cxx //Path to an executable TestString:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable TestXML:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/IO/Testing/Cxx //Path to an executable TimeRenderer:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering/Testing/Cxx //Path to an executable TimeRenderer2:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering/Testing/Cxx //Is this VTK built with shared libraries. VTK_BUILD_SHARED_LIBS:INTERNAL=ON //Advanced flag for variable: VTK_DEBUG_LEAKS VTK_DEBUG_LEAKS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_DISABLE_TK_INIT VTK_DISABLE_TK_INIT-ADVANCED:INTERNAL=1 //Where VTK executables are. Used by projects which depend on VTK. // Do not remove. VTK_EXECUTABLE_PATH:INTERNAL=/cs/research/medim/common0/green/common/VTK4n/bin //Where VTK libraries are. Used by projects which depend on VTK. // Do not remove. VTK_LIBRARY_PATH:INTERNAL=/cs/research/medim/common0/green/common/VTK4n/bin //Advanced flag for variable: VTK_MANGLE_MESA VTK_MANGLE_MESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_OPENGL_HAS_OSMESA VTK_OPENGL_HAS_OSMESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_PARSE_JAVA_EXE VTK_PARSE_JAVA_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_64BIT_IDS VTK_USE_64BIT_IDS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_FREETYPE VTK_USE_FREETYPE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_HINTS VTK_WRAP_HINTS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_JAVA_EXE VTK_WRAP_JAVA_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_TCL_EXE VTK_WRAP_TCL_EXE-ADVANCED:INTERNAL=1 //Path to an executable expCos:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable mkg3states:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/tiff //Path to an executable otherArrays:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherByteSwap:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherCellArray:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherCellBoundaries:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherCellDerivatives:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherCellPosition:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherCellTypes:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherColorTransferFunction:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Filtering/Testing/Cxx //Path to an executable otherCoordinate:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering/Testing/Cxx //Path to an executable otherEmptyCell:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherFieldData:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherLookupTable:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherRectilinearGrid:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherStructuredGrid:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable otherTimerLog:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable quadraticEvaluation:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common/Testing/Cxx //Path to an executable volProt:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics/Testing/Cxx //Path to an executable vtk:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Wrapping/Tcl //Path to a library vtkCommon:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common //Path to a library vtkCommonJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common //Whether a library is static, shared or module. vtkCommonJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommonTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Common //Whether a library is static, shared or module. vtkCommonTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFiltering:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Filtering //Path to a library vtkFilteringJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Filtering //Whether a library is static, shared or module. vtkFilteringJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Filtering //Whether a library is static, shared or module. vtkFilteringTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphics:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics //Path to a library vtkGraphicsJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics //Whether a library is static, shared or module. vtkGraphicsJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Graphics //Whether a library is static, shared or module. vtkGraphicsTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIO:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/IO //Path to a library vtkIOJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/IO //Whether a library is static, shared or module. vtkIOJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/IO //Whether a library is static, shared or module. vtkIOTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkIO_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImaging:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Imaging //Path to a library vtkImagingJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Imaging //Whether a library is static, shared or module. vtkImagingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Imaging //Whether a library is static, shared or module. vtkImagingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkParseJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Wrapping //Path to a library vtkRendering:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering //Path to a library vtkRenderingJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering //Whether a library is static, shared or module. vtkRenderingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingTCL:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Rendering //Whether a library is static, shared or module. vtkRenderingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Whether a library is static, shared or module. vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkWrapJava:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Wrapping //Path to an executable vtkWrapTcl:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Wrapping //Path to a library vtkexpat:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/expat //Whether a library is static, shared or module. vtkexpat_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkjpeg:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/jpeg //Whether a library is static, shared or module. vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkpng:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/png //Whether a library is static, shared or module. vtkpng_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtktiff:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/tiff //Whether a library is static, shared or module. vtktiff_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkzlib:INTERNAL=/cs/research/medim/common0/green/common/src/VTK/Utilities/zlib //Whether a library is static, shared or module. vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED From aks01 at doc.ic.ac.uk Fri Jun 28 12:27:25 2002 From: aks01 at doc.ic.ac.uk (Alia) Date: Fri, 28 Jun 2002 17:27:25 +0100 (BST) Subject: [vtkusers] help! problems saving as ppm In-Reply-To: <1025277916.12430.4.camel@xanth.kitwarein.com> Message-ID: vtkPNMWriter works perfectly - thanks! On 28 Jun 2002, Andy Cedilnik wrote: >Try: > > vtkWindowToImageFilter w2i > w2i SetInput renWin > vtkPGMWriter w > w SetInput [ w2i GetOutput ] > w SetFileName "whatever.ppm" > w Write > > Andy > >On Fri, 2002-06-28 at 11:08, Alia wrote: >> >> >> hello >> >> I'm trying to save the contents of a rendering window as a PPM file, >> using vtk40 and windows. >> >> However I keep getting the error >> >> ' Error: Object named: renWin, could not find requested method: >> SetFileName or the method was called with incorrect arguments' >> >> when it hits this bit of the script. >> renWin SetFileName $name >> renWin SaveImageAsPPM >> >> (The whole of the sample script I'm using can be found at: >> http://www.cs.utah.edu/~cs5630/intro/ballanim.tcl.html ) >> >> Has anybody come across this before? I would be extremely grateful for >> some help on the matter. >> >> Thanks >> >> Alia >> >> >> --------------------------------------------------------- >> To lift an autumn hair is no sign of great strength; >> To see the sun and moon is no sign of sharp sight; >> To hear the noise of thunder is no sign of a quick ear. >> -Sun Tzu on The Art Of War >> --------------------------------------------------------- >> >> ......... >> >> (its a herd of elephants seen from VERY far away) >> --------------------------------------------------------- >> >> >> _______________________________________________ >> 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 > > > --------------------------------------------------------- To lift an autumn hair is no sign of great strength; To see the sun and moon is no sign of sharp sight; To hear the noise of thunder is no sign of a quick ear. -Sun Tzu on The Art Of War --------------------------------------------------------- ......... (its a herd of elephants seen from VERY far away) --------------------------------------------------------- From andy.cedilnik at kitware.com Fri Jun 28 14:36:36 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 28 Jun 2002 14:36:36 -0400 Subject: [vtkusers] Adding A New Class In-Reply-To: References: Message-ID: <1025289396.12430.11.camel@xanth.kitwarein.com> You might want to find file CMakeLists.txt in /VTK/Wrapping/Tcl/CMakeLists.txt and add your library under LINK_LIBRARIES. Andy On Fri, 2002-06-28 at 13:41, fernando hierro wrote: > > i mean the new class isn?t found when i run my *.tcl file, then it isn?t > compiled... > thank you so much andy. From neri at hobbes.nrl.navy.mil Fri Jun 28 15:47:34 2002 From: neri at hobbes.nrl.navy.mil (Jesse Neri) Date: Fri, 28 Jun 2002 15:47:34 -0400 Subject: [vtkusers] Adding A New Class In-Reply-To: <1025289396.12430.11.camel@xanth.kitwarein.com> Message-ID: <000e01c21edc$a89b65b0$fa9efa84@nrl.navy.mil> There a couple of gotchas in the msdev version. 1. The tcl wrapper for c++ routine is generated automatically, but the init routine does not get added to the project. It is vtkLocalTCLInit.cxx, and needs to be added to the vtkLocalTCL project. 2. The vtkLocal and vtkLocalTCL dll files need to be moved to the vtk40/bin directory 3. The vtklocal directory needs to added at the location of your TCLLIBPATH. There is also a MakePackages.tcl script at the TCLLIBPATH that needs to be updated with the vtklocal (clone the last line of the script before the exit). Then run the script. After all that, the 'package require vtklocal' should work. -- Jess Neri neri at hobbes.nrl.navy.mil (202) 404-4365 Pulsed Power Physics Branch, Plasma Physics Division Naval Research Laboratory, Washington DC 20375 > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Andy Cedilnik > Sent: Friday, June 28, 2002 2:37 PM > To: fernando hierro > Cc: vtk-users > Subject: Re: [vtkusers] Adding A New Class > > > You might want to find file CMakeLists.txt in > /VTK/Wrapping/Tcl/CMakeLists.txt and add your library under > LINK_LIBRARIES. > > Andy > > On Fri, 2002-06-28 at 13:41, fernando hierro wrote: > > > > i mean the new class isn?t found when i run my *.tcl file, > then it isn?t > > compiled... > > thank you so much andy. > > > _______________________________________________ > 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 heiland at ncsa.uiuc.edu Fri Jun 28 17:25:56 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 28 Jun 2002 16:25:56 -0500 Subject: [vtkusers] smoothing an isosurf Message-ID: <1020628162556.ZM22602@pecos.ncsa.uiuc.edu> I have an isosurface that's basically half a donut, but has tiny, sharp feature edges that I'd like to smooth out. I've tried the vtkSmoothPolyDataFilter on it, but am still not satisfied. I've attached a couple of images to demonstrate. What other options would people suggest? (I also tried decimating the smoothed filter results, but still no joy). thanks, --Randy From krs at cs.uncc.edu Sat Jun 29 00:28:46 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Sat, 29 Jun 2002 00:28:46 -0400 Subject: [vtkusers] vtkXRenderWindowInteractor->SetWidget() call. Message-ID: <3D1D377E.830EE191@cs.uncc.edu> I wonder why this call has always been part of the Interactor. If the intent is to make this window part of the larger interface, then isnt it more appropriate to do this as part of the RenderWindow instead? Especially if I dont need to use an interactor as part of this canvas (for instance, I use it to draw 2d graphs, as I do in my application). Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From j.robinson at kepler.ie Sat Jun 29 06:06:48 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Sat, 29 Jun 2002 11:06:48 +0100 Subject: [vtkusers] Nobody seems to know??? Message-ID: Dear All, You haven?t been very forthcoming with suggestions ? am I the only person who has come across these problems (i.e. the crash on exit)? Perhaps I should elaborate. I am using MS C++ v6.0. I have created an mfc application, which uses a doc/view paradigm for the vtk. The inheritance is: CMeshviewDoc inherited from vtkMFCDocument, CMeshviewView inherited from vtkMFCRenderView (which is inherited from vtkMFCView). The vtk prefixed classes I found in the vtk examples. I inherited from them in order to create my required functionality. I have tracked the crash to the vtkMFCRenderView destructor: vtkMFCRenderView::~vtkMFCRenderView() { if (this->Renderer) this->Renderer->Delete(); if (this->Interactor) this->Interactor->Delete(); if (this->RenderWindow) this->RenderWindow->Delete(); } It is the line if (this->Renderer) this->Renderer->Delete(); that seems to cause the crash. When this is commented out, I don?t get a crash, unless I open and close the window a few times. I still haven?t had any conclusive answers on the subject of the static libraries?????? I am the only one on this too? Regards, Jim PS: If I am doing something obviously stupid, please don?t hesitate to tell me ? I?d prefer to think that I was being dumb rather than there being some very complex problem/solution. ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 959 bytes Desc: not available URL: From nNunn at ausport.gov.au Sat Jun 29 07:01:13 2002 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Sat, 29 Jun 2002 21:01:13 +1000 Subject: [vtkusers] vtkMFCRenderView destructor Message-ID: <7AF3524792FFD511A17A0000F81E965E4729F3@elmo.ausport.gov.au> Hi James, This is working fine in the Vtk 4.x I have from a few months ago. But I notice that our sequence differs: try swapping the order of the calls to Delete: Interactor, Renderer, RenderWindow vtkMFCRenderView::~vtkMFCRenderView() { if (m_IRen) m_IRen->Delete(); // Interactor if (m_Ren) m_Ren->Delete(); // Renderer if (m_RenWin) m_RenWin->Delete(); // RenderWindow } > You haven't been very forthcoming with suggestions - am > I the only person who has come across these problems > (i.e. the crash on exit)? This was discussed at length a while back (see the archives). With what version of the Vtk files are you working? I believe some of your target audience cannot receive the format (rich-text plus background) of your recent emails. Plain text is preferred. yours, 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 wlorens1 at nycap.rr.com Sat Jun 29 08:15:15 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 29 Jun 2002 08:15:15 -0400 Subject: [vtkusers] smoothing an isosurf In-Reply-To: <1020628162556.ZM22602@pecos.ncsa.uiuc.edu> Message-ID: <5.1.0.14.2.20020629081411.043282c0@pop.nycap.rr.com> Try WindowedSincPolyDataFilter (sp?). It is superior to SmoothPolyData. Bill At 04:25 PM 6/28/02 -0500, Randy Heiland wrote: >I have an isosurface that's basically half a donut, but has tiny, sharp feature >edges that I'd like to smooth out. I've tried the vtkSmoothPolyDataFilter on >it, but am still not satisfied. I've attached a couple of images to >demonstrate. What other options would people suggest? (I also tried >decimating the smoothed filter results, but still no joy). > >thanks, >--Randy >_______________________________________________ >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 gamati at libero.it Sat Jun 29 11:10:54 2002 From: gamati at libero.it (Giancarlo Amati) Date: Sat, 29 Jun 2002 17:10:54 +0200 Subject: [vtkusers] vtktcl 3.2.0 for windows Message-ID: <000a01c21f7f$29fdc600$2108ff25@fastwebnet.it> Hello Everybody, As I need to use vtk3.2 under windows I downloaded vtk libraries for windows and followed instructions to produce dll and vtktcl.dll to use tcl too. The problem is that in my tcl main file, the first instructions is catch [load vtktcl] but my tcl interpreter give me the error that i could not find the library. I use tcl8.3. I moved vtktcl.dll vtktcl.lib and vtkdll.dll in the windows/system directory as written in the instructions, but nothing happend. Have I to set up some environment system? waiting for some suggestions, have a good day! Thank Giancarlo -------------- next part -------------- An HTML attachment was scrubbed... URL: From krs at cs.uncc.edu Sat Jun 29 17:17:11 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Sat, 29 Jun 2002 17:17:11 -0400 Subject: [vtkusers] vtkVector??? Message-ID: <3D1E23D7.9DADF3D8@cs.uncc.edu> In 3.2 we used to have vtkVectors. The docs for 4.0 indicated vtkVector - a templated list but I dont see it in the sources. Is this not in the distribution? Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From krs at cs.uncc.edu Sat Jun 29 17:30:13 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Sat, 29 Jun 2002 17:30:13 -0400 Subject: [vtkusers] vtkVector??? References: <3D1E23D7.9DADF3D8@cs.uncc.edu> Message-ID: <3D1E26E5.4B71A2C9@cs.uncc.edu> Similarly, what about vtkNormals? As you can tell, I am trying to port applications to 4.0.. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From krs at cs.uncc.edu Sat Jun 29 17:32:29 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Sat, 29 Jun 2002 17:32:29 -0400 Subject: [vtkusers] vtkVector??? References: <3D1E23D7.9DADF3D8@cs.uncc.edu> Message-ID: <3D1E276C.E165401D@cs.uncc.edu> Never mind - I realize we have to use vtkDataArray in place of scalars, vectors, tensors, normals.. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From deleo at unica.it Sun Jun 30 13:54:48 2002 From: deleo at unica.it (Roberto De Leo) Date: Sun, 30 Jun 2002 19:54:48 +0200 Subject: [vtkusers] is it possible in VTK to sample a function with a non standard grid? Message-ID: <3D1F45E8.8040903@unica.it> Hi, I've been using VTK for 4 years for my geometrical numerical computations. What I do is basically generating an isosurface in a [0,1]x[0,1]x[0,1] cube and cut it with several planes [as many as ~10^4 ] to get some curves on which later I perform some calculation. I mostly work with a surface that is more or less a sphere centered in the center of the cube with attached six handles coming out along the x, y and z axes and cutting the 6 faces of the cube in 6 circles centered in the centers of the faces. E.g. you can get such a surface as 0-level of the function f(x,y,z)=cos(2Pi x)+cos(2Pi y)+cos(2Pi z). Here is my problem: is it possible in VTK to specify different resolutions in different areas of the cube when building an isosurface? In my case for example I do not care at all about having a big precision in the construction of the part of the surface away from the faces of the cube, that is roughly a sphere, while it is critical for me to have as much precision as possible in the meshes of the portion of the handles close to the faces. The way I produce the isosurface is the usual one, through the vtkSampleFunction and vtkContourFilter classes. Until now to increase the precision of my calculations I simply increased the "SampleDimensions" [I am using lately 150 as value for all 3 directions] in the vtkSampleFunction call, increasing the number of triangles in all single parts of the surface [even where I do not need that at all], but of course this way I make all my algorithm much slower than needed and lately I reached a point at which the code is just too slow to be really useful. But I am convinced that if it were possible to set different resolutions in different areas of the cube, in order to have very few triangles describing the "inner" portion of the surface and many triangles describing the portion closest to the faces, then my code would speed up very much and finally allow me to procede deeper in my study. Therefore I'd be very interested in knowing whether somebody else out there faced some similar problem and whether any similar feature has been or will be implemented soon in VTK. Thanks a lot, Roberto De Leo From krs at cs.uncc.edu Sun Jun 30 15:58:01 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Sun, 30 Jun 2002 15:58:01 -0400 Subject: [vtkusers] vtkDataSetMapper.. Message-ID: <3D1F62C9.C8502955@cs.uncc.edu> I was using this class to display the grid geometry in vtk 3.2 - but in 2 of my applications(so far), under 4.0, the geometry of the grid is not being displayed - in both cases I was using a 1D structured grid, so it used to display a sequence of connected line segments. Has anything changed? I have had to use the TubeFilter as an alternate to get the geometry back. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs