From PS7278514B@ntu.edu.sg Tue Oct 1 03:14:18 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 1 Oct 2002 10:14:18 +0800 Subject: [vtkusers] About the Solid CAD File Output. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A679@mail02.student.main.ntu.edu.sg> Dear VTK- Users: I want to export the Volume *.stl Format file.=20 The file should be used for Rapid Prototyping Technology. But I can only get the Surface *.stl Format file now. I have the concept about how to get the Volume *.stl Format file from = image slice. vtkImageData -> vtkPolyData -> vtkTriangleFilter -> ......... I used vtkMarchCubes class to convert vtkImageData to vtkPolyData. It = got the Surface *.stl Format only. Could I use the vtkPolyData Class to convert it, & how to convert? By the Way, My research interested is in the 3D Rapid Prototyping = Technology Using in Artifical Bone & Implant.(most in mechanical area). I used vtk Tools for generate the model and recover the model for our = research. I am very interested in Volume Rendering & CAD file Output. Who can share the experience & we can discuss together.=20 ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From vphilou@caramail.com Tue Oct 1 06:32:26 2002 From: vphilou@caramail.com (Philippe Vincent) Date: Tue, 01 Oct 2002 05:32:26 GMT+1 Subject: [vtkusers] vtkprobe - extract values Message-ID: <1033443146011395@caramail.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Caramail_0113951033443146_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi everybody, I need to extract the computed values on a probe (line for example) for each point and its location (X Y Z) to write in a file the information we can get on the vtkxyplot (XY data along a line).If anybody has an idea on how to do that with TCL it would be very nice! Thanks alot Philippe ______________________________________________________ Bo=EEte aux lettres - Caramail - http://www.caramail.com --=_NextPart_Caramail_0113951033443146_ID-- From prabhu@aero.iitm.ernet.in Tue Oct 1 06:17:15 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 1 Oct 2002 10:47:15 +0530 Subject: [vtkusers] vtkprobe - extract values In-Reply-To: <1033443146011395@caramail.com> References: <1033443146011395@caramail.com> Message-ID: <15769.12251.161584.694278@monster.linux.in> >>>>> "PV" == Philippe Vincent writes: PV> Hi everybody, I need to extract the computed values on a probe PV> (line for example) for each point and its location (X Y Z) to PV> write in a file the information we can get on the vtkxyplot PV> (XY data along a line).If anybody has an idea on how to do PV> that with TCL it would be very nice! Thanks alot Philippe $ cd VTK/Examples $ rgrep -l vtkProbe * [ output edited for brevity ] Annotation/Tcl/xyPlot.tcl GUI/Tcl/ProbeWithPointWidget.tcl GUI/Tcl/ProbingWithPlaneWidget.tcl VisualizationAlgorithms/Tcl/probeComb.tcl VolumeRendering/Tcl/volSimpleLOD.tcl cheers, prabhu From daniele.bianchini@menci.com Tue Oct 1 11:59:48 2002 From: daniele.bianchini@menci.com (Daniele Bianchini) Date: Tue, 1 Oct 2002 12:59:48 +0200 Subject: [vtkusers] vtkProcessObject Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C2694A.6C942620 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Is it possible to know how many times the ProgressMethod() will be invoked by the vtkProcessObject before the EndMethod() is called? Thank you in advance for any help. Daniele. ------=_NextPart_000_0000_01C2694A.6C942620 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is it = possible to=20 know how many times the ProgressMethod() will be invoked by the = vtkProcessObject=20 before the EndMethod() is called?
 
Thank = you in advance=20 for any help.
 
Daniele.
------=_NextPart_000_0000_01C2694A.6C942620-- From michele.zamponi@menci.com Tue Oct 1 12:52:51 2002 From: michele.zamponi@menci.com (Michele Zamponi) Date: Tue, 1 Oct 2002 13:52:51 +0200 Subject: [vtkusers] vtkProcessObject Message-ID: <000001c26941$1347f9b0$2000a8c0@devlab1xp> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C26951.D6D0C9B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all! Is it possible to know how many times the ProgressMethod will be invoked by the vtkProcessObject before the EndMethod is called? Thank you in advance for any help Michele ------=_NextPart_000_0001_01C26951.D6D0C9B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all!

Is it possible to know how many times the ProgressMethod will be invoked by the vtkProcessObject before the EndMethod is = called?

 

Thank you in advance for any = help

Michele

------=_NextPart_000_0001_01C26951.D6D0C9B0-- From michele.zamponi@menci.com Tue Oct 1 13:00:04 2002 From: michele.zamponi@menci.com (Michele Zamponi) Date: Tue, 1 Oct 2002 14:00:04 +0200 Subject: [vtkusers] (no subject) Message-ID: <000501c26942$143b16d0$2000a8c0@devlab1xp> This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C26952.D7C3E6D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All! Does anybody know the best way to implement an Undo/Redo manager under vtk? Thank you in advance for any help. Michele ------=_NextPart_000_0006_01C26952.D7C3E6D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All!

 

Does  anybody know = the best way to implement an Undo/Redo manager under vtk? =

 

Thank you in advance for any = help.

Michele

 

 

------=_NextPart_000_0006_01C26952.D7C3E6D0-- From andresba@hotmail.com Tue Oct 1 13:29:51 2002 From: andresba@hotmail.com (Andres Barrera) Date: Tue, 01 Oct 2002 07:29:51 -0500 Subject: [vtkusers] vtkPicker bug? Message-ID: Dear list, Is there a bug, or I am doing something wrong? vtkPicker should send a ray from the camera position to the graphic window, right? Well, when I start my rendering, everyrhing works OK and I can pick any actor I want. Now, when I put the camera on the back of the scene (lets say Azimuth = 180), and I have two actors aligned, it picks the one that is on the BACK instead of the one on the FRONT! Any idea? Thank you for your time Andres _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com From simon.chatelain@epfl.ch Tue Oct 1 13:34:10 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Tue, 1 Oct 2002 14:34:10 +0200 Subject: [vtkusers] Adding slice in a vtkImageData Message-ID: Hello, I work with medical images. I read it with appropriate reader, and then work with th vtkImageData. my problem is that i need to add slices in the imagedata. For example if my image data has extent (0,255,0,160,0,255) i want to add 95 slice to the second dimension, so my imagedata is a cube without changing anything to the original slice. Someone can help me ? Thanks Simon Chatelain From lists@carlh.net Tue Oct 1 13:32:39 2002 From: lists@carlh.net (Carl Hetherington) Date: Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) Subject: [vtkusers] Writing Postscript files from VTK Message-ID: Hi, I'm interested in writing vector Postscript files of VTK renderings. Consulting the mailing list archive suggests that gl2ps might be able to do this. I've tried the following example: /* Set up a render window with a wireframe representation of a ** vtkPolyData. */ /* ... */ FILE* fp = fopen("test.eps", "w"); int buffsize = 0; int state = GL2PS_OVERFLOW; while (state == GL2PS_OVERFLOW) { buffsize += 1024*1024; gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, buffsize, fp, NULL); window->Render(); state = gl2psEndPage(); } fclose(fp); Unfortunately this gives me zero-sized EPS files, with gl2ps saying "GL2PS warning: Empty feedback buffer". Can anyone show me how it is done? Thanks in advance, Carl From anast.jm@pg.com Tue Oct 1 15:15:26 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 1 Oct 2002 10:15:26 -0400 Subject: [vtkusers] Adding slice in a vtkImageData Message-ID: vtkShepardMethod can resample any dataset onto a structured points set....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Simon Chatelain" @public.kitware.com on 10/01/2002 02:34 PM ZE2 "Simon Chatelain" To: "vtkmailinlist" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Adding slice in a Sent by: vtkusers-admin@public.kitware.com vtkImageData 10/01/2002 08:34 AM Hello, I work with medical images. I read it with appropriate reader, and then work with th vtkImageData. my problem is that i need to add slices in the imagedata. For example if my image data has extent (0,255,0,160,0,255) i want to add 95 slice to the second dimension, so my imagedata is a cube without changing anything to the original slice. Someone can help me ? Thanks Simon Chatelain _______________________________________________ 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 goodwin.lawlor@ucd.ie Tue Oct 1 16:07:21 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Tue, 01 Oct 2002 16:07:21 +0100 Subject: [vtkusers] Writing Postscript files from VTK References: Message-ID: <002301c2695c$42b808a0$119701c1@highcross> Hi Carl, If you dont have any luck with gl2ps I have a work around for writing PS vector files from VTK under windows. 1. Use vtkCGMWriter to write a scene to file. This class is included in vtk4.n but it is not built... so you have to add it yourself to the cmake files and re-compile. Under windows and the borland compiler there were a couple of small bugs. Email me if they cause you any problems. 2. Download and install the universal postscript printer driver from adobe. 3. Insert the CGM file into a Word document. Make sure Word has the CGM graphics importer installed 4. Print the Word page to a PS file using the PS printer driver. 5. You can fix the PS bounding box in GhostView HTH Goodwin University College Dublin ----- Original Message ----- From: "Carl Hetherington" To: "VTK Mailing list" Sent: Tuesday, October 01, 2002 1:32 PM Subject: [vtkusers] Writing Postscript files from VTK > Hi, > > I'm interested in writing vector Postscript files of VTK renderings. > Consulting the mailing list archive suggests that gl2ps might be able to > do this. I've tried the following example: > > /* Set up a render window with a wireframe representation of a > ** vtkPolyData. > */ > > /* ... */ > > FILE* fp = fopen("test.eps", "w"); > int buffsize = 0; > int state = GL2PS_OVERFLOW; > > while (state == GL2PS_OVERFLOW) > { > buffsize += 1024*1024; > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > buffsize, fp, NULL); > window->Render(); > state = gl2psEndPage(); > } > > fclose(fp); > > Unfortunately this gives me zero-sized EPS files, with gl2ps saying > "GL2PS warning: Empty feedback buffer". > > Can anyone show me how it is done? > > Thanks in advance, > Carl > > > > _______________________________________________ > 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 melvin.hadasht@free.fr Tue Oct 1 17:21:54 2002 From: melvin.hadasht@free.fr (Melvin Hadasht) Date: Tue, 1 Oct 2002 18:21:54 +0200 Subject: [vtkusers] Writing Postscript files from VTK In-Reply-To: References: Message-ID: <20021001182154.5a27048f.melvin.hadasht@free.fr> Hi Carl, on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) Carl Hetherington wrote: > Hi, > > I'm interested in writing vector Postscript files of VTK renderings. > Consulting the mailing list archive suggests that gl2ps might be able to > do this. I've tried the following example: > > /* Set up a render window with a wireframe representation of a > ** vtkPolyData. > */ > > /* ... */ > > FILE* fp = fopen("test.eps", "w"); > int buffsize = 0; > int state = GL2PS_OVERFLOW; > > while (state == GL2PS_OVERFLOW) > { > buffsize += 1024*1024; > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > buffsize, fp, NULL); You should test for the return value of fopen. Maybe the problem was there. I don't know the following may help or not, but in an old code I had the filename also as the last argument of gl2psBeginPage{...char *filename; File *fp = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember why I did that. Klahowya (Chinook: Goodbye) -- Melvin Hadasht From bryan.cole@teraview.co.uk Tue Oct 1 17:34:45 2002 From: bryan.cole@teraview.co.uk (bryan cole) Date: 01 Oct 2002 17:34:45 +0100 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033443146011395@caramail.com> References: <1033443146011395@caramail.com> Message-ID: <1033490098.7258.31.camel@bryan.teraviewhq.local> I've got a VTK/Python question. With python, when/how are VTK objects destroyed? Normal python objects are destroyed when their reference counts are decreased to zero, but this cannot be true of VTK objects: if I create a set of VTK objects locally in a function, these objects persist outside of this function, even though their references have been lost. How do I force an object to be destroyed? Bryan -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382 From prabhu@aero.iitm.ernet.in Tue Oct 1 19:43:16 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 2 Oct 2002 00:13:16 +0530 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033490098.7258.31.camel@bryan.teraviewhq.local> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> Message-ID: <15769.60612.780206.287900@monster.linux.in> >>>>> "BC" == bryan cole writes: BC> I've got a VTK/Python question. With python, when/how are VTK BC> objects destroyed? BC> Normal python objects are destroyed when their reference BC> counts are decreased to zero, but this cannot be true of VTK BC> objects: if I create a set of VTK objects locally in a BC> function, these objects persist outside of this function, even BC> though their references have been lost. I'm not the expert on this since David Gobbi wrote the implementation but here is my explanation of how things work. I'll let David correct me if I'm wrong. The VTK-Python wrappers are a thin layer around the VTK library. As you must be aware, VTK has its own reference counting mechanism. When a VTK object is used by another the object increases the reference count of the object it uses. When it no longer needs the object the objects refcount is decremented and when it drops to zero the object is destroyed. Its the same as in Python. So here is an example demonstrating how it all works: >>> import sys >>> import vtk >>> cs = vtk.vtkConeSource() >>> out = cs.GetOutput() >>> print sys.getrefcount (out) 2 >>> print out.GetReferenceCount () 3 >>> m = vtk.vtkPolyDataMapper() >>> m.SetInput(out) >>> print out.GetReferenceCount() 4 >>> print sys.getrefcount (out) 2 >>> o = out >>> sys.getrefcount (out) 3 >>> print out.GetReferenceCount () 4 # Now how are objects deleted? >>> print cs.GetReferenceCount() 3 >>> print sys.getrefcount(cs) 2 # Now turn on debug to see if the object is indeed deleted. >>> cs.DebugOn() >>> del cs Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 2 Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 1 >>> # this object is not deleted because out still holds a reference # internally. >>> del out # still nothing happens because GetOutput() is still held by the # mapper. >>> del m Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 225 vtkConeSource (0x819d1d0): UnRegistered by vtkPolyData (0x8136640), ReferenceCount = 0 Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 126 vtkObject (0x819d1d0): Destructing! I think this explains everything. :) prabhu From venkat@sci.utah.edu Tue Oct 1 20:21:56 2002 From: venkat@sci.utah.edu (Venkatanand Venkatachalapathy) Date: Tue, 1 Oct 2002 13:21:56 -0600 (MDT) Subject: [vtkusers] Question on building examples... Message-ID: Hi, I am installing vtk and wanted to setup the examples. I used ccmake and turned the examples option to "ON" and then i did cmake and gmake in my build directory. But at the end of this, I am not getting any executables under the examples in my build directory. I got the following warnings during "gmaking": -------------------------------------------------------- [venkat@bugs ~...vtk/vtkbuild]% gmake Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' cmake.depends is up-to-date Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' ---------------------------------------------------------------------------- Can someone tell me what i should do ? I am also including my ccmake options below: BUILD_EXAMPLES ON BUILD_SHARED_LIBS OFF BUILD_TESTING ON CMAKE_CXX_FLAGS CMAKE_C_FLAGS CMAKE_INSTALL_PREFIX /usr/local DART_ROOT NOTFOUND VTK_DATA_ROOT NOTFOUND VTK_USE_ANSI_STDLIB OFF VTK_USE_HYBRID OFF VTK_USE_PARALLEL OFF VTK_USE_PATENTED OFF VTK_USE_RENDERING ON VTK_USE_VOLUMEPRO OFF VTK_WRAP_JAVA OFF VTK_WRAP_PYTHON OFF VTK_WRAP_TCL OFF --------------------------------------------------------------------- Thanks Venkat From anast.jm@pg.com Tue Oct 1 20:21:02 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 1 Oct 2002 15:21:02 -0400 Subject: [vtkusers] Strip Lines and Point cells from PolyData Message-ID: I have a polydata set that contains some unwanted point and line cells. Is there a way to strip these out leaving just polygon cells?? ....john From David.Pont@ForestResearch.co.nz Tue Oct 1 21:29:06 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Wed, 2 Oct 2002 08:29:06 +1200 Subject: [vtkusers] Strip Lines and Point cells from PolyData Message-ID: vtkTriangleFilter with PassVertsOff and PassLinesOff (which might be the default behaviour anyway). Of course your polygons will be trangulated which may not be desireable? Dave Pont |--------+---------------------------------> | | anast.jm@pg.com | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 02/10/2002 07:21 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] Strip Lines and Point cells from PolyData | >------------------------------------------------------------------------------------------------------------| I have a polydata set that contains some unwanted point and line cells. Is there a way to strip these out leaving just polygon cells?? ....john _______________________________________________ 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 shibaji@cvrti.utah.edu Tue Oct 1 22:44:15 2002 From: shibaji@cvrti.utah.edu (Shibaji Shome) Date: Tue, 1 Oct 2002 15:44:15 -0600 Subject: [vtkusers] VTK40+MacOSX1015+TCL In-Reply-To: <20021001184401.26362.27261.Mailman@public.kitware.com> Message-ID: Hello, I am trying to get VTK 4.0 installed on a MacG4 running OSX 10.1.5, but I am unable to do so. There was a tutorial on macdevcenter.com but that wasnt of much help and neither was the vtk mailing list archives. I reached the point where I could install cmake but things have gown downhill since. If anyone could point me in the right direction to go about this, I would really appreciate it. Thanks! Cheers, Shibaji From cnavarro@ncsa.uiuc.edu Tue Oct 1 22:52:16 2002 From: cnavarro@ncsa.uiuc.edu (Christopher Navarro (ALG-NCSA)) Date: Tue, 1 Oct 2002 16:52:16 -0500 (CDT) Subject: [vtkusers] vtkScalarBarActor Message-ID: Is there any way to control where the text of a ScalarBarActor is rendered? Right now by default it puts the text to the right of the scalar bar. However, if I want the scalar bar on the right side of the renderwindow, I'd like the text rendered to the left of the scalar bar. Is there a simple way to do this? Thanks -chris p.s. For reference I am using vtk 4.0 From david.netherway@adelaide.edu.au Wed Oct 2 06:14:22 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Wed, 2 Oct 2002 14:44:22 +0930 Subject: [vtkusers] Adding slice in a vtkImageData References: Message-ID: <001901c269d2$91811640$0d8156c0@acfu.wch.sa.gov.au> Another way is to use vtkImageReslice. Just expand the output extents and set the background level. David ----- Original Message ----- From: To: Sent: Tuesday, 01 October, 2002 11:45 PM Subject: Re: [vtkusers] Adding slice in a vtkImageData > > vtkShepardMethod can resample any dataset onto a structured points set....john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: "Simon Chatelain" @public.kitware.com on > 10/01/2002 02:34 PM ZE2 > > "Simon Chatelain" To: "vtkmailinlist" > @public.kitware.com > Cc: (bcc: John Anast-JM/PGI) > Subject: [vtkusers] Adding slice in a > Sent by: vtkusers-admin@public.kitware.com vtkImageData > 10/01/2002 08:34 AM > > > > > > > Hello, > > I work with medical images. I read it with appropriate reader, and then work > with th vtkImageData. > my problem is that i need to add slices in the imagedata. For example if my > image data has extent (0,255,0,160,0,255) > i want to add 95 slice to the second dimension, so my imagedata is a cube > without changing anything to the original slice. > > Someone can help me ? > > Thanks > > Simon Chatelain > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This 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 fxd@ipa.fhg.de Wed Oct 2 07:28:04 2002 From: fxd@ipa.fhg.de (Frank Decker) Date: Wed, 2 Oct 2002 08:28:04 +0200 Subject: [vtkusers] change scalar Value in a large DataSet Message-ID: Hi, My Problem is, that I want to change the scalar values of a big dataset, with the Method SetTuple1(const vtkIdType I, float value). After Ive set several values (not all values, only a few) , I call the function Modified(), so that I can see the results. The Problem is, that the System show me the results after 1-2 seconds. It is quite slowly, although Ive got a very fast PC System. Here is my Code: CVTKRenderer::CVTKRenderer() { m_pRenderer = vtkRenderer::New(); m_pRenderWindow = vtkWin32OpenGLRenderWindow::New(); m_pRenderWindow->AddRenderer(m_pRenderer); m_pInteractor = vtkWin32RenderWindowInteractor::New(); m_pWerkstueck = vtkPolyData::New(); } void CVTKRenderer::readData() { .... ...... vtkPoints *pPolygonPoints = vtkPoints::New(); vtkCellArray *pCellArray = vtkCellArray::New(); vtkFloatArray *pSkalarValue = vtkFloatArray::New(); for(int i=0;i27000 //read all Points and put it in the vtkStructure pPunkt = &CWrk.pWrkStk[i]; pPolygonPoints->InsertPoint(i,pPunkt->pkt); pSkalarValue->InsertTuple1(i,(float)pPunkt->dh); } for(i=0;i55000 pPunkt = &CWrk.pWrkStk[i]; pts[0]=CWrk.pZord[i].n1; pts[1]=CWrk.pZord[i].n2; pts[2]=CWrk.pZord[i].n3; pts[3]=CWrk.pZord[i].n4; // --------Speichern des Polygons in eine vtk interne Struktur pCellArray->InsertNextCell(CWrk.pZord[0].neck,pts); } m_pWerkstueck->SetPoints(pPolygonPoints); m_pWerkstueck->SetPolys(pCellArray); m_pWerkstueck->GetPointData()->SetScalars(pSkalarValue); m_pWerkstueckMapper->SetInput(m_pWerkstueck); m_pWerkstueckActor->SetMapper(m_pWerkstueckMapper); m_pRenderer->AddActor(m_pWerkstueckActor); } void CVTKRenderer::setSkalarValue(int pointID) { vtkDataArray *pDataArray = m_pWerkstueck->GetPointData()->GetScalars(); pDataArray->SetTuple1(pointID, CWrk.pWrkStk[pointID]); m_pWerkstueck->Modified(); // !!!!!!!!!this Methode returns after 1300 ms } Is there an other way to solve this Problem.^ Many Thanks in advance for your help Frank Decker From bryan.cole@teraview.co.uk Wed Oct 2 10:02:32 2002 From: bryan.cole@teraview.co.uk (bryan cole) Date: 02 Oct 2002 10:02:32 +0100 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <15769.60612.780206.287900@monster.linux.in> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> <15769.60612.780206.287900@monster.linux.in> Message-ID: <1033549383.8543.10.camel@bryan.teraviewhq.local> Thanks, this clarifies things somewhat. How about the following: Take the case where I want to replace a section of the visualisation pipline. Source->Filter1->Filter2->Mapper If I disconnect the pair of filters (for example) by resetting the inputs and outputs of the mapper and source respectively, to replace them with some other filters, how do I destroy the redundant Filter1 and Filter2? According to my understanding, using del Filter1 del Filter2 will simply remove the label for each filter (hence decreasing their ref-counts by one). However Since the filters are still connected to each other, they still have references >=1 so are not destroyed. Thus I must break the connection between the filters before they are destroyed. How do I do this? Can I set their inputs to NULL? Bryan > > So here is an example demonstrating how it all works: > > >>> import sys > >>> import vtk > >>> cs = vtk.vtkConeSource() > >>> out = cs.GetOutput() > >>> print sys.getrefcount (out) > 2 > >>> print out.GetReferenceCount () > 3 > >>> m = vtk.vtkPolyDataMapper() > >>> m.SetInput(out) > >>> print out.GetReferenceCount() > 4 > >>> print sys.getrefcount (out) > 2 > >>> o = out > >>> sys.getrefcount (out) > 3 > >>> print out.GetReferenceCount () > 4 > # Now how are objects deleted? > >>> print cs.GetReferenceCount() > 3 > >>> print sys.getrefcount(cs) > 2 > # Now turn on debug to see if the object is indeed deleted. > >>> cs.DebugOn() > >>> del cs > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 > vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 2 > > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 > vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 1 > >>> > # this object is not deleted because out still holds a reference > # internally. > >>> del out > # still nothing happens because GetOutput() is still held by the > # mapper. > >>> del m > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 225 > vtkConeSource (0x819d1d0): UnRegistered by vtkPolyData (0x8136640), ReferenceCount = 0 > > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 126 > vtkObject (0x819d1d0): Destructing! > > I think this explains everything. :) > > prabhu -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382 From PS7278514B@ntu.edu.sg Wed Oct 2 09:54:10 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Wed, 2 Oct 2002 16:54:10 +0800 Subject: [vtkusers] About the Solid CAD File Output. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A67D@mail02.student.main.ntu.edu.sg> Dear VTK- Users: I want to export the Solid *.stl Format file for the Rapid Prototyping = Technology. But I can only get the IsoSurface *.stl Format outout file using = vtkMarchingCubes Class. The source code is: ....... vtkMarchingCubes *iso=3DvtkMarchingCubes::New(); iso->SetInput(v16->GetOutput()); iso->SetValue(0,1150); iso->ComputeGradientsOn(); iso->ComputeScalarsOff(); .... How can I get the Solid *.STL Format output file? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From david.netherway@adelaide.edu.au Wed Oct 2 10:24:20 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Wed, 2 Oct 2002 18:54:20 +0930 Subject: [vtkusers] About the Solid CAD File Output. References: <0C42D409AF10B1428A0B026FB160A5BE33A67D@mail02.student.main.ntu.edu.sg> Message-ID: <006801c269f5$7d107610$0d8156c0@acfu.wch.sa.gov.au> Hello Yan, I am not sure what you are refering to here. The stl format typically encodes a triangular surface mesh that can be used to make solid models using rapid prototyping technology. If you mean a solid mesh for finite element analysis then that is a different problem. David ----- Original Message ----- From: "#YAN RI AN#" To: "Vtkusers (E-mail)" Sent: Wednesday, 02 October, 2002 6:24 PM Subject: [vtkusers] About the Solid CAD File Output. > Dear VTK- Users: > I want to export the Solid *.stl Format file for the Rapid Prototyping Technology. > But I can only get the IsoSurface *.stl Format outout file using vtkMarchingCubes Class. > > The source code is: > ....... > vtkMarchingCubes *iso=vtkMarchingCubes::New(); > iso->SetInput(v16->GetOutput()); > iso->SetValue(0,1150); > iso->ComputeGradientsOn(); > iso->ComputeScalarsOff(); > .... > > How can I get the Solid *.STL Format output file? > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 karga314@student.liu.se Wed Oct 2 12:47:31 2002 From: karga314@student.liu.se (=?windows-1252?Q?Karin_Gardstr=F6m?=) Date: Wed, 02 Oct 2002 13:47:31 +0200 Subject: [vtkusers] Vtk pipeline, interaction Message-ID: <720dd76d01.76d01720dd@student.liu.se> Hi, I am trying to build my own interaction technique in my vtk-program. The reason is that I want to use a 6DOF tracker input device instead of the mouse. However I'm having a problem with the vtk pipeline. Now I'm using the AddObserver() function to execute a vtkCommand that updates the input position but then the process never exits the command to continue the pipeline. How should I do to tell the pipeline that the information is continuously updated? As it is now the only frame I can manipulate the position in is the first frame . Anybody knows how to do this? Thanks, Karin From wind@climate.gsfc.nasa.gov Wed Oct 2 14:28:12 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Wed, 2 Oct 2002 06:28:12 -0700 Subject: [vtkusers] VTK40+MacOSX1015+TCL In-Reply-To: Message-ID: Man, I had the same problem about a week ago. Download the nightly release of VTK, that builds just fine and does the right thing. -- Gala On Tuesday, October 1, 2002, at 02:44 PM, Shibaji Shome wrote: > Hello, > I am trying to get VTK 4.0 installed on a MacG4 running OSX > 10.1.5, but I am unable to do so. There was a tutorial on > macdevcenter.com but that wasnt of much help and neither was the vtk > mailing list archives. I reached the point where I could install cmake > but things have gown downhill since. If anyone could point me in the > right direction to go about this, I would really appreciate it. > Thanks! > Cheers, > Shibaji > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From maurice@akst.tn.tudelft.nl Wed Oct 2 15:59:45 2002 From: maurice@akst.tn.tudelft.nl (Maurice van de Rijzen) Date: Wed, 02 Oct 2002 16:59:45 +0200 Subject: [vtkusers] vtkDataSetMapper and lookuptable ? Message-ID: <3D9B09E1.80108@akst.tn.tudelft.nl> Dear all, I 've a problem. I'm using tetraeders to generate a velocity model of the earth. Using vtkUnstructuredGridReader reader reader SetFileName "model.vtk" reader SetLookupTableName "my_table" reader SetScalarsName "my_scalar" reader SetVectorsName "my_vector" vtkShrinkFilter shrink shrink SetInput [reader GetOutput] shrink SetShrinkFactor 0.9 vtkDataSetMapper map map SetInput [shrink GetOutput] I know for this example that the scalars are in between 0.2 and 0.3. I can visualize the dataset on screen and I can disrimate the difderence between 0.2 and 0.3. However, when I add the following command: map SetScalarRange 0.2 0.3 I can no longer discrimate the different points and all the point have the same color. In both cases I've not created an instance of vtkLookupTable, I assumed the mapper would take care of it. I'm obviously forgetting something but I don't know what. Maurice From e9625803@student.tuwien.ac.at Wed Oct 2 16:55:56 2002 From: e9625803@student.tuwien.ac.at (christoph) Date: Wed, 2 Oct 2002 17:55:56 +0200 Subject: [vtkusers] multiple views (mfc), looking for an example... Message-ID: <001701c26a2c$31a81700$b92d8280@atp.tuwien.ac.at> Dear vtk-users! For my "CAD-like" application I need serveral (4) views (front, top, left, perspective) of the same set of actors. I am new to VTK, so I first modified the "...GUI\Win32\SampleMFC" and added a CSplitterWnd to the childframe. The behavior of this was little strange: in some panes (of the splitterwnd) the actors were not rendered. I read the mailinglist and noticed that each renderwindow needs his own actors and mappers. So I rewrote the mfcsample and added an actor and a mapper to each view sharing the same "vtkPolyData" as input. Now erverything works fine until I maximize the CChildFrame: If I use the Inteactor of the bottom-left pane, the renderd scene is displayed in the top-right pane. (ImmediateModeRenderingOn() had no effect on this) (I am using vtk 4.0 and WIN98) Can anybody tell me what is going wrong, or is there an example of how to use splitterwindows or multiple views with VTK? Thank you in advance, Christoph From lisa.avila@kitware.com Wed Oct 2 16:47:51 2002 From: lisa.avila@kitware.com (Lisa S. Avila) Date: Wed, 02 Oct 2002 11:47:51 -0400 Subject: [vtkusers] Is this a bug in vtkVolumeTextureMapper2D.cxx? In-Reply-To: <3D975BA8.25850.22FC43B@localhost> Message-ID: <5.0.2.1.0.20021002114703.00a12be0@pop.biz.rr.com> Hello Jianlong, No - this is not a bug. The parameter should be texture, not tptr. The texture pointer refers to the beginning of the texture block while tptr is used while filling it in. Lisa At 07:59 PM 9/29/02 +0200, Jianlong Zhou wrote: >Hi, vtk users, > >I am using vtkVolumeTextureMapper2D.cxx in my application. I found that >this may be >a bug in the file vtkVolumeTextureMapper2D.cxx: > >in line 471, > me->RenderQuads( tile, v, t, texture, textureSize, 0); > >the "texture" should be "tptr". > >Do you think wheather this is a bug? > >Thank you very much. > >Best regards, > >Jianlong > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From krs@cs.uncc.edu Wed Oct 2 16:50:08 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Wed, 02 Oct 2002 11:50:08 -0400 Subject: [vtkusers] vtk+fltk.. Message-ID: <3D9B15B0.5F653911@cs.uncc.edu> FLTK + vtk users: The render window and related classes with version 2.0 of fltk? If not, which version should I use? Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From prabhu@aero.iitm.ernet.in Wed Oct 2 16:07:00 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 2 Oct 2002 20:37:00 +0530 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033549383.8543.10.camel@bryan.teraviewhq.local> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> <15769.60612.780206.287900@monster.linux.in> <1033549383.8543.10.camel@bryan.teraviewhq.local> Message-ID: <15771.2964.802334.240279@monster.linux.in> >>>>> "BC" == bryan cole writes: [snip] Source-> Filter1->Filter2->Mapper BC> If I disconnect the pair of filters (for example) by resetting BC> the inputs and outputs of the mapper and source respectively, BC> to replace them with some other filters, how do I destroy the BC> redundant Filter1 and Filter2? BC> According to my understanding, using del Filter1 del Filter2 BC> will simply remove the label for each filter (hence decreasing BC> their ref-counts by one). However Since the filters are still BC> connected to each other, they still have references >=1 so are BC> not destroyed. Thus I must break the connection between the BC> filters before they are destroyed. How do I do this? Can I BC> set their inputs to NULL? You can set the inputs to None which will be translated to NULL internally. cheers, prabhu From imho@skynet.be Wed Oct 2 17:44:08 2002 From: imho@skynet.be (imho) Date: Wed, 02 Oct 2002 18:44:08 +0200 Subject: [vtkusers] [JAVA] VTK make menubar invisible Message-ID: <3D9B2258.1000208@skynet.be> Hi, when I have a VTK window, if I scroll down a menubar, I can't see it, because the VTK is on up! WHat can I do? thanks From jeff@cdnorthamerica.com Wed Oct 2 18:04:55 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Wed, 02 Oct 2002 13:04:55 -0400 Subject: [vtkusers] [JAVA] VTK make menubar invisible References: <3D9B2258.1000208@skynet.be> Message-ID: <3D9B2737.2050603@cdnorthamerica.com> JPopupMenu.setDefaultLightWeightPopupEnabled( false ); imho wrote: > Hi, > when I have a VTK window, if I scroll down a menubar, I can't see it, > because the VTK is on up! > WHat can I do? > > 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 chandra@strandgenomics.com Wed Oct 2 18:06:59 2002 From: chandra@strandgenomics.com (Chandra Shekhar) Date: Wed, 2 Oct 2002 22:36:59 +0530 Subject: [vtkusers] wxPython and VTk - sample app wanted. References: <15766.54209.811738.710531@monster.linux.in> Message-ID: <001d01c26a36$1efa8cf0$764f3eca@strand18> Hi , I am trying to integrate wxPython and VTK and for some reason ( may be i havent tried hard enough ) the samples dont seem to work . The individual samples provided do work ( albeit only after resizing their window ). Could some one provide a small example in wxPython containing some wxPython widgets on the left and vtk rendering window on the right ( may be some thing like split pane with widgets on left and vtk render window on right . if some one could provided this small app , that would give me some thing to tinker around and build on . Advance thanks . rgds chandra ----- Original Message ----- From: "Prabhu Ramachandran" To: "VTK users list" Sent: Sunday, September 29, 2002 3:49 PM Subject: [vtkusers] FAQ entry - Python - ValueError: method requires a VTK object. > hi, > > I just added a FAQ entry for the Python error that folks get where you > receive a traceback saying: > > ValueError: method requires a VTK object > > You can review it here: > > http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq02.004.htp > > Thanks, > 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 anast.jm@pg.com Wed Oct 2 18:09:52 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 2 Oct 2002 13:09:52 -0400 Subject: [vtkusers] About the Solid CAD File Output. Message-ID: Yan, STL only supports surfaces using triangles (the surface defines the enclosed volume, which is exactly what your MarchingCubes is doing). If you need to create a tetrahedral mesh, try looking at vtkDelauney3D and its examples for some ideas. I've used surface triangles in STL format to generate solid parts with RP and it works fine. If you have a surface that is not closed, try extruding the surface to create an enclosed volume (see vtkLinearExtrusionFilter with capping on) before saving to STL...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "#YAN RI AN#" @public.kitware.com on 10/02/2002 04:54 PM ZE8 "#YAN RI AN#" To: "Vtkusers (E-mail)" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] About the Solid CAD File Sent by: Output. vtkusers-admin@public.kitware.com 10/02/2002 04:54 AM Dear VTK- Users: I want to export the Solid *.stl Format file for the Rapid Prototyping Technology. But I can only get the IsoSurface *.stl Format outout file using vtkMarchingCubes Class. The source code is: ....... vtkMarchingCubes *iso=vtkMarchingCubes::New(); iso->SetInput(v16->GetOutput()); iso->SetValue(0,1150); iso->ComputeGradientsOn(); iso->ComputeScalarsOff(); .... How can I get the Solid *.STL Format output file? *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** _______________________________________________ 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 canali@ecse.rpi.edu Thu Oct 3 18:20:21 2002 From: canali@ecse.rpi.edu (Ali Can) Date: Thu, 3 Oct 2002 13:20:21 -0400 Subject: [vtkusers] Texture mapping on a sphere. Bugs? Message-ID: <002d01c26b01$278e6d20$35777180@censsis> This is a multi-part message in MIME format. ------=_NextPart_000_002A_01C26ADF.A0539A40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable A beginner needs help: I want to map a texture on a sphere but encountered the following = problems: Please see http://www.cs.rpi.edu/~cana/Problems.htm 1) The ascept ratio is lost, although I am using the same scale factor = for each dimension xform[1]->SetScale(1.3, 1.3, 1.3);=20 2) There is a leak in the texture.... Please see the above web site. 3) I couldn't find any documentation about what the units are for the = command=20 xform->SetPosition(float, float, float); What are the units of these floats; rad, degree, pixel? More importantly, if you can direct me to web adresses that I can find = such information that would be great. I used the following classes.=20 sphere =3D vtkSphereSource::New(); tmapper =3D vtkTextureMapToSphere::New(); vtkTransformTextureCoords *xform; vtkDataSetMapper *sphereMapper; texture->SetInput(picReader->GetOutput()); texture->InterpolateOff(); texture->RepeatOff(); sphereActor->SetMapper(sphereMapper); sphereActor->SetTexture(texture); Thanks, Ali Can, Woods Hole Oceanographic Institution, Deep Submergence laboratory, Blake 206, MS #7, Woods Hole, MA, 02543. Tel: (508) 289-3740 Fax: (508) 457-2191 Email: acan@whoi.edu Web: http://www.cs.rpi.edu/~cana/ ------=_NextPart_000_002A_01C26ADF.A0539A40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
A beginner needs help:
 
I want to map a texture on a = sphere but=20 encountered the following problems:
Please see http://www.cs.rpi.edu/~= cana/Problems.htm
1) The ascept ratio is lost, although I = am using=20 the same scale factor for each dimension
xform[1]->SetScale(1.3, 1.3,=20 1.3); 
2) There is a leak in the texture.... = Please see=20 the above web site.
 
3) I couldn't find any documentation = about what the=20 units are for the command
xform->SetPosition(float, float,=20 float);
What are the units of these floats; = rad, degree,=20 pixel?
More importantly, if you can direct me = to web=20 adresses that I can find such information that would be = great.
 
I used the following = classes. 
 
  sphere =3D=20 vtkSphereSource::New();
  tmapper =3D=20 vtkTextureMapToSphere::New();
 =20 vtkTransformTextureCoords *xform;
  vtkDataSetMapper=20 *sphereMapper;
 =20 texture->SetInput(picReader->GetOutput());
 =20 texture->InterpolateOff();
  = texture->RepeatOff();
  = sphereActor->SetMapper(sphereMapper);
 =20 sphereActor->SetTexture(texture);
 
Thanks,
Ali Can,

Woods=20 Hole Oceanographic Institution,

Deep=20 Submergence laboratory,

Blake=20 206, MS #7,
Woods Hole, MA, 02543.
Tel: (508) 289-3740   Fax: (508) = 457-2191
Email:=20 acan@whoi.edu   Web:=20 http://www.cs.rpi.edu/~cana/

------=_NextPart_000_002A_01C26ADF.A0539A40-- From wind@climate.gsfc.nasa.gov Wed Oct 2 18:21:59 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Wed, 2 Oct 2002 10:21:59 -0700 Subject: [vtkusers] vtk data file format question Message-ID: <75386356-D62B-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov> Hi everybody, I have a set of data in an ASCII text file. It's an airplane's flight track, so I have lat/long and altitude info and also some onboard instrument data. The coords and altitude map nicely into the xyz point coordinates. I would like the instrument data to be the scalars for the polydata line that gets created. But I have two sets of data and the vtk data file format (.vtk) only seems to allow one set of plain scalars, can't have scalars with more than one component. I guess I could add the second set by hand, but I would like to know if there is anything I can do to just put all the data into one vtk datafile, so I can just use vtkPolyDataReader to read it all and assemble it correctly. Thanks for any tips. -- Gala Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From krw@viz-solutions.com Wed Oct 2 18:42:45 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Wed, 02 Oct 2002 10:42:45 -0700 Subject: [vtkusers] vtk data file format question In-Reply-To: <75386356-D62B-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov > Message-ID: <5.1.0.14.0.20021002103737.00aa57c8@mail.viz-solutions.com> At 10:21 AM 10/2/2002 -0700, you wrote: >Hi everybody, > >I have a set of data in an ASCII text file. It's an airplane's flight >track, so I have lat/long and altitude info and also some onboard >instrument data. The coords and altitude map nicely into the xyz point >coordinates. I would like the instrument data to be the scalars for the >polydata line that gets created. But I have two sets of data and the vtk >data file format (.vtk) only seems to allow one set of plain scalars, >can't have scalars with more than one component. I guess I could add the >second set by hand, but I would like to know if there is anything I can do >to just put all the data into one vtk datafile, so I can just use >vtkPolyDataReader to read it all and assemble it correctly. You can enter as many scalar/vector fields as you want using the FIELD tag in the polydata file: FIELD .... for example, a single scalar field of 300 floating point numbers might look like: FIELD extraScalar 1 InstrReading 1 300 float 1.2 1.4 1.2 1.7 ..... From galen@sp1.compbio.washington.edu Wed Oct 2 18:52:37 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Wed, 2 Oct 2002 10:52:37 -0700 (PDT) Subject: [vtkusers] pipeline documentation/intro Message-ID: Anyone know the best way to tell which classes belong to which parts of the pipeline? I'm new to this, but it seems like the general info online is: "hey, there's this pipeline thing, you have to learn about it!!", then a black hole of information. Same goes for the graphical model, which is evidently the other thing to understand. -Galen From goodwin.lawlor@ucd.ie Wed Oct 2 12:36:05 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Wed, 02 Oct 2002 12:36:05 +0100 Subject: [vtkusers] (no subject) References: <000501c26942$143b16d0$2000a8c0@devlab1xp> Message-ID: <001101c26a07$e6659ed0$0e9701c1@highcross> This is a multi-part message in MIME format. --Boundary_(ID_geFEMFff7aEwa072qJwNyQ) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE Have a look at decimate.tcl in vtk3.n ----- Original Message -----=20 From: Michele Zamponi=20 To: vtkusers@public.kitware.com=20 Sent: Tuesday, October 01, 2002 1:00 PM Subject: [vtkusers] (no subject) Hi All! =20 Does anybody know the best way to implement an Undo/Redo manager u= nder vtk?=20 =20 Thank you in advance for any help. Michele =20 =20 --Boundary_(ID_geFEMFff7aEwa072qJwNyQ) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE
Have a look at decimate.tcl in vtk3.= n
----- Original Message -----
= From:=20 Michele Zamponi
Sent: Tuesday, October 01, 2= 002 1:00=20 PM
Subject: [vtkusers] (no subj= ect)

Hi=20 All!

 

Does  anybody know the=20 best way to implement an Undo/Redo manager under vtk?

 

Thank you in advance = for any=20 help.

Michele

 

 <= /P>

--Boundary_(ID_geFEMFff7aEwa072qJwNyQ)-- From schwabs@mindspring.com Wed Oct 2 20:00:31 2002 From: schwabs@mindspring.com (Hal Schwab) Date: Wed, 2 Oct 2002 15:00:31 -0400 Subject: [vtkusers] vtkTubeFilter question Message-ID: <000701c26a45$fb948ee0$f0320bb4@porky> Hi All, I have a vtkPolyData that contains a polyline. Each line segment (cell) has scalar data attached. This is the input to a vtkTubeFilter. How can I have the cell scalar data of the input copied to the output cells. I tried CopyScalarsOn(), but it had no effect. Thank you. Hal From prabhu@aero.iitm.ernet.in Wed Oct 2 19:24:50 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 2 Oct 2002 23:54:50 +0530 Subject: [vtkusers] pipeline documentation/intro In-Reply-To: References: Message-ID: <15771.14834.15342.986793@monster.linux.in> >>>>> "GW" == Galen Wilkerson writes: GW> Anyone know the best way to tell which classes belong to which GW> parts of the pipeline? I'm new to this, but it seems like the GW> general info online is: "hey, there's this pipeline thing, you GW> have to learn about it!!", then a black hole of information. GW> Same goes for the graphical model, which is evidently the GW> other thing to understand. This might help: http://www.vtk.org/doc/nightly/html/ You also need to buy the VTK book to understand the whole thing. Look at the doc section in Sebastien's links page. There are a few articles there that you might be able to read. good luck. prabhu From joao.pompei@cenpra.gov.br Wed Oct 2 20:26:55 2002 From: joao.pompei@cenpra.gov.br (=?iso-8859-1?Q?Jo=E3o?= Paulo Simonaio Pompei) Date: Wed, 02 Oct 2002 16:26:55 -0300 Subject: [vtkusers] Measuring References: <20021002104025.10015.27282.Mailman@public.kitware.com> Message-ID: <3D9B487F.3E70D4BF@cenpra.gov.br> Hello, There is a class or function in VTK to measure the distance between two pixels in a 2d image, or to measure two voxels in a volume? I hope somebody knows it ! :) Thanks, JP From jneumann@cfar.umd.edu Wed Oct 2 21:26:32 2002 From: jneumann@cfar.umd.edu (Jan Neumann) Date: Wed, 2 Oct 2002 16:26:32 -0400 (EDT) Subject: [vtkusers] OpenGl Linking Problems with Cygwin on Win2000 In-Reply-To: <20021002172301.22521.51306.Mailman@public.kitware.com> Message-ID: Hi, I have been using vtk for a while on solaris, but now I need to move to a win2k machine. I tried to compile the nightly release from today using cygwin and gcc-2.95-3, but during the linking stage of the libvtkRendering library I always have the problem that the references to all the open gl functions are undefined : (last line of error messages for static libraries): ... /cygdrive/g/Tools/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)( 3b45):vtkWin32OpenGLTextMapper.cxx: undefined reference to `glPopMatrix' collect2: ld returned 1 exit status make[3]: *** [/cygdrive/g/Tools/VTK/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 A similar problem also occurs if I try compile shared libraries, only then the linker already complains when it tries to build the library libvtkRendering.dll (also with undefined references to open gl calls). I have the cygwin open gl files installed (/usr/lib/include/GL/gl.h , /usr/lib/w32api/opengl32.a) and the opengl32.dll from windows is in the cygwin path. Does anybody have any hints how I can get this to work? Are there any special flags for cygwin/opengl that I need to set in the CMake config files? Thanks for any help, Jan ________________________________________________ \\\/ Jan Neumann @ @ > http://www.cfar.umd.edu/~jneumann \/ http://www.videogeometry.com ## ________________________________________________ From kmorel@sandia.gov Wed Oct 2 22:25:34 2002 From: kmorel@sandia.gov (Moreland, Kenneth) Date: Wed, 2 Oct 2002 15:25:34 -0600 Subject: [vtkusers] Volume rendering data that is not vtkImageData Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C26A5A.3E0856D0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit I have been tasked with porting some of our unstructured volume rendering code to VTK and am having trouble figuring out how to add classes to the mapper/actor class hierarchies. It seems that the vtkVolume class provides the functionality I need in a prop/actor. However, vtkVolume is constrained to using a vtkVolumeMapper, which is constrained to using a vtkImageData as its input. This is a problem because I want to build a volume rendering mapper that accepts a vtkUnstructuredGrid as its input. Is there a way to use the vtkVolume class with mappers that do not render vtkImageData, or is there a trivial change that could be made that would allow it to? Adding a vtkAbstractVolumeMapper between vtkAbstractMapper3D and vtkVolumeMapper might do the trick. Or is it really necessary to write a separate prop class for volume rendering each of the vtkImageData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid data object types? -Ken **** Kenneth Moreland *** Sandia National Laboratories *********** *** *** *** email: kmorel@sandia.gov ** *** ** phone: (505) 844-8919 *** fax: (505) 844-9297 ------_=_NextPart_000_01C26A5A.3E0856D0 Content-Type: application/ms-tnef Content-Transfer-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AAAMwAAADxCNTFGMEM2MzZFNTc4QTRFODMyRDM5NTg2OTBDRDczRUQyMEQzRUBlczA0c25sbnQ+ AABgIQ== ------_=_NextPart_000_01C26A5A.3E0856D0-- From c.p.botha@its.tudelft.nl Wed Oct 2 23:00:23 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Thu, 3 Oct 2002 00:00:23 +0200 Subject: [vtkusers] vtk+fltk.. In-Reply-To: <3D9B15B0.5F653911@cs.uncc.edu> References: <3D9B15B0.5F653911@cs.uncc.edu> Message-ID: <20021002220023.GA31889@dutidad.twi.tudelft.nl> On Wed, Oct 02, 2002 at 11:50:08AM -0400, K.R.Subramanian wrote: > FLTK + vtk users: The render window and related classes with version 2.0 > of fltk? If not, vtkFlRenderWindowInteractor has been tested to work with fltk1.1.0rc3, so it should work with 1.1. AFAICS, FLTK 2.0 has not been released yet. As soon as that happens, I will make sure that the class works with that. Regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From nundys@neuro.duke.edu Wed Oct 2 01:30:11 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 1 Oct 2002 20:30:11 -0400 Subject: [vtkusers] vtkPanel.java on OS X Message-ID: <1C48836A-D59E-11D6-BC86-000393B290A0@neuro.duke.edu> Thanks to all who kindly helped with my OS X problems. I have now successfully built vtk on OS X 10.2.1. I am having trouble using vtkPanel.java, though. Programs that use it seem to hang, after starting a few event listeners. Does anyone have any code that uses it successfully (and have they changed it to make it work)? Thanks, Surajit Nunyd From jmanjon@fis.upv.es Thu Oct 3 09:10:12 2002 From: jmanjon@fis.upv.es (jose manjon) Date: Thu, 03 Oct 2002 10:10:12 +0200 Subject: [vtkusers] Freeing memory error!!! References: <20021002172301.22521.51306.Mailman@public.kitware.com> Message-ID: <3D9BFB64.7FE52E90@fis.upv.es> Hi there, I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. I do all the Delete() for all the objects but it has no response. can anyone tell me what I am doing wrong?? thanks jose the code: CRenderView::CRenderView() { opacidad=0; } CRenderView::~CRenderView() { AfxMessageBox("freeing ..."); datos1->Delete(); datos2->Delete(); datos3->Delete(); lut->Delete(); plane1->Delete(); plane2->Delete(); plane3->Delete(); planeMapper1->Delete(); planeMapper2->Delete(); planeMapper3->Delete(); text1->Delete(); text2->Delete(); text3->Delete(); planeActor1->Delete(); planeActor2->Delete(); planeActor3->Delete(); AfxMessageBox("free"); } void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) { // ORTHOGONAL VIEWER unsigned short * p; C3DFrame* frame; CImageView* v1; CImageView* v2; CImageView* v3; CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); frame=((C3DFrame*)GetParentFrame()); v1=frame->GetView(0,1); v2=frame->GetView(1,0); v3=frame->GetView(1,1); int nx=v1->IA; int ny=v2->IA; int nz=v3->IA; lut=vtkLookupTable::New(); lut->SetNumberOfColors(256); double B,G,R; for(int i=0;i<1024;i=i+4) { B=(double)v1->ani->m_pDIB[40+i]/255; G=(double)v1->ani->m_pDIB[40+i+1]/255; R=(double)v1->ani->m_pDIB[40+i+2]/255; if(i/4SetTableValue(i/4,R,G,B,0); else lut->SetTableValue(i/4,R,G,B,1); } lut->SetTableRange(0,255); /////////// PLANO AXIAL ///////////////////////////////////////////////////// datos1=vtkStructuredPoints::New(); datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); datos1->SetScalarType(VTK_UNSIGNED_SHORT); datos1->SetNumberOfScalarComponents(1); datos1->AllocateScalars(); p=(unsigned short *) datos1->GetScalarPointer(); for(int y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; } plane1=vtkPlaneSource::New(); plane1->SetNormal(0,0,1); planeMapper1=vtkPolyDataMapper::New(); planeMapper1->SetInput(plane1->GetOutput()); text1=vtkTexture::New(); text1->SetInput(datos1); text1->SetLookupTable(lut); text1->InterpolateOn(); planeActor1=vtkActor::New(); planeActor1->SetMapper(planeMapper1); planeActor1->SetTexture(text1); /////////// PLANO CORONAL ///////////////////////////////////////////////////// datos2=vtkStructuredPoints::New(); datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); datos2->SetScalarType(VTK_UNSIGNED_SHORT); datos2->SetNumberOfScalarComponents(1); datos2->AllocateScalars(); p=(unsigned short *) datos2->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; } double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; yr=yr*(pDoc->resz/pDoc->resx); plane2=vtkPlaneSource::New(); plane2->SetNormal(0,1,0); plane2->SetOrigin(-0.5,0,-yr); plane2->SetPoint1(0.5,0,-yr); plane2->SetPoint2(-0.5,0,yr); plane2->SetXResolution(1); plane2->SetYResolution(1); planeMapper2=vtkPolyDataMapper::New(); planeMapper2->SetInput(plane2->GetOutput()); text2=vtkTexture::New(); text2->SetInput(datos2); text2->SetLookupTable(lut); text2->InterpolateOn(); planeActor2=vtkActor::New(); planeActor2->SetMapper(planeMapper2); planeActor2->SetTexture(text2); /////////// PLANO SAGITAL ///////////////////////////////////////////////////// datos3=vtkStructuredPoints::New(); datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); datos3->SetScalarType(VTK_UNSIGNED_SHORT); datos3->SetNumberOfScalarComponents(1); datos3->AllocateScalars(); p=(unsigned short *) datos3->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; } plane3=vtkPlaneSource::New(); plane3->SetNormal(1,0,0); plane3->SetOrigin(0,-0.5,-yr); plane3->SetPoint1(0, 0.5,-yr); plane3->SetPoint2(0,-0.5, yr); plane3->SetXResolution(1); plane3->SetYResolution(1); planeMapper3=vtkPolyDataMapper::New(); planeMapper3->SetInput(plane3->GetOutput()); text3=vtkTexture::New(); text3->SetInput(datos3); text3->SetLookupTable(lut); text3->InterpolateOn(); planeActor3=vtkActor::New(); planeActor3->SetMapper(planeMapper3); planeActor3->SetTexture(text3); /////////// CUBO ///////////////////////////////////////////////////// vtkCubeSource * cube=vtkCubeSource::New(); cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); cubeMapper->SetInput(cube->GetOutput()); vtkActor *cubeActor=vtkActor::New(); cubeActor->SetMapper(cubeMapper); cubeActor->GetProperty()->SetRepresentationToWireframe(); /////////// RENDER ///////////////////////////////////////////////////// this->Renderer->SetBackground(0.05,0.15,0.45); this->Renderer->AddActor(planeActor1); this->Renderer->AddActor(planeActor2); this->Renderer->AddActor(planeActor3); this->Renderer->AddActor(cubeActor); vtkCamera * cam=this->Renderer->GetActiveCamera(); cam->Elevation(90); cam->Azimuth(180); vtkLight *light1 = vtkLight::New(); light1->SetPosition(1,0,1); vtkLight *light2 = vtkLight::New(); light2->SetPosition(0,1,1); vtkLight *light3 = vtkLight::New(); light3->SetPosition(-1,0,1); vtkLight *light4 = vtkLight::New(); light4->SetPosition(0,-1,1); this->Renderer->AddLight(light1); this->Renderer->AddLight(light2); this->Renderer->AddLight(light3); this->Renderer->AddLight(light4); cube->Delete(); cubeMapper->Delete(); cubeActor->Delete(); Actualizar(); } void CRenderView::Actualizar() { this->Renderer->RemoveActor(planeActor1); this->Renderer->RemoveActor(planeActor2); this->Renderer->RemoveActor(planeActor3); unsigned short * p; C3DFrame* frame; CImageView* v1; CImageView* v2; CImageView* v3; CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); frame=((C3DFrame*)GetParentFrame()); v1=frame->GetView(0,1); v2=frame->GetView(1,0); v3=frame->GetView(1,1); int nx=v3->IA; int ny=v2->IA; int nz=v1->IA; double B,G,R; for(int i=0;i<1024;i=i+4) { B=(double)v1->ani->m_pDIB[40+i]/255; G=(double)v1->ani->m_pDIB[40+i+1]/255; R=(double)v1->ani->m_pDIB[40+i+2]/255; if(i/4SetTableValue(i/4,R,G,B,0); else lut->SetTableValue(i/4,R,G,B,1); } lut->SetTableRange(0,255); /////////// PLANO AXIAL ///////////////////////////////////////////////////// p=(unsigned short *) datos1->GetScalarPointer(); for(int y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; } double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; yr=yr*(pDoc->resz/pDoc->resx); plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); planeMapper1->SetInput(plane1->GetOutput()); text1->SetInput(datos1); text1->SetLookupTable(lut); text1->InterpolateOn(); planeActor1->SetMapper(planeMapper1); planeActor1->SetTexture(text1); /////////// PLANO CORONAL ///////////////////////////////////////////////////// p=(unsigned short *) datos2->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; } plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); planeMapper2->SetInput(plane2->GetOutput()); text2->SetInput(datos2); text2->SetLookupTable(lut); text2->InterpolateOn(); planeActor2->SetMapper(planeMapper2); planeActor2->SetTexture(text2); /////////// PLANO SAGITAL ///////////////////////////////////////////////////// p=(unsigned short *) datos3->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; } plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); planeMapper3->SetInput(plane3->GetOutput()); text3->SetInput(datos3); text3->SetLookupTable(lut); text3->InterpolateOn(); planeActor3->SetMapper(planeMapper3); planeActor3->SetTexture(text3); this->Renderer->AddActor(planeActor1); this->Renderer->AddActor(planeActor2); this->Renderer->AddActor(planeActor3); this->Renderer->GetRenderWindow()->Render(); } void CRenderView::SetOpacity(double opa) { opacidad=opa*256; Actualizar(); } \\|// (@ @) +--------------------oOO----(_)----OOo-----------------------+ | | | Prof. Jose Vicente Manjn Herrera | | | | Group of Medical Bioinformatics | | Department of Aplied Physics | | Computer Science High School | | Technical University of Valencia | | Spain | | | | Email:jmanjon@fis.upv.es | | | +------------------------------------------------------------+ |__|__| || || ooO Ooo From vidya.sivakumar@quest-global.com Thu Oct 3 10:04:41 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Thu, 3 Oct 2002 05:04:41 -0400 Subject: [vtkusers] vtkPanel Message-ID: Hi Folks, I have java 1.3.1 and I have installed vtk ver4.0 in windows 2000. But I have problems when I use vtkPanel in my java code and I get an error. Could anybody please help. Thanks, Vidya From imho@skynet.be Thu Oct 3 10:50:17 2002 From: imho@skynet.be (imho) Date: Thu, 03 Oct 2002 11:50:17 +0200 Subject: [vtkusers] thresholding Message-ID: <3D9C12D9.1020006@skynet.be> Hi, how do I make a thresholding filter on a 2d image, to have a 2colors image with the histogram range? In fact I have in input a DICOM file, and I'd like to isolate an area (coloring it in white, and all the rest in black) who is in a specific greyscale range... Thanks a lot :) From vidya.sivakumar@quest-global.com Thu Oct 3 11:42:24 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Thu, 3 Oct 2002 06:42:24 -0400 Subject: [vtkusers] cone Message-ID: Hi Folks, I was wondering if there is any inbuilt function in vtk that would generate a frustrum of a cone with specified dimensions, Any help is appreciated. Thanks, Vidya From p.cook@cs.ucl.ac.uk Thu Oct 3 11:46:49 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 03 Oct 2002 11:46:49 +0100 Subject: [vtkusers] vtkPanel In-Reply-To: <20021003104007.9202.50767.Mailman@public.kitware.com> References: <20021003104007.9202.50767.Mailman@public.kitware.com> Message-ID: <1033642012.2392.2.camel@maraca.cs.ucl.ac.uk> On Thu, 2002-10-03 at 11:40, vtkusers-request@public.kitware.com wrote: > > > Message: 1 > From: "vidya sivakumar" > To: > Date: Thu, 3 Oct 2002 05:04:41 -0400 > Subject: [vtkusers] vtkPanel > > Hi Folks, > I have java 1.3.1 and I have installed vtk ver4.0 in windows 2000. > But I have problems when I use vtkPanel in my java code and I get an error. > Could anybody please help. > Thanks, > Vidya > What is the error? Under JDK 1.4.0 the vtkPanel (version 4.0) won't work because it is in an un-named package. I'm not sure if this is the case in JDK 1.3.1. The problem is fixed in the nightly source release; try building that. From benoit.regrain@creatis.insa-lyon.fr Thu Oct 3 10:24:20 2002 From: benoit.regrain@creatis.insa-lyon.fr (Benoit Regrain) Date: Thu, 3 Oct 2002 11:24:20 +0200 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow Message-ID: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> This is a multi-part message in MIME format. ------=_NextPart_000_0229_01C26ACF.6AC14220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I believe I might have found two bugs in the class wxVTKRenderWindow as encountered in VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working on Windows 2000 with the VTKNightly dated 10/02/2002. - At launch of the script wxVTKRenderWindow.py, a window appears, but nothing is displayed inside. Things become correct when I resize the window. (This was also reported by Chandra Shekhar, see = http://public.kitware.com/pipermail/vtkusers/2002-October/013700.html) I could fix this problem, by changing the line 164 by : try: size =3D parent.GetSize() except: size =3D wxDefaultSize The try/except is used to protect the call to parent. =20 - When the script wxVTKRenderWindow.py is launched and when killing the window (by clicking on the window close button, the one with a cross at the upper right), I get the following error message in=20 the Python console : runtime error R6025 - Pure virtual function call This odd/bad behavior desapears when I add the line : widget.GetRenderWindow().RemoveRenderer(ren) at the end of test script, just after the line containing the "MainLoop" function. But I think that the problem is in the class wxVTKRenderWindow : Renderers might be refered to after they have allready been deleted/gced. To address this problem one could handle the proper deconnection of the RenderWindow from it's renderer[s] by adding a destructor to the wxVTKRenderWindow class. The following does the job for me: def __del__(self): renderers =3D self._RenderWindow.GetRenderers() numRenderers =3D renderers.GetNumberOfItems() self._CurrentRenderer =3D None renderers.InitTraversal() for i in range(0,numRenderers): = self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) =20 Thanks for considering those problems. Greetings Benoit Regrain Ing=E9nieur d'=E9tude CNRS (Creatis) email : regrain@creatis.insa-lyon.fr INSA - B=E2timent Blaise Pascal 7 avenue Jean Capelle 69621 Villeurbanne Cedex ------=_NextPart_000_0229_01C26ACF.6AC14220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I believe I might have found two bugs in the class = wxVTKRenderWindow
as=20 encountered in VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py.
I am = working=20 on Windows 2000 with the VTKNightly dated 10/02/2002.

 - At = launch=20 of the script wxVTKRenderWindow.py, a window appears, = but
  =20 nothing is displayed inside. Things become correct when I resize=20 the
   window. (This was also reported by Chandra Shekhar,=20 see
    http://public.kitware.com/pipermail/vtkusers/2002-October/013700.ht= ml)
  =20 I could fix this problem, by changing the line 164 by=20 :
        =20 try:
           = ; =20 size =3D = parent.GetSize()
        =20 except:
          &n= bsp; =20 size =3D wxDefaultSize
   The try/except is used to protect = the call=20 to parent.
 
 - When the script wxVTKRenderWindow.py is = launched=20 and when killing
   the window (by clicking on the window = close=20 button, the one with a
   cross at the upper right), I get = the=20 following error message in
   the Python console=20 :
         runtime error=20 R6025
         - Pure virtual = function call
   This odd/bad behavior desapears when I add = the=20 line :
        =20 widget.GetRenderWindow().RemoveRenderer(ren)
   at the end = of test=20 script, just after the line containing the
   "MainLoop" = function.=20 But I think that the problem is in the class
   = wxVTKRenderWindow :=20 Renderers might be refered to after they have
   allready = been=20 deleted/gced.
   To address this problem one could handle = the=20 proper deconnection
   of the RenderWindow from it's = renderer[s] by=20 adding a destructor
   to the wxVTKRenderWindow class. The=20 following does the job for me:

   def=20 __del__(self):
        renderers = =3D=20 self._RenderWindow.GetRenderers()
      =  =20 numRenderers =3D=20 renderers.GetNumberOfItems()
       = ;=20 self._CurrentRenderer =3D = None
       =20 renderers.InitTraversal()
        = for i in=20 range(0,numRenderers):
        = ;   =20 self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem())

&nb= sp;=20
Thanks for considering those problems.
Greetings
 
Benoit Regrain
Ing=E9nieur d'=E9tude = CNRS=20 (Creatis)
email : regrain@creatis.insa-lyon.fr=
INSA=20 - B=E2timent Blaise Pascal
7 avenue Jean Capelle
69621 = Villeurbanne=20 Cedex
------=_NextPart_000_0229_01C26ACF.6AC14220-- From winston@cat.rpi.edu Thu Oct 3 13:18:48 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Thu, 03 Oct 2002 08:18:48 -0400 Subject: [vtkusers] cone References: Message-ID: <3D9C35A8.B6D497F5@cat.rpi.edu> vidya sivakumar wrote: > > I was wondering if there is any inbuilt function in vtk that would generate > a frustrum of a cone with specified dimensions, Look at vtkCone & vtkConeSource. -Jeremy From james@rogue-research.com Thu Oct 3 14:23:55 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 3 Oct 2002 09:23:55 -0400 Subject: [vtkusers] view as vtkRenderWindow? Message-ID: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> I've been evaluating VTK, looking through the source, to see if I could adapt it for use in our application. One of the requirements is that any rendering context be usable as a view pane within a window, along with other such contexts. Conceptually, it seems to counter to the VTK philosophy. Is there a reason for this? Is it "political", or technical? From my investigations, based on the platform we're using (Mac OS X, using PowerPlant) it should be relatively trivial. Are there any road blocks I might encounter on the VTK end? James From oliveira_mc@yahoo.com.br Thu Oct 3 14:56:52 2002 From: oliveira_mc@yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Thu, 3 Oct 2002 10:56:52 -0300 (ART) Subject: [vtkusers] Window Name Message-ID: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Hi users !! I think that is Bug When i try change the name of Window using: renWin->SetWindowName( "FLAMENGO" ); renWin->Render(); anything change but when i use: renWin->Render(); renWin->SetWindowName( "FLAMENGO" ); renWin->Render(); the name change. Im using Win XP and VTK 4.0 Tanks for your help and advanced me Marcelo _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. http://br.geocities.yahoo.com/ From dineshms@rocketmail.com Thu Oct 3 15:17:57 2002 From: dineshms@rocketmail.com (Dinesh. M.S) Date: Thu, 3 Oct 2002 07:17:57 -0700 (PDT) Subject: [vtkusers] Normal Info. from STL file Message-ID: <20021003141757.96882.qmail@web12506.mail.yahoo.com> --0-448483799-1033654677=:96245 Content-Type: text/plain; charset=us-ascii Hi all, I want to know how to extract/compute the normal information from STL files. Any help in this regard is very well appreciated. Best Regards Siddu --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! --0-448483799-1033654677=:96245 Content-Type: text/html; charset=us-ascii

Hi all,

I want to know how to extract/compute the normal information from STL files.

Any help in this regard is very well appreciated.

Best Regards

Siddu



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo! --0-448483799-1033654677=:96245-- From andy.cedilnik@kitware.com Thu Oct 3 15:49:11 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 03 Oct 2002 10:49:11 -0400 Subject: [vtkusers] Window Name In-Reply-To: <20021003135652.50753.qmail@web20104.mail.yahoo.com> References: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Message-ID: <1033656551.25772.63.camel@xanth.kitwarein.com> Hello Marcelo, This is a known bug and is caused by the window not being there yet when you do SetWindowName. The first render creates window, then you can set the name. Andy On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > I think that is Bug >=20 > When i try change the name of Window using: >=20 > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); >=20 > anything change >=20 > but when i use: >=20 > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); >=20 > the name change. >=20 > I=B4m using Win XP and VTK 4.0 >=20 > Tanks for your help and advanced me From anast.jm@pg.com Thu Oct 3 16:13:51 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 3 Oct 2002 11:13:51 -0400 Subject: [vtkusers] Normal Info. from STL file Message-ID: see vtkPPolyDataNormals ... john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Dinesh. M.S" @public.kitware.com on 10/03/2002 07:17 AM MST "Dinesh. M.S" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Normal Info. from STL file Sent by: vtkusers-admin@public.kitware.com 10/03/2002 10:17 AM Hi all, I want to know how to extract/compute the normal information from STL files. Any help in this regard is very well appreciated. Best Regards Siddu Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! From anast.jm@pg.com Thu Oct 3 16:24:12 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 3 Oct 2002 11:24:12 -0400 Subject: [vtkusers] cone Message-ID: Vidya, To crop the cone to a frustrum see the example VTK\Examples\Modelling\Tcl\iceCream.tcl Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Jeremy Winston @public.kitware.com on 10/03/2002 08:18 AM AST Jeremy Winston To: vidya sivakumar @public.kitware.com Cc: vtkusers@public.kitware.com (bcc: John Anast-JM/PGI) Sent by: Subject: Re: [vtkusers] cone vtkusers-admin@public.kitware.com 10/03/2002 08:18 AM vidya sivakumar wrote: > > I was wondering if there is any inbuilt function in vtk that would generate > a frustrum of a cone with specified dimensions, Look at vtkCone & vtkConeSource. -Jeremy _______________________________________________ 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 lists@carlh.net Thu Oct 3 17:21:45 2002 From: lists@carlh.net (Carl Hetherington) Date: Thu, 3 Oct 2002 17:21:45 +0100 (GMT Daylight Time) Subject: [vtkusers] Writing Postscript files from VTK In-Reply-To: <20021001182154.5a27048f.melvin.hadasht@free.fr> Message-ID: On Tue, 1 Oct 2002, Melvin Hadasht wrote: > Hi Carl, > > on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) > Carl Hetherington wrote: > > > Hi, > > > > I'm interested in writing vector Postscript files of VTK renderings. > > Consulting the mailing list archive suggests that gl2ps might be able to > > do this. I've tried the following example: > > > > /* Set up a render window with a wireframe representation of a > > ** vtkPolyData. > > */ > > > > /* ... */ > > > > FILE* fp = fopen("test.eps", "w"); > > int buffsize = 0; > > int state = GL2PS_OVERFLOW; > > > > while (state == GL2PS_OVERFLOW) > > { > > buffsize += 1024*1024; > > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > > buffsize, fp, NULL); > > You should test for the return value of fopen. Maybe the problem was there. > > I don't know the following may help or not, but in an old code I had the > filename also as the last argument of gl2psBeginPage{...char *filename; File *fp > = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember > why I did that. Thanks for the reply. Seems to be working today, so perhaps it was me not checking the file pointer... idiot that I am. Thanks Carl From prabhu@aero.iitm.ernet.in Thu Oct 3 18:33:25 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 3 Oct 2002 23:03:25 +0530 Subject: [vtkusers] view as vtkRenderWindow? In-Reply-To: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> References: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> Message-ID: <15772.32613.268194.988468@monster.linux.in> >>>>> "JD" == James Dessart writes: JD> I've been evaluating VTK, looking through the source, to see JD> if I could adapt it for use in our application. One of the JD> requirements is that any rendering context be usable as a view JD> pane within a window, along with other such contexts. JD> Conceptually, it seems to counter to the VTK philosophy. Is JD> there a reason for this? Is it "political", or technical? If you mean embedding a VTK rendering window in an application, it already works well. Many of the examples dont build a GUI and simply illustrate the power of VTK alone. Some of them do build GUI's. For instance look at Examples/VisualizationAlgorithms/Tcl/TransformTextureCoords.tcl This is in the VTK 4.x cvs tree. cheers, prabhu From p.cook@cs.ucl.ac.uk Thu Oct 3 18:38:40 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 03 Oct 2002 18:38:40 +0100 Subject: [vtkusers] libmawt and libvtkRenderingJava on Solaris Message-ID: <1033666721.2420.9.camel@maraca.cs.ucl.ac.uk> I have built VTK (CVS, CMake 1.4 patch 3) semi-successfully on Solaris 2.8 . My C++ VTK code is fine, but when trying to load the Java example (with JDK 1.4.0_01 or JDK 1.4.1), I get the following: Exception in thread "main" java.lang.UnsatisfiedLinkError: /cs/research/medim/common0/green/common/VTK4n/lib/vtk/libvtkRenderingJava.so: ld.so.1: java: fatal: libmawt.so: open failed: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at test.(test.java:13) I initially thought this was a problem with Java, but I can run other code that uses the AWT. I only see this with VTK. Thanks, Phil From Steffen.Oeltze@Student.Uni-Magdeburg.DE Thu Oct 3 18:40:53 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Thu, 03 Oct 2002 19:40:53 +0200 Subject: [vtkusers] vtkHedgeHog in 2D? Message-ID: <3D9C8125.1090403@student.uni-magdeburg.de> Dear VTK users, I would like to display an image together with a 2D HedgeHog-plot that shows a vector at each image pixel. Is that possible with VTK ? Regards, Steffen Oeltze From krs@cs.uncc.edu Thu Oct 3 19:23:59 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Thu, 03 Oct 2002 14:23:59 -0400 Subject: [vtkusers] vtk book - out of print?? Message-ID: <3D9C8B3F.1C4AB294@cs.uncc.edu> I was wondering if the book is in print now (our bookstore sent me a note saying it was out of print) - I remember seeing a message that this was being resolved several months back. Anyone have a clue? -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From oliveira_mc@yahoo.com.br Thu Oct 3 20:38:56 2002 From: oliveira_mc@yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Thu, 3 Oct 2002 16:38:56 -0300 (ART) Subject: [vtkusers] events in Keyboard Message-ID: <20021003193856.16857.qmail@web20106.mail.yahoo.com> Hi users Im try to rotate, scale and translate the objects using keyboard, but im not have success. Where i can find examples, What is the class that i have to use. Tanks for you help and advaced me. _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. http://br.geocities.yahoo.com/ From pahsieh@usgs.gov Thu Oct 3 20:52:31 2002 From: pahsieh@usgs.gov (Paul A Hsieh) Date: Thu, 3 Oct 2002 12:52:31 -0700 Subject: [vtkusers] Problem with vtkCamera::GetOrientationWXYZ Message-ID: After a relatively long hiatus from this mailing list, I hope to be back on board. I am revising an application from using VTK 3.1 to 4.0 and I ran into an inconsistency in the result returned by vtkCamera::GetOrientationWXYZ. This is illustrated by the following C++ sample code: #include "vtkCamera.h" void main() { vtkCamera *cam = vtkCamera::New(); cam->SetPosition(40.5388, -58.1675, 36.4357); cam->SetFocalPoint(12.5875, 11.3799, 10.3485); cam->SetViewUp(-0.221512, 0.263181, 0.938972); cam->ComputeViewPlaneNormal(); // Needed for VTK 3.1 cam->OrthogonalizeViewUp(); float *wxyz = cam->GetOrientationWXYZ(); cout << wxyz[0] << " " << wxyz[1] << " " << wxyz[2] << " " << wxyz[3]; } When run using VTK 4.0 (nightly release, Oct 1, 2002), I get 284.514 0.937559 0.129517 0.322812 When run using VTK 3.1, I get 75.4863 0.937559 0.129517 0.322812 The first number (angle) differ in the two results. I think the number returned by VTK 4.0 is incorrect for the following reason. The method vtkCamera::GetOrientationXYZ() is used only in 2 classes, one of which is vtkVRMLExporter. In VTK3.1, vtkVRMLExporter generates a correct vrml file. In VTK4.0, vtkVRMLExporter does not generat a correct vrml file (the viewpoint is oriented in the wrong direction). Tracking the computation through the source code of VTK 3.1 versus 4.0, the main difference occurs in the row-column indexing of the matrix in the class vtkTransform. In particular, the method vtkTransform::GetOrientationWXYZ() is void vtkTransform::GetOrientationWXYZ(double wxyz[4]) { int i; this->Update(); // convenient access to matrix double (*matrix)[4] = this->Matrix->Element; double ortho[3][3]; for (i = 0; i < 3; i++) { ortho[0][i] = matrix[0][i]; ortho[1][i] = matrix[1][i]; ortho[2][i] = matrix[2][i]; } //...etc where ortho is subsequently used to compute w,x,y,z. If I transpose the ortho matrix, that is, change the above loop to for (i = 0; i < 3; i++) { ortho[i][0] = matrix[0][i]; ortho[i][1] = matrix[1][i]; ortho[i][2] = matrix[2][i]; } and rebuild VTK 4.0, then the above sample program gives the same result as that of VTK3.1. Also, the vrml file exported by vtkVRMLExporter is correct (viewpoint looks at the correct direction). The above suggests that either (1) the elements in the matrix of vtkTransform are stored in reversed row-column order, or (2) the row-column index is reversed somewhere during the computation of wxyz. Hope the above makes sense. Paul Hsieh From vcravikiran@hotmail.com Thu Oct 3 21:18:06 2002 From: vcravikiran@hotmail.com (ravi kiran) Date: Thu, 03 Oct 2002 20:18:06 +0000 Subject: [vtkusers] Hi Message-ID: Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From malcolm@geovision.co.za Thu Oct 3 21:41:56 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Thu, 3 Oct 2002 22:41:56 +0200 Subject: [vtkusers] Window Name References: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Message-ID: <001701c26b1d$6f67c350$718cfea9@maggie> Hi Marcelo Under Windows, if you call 'Initialize' before setting the window name, it will be created with the name you've given it. Malcolm ----- Original Message ----- From: "marcelo oliveira" To: Sent: Thursday, October 03, 2002 3:56 PM Subject: [vtkusers] Window Name > Hi users !! > > I think that is Bug > > When i try change the name of Window using: > > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > anything change > > but when i use: > > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > the name change. > > Im using Win XP and VTK 4.0 > > Tanks for your help and advanced me > > Marcelo > > > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. > http://br.geocities.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From oliveira_mc@yahoo.com.br Thu Oct 3 22:04:32 2002 From: oliveira_mc@yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Thu, 3 Oct 2002 18:04:32 -0300 (ART) Subject: [vtkusers] Window Name is working In-Reply-To: <1033656551.25772.63.camel@xanth.kitwarein.com> Message-ID: <20021003210432.15619.qmail@web20105.mail.yahoo.com> Yes, is working. I just have to set Start(); Tank u Malcom --- Andy Cedilnik escreveu: > Hello Marcelo, > > This is a known bug and is caused by the window not > being there yet when > you do SetWindowName. The first render creates > window, then you can set > the name. > > Andy > > On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > > I think that is Bug > > > > When i try change the name of Window using: > > > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > anything change > > > > but when i use: > > > > renWin->Render(); > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > the name change. > > > > Im using Win XP and VTK 4.0 > > > > Tanks for your help and advanced me > > _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. http://br.geocities.yahoo.com/ From anast.jm@pg.com Thu Oct 3 22:01:42 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 3 Oct 2002 17:01:42 -0400 Subject: [vtkusers] Hi Message-ID: Perhaps vtkUnstructuredGrid::GetCellPoints is what you are looking for ...john "ravi kiran" @public.kitware.com on 10/03/2002 04:18:06 PM Sent by: vtkusers-admin@public.kitware.com To: vtkusers@public.kitware.com cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ 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: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From dreed@capital.edu Thu Oct 3 23:05:05 2002 From: dreed@capital.edu (Dave Reed) Date: Thu, 3 Oct 2002 18:05:05 -0400 Subject: [vtkusers] Re: vtk book - out of print?? In-Reply-To: <3D9C8B3F.1C4AB294@cs.uncc.edu> (krs@cs.uncc.edu) References: <3D9C8B3F.1C4AB294@cs.uncc.edu> Message-ID: <200210032205.g93M55O01821@localhost.localdomain> > From: "K.R.Subramanian" > Organization: Univ. of N. Carolina at Charlotte > X-Accept-Language: en > Sender: vtkusers-admin@public.kitware.com > Date: Thu, 03 Oct 2002 14:23:59 -0400 > > > I was wondering if the book is in print now (our bookstore sent me a note > saying it was out of print) - I remember seeing a message that this was being > resolved several months back. > > Anyone have a clue? > > -- krs See a message from Will on September 11. I believe they've obtained the rights to it, but it is not yet available. Dave From Koning, P.J.H. de (LKEB)" Message-ID: 03-10-02 10:10:12, jose manjon wrote: >Hi there, > >I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. > >I do all the Delete() for all the objects but it has no response. > >can anyone tell me what I am doing wrong?? > If you don't remove the actors from the renderer the will be deleted when the renderer is deleted and not sooner. >thanks > >jose > >the code: > > >CRenderView::CRenderView() >{ > opacidad=0; >} > > >CRenderView::~CRenderView() >{ > AfxMessageBox("freeing ..."); > > datos1->Delete(); > datos2->Delete(); > datos3->Delete(); > lut->Delete(); > plane1->Delete(); > plane2->Delete(); > plane3->Delete(); > planeMapper1->Delete(); > planeMapper2->Delete(); > planeMapper3->Delete(); > text1->Delete(); > text2->Delete(); > text3->Delete(); > planeActor1->Delete(); > planeActor2->Delete(); > planeActor3->Delete(); > > AfxMessageBox("free"); >} > >void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) >{ > // ORTHOGONAL VIEWER > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v1->IA; > int ny=v2->IA; > int nz=v3->IA; > > > lut=vtkLookupTable::New(); > lut->SetNumberOfColors(256); > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > datos1=vtkStructuredPoints::New(); > datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); > datos1->SetScalarType(VTK_UNSIGNED_SHORT); > datos1->SetNumberOfScalarComponents(1); > datos1->AllocateScalars(); > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > plane1=vtkPlaneSource::New(); > plane1->SetNormal(0,0,1); > planeMapper1=vtkPolyDataMapper::New(); > planeMapper1->SetInput(plane1->GetOutput()); > text1=vtkTexture::New(); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1=vtkActor::New(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > datos2=vtkStructuredPoints::New(); > datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos2->SetScalarType(VTK_UNSIGNED_SHORT); > datos2->SetNumberOfScalarComponents(1); > datos2->AllocateScalars(); > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane2=vtkPlaneSource::New(); > plane2->SetNormal(0,1,0); > plane2->SetOrigin(-0.5,0,-yr); > plane2->SetPoint1(0.5,0,-yr); > plane2->SetPoint2(-0.5,0,yr); > plane2->SetXResolution(1); > plane2->SetYResolution(1); > planeMapper2=vtkPolyDataMapper::New(); > planeMapper2->SetInput(plane2->GetOutput()); > text2=vtkTexture::New(); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2=vtkActor::New(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > datos3=vtkStructuredPoints::New(); > datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos3->SetScalarType(VTK_UNSIGNED_SHORT); > datos3->SetNumberOfScalarComponents(1); > datos3->AllocateScalars(); > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > plane3=vtkPlaneSource::New(); > plane3->SetNormal(1,0,0); > plane3->SetOrigin(0,-0.5,-yr); > plane3->SetPoint1(0, 0.5,-yr); > plane3->SetPoint2(0,-0.5, yr); > plane3->SetXResolution(1); > plane3->SetYResolution(1); > planeMapper3=vtkPolyDataMapper::New(); > planeMapper3->SetInput(plane3->GetOutput()); > text3=vtkTexture::New(); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3=vtkActor::New(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > /////////// CUBO ///////////////////////////////////////////////////// > > vtkCubeSource * cube=vtkCubeSource::New(); > cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); > vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); > cubeMapper->SetInput(cube->GetOutput()); > vtkActor *cubeActor=vtkActor::New(); > cubeActor->SetMapper(cubeMapper); > cubeActor->GetProperty()->SetRepresentationToWireframe(); > > /////////// RENDER ///////////////////////////////////////////////////// > > this->Renderer->SetBackground(0.05,0.15,0.45); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > this->Renderer->AddActor(cubeActor); > > vtkCamera * cam=this->Renderer->GetActiveCamera(); > cam->Elevation(90); > cam->Azimuth(180); > > vtkLight *light1 = vtkLight::New(); > light1->SetPosition(1,0,1); > > vtkLight *light2 = vtkLight::New(); > light2->SetPosition(0,1,1); > > vtkLight *light3 = vtkLight::New(); > light3->SetPosition(-1,0,1); > > vtkLight *light4 = vtkLight::New(); > light4->SetPosition(0,-1,1); > > this->Renderer->AddLight(light1); > this->Renderer->AddLight(light2); > this->Renderer->AddLight(light3); > this->Renderer->AddLight(light4); > > cube->Delete(); > cubeMapper->Delete(); > cubeActor->Delete(); > > Actualizar(); >} > > >void CRenderView::Actualizar() >{ > this->Renderer->RemoveActor(planeActor1); > this->Renderer->RemoveActor(planeActor2); > this->Renderer->RemoveActor(planeActor3); > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v3->IA; > int ny=v2->IA; > int nz=v1->IA; > > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); > > planeMapper1->SetInput(plane1->GetOutput()); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); > > planeMapper2->SetInput(plane2->GetOutput()); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > > plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); > > planeMapper3->SetInput(plane3->GetOutput()); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > > this->Renderer->GetRenderWindow()->Render(); >} > >void CRenderView::SetOpacity(double opa) >{ > opacidad=opa*256; > Actualizar(); >} > > > > > > > \\|// > (@ @) > +--------------------oOO----(_)----OOo-----------------------+ > | | > | Prof. Jose Vicente Manjn Herrera | > | | > | Group of Medical Bioinformatics | > | Department of Aplied Physics | > | Computer Science High School | > | Technical University of Valencia | > | Spain | > | | > | Email:jmanjon@fis.upv.es | > | | > +------------------------------------------------------------+ > |__|__| > || || > ooO Ooo > > >_______________________________________________ >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 hanssen@caesar.de Fri Oct 4 09:12:43 2002 From: hanssen@caesar.de (Nils Hanssen) Date: Fri, 4 Oct 2002 10:12:43 +0200 Subject: [vtkusers] vtktextmapper doesn't display text Message-ID: <001101c26b7d$d105fdb0$0607010a@ssn4006> This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, i am using vtk 4.1.1 and have problems with the vtktextmapper: It doesn't display text at all. I took the code directly from the examples, but nothing is displayed. I read somewhere that the textmappers are kind of "deprecated" and will be replaced by new mappers. What can I do for now to get it work? Thanks in advance! Regards, Nils ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
i am = using vtk 4.1.1=20 and have problems with the vtktextmapper: It doesn't display text at = all. I took=20 the code directly from the examples, but nothing is=20 displayed.
 
I read = somewhere=20 that the textmappers are kind of "deprecated" and will be replaced by = new=20 mappers.
What = can I do for=20 now to get it work?
 
Thanks = in=20 advance!
 
Regards,
Nils
 
------=_NextPart_000_0012_01C26B8E.94913EB0-- From Patrick.Brockmann@ipsl.jussieu.fr Fri Oct 4 09:41:24 2002 From: Patrick.Brockmann@ipsl.jussieu.fr (Patrick Brockmann LSCE ) Date: Fri, 4 Oct 2002 10:41:24 +0200 Subject: [vtkusers] Writing Postscript files from VTK Message-ID: <200210040841.g948fO205360@colomb.ipsl.jussieu.fr> Hi, I have read mails about gl2ps library but is there a way to produce vector postscript directly from tcl or python. Thanks for any information or current work in this area. Patrick From michele.zamponi@menci.com Fri Oct 4 10:47:57 2002 From: michele.zamponi@menci.com (Michele Zamponi) Date: Fri, 4 Oct 2002 11:47:57 +0200 Subject: [vtkusers] vtkExtractPolyDataGeometry - PLEASE HELP ME Message-ID: <000601c26b8b$1ebb4210$2000a8c0@devlab1xp> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C26B9B.E2441210 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all. I'm using vtkExtractPolyDataGeometry to extract a polydata subset. The output polydata contains exactly the extracted cells, but contains also ALL the points of the original polydata. How can I purge unused points in the output polydata? I've tried using vtkCleanPolyData, but its output reports 0 points and 0 cells!! Please help me. Thank you in advance for any help. Michele ------=_NextPart_000_0007_01C26B9B.E2441210 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all.

I’m using vtkExtractPolyDataGeometry to extract a polydata = subset.

 

The output polydata = contains exactly the extracted cells, but contains also ALL the points of the original = polydata.

How can I purge unused points in the output polydata?

 

I’ve tried using  vtkCleanPolyData, but its output reports 0 points and 0 = cells!!

 

Please help me.

Thank you in advance for any = help.

 

Michele

 

 

------=_NextPart_000_0007_01C26B9B.E2441210-- From imho@skynet.be Fri Oct 4 11:43:54 2002 From: imho@skynet.be (imho) Date: Fri, 04 Oct 2002 12:43:54 +0200 Subject: [vtkusers] image 2d -> vector? Message-ID: <3D9D70EA.4030508@skynet.be> How do I get a coordonate vector (x,y) from an image 2D? thanks :) From srodrigu@gbt.tfo.upm.es Fri Oct 4 12:02:05 2002 From: srodrigu@gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Fri, 4 Oct 2002 13:02:05 +0200 Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Message-ID: <002e01c26b95$7a20e330$5f0a048a@sisifo> This is a multi-part message in MIME format. ------=_NextPart_000_002B_01C26BA6.3D4C7800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everybody, Could anybody know an algorithm for creating a Volumetric Mesh from a = set of points? and if It is implemented in MATLAB?. Thanks in advance, Sam ------=_NextPart_000_002B_01C26BA6.3D4C7800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Hello everybody,
 
Could anybody know an = algorithm for creating=20  a Volumetric Mesh from a set of points?  and if It is = implemented in=20 MATLAB?.
 
Thanks in advance,
 
Sam
------=_NextPart_000_002B_01C26BA6.3D4C7800-- From jmbeotegui@yahoo.es Fri Oct 4 12:10:09 2002 From: jmbeotegui@yahoo.es (=?iso-8859-1?q?jose=20beotegui?=) Date: Fri, 4 Oct 2002 13:10:09 +0200 (CEST) Subject: [vtkusers] Get pixel coordinates of a grid Message-ID: <20021004111009.72439.qmail@web21509.mail.yahoo.com> Hello, I'm working in an Augmented Reality interface (using Tcl/Tk, VTK 4.0) and I want to calibrate the camera. I've captured a BMP image of a grid and then I've used a vtkImageThreshold (I'm working with two cases: a grid of black stripes over a white background and a grid of black circles over a white background too). I'm trying to get the center pixel coords of every element to convert them to vtkPoints. I've used vtkImageSkeleton2D and I've obtained a cross (or a 'X shaped figure' of 1 pixel wide ) in every intersection of the grid and I'd like to know if it's possible to get the coordinates of the intersection of the two lines. Thanks Here is the code: package require vtk vtkBMPReader imagen1 imagen1 SetFileName "gridex.bmp" imagen1 Update vtkImageThreshold thresholdd threshold SetInput [imagen1 GetOutput] threshold ThresholdByUpper 150 threshold SetInValue 250 threshold SetOutValue 50 threshold ReleaseDataFlagOff vtkImageContinuousErode3D erode erode ReleaseDataFlagOff erode SetInput [threshold GetOutput] erode SetKernelSize 6 6 3 erode Update vtkImageContinuousDilate3D dilate dilate ReleaseDataFlagOff dilate SetInput [erode GetOutput] dilate SetKernelSize 11 11 3 dilate Update vtkImageVariance3D var var SetInput [dilate GetOutput] var SetKernelSize 10 10 1 vtkImageSkeleton2D skeleton1 skeleton1 SetInput [var GetOutput] skeleton1 SetPrune 1 skeleton1 SetNumberOfIterations 10 skeleton1 ReleaseDataFlagOff _______________________________________________________________ Yahoo! Messenger Nueva versin: Webcam, voz, y mucho ms Gratis! Descrgalo ya desde http://messenger.yahoo.es From goodwin.lawlor@ucd.ie Fri Oct 4 13:51:35 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Fri, 04 Oct 2002 13:51:35 +0100 Subject: [vtkusers] Writing Postscript files from VTK References: Message-ID: <003001c26ba4$c814a540$109701c1@highcross> Hi, It seems "GL2PS warning: Empty feedback buffer" crops up unless you call renwin->Render at least once *before* you call gl2psBeginPage(....); Goodwin ----- Original Message ----- From: "Carl Hetherington" To: "Melvin Hadasht" Cc: "VTK Mailing list" Sent: Thursday, October 03, 2002 5:21 PM Subject: Re: [vtkusers] Writing Postscript files from VTK > On Tue, 1 Oct 2002, Melvin Hadasht wrote: > > > Hi Carl, > > > > on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) > > Carl Hetherington wrote: > > > > > Hi, > > > > > > I'm interested in writing vector Postscript files of VTK renderings. > > > Consulting the mailing list archive suggests that gl2ps might be able to > > > do this. I've tried the following example: > > > > > > /* Set up a render window with a wireframe representation of a > > > ** vtkPolyData. > > > */ > > > > > > /* ... */ > > > > > > FILE* fp = fopen("test.eps", "w"); > > > int buffsize = 0; > > > int state = GL2PS_OVERFLOW; > > > > > > while (state == GL2PS_OVERFLOW) > > > { > > > buffsize += 1024*1024; > > > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > > > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > > > buffsize, fp, NULL); > > > > You should test for the return value of fopen. Maybe the problem was there. > > > > I don't know the following may help or not, but in an old code I had the > > filename also as the last argument of gl2psBeginPage{...char *filename; File *fp > > = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember > > why I did that. > > Thanks for the reply. Seems to be working today, so perhaps it was me not > checking the file pointer... idiot that I am. > > Thanks > > Carl > > _______________________________________________ > 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 vidya.sivakumar@quest-global.com Fri Oct 4 14:01:55 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Fri, 4 Oct 2002 09:01:55 -0400 Subject: [vtkusers] RE: vtkusers digest, Vol 1 #1311 - 10 msgs In-Reply-To: <20021004081401.1638.22704.Mailman@public.kitware.com> Message-ID: I recently ordered the vtk text book through amazon.com and got an copy of the book. -Vidya -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com]On Behalf Of vtkusers-request@public.kitware.com Sent: Friday, October 04, 2002 4:14 AM To: vtkusers@public.kitware.com Subject: vtkusers digest, Vol 1 #1311 - 10 msgs Send vtkusers mailing list submissions to vtkusers@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@public.kitware.com You can reach the person managing the list at vtkusers-admin@public.kitware.com When replying, please edit your Subject line so it is more specific than "Re: Contents of vtkusers digest..." Today's Topics: 1. vtk book - out of print?? (K.R.Subramanian) 2. events in Keyboard (=?iso-8859-1?q?marcelo=20oliveira?=) 3. Problem with vtkCamera::GetOrientationWXYZ (Paul A Hsieh) 4. Hi (ravi kiran) 5. Re: Window Name (Malcolm Drummond) 6. Re: Window Name is working (=?iso-8859-1?q?marcelo=20oliveira?=) 7. Re: Hi (anast.jm@pg.com) 8. Re: vtk book - out of print?? (Dave Reed) 9. Re: Freeing memory error!!! (Koning, P.J.H. de (LKEB)) 10. vtktextmapper doesn't display text (Nils Hanssen) --__--__-- Message: 1 Date: Thu, 03 Oct 2002 14:23:59 -0400 From: "K.R.Subramanian" Organization: Univ. of N. Carolina at Charlotte To: VTK HELP Subject: [vtkusers] vtk book - out of print?? I was wondering if the book is in print now (our bookstore sent me a note saying it was out of print) - I remember seeing a message that this was being resolved several months back. Anyone have a clue? -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs --__--__-- Message: 2 Date: Thu, 3 Oct 2002 16:38:56 -0300 (ART) From: =?iso-8859-1?q?marcelo=20oliveira?= To: vtkusers@public.kitware.com Subject: [vtkusers] events in Keyboard Hi users Im try to rotate, scale and translate the objects using keyboard, but im not have success. Where i can find examples, What is the class that i have to use. Tanks for you help and advaced me. _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. http://br.geocities.yahoo.com/ --__--__-- Message: 3 To: vtkusers@public.kitware.com From: "Paul A Hsieh" Date: Thu, 3 Oct 2002 12:52:31 -0700 Subject: [vtkusers] Problem with vtkCamera::GetOrientationWXYZ After a relatively long hiatus from this mailing list, I hope to be back on board. I am revising an application from using VTK 3.1 to 4.0 and I ran into an inconsistency in the result returned by vtkCamera::GetOrientationWXYZ. This is illustrated by the following C++ sample code: #include "vtkCamera.h" void main() { vtkCamera *cam = vtkCamera::New(); cam->SetPosition(40.5388, -58.1675, 36.4357); cam->SetFocalPoint(12.5875, 11.3799, 10.3485); cam->SetViewUp(-0.221512, 0.263181, 0.938972); cam->ComputeViewPlaneNormal(); // Needed for VTK 3.1 cam->OrthogonalizeViewUp(); float *wxyz = cam->GetOrientationWXYZ(); cout << wxyz[0] << " " << wxyz[1] << " " << wxyz[2] << " " << wxyz[3]; } When run using VTK 4.0 (nightly release, Oct 1, 2002), I get 284.514 0.937559 0.129517 0.322812 When run using VTK 3.1, I get 75.4863 0.937559 0.129517 0.322812 The first number (angle) differ in the two results. I think the number returned by VTK 4.0 is incorrect for the following reason. The method vtkCamera::GetOrientationXYZ() is used only in 2 classes, one of which is vtkVRMLExporter. In VTK3.1, vtkVRMLExporter generates a correct vrml file. In VTK4.0, vtkVRMLExporter does not generat a correct vrml file (the viewpoint is oriented in the wrong direction). Tracking the computation through the source code of VTK 3.1 versus 4.0, the main difference occurs in the row-column indexing of the matrix in the class vtkTransform. In particular, the method vtkTransform::GetOrientationWXYZ() is void vtkTransform::GetOrientationWXYZ(double wxyz[4]) { int i; this->Update(); // convenient access to matrix double (*matrix)[4] = this->Matrix->Element; double ortho[3][3]; for (i = 0; i < 3; i++) { ortho[0][i] = matrix[0][i]; ortho[1][i] = matrix[1][i]; ortho[2][i] = matrix[2][i]; } //...etc where ortho is subsequently used to compute w,x,y,z. If I transpose the ortho matrix, that is, change the above loop to for (i = 0; i < 3; i++) { ortho[i][0] = matrix[0][i]; ortho[i][1] = matrix[1][i]; ortho[i][2] = matrix[2][i]; } and rebuild VTK 4.0, then the above sample program gives the same result as that of VTK3.1. Also, the vrml file exported by vtkVRMLExporter is correct (viewpoint looks at the correct direction). The above suggests that either (1) the elements in the matrix of vtkTransform are stored in reversed row-column order, or (2) the row-column index is reversed somewhere during the computation of wxyz. Hope the above makes sense. Paul Hsieh --__--__-- Message: 4 From: "ravi kiran" To: vtkusers@public.kitware.com Date: Thu, 03 Oct 2002 20:18:06 +0000 Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --__--__-- Message: 5 From: "Malcolm Drummond" To: "vtkusers" Subject: Re: [vtkusers] Window Name Date: Thu, 3 Oct 2002 22:41:56 +0200 Organization: GeoVision Hi Marcelo Under Windows, if you call 'Initialize' before setting the window name, it will be created with the name you've given it. Malcolm ----- Original Message ----- From: "marcelo oliveira" To: Sent: Thursday, October 03, 2002 3:56 PM Subject: [vtkusers] Window Name > Hi users !! > > I think that is Bug > > When i try change the name of Window using: > > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > anything change > > but when i use: > > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > the name change. > > Im using Win XP and VTK 4.0 > > Tanks for your help and advanced me > > Marcelo > > > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. > http://br.geocities.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > --__--__-- Message: 6 Date: Thu, 3 Oct 2002 18:04:32 -0300 (ART) From: =?iso-8859-1?q?marcelo=20oliveira?= Subject: Re: [vtkusers] Window Name is working To: vtk-users Yes, is working. I just have to set Start(); Tank u Malcom --- Andy Cedilnik escreveu: > Hello Marcelo, > > This is a known bug and is caused by the window not > being there yet when > you do SetWindowName. The first render creates > window, then you can set > the name. > > Andy > > On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > > I think that is Bug > > > > When i try change the name of Window using: > > > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > anything change > > > > but when i use: > > > > renWin->Render(); > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > the name change. > > > > Im using Win XP and VTK 4.0 > > > > Tanks for your help and advanced me > > _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas fceis de usar, espao de sobra e acessrios. http://br.geocities.yahoo.com/ --__--__-- Message: 7 Subject: Re: [vtkusers] Hi To: vtkusers@public.kitware.com From: anast.jm@pg.com Date: Thu, 3 Oct 2002 17:01:42 -0400 Perhaps vtkUnstructuredGrid::GetCellPoints is what you are looking for ...john "ravi kiran" @public.kitware.com on 10/03/2002 04:18:06 PM Sent by: vtkusers-admin@public.kitware.com To: vtkusers@public.kitware.com cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ 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: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers --__--__-- Message: 8 Date: Thu, 3 Oct 2002 18:05:05 -0400 From: Dave Reed To: krs@cs.uncc.edu Cc: vtkusers@public.kitware.com Subject: [vtkusers] Re: vtk book - out of print?? > From: "K.R.Subramanian" > Organization: Univ. of N. Carolina at Charlotte > X-Accept-Language: en > Sender: vtkusers-admin@public.kitware.com > Date: Thu, 03 Oct 2002 14:23:59 -0400 > > > I was wondering if the book is in print now (our bookstore sent me a note > saying it was out of print) - I remember seeing a message that this was being > resolved several months back. > > Anyone have a clue? > > -- krs See a message from Will on September 11. I believe they've obtained the rights to it, but it is not yet available. Dave --__--__-- Message: 9 From: "Koning, P.J.H. de (LKEB)" Reply-To: "Koning, P.J.H. de (LKEB)" To: vtkusers@public.kitware.com, jose manjon Date: Fri, 04 Oct 2002 08:57:17 +0200 Organization: LUMC Subject: Re: [vtkusers] Freeing memory error!!! 03-10-02 10:10:12, jose manjon wrote: >Hi there, > >I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. > >I do all the Delete() for all the objects but it has no response. > >can anyone tell me what I am doing wrong?? > If you don't remove the actors from the renderer the will be deleted when the renderer is deleted and not sooner. >thanks > >jose > >the code: > > >CRenderView::CRenderView() >{ > opacidad=0; >} > > >CRenderView::~CRenderView() >{ > AfxMessageBox("freeing ..."); > > datos1->Delete(); > datos2->Delete(); > datos3->Delete(); > lut->Delete(); > plane1->Delete(); > plane2->Delete(); > plane3->Delete(); > planeMapper1->Delete(); > planeMapper2->Delete(); > planeMapper3->Delete(); > text1->Delete(); > text2->Delete(); > text3->Delete(); > planeActor1->Delete(); > planeActor2->Delete(); > planeActor3->Delete(); > > AfxMessageBox("free"); >} > >void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) >{ > // ORTHOGONAL VIEWER > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v1->IA; > int ny=v2->IA; > int nz=v3->IA; > > > lut=vtkLookupTable::New(); > lut->SetNumberOfColors(256); > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > datos1=vtkStructuredPoints::New(); > datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); > datos1->SetScalarType(VTK_UNSIGNED_SHORT); > datos1->SetNumberOfScalarComponents(1); > datos1->AllocateScalars(); > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > plane1=vtkPlaneSource::New(); > plane1->SetNormal(0,0,1); > planeMapper1=vtkPolyDataMapper::New(); > planeMapper1->SetInput(plane1->GetOutput()); > text1=vtkTexture::New(); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1=vtkActor::New(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > datos2=vtkStructuredPoints::New(); > datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos2->SetScalarType(VTK_UNSIGNED_SHORT); > datos2->SetNumberOfScalarComponents(1); > datos2->AllocateScalars(); > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane2=vtkPlaneSource::New(); > plane2->SetNormal(0,1,0); > plane2->SetOrigin(-0.5,0,-yr); > plane2->SetPoint1(0.5,0,-yr); > plane2->SetPoint2(-0.5,0,yr); > plane2->SetXResolution(1); > plane2->SetYResolution(1); > planeMapper2=vtkPolyDataMapper::New(); > planeMapper2->SetInput(plane2->GetOutput()); > text2=vtkTexture::New(); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2=vtkActor::New(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > datos3=vtkStructuredPoints::New(); > datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos3->SetScalarType(VTK_UNSIGNED_SHORT); > datos3->SetNumberOfScalarComponents(1); > datos3->AllocateScalars(); > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > plane3=vtkPlaneSource::New(); > plane3->SetNormal(1,0,0); > plane3->SetOrigin(0,-0.5,-yr); > plane3->SetPoint1(0, 0.5,-yr); > plane3->SetPoint2(0,-0.5, yr); > plane3->SetXResolution(1); > plane3->SetYResolution(1); > planeMapper3=vtkPolyDataMapper::New(); > planeMapper3->SetInput(plane3->GetOutput()); > text3=vtkTexture::New(); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3=vtkActor::New(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > /////////// CUBO ///////////////////////////////////////////////////// > > vtkCubeSource * cube=vtkCubeSource::New(); > cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); > vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); > cubeMapper->SetInput(cube->GetOutput()); > vtkActor *cubeActor=vtkActor::New(); > cubeActor->SetMapper(cubeMapper); > cubeActor->GetProperty()->SetRepresentationToWireframe(); > > /////////// RENDER ///////////////////////////////////////////////////// > > this->Renderer->SetBackground(0.05,0.15,0.45); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > this->Renderer->AddActor(cubeActor); > > vtkCamera * cam=this->Renderer->GetActiveCamera(); > cam->Elevation(90); > cam->Azimuth(180); > > vtkLight *light1 = vtkLight::New(); > light1->SetPosition(1,0,1); > > vtkLight *light2 = vtkLight::New(); > light2->SetPosition(0,1,1); > > vtkLight *light3 = vtkLight::New(); > light3->SetPosition(-1,0,1); > > vtkLight *light4 = vtkLight::New(); > light4->SetPosition(0,-1,1); > > this->Renderer->AddLight(light1); > this->Renderer->AddLight(light2); > this->Renderer->AddLight(light3); > this->Renderer->AddLight(light4); > > cube->Delete(); > cubeMapper->Delete(); > cubeActor->Delete(); > > Actualizar(); >} > > >void CRenderView::Actualizar() >{ > this->Renderer->RemoveActor(planeActor1); > this->Renderer->RemoveActor(planeActor2); > this->Renderer->RemoveActor(planeActor3); > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v3->IA; > int ny=v2->IA; > int nz=v1->IA; > > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); > > planeMapper1->SetInput(plane1->GetOutput()); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); > > planeMapper2->SetInput(plane2->GetOutput()); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > > plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); > > planeMapper3->SetInput(plane3->GetOutput()); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > > this->Renderer->GetRenderWindow()->Render(); >} > >void CRenderView::SetOpacity(double opa) >{ > opacidad=opa*256; > Actualizar(); >} > > > > > > > \\|// > (@ @) > +--------------------oOO----(_)----OOo-----------------------+ > | | > | Prof. Jose Vicente Manjn Herrera | > | | > | Group of Medical Bioinformatics | > | Department of Aplied Physics | > | Computer Science High School | > | Technical University of Valencia | > | Spain | > | | > | Email:jmanjon@fis.upv.es | > | | > +------------------------------------------------------------+ > |__|__| > || || > ooO Ooo > > >_______________________________________________ >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 > --__--__-- Message: 10 From: "Nils Hanssen" To: Date: Fri, 4 Oct 2002 10:12:43 +0200 Subject: [vtkusers] vtktextmapper doesn't display text This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, i am using vtk 4.1.1 and have problems with the vtktextmapper: It doesn't display text at all. I took the code directly from the examples, but nothing is displayed. I read somewhere that the textmappers are kind of "deprecated" and will be replaced by new mappers. What can I do for now to get it work? Thanks in advance! Regards, Nils ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
i am = using vtk 4.1.1=20 and have problems with the vtktextmapper: It doesn't display text at = all. I took=20 the code directly from the examples, but nothing is=20 displayed.
 
I read = somewhere=20 that the textmappers are kind of "deprecated" and will be replaced by = new=20 mappers.
What = can I do for=20 now to get it work?
 
Thanks = in=20 advance!
 
Regards,
Nils
 
------=_NextPart_000_0012_01C26B8E.94913EB0-- --__--__-- _______________________________________________ vtkusers mailing list vtkusers@public.kitware.com http://public.kitware.com/mailman/listinfo/vtkusers End of vtkusers Digest From wind@climate.gsfc.nasa.gov Fri Oct 4 14:11:34 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Fri, 4 Oct 2002 06:11:34 -0700 Subject: [vtkusers] image 2d -> vector? In-Reply-To: <3D9D70EA.4030508@skynet.be> Message-ID: Depends on what kind of image that is, I guess. Can you give me some more details on what exactly you're trying to do? On Friday, October 4, 2002, at 03:43 AM, imho wrote: > How do I get a coordonate vector (x,y) from an image 2D? > > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From dshamoni@science.uva.nl Fri Oct 4 14:33:22 2002 From: dshamoni@science.uva.nl (Denis Shamonin) Date: Fri, 04 Oct 2002 15:33:22 +0200 Subject: [vtkusers] VTK 4.1.1 and Qt 3.*.* - vtkQGL ??? Message-ID: <3D9D98A1.BE3873B1@science.uva.nl> Hi all, Does anybody update vtkQGL for VTK 4.1.1 and Qt 3.*.* I am trying to do it and it almost work, but with some bugs. Maybe who did it before can help me. vtkQGL from http://www.medinf.mu-luebeck.de/~ehrhardt/vtkQGL/vtkQGL.html -Denis Shamonin. Section Computational Science University of Amsterdam Kruislaan 403, 1098 SJ Amsterdam the Netherlands From dan@chalkie.org.uk Fri Oct 4 14:42:43 2002 From: dan@chalkie.org.uk (Dr. Dan White) Date: Fri, 4 Oct 2002 16:42:43 +0300 Subject: [vtkusers] TIFF data set incorrectly displayed -what am I doing wrong!? Message-ID: <28C3497E-D79F-11D6-8580-000393686412@chalkie.org.uk> Dear all, I'm trying to volume render a set of 20 z slices in tiff format in a=20 tk window using a python script modified from one found at atamai.org=20 (tkvolumelod.py) My data seems not to be read properly. The tiff=20 files are from a confocal microscope, and are a series of z slices=20 through a living cell. Data is from PC, but I am doing this on linux,=20 so I have to SetDataByteOrderToLittleEndian() right (see script=20 below)? The data should look like a hollow half sphere, but appears=20 as arrays of little rectangles, no matter how I adjust the opacity=20 and colour transfer functions in the script. My python script is below (modified from atamai.org so it reads tiff=20 files as a dataset) I am using vtkTIFFReader, and believe I am specifying the fileseries=20 as a 102x119x20 data set with 1x1x3 spacing. my command is like python volrendscript.py fileprefix my tiff files are named for instance fileprefix01.tif fileprefix02.tif etc . to fileprefix20.tif In gimp if I look at one of the tiff images in the middle of the=20 stack and do a histogram I can see that there a re pixels of all=20 values from 0 to 255. It seems like data is loaded and something is=20 displayed (no segmentation faults, or other errors at the command=20 prompt, and I can rotate it around and zoom just fine), but it looks=20 nothing like the images the rendered dataset is made from. The bottom=20 of the stack seems to be displayed with high values (in my case=20 green) and the higher slices are orange then red at the top. Seems=20 like the problem might lie here? Hope someone can spot my problem...I'm stumped! Cheers Dan #!/usr/local/bin/python from Tkinter import * # check for correct usage import sys if sys.argv[1:]: filename =3D sys.argv[1] else: filename =3D "phantom.mnc" # load the VTK stuff import paths from RenderPane import * from VolumeFactory import * from ConeCursorFactory import * # put together the VTK rendering pipeline # read the files and add them to the othoplanes reader =3D vtkTIFFReader() reader.SetFilePrefix(filename) reader.SetFilePattern("%s%02i.tif") reader.SetDataExtent(0,101,0,118,1,20) reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToLittleEndian() (minval,maxval) =3D (0,255) input =3D reader.GetOutput() cast0 =3D vtkImageShiftScale() cast0.SetInput(reader.GetOutput()) cast0.SetShift(-minval) cast0.SetScale(255.0/(maxval-minval)) cast0.SetOutputScalarTypeToUnsignedChar() cursor =3D ConeCursorFactory() opacityTransferFunction0 =3D vtkPiecewiseFunction() opacityTransferFunction0.AddPoint( 0 , 0.0 ) opacityTransferFunction0.AddPoint( 50 , 0.1 ) opacityTransferFunction0.AddPoint( 100, 0.1 ) opacityTransferFunction0.AddPoint( 150, 0.2 ) opacityTransferFunction0.AddPoint( 255, 0.2 ) colorTransferFunction0 =3D vtkColorTransferFunction() # colorTransferFunction0.AddHSVPoint( 0, 0.02, 0.8, 0.0 ) # colorTransferFunction0.AddHSVPoint( 100, 0.02, 0.4, 0.6 ) # colorTransferFunction0.AddHSVPoint( 255, 0.03, 0.2, 1.0 ) colorTransferFunction0.AddHSVPoint( 0 , 0.00, 1.0, 1.0 ) colorTransferFunction0.AddHSVPoint( 100, 90.0, 1.0, 1.0 ) colorTransferFunction0.AddHSVPoint( 255, 270.0, 1.0, 1.0 ) colorTransferFunction0.SetColorSpaceToHSV() # set up the volume volume =3D VolumeFactory() volume.SetInput(cast0.GetOutput()) volume.SetColorTransferFunction(colorTransferFunction0) volume.SetOpacityTransferFunction(opacityTransferFunction0) volume.GetVolumeProperty().ShadeOff() volume.SetPickThreshold(0.99) root =3D Tk() # create the rendering pane, add the actors pane =3D RenderPane(root,width=3D500,height=3D500) pane.ConnectActorFactory(volume) pane.ConnectCursor(cursor) pane.pack(expand=3D'true',fill=3D'both') volume.Render() root.mainloop() # end of python script dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) From Steffen.Oeltze@Student.Uni-Magdeburg.DE Fri Oct 4 14:43:07 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Fri, 04 Oct 2002 15:43:07 +0200 Subject: [vtkusers] retrieving mouse position in a vtkRenderWindow Message-ID: <3D9D9AEB.6010708@student.uni-magdeburg.de> Hi, I would like to output the mouse position (x,y) in a vtkRenderWindow each time the user presses a mouse button. Can anybody help me ? Steffen Oeltze From anast.jm@pg.com Fri Oct 4 14:50:32 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Fri, 4 Oct 2002 09:50:32 -0400 Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Message-ID: Sam, vtk can do this using the class vtkDelauney3D. I've not seen any public= domain code in MatLab to do this (not to say there isn't any) but have you loo= ked at the commercial package FEMLAB which works with MatLab to do finite elem= ent stuff. Maybe they have meshing tools in there. By the way vtk can be ca= lled from MatLab through the Java interface...john Samuel Rodr=EDguez Bescos @public.kitware.com = on 10/04/2002 07:02:05 AM Sent by: vtkusers-admin@public.kitware.com To: cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Hello everybody, Could anybody know an algorithm=A0for creating =A0a Volumetric Mesh fr= om a set of points? =A0and if It is implemented in MATLAB?. Thanks in advance, Sam = From nundys@neuro.duke.edu Fri Oct 4 15:41:00 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Fri, 4 Oct 2002 10:41:00 -0400 Subject: [vtkusers] Java-VTK broken on Mac OS X 10.2.1 Message-ID: <4D0ED46F-D7A7-11D6-8A09-000393B290A0@neuro.duke.edu> Having "successfully" compiled VTK on 10.1.5 and 10.2.1, I find that the tests on 10.2.1 do not work unless I compile telling cmake to use shared libraries. I am stuck, however, in that all the Java-vtk functions that I was using somewhat successfully in 10.1.5 are now broken on 10.2.1. This means that I will have to reformat and return to 10.1.5, not a pleasant prospect. Could someone please help me not have to do this? thanks, Surajit Nundy From wind@climate.gsfc.nasa.gov Fri Oct 4 15:59:01 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Fri, 4 Oct 2002 07:59:01 -0700 Subject: [vtkusers] Java-VTK broken on Mac OS X 10.2.1 In-Reply-To: <4D0ED46F-D7A7-11D6-8A09-000393B290A0@neuro.duke.edu> Message-ID: Are you using the nightly release? I had to download the nightly VTK release to make it work with 10.2.1. Also, which compiler versions are you using? -- Gala On Friday, October 4, 2002, at 07:41 AM, Surajit Nundy wrote: > Having "successfully" compiled VTK on 10.1.5 and 10.2.1, I find that > the tests on 10.2.1 do not work unless I compile telling cmake to use > shared libraries. > > I am stuck, however, in that all the Java-vtk functions that I was > using somewhat successfully in 10.1.5 are now broken on 10.2.1. This > means that I will have to reformat and return to 10.1.5, not a > pleasant prospect. Could someone please help me not have to do this? > > thanks, > Surajit Nundy > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From winston@cat.rpi.edu Fri Oct 4 16:42:59 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Fri, 04 Oct 2002 11:42:59 -0400 Subject: [vtkusers] retrieving mouse position in a vtkRenderWindow References: <3D9D9AEB.6010708@student.uni-magdeburg.de> Message-ID: <3D9DB703.289E90F2@cat.rpi.edu> Steffen Oeltze wrote: > > Hi, > > I would like to output the mouse position (x,y) in a vtkRenderWindow each > time the user presses a mouse button. Can anybody help me ? See the examples at http://public.kitware.com/VTK/doc/release/4.0/html/c2_vtk_e_2.html#c2_vtk_e_vtkTextMapper annotatePick.tcl does what you want, except it does so when the user presses 'p' instead of mouse-clicking. You should be able to bind your callback to the mouse-click, but how depends on your language (Tcl/Tk, C++, Python). HTH, -Jeremy From Steffen.Oeltze@Student.Uni-Magdeburg.DE Fri Oct 4 17:46:35 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Fri, 04 Oct 2002 18:46:35 +0200 Subject: [vtkusers] vtkInteractorStyle Message-ID: <3D9DC5EB.30507@student.uni-magdeburg.de> Hi, I would like to define my own interactor style by using a procedure that shall be invoked whenever the user presses a mouse button. I'm using myInteractorStyle->SetLeftButtonPressMethodArgDelete(myMethod). Unfortunately, I seem to have a problem with C-syntax. What does > void SetButtonPressMethodArgDelete (void(*f)(void *)) exactly mean, especially the " (void(*f)(void *)) " - part ? Regards, Steffen From vcravikiran@hotmail.com Fri Oct 4 19:27:55 2002 From: vcravikiran@hotmail.com (ravi kiran) Date: Fri, 04 Oct 2002 18:27:55 +0000 Subject: [vtkusers] Please Help Message-ID:


Hi,
I have a problem determining the coordinates of the points of each element
in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a
simple cube generated by a matrix of 10 by 10 by 10 points. Now i need to determine the coordinates of the points of each tetrahedral element generated. I need to determine the points that form each element. What do i have to do?Can anyone please help
me solve this problem?
Thanx
Ravi



Join the worlds largest e-mail service with MSN Hotmail. Click Here
From prabhu@aero.iitm.ernet.in Fri Oct 4 20:08:00 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 5 Oct 2002 00:38:00 +0530 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow In-Reply-To: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> Message-ID: <15773.59152.211461.964350@monster.linux.in> >>>>> "BR" == Benoit Regrain writes: BR> I believe I might have found two bugs in the class BR> wxVTKRenderWindow as encountered in BR> VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working BR> on Windows 2000 with the VTKNightly dated 10/02/2002. BR> I could fix this problem, by changing the line 164 by : try: BR> size = parent.GetSize() except: size = wxDefaultSize The BR> try/except is used to protect the call to parent. 2 points here: 1. I think blanket except clauses are not a good idea (unless unavoidable). I'd prefer something like: try: size = parent.GetSize() except AttributeError: size = wxDefaultSize Or something like that. I dont get an exception under Linux so don't know what exception you are trying to catch here. Could you care to elaborate? BR> - When the script wxVTKRenderWindow.py is launched and when BR> killing the window (by clicking on the window close button, BR> the one with a cross at the upper right), I get the following BR> error message in the Python console : runtime error R6025 - BR> def __del__(self): renderers = BR> self._RenderWindow.GetRenderers() numRenderers = BR> renderers.GetNumberOfItems() self._CurrentRenderer = None BR> renderers.InitTraversal() for i in range(0,numRenderers): BR> self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) This could be added but I have one question here. IIRC __del__ is actually called only after the window is killed and any "bad behaviour" can occur when the window is alive. Ok, there is the case that the window is dead and the actors are still alive. But are we guaranteed that __del__ will be called as soon as the window is destroyed? The order of destruction of the objects also matters here. I dont remember clearly but is there a way to always call a function *before* a widget (I mean any widget) is destroyed and not at object destruction? If the renderers maybe removed in that function. However, its been a while since I used wxPython so I cant remember the exact thing to do. Could any experienced wxPythoners comment on this? cheers, prabhu From fusion@thuule.pair.com Fri Oct 4 21:32:37 2002 From: fusion@thuule.pair.com (Alan McIntyre) Date: Fri, 04 Oct 2002 16:32:37 -0400 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> Message-ID: <3D9DFAE5.7090707@thuule.pair.com> Steffen, The "void(*f)(void *)" parameter is a pointer to a C function that looks like this: void func(void *); How much that helps you out I don't know. If you could post some more code I can try to help, even though I haven't done much with VTK in C++. Hope this helps, Alan Steffen Oeltze wrote: > Hi, > > I would like to define my own interactor style by using a procedure that > shall be invoked whenever the user presses a mouse button. I'm using > myInteractorStyle->SetLeftButtonPressMethodArgDelete(myMethod). > Unfortunately, I seem to have a problem with C-syntax. What does > >> void SetButtonPressMethodArgDelete (void(*f)(void *)) > > > exactly mean, especially the " (void(*f)(void *)) " - part ? > > Regards, > Steffen From brownr@ucalgary.ca Fri Oct 4 23:22:11 2002 From: brownr@ucalgary.ca (Robb Brown) Date: Fri, 4 Oct 2002 16:22:11 -0600 Subject: [vtkusers] Polygon from a mask? Message-ID: I have a raw file that contains a mask -- 1 for inside, 0 for outside. I'd like to generate a vtkPolyData from this data. Right now I'm importing the raw file into a vtkImageData and using a contouring filter to convert it to vtkPolyData. The problem is, the volume is not preserved. Using vtkMarchingCubes() the poly's volume is too small and with vtkImageMarchingCubes, it is too big (compared to the volume indicated by the mask). Is there a way to generate polygon data from a mask the preserves the volume? Thanks, Robb -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From Steffen.Oeltze@Student.Uni-Magdeburg.DE Fri Oct 4 23:49:58 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sat, 05 Oct 2002 00:49:58 +0200 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> Message-ID: <3D9E1B16.6050702@student.uni-magdeburg.de> Alan McIntyre wrote: > Steffen, > > The "void(*f)(void *)" parameter is a pointer to a C function that > looks like this: > > void func(void *); > > How much that helps you out I don't know. If you could post some more > code I can try to help, even though I haven't done much with VTK in C++. > The function I use is: void SliceView::get_mousePos(void *) { .................. } The function declaration is: void get_mousePos(void *); The assignment (which doesn't work) of the function: interactorStyle->SetLeftButtonPressMethodArgDelete(get_mousePos()); From fusion@thuule.pair.com Sat Oct 5 00:48:58 2002 From: fusion@thuule.pair.com (Alan McIntyre) Date: Fri, 04 Oct 2002 19:48:58 -0400 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> Message-ID: <3D9E28EA.10002@thuule.pair.com> Steffen, As far as passing function pointers goes, there is a difference between this: obj->SetSomething(my_function()); and this: obj->SetSomething(&my_function); The first one passes the result of a call to function() into the SetSomething method, while the second one passes the address of the 'my_function' function into the SetSomething method. I think the '&' in the second example isn't necessary in the eyes of some (most?) compilers, but having it there doesn't do any harm as far as I know. The second example is the one you want in your particular case. As for passing a C++ class method in as the parameter to SetLeftButtonPressMethodArgDelete, I'm not exactly sure about the 'proper' way to do that, since it appears to be expecting a plain C function. What kind of compiler error are you getting? I don't have the VTK source on my machine here at home right now, so I'm kind of in the dark as to the usage/behavior of SetLeftButtonPressMethodArgDelete, but I'm wondering if the reason the it expects a pointer to a function with a void* parameter is so that class methods can be given to it. If I recall correctly, isn't the pointer to the object pushed onto the stack (kind of like an invisible first parameter) when calling class methods? If that's the case, perhaps the get_mousePos(void*) method in Steffen's example could be passed if it was declared like this: void get_MousePos(); Somebody please let me know if I'm totally clueless here; I don't want to give Steffen any bad info. Thanks, Alan Steffen Oeltze wrote: > > Alan McIntyre wrote: > >> Steffen, >> >> The "void(*f)(void *)" parameter is a pointer to a C function that >> looks like this: >> >> void func(void *); >> >> How much that helps you out I don't know. If you could post some more >> code I can try to help, even though I haven't done much with VTK in C++. >> > The function I use is: > > void SliceView::get_mousePos(void *) > { > .................. > } > > The function declaration is: > > void get_mousePos(void *); > > The assignment (which doesn't work) of the function: > > interactorStyle->SetLeftButtonPressMethodArgDelete(get_mousePos()); > > _______________________________________________ > 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 PS7278514B@ntu.edu.sg Sat Oct 5 06:14:30 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sat, 5 Oct 2002 13:14:30 +0800 Subject: [vtkusers] about the BMP slice Read & 3D Rendering. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE425A7C@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I meet the problem when I read a stack of 512x512x256 BMP file. I used the vtkImageReader class instead of vtkVolume16Reader class = because It was not a 16 bit image format. I could not get the correct rendering of each organ such as only the = rendering of the bone in the BMP slice. Here is my source code: vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("g:/00head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,100,0,100,1,12); reader->SetDataSpacing(1,1,0.5); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=3DvtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,1150); vtkPolyDataMapper *isoMapper=3DvtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); vtkActor *isoActor=3DvtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(1,1,1); vtkRenderer *ren1 =3D vtkRenderer::New(); ren1->AddActor(isoActor); ren1->SetBackground(0.2,0.3,0.5); =09 vtkRenderWindow *renWin =3D vtkRenderWindow::New(); renWin->AddRenderer(ren1); renWin->SetSize(600,600); vtkRenderWindowInteractor *iren =3D vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); =09 =09 renWin->Render(); iren->Start(); How could I do? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Sat Oct 5 09:49:50 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sat, 5 Oct 2002 16:49:50 +0800 Subject: [vtkusers] the quarter file format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE425A7D@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format abot Vtk provided quarter file. I meaned is it from *.BMP, *.Tiff........... ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From Steffen.Oeltze@Student.Uni-Magdeburg.DE Sat Oct 5 10:43:42 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sat, 05 Oct 2002 11:43:42 +0200 Subject: [vtkusers] retrieving mouse position Message-ID: <3D9EB44E.3020707@student.uni-magdeburg.de> Hi, I would like to retrieve the mouse position whenever the user clicks into a vtkRenderWindow. Unfortunately, I have problems writing my own vtkInteractorStyle using C++. Does anybody have experience with that ? Steffen From Steffen.Oeltze@Student.Uni-Magdeburg.DE Sat Oct 5 10:46:13 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sat, 05 Oct 2002 11:46:13 +0200 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> Message-ID: <3D9EB4E5.8090804@student.uni-magdeburg.de> Alan McIntyre wrote: > Steffen, > > As far as passing function pointers goes, there is a difference > between this: > > obj->SetSomething(my_function()); > > and this: > > obj->SetSomething(&my_function); I receive an error during compiling saying that this is not a valid call for a member-function. obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); > > > The first one passes the result of a call to function() into the > SetSomething method, while the second one passes the address of the > 'my_function' function into the SetSomething method. I think the '&' > in the second example isn't necessary in the eyes of some (most?) > compilers, but having it there doesn't do any harm as far as I know. > The second example is the one you want in your particular case. > > As for passing a C++ class method in as the parameter to > SetLeftButtonPressMethodArgDelete, I'm not exactly sure about the > 'proper' way to do that, since it appears to be expecting a plain C > function. What kind of compiler error are you getting? > > I don't have the VTK source on my machine here at home right now, so > I'm kind of in the dark as to the usage/behavior of > SetLeftButtonPressMethodArgDelete, but I'm wondering if the reason the > it expects a pointer to a function with a void* parameter is so that > class methods can be given to it. If I recall correctly, isn't the > pointer to the object pushed onto the stack (kind of like an invisible > first parameter) when calling class methods? If that's the case, > perhaps the get_mousePos(void*) method in Steffen's example could be > passed if it was declared like this: > > void get_MousePos(); > > Somebody please let me know if I'm totally clueless here; I don't want > to give Steffen any bad info. > > Thanks, > Alan Thank you very much, Steffen > From winston@cat.rpi.edu Sat Oct 5 14:05:04 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Sat, 05 Oct 2002 09:05:04 -0400 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> <3D9EB4E5.8090804@student.uni-magdeburg.de> Message-ID: <3D9EE380.DEDB4F85@cat.rpi.edu> Steffen Oeltze wrote: > > Alan McIntyre wrote: > > > Steffen, > > > > As far as passing function pointers goes, there is a difference > > between this: > > obj->SetSomething(my_function()); > > and this: > > obj->SetSomething(&my_function); > > I receive an error during compiling saying that this is not a valid call > for a member-function. > > obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); Shouldn't it just be "(this->get_mousePos)" ? (Versus "(&this->get_mousePos)" or "(this->get_mousePos())" ). -Jeremy From Steffen.Oeltze@Student.Uni-Magdeburg.DE Sat Oct 5 14:58:30 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sat, 05 Oct 2002 15:58:30 +0200 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> <3D9EB4E5.8090804@student.uni-magdeburg.de> <3D9EE380.DEDB4F85@cat.rpi.edu> Message-ID: <3D9EF006.3040703@student.uni-magdeburg.de> --------------080008000708020008050505 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Jeremy Winston wrote: >Steffen Oeltze wrote: > >>Alan McIntyre wrote: >> >>>Steffen, >>> >>>As far as passing function pointers goes, there is a difference >>>between this: >>> obj->SetSomething(my_function()); >>>and this: >>> obj->SetSomething(&my_function); >>> >>I receive an error during compiling saying that this is not a valid call >>for a member-function. >> >>obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); >> > >Shouldn't it just be > > "(this->get_mousePos)" ? > >(Versus "(&this->get_mousePos)" > or "(this->get_mousePos())" ). > You are right but this doesn't work either. I have programed a slice viewer object which has a mapper, a render window and an interactor. Now, I'd like to define my own vtkInteractorStyleUser. My source code is: ... vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); intAct->SetInteractorStyle(style); ... void SliceView::get_mousePos(void *) { ... } The error I get is: coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void *)' is not possible --------------080008000708020008050505 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Jeremy Winston wrote:
Steffen Oeltze wrote:
Alan McIntyre wrote:

Steffen,

As far as passing function pointers goes, there is a difference
between this:
obj->SetSomething(my_function());
and this:
obj->SetSomething(&my_function);
I receive an error during compiling saying that this is not a valid call
for a member-function.

obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos);

Shouldn't it just be

"(this->get_mousePos)" ?

(Versus "(&this->get_mousePos)"
or "(this->get_mousePos())" ).
You are right but this doesn't work either. I have programed a slice viewer object which
has a mapper, a render window and an interactor. Now, I'd like to define my own
vtkInteractorStyleUser. My source code is:

...
vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New();
vtkInteractorStyleUser *style = vtkInteractorStyleUser::New();
    style->SetLeftButtonPressMethodArgDelete(this->get_mousePos);
    intAct->SetInteractorStyle(style);
...

void SliceView::get_mousePos(void *)
{           
    ...
}

The error I get is:

coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void *)' is not possible


--------------080008000708020008050505-- From vidya.sivakumar@quest-global.com Sun Oct 6 20:31:22 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Sun, 6 Oct 2002 15:31:22 -0400 Subject: [vtkusers] window size Message-ID: Hi All, Is there any method that increases the size of the display window. I am using Java with VTK. Any input in this regard is appreciated. Thanks in advance, Vidya From PS7278514B@ntu.edu.sg Mon Oct 7 02:39:04 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Mon, 7 Oct 2002 09:39:04 +0800 Subject: [vtkusers] the quarter file format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB17@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format abot Vtk provided quarter file. I meaned is it from *.BMP, *.Tiff........... ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From Malve.Heman@geind.ge.com Mon Oct 7 05:37:48 2002 From: Malve.Heman@geind.ge.com (Heman, Malve (MED, Contractor)) Date: Mon, 7 Oct 2002 10:07:48 +0530 Subject: [vtkusers] (no subject) Message-ID: <10B96F9B1453D61191B400508B650D9402B3CA6A@ban03xbindge> how to read the medical images & display it. send the sorce code for this one. "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 7 09:07:28 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 07 Oct 2002 10:07:28 +0200 Subject: Antw: Re: [vtkusers] vtkInteractorStyle References: Message-ID: <3DA140C0.7020702@student.uni-magdeburg.de> Gregory Bleiker wrote: >Hi Steffen >Are you using VC++? If so, there's a preference to set to make the function definition c-style... tell me if you need a more precise description. > >Greetings >Gregi > Yes, please. From PS7278514B@ntu.edu.sg Mon Oct 7 09:23:41 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Mon, 7 Oct 2002 16:23:41 +0800 Subject: [vtkusers] the Quarter files Format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format about Vtk provided headsq quarter file. It is not the dicom files. It is also not imaging files. It could not read in after I used many image reading software. which software or program can read these slices.=20 Thanks very much! ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From sebaaihb@linux.zrz.TU-Berlin.DE Mon Oct 7 09:25:02 2002 From: sebaaihb@linux.zrz.TU-Berlin.DE (Sebastian Loebbert) Date: Mon, 7 Oct 2002 10:25:02 +0200 (CEST) Subject: [vtkusers] rendering into buffer Message-ID: Hi all, is there a way to (volume) render into a buffer instead of a vtkRenderWindow? I would like to render a volume into a buffer, then postprocess this buffer (merge it with some other image information) and finally display the postprocessed buffer. Thanks in advance, Sebastian From c.p.botha@its.tudelft.nl Mon Oct 7 09:30:21 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 07 Oct 2002 10:30:21 +0200 Subject: [vtkusers] the Quarter files Format. In-Reply-To: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> References: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> Message-ID: <1033979421.11627.22.camel@dutidad> On Mon, 2002-10-07 at 10:23, #YAN RI AN# wrote: > I did not know which format about Vtk provided headsq quarter file. > It is not the dicom files. > It is also not imaging files. > It could not read in after I used many image reading software. > which software or program can read these slices. Please search the VTK examples as well when you have questions. In this case, e.g. ImagePlaneWidget.tcl shows you how to read this data. The data is raw 16 bits per voxel, little endian, 64x64x93. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 7 10:17:24 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 07 Oct 2002 11:17:24 +0200 (MEST) Subject: [vtkusers] mouse interaction Message-ID: <1033982243.3da1512401f61@webmail.uni-magdeburg.de> Dear VTK-users, if ever somebody has programmed a mouse interaction for VTK in C++, I'm interested in it. Steffen From jiang@TI.FhG.DE Mon Oct 7 10:47:41 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Mon, 7 Oct 2002 11:47:41 +0200 Subject: [vtkusers] How to visualize a set of image slices by vtk? Message-ID: Hello, dear vtkusers, I work with medical image. Now I get a set of images and store them in the memory as an array. I want to visualize them as a cube. How can I do? Furthermore, I'm not familiar with vtk. Could some one do me a faver and giving me an example? I use MFC as user interface. Thank you very much! Chunyan Jiang *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From jeff@cdnorthamerica.com Mon Oct 7 11:41:25 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Mon, 07 Oct 2002 06:41:25 -0400 Subject: [vtkusers] window size References: Message-ID: <3DA164D5.8080703@cdnorthamerica.com> vidya sivakumar wrote: >Hi All, >Is there any method that increases the size of the display window. > see documentation for vtkRenderWindow. SetSize is the method you're looking for. >I am using Java with VTK. >Any input in this regard is appreciated. >Thanks in advance, >Vidya > > >_______________________________________________ >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 walter@lncc.br Mon Oct 7 12:56:28 2002 From: walter@lncc.br (Walter Herrera) Date: Mon, 07 Oct 2002 08:56:28 -0300 Subject: [vtkusers] vtkInteractorStyle In-Reply-To: <20021006103829.29817.59539.Mailman@public.kitware.com> Message-ID: <5.0.2.1.0.20021007083400.00a69680@pop.lncc.br> Jeremy, the problem with your code is that the function : SetLeftButtonPressMethodArgDelete() is waiting for a NON class member function parameter or if it is a class member function it must be STATIC. >static void SliceView::get_mousePos(void *) >{ > ... >} and call the function as: > style->SetLeftButtonPressMethodArgDelete(SliceView::get_mousePos); or > style->SetLeftButtonPressMethodArgDelete(get_mousePos); My code is as follow: class CTransferFunctionEditorDialog : public CDialog { ... public: static CTransferFunctionEditorDialog* CurrentDialog; static void StaticButtonPress (void * p); void ButtonPress (); private: ... vtkInteractorStyleUser * OCFInteractorStyle; ... } CTransferFunctionEditorDialog* CTransferFunctionEditorDialog::CurrentDialog = NULL; CTransferFunctionEditorDialog::CTransferFunctionEditorDialog(CWnd* pParent /*=NULL*/) { ... this->OCFInteractorStyle = vtkInteractorStyleUser::New(); this->OCFInteractorStyle->SetButtonPressMethod(StaticButtonPress,NULL); ... } BOOL CTransferFunctionEditorDialog::OnInitDialog() { ... CurrentDialog = this; ... } void CTransferFunctionEditorDialog::StaticButtonPress (void * p) { if (CurrentDialog == NULL) return; CurrentDialog->ButtonPress(); } void CTransferFunctionEditorDialog::ButtonPress () { ... } Walter. At 06:38 6/10/2002 -0400, you wrote: >Jeremy Winston wrote: > > >Steffen Oeltze wrote: > > > >>Alan McIntyre wrote: > >> > >>>Steffen, > >>> > >>>As far as passing function pointers goes, there is a difference > >>>between this: > >>> obj->SetSomething(my_function()); > >>>and this: > >>> obj->SetSomething(&my_function); > >>> > >>I receive an error during compiling saying that this is not a valid call > >>for a member-function. > >> > >>obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); > >> > > > >Shouldn't it just be > > > > "(this->get_mousePos)" ? > > > >(Versus "(&this->get_mousePos)" > > or "(this->get_mousePos())" ). > > >You are right but this doesn't work either. I have programed a slice >viewer object which >has a mapper, a render window and an interactor. Now, I'd like to define >my own >vtkInteractorStyleUser. My source code is: > >... >vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); >vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); > style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); > intAct->SetInteractorStyle(style); >... > >void SliceView::get_mousePos(void *) >{ > ... >} > >The error I get is: > >coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void >*)' is not possible From chelberg@endor.cs.ohiou.edu Mon Oct 7 12:57:09 2002 From: chelberg@endor.cs.ohiou.edu (David Chelberg) Date: Mon, 07 Oct 2002 07:57:09 -0400 Subject: [vtkusers] vtkInteractorStyle In-Reply-To: Your message of "Sat, 05 Oct 2002 15:58:30 +0200." <3D9EF006.3040703@student.uni-magdeburg.de> Message-ID: <200210071157.g97Bv9823012@endor.cs.ohiou.edu> If I recall correctly, there was some discussion of this in the past. You might want to check the archives. I believe that the result was that member functions must be declared static to be able to be passed like this. Otherwise you must use an ordinary function. -- Prof. David Chelberg (chelberg@ohiou.edu) You are right but this doesn't work either. I have programed a slice viewer object which has a mapper, a render window and an interactor. Now, I'd like to define my own vtkInteractorStyleUser. My source code is: .... vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); intAct->SetInteractorStyle(style); .... void SliceView::get_mousePos(void *) { ... } The error I get is: coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void *)' is not possible From marcelo@radioimaging.net Mon Oct 7 13:23:21 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Mon, 7 Oct 2002 09:23:21 -0300 Subject: [vtkusers] about the BMP slice Read & 3D Rendering. References: <0C42D409AF10B1428A0B026FB160A5BE425A7C@mail02.student.main.ntu.edu.sg> Message-ID: <00a001c26dfc$5371d370$d4323690@System.local> Hi Yan, I never worked with BMP slice just DICOM, Try change iso->SetValue(0,1150) to other values ----- Original Message ----- From: "#YAN RI AN#" To: "Vtkusers (E-mail)" Sent: Saturday, October 05, 2002 2:14 AM Subject: [vtkusers] about the BMP slice Read & 3D Rendering. > > Dear VTK-Users: > I meet the problem when I read a stack of 512x512x256 BMP file. > I used the vtkImageReader class instead of vtkVolume16Reader class because It was not a 16 bit image format. > I could not get the correct rendering of each organ such as only the rendering of the bone in the BMP slice. > > Here is my source code: > > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,100,0,100,1,12); > reader->SetDataSpacing(1,1,0.5); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,1150); > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper(isoMapper); > isoActor->GetProperty()->SetColor(1,1,1); > > vtkRenderer *ren1 = vtkRenderer::New(); > ren1->AddActor(isoActor); > ren1->SetBackground(0.2,0.3,0.5); > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > renWin->SetSize(600,600); > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > > renWin->Render(); > iren->Start(); > > How could I do? > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 williams13@llnl.gov Mon Oct 7 13:45:54 2002 From: williams13@llnl.gov (Dean N. Williams) Date: Mon, 07 Oct 2002 05:45:54 -0700 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> Message-ID: <3DA18202.7050709@llnl.gov> Dear VTK users, I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with Python 2.2.1 and tcl/tk 8.3.3. For the most part Python/VTK works, but I am running into the following core dumps in the Wrapping/Python directory: cloud% python vtkGetDataRoot.py cloud% python vtkLoadPythonTkWidgets.py cloud% python vtkpython.py cloud% python vtkpythontk.py cloud% python vtkRenderWidget.py Segmentation fault cloud% python vtkTkImageViewerWidget.py Segmentation fault cloud% python vtkTkImageWindowWidget.py Segmentation fault cloud% python vtkTkRenderWidget.py Segmentation fault cloud% Has anyone else encountered these core dumps and how do I fix this so that I can use VTK and Python? Thanks in advance for your help. Best regards, Dean From PS7278514B@ntu.edu.sg Mon Oct 7 13:54:58 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Mon, 7 Oct 2002 20:54:58 +0800 Subject: [vtkusers] About a Stack of *.BMP Slices Rendering! Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A685@mail02.student.main.ntu.edu.sg> Dear VTK-Users: There was no problem when I Read in & 3D Render & Write out *.stl = Format the Headsq files which provided by Kitware Co.. But I met the problem when I read a stack of 512x512x256 *.BMP head = slice files. The XY boundary size of the files is 220.2mm X 220.2mm.=20 I renamed it into *.01,*.02...... already, It could read but could not = rendering. I did not know how to pre-process,process & post process the stack of = *.BMP format slices. Could anyone share some experience about it? Here is my program: vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("g:/00head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,220,0,220,1,33); reader->SetDataSpacing(1,1,3); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=3DvtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,1150); vtkPolyDataMapper *isoMapper=3DvtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); vtkActor *isoActor=3DvtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(1,1,1); vtkRenderer *ren1 =3D vtkRenderer::New(); ren1->AddActor(isoActor); ren1->SetBackground(0.2,0.3,0.5); ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From c.p.botha@its.tudelft.nl Mon Oct 7 14:00:12 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 07 Oct 2002 15:00:12 +0200 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA18202.7050709@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> Message-ID: <1033995612.18506.15.camel@dutidad> On Mon, 2002-10-07 at 14:45, Dean N. Williams wrote: > I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with > Python 2.2.1 > and tcl/tk 8.3.3. For the most part Python/VTK works, but I am > running into the following > core dumps in the Wrapping/Python directory: > > cloud% python vtkGetDataRoot.py > cloud% python vtkLoadPythonTkWidgets.py > cloud% python vtkpython.py > cloud% python vtkpythontk.py > cloud% python vtkRenderWidget.py > Segmentation fault > cloud% python vtkTkImageViewerWidget.py > Segmentation fault > cloud% python vtkTkImageWindowWidget.py > Segmentation fault > cloud% python vtkTkRenderWidget.py > Segmentation fault > cloud% I haven't seen these before. Could you try generating a back-trace? I.e. do the following in the Wrapping/Python directory: 1. $ gdb python 2. (gdb) run vtkRenderWidget.py ... wait for the segmentation fault. 3. (gdb) bt Study the output for possibilities and/or send it to this list. Regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From winston@cat.rpi.edu Mon Oct 7 14:10:35 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Mon, 07 Oct 2002 09:10:35 -0400 Subject: [vtkusers] how to read the medical images & display it. References: <10B96F9B1453D61191B400508B650D9402B3CA6A@ban03xbindge> Message-ID: <3DA187CB.CDDFCC99@cat.rpi.edu> "Heman, Malve (MED, Contractor)" wrote: > > how to read the medical images & display it. > send the sorce code for this one. Malve, Here's a Tcl/Tk example that reads a GE Signa format CT scan and displays it. I don't know about readers for other file formats. HTH, -Jeremy ----- Tcl/Tk script: ----- vtkGESignaReader ctReader ctReader SetFileName (GE Signa file name goes here) ctReader Update vtkImageMapper ctMapper ctMapper SetInput [ctReader GetOutput] vtkActor2D ctActor ctActor SetMapper ctMapper vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin SetSize 512 512 ren1 AddActor2D ctActor renWin Render wm withdraw . From dharmendra@strandgenomics.com Mon Oct 7 14:16:23 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Mon, 07 Oct 2002 18:46:23 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021007184218.00ac8c00@mail.strandgenomics.com> Hi All, I have to render a molecule which has many atoms.Basically this boils down to drawing spheres. I have to draw some 5000 spheres. My problem is when i render so many spheres rendering is very slow and interaction even slower. Is there a better way of rendering so many spheres and still maintaining the speed and interaction. thanks in advance. dharmendra From winston@cat.rpi.edu Mon Oct 7 14:19:28 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Mon, 07 Oct 2002 09:19:28 -0400 Subject: [vtkusers] urgent References: <5.1.1.6.0.20021007184218.00ac8c00@mail.strandgenomics.com> Message-ID: <3DA189E0.842CB65A@cat.rpi.edu> Dharmendra wrote: > > Hi All, > I have to render a molecule which has many atoms.Basically this boils > down to drawing spheres. I have to draw some 5000 spheres. > My problem is when i render so many spheres rendering is very slow and > interaction even slower. > > Is there a better way of rendering so many spheres and still maintaining > the speed and interaction. Dharmendra, Take a look at the vtkLODActor class: http://public.kitware.com/VTK/doc/nightly/html/classvtkLODActor.html It allows different levels of detail for interactive updates versus static display. The lower the level of detail, the faster the rendering. HTH, -Jeremy From Koning, P.J.H. de (LKEB)" Message-ID: <3Y86WR65YVC89654KGTNCBEBDAXS844Y.3da18acc@MRI-PATRICK> 07-10-02 14:54:58, "#YAN RI AN#" wrote: I Would suggest using the vtkBMPReader. Furthermore I don't think the imagevalues will go to 1150 in 8-bit BMP images. Try a value between 0 and 255. >Dear VTK-Users: >There was no problem when I Read in & 3D Render & Write out *.stl Format the Headsq files which provided by Kitware Co.. >But I met the problem when I read a stack of 512x512x256 *.BMP head slice files. >The XY boundary size of the files is 220.2mm X 220.2mm. >I renamed it into *.01,*.02...... already, It could read but could not rendering. >I did not know how to pre-process,process & post process the stack of *.BMP format slices. >Could anyone share some experience about it? >Here is my program: > > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,220,0,220,1,33); > reader->SetDataSpacing(1,1,3); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,1150); > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper(isoMapper); > isoActor->GetProperty()->SetColor(1,1,1); > > vtkRenderer *ren1 = vtkRenderer::New(); > ren1->AddActor(isoActor); > ren1->SetBackground(0.2,0.3,0.5); > >*************************************** >* Best Regards >* Yan Rian (Research Student) >* Email : ps7278514b@ntu.edu.sg >* Lab : AMRC Research Centre >* Nanyang Technological University >* Singapore >*************************************** > > >_______________________________________________ >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 williams13@llnl.gov Mon Oct 7 14:38:17 2002 From: williams13@llnl.gov (Dean N. Williams) Date: Mon, 07 Oct 2002 06:38:17 -0700 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> Message-ID: <3DA18E49.6020500@llnl.gov> Charl, This is the output I received from running "gdb": cloud% gdb python GNU gdb Red Hat Linux (5.1.90CVS-5) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run vtkRenderWidget.py Starting program: /data/ASD_work/cdat/bin/python vtkRenderWidget.py [New Thread 1024 (LWP 13266)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt #0 0x400360c7 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 0x417db236 in Tcl_Free () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #4 0x41816780 in ResetObjResult () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #5 0x41815fd5 in Tcl_SetResult () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #6 0x4183a590 in Tk_MainWindow () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #7 0x417d41e0 in Vtkrenderingpythontkwidgets_Init () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #8 0x4013e3c6 in Tcl_LoadObjCmd () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 0x401286d4 in TclExecuteByteCode () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #10 0x4010e1da in Tcl_EvalObjEx () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #11 0x40111e51 in Tcl_CatchObjCmd () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #12 0x4014450a in EvalObjv () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #13 0x40144c0d in Tcl_EvalEx () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #14 0x40144f0d in Tcl_Eval () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #15 0x4008cbd1 in Tkapp_Eval () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #16 0x080b146b in PyCFunction_Call () #17 0x080723ec in eval_frame () #18 0x0807339f in PyEval_EvalCodeEx () #19 0x08074189 in fast_function () #20 0x0807248b in eval_frame () #21 0x0807339f in PyEval_EvalCodeEx () #22 0x080a7865 in function_call () #23 0x0809a7c4 in PyObject_Call () #24 0x0809fc1f in instancemethod_call () #25 0x0809a7c4 in PyObject_Call () #26 0x08073f2d in PyEval_CallObjectWithKeywords () #27 0x0809cb3d in PyInstance_New () #28 0x0809a7c4 in PyObject_Call () #29 0x0807440b in do_call () #30 0x080724a2 in eval_frame () #31 0x0807339f in PyEval_EvalCodeEx () #32 0x08074189 in fast_function () #33 0x0807248b in eval_frame () ---Type to continue, or q to quit--- #34 0x0807339f in PyEval_EvalCodeEx () #35 0x0806fcfa in PyEval_EvalCode () #36 0x08088f8c in run_node () #37 0x08088f4d in run_err_node () #38 0x08088f1a in PyRun_FileExFlags () #39 0x080882bf in PyRun_SimpleFileExFlags () #40 0x08087dc3 in PyRun_AnyFileExFlags () #41 0x08053423 in Py_Main () #42 0x08052d51 in main () #43 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) >On Mon, 2002-10-07 at 14:45, Dean N. Williams wrote: > > >> I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with >>Python 2.2.1 >> and tcl/tk 8.3.3. For the most part Python/VTK works, but I am >>running into the following >> core dumps in the Wrapping/Python directory: >> >>cloud% python vtkGetDataRoot.py >>cloud% python vtkLoadPythonTkWidgets.py >>cloud% python vtkpython.py >>cloud% python vtkpythontk.py >>cloud% python vtkRenderWidget.py >>Segmentation fault >>cloud% python vtkTkImageViewerWidget.py >>Segmentation fault >>cloud% python vtkTkImageWindowWidget.py >>Segmentation fault >>cloud% python vtkTkRenderWidget.py >>Segmentation fault >>cloud% >> >> > >I haven't seen these before. Could you try generating a back-trace? >I.e. do the following in the Wrapping/Python directory: >1. $ gdb python >2. (gdb) run vtkRenderWidget.py >... wait for the segmentation fault. >3. (gdb) bt > >Study the output for possibilities and/or send it to this list. > >Regards, >Charl > > > From anast.jm@pg.com Mon Oct 7 15:39:11 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 7 Oct 2002 10:39:11 -0400 Subject: [vtkusers] Please Help Message-ID: vtkUnstructuredGrid virtual void GetCellPoints (vtkIdType cellId, vtkIdList *ptIds= ) =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: "ravi kiran" @public.kitware.com on 10/0= 4/2002 06:27 PM GMT = =20 "ravi kiran" To: vtkusers@= public.kitware.com =20 @public.kitware.com Cc: (bcc: Jo= hn Anast-JM/PGI) =20 Subject: [vtkusers= ] Please Help =20 = =20 Sent by: vtkusers-admin@public.kitware.com = =20 10/04/2002 02:27 PM = =20 = =20 = =20 Hi, I have a problem determining the coordinates of the points of each elem= ent in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a= simple cube generated by a matrix of 10 by 10 by 10 points. Now i need = to determine the coordinates of the points=A0of each tetrahedral element g= enerated. I need to determine=A0the points that form each element.=A0What do i have= to do?Can anyone please help me solve this problem? Thanx Ravi Join the world's largest e-mail service with MSN Hotmail. Click Here = From jiang@TI.FhG.DE Mon Oct 7 16:00:32 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Mon, 7 Oct 2002 17:00:32 +0200 Subject: [vtkusers] VTK examples in VC++ Message-ID: Dear vtk-users, Where can I get the examples of vtk in VC++? The examples offered by kitware website are not enough for me. I'd like to get more source codes of examples from simple to complex. Thank you very much. Chunyan Jiang *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From prabhu@aero.iitm.ernet.in Mon Oct 7 16:18:32 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 7 Oct 2002 20:48:32 +0530 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA18E49.6020500@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> Message-ID: <15777.42440.465218.796738@monster.linux.in> >>>>> "DNW" == Dean N Williams writes: DNW> Charl, This is the output I received from running "gdb": DNW> Program received signal SIGSEGV, Segmentation fault. DNW> [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in DNW> pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt DNW> #0 0x400360c7 in pthread_mutex_lock () from DNW> /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from DNW> /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from DNW> /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 DNW> 0x417db236 in Tcl_Free () from [snip] DNW> /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 This might be a Tcl/Tk version issue. Try these: ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so And make sure they both point to the same version of libtcl*.so and libtk*.so. If they don't then recompile VTK with the libtcl and libtk pointing to the same libtcl/tk that your Python's _tkinter.so points to. This might fix your problem. Good luck! cheers, prabhu From winston@cat.rpi.edu Mon Oct 7 17:33:46 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Mon, 07 Oct 2002 12:33:46 -0400 Subject: [vtkusers] VTK examples in VC++ References: Message-ID: <3DA1B76A.F2145D7D@cat.rpi.edu> Chunyan Jiang wrote: > > Dear vtk-users, > Where can I get the examples of vtk in VC++? The examples offered by kitware > website are not enough for me. I'd like to get more source codes of examples > from simple to complex. Chunyan, Have you looked at the regression test code for each class? See the "Class to Tests" links from http://public.kitware.com/VTK/doc/nightly/html/pages.html Do you have a copy of the "Visualization Toolkit" textbook and users guide? C.f., Sbastien Barr's Example page at http://www.barre.nom.fr/vtk/links-examples.html HTH, -Jeremy From williams13@llnl.gov Mon Oct 7 17:47:51 2002 From: williams13@llnl.gov (Dean N. Williams) Date: Mon, 07 Oct 2002 09:47:51 -0700 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> Message-ID: <3DA1BAB7.7060600@llnl.gov> Prabhu, I will rebuild the VTK again and hope that this clears things up. Here is the outcome of running ldd on both shared libraries: cloud% ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40144000) libdl.so.2 => /lib/libdl.so.2 (0x40159000) libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4015c000) libvtkCommon.so => /data/vtk4.0/VTK/bin/libvtkCommon.so (0x401c8000) libvtkFiltering.so => /data/vtk4.0/VTK/bin/libvtkFiltering.so (0x40399000) libvtkImaging.so => /data/vtk4.0/VTK/bin/libvtkImaging.so (0x403fe000) libvtkGraphics.so => /data/vtk4.0/VTK/bin/libvtkGraphics.so (0x406ca000) libvtkRendering.so => /data/vtk4.0/VTK/bin/libvtkRendering.so (0x40964000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40b4e000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40b9a000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40ba2000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40bb9000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40c8e000) libm.so.6 => /lib/i686/libm.so.6 (0x40c9c000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40cbe000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) cloud% ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40145000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libdl.so.2 => /lib/libdl.so.2 (0x4021b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Neither show the use of tcl/tk. -Dean >>>>>>"DNW" == Dean N Williams writes: >>>>>> >>>>>> > > DNW> Charl, This is the output I received from running "gdb": > > DNW> Program received signal SIGSEGV, Segmentation fault. > DNW> [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in > DNW> pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt > DNW> #0 0x400360c7 in pthread_mutex_lock () from > DNW> /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from > DNW> /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from > DNW> /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 > DNW> 0x417db236 in Tcl_Free () from > >[snip] > > DNW> /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 > > >This might be a Tcl/Tk version issue. Try these: > > ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so > > ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so > >And make sure they both point to the same version of libtcl*.so and >libtk*.so. > >If they don't then recompile VTK with the libtcl and libtk pointing to >the same libtcl/tk that your Python's _tkinter.so points to. This >might fix your problem. > >Good luck! > >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 prabhu@aero.iitm.ernet.in Mon Oct 7 18:05:37 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 7 Oct 2002 22:35:37 +0530 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA1BAB7.7060600@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> <3DA1BAB7.7060600@llnl.gov> Message-ID: <15777.48865.377847.358359@monster.linux.in> >>>>> "DNW" == Dean N Williams writes: DNW> Prabhu, I will rebuild the VTK again and hope that this DNW> clears things up. Here is the outcome of running ldd on both DNW> shared libraries: [snip] DNW> Neither show the use of tcl/tk. Well simply rebuilding it might not fix the problem. It looks like you have built both Python and VTK with the static Tcl/Tk libraries. Maybe you should recompile both Python and VTK to use the shared versions of Tcl/Tk. For VTK make sure CMake is using the shared version. TCL_LIBRARY:FILEPATH=/usr/lib/libtcl8.3.so TK_LIBRARY:FILEPATH=/usr/lib/libtk8.3.so Or whatever appropriate version is on your system. BTW, do the VTK Tcl/Tk examples work ok? Hope this helps. prabhu From dan@chalkie.org.uk Mon Oct 7 18:22:36 2002 From: dan@chalkie.org.uk (Dr. Dan White) Date: Mon, 7 Oct 2002 20:22:36 +0300 Subject: [vtkusers] vtkJPEGReader and vtkTIFFReader Message-ID: <5F5C20A2-DA19-11D6-9890-000393686412@chalkie.org.uk> Hi VTK jpeg and tiff file reader people, I have a stack of images as .jpg or .tif files which I want to volume render (texture map or ray trace) When I use vtkTIFFReader or vtkJPEGReader in a python script as show=20 below no matter how I play with the opacity transfer and colour transfer=20 functions the volume rendered data looks garbled and in little rectangular=20 chunks, and weird layers, instead of the shape of a cell which am expecting. my files are 102x119 pixels and there are 20 slices with files=20 numbered 001-020. I can't find any examples in the mailing list or example scripts of how to use vtkTIFFReader or vtkJPEGReader properly....... What am I doing wrong? cheers Dan # Data reader reader =3D vtkJPEGReader () reader.SetFilePrefix(filename) reader.SetFilePattern("%s%03i.jpg") reader.SetDataExtent(0,101,0,118,001,020) # 1,20 works too reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToBigEndian # tiff files are from PC,=20 jpeg from linux, but seems to make no difference if big or little=20 endian is set #reader.SetDataMask(0x7fff) # what does this do, gives error, do I=20 need it? dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) From marcelo@radioimaging.net Mon Oct 7 18:51:20 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Mon, 7 Oct 2002 14:51:20 -0300 Subject: [vtkusers] events with keyboard Message-ID: <018801c26e2a$251cc740$d4323690@System.local> This is a multi-part message in MIME format. ------=_NextPart_000_0185_01C26E10.FFBBB920 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi users !!! I want to rotate a volume using the keyboard,=20 How can i do and where i can find some examples ??? Tanks for advanced me ------=_NextPart_000_0185_01C26E10.FFBBB920 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi users !!!
 
I want to rotate a volume using the = keyboard,=20
 
How can i do and where i can find some = examples=20 ???
 
Tanks for advanced = me
------=_NextPart_000_0185_01C26E10.FFBBB920-- From marcelo@radioimaging.net Mon Oct 7 18:52:39 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Mon, 7 Oct 2002 14:52:39 -0300 Subject: [vtkusers] Re: events with keyboard Message-ID: <019201c26e2a$5405e730$d4323690@System.local> This is a multi-part message in MIME format. ------=_NextPart_000_018F_01C26E11.2EA35270 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi users !!! I want to rotate a volume using the keyboard,=20 How can i do and where i can find some examples ??? Tanks for advanced me ps. I=B4m using Borland C++ Builder 6 and VTK 4.0 and Windows XP ------=_NextPart_000_018F_01C26E11.2EA35270 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi users !!!
I want to rotate a volume using = the=20 keyboard,
 
How can i do and where i can find = some examples=20 ???
 
Tanks for advanced me
 
ps. I=B4m using Borland C++ Builder 6 = and VTK 4.0=20 and Windows XP
 
------=_NextPart_000_018F_01C26E11.2EA35270-- From bruce_clay@qualia-computing.com Mon Oct 7 18:52:49 2002 From: bruce_clay@qualia-computing.com (Bruce Clay) Date: Mon, 7 Oct 2002 13:52:49 -0400 Subject: [vtkusers] Positioning text Message-ID: I am working on a program the allows the user to reconfigure multiple = screens (views) using splitter windows. In one configuration a VTK = window is used to draw 2D text. When the text is displayed, it is drawn = as expected at the lower left corner of the screen. I have tried = various methods to set the origin to the top left for user convinience. = The only method I can find that works is SetPosition. To make this = effective I need to get the height of the text then use the window = height to calculate the offset. GetHeight returns 0.0 so that doesn't = work. The rest of the text in embedded in the code below. text_ =3D vtkActor2D::New(); vtk_renderer_->AddActor( text_ ); text_mapper_ =3D vtkTextMapper::New(); text_->SetMapper(text_mapper_); vtk_renderer_->AddActor(text_); =09 vtk_renderer_->SetBackground(0.0,0.0,0.0); text_mapper_->SetFontSize(12); text_mapper_->BoldOn(); If I use any of the next four lines the text does not show up at all text_mapper_->SetVerticalJustificationToTop(); text_mapper_->SetVerticalJustification(VTK_TEXT_TOP); text_mapper_->SetJustification(VTK_TEXT_CENTERED); text_mapper_->SetJustificationToCentered (); } text_mapper_->SetInput(str_ptr); the line belows always returns 0.0 float height =3D text_mapper_->GetHeight(this); The line below works but is not flexible enough to handle different = string lengths text_->SetPosition(10.0, 80.0); There is another GetHeight that from the description might work but it = requires the address of a vtkViewport. How do I get one of these?? Is there a more flexible way to get the text origin to be the top keft = corner of the window?? Did I use the set justification methods incorrectly? Thanks for your help in advance Bruce Clay From anast.jm@pg.com Mon Oct 7 19:23:57 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 7 Oct 2002 14:23:57 -0400 Subject: [vtkusers] vtkJPEGReader and vtkTIFFReader Message-ID: I suspect these are color images and you might want to try to extract t= he luminance (vtkImageLuminance) before rendering....john =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: "Dr. Dan White" @public.kitware.com on 10/07/= 2002 08:22 PM ZE3 = =20 "Dr. Dan White" To: vtkusers@publi= c.kitware.com =20 @public.kitware.com Cc: (bcc: John An= ast-JM/PGI) =20 Subject: [vtkusers] vtk= JPEGReader and =20 vtkTIFFReader = =20 Sent by: = =20 vtkusers-admin@public.kitware.com = =20 10/07/2002 01:22 PM = =20 = =20 = =20 Hi VTK jpeg and tiff file reader people, I have a stack of images as .jpg or .tif files which I want to volume render (texture map or ray trace) When I use vtkTIFFReader or vtkJPEGReader in a python script as show below no matter how I play with the opacity transfer and colour transfer functions the volume rendered data looks garbled and in little rectangular chunks, and weird layers, instead of the shape of a cell which am expecting. my files are 102x119 pixels and there are 20 slices with files numbered 001-020. I can't find any examples in the mailing list or example scripts of how to use vtkTIFFReader or vtkJPEGReader properly....... What am I doing wrong? cheers Dan # Data reader reader =3D vtkJPEGReader () reader.SetFilePrefix(filename) reader.SetFilePattern("%s%03i.jpg") reader.SetDataExtent(0,101,0,118,001,020) # 1,20 works too reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToBigEndian # tiff files are from PC, jpeg from linux, but seems to make no difference if big or little endian is set #reader.SetDataMask(0x7fff) # what does this do, gives error, do I need it? dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) _______________________________________________ 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 krw@viz-solutions.com Mon Oct 7 21:19:14 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Mon, 07 Oct 2002 13:19:14 -0700 Subject: [vtkusers] string compare bug? Message-ID: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> I just tracked down what looks like an odd bug, and I was wondering if anyone out there had any insight. I'm using a vtkPolyDataReader object to field incoming polydata definitions through a socket. I do this by reading the polydata from the socket into a string, then using the input string in the vtkDataReader. Everything generally worked fine, except in some cases the pipeline would not update when new data came down the socket. Eventually I tracked the problem down to vtkDataReader::SetInputString which, before assigning the string, does a string compare between the old and new string. When the new and old datasets were very similar (usually identical geometry, slightly changed scalar values) the strncmp would return a match. The string length was correct, and once the string compare was removed, everything worked fine. I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try the same thing on IRIX and Linux to see what happens, but I was wondering: 1. Has anyone seen this kind of behavior before? 2. Should the string compare really be there at all, given that these strings could be very long? Regards, Kevin. From jeff@cdnorthamerica.com Mon Oct 7 21:25:14 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Mon, 07 Oct 2002 16:25:14 -0400 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> Message-ID: <3DA1EDAA.2060108@cdnorthamerica.com> Are you using vtkSocketController/vtkSocketCommunicator? These objects already do this under the hood. -Jeff Kevin Wright wrote: > I just tracked down what looks like an odd bug, and I was wondering if > anyone out there had any insight. > > I'm using a vtkPolyDataReader object to field incoming polydata > definitions through a socket. I do this by reading the polydata from > the socket into a string, then using the input string in the > vtkDataReader. > > Everything generally worked fine, except in some cases the pipeline > would not update when new data came down the socket. Eventually I > tracked the problem down to vtkDataReader::SetInputString which, > before assigning the string, does a string compare between the old and > new string. > > When the new and old datasets were very similar (usually identical > geometry, slightly changed scalar values) the strncmp would return a > match. The string length was correct, and once the string compare was > removed, everything worked fine. > > I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try > the same thing on IRIX and Linux to see what happens, but I was wondering: > > 1. Has anyone seen this kind of behavior before? > 2. Should the string compare really be there at all, given that these > strings could be very long? > > Regards, > Kevin. > > _______________________________________________ > 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 krw@viz-solutions.com Mon Oct 7 21:58:19 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Mon, 07 Oct 2002 13:58:19 -0700 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA1EDAA.2060108@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> At 04:25 PM 10/7/2002 -0400, you wrote: >Are you using vtkSocketController/vtkSocketCommunicator? These objects >already do this under the hood. >-Jeff No, I'm tying it in with some other code here. Are you saying that vtkSocketController/Communicator addresses the bug that I'm talking about, or that it provides the same functionality? Kevin. >Kevin Wright wrote: > >>I just tracked down what looks like an odd bug, and I was wondering if >>anyone out there had any insight. >> >>I'm using a vtkPolyDataReader object to field incoming polydata >>definitions through a socket. I do this by reading the polydata from the >>socket into a string, then using the input string in the vtkDataReader. >> >>Everything generally worked fine, except in some cases the pipeline would >>not update when new data came down the socket. Eventually I tracked the >>problem down to vtkDataReader::SetInputString which, before assigning the >>string, does a string compare between the old and new string. >> >>When the new and old datasets were very similar (usually identical >>geometry, slightly changed scalar values) the strncmp would return a >>match. The string length was correct, and once the string compare was >>removed, everything worked fine. >> >>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>the same thing on IRIX and Linux to see what happens, but I was wondering: >> >>1. Has anyone seen this kind of behavior before? >>2. Should the string compare really be there at all, given that these >>strings could be very long? >> >>Regards, >>Kevin. >> >>_______________________________________________ >>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 clarke@ARL.ARMY.MIL Mon Oct 7 22:10:54 2002 From: clarke@ARL.ARMY.MIL (Jerry Clarke ) Date: Mon, 07 Oct 2002 17:10:54 -0400 Subject: [vtkusers] Cygwin Build Message-ID: <3DA1F85E.6FA7754@arl.army.mil> I'm trying to build the nightly release on a Win2000 box under cygwin. I'm getting a huge amount of undefined externals when it tries to build the Imaging .dll. the first is : undefined reference to vtkImageIterator::vtkImageIterator(vtkImageData *, int *) Has anyone built the Nightly release under cygwin,shared,python recently ? -------------------------------------------------------------- Jerry A. Clarke clarke@arl.army.mil (410)278-9279 Fax (410)278-9199 US Army Research Laboratory Blg. 394 Room 201B -------------------------------------------------------------- From cmchilan@yahoo.com Mon Oct 7 22:13:01 2002 From: cmchilan@yahoo.com (Christian Chilan) Date: Mon, 7 Oct 2002 14:13:01 -0700 (PDT) Subject: [vtkusers] Copyright question Message-ID: <20021007211301.43397.qmail@web20204.mail.yahoo.com> Hi there, We've created a shareware application using VTK and Tcl/Tk to visualize 2D and 3D data sets. We may be using patented classes such as vtkMarchingCubes indirectly (we call vtkContourFilter in the app). Do these classes require a copyright handling other than just the inclusion of the notice at http://public.kitware.com/VTK/copyright.php in the application? Thanks, Christian __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From jeff@cdnorthamerica.com Mon Oct 7 22:13:50 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Mon, 07 Oct 2002 17:13:50 -0400 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> Message-ID: <3DA1F90E.3000002@cdnorthamerica.com> Kevin Wright wrote: > At 04:25 PM 10/7/2002 -0400, you wrote: > >> Are you using vtkSocketController/vtkSocketCommunicator? These >> objects already do this under the hood. >> -Jeff > > > No, I'm tying it in with some other code here. Are you saying that > vtkSocketController/Communicator addresses the bug that I'm talking > about, or that it provides the same functionality? those classes provide the same functionality, and use a very similar approach. I'm not sure what you are seeing is a bug per-se - does your Irix/Linux build do the same thing? I agree that the string compare could be expensive, but the dataset update could be even more so. I have been told that the data readers/writers are going to change in the near future to xml anyway, but it would be good to know if this is just a windows problem. I have been using the socketcommunicator for quite some time and it doesn't exhibit these symptoms. If you have some sample code, it might be worth putting up on the list so people can test it... -Jeff > > > Kevin. > > >> Kevin Wright wrote: >> >>> I just tracked down what looks like an odd bug, and I was wondering >>> if anyone out there had any insight. >>> >>> I'm using a vtkPolyDataReader object to field incoming polydata >>> definitions through a socket. I do this by reading the polydata >>> from the socket into a string, then using the input string in the >>> vtkDataReader. >>> >>> Everything generally worked fine, except in some cases the pipeline >>> would not update when new data came down the socket. Eventually I >>> tracked the problem down to vtkDataReader::SetInputString which, >>> before assigning the string, does a string compare between the old >>> and new string. >>> >>> When the new and old datasets were very similar (usually identical >>> geometry, slightly changed scalar values) the strncmp would return a >>> match. The string length was correct, and once the string compare >>> was removed, everything worked fine. >>> >>> I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to >>> try the same thing on IRIX and Linux to see what happens, but I was >>> wondering: >>> >>> 1. Has anyone seen this kind of behavior before? >>> 2. Should the string compare really be there at all, given that >>> these strings could be very long? >>> >>> Regards, >>> Kevin. >>> >>> _______________________________________________ >>> 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 krw@viz-solutions.com Mon Oct 7 22:32:27 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Mon, 07 Oct 2002 14:32:27 -0700 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA1F90E.3000002@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> At 05:13 PM 10/7/2002 -0400, you wrote: >>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>already do this under the hood. >>>-Jeff >> >> >>No, I'm tying it in with some other code here. Are you saying that >>vtkSocketController/Communicator addresses the bug that I'm talking >>about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? I agree that the string compare could >be expensive, but the dataset update could be even more so. I have been >told that the data readers/writers are going to change in the near future >to xml anyway, but it would be good to know if this is just a windows >problem. I have been using the socketcommunicator for quite some time and >it doesn't exhibit these symptoms. If you have some sample code, it might >be worth putting up on the list so people can test it... >-Jeff I'm going to be doing some testing on IRIX/LINUX and if there are any interesting results I'll post them. I think its entirely possible that the vtk socket code does demonstrate the same symptoms. As I said, for some reason, it only happens when the incoming polydata only changes slightly from the version currently in the reader. It would be difficult to extract the code that I'm seeing this on, but perhaps I'll try to make a small sample that exhibits the same symptoms. As far as the cost of the string compare, it seems to me that by uploading the responsibility of that check to the caller of the reader, you give the programmer the option to either spend the time checking, or not. In my case, I'm performing that check already before sending the data down the socket, so its purely wasted time for me. Its a small point, but perhaps even a "no check" option would be a good addition to the reader. Thanks for the feedback Jeff. Kevin. >>Kevin. >> >> >>>Kevin Wright wrote: >>> >>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>anyone out there had any insight. >>>> >>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>definitions through a socket. I do this by reading the polydata from >>>>the socket into a string, then using the input string in the vtkDataReader. >>>> >>>>Everything generally worked fine, except in some cases the pipeline >>>>would not update when new data came down the socket. Eventually I >>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>assigning the string, does a string compare between the old and new string. >>>> >>>>When the new and old datasets were very similar (usually identical >>>>geometry, slightly changed scalar values) the strncmp would return a >>>>match. The string length was correct, and once the string compare was >>>>removed, everything worked fine. >>>> >>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>> >>>>1. Has anyone seen this kind of behavior before? >>>>2. Should the string compare really be there at all, given that these >>>>strings could be very long? >>>> >>>>Regards, >>>>Kevin. >>>> >>>>_______________________________________________ >>>>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 stevie157@gmx.net Mon Oct 7 23:06:33 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Tue, 08 Oct 2002 00:06:33 +0200 Subject: [vtkusers] Creating .vtk files Message-ID: <3DA20569.4060904@gmx.net> hi, i want to create a .vtk file out of several cubes, spheres etc. objects. dows anyone know how i have to do this? thanks stefan From David.Pont@ForestResearch.co.nz Mon Oct 7 23:41:56 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Tue, 8 Oct 2002 11:41:56 +1300 Subject: [vtkusers] string compare bug? Message-ID: Nothing to do with the possible bug, just something <=2c worth, To speed up the case where two very long strings are different can you first compare string lengths? Ie if the lengths are different the strings are different, which should save some time in that case. Where the lengths match then the full compare is needed. Another trick, which is no use as a general approach, but can be used in specific applications: If long strings typically carry a prefix which changes slowly, and a suffix which changes more rapidly, it can be much more efficient to do your own compare (when the lengths are equal) by comparing chars starting from the end and advancing towards the front of the string. regards Dave Pont |--------+---------------------------------> | | Kevin Wright | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 08/10/2002 10:32 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: Re: [vtkusers] string compare bug? | >------------------------------------------------------------------------------------------------------------| At 05:13 PM 10/7/2002 -0400, you wrote: >>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>already do this under the hood. >>>-Jeff >> >> >>No, I'm tying it in with some other code here. Are you saying that >>vtkSocketController/Communicator addresses the bug that I'm talking >>about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? I agree that the string compare could >be expensive, but the dataset update could be even more so. I have been >told that the data readers/writers are going to change in the near future >to xml anyway, but it would be good to know if this is just a windows >problem. I have been using the socketcommunicator for quite some time and >it doesn't exhibit these symptoms. If you have some sample code, it might >be worth putting up on the list so people can test it... >-Jeff I'm going to be doing some testing on IRIX/LINUX and if there are any interesting results I'll post them. I think its entirely possible that the vtk socket code does demonstrate the same symptoms. As I said, for some reason, it only happens when the incoming polydata only changes slightly from the version currently in the reader. It would be difficult to extract the code that I'm seeing this on, but perhaps I'll try to make a small sample that exhibits the same symptoms. As far as the cost of the string compare, it seems to me that by uploading the responsibility of that check to the caller of the reader, you give the programmer the option to either spend the time checking, or not. In my case, I'm performing that check already before sending the data down the socket, so its purely wasted time for me. Its a small point, but perhaps even a "no check" option would be a good addition to the reader. Thanks for the feedback Jeff. Kevin. >>Kevin. >> >> >>>Kevin Wright wrote: >>> >>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>anyone out there had any insight. >>>> >>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>definitions through a socket. I do this by reading the polydata from >>>>the socket into a string, then using the input string in the vtkDataReader. >>>> >>>>Everything generally worked fine, except in some cases the pipeline >>>>would not update when new data came down the socket. Eventually I >>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>assigning the string, does a string compare between the old and new string. >>>> >>>>When the new and old datasets were very similar (usually identical >>>>geometry, slightly changed scalar values) the strncmp would return a >>>>match. The string length was correct, and once the string compare was >>>>removed, everything worked fine. >>>> >>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>> >>>>1. Has anyone seen this kind of behavior before? >>>>2. Should the string compare really be there at all, given that these >>>>strings could be very long? >>>> >>>>Regards, >>>>Kevin. >>>> >>>>_______________________________________________ >>>>This is the private VTK discussion list. Please keep messages on-topic. >>>>Check the FAQ at: >>>>Follow this link to subscribe/unsubscribe: >>>>http://public.kitware.com/mailman/listinfo/vtkusers >> >> >>_______________________________________________ >>This is the private VTK discussion list. Please keep messages on-topic. >>Check the FAQ at: >>Follow this link to subscribe/unsubscribe: >>http://public.kitware.com/mailman/listinfo/vtkusers >> > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From a.maclean@acfr.usyd.edu.au Tue Oct 8 01:33:40 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 8 Oct 2002 10:33:40 +1000 Subject: [vtkusers] tk8.4 Message-ID: <00a001c26e62$597d9d10$88d24e81@acfr.usyd.edu.au> This is a multi-part message in MIME format. ------=_NextPart_000_00A1_01C26EB6.2B29AD10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Has CMake been modified to allow us to use tk8.4? 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/ ___________________________________________ ------=_NextPart_000_00A1_01C26EB6.2B29AD10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Has CMake been modified to allow us to use tk8.4? =

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/

 

___________________________________________

 

------=_NextPart_000_00A1_01C26EB6.2B29AD10-- From butler@ARL.ARMY.MIL Tue Oct 8 03:19:56 2002 From: butler@ARL.ARMY.MIL (Lee A. Butler) Date: Mon, 7 Oct 2002 22:19:56 -0400 (EDT) Subject: [vtkusers] Picking Glyphs? Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---2143346560-930212126-1034043596=:1462551 Content-Type: TEXT/PLAIN; charset=US-ASCII Does anyone have example code of picking glyphs? I want to be able to get the point the glyph was constructed from as a result of a pick operation. I gather from the web page on Glyph3D that the "GeneratePointIds" option is desireable. A fragment of the Tcl code I have is: vtkUnstructuredGridReader ugr ugr SetFileName ptdata.vtk vtkConeSource cone vtkGlyph3D glyph glyph SetInput [ugr GetOutput] glyph SetSource [cone GetOutput] glyph GeneratePointIdsOn vtkPolyDataMapper glyphmapper vtkActor glyphActor proc endPick {args} { # What code here? } vtkCellPicker picker picker SetEndPickMethod endPick Two things are wrong here: 1) The bounding box is drawn around the whole collection of points, whereas I want to box just the glyph selected. 2) I can't seem to find a way to identify the original point from the glyph through any accessor methods. Can anyone tell me how to access the original point from within the endPick routine? The cell reported by the picker is one for the polygon of the cone. It seems to have only coincidental relationship to the original point. Can anyone tell me how to change the behavior of picking away from drawing the bounding box? If anybody cares, I've attached the point data file Lee A. Butler E-Mail: butler@arl.army.mil Attn: AMSRL-SL-BE Phone: (410) 278-9200 U.S. Army Research Laboratory DSN: 298-9200 Aberdeen Proving Ground, MD 21005-5068 FAX: (410) 278-5058 As nightfall does not come at once, neither does oppression. In both instances, there is a twilight when everything remains seemingly unchanged. And it is in such twilight that we all must be most aware of change in the air--however slight--lest we become unwitting victims of the darkness. --- Justice William O. Douglas ---2143346560-930212126-1034043596=:1462551 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ptdata.vtk" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Point data IyB2dGsgRGF0YUZpbGUgVmVyc2lvbiA0LjANClBvaW50cyB0byBnbHlwaA0K QVNDSUkNCkRBVEFTRVQgVU5TVFJVQ1RVUkVEX0dSSUQNClBPSU5UUyAzIGZs b2F0DQotNzAwLjAwMDAwMDAwMDAgMC4wMDAwMDAwMDAwIDcwODAuODY1Mzgz MDIzNQ0KNzA4MC44NjUzODMwMjM1IDQwMC4wMDAwMDAwMDAwIDEyMDAuMDAw MDAwMDAwMA0KNDE3NS4yNDAzMTI2NDcxIDU3NjUuNzAyOTUxNTMwMCA3MDAu MDAwMDAwMDAwMA0KDQpQT0lOVF9EQVRBIDMNClNDQUxBUlMgc2NhbGFyIGZs b2F0IDENCkxPT0tVUF9UQUJMRSBkZWZhdWx0DQoxDQoyDQozDQoNClZFQ1RP UlMgZGlyZWN0aW9uIGZsb2F0DQowIDAgLTENCi0xIDAgMA0KLTAuNSAtMC44 NjYwMjUgMA0K ---2143346560-930212126-1034043596=:1462551-- From ChnWaiKit@netscape.net Tue Oct 8 03:42:32 2002 From: ChnWaiKit@netscape.net (ChnWaiKit@netscape.net) Date: Mon, 07 Oct 2002 22:42:32 -0400 Subject: [vtkusers] unsubscribe Message-ID: <5176658A.43A2A1AC.022ADDF6@netscape.net> Help vtkusers-request@public.kitware.com wrote: >Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > >You can reach the person managing the list at > vtkusers-admin@public.kitware.com > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of vtkusers digest..." > > >Today's Topics: > > 1. Re: string compare bug? (Jeff Lee) > 2. Re: string compare bug? (Kevin Wright) > 3. Cygwin Build (Jerry Clarke ) > 4. Copyright question (Christian Chilan) > 5. Re: string compare bug? (Jeff Lee) > 6. Re: string compare bug? (Kevin Wright) > 7. Creating .vtk files (Stefan Ulbrich) > 8. Re: string compare bug? (David.Pont@ForestResearch.co.nz) > 9. tk8.4 (Andrew J. P. Maclean) > >--__--__-- > >Message: 1 >Date: Mon, 07 Oct 2002 16:25:14 -0400 >From: Jeff Lee >Organization: Computational Dynamics North America >To: Kevin Wright >Cc: vtkusers@public.kitware.com >Subject: Re: [vtkusers] string compare bug? > >Are you using vtkSocketController/vtkSocketCommunicator? These objects >already do this under the hood. >-Jeff > >Kevin Wright wrote: > >> I just tracked down what looks like an odd bug, and I was wondering if >> anyone out there had any insight. >> >> I'm using a vtkPolyDataReader object to field incoming polydata >> definitions through a socket. I do this by reading the polydata from >> the socket into a string, then using the input string in the >> vtkDataReader. >> >> Everything generally worked fine, except in some cases the pipeline >> would not update when new data came down the socket. Eventually I >> tracked the problem down to vtkDataReader::SetInputString which, >> before assigning the string, does a string compare between the old and >> new string. >> >> When the new and old datasets were very similar (usually identical >> geometry, slightly changed scalar values) the strncmp would return a >> match. The string length was correct, and once the string compare was >> removed, everything worked fine. >> >> I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >> the same thing on IRIX and Linux to see what happens, but I was wondering: >> >> 1. Has anyone seen this kind of behavior before? >> 2. Should the string compare really be there at all, given that these >> strings could be very long? >> >> Regards, >> Kevin. >> >> _______________________________________________ >> 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 >> >> > > >--__--__-- > >Message: 2 >Date: Mon, 07 Oct 2002 13:58:19 -0700 >To: vtkusers@public.kitware.com >From: Kevin Wright >Subject: Re: [vtkusers] string compare bug? > >At 04:25 PM 10/7/2002 -0400, you wrote: >>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>already do this under the hood. >>-Jeff > >No, I'm tying it in with some other code here. Are you saying that >vtkSocketController/Communicator addresses the bug that I'm talking about, >or that it provides the same functionality? > >Kevin. > > >>Kevin Wright wrote: >> >>>I just tracked down what looks like an odd bug, and I was wondering if >>>anyone out there had any insight. >>> >>>I'm using a vtkPolyDataReader object to field incoming polydata >>>definitions through a socket. I do this by reading the polydata from the >>>socket into a string, then using the input string in the vtkDataReader. >>> >>>Everything generally worked fine, except in some cases the pipeline would >>>not update when new data came down the socket. Eventually I tracked the >>>problem down to vtkDataReader::SetInputString which, before assigning the >>>string, does a string compare between the old and new string. >>> >>>When the new and old datasets were very similar (usually identical >>>geometry, slightly changed scalar values) the strncmp would return a >>>match. The string length was correct, and once the string compare was >>>removed, everything worked fine. >>> >>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>> >>>1. Has anyone seen this kind of behavior before? >>>2. Should the string compare really be there at all, given that these >>>strings could be very long? >>> >>>Regards, >>>Kevin. >>> >>>_______________________________________________ >>>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 >>> > > > >--__--__-- > >Message: 3 >Date: Mon, 07 Oct 2002 17:10:54 -0400 >From: "Jerry Clarke " >To: vtk users >Subject: [vtkusers] Cygwin Build > > > >I'm trying to build the nightly release on a >Win2000 box under cygwin. I'm getting a huge >amount of undefined externals when it tries >to build the Imaging .dll. > >the first is : >undefined reference to >vtkImageIterator::vtkImageIterator(vtkImageData *, int *) > > >Has anyone built >the Nightly release under cygwin,shared,python >recently ? > > >-------------------------------------------------------------- >Jerry A. Clarke clarke@arl.army.mil > (410)278-9279 > Fax (410)278-9199 >US Army Research Laboratory >Blg. 394 Room 201B >-------------------------------------------------------------- > >--__--__-- > >Message: 4 >Date: Mon, 7 Oct 2002 14:13:01 -0700 (PDT) >From: Christian Chilan >To: vtkusers@public.kitware.com >Subject: [vtkusers] Copyright question > >Hi there, > >We've created a shareware application using VTK and >Tcl/Tk to visualize 2D and 3D data sets. We may be >using patented classes such as vtkMarchingCubes >indirectly (we call vtkContourFilter in the app). Do >these classes require a copyright handling other than >just the inclusion of the notice at >http://public.kitware.com/VTK/copyright.php in the >application? > >Thanks, > >Christian > > >__________________________________________________ >Do you Yahoo!? >Faith Hill - Exclusive Performances, Videos & More >http://faith.yahoo.com > >--__--__-- > >Message: 5 >Date: Mon, 07 Oct 2002 17:13:50 -0400 >From: Jeff Lee >Organization: Computational Dynamics North America >To: Kevin Wright >Cc: vtkusers@public.kitware.com >Subject: Re: [vtkusers] string compare bug? > > > >Kevin Wright wrote: > >> At 04:25 PM 10/7/2002 -0400, you wrote: >> >>> Are you using vtkSocketController/vtkSocketCommunicator? These >>> objects already do this under the hood. >>> -Jeff >> >> >> No, I'm tying it in with some other code here. Are you saying that >> vtkSocketController/Communicator addresses the bug that I'm talking >> about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? I agree that the string compare >could be expensive, but the dataset update could be even more so. I >have been told that the data readers/writers are going to change in the >near future to xml anyway, but it would be good to know if this is just >a windows problem. I have been using the socketcommunicator for quite >some time and it doesn't exhibit these symptoms. If you have some >sample code, it might be worth putting up on the list so people can test >it... >-Jeff > >> >> >> Kevin. >> >> >>> Kevin Wright wrote: >>> >>>> I just tracked down what looks like an odd bug, and I was wondering >>>> if anyone out there had any insight. >>>> >>>> I'm using a vtkPolyDataReader object to field incoming polydata >>>> definitions through a socket. I do this by reading the polydata >>>> from the socket into a string, then using the input string in the >>>> vtkDataReader. >>>> >>>> Everything generally worked fine, except in some cases the pipeline >>>> would not update when new data came down the socket. Eventually I >>>> tracked the problem down to vtkDataReader::SetInputString which, >>>> before assigning the string, does a string compare between the old >>>> and new string. >>>> >>>> When the new and old datasets were very similar (usually identical >>>> geometry, slightly changed scalar values) the strncmp would return a >>>> match. The string length was correct, and once the string compare >>>> was removed, everything worked fine. >>>> >>>> I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to >>>> try the same thing on IRIX and Linux to see what happens, but I was >>>> wondering: >>>> >>>> 1. Has anyone seen this kind of behavior before? >>>> 2. Should the string compare really be there at all, given that >>>> these strings could be very long? >>>> >>>> Regards, >>>> Kevin. >>>> >>>> _______________________________________________ >>>> 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 >> >> > > > >--__--__-- > >Message: 6 >Date: Mon, 07 Oct 2002 14:32:27 -0700 >To: vtkusers@public.kitware.com >From: Kevin Wright >Subject: Re: [vtkusers] string compare bug? > >At 05:13 PM 10/7/2002 -0400, you wrote: >>>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>>already do this under the hood. >>>>-Jeff >>> >>> >>>No, I'm tying it in with some other code here. Are you saying that >>>vtkSocketController/Communicator addresses the bug that I'm talking >>>about, or that it provides the same functionality? >> >> >>those classes provide the same functionality, and use a very similar >>approach. I'm not sure what you are seeing is a bug per-se - does your >>Irix/Linux build do the same thing? I agree that the string compare could >>be expensive, but the dataset update could be even more so. I have been >>told that the data readers/writers are going to change in the near future >>to xml anyway, but it would be good to know if this is just a windows >>problem. I have been using the socketcommunicator for quite some time and >>it doesn't exhibit these symptoms. If you have some sample code, it might >>be worth putting up on the list so people can test it... >>-Jeff > >I'm going to be doing some testing on IRIX/LINUX and if there are any >interesting results I'll post them. I think its entirely possible that the >vtk socket code does demonstrate the same symptoms. As I said, for some >reason, it only happens when the incoming polydata only changes slightly >from the version currently in the reader. It would be difficult to extract >the code that I'm seeing this on, but perhaps I'll try to make a small >sample that exhibits the same symptoms. > >As far as the cost of the string compare, it seems to me that by uploading >the responsibility of that check to the caller of the reader, you give the >programmer the option to either spend the time checking, or not. In my >case, I'm performing that check already before sending the data down the >socket, so its purely wasted time for me. Its a small point, but perhaps >even a "no check" option would be a good addition to the reader. > >Thanks for the feedback Jeff. > >Kevin. > > > > >>>Kevin. >>> >>> >>>>Kevin Wright wrote: >>>> >>>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>>anyone out there had any insight. >>>>> >>>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>>definitions through a socket. I do this by reading the polydata from >>>>>the socket into a string, then using the input string in the vtkDataReader. >>>>> >>>>>Everything generally worked fine, except in some cases the pipeline >>>>>would not update when new data came down the socket. Eventually I >>>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>>assigning the string, does a string compare between the old and new string. >>>>> >>>>>When the new and old datasets were very similar (usually identical >>>>>geometry, slightly changed scalar values) the strncmp would return a >>>>>match. The string length was correct, and once the string compare was >>>>>removed, everything worked fine. >>>>> >>>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>>> >>>>>1. Has anyone seen this kind of behavior before? >>>>>2. Should the string compare really be there at all, given that these >>>>>strings could be very long? >>>>> >>>>>Regards, >>>>>Kevin. >>>>> >>>>>_______________________________________________ >>>>>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 >>> >> > > > >--__--__-- > >Message: 7 >Date: Tue, 08 Oct 2002 00:06:33 +0200 >From: Stefan Ulbrich >To: vtkusers@public.kitware.com >Subject: [vtkusers] Creating .vtk files > >hi, i want to create a .vtk file out of several cubes, spheres etc. >objects. >dows anyone know how i have to do this? > >thanks > >stefan > > >--__--__-- > >Message: 8 >Subject: Re: [vtkusers] string compare bug? >To: Kevin Wright >Cc: vtkusers@public.kitware.com >From: David.Pont@ForestResearch.co.nz >Date: Tue, 8 Oct 2002 11:41:56 +1300 > > >Nothing to do with the possible bug, just something <=2c worth, > To speed up the case where two very long strings are different can you >first compare string lengths? Ie if the lengths are different the strings >are different, which should save some time in that case. Where the lengths >match then the full compare is needed. >Another trick, which is no use as a general approach, but can be used in >specific applications: If long strings typically carry a prefix which >changes slowly, and a suffix which changes more rapidly, it can be much >more efficient to do your own compare (when the lengths are equal) by >comparing chars starting from the end and advancing towards the front of >the string. > > regards > Dave Pont > > > >|--------+---------------------------------> >| | Kevin Wright | >| | | >| | Sent by: | >| | vtkusers-admin@public.k| >| | itware.com | >| | | >| | | >| | 08/10/2002 10:32 | >| | | >|--------+---------------------------------> > >------------------------------------------------------------------------------------------------------------| > | | > | To: vtkusers@public.kitware.com | > | cc: | > | Subject: Re: [vtkusers] string compare bug? | > >------------------------------------------------------------------------------------------------------------| > > > > >At 05:13 PM 10/7/2002 -0400, you wrote: >>>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>>already do this under the hood. >>>>-Jeff >>> >>> >>>No, I'm tying it in with some other code here. Are you saying that >>>vtkSocketController/Communicator addresses the bug that I'm talking >>>about, or that it provides the same functionality? >> >> >>those classes provide the same functionality, and use a very similar >>approach. I'm not sure what you are seeing is a bug per-se - does your >>Irix/Linux build do the same thing? I agree that the string compare could > >>be expensive, but the dataset update could be even more so. I have been >>told that the data readers/writers are going to change in the near future >>to xml anyway, but it would be good to know if this is just a windows >>problem. I have been using the socketcommunicator for quite some time and > >>it doesn't exhibit these symptoms. If you have some sample code, it might > >>be worth putting up on the list so people can test it... >>-Jeff > >I'm going to be doing some testing on IRIX/LINUX and if there are any >interesting results I'll post them. I think its entirely possible that the > >vtk socket code does demonstrate the same symptoms. As I said, for some >reason, it only happens when the incoming polydata only changes slightly >from the version currently in the reader. It would be difficult to extract > >the code that I'm seeing this on, but perhaps I'll try to make a small >sample that exhibits the same symptoms. > >As far as the cost of the string compare, it seems to me that by uploading >the responsibility of that check to the caller of the reader, you give the >programmer the option to either spend the time checking, or not. In my >case, I'm performing that check already before sending the data down the >socket, so its purely wasted time for me. Its a small point, but perhaps >even a "no check" option would be a good addition to the reader. > >Thanks for the feedback Jeff. > >Kevin. > > > > >>>Kevin. >>> >>> >>>>Kevin Wright wrote: >>>> >>>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>>anyone out there had any insight. >>>>> >>>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>>definitions through a socket. I do this by reading the polydata from >>>>>the socket into a string, then using the input string in the >vtkDataReader. >>>>> >>>>>Everything generally worked fine, except in some cases the pipeline >>>>>would not update when new data came down the socket. Eventually I >>>>>tracked the problem down to vtkDataReader::SetInputString which, before > >>>>>assigning the string, does a string compare between the old and new >string. >>>>> >>>>>When the new and old datasets were very similar (usually identical >>>>>geometry, slightly changed scalar values) the strncmp would return a >>>>>match. The string length was correct, and once the string compare was >>>>>removed, everything worked fine. >>>>> >>>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>>the same thing on IRIX and Linux to see what happens, but I was >wondering: >>>>> >>>>>1. Has anyone seen this kind of behavior before? >>>>>2. Should the string compare really be there at all, given that these >>>>>strings could be very long? >>>>> >>>>>Regards, >>>>>Kevin. >>>>> >>>>>_______________________________________________ >>>>>This is the private VTK discussion list. Please keep messages on-topic. > >>>>>Check the FAQ at: >>>>>Follow this link to subscribe/unsubscribe: >>>>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>>_______________________________________________ >>>This is the private VTK discussion list. Please keep messages on-topic. >>>Check the FAQ at: >>>Follow this link to subscribe/unsubscribe: >>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >> > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: < >http://public.kitware.com/cgi-bin/vtkfaq> >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > > > > >--__--__-- > >Message: 9 >Reply-To: >From: "Andrew J. P. Maclean" >To: >Date: Tue, 8 Oct 2002 10:33:40 +1000 >Organization: ACFR >Subject: [vtkusers] tk8.4 > >This is a multi-part message in MIME format. > >------=_NextPart_000_00A1_01C26EB6.2B29AD10 >Content-Type: text/plain; > charset="us-ascii" >Content-Transfer-Encoding: 7bit > >Has CMake been modified to allow us to use tk8.4? > >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/ > > > >___________________________________________ > > > > >------=_NextPart_000_00A1_01C26EB6.2B29AD10 >Content-Type: text/html; > charset="us-ascii" >Content-Transfer-Encoding: quoted-printable > > > > >charset=3Dus-ascii"> > > > > > > > > > > >
> >

style=3D'font-size:10.0pt; >font-family:Arial'>Has CMake been modified to allow us to use tk8.4? = >

> >

style=3D'font-size:10.0pt; >font-family:Arial'>Thanks

> >

style=3D'font-size:10.0pt; >font-family:Arial'> Andrew

> >

style=3D'font-size: >12.0pt'>___________________________________________

> >

style=3D'font-size: >12.0pt'>Andrew J. P. Maclean

> >

style=3D'font-size: >12.0pt'>Postal:

> >

style=3D'font-size: >12.0pt'>Australian Centre for Field Robotics

> >

style=3D'font-size: >12.0pt'>The Rose Street Building J04

> >

style=3D'font-size: >12.0pt'>The University of Sydney 2006 NSW

> >

style=3D'font-size: > 12.0pt'>AUSTRALIA

> >

style=3D'font-size: >12.0pt'>

> >

style=3D'font-size: >12.0pt'>Room: 106

> >

style=3D'font-size: >12.0pt'>Phone: +61 2 9351 3283

> >

style=3D'font-size: >12.0pt'>Fax: +61 2 9351 7474

> >

style=3D'font-size: >12.0pt'> = >http://www.acfr.usyd.edu.au/

> >

style=3D'font-size: >12.0pt'>

> >

style=3D'font-size: >12.0pt'>___________________________________________

> >

style=3D'font-size: >12.0pt'>

> >
> > > > > >------=_NextPart_000_00A1_01C26EB6.2B29AD10-- > > > >--__--__-- > >_______________________________________________ >vtkusers mailing list >vtkusers@public.kitware.com >http://public.kitware.com/mailman/listinfo/vtkusers > > >End of vtkusers Digest > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From sebastien.barre@kitware.com Tue Oct 8 03:27:52 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Mon, 07 Oct 2002 22:27:52 -0400 Subject: [vtkusers] tk8.4 In-Reply-To: <00a001c26e62$597d9d10$88d24e81@acfr.usyd.edu.au> Message-ID: <5.1.1.6.0.20021007222717.01b3fe30@pop.biz.rr.com> --=====================_849000==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed At 10/7/2002 08:33 PM, Andrew J. P. Maclean wrote: >Has CMake been modified to allow us to use tk8.4? Yes, both Cmake (CVS) and VTK (CVS) will work with 8.4, I've been working with it for a couple of months now. -- Sebastien Barre --=====================_849000==.ALT Content-Type: text/html; charset="us-ascii" At 10/7/2002 08:33 PM, Andrew J. P. Maclean wrote:

Has CMake been modified to allow us to use tk8.4?

Yes, both Cmake (CVS) and VTK (CVS) will work with 8.4, I've been working with it for a couple of months now.


--
Sebastien Barre --=====================_849000==.ALT-- From PS7278514B@ntu.edu.sg Tue Oct 8 07:53:31 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 8 Oct 2002 14:53:31 +0800 Subject: [vtkusers] About The headsq Format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A686@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which image format about Vtk provided quarter file. I meaned is it from DICOM, *.BMP or *.Tiff...........image format. I tried different software like ACD See, ezDICOM, Photoshop, Image, = AutoCAD, PhotoEdit......but failed. It can only be opened by Vtk program. which commercial Software could open it except VTK ? By the way,I also got a stack of brain slice files from Mimic software = package. I did not know which image format about it. And how can I open the slice except Mimic & Magic software provided by = Materialize Co. Because I think when we study it. We must know the property of the slices. Not only the 64X64X93 16 bits Color but also where it comes from. Is it = the raw data or pre-processed? Could it be opened by another common Software? I just want to know these. Because I am a newer in VTK, did any expert = share some idea about the Image process & 3D Reconstruction about the = stack of Slices. I am interested in Rapid Prototyping Technique such as SLS & 3D Printing = Using in Medical Area. I used VTK in Model Reconstruction field. We can = make the friend if Anyone is interested in. I am working at Applied Materials Research Centre, S.M.E, NTU. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From dan@chalkie.org.uk Tue Oct 8 08:44:29 2002 From: dan@chalkie.org.uk (Dr. Dan White) Date: Tue, 8 Oct 2002 10:44:29 +0300 Subject: [vtkusers] tiff and jpeg readers with volume rendering Message-ID: --Apple-Mail-1--78705225 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi John, and all, Thanks for replying! Actually the images are grayscale 8 bit, so do I still need the=20 luminescence filter before I can do volume rendering properly? If so can you suggest code? Does it go in just after the reader code? cheers Dan >Message: 11 >Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader >To: vtkusers@public.kitware.com >From: anast.jm@pg.com >Date: Mon, 7 Oct 2002 14:23:57 -0400 >I suspect these are color images and you might want to try to=20 extract the >luminance (vtkImageLuminance) before rendering....john dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) --Apple-Mail-1--78705225 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 Hi John, and all,=20 Thanks for replying! Actually the images are grayscale 8 bit, so do I still need the luminescence filter before I can do volume rendering properly? If so can you suggest code? Does it go in just after the reader code? cheers Dan >Message: 11 >Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader >To: vtkusers@public.kitware.com >From: anast.jm@pg.com >Date: Mon, 7 Oct 2002 14:23:57 -0400 >I suspect these are color images and you might want to try to extract the >luminance (vtkImageLuminance) before rendering....john dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office)= --Apple-Mail-1--78705225-- From benoit.regrain@creatis.insa-lyon.fr Tue Oct 8 08:14:12 2002 From: benoit.regrain@creatis.insa-lyon.fr (Benoit Regrain) Date: Tue, 8 Oct 2002 09:14:12 +0200 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> Message-ID: <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> ----- Original Message ----- From: "Prabhu Ramachandran" To: "Benoit Regrain" Cc: "Mailing VTK Users" Sent: Friday, October 04, 2002 9:08 PM Subject: Re: [vtkusers] [Python + wx] pb with wxVTKRenderWindow > >>>>> "BR" == Benoit Regrain writes: > > BR> I believe I might have found two bugs in the class > BR> wxVTKRenderWindow as encountered in > BR> VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working > BR> on Windows 2000 with the VTKNightly dated 10/02/2002. > > BR> I could fix this problem, by changing the line 164 by : try: > BR> size = parent.GetSize() except: size = wxDefaultSize The > BR> try/except is used to protect the call to parent. > > 2 points here: > > 1. I think blanket except clauses are not a good idea (unless > unavoidable). I'd prefer something like: > > try: > size = parent.GetSize() > except AttributeError: > size = wxDefaultSize > > Or something like that. I dont get an exception under Linux so don't > know what exception you are trying to catch here. Could you care to > elaborate? The AttributeError exception is the best here. Parent variable is always defined but can be anything other than a wxWindow (like None or other type). No other exception is usefull to foresee bad behaviors concerning this section of code. > > BR> - When the script wxVTKRenderWindow.py is launched and when > BR> killing the window (by clicking on the window close button, > BR> the one with a cross at the upper right), I get the following > BR> error message in the Python console : runtime error R6025 - > > BR> def __del__(self): renderers = > BR> self._RenderWindow.GetRenderers() numRenderers = > BR> renderers.GetNumberOfItems() self._CurrentRenderer = None > BR> renderers.InitTraversal() for i in range(0,numRenderers): > BR> self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) > > This could be added but I have one question here. IIRC __del__ is > actually called only after the window is killed and any "bad > behaviour" can occur when the window is alive. Ok, there is the case > that the window is dead and the actors are still alive. But are we > guaranteed that __del__ will be called as soon as the window is > destroyed? The order of destruction of the objects also matters here. > I dont remember clearly but is there a way to always call a function > *before* a widget (I mean any widget) is destroyed and not at object > destruction? If the renderers maybe removed in that function. The runtime error R6025 is a specific Windows error. But it seems that on Linux, we sometimes obtain a core dump. Unfortunately, I can't certify the behaviour of events between the closing and the destruction in memory of the window. But the problem that we have appears after the window's destruction. I have discovered Python recently, and I don't know all mechanisms under this langage. But this destructor realize a clean destruction of the wxVTKRenderWindow instance. So, I think this destructor isn't bad, moreover it solves runtime error problems on windows and core dump problems on linux. But if these errors persist, I'm ready to search a best solution (when I'll know all specifications of garbage collector :) ). Greetings Benoit Regrain From jeff@cdnorthamerica.com Tue Oct 8 11:38:40 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Tue, 08 Oct 2002 06:38:40 -0400 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> Message-ID: <3DA2B5B0.80504@cdnorthamerica.com> Kevin Wright wrote: > At 05:13 PM 10/7/2002 -0400, you wrote: > >>>> Are you using vtkSocketController/vtkSocketCommunicator? These >>>> objects already do this under the hood. >>>> -Jeff >>> >>> >>> >>> No, I'm tying it in with some other code here. Are you saying that >>> vtkSocketController/Communicator addresses the bug that I'm talking >>> about, or that it provides the same functionality? >> >> >> >> those classes provide the same functionality, and use a very similar >> approach. I'm not sure what you are seeing is a bug per-se - does >> your Irix/Linux build do the same thing? I agree that the string >> compare could be expensive, but the dataset update could be even more >> so. I have been told that the data readers/writers are going to >> change in the near future to xml anyway, but it would be good to know >> if this is just a windows problem. I have been using the >> socketcommunicator for quite some time and it doesn't exhibit these >> symptoms. If you have some sample code, it might be worth putting up >> on the list so people can test it... >> -Jeff > > > I'm going to be doing some testing on IRIX/LINUX and if there are any > interesting results I'll post them. I think its entirely possible > that the vtk socket code does demonstrate the same symptoms. Possible, but it sounds more like vc++ problem on windows. I actually looked at the code this morning, and I don't see the strncmp in vtkDataReader::SetInputString(). Are you working with an older version of vtk? -Jeff From lehrig@t-online.de Tue Oct 8 11:03:16 2002 From: lehrig@t-online.de (Rainer Lehrig) Date: Tue, 8 Oct 2002 12:03:16 +0200 Subject: [vtkusers] Network based VTK applications Message-ID: <200210081203.16890.lehrig@t-online.de> Hi, I have an OpenSource project on http://pvbrowser.sourceforge.net This application is a framework for process visualization. It runs on=20 Linux/Unix Windows and OpenVMS. Within this framework VTK is integrated f= or=20 3D visualization. Please have a look. Questions and suggestions welcome. Yours: Rainer Lehrig From PS7278514B@ntu.edu.sg Tue Oct 8 12:31:28 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 8 Oct 2002 19:31:28 +0800 Subject: [vtkusers] about the BMP slices Read & 3D Rendering Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A688@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I also met the same problem when I read a stack of 512x512x256 *.BMP = head slice files.(33 slices) The XY boundary size of the files is 220.2mm X 220.2mm.=20 Actually the images are grayscale 8 bit CT Head Slices. I wanted to read the stack of slices and 3D Reconstruction. Could you share some vtk source code about the process of tiff and jpeg = Slices. I thinked we met the similar problem. there is my source code: vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("g:/00head/head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,63,0,63,1,33);// reader->SetDataSpacing(1,1,1); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=3DvtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,255);//Scalar between 0~255 in 8 Bits. vtkPolyDataMapper *isoMapper=3DvtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From marcelo@radioimaging.net Tue Oct 8 13:03:38 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Tue, 8 Oct 2002 09:03:38 -0300 Subject: [vtkusers] about the BMP slices Read & 3D Rendering References: <0C42D409AF10B1428A0B026FB160A5BE33A688@mail02.student.main.ntu.edu.sg> Message-ID: <001901c26ec2$bcfccc70$d4323690@System.local> Hi Yan, How are u ?? I read a stack of 512 X 512 with 120 slices. The code that i read DICOM isnt my mine and i have to get permission to send the code for you, sorry. TRy to find the DICOM2 is a open source code to read DICOM. vtkImageReader *v16 = vtkImageReader::New(); v16 -> SetHeaderSize ( 0 ); // 350 v16 -> SetDataExtent( 0, 511, 0, 511, 1, 120 ); v16 -> SetDataSpacing ( 1, 1, 3.5 ); v16 -> SetDataScalarTypeToUnsignedShort (); v16 -> SetDataByteOrderToLittleEndian(); v16 -> SetFileDimensionality( 3 ); v16 -> SetFilePattern( "tumor.vtk" ); v16 -> SetFilePrefix( "tumor.vtk" ); v16 -> SetDataMask(0x7fff); ----- Original Message ----- From: "#YAN RI AN#" To: ; Cc: "Vtkusers (E-mail)" Sent: Tuesday, October 08, 2002 8:31 AM Subject: [vtkusers] about the BMP slices Read & 3D Rendering > Dear VTK-Users: > I also met the same problem when I read a stack of 512x512x256 *.BMP head slice files.(33 slices) > The XY boundary size of the files is 220.2mm X 220.2mm. > Actually the images are grayscale 8 bit CT Head Slices. > I wanted to read the stack of slices and 3D Reconstruction. > Could you share some vtk source code about the process of tiff and jpeg Slices. > I thinked we met the similar problem. > there is my source code: > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,63,0,63,1,33);// > reader->SetDataSpacing(1,1,1); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,255);//Scalar between 0~255 in 8 Bits. > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 karga314@student.liu.se Tue Oct 8 13:35:10 2002 From: karga314@student.liu.se (=?windows-1252?Q?Karin_Gardstr=F6m?=) Date: Tue, 08 Oct 2002 14:35:10 +0200 Subject: [vtkusers] InteractorStyleUser Message-ID: <127c313e32.13e32127c3@student.liu.se> Dear VTK-users, I'm using vtkInteractorStyleUser to specify my own interactor. The interactor takes the indata and modifies the normal of vtkPlane that I use as cutfunction to a vtkCutter. My callback function is supposed to rotate the cutting plane of a dataset but I can't get VTK to render the new cutplane. Anyone knows how to do this? Thankyou in advance, Karin From williams13@llnl.gov Tue Oct 8 14:01:59 2002 From: williams13@llnl.gov (Dean N. Williams) Date: Tue, 08 Oct 2002 06:01:59 -0700 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> <3DA1BAB7.7060600@llnl.gov> <15777.48865.377847.358359@monster.linux.in> Message-ID: <3DA2D747.40100@llnl.gov> Hi Prabhu, By recompiling my Python and VTK with the shared version of tcl/tk 8.3.3 the core dumps stopped! So if anyone runs into the core dumps when running Wrapping/vtkRenderWidget.py, Wrapping/vtkRenderWidget.py, etc., then recompile Python and VTK with the shared version of tcl/tk. I feel that VTK should work with either the static or shared version of tcl/tk. In any case, thank you Prabhu and Charl for your help. Best regards, Dean >>>>>>"DNW" == Dean N Williams writes: >>>>>> >>>>>> > > DNW> Prabhu, I will rebuild the VTK again and hope that this > DNW> clears things up. Here is the outcome of running ldd on both > DNW> shared libraries: > >[snip] > > DNW> Neither show the use of tcl/tk. > >Well simply rebuilding it might not fix the problem. It looks like >you have built both Python and VTK with the static Tcl/Tk libraries. >Maybe you should recompile both Python and VTK to use the shared >versions of Tcl/Tk. > >For VTK make sure CMake is using the shared version. > > TCL_LIBRARY:FILEPATH=/usr/lib/libtcl8.3.so > > TK_LIBRARY:FILEPATH=/usr/lib/libtk8.3.so > >Or whatever appropriate version is on your system. > >BTW, do the VTK Tcl/Tk examples work ok? > >Hope this helps. > >prabhu > > > From andresba@hotmail.com Tue Oct 8 14:10:45 2002 From: andresba@hotmail.com (Andres Barrera) Date: Tue, 08 Oct 2002 08:10:45 -0500 Subject: [vtkusers] mouse interaction Message-ID: Dear Steffen and list, I am implementing one myself. I've alrady sent some code to some vtk users. Anyway, if somebody can tell me how to map the "vkRenderWindowInteractor" to any window that is not the default of vtk(using C++Builder or at least MS Visual C++) I would be very interested on. Andres > >Dear VTK-users, > >if ever somebody has programmed a mouse interaction for VTK in C++, >I'm interested in it. > >Steffen >_______________________________________________ >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 worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com From marcelo@radioimaging.net Tue Oct 8 14:30:38 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Tue, 8 Oct 2002 10:30:38 -0300 Subject: [vtkusers] mouse interaction References: Message-ID: <001601c26ece$e440de50$d4323690@System.local> Hi In C++ Builder and VTK 4.0 use renWin = vtkWin32OpenGLRenderWindow::New(); renWin->SetParentId ( Panel1->Handle ); renWin->AddRenderer( ren1 ); iren->SetRenderWindow( renWin ); iren = vtkWin32RenderWindowInteractor::New(); renWin->Render(); I hope this help Marcelo ----- Original Message ----- From: "Andres Barrera" To: ; Sent: Tuesday, October 08, 2002 10:10 AM Subject: Re: [vtkusers] mouse interaction > Dear Steffen and list, > > I am implementing one myself. I've alrady sent some code to some vtk > users. Anyway, if somebody can tell me how to map the > "vkRenderWindowInteractor" to any window that is not the default of > vtk(using C++Builder or at least MS Visual C++) I would be very interested > on. > > Andres > > > > > >Dear VTK-users, > > > >if ever somebody has programmed a mouse interaction for VTK in C++, > >I'm interested in it. > > > >Steffen > >_______________________________________________ > >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 > > _______________________________________________ > 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.garcia@epfl.ch Tue Oct 8 14:33:29 2002 From: martin.garcia@epfl.ch (martin.garcia@epfl.ch) Date: Tue, 8 Oct 2002 15:33:29 +0200 Subject: [vtkusers] How to use vtkPolyData as a vtkImplicitfunction for vtkClipPolyData Message-ID: <1034084009.3da2dea970b42@imapwww.epfl.ch> Hi folks, I'm trying to use vtkPolyData as a vtkImplicitfunction for vtkClipPolyData but I met some trouble with vtkImplicitDataSet. I've seen in the mailingList Archives that there exist a code for a vtkimplicitPolyData that could help me, but it has not been added to vtk 4. Does somebody know how I can find this code? Or has somebody an alternative solution to this problem? Thanks --Martin ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From andresba@hotmail.com Tue Oct 8 15:06:06 2002 From: andresba@hotmail.com (Andres Barrera) Date: Tue, 08 Oct 2002 09:06:06 -0500 Subject: [vtkusers] mouse interaction Message-ID: Thank you Marcelo! I will try that right away. Andres >Hi > >In C++ Builder and VTK 4.0 use > > renWin = vtkWin32OpenGLRenderWindow::New(); > renWin->SetParentId ( Panel1->Handle ); > renWin->AddRenderer( ren1 ); > > iren->SetRenderWindow( renWin ); > iren = vtkWin32RenderWindowInteractor::New(); > > renWin->Render(); > >I hope this help >Marcelo > > >----- Original Message ----- >From: "Andres Barrera" >To: ; > >Sent: Tuesday, October 08, 2002 10:10 AM >Subject: Re: [vtkusers] mouse interaction > > > > Dear Steffen and list, > > > > I am implementing one myself. I've alrady sent some code to some vtk > > users. Anyway, if somebody can tell me how to map the > > "vkRenderWindowInteractor" to any window that is not the default of > > vtk(using C++Builder or at least MS Visual C++) I would be very >interested > > on. > > > > Andres > > > > > > > > > >Dear VTK-users, > > > > > >if ever somebody has programmed a mouse interaction for VTK in C++, > > >I'm interested in it. > > > > > >Steffen > > >_______________________________________________ > > >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 > > > > _______________________________________________ > > 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 Gowri.Gopalakrishnan@inteq.com Tue Oct 8 15:21:05 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Tue, 8 Oct 2002 09:21:05 -0500 Subject: [vtkusers] mouse interaction + example Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C26ED5.EFF20420 Content-Type: text/plain C++ mouse interaction: Here is a sample file. Pardon me for lack of order in this file. I did this as test long time ago and I just attach it here to convey the idea.. First of all it is written for non MFC win32 application. In the WinMain there is a call to set up vtk (method : myVTKApp) Here I use directly vtk window. If you don't want this use SetParentId on the renderwindow and pass the window handle. Inside the myVTKApp there is a call to set the winproc (GetWindowLong). (I used two winprocs (1,2) to understand the behaviour , but you need only one winproc). Your mouse, key event arrives at the winproc and it could be either WM_CHAR or any other. So there you have the event and now you can do what you want with it. If you just want to pass it to vtk use vtkHandleMessage2 to pass it to vtk. With this you know exactly what interactions are happening and it is completely in your control. Regards Gowri ------_=_NextPart_000_01C26ED5.EFF20420 Content-Type: application/octet-stream; name="testwindow.cpp" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="testwindow.cpp" // testwindow.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "stdio.h" #include "vtk.h" #include "vtkArcPlotter.h" #include "vtkTextMapper.h" #include "vtkwin32renderwindowinteractor.h" #include "vtkwin32OpenGLrenderwindow.h" #include =20 #include =20 // Global variable=20 class myVTKApp; myVTKApp *theVTKApp ; HINSTANCE hinst;=20 vtkWin32RenderWindowInteractor *iren;=09 vtkWin32OpenGLRenderWindow *renWin; vtkActor *sphereActor;=20 // Function prototypes.=20 LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);=20 LRESULT CALLBACK MainWndProc2(HWND hwnd, UINT msg, WPARAM wparam, = LPARAM lparam); // Application entry point.=20 class myVTKApp { public:=20 myVTKApp(HWND parent); ~myVTKApp(); private: vtkRenderer *renderer; vtkSphereSource *sphere; vtkPolyDataMapper *sphereMapper; }; myVTKApp::myVTKApp(HWND hwnd) { LONG result; DWORD res; LONG resu; result =3D GetWindowLong(hwnd, GWL_HINSTANCE); //GWL_WNDPROC, (LONG) = MainWndProc2 ); res =3D SetWindowLong(hwnd, GWL_HINSTANCE, result); res =3D SetWindowLong(hwnd, GWL_WNDPROC, (LONG)MainWndProc2); resu =3D GetWindowLong(hwnd,GWL_HINSTANCE); result =3D GetLastError(); this -> renderer =3D vtkRenderer::New(); renWin =3D vtkWin32OpenGLRenderWindow::New(); renWin -> AddRenderer(this -> renderer); // set up parent =09 renWin -> SetParentId(hwnd); // renWin -> WindowInitialize(); iren =3D vtkWin32RenderWindowInteractor::New(); iren -> SetRenderWindow(renWin); this -> sphere =3D vtkSphereSource::New(); this -> sphere -> SetThetaResolution(8); this -> sphere -> SetPhiResolution(8); this -> sphereMapper =3D vtkPolyDataMapper::New(); this -> sphereMapper -> SetInput(this -> sphere -> GetOutput()); sphereActor =3D vtkActor::New(); sphereActor -> SetMapper(this -> sphereMapper); this -> renderer->AddActor(sphereActor); this -> renderer -> SetBackground(1,1,1); renWin -> SetSize(400,400); renWin -> Render(); // iren -> InstallMessageProcOn(); // iren -> Start(); =09 } myVTKApp::~myVTKApp() { renWin -> Delete(); renderer -> Delete(); // iren -> Delete(); sphere -> Delete(); sphereMapper -> Delete(); } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASS wcx;=20 HWND hwnd; MSG msg; =20 // Fill in the window class structure with parameters=20 // that describe the main window.=20 =20 if(!hPrevInstance) { wcx.style =3D CS_HREDRAW |=20 CS_VREDRAW; // redraw if size changes=20 wcx.lpfnWndProc =3DMainWndProc ; // points to window procedure=20 wcx.cbClsExtra =3D 0; // no extra class memory=20 wcx.cbWndExtra =3D 0; // no extra window memory=20 wcx.hInstance =3D hInstance; // handle to instance=20 wcx.hIcon =3D LoadIcon(hInstance,=20 IDI_APPLICATION); // predefined app. icon=20 wcx.hCursor =3D LoadCursor(NULL,=20 IDC_ARROW); // predefined arrow=20 wcx.hbrBackground =3D (HBRUSH)(COLOR_WINDOW+1); wcx.lpszMenuName =3D "test"; // name of menu resource=20 wcx.lpszClassName =3D "test"; // name of window class=20 =20 // Register the window class.=20 =20 RegisterClass(&wcx);=20 } hinst =3D hInstance;=20 =20 // Create the main window.=20 =20 hwnd =3D CreateWindow(=20 "test", // name of window class=20 "Sample", // title-bar string=20 WS_OVERLAPPEDWINDOW, // top-level window=20 CW_USEDEFAULT, // default horizontal position=20 CW_USEDEFAULT, // default vertical position=20 400, // default width=20 480, // default height=20 NULL, // no owner window=20 (HMENU) NULL, // use class menu=20 hInstance, // handle to application instance=20 NULL); // no window-creation data=20 =20 if (!hwnd)=20 return FALSE;=20 =20 // Show the window and send a WM_PAINT message to the window=20 // procedure.=20 theVTKApp =3D new myVTKApp(hwnd); ShowWindow(hwnd, nCmdShow);=20 UpdateWindow(hwnd);=20 =09 while(GetMessage(&msg, NULL, 0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } // return msg.wParam; }=20 LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM = lparam) { HANDLE hnd; HANDLE hBrush;=20 HDC hdc, hdcMem; static HWND ewin; PAINTSTRUCT ps; int i=3D0; =09 switch(msg) { case WM_CHAR: i =3D wparam; // msg=3D258; // vtkHandleMessage(hwnd,msg,wparam,lparam); break; case WM_CREATE: { ewin =3D CreateWindow("button","EXIT", WS_CHILD|WS_VISIBLE|SS_CENTER, = 0,400,400, 60,hwnd,(HMENU)2, = (HINSTANCE)GetWindowLong(hwnd,GWL_HINSTANCE), NULL); =09 =09 return DefWindowProc(hwnd, msg, wparam,lparam); } case WM_COMMAND: i=3D2; switch(wparam) { =09 case 2: PostQuitMessage(0); if(theVTKApp) { delete theVTKApp; theVTKApp =3D NULL; } break; } return DefWindowProc(hwnd, msg, wparam,lparam); case WM_DESTROY: PostQuitMessage(0); if(theVTKApp) { delete theVTKApp; theVTKApp =3D NULL; } return DefWindowProc(hwnd, msg, wparam,lparam); break; case WM_PAINT: return DefWindowProc(hwnd, msg, wparam,lparam); break; } return DefWindowProc(hwnd, msg, wparam,lparam); } LRESULT CALLBACK MainWndProc2(HWND hwnd, UINT msg, WPARAM wparam, = LPARAM lparam) { HANDLE hnd; HANDLE hBrush;=20 HDC hdc, hdcMem; static HWND ewin; PAINTSTRUCT ps; int i=3D0; =09 switch(msg) { case WM_CHAR: i =3D wparam; // msg=3D258; vtkHandleMessage2(hwnd,msg,wparam,lparam,iren); // sphereActor -> GetProperty() -> SetRepresentationToWireframe(); // renWin -> Render(); break; case WM_CREATE: { ewin =3D CreateWindow("button","EXIT", WS_CHILD|WS_VISIBLE|SS_CENTER, = 0,400,400, 60,hwnd,(HMENU)2, = (HINSTANCE)GetWindowLong(hwnd,GWL_HINSTANCE), NULL); =09 =09 return DefWindowProc(hwnd, msg, wparam,lparam); } case WM_COMMAND: i=3D2; switch(wparam) { =09 case 2: PostQuitMessage(0); if(theVTKApp) { delete theVTKApp; theVTKApp =3D NULL; } break; } return DefWindowProc(hwnd, msg, wparam,lparam); case WM_DESTROY: PostQuitMessage(0); if(theVTKApp) { delete theVTKApp; theVTKApp =3D NULL; } return DefWindowProc(hwnd, msg, wparam,lparam); break; case WM_PAINT: return DefWindowProc(hwnd, msg, wparam,lparam); break; } return DefWindowProc(hwnd, msg, wparam,lparam); } ------_=_NextPart_000_01C26ED5.EFF20420-- From kamucha@hfm.e-technik.uni-kassel.de Tue Oct 8 17:15:51 2002 From: kamucha@hfm.e-technik.uni-kassel.de (George Kamucha) Date: Tue, 08 Oct 2002 18:15:51 +0200 Subject: [vtkusers] vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> Message-ID: <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> Hi all, I am selecting points on a surface using vtkPointPicker, and then placing small spheres in the selected locations. The problem I am facing is that, when I select the first location, a sphere is not immediately placed there until a second location is selected. That is, I can only see the position of the previously selected location and not the current one. I have checked the archives but have not found anything related to my problem. If anybody has an idea on this issue, please bail me out before I lose all my hair :). Below is the snippet. Best regards George static void pickControl(void *); static vtkRenderer *ren1; void main( int argc, char *argv[] ) { // create pipeline vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); reader->Update(); vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); dataMapper->SetInput(reader->GetOutput()); dataMapper->ScalarVisibilityOff(); vtkActor *dataActor = vtkActor::New(); dataActor->SetMapper(dataMapper); dataActor->GetProperty()->SetColor(0.5, 0.5, 1); dataActor->GetProperty()->SetOpacity(0.5); vtkPointPicker *pointpicker = vtkPointPicker::New(); ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->SetPicker(pointpicker); iren->SetEndPickMethod(pickControl, (void *)iren); ren1->AddActor(dataActor); // render the image ren1->SetBackground(1, 1, 1); renWin->SetSize(500,500); iren->Initialize(); renWin->Render(); iren->Start(); //Clean up ren1->Delete(); renWin->Delete(); iren->Delete(); reader->Delete(); dataMapper->Delete(); dataActor->Delete(); pointpicker->Delete(); } // Define picking method static void pickControl(void *arg) { float *selPt; float *pickpos; vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); selPt = pointpicker->GetSelectionPoint(); cout<<"Screen location:"<GetPointId() >= 0 ) { pickpos = pointpicker->GetPickPosition(); cout<<"Point location:"< InsertNextPoint(pickpos); points-> Modified(); vtkPolyData *profile=vtkPolyData::New(); profile->SetPoints(points); vtkSphereSource *sphere=vtkSphereSource::New(); sphere->SetRadius(2); vtkGlyph3D *glyph=vtkGlyph3D::New(); glyph->SetInput(profile); glyph->SetSource(sphere->GetOutput()); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(glyph->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); glyphActor->GetProperty()->SetColor(0, 0, 1); ren1-> AddActor(glyphActor); points-> Delete(); profile-> Delete(); sphere-> Delete(); glyph-> Delete(); glyphMapper-> Delete(); glyphActor-> Delete(); } else { cout<<"No point picked here!"<<"\n"; } } From ramakrishna.prakash@quest-global.com Tue Oct 8 17:03:06 2002 From: ramakrishna.prakash@quest-global.com (R K Shyam Prakash) Date: Tue, 8 Oct 2002 12:03:06 -0400 Subject: [vtkusers] (no subject) Message-ID: hi, i'm new to VTK and i'm using the Java wrapper of VTK. can I get any JAVA API documentaion for VTK. if so please let me know Thanks Shyam From jeff@cdnorthamerica.com Tue Oct 8 17:17:36 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Tue, 08 Oct 2002 12:17:36 -0400 Subject: [vtkusers] vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> Message-ID: <3DA30520.9000500@cdnorthamerica.com> Do you render after the pick? -Jeff George Kamucha wrote: >Hi all, >I am selecting points on a surface using vtkPointPicker, and then placing small >spheres in the selected locations. The problem I am facing is that, when I >select the first location, a sphere is not immediately placed there until a >second location is selected. That is, I can only see the position of the >previously selected location and not the current one. I have checked the >archives but have not found anything related to my problem. If anybody has an >idea on this issue, please bail me out before I lose all my hair :). Below is >the snippet. > >Best regards >George > > > >static void pickControl(void *); > >static vtkRenderer *ren1; > >void main( int argc, char *argv[] ) > >{ > >// create pipeline >vtkPolyDataReader *reader = vtkPolyDataReader::New(); > reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); > reader->Update(); > >vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); > dataMapper->SetInput(reader->GetOutput()); > dataMapper->ScalarVisibilityOff(); > >vtkActor *dataActor = vtkActor::New(); > dataActor->SetMapper(dataMapper); > dataActor->GetProperty()->SetColor(0.5, 0.5, 1); > dataActor->GetProperty()->SetOpacity(0.5); > >vtkPointPicker *pointpicker = vtkPointPicker::New(); > > >ren1 = vtkRenderer::New(); >vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->SetPicker(pointpicker); > iren->SetEndPickMethod(pickControl, (void *)iren); > >ren1->AddActor(dataActor); > >// render the image > ren1->SetBackground(1, 1, 1); > renWin->SetSize(500,500); > iren->Initialize(); > renWin->Render(); > iren->Start(); > >//Clean up > >ren1->Delete(); >renWin->Delete(); >iren->Delete(); >reader->Delete(); >dataMapper->Delete(); >dataActor->Delete(); >pointpicker->Delete(); > > } > > > >// Define picking method > >static void pickControl(void *arg) >{ >float *selPt; >float *pickpos; > >vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; > vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); > > > > selPt = pointpicker->GetSelectionPoint(); > > cout<<"Screen location:"< > if ( pointpicker->GetPointId() >= 0 ) > { > pickpos = pointpicker->GetPickPosition(); > > cout<<"Point location:"< > > > > > >//Define method for placing spheres >vtkPoints *points=vtkPoints::New(); > points-> InsertNextPoint(pickpos); > points-> Modified(); > >vtkPolyData *profile=vtkPolyData::New(); > profile->SetPoints(points); > >vtkSphereSource *sphere=vtkSphereSource::New(); > sphere->SetRadius(2); > >vtkGlyph3D *glyph=vtkGlyph3D::New(); > glyph->SetInput(profile); > glyph->SetSource(sphere->GetOutput()); > >vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(glyph->GetOutput()); > > >vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > glyphActor->GetProperty()->SetColor(0, 0, 1); > >ren1-> AddActor(glyphActor); > > > > >points-> Delete(); >profile-> Delete(); >sphere-> Delete(); >glyph-> Delete(); >glyphMapper-> Delete(); >glyphActor-> Delete(); > } > else > { > cout<<"No point picked here!"<<"\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 krw@viz-solutions.com Tue Oct 8 17:35:36 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Tue, 08 Oct 2002 09:35:36 -0700 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA2B5B0.80504@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021008092946.00a9cce0@mail.viz-solutions.com> >>I'm going to be doing some testing on IRIX/LINUX and if there are any >>interesting results I'll post them. I think its entirely possible that >>the vtk socket code does demonstrate the same symptoms. > >Possible, but it sounds more like vc++ problem on windows. I actually >looked at the code this morning, and I don't see the strncmp in >vtkDataReader::SetInputString(). Are you working with an older version of vtk? If I had to guess, I would say that its a visual C++ bug, I just meant that the vtksocket code may exhibit the same problem when using vc++. I'm actually using the 4.0 release, the strncmp is on line 200 of that version. I just checked the nightlies, and it is on line 178 of that file. There are multiple versions of SetInputString, all of which end up calling the version with the string compare in it. I should have at least the LINUX version of this running today, so I'll know better then. Kevin. From vidya.sivakumar@quest-global.com Tue Oct 8 17:41:08 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Tue, 8 Oct 2002 12:41:08 -0400 Subject: [vtkusers] scalar values In-Reply-To: <20021004103834.6099.13410.Mailman@public.kitware.com> Message-ID: Hi All, I am not very clear about associating scalar values to point data. I have an expression to compute the scalar value at each point(x,y,z). HOw do I read the values into a vtkFLoatarray or a double array. I tried using vtkFloatArray but it did not work. Can anybody help? Thanks in advance, Vidya From prabhu@aero.iitm.ernet.in Tue Oct 8 17:54:42 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 8 Oct 2002 22:24:42 +0530 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow In-Reply-To: <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> Message-ID: <15779.3538.826934.470247@monster.linux.in> >>>>> "BR" == Benoit Regrain writes: >> Or something like that. I dont get an exception under Linux so >> don't know what exception you are trying to catch here. Could >> you care to elaborate? BR> The AttributeError exception is the best here. Parent variable BR> is always defined but can be anything other than a wxWindow BR> (like None or other type). No other exception is usefull to BR> foresee bad behaviors concerning this section of code. Ok, thanks. BR> The runtime error R6025 is a specific Windows error. But it BR> seems that on Linux, we sometimes obtain a core BR> dump. Unfortunately, I can't certify the behaviour of events [snip] AFAIK you might be able to prevent this by removing all the actors from the renderwindow before you close it. cheers, prabhu From prabhu@aero.iitm.ernet.in Tue Oct 8 18:01:53 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 8 Oct 2002 22:31:53 +0530 Subject: [vtkusers] scalar values In-Reply-To: References: <20021004103834.6099.13410.Mailman@public.kitware.com> Message-ID: <15779.3969.436588.566026@monster.linux.in> >>>>> "VS" == vidya sivakumar writes: VS> Hi All, I am not very clear about associating scalar values to VS> point data. I have an expression to compute the scalar value VS> at each point(x,y,z). HOw do I read the values into a VS> vtkFLoatarray or a double array. I tried using vtkFloatArray VS> but it did not work. Can anybody help? Thanks in advance, Add a scalar for each point in the FloatArray. Here is some python pseudo code: fa = vtkFloatArray() pnts = vtkPoints() # create your points. for i in range(pnts.GetNumberOfPoints()): pnt = pnts.GetPoint(0) scalar = function(pnt) # your function fa.InsertNextValue(scalar) Now you can use the vtkFloatArray to do what you want. For instance if the points are part of a vtkPolyData object you can do this: pd = vtkPolyData() pd.GetPointData().SetScalars(fa) cheers, prabhu From marcelo@radioimaging.net Tue Oct 8 18:05:50 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Tue, 8 Oct 2002 14:05:50 -0300 Subject: [vtkusers] keyboard events Message-ID: <00a601c26eec$f3fc2340$d4323690@System.local> This is a multi-part message in MIME format. ------=_NextPart_000_00A3_01C26ED3.CE937400 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anybody has a example or know how class i use to rotate my volume using = keyboard arrows. I=B4m using VTK 4.0, C++ Builder 6 and Win XP Tank=B4s for help me ------=_NextPart_000_00A3_01C26ED3.CE937400 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Anybody has a example or know how class = i use to=20 rotate my volume using keyboard arrows.
 
I=B4m using VTK 4.0, C++ Builder 6 and = Win=20 XP
 
Tank=B4s  for help = me
------=_NextPart_000_00A3_01C26ED3.CE937400-- From anast.jm@pg.com Tue Oct 8 18:08:06 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 8 Oct 2002 13:08:06 -0400 Subject: [vtkusers] scalar values Message-ID: Vidya, See the web documentation for vtkFloatArray at http://www.vtk.org/doc/nightly/html/classvtkFloatArray.html There are a number of examples listed on that page and all the methods you will need to load the array with your data. By the way the documentation is wonderful and I suggest always starting there and browsing through it to get a feel for all the different types of information you can get out of it. The heirarchy browsing is especially nice......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "vidya sivakumar" @public.kitware.com on 10/08/2002 12:41 PM AST "vidya sivakumar" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] scalar values Sent by: vtkusers-admin@public.kitware.com 10/08/2002 12:41 PM Hi All, I am not very clear about associating scalar values to point data. I have an expression to compute the scalar value at each point(x,y,z). HOw do I read the values into a vtkFLoatarray or a double array. I tried using vtkFloatArray but it did not work. Can anybody help? Thanks in advance, Vidya _______________________________________________ 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 clarke@ARL.ARMY.MIL Tue Oct 8 22:17:44 2002 From: clarke@ARL.ARMY.MIL (Jerry Clarke ) Date: Tue, 08 Oct 2002 17:17:44 -0400 Subject: [vtkusers] Still No Joy ! Message-ID: <3DA34B78.42CAB51C@arl.army.mil> When building the Nightly release on cygwin ( even older nighly releases ) the vtkImaging .dll will not build due to an enormous amount of undefined external refenences. They are references to templates that are in the vtkCommon .dll. Hasn't anyone build a recent Nightly on cygwin with shared libraries, with Python ? As fun as messing with compiler and linker options is ... I'd just settle for the anwser and dispense with the fun!! -------------------------------------------------------------- Jerry A. Clarke clarke@arl.army.mil (410)278-9279 Fax (410)278-9199 US Army Research Laboratory Blg. 394 Room 201B -------------------------------------------------------------- From vphilou@caramail.com Wed Oct 9 01:02:59 2002 From: vphilou@caramail.com (Philippe Vincent) Date: Wed, 09 Oct 2002 00:02:59 GMT+1 Subject: [vtkusers] vector field Message-ID: <1034114579026743@caramail.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Caramail_0267431034114579_ID Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi everybody, I'm working on the rendering of a vector field and I've big differences in norm between several space areas, I would like to select and display all the vectors with a norm between two values. Does everybody know if it's possible with VTK (I'm using vtkglyph3D for that) Thanks Philippe Vincent _________________________________________________________ Envoyez des messages musicaux sur le portable de vos amis http://mobile.lycos.fr/mobile/local/sms_musicaux/ --=_NextPart_Caramail_0267431034114579_ID-- From pahsieh@usgs.gov Wed Oct 9 00:18:37 2002 From: pahsieh@usgs.gov (Paul A Hsieh) Date: Tue, 8 Oct 2002 16:18:37 -0700 Subject: [vtkusers] vector field Message-ID: Hi Philippe: The following approach may not be the most efficient but should work. Suppose your vectors are in a dataset call ds. 1. Create a vtkFloatArray (one component) consisting of vector norm (scalar value) at each point. Suppose this array is called "norms". 2. Put this array into the data set as scalars. In C++, this would be ds->GetPointData()->SetScalars(norms); 3. Use vtkThresholdPoints to extract only those points having scalar value (vector norm) between the two desired values. Hope this helps. Paul Hsieh Philippe Vincent To: vtkusers@public.kitware.com Sent by: cc: vtkusers-admin@public. Subject: [vtkusers] vector field kitware.com 10/08/2002 05:02 PM Hi everybody, I'm working on the rendering of a vector field and I've big differences in norm between several space areas, I would like to select and display all the vectors with a norm between two values. Does everybody know if it's possible with VTK (I'm using vtkglyph3D for that) Thanks Philippe Vincent _________________________________________________________ Envoyez des messages musicaux sur le portable de vos amis http://mobile.lycos.fr/mobile/local/sms_musicaux/ From tdeschamps@lbl.gov Wed Oct 9 01:56:01 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Tue, 08 Oct 2002 17:56:01 -0700 Subject: [vtkusers] A command that executes in Python does not compile in C++ Message-ID: <3DA37EA1.8050207@lbl.gov> Well, I maybe not an expert, but I cannot make the following line compile in C++ vtkStructuredPointsReader* reader = vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = vtkMarchingSquares::New(); ms -> SetInput(reader -> GetOutput()); whereas reader = vtkStructuredPointsReader() iso = vtkMarchingSquares() iso.SetInput( reader.GetOutput() ) works nicely. The compiler says: toto.cxx:40: no matching function for call to `vtkMarchingSquares::SetInput(vtkStructuredPoints *)' /usr/local/include/vtk/vtkMarchingSquares.h:71: candidates are: void vtkMarchingSquares::SetInput(vtkImageData *) Does someone can help? I have a Structured Points in a file and want to use the marching square on it. Thomas (tdeschamps@lbl.gov) From vidya.sivakumar@quest-global.com Wed Oct 9 02:16:37 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Tue, 8 Oct 2002 21:16:37 -0400 Subject: [vtkusers] (no subject) In-Reply-To: <20021005103921.9835.25505.Mailman@public.kitware.com> Message-ID: Hi All, Is there a vtk.jar file that includes vtkCylindricalTransform? I have version 4 that does not seem to have this. I am trying to use this in java and i get the error that it is unable to resolve symbol. Can anybody help? Thanks in advance, Vidya From prabhu@aero.iitm.ernet.in Wed Oct 9 03:33:02 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 9 Oct 2002 08:03:02 +0530 Subject: [vtkusers] A command that executes in Python does not compile in C++ In-Reply-To: <3DA37EA1.8050207@lbl.gov> References: <3DA37EA1.8050207@lbl.gov> Message-ID: <15779.38238.895833.804541@monster.linux.in> >>>>> "TD" == Thomas Deschamps writes: TD> Well, I maybe not an expert, but I cannot make the following TD> line compile in C++ TD> vtkStructuredPointsReader* reader = TD> vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = TD> vtkMarchingSquares::New(); ms -> SetInput(reader -> TD> GetOutput()); Well, something is wrong somewhere. vtkStructuredPoints is a subclass of vtkImageData, so this is definitely legal. Maybe your build is not clean and is an older version? i.e. Maybe yor header files are old but the libraries are new or something? cheers, prabhu From tony.gill@csiro.au Wed Oct 9 07:52:11 2002 From: tony.gill@csiro.au (tony.gill@csiro.au) Date: Wed, 9 Oct 2002 16:52:11 +1000 Subject: [vtkusers] Compilation problems on solaris Message-ID: <3295D58CC64C434F978440B967FC18682F3048@ntexchange.cat.csiro.au> Hi all, I've tried to compile vtk on solaris. The compilation generates warnings of the following type: "/VTK/Common/vtkDataArray.cxx", Line 655: Warning (Anachronism): "static" is not allowed and is being ignored. This warning message is a result of running the following compilation command: CC -I/VTK/Common -I/VTK/vtkRendering etc etc -c VTK/Common/vtkDataArray.cxx -o vtkDataArray.o The compilation process does not stop, but the ignored lines cause problems when programs get linked. i.e. the appropriate methods cannot be found. Does anyone know of a fix to or the cause of this problem. Many Thanks Tony ********************************************************************* Tony Gill Applications Programmer - 3D Visualisation CSIRO Division of Exploration and Mining 1 Technology Ct Pullenvale QLD Australia 4069 PO Box 883 Kenmore QLD Australia 4069 email: tony.gill@csiro.au ********************************************************************* From kamucha@hfm.e-technik.uni-kassel.de Wed Oct 9 09:16:22 2002 From: kamucha@hfm.e-technik.uni-kassel.de (George Kamucha) Date: Wed, 09 Oct 2002 10:16:22 +0200 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> <3DA30520.9000500@cdnorthamerica.com> Message-ID: <3DA3E5D6.9EC68610@hfm.e-technik.uni-kassel.de> Hi Jeff, I have tried before to use renWin->Render() after the pick (within the function pickControl, as shown in the snippet below) but the problem still persists. Or am I not doing it in the right way? Regards George static void pickControl(void *); static vtkRenderer *ren1; static vtkRenderWindow *renWin; void main( int argc, char *argv[] ) { // create pipeline vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); reader->Update(); vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); dataMapper->SetInput(reader->GetOutput()); dataMapper->ScalarVisibilityOff(); vtkActor *dataActor = vtkActor::New(); dataActor->SetMapper(dataMapper); dataActor->GetProperty()->SetColor(0.5, 0.5, 1); dataActor->GetProperty()->SetOpacity(0.5); vtkPointPicker *pointpicker = vtkPointPicker::New(); ren1 = vtkRenderer::New(); renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->SetPicker(pointpicker); iren->SetEndPickMethod(pickControl, (void *)iren); ren1->AddActor(dataActor); // render the image ren1->SetBackground(1, 1, 1); renWin->SetSize(500,500); iren->Initialize(); renWin->Render(); iren->Start(); //Clean up ren1->Delete(); renWin->Delete(); iren->Delete(); reader->Delete(); dataMapper->Delete(); dataActor->Delete(); pointpicker->Delete(); } // Define picking method static void pickControl(void *arg) { float *selPt; float *pickpos; vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); selPt = pointpicker->GetSelectionPoint(); cout<<"Screen location:"<GetPointId() >= 0 ) { pickpos = pointpicker->GetPickPosition(); cout<<"Point location:"< InsertNextPoint(pickpos); points-> Modified(); vtkPolyData *profile=vtkPolyData::New(); profile->SetPoints(points); vtkSphereSource *sphere=vtkSphereSource::New(); sphere->SetRadius(2); vtkGlyph3D *glyph=vtkGlyph3D::New(); glyph->SetInput(profile); glyph->SetSource(sphere->GetOutput()); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(glyph->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); glyphActor->GetProperty()->SetColor(0, 0, 1); ren1-> AddActor(glyphActor); renWin->Render(); points-> Delete(); profile-> Delete(); sphere-> Delete(); glyph-> Delete(); glyphMapper-> Delete(); glyphActor-> Delete(); } else { cout<<"No point picked here!"<<"\n"; } } Jeff Lee wrote: > Do you render after the pick? > -Jeff > > George Kamucha wrote: > > >Hi all, > >I am selecting points on a surface using vtkPointPicker, and then placing small > >spheres in the selected locations. The problem I am facing is that, when I > >select the first location, a sphere is not immediately placed there until a > >second location is selected. That is, I can only see the position of the > >previously selected location and not the current one. I have checked the > >archives but have not found anything related to my problem. If anybody has an > >idea on this issue, please bail me out before I lose all my hair :). Below is > >the snippet. > > > >Best regards > >George From simon.chatelain@epfl.ch Wed Oct 9 10:17:09 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Wed, 9 Oct 2002 11:17:09 +0200 Subject: [vtkusers] Polaris tracking system Message-ID: Hello, I am looking for a vtk drivers for the passive polaris tracking system. Has someone use this device with vtk and can give me sample code or explain to me how to use it ? It would be really nice. Thanks in advance. Simon Chatelain PS: I am using vtk 4 and Java under windows and linux. From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 9 11:00:06 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 09 Oct 2002 12:00:06 +0200 (MEST) Subject: [vtkusers] deriving my own class from vtkActor Message-ID: <1034157606.3da3fe26ec960@webmail.uni-magdeburg.de> Dear VTK-users, I have tried to derive my own class from vtkActor using the following code: class FIB_TRACK : public vtkActor { public: FIB_TRACK(double [3], double [3], bool); ~FIB_TRACK(); .... } For creating a new object I use: FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); Then, I construct the rendering pipeline, add the actor to the renderer and render the window but nothing happens. Is there anyone who can help me ? Regards, Steffen From daniele.bianchini@menci.com Wed Oct 9 11:46:06 2002 From: daniele.bianchini@menci.com (Daniele Bianchini) Date: Wed, 9 Oct 2002 12:46:06 +0200 Subject: [vtkusers] vtkRenderWindow Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C26F91.D5682AF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all! I use vtk 4.n in MFC4. Is it possible to link a vtkRenderWindow into a tab page of a tab control? Thank you for any help. Daniele ------=_NextPart_000_0000_01C26F91.D5682AF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 all!
I use = vtk 4.n in=20 MFC4.
Is it = possible to=20 link a vtkRenderWindow into a tab page of a tab = control?
 
Thank = you for any=20 help.
Daniele
 
------=_NextPart_000_0000_01C26F91.D5682AF0-- From philip@cd.co.uk Wed Oct 9 12:54:11 2002 From: philip@cd.co.uk (Philip Morris Jones) Date: Wed, 9 Oct 2002 12:54:11 +0100 Subject: [vtkusers] vtkProbeFilter misses some data points and adds others Message-ID: <008301c26f8b$5e951100$a0564ed5@romulus> This is a multi-part message in MIME format. ------=_NextPart_000_007C_01C26F92.F6DECC60 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Hi I have results on an unstructured grid and am trying to present them in a uniform manner. To do this I have created a plane source and am trying to map the results on using vtkProbeFilter: vtkPlaneSource *plane = vtkPlaneSource::New(); plane->SetOrigin(0.,-.05,-0.01); plane->SetPoint1(0.,0.05,-0.01); plane->SetPoint2(0.,-.05, 0.11); plane->SetXResolution(10); plane->SetYResolution(10); vtkProbeFilter *probe = vtkProbeFilter::New(); probe->SetInput(plane->GetOutput() ); probe->SetSource(uns ); vtkGlyph3D *glyphu = vtkGlyph3D::New(); glyphu->SetSource(line->GetOutput()); glyphu->SetScaleModeToScaleByVector(); glyphu->SetColorModeToColorByScalar(); glyphu->SetInput(probe->GetOutput()); vtkIdTypeArray *valid = vtkIdTypeArray::New(); valid=probe->GetValidPoints(); vtkPolyDataMapper* regMapper = vtkPolyDataMapper::New(); regMapper->SetInput ( glyphu->GetOutput() ); regMapper->SetScalarRange ( scmin,scmax ); regMapper->SetLookupTable ( lut ); probe->Update(); ofstream file; file.open("c:\\log"); valid->Print(file); for(int index=0;index<=(valid->GetMaxId());index++) file << valid->GetValue(index) << "\n"; file.close(); My plane is bigger than my domain so I expect unused values and am using the GetValidPoints to see what lies in and what is outside. If I look at my log: vtkIdTypeArray (0x07A0A598) Debug: Off Modified Time: 801 vtkIdTypeArray (0x07B067F8) Debug: Off Modified Time: 9202 Reference Count: 1 Registered Events: (none) Name: (none) Number Of Components: 1 Number Of Tuples: 44 Size: 121 MaxId: 43 LookupTable: (none) Array: 0x07A27C40 14 15 17 18 25 26 27 28 29 36 37 38 39 40 47 48 49 50 51 58 59 60 61 62 69 70 71 72 73 80 81 82 83 84 91 92 93 94 95 102 103 104 105 106 I see I have 44 points and the pattern is odd, where is 16? The plot shows a missing vector where I expect one. Does anybody have an idea what is happening? Thanks Philip ------=_NextPart_000_007C_01C26F92.F6DECC60 Content-Type: image/gif; name="missingvect.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="missingvect.gif" R0lGODdh2gHqAPcAAAAAAAAAgACAAACAgIAAAIAAgICAAMDAwMDcwPDKpgQEBMbw8AAHAA0AAAAA JCAdwggICAAOABsAAAAASQwMDAAUACgAAAAAbQgJK41OPxEREQAdADkAAAAAmw4OLBYWFgAlAEkA AAAAyBEROxwcHAAvAF0AABcXRSIiIgA6AHEAAAoF/0kRERwcUykpKQBFAAAW/ysA/yEhbFkUFDAw MABRAKAAAAAi/0MA/zE5AFYhHUcaahkyZzk5OQBhAL4AAAAx/2EA/2ooE1MgexZDZ0U+AS4u4kJC QgBwANwAAABA/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xHB/xHX/xHh/yID/yGy/yJU/yE3/yKp/yLG/xK+/yLa/xMZ/xNP/xLy/zMJ/z OL/zNW/yM2/zP+/zOt/zKD/0HL8qZ+Yf7Lj0TN/0Tv/0UB/1Uj/1VF/1Vn/1WJ/1Wr/1XN/1Xv/1 YB/2Yj/2TS/oCMAiZ48kB4D2gs4ibK/2b7/2cp/2ch/3bn8AdH/3eT/3bc/3cI/3fW/3SH5f94D/ 93sv+Ihf+IR/+Iqv94Hf+IPv+Ib/+Ixf+ZR/+ZOf+YuP+Zuv+ZLf+aD/+aIf+aSf+Jbv+aUP+abP +aO/+qjv+qEfEAA7 ------=_NextPart_000_007C_01C26F92.F6DECC60-- From kamucha@hfm.e-technik.uni-kassel.de Wed Oct 9 13:36:50 2002 From: kamucha@hfm.e-technik.uni-kassel.de (George Kamucha) Date: Wed, 09 Oct 2002 14:36:50 +0200 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: Message-ID: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> Hi Thanks a lot for testing the code. Now that it works in your system and not in mine, I am left even more confused. All my hairs are now gone. I have written the same code in tcl and it works fine and so I think it is not a problem with hardware (I have a Matrox Millenium G400 graphic card). But I need the code in C++ for compatibility with the inferfacing program based on QT. Is it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly appreciated. George "Gopalakrishnan, Gowri" wrote: "Gopalakrishnan, Gowri" wrote: > Hello > > I just tried your code and I do not see the problem you see. > When I click on a point I see the glyph sphere you put (in blue). The sphere > appears when you press the letter p. It appears immediately. Only it appears > little above the mouse position. > (Also I used your code with one of my vtk files. ) > I clicked three different points and I get three blue spheres. So there is > nothing wrong with your code. It could come from hardware (may be , I am not > sure). But I can guarantee that your code is correct and your update is > fine. > > Gowri > > -----Original Message----- > From: George Kamucha [mailto:kamucha@hfm.e-technik.uni-kassel.de] > Sent: 09 October 2002 09:16 > To: Jeff Lee; vtkusers@public.kitware.com > Subject: [vtkusers] Re: vtkPointPicker - position identification problem > > Hi Jeff, > I have tried before to use renWin->Render() after the pick (within the > function pickControl, as > shown in the snippet below) but the problem still persists. Or am I not > doing it in the right > way? > > Regards > George > > static void pickControl(void *); > > static vtkRenderer *ren1; > > static vtkRenderWindow *renWin; > > void main( int argc, char *argv[] ) > > { > > // create pipeline > vtkPolyDataReader *reader = vtkPolyDataReader::New(); > reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); > reader->Update(); > > vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); > dataMapper->SetInput(reader->GetOutput()); > dataMapper->ScalarVisibilityOff(); > > vtkActor *dataActor = vtkActor::New(); > dataActor->SetMapper(dataMapper); > dataActor->GetProperty()->SetColor(0.5, 0.5, 1); > dataActor->GetProperty()->SetOpacity(0.5); > > vtkPointPicker *pointpicker = vtkPointPicker::New(); > > ren1 = vtkRenderer::New(); > renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->SetPicker(pointpicker); > iren->SetEndPickMethod(pickControl, (void *)iren); > > ren1->AddActor(dataActor); > > // render the image > ren1->SetBackground(1, 1, 1); > renWin->SetSize(500,500); > iren->Initialize(); > renWin->Render(); > iren->Start(); > > //Clean up > > ren1->Delete(); > renWin->Delete(); > iren->Delete(); > reader->Delete(); > dataMapper->Delete(); > dataActor->Delete(); > pointpicker->Delete(); > > } > > // Define picking method > > static void pickControl(void *arg) > { > float *selPt; > float *pickpos; > > vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; > vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); > > selPt = pointpicker->GetSelectionPoint(); > > cout<<"Screen location:"< > if ( pointpicker->GetPointId() >= 0 ) > { > pickpos = pointpicker->GetPickPosition(); > > cout<<"Point location:"< "< > //Define method for placing spheres > vtkPoints *points=vtkPoints::New(); > points-> InsertNextPoint(pickpos); > points-> Modified(); > > vtkPolyData *profile=vtkPolyData::New(); > profile->SetPoints(points); > > vtkSphereSource *sphere=vtkSphereSource::New(); > sphere->SetRadius(2); > > vtkGlyph3D *glyph=vtkGlyph3D::New(); > glyph->SetInput(profile); > glyph->SetSource(sphere->GetOutput()); > > vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(glyph->GetOutput()); > > vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > glyphActor->GetProperty()->SetColor(0, 0, 1); > > ren1-> AddActor(glyphActor); > > renWin->Render(); > > points-> Delete(); > profile-> Delete(); > sphere-> Delete(); > glyph-> Delete(); > glyphMapper-> Delete(); > glyphActor-> Delete(); > } > else > { > cout<<"No point picked here!"<<"\n"; > } > > } > > Jeff Lee wrote: > > > Do you render after the pick? > > -Jeff > > > > George Kamucha wrote: > > > > >Hi all, > > >I am selecting points on a surface using vtkPointPicker, and then placing > small > > >spheres in the selected locations. The problem I am facing is that, when > I > > >select the first location, a sphere is not immediately placed there > until a > > >second location is selected. That is, I can only see the position of the > > >previously selected location and not the current one. I have checked the > > >archives but have not found anything related to my problem. If anybody > has an > > >idea on this issue, please bail me out before I lose all my hair :). > Below is > > >the snippet. > > > > > >Best regards > > >George > > _______________________________________________ > 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 -- ======================================= George Kamucha Fachgebiet Hochfrequenztechnik(FB 16), Universitaet Kassel, Wilhelmshoeher Allee 73, 34121 Kassel, Germany. __________________________________________________________________________ Phone : +49 -561-804 6528 (Office); +49 -561-870 5662 (Resi.) Fax : +49 -561-804 6529 (Office) __________________________________________________________________________ From Ron.Jerome@nrc.ca Wed Oct 9 14:29:16 2002 From: Ron.Jerome@nrc.ca (Jerome, Ron) Date: Wed, 9 Oct 2002 09:29:16 -0400 Subject: [vtkusers] deriving my own class from vtkActor Message-ID: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C26F97.DD44BE90 Content-Type: text/plain; charset="iso-8859-1" I ran into the same problem, I derived my class from vtkOpenGLActor instead and it worked fine. Ron Jerome Institute for Chemical Process and Environmental Technology National Research Council Canada 613-993-5346 >-----Original Message----- >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] >Sent: Wednesday, October 09, 2002 6:00 AM >To: Vtkusers (E-mail) >Subject: [vtkusers] deriving my own class from vtkActor > > >Dear VTK-users, > >I have tried to derive my own class from vtkActor using the following >code: > >class FIB_TRACK : public vtkActor >{ >public: > FIB_TRACK(double [3], double [3], bool); > ~FIB_TRACK(); >.... >} > >For creating a new object I use: > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > >Then, I construct the rendering pipeline, add the actor to the >renderer and render the window but nothing happens. Is there >anyone who can help me ? > >Regards, >Steffen >_______________________________________________ >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 > ------_=_NextPart_001_01C26F97.DD44BE90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [vtkusers] deriving my own class from vtkActor

I ran into the same problem, I derived my class from = vtkOpenGLActor instead and it worked fine.

Ron Jerome
Institute for Chemical Process and
Environmental Technology
National Research Council Canada
613-993-5346


>-----Original Message-----
>From: Steffen Oeltze [mailto:Steffen.O= eltze@Student.Uni-Magdeburg.DE]
>Sent: Wednesday, October 09, 2002 6:00 AM
>To: Vtkusers (E-mail)
>Subject: [vtkusers] deriving my own class from = vtkActor
>
>
>Dear VTK-users,
>
>I have tried to derive my own class from = vtkActor using the following
>code:
>
>class FIB_TRACK : public vtkActor
>{
>public:
>    FIB_TRACK(double [3], double = [3], bool);
>    ~FIB_TRACK();
>....
>}
>
>For creating a new object I use:
>
>FIB_TRACK *newAct =3D new FIB_TRACK(seedpoint, = dims, true);
>
>Then, I construct the rendering pipeline, add = the actor to the
>renderer and render the window but nothing = happens. Is there
>anyone who can help me ?
>
>Regards,
>Steffen
>_______________________________________________
>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
>

------_=_NextPart_001_01C26F97.DD44BE90-- From Thomas.Koninckx@esat.kuleuven.ac.be Wed Oct 9 14:20:15 2002 From: Thomas.Koninckx@esat.kuleuven.ac.be (Thomas Koninckx Local) Date: Wed, 09 Oct 2002 15:20:15 +0200 Subject: [vtkusers] X/GL-error? Message-ID: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> --------------FE107C2A1F1D6C812A308EB0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Hi, I've got a weird display problem. The first time I try to render, everything works fine. If I close the program and I try it a second time, nothing is displayed anymore. After closing the render-window and redrawing it, the rendering is again ok. The same story goes on and on. The third time I start my program, only the third window will start displaying something... the fourth time, the fourth window will start displaying, .... After restarting X, the problem restarts with the first window. I also loose some memory during each cycle. It's freed with the restart of X. Some colleagues have encountered similar problems. OS is Linux Redhat 7.3 or 8.0 (same problem). Graphical board is a nVidia Gforce4/2 (with dedicated drivers installed). Does anyone recognize this problem? If yes, is there a solution? Any suggestion will be appreciated. Regards Thomas -- ---------------------------------------------------------------------- Thomas Koninckx Katholieke Universiteit Leuven tel.+32-(0)16-32.10.90 Department Electrical Engineering(ESAT) fax. +32-(0)16-32.17.23 PSI-VISICS (VISion for Industry Communications and Services) Kasteelpark Arenberg 10 tkoninck@esat.kuleuven.ac.be B-3001 Leuven Belgium http://www.esat.kuleuven.ac.be/psi ---------------------------------------------------------------------- --------------FE107C2A1F1D6C812A308EB0 Content-Type: text/html; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Hi,

I've got a weird display problem. The first time I try to render,
everything works fine. If I close the program and I try it a second
time, nothing is displayed anymore. After closing the render-window and
redrawing it, the rendering is again ok. The same story goes on and on.
The third time I start my program, only the third window will start
displaying something... the fourth time, the fourth window will start
displaying, .... After restarting X, the problem restarts with the first
window.
I also loose some memory during each cycle. It's freed with the restart
of X.

Some colleagues have encountered similar problems. OS is Linux Redhat
7.3 or 8.0 (same problem). Graphical board is a nVidia Gforce4/2 (with
dedicated drivers installed).

Does anyone recognize this problem? If yes, is there a solution? Any
suggestion will be appreciated.

Regards
Thomas

-- 


----------------------------------------------------------------------
Thomas Koninckx                 
Katholieke Universiteit Leuven                 tel.+32-(0)16-32.10.90
Department Electrical Engineering(ESAT)        fax. +32-(0)16-32.17.23
PSI-VISICS           (VISion for Industry Communications and Services)
Kasteelpark Arenberg 10                   tkoninck@esat.kuleuven.ac.be
B-3001 Leuven Belgium               http://www.esat.kuleuven.ac.be/psi
----------------------------------------------------------------------
  --------------FE107C2A1F1D6C812A308EB0-- From c.p.botha@its.tudelft.nl Wed Oct 9 14:48:53 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 09 Oct 2002 15:48:53 +0200 Subject: [vtkusers] deriving my own class from vtkActor In-Reply-To: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> References: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> Message-ID: <1034171333.23071.2.camel@dutidad> On Wed, 2002-10-09 at 15:29, Jerome, Ron wrote: > I ran into the same problem, I derived my class from vtkOpenGLActor instead > and it worked fine. As far is I know, this is not The Right Way(tm) if you want to add functionality in a generic fashion. This would mean that your class can only work on OpenGL targets. A better way would be to derive from vtkActor and also CONTAIN an instance of vtkActor as member that can be used to perform rendering. The contained vtkActor will specialise (due to the object factories) as per usual. > Ron Jerome > Institute for Chemical Process and > Environmental Technology > National Research Council Canada > 613-993-5346 > > > >-----Original Message----- > >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > >Sent: Wednesday, October 09, 2002 6:00 AM > >To: Vtkusers (E-mail) > >Subject: [vtkusers] deriving my own class from vtkActor > > > > > >Dear VTK-users, > > > >I have tried to derive my own class from vtkActor using the following > >code: > > > >class FIB_TRACK : public vtkActor > >{ > >public: > > FIB_TRACK(double [3], double [3], bool); > > ~FIB_TRACK(); > >.... > >} > > > >For creating a new object I use: > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > > > >Then, I construct the rendering pipeline, add the actor to the > >renderer and render the window but nothing happens. Is there > >anyone who can help me ? > > > >Regards, > >Steffen > >_______________________________________________ > >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 > > -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha@its.tudelft.nl Wed Oct 9 14:51:16 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 09 Oct 2002 15:51:16 +0200 Subject: [vtkusers] X/GL-error? In-Reply-To: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> References: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> Message-ID: <1034171476.23071.5.camel@dutidad> On Wed, 2002-10-09 at 15:20, Thomas Koninckx Local wrote: > I've got a weird display problem. The first time I try to render, > everything works fine. If I close the program and I try it a second > time, nothing is displayed anymore. After closing the render-window and > redrawing it, the rendering is again ok. The same story goes on and on. > The third time I start my program, only the third window will start > displaying something... the fourth time, the fourth window will start > displaying, .... After restarting X, the problem restarts with the first FWIW, I haven't seen this on any of the NVidia powered Linux systems I use VTK on. Do you have a simple example (in either Python or TCL) with which we can try and reproduce the behaviour that you are seeing? -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From winston@cat.rpi.edu Wed Oct 9 15:02:40 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Wed, 09 Oct 2002 10:02:40 -0400 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> Message-ID: <3DA43700.86C9F54D@cat.rpi.edu> George Kamucha wrote: > > Hi > Thanks a lot for testing the code. Now that it works in your system and not in > mine, I am left even more confused. All my hairs are now gone. > I have written the same code in tcl and it works fine and so I think it is not a > problem with hardware (I have a Matrox Millenium G400 graphic card). But I need > the code in C++ for compatibility with the inferfacing program based on QT. Is > it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly > appreciated. George, Are you using the latest driver for your graphics card? (See http://www.matrox.com/mga/support/drivers/latest/home.cfm ) I had a rendering problem a couple of months ago that was solved by updating my graphics driver, as did another reader of this list. HTH, -Jeremy From krs@cs.uncc.edu Wed Oct 9 14:54:56 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Wed, 09 Oct 2002 09:54:56 -0400 Subject: [vtkusers] deriving my own class from vtkActor References: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> Message-ID: <3DA43530.F5D980FD@cs.uncc.edu> I concur.. I used to be able to derive classes from vtkActor (to add an id for instance) in vtk3.2. Sometime back (in response to a similar query), when I tried it again under 4.0, it wouldnt render the actor at all. I had tried to modify the Cone example to test this out... -- krs "Jerome, Ron" wrote: > > > I ran into the same problem, I derived my class from vtkOpenGLActor instead and it > worked fine. > > Ron Jerome > Institute for Chemical Process and > Environmental Technology > National Research Council Canada > 613-993-5346 > > >-----Original Message----- > >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > >Sent: Wednesday, October 09, 2002 6:00 AM > >To: Vtkusers (E-mail) > >Subject: [vtkusers] deriving my own class from vtkActor > > > > > >Dear VTK-users, > > > >I have tried to derive my own class from vtkActor using the following > >code: > > > >class FIB_TRACK : public vtkActor > >{ > >public: > > FIB_TRACK(double [3], double [3], bool); > > ~FIB_TRACK(); > >.... > >} > > > >For creating a new object I use: > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > > > >Then, I construct the rendering pipeline, add the actor to the > >renderer and render the window but nothing happens. Is there > >anyone who can help me ? > > > >Regards, > >Steffen > >_______________________________________________ > >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@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From andy.cedilnik@kitware.com Wed Oct 9 15:44:19 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 09 Oct 2002 10:44:19 -0400 Subject: [vtkusers] A command that executes in Python does not compile in C++ In-Reply-To: <15779.38238.895833.804541@monster.linux.in> References: <3DA37EA1.8050207@lbl.gov> <15779.38238.895833.804541@monster.linux.in> Message-ID: <1034174659.24643.30.camel@xanth.kitwarein.com> Or maybe you forgot to include vtkStructuredPoints.h? Andy On Tue, 2002-10-08 at 22:33, Prabhu Ramachandran wrote: > >>>>> "TD" == Thomas Deschamps writes: > > TD> Well, I maybe not an expert, but I cannot make the following > TD> line compile in C++ > > TD> vtkStructuredPointsReader* reader = > TD> vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = > TD> vtkMarchingSquares::New(); ms -> SetInput(reader -> > TD> GetOutput()); > > Well, something is wrong somewhere. vtkStructuredPoints is a subclass > of vtkImageData, so this is definitely legal. Maybe your build is not > clean and is an older version? i.e. Maybe yor header files are old > but the libraries are new or something? From marcelo@radioimaging.net Wed Oct 9 15:50:05 2002 From: marcelo@radioimaging.net (Marcelo Costa Oliveira) Date: Wed, 9 Oct 2002 11:50:05 -0300 Subject: [vtkusers] keyboard events Message-ID: <00c101c26fa3$27a3e500$d4323690@System.local> This is a multi-part message in MIME format. ------=_NextPart_000_00BE_01C26F8A.020BC150 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anybody has a example or know how class i use to rotate my volume using = keyboard arrows. I=B4m using VTK 4.0, C++ Builder 6 and Win XP Tank=B4s for help me ------=_NextPart_000_00BE_01C26F8A.020BC150 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Anybody has a example or know how class = i use to=20 rotate my volume using keyboard arrows.
 
I=B4m using VTK 4.0, C++ Builder 6 and = Win=20 XP
 
Tank=B4s  for help = me
------=_NextPart_000_00BE_01C26F8A.020BC150-- From kamucha@hfm.e-technik.uni-kassel.de Wed Oct 9 16:30:10 2002 From: kamucha@hfm.e-technik.uni-kassel.de (George Kamucha) Date: Wed, 09 Oct 2002 17:30:10 +0200 Subject: [vtkusers] Re: vtkPointPicker - position identification problem solved! References: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> <3DA43700.86C9F54D@cat.rpi.edu> Message-ID: <3DA44B81.BEA187F4@hfm.e-technik.uni-kassel.de> Hi all, I would like to thank the vtk users for the responses I have received regarding my problem. But I am very sorry for bothering you because I had made a very silly mistake. The second snippet I sent to the forum was okay, with the rendering update (renWin->Render();) within the function pickControl. This time, I wrote the command correctly in the email but what I had in the actual program was, renWin->Render; and so all the headaches! Jeremy Winston wrote: > George Kamucha wrote: > > > > Hi > > Thanks a lot for testing the code. Now that it works in your system and not in > > mine, I am left even more confused. All my hairs are now gone. > > I have written the same code in tcl and it works fine and so I think it is not a > > problem with hardware (I have a Matrox Millenium G400 graphic card). But I need > > the code in C++ for compatibility with the inferfacing program based on QT. Is > > it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly > > appreciated. > > George, > Are you using the latest driver for your graphics card? (See > http://www.matrox.com/mga/support/drivers/latest/home.cfm ) > > I had a rendering problem a couple of months ago that was solved > by updating my graphics driver, as did another reader of this list. > > HTH, > -Jeremy From tdeschamps@lbl.gov Wed Oct 9 16:50:32 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Wed, 09 Oct 2002 08:50:32 -0700 Subject: [vtkusers] A command that executes in Python does not compile in C++ References: <3DA37EA1.8050207@lbl.gov> <15779.38238.895833.804541@monster.linux.in> <1034174659.24643.30.camel@xanth.kitwarein.com> Message-ID: <3DA45048.6010405@lbl.gov> Apologies: you were right. But I assumed it was included in vtkStructuredPointsReader.h. Thank you very much. Thomas From dan@chalkie.org.uk Wed Oct 9 16:55:26 2002 From: dan@chalkie.org.uk (Dr. Dan White) Date: Wed, 9 Oct 2002 18:55:26 +0300 Subject: [vtkusers] Re: tiff and jpeg readers with volume rendering- use vtkImageLuminance!!! In-Reply-To: Message-ID: <870833AF-DB9F-11D6-8BAF-000393686412@chalkie.org.uk> --Apple-Mail-3-37151754 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Dear John, and all those trying to use vtk jpg/tiff/bmp reader for volume rendering The answer to the garbled imaging was indeed vtkImageLuminance Now I can see a cell shaped cell!!!! I used it in my python script as follows # Data reader reader1 =3D vtkJPEGReader () reader1.SetFilePrefix(filename) reader1.SetFilePattern("%s%03i.jpg") reader1.SetDataExtent(0,101,0,118,001,020) reader1.SetDataSpacing(1,1,2.5) reader1.SetDataByteOrderToBigEndian reader =3D vtkImageLuminance () reader.SetInput (reader1.GetOutput()) On Tuesday, October 8, 2002, at 04:24 , anast.jm@pg.com wrote: > > > Dan, Even if its gray scale it might still have three component color > (r=3Dg=3Db=3Dgray) so oyu can try extracting the luminance. I work in = tcl=20 > so here's a > fragment if you can use it > > # Simple volume rendering example. > vtkBMPReader reader1 > reader1 SetFilePrefix "P:/VolumeData/2uCT/test/dik" > reader1 SetDataSpacing 0.44 0.44 0.88 > reader1 SetDataExtent 0 1023 0 1023 1 200 > reader1 SetDataVOI 100 925 100 925 1 200 > > vtkImageLuminance reader > reader SetInput [reader1 GetOutput] > > > > > Internet Mail Message > Received from host: posti1.jyu.fi > [130.234.4.32] > > > > From: "Dr. Dan White" on 10/08/2002 10:44 AM ZE3 > > "Dr. Dan White" To: vtkusers@public.kitware.com > Cc: John Anast-JM/PGI@PGI > Subject: tiff and jpeg readers with = volume > rendering > 10/08/2002 03:44 AM > > > > > > Hi John, and all, > > Thanks for replying! > Actually the images are grayscale 8 bit, so do I still need the=20 > luminescence > filter before I can do volume rendering properly? > If so can you suggest code? Does it go in just after the reader code? > > cheers > > Dan > >> Message: 11 >> Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader >> To: vtkusers@public.kitware.com >> From: anast.jm@pg.com >> Date: Mon, 7 Oct 2002 14:23:57 -0400 > > >> I suspect these are color images and you might want to try to=20 >> extract the >> luminance (vtkImageLuminance) before rendering....john > > > > dan@chalkie.org.uk > http://www.chalkie.org.uk > > Daniel James White PhD. > Cell Biology > Department of Biological and Environmental Science > University of Jyv=89skyl=89 > FIN-40351 > Jyv=89skyl=89 > Finland > > > +358 (0)14 260 4183 (office) > > > dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) --Apple-Mail-3-37151754 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=WINDOWS-1252 Dear John, and all those trying to use vtk jpg/tiff/bmp reader for volume rendering The answer to the garbled imaging was indeed 0000,0000,DEDEvtkImageLuminance Now I can see a cell shaped cell!!!! I used it in my python script as follows # Data reader reader1 =3D vtkJPEGReader () reader1.SetFilePrefix(filename) reader1.SetFilePattern("%s%03i.jpg") reader1.SetDataExtent(0,101,0,118,001,020) reader1.SetDataSpacing(1,1,2.5) reader1.SetDataByteOrderToBigEndian reader =3D vtkImageLuminance () reader.SetInput (reader1.GetOutput()) On Tuesday, October 8, 2002, at 04:24 , anast.jm@pg.com wrote: Dan, Even if its gray scale it might still have three component color (r=3Dg=3Db=3Dgray) so oyu can try extracting the luminance. I work in = tcl so here's a fragment if you can use it # Simple volume rendering example. vtkBMPReader reader1 reader1 SetFilePrefix "P:/VolumeData/2uCT/test/dik" reader1 SetDataSpacing 0.44 0.44 0.88 reader1 SetDataExtent 0 1023 0 1023 1 200 reader1 SetDataVOI 100 925 100 925 1 200 vtkImageLuminance reader reader SetInput [reader1 GetOutput] Internet Mail Message =20 Received from host: posti1.jyu.fi =20 [130.234.4.32] =20 From: "Dr. Dan White" < on 10/08/2002 10:44 AM ZE3 "Dr. Dan White" To: vtkusers@public.kitware.com = =20 < Cc: John Anast-JM/PGI@PGI = =20 Subject: tiff and jpeg readers with volume =20 rendering = =20 10/08/2002 03:44 AM = =20 Hi John, and all, Thanks for replying! Actually the images are grayscale 8 bit, so do I still need the luminescence filter before I can do volume rendering properly? If so can you suggest code? Does it go in just after the reader code? cheers Dan Message: 11 Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader To: vtkusers@public.kitware.com From: anast.jm@pg.com Date: Mon, 7 Oct 2002 14:23:57 -0400 I suspect these are color images and you might want to try to extract the luminance (vtkImageLuminance) before rendering....john dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=89skyl=89 FIN-40351 Jyv=89skyl=89 Finland +358 (0)14 260 4183 (office) dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office)= --Apple-Mail-3-37151754-- From luis_fer@inicia.es Wed Oct 9 17:05:31 2002 From: luis_fer@inicia.es (=?iso-8859-1?Q?Luis=20Ruiz=20?=) Date: Wed, 9 Oct 2002 18:05:31 +0200 Subject: [vtkusers] =?iso-8859-1?Q?setViewport=20lost?= Message-ID: <3D2953A600015693@netmail.tiscalinet.es> Hi We just started development using vtk. Today we wanted to use two rendere= rs in the same window. After reading some doc we found that we should use se= tViewport() in the renderer to share the rendering window. But when we tried that, th= e compiler gave an error "no match function to call ..." It's not in any vt= k header we have. And even in the man pages though is documented, it is not= in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in= another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. From tpan@crd.ge.com Wed Oct 9 17:15:35 2002 From: tpan@crd.ge.com (Pan, Tony C (Research)) Date: Wed, 9 Oct 2002 12:15:35 -0400 Subject: [vtkusers] setViewport lost Message-ID: the function is SetViewport (upper case S). Maybe that's the problem? Tony -----Original Message----- From: Luis Ruiz [mailto:luis_fer@inicia.es] Sent: Wednesday, October 09, 2002 12:06 PM To: vtkusers@public.kitware.com Subject: [vtkusers] setViewport lost Hi We just started development using vtk. Today we wanted to use two renderers in the same window. After reading some doc we found that we should use setViewport() in the renderer to share the rendering window. But when we tried that, the compiler gave an error "no match function to call ..." It's not in any vtk header we have. And even in the man pages though is documented, it is not in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. _______________________________________________ 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 tpan@crd.ge.com Wed Oct 9 17:19:14 2002 From: tpan@crd.ge.com (Pan, Tony C (Research)) Date: Wed, 9 Oct 2002 12:19:14 -0400 Subject: [vtkusers] setViewport lost Message-ID: A little more information: Viewport is an instance variable of vtkViewport, and the methods SetViewport and GetViewport are generated via macros, so if you do a grep for SetViewport in the .h file, you won't find it. You will find, instead, vtkSetVector4Macro(Viewport,float) and vtkGetVectorMacro(Viewport,float,4). Most of vtk's instance variables have accessor functions that are generated using macros. Tony -----Original Message----- From: Luis Ruiz [mailto:luis_fer@inicia.es] Sent: Wednesday, October 09, 2002 12:06 PM To: vtkusers@public.kitware.com Subject: [vtkusers] setViewport lost Hi We just started development using vtk. Today we wanted to use two renderers in the same window. After reading some doc we found that we should use setViewport() in the renderer to share the rendering window. But when we tried that, the compiler gave an error "no match function to call ..." It's not in any vtk header we have. And even in the man pages though is documented, it is not in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. _______________________________________________ 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 luis_fer@inicia.es Wed Oct 9 17:31:22 2002 From: luis_fer@inicia.es (Luis Fernando Ruiz Gago) Date: Wed, 09 Oct 2002 18:31:22 +0200 Subject: [vtkusers] setViewport lost In-Reply-To: References: Message-ID: <20021009183122.31bfec32.luis_fer@inicia.es> On Wed, 9 Oct 2002 12:15:35 -0400 "Pan, Tony C (Research)" wrote: > the function is SetViewport (upper case S). Maybe that's the problem? No, that's another method in vtkcoordinate. I need the setViewport in vtkViewport which takes four floats or a four element array. This is the way I use it: ren = vtkRenderer::New(); ren->setViewport(0.0, 0.0, 0.5, 1.0); The method is documented in the manpages, into the vtkVieport class. vtkRenderer inherits from it, but even in vtkViewport seems to be missing. I found some similar code samples. So what's wrong with it? The documentation is here: http://www.vtk.org/doc/release/3.2/html/classvtkViewport.html#a18 but the refenced method isn't here: http://www.vtk.org/doc/release/3.2/html/vtkViewport_8h-source.html > > Tony > > -----Original Message----- > From: Luis Ruiz [mailto:luis_fer@inicia.es] > Sent: Wednesday, October 09, 2002 12:06 PM > To: vtkusers@public.kitware.com > Subject: [vtkusers] setViewport lost > > > Hi > > We just started development using vtk. Today we wanted to use two renderers > in the same window. After reading some doc we found that we should use setViewport() > in the renderer to share the rendering window. But when we tried that, the > compiler gave an error "no match function to call ..." It's not in any vtk > header we have. And even in the man pages though is documented, it is not > in the interface stored by doxygen (vtkViewport.h) in the same page. > > We have debian woody installed with 3.2-10 vtk. Doing a : > > grep -i setViewport * > > in the headers dir doesn't find anything but a meaningless SetViewport in > another class. > > Could anybody help us with this? Was that method removed for any reason? > > Thanks in advance. > > Luis. > > > > > > > > > > _______________________________________________ > 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 luis_fer@inicia.es Wed Oct 9 17:38:08 2002 From: luis_fer@inicia.es (Luis Fernando Ruiz Gago) Date: Wed, 09 Oct 2002 18:38:08 +0200 Subject: [vtkusers] setViewport lost In-Reply-To: <20021009183122.31bfec32.luis_fer@inicia.es> References: <20021009183122.31bfec32.luis_fer@inicia.es> Message-ID: <20021009183808.20bb4b1e.luis_fer@inicia.es> Sorry, it works with the upper case S. Thanks for all, I was confused by some examples. Luis. On Wed, 09 Oct 2002 18:31:22 +0200 Luis Fernando Ruiz Gago wrote: > On Wed, 9 Oct 2002 12:15:35 -0400 > "Pan, Tony C (Research)" wrote: > > > the function is SetViewport (upper case S). Maybe that's the problem? > > No, that's another method in vtkcoordinate. I need the setViewport in vtkViewport which takes four floats or a four element array. > > This is the way I use it: > > ren = vtkRenderer::New(); > ren->setViewport(0.0, 0.0, 0.5, 1.0); > > The method is documented in the manpages, into the vtkVieport class. vtkRenderer inherits from it, but even in vtkViewport seems to be missing. I found some similar code samples. So what's wrong with it? > > The documentation is here: > http://www.vtk.org/doc/release/3.2/html/classvtkViewport.html#a18 > > but the refenced method isn't here: > http://www.vtk.org/doc/release/3.2/html/vtkViewport_8h-source.html > > > > > > > > Tony > > > > -----Original Message----- > > From: Luis Ruiz [mailto:luis_fer@inicia.es] > > Sent: Wednesday, October 09, 2002 12:06 PM > > To: vtkusers@public.kitware.com > > Subject: [vtkusers] setViewport lost > > > > > > Hi > > > > We just started development using vtk. Today we wanted to use two renderers > > in the same window. After reading some doc we found that we should use setViewport() > > in the renderer to share the rendering window. But when we tried that, the > > compiler gave an error "no match function to call ..." It's not in any vtk > > header we have. And even in the man pages though is documented, it is not > > in the interface stored by doxygen (vtkViewport.h) in the same page. > > > > We have debian woody installed with 3.2-10 vtk. Doing a : > > > > grep -i setViewport * > > > > in the headers dir doesn't find anything but a meaningless SetViewport in > > another class. > > > > Could anybody help us with this? Was that method removed for any reason? > > > > Thanks in advance. > > > > Luis. > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > 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 vtk_replies@yahoo.com Wed Oct 9 18:04:46 2002 From: vtk_replies@yahoo.com (vtk replies) Date: Wed, 9 Oct 2002 10:04:46 -0700 (PDT) Subject: [vtkusers] problem with BlankPoint(ptId) function in class vtkStructuredGrid Message-ID: <20021009170446.79949.qmail@web21504.mail.yahoo.com> Hello, I have run into the following problem. I need to blank out a portion of my Structured Grid (consisting of Voxels ). I used the following functions in class vtkStructuredGrid ... structGrid->BlankingOn(); for(int i=start; iBlankPoint(i); ... but nothing seems to happen when the image is rendered. (1) The blanked out portions still appear in the image (2) also when I try to find out the neighbours of the cells just on the boundary of the blanked region, they still appear as neighbours even though the some of them happen to be in the blanked region. For example, if in the 2x2 grid below, the points a, b, c, d, e, f are blanked out. Then the neighbours of cell 13 should be 12, 20, 9 and Null. The cell 'd' should not show up as one of its neighbours. When an isosurface is rendered, the blanked out cells should not be considered while checking for isosurface cells, but this does not happen. 18 19 20 21 22 23 24 11 12 13 d e f 17 7 8 9 a b c 10 0 1 2 3 4 5 6 Does anybody know a way of doing this ? What am I missing here ? Has anyone run into this problem before? Any help will be deeply appreciated. Thank you in advance. Regards Joseph. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From nundys@neuro.duke.edu Wed Oct 9 19:00:16 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Wed, 9 Oct 2002 14:00:16 -0400 Subject: [vtkusers] Memory leaks using VTK on OS X In-Reply-To: <20021009162102.7595.70631.Mailman@public.kitware.com> Message-ID: I thought that this was only a result of using Java-wrapped vtk but it persists with c++-vtk and tcl-vtk. Every time I run a vtk program from the testing tree, the amount of free system memory (as reported by top) reduces by a certain amount (about 1 MB for Mace.cxx or Mace.tcl). This memory is persistently lost and can only be reclaimed by restarting the system. Am I mistaken, or have others experienced the same problems? Thanks, Surajit Nundy From cnavarro@ncsa.uiuc.edu Wed Oct 9 19:04:55 2002 From: cnavarro@ncsa.uiuc.edu (Christopher M. Navarro) Date: Wed, 9 Oct 2002 13:04:55 -0500 (CDT) Subject: [vtkusers] vtkStructuredPointsWriter Message-ID: I've noticed that if I first read a structured points file with vtkStructuredPointsReader and then immediately write it with vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in the original foo.vtk file is lost and it defaults to the name "scalars". If I explicitly say points.GetPointData().GetScalars().SetName("elevation") it still writes out 'scalars' as the name. Now, if I set the scalar name explicitly with the writer, it writes out 'elevation'. ie out.SetScalarsName("elevation") To further complicate things, if I add more arrays of scalar data with GetPointData().AddArray(myArray) it does not append not merely append the extra arrays when I write the structuredpoints object to file. It mix and matched the arrays. In one instance, with the additional arrays, elevation was written second in the file and the name showed up....so it is there, something is just not allowing it to write the name to the file when it shows up first in the file. To clarify all of this, it would appear that StructuredPointsWriter uses a default name 'scalars' for the first scalar written to file, unless explicitly set within the writer object. With additional arrays, it does not just append them on to the original pointdata, but alters the order (how/why?). Am I doing something incorrectly? This all seems pretty straightforward. As reference I am using java + vtk 4.0. Any thoughts? -chris From cnavarro@ncsa.uiuc.edu Wed Oct 9 19:29:30 2002 From: cnavarro@ncsa.uiuc.edu (Christopher M. Navarro) Date: Wed, 9 Oct 2002 13:29:30 -0500 (CDT) Subject: [vtkusers] Re: vtkStructuredPointsWriter In-Reply-To: Message-ID: The original question remains but I did find a workaround on this. I explicitly set the writer to the scalar original scalar name 'elevation' and then added the additional arrays as FieldData. It's still interesting as to why it defaults to 'scalars' when read then written right away. -chris On Wed, 9 Oct 2002, Christopher M. Navarro wrote: > > I've noticed that if I first read a structured points file with > vtkStructuredPointsReader and then immediately write it with > vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in > the original foo.vtk file is lost and it defaults to the name "scalars". > If I explicitly say > > points.GetPointData().GetScalars().SetName("elevation") > > it still writes out 'scalars' as the name. Now, if I set the scalar name > explicitly with the writer, it writes out 'elevation'. ie > > out.SetScalarsName("elevation") > > To further complicate things, if I add more arrays of scalar data with > GetPointData().AddArray(myArray) it does not append not merely append the > extra arrays when I write the structuredpoints object to file. It mix and > matched the arrays. In one instance, with the additional arrays, > elevation was written second in the file and the name showed up....so it > is there, something is just not allowing it to write the name to the file > when it shows up first in the file. To clarify all of this, it would > appear that StructuredPointsWriter uses a default name 'scalars' for the > first scalar written to file, unless explicitly set within the writer object. > With additional arrays, it does not just append them on to the > original pointdata, but alters the order (how/why?). Am I doing something > incorrectly? This all seems pretty straightforward. As reference I am > using java + vtk 4.0. Any thoughts? > > -chris > > -- Christopher Navarro Research Programmer Automated Learning Group National Center for Supercomputing Applications University of Illinois @ Urbana - Champaign cnavarro@ncsa.uiuc.edu From cwant@ualberta.ca Wed Oct 9 20:29:16 2002 From: cwant@ualberta.ca (Chris Want) Date: Wed, 09 Oct 2002 13:29:16 -0600 Subject: [vtkusers] Weigted average of dataset attributes? Message-ID: <3DA4838C.2090809@ualberta.ca> I have two vtkStructuredPoints objects that are defined on the same data domain. I would like to take a weighted average of the scalars defined at each point, and have that as the scalars for a third vtkStructuredPoints object. This isn't too hard to program myself, but I thought I'd check to see if there was some vtk class that did this automagically first. Is there a class that will do this? Cheers, -- Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From berk.geveci@kitware.com Wed Oct 9 20:50:29 2002 From: berk.geveci@kitware.com (Berk Geveci) Date: 09 Oct 2002 15:50:29 -0400 Subject: [vtkusers] vtkStructuredPointsWriter In-Reply-To: References: Message-ID: <1034193029.17966.8.camel@caemlyn.kitwarein.com> The short answer is : the readers and writers did not catch up with changes to the attributes/data arrays. The long answer is: In the old days (VTK 3.2 and earlier), the arrays/attributes did not have names. The names were stored in vtkFieldData instead. Furthermore, vtkPointData and vtkCellData were not subclasses of vtkFieldData, instead they each had an associated vtkFieldData. This meant that the only way to associate a name with an array was to store it in field data. This is why the writers had and still have special methods to set the attribute names stored in the file and also why they use a default name for each attribute. The new VTK readers/writers we are developing will not have this problem. They are currently in the development/testing stage and will be part of the next ParaView release (to be announced in a few weeks) and hopefully, the next VTK release. -Berk On Wed, 2002-10-09 at 14:04, Christopher M. Navarro wrote: > > I've noticed that if I first read a structured points file with > vtkStructuredPointsReader and then immediately write it with > vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in > the original foo.vtk file is lost and it defaults to the name "scalars". > If I explicitly say > > points.GetPointData().GetScalars().SetName("elevation") > > it still writes out 'scalars' as the name. Now, if I set the scalar name > explicitly with the writer, it writes out 'elevation'. ie > > out.SetScalarsName("elevation") > > To further complicate things, if I add more arrays of scalar data with > GetPointData().AddArray(myArray) it does not append not merely append the > extra arrays when I write the structuredpoints object to file. It mix and > matched the arrays. In one instance, with the additional arrays, > elevation was written second in the file and the name showed up....so it > is there, something is just not allowing it to write the name to the file > when it shows up first in the file. To clarify all of this, it would > appear that StructuredPointsWriter uses a default name 'scalars' for the > first scalar written to file, unless explicitly set within the writer object. > With additional arrays, it does not just append them on to the > original pointdata, but alters the order (how/why?). Am I doing something > incorrectly? This all seems pretty straightforward. As reference I am > using java + vtk 4.0. Any thoughts? > > -chris > > _______________________________________________ > 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 nundys@neuro.duke.edu Tue Oct 1 05:05:21 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 1 Oct 2002 00:05:21 -0400 Subject: [vtkusers] vtkPolyDataMapper.SetInput java problem Message-ID: <0102CC7A-D4F3-11D6-97B7-000393B290A0@neuro.duke.edu> Hello, Many of the other Java functions appear to be working on OS X 10.2.1, except vtkPolyDataMapper.SetInput which gives a "Bus Error" or a segmentation violation (in addition to vtkPanel not loading). This problem is unique to Java since it appears to work in C++ and Tcl. Have others had this problem and is there a solution? Thanks, Surajit Nundy From nundys@neuro.duke.edu Wed Oct 9 19:00:16 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Wed, 9 Oct 2002 14:00:16 -0400 Subject: [vtkusers] Memory leaks using VTK on OS X Message-ID: <9F946A00-DC05-11D6-97B7-000393B290A0@neuro.duke.edu> I thought that this was only a result of using Java-wrapped vtk but it persists with c++-vtk and tcl-vtk. Every time I run a vtk program from the testing tree, the amount of free system memory (as reported by top) reduces by a certain amount (about 1 MB for Mace.cxx or Mace.tcl). This memory is persistently lost and can only be reclaimed by restarting the system. Am I mistaken, or have others experienced the same problems? Thanks, Surajit Nundy From nundys@neuro.duke.edu Tue Oct 1 05:05:21 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 1 Oct 2002 00:05:21 -0400 Subject: [vtkusers] vtkPolyDataMapper.SetInput java problem Message-ID: Hello, Many of the other Java functions appear to be working on OS X 10.2.1, except vtkPolyDataMapper.SetInput which gives a "Bus Error" or a segmentation violation (in addition to vtkPanel not loading). This problem is unique to Java since it appears to work in C++ and Tcl. Have others had this problem and is there a solution? Thanks, Surajit Nundy From PreethishK@geind.ge.com Thu Oct 10 05:45:41 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Thu, 10 Oct 2002 10:15:41 +0530 Subject: [vtkusers] desperately need vtk with java in solaris Message-ID: <10B96F9B1453D61191B400508B650D9402C19F50@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27017.E2D788D0 Content-Type: text/plain; charset="iso-8859-1" hi, i need to build a java application with vtk in solaris os.i tried a lot to build with no sucess. has anyone able to run a java program with vtk in solaris. thank u in advance "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27017.E2D788D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi,
  =
    = i need to=20 build a java application with vtk in solaris os.i tried a lot to build = with no=20 sucess. has anyone able to run a java program with vtk in solaris. = thank u in=20 advance
 


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27017.E2D788D0-- From simon.chatelain@epfl.ch Thu Oct 10 07:55:52 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Thu, 10 Oct 2002 08:55:52 +0200 Subject: [vtkusers] transmitting vtkimagedata with rmi Message-ID: hello, i need to transmit a vtkImageData through the network. as i am working with java, i wish use RMI. Does someone know if it is possible ? And if yes how? If no how to make it ? Thanks Simon From robbel@science.uva.nl Thu Oct 10 08:16:22 2002 From: robbel@science.uva.nl (Robert Belleman) Date: Thu, 10 Oct 2002 09:16:22 +0200 Subject: [vtkusers] X/GL-error? In-Reply-To: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> References: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> Message-ID: <20021010071622.GA25292@carol.science.uva.nl> Hi Thomas, Although the symptoms you describe are not completely the same as what I have seen on some systems with the same configuration you are using, it's not that different. Here's what you should check; Take a look at /usr/include/GL/gl.h on your systems. If it mentions "Mesa" at the top, you are using the wrong include files. To fix that, run the following commands: ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h /usr/include/GL ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/glx.h /usr/include/GL ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/glxtokens.h /usr/include/GL Then rebuild Vtk (or at least recompile and rebuild all Vtk libraries that depend on OpenGL). The problem is that the nVidia RPMs don't install the correct header files by default. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] On Wed, Oct 09, 2002 at 03:20:15PM +0200, Thomas Koninckx Local wrote: > Hi, > > I've got a weird display problem. The first time I try to render, > everything works fine. If I close the program and I try it a second > time, nothing is displayed anymore. After closing the render-window and > redrawing it, the rendering is again ok. The same story goes on and on. > The third time I start my program, only the third window will start > displaying something... the fourth time, the fourth window will start > displaying, .... After restarting X, the problem restarts with the first > > window. > I also loose some memory during each cycle. It's freed with the restart > of X. > > Some colleagues have encountered similar problems. OS is Linux Redhat > 7.3 or 8.0 (same problem). Graphical board is a nVidia Gforce4/2 (with > dedicated drivers installed). > > Does anyone recognize this problem? If yes, is there a solution? Any > suggestion will be appreciated. > > Regards > Thomas > > -- > > ---------------------------------------------------------------------- > Thomas Koninckx > Katholieke Universiteit Leuven tel.+32-(0)16-32.10.90 > Department Electrical Engineering(ESAT) fax. +32-(0)16-32.17.23 > PSI-VISICS (VISion for Industry Communications and Services) > Kasteelpark Arenberg 10 tkoninck@esat.kuleuven.ac.be > B-3001 Leuven Belgium http://www.esat.kuleuven.ac.be/psi > ---------------------------------------------------------------------- From piotr.kozaczewski@power.alstom.com Thu Oct 10 08:19:37 2002 From: piotr.kozaczewski@power.alstom.com (piotr.kozaczewski@power.alstom.com) Date: Thu, 10 Oct 2002 09:19:37 +0200 Subject: [vtkusers] Problems compiling VTK4.0 on cygwin Message-ID: --0__=4EBBE6DDDFBBDE3F8f9e8a93df938690918c4EBBE6DDDFBBDE3F Content-type: text/plain; charset=us-ascii Dear all. I tried to compile VTK on my PC runnning CYGWIN under WinNT 4.0. After creating necessary libraries, make starts building vtk, I suppose a tcl interpreter. It uses the following command: c++ -mwin32 tkAppInit.o -L/cygdrive/c/VTK/bin -lgdi32 -lm -lvtkpng -lvtkzlib - lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkComm onTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -ltcl80 -lop engl32 -ltk80 -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -lvtkpng -lvtkzlib -lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -l vtkFilteringTCL -lvtkCommonTCL -ltk80 -ltcl80 -lvtkImaging -lvtkGraphics -lvtkFi ltering -lvtkCommon -lopengl32 -lm -lgdi32 -lXt -lSM -lICE -L/usr/X11R6/lib -l X11 -lXext -o /cygdrive/c/VTK/bin/vtk and aborts , informing about some missing Win32/OpenGL routines: /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x38b0 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x38c2 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x3a4f ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x4f97 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x6985 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x6baf ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1958) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1967) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1f3e) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x32a4) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x32bc) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x420d) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x4225) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x436a) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x1652): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x16a9): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x195f): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglUseFontBitmapsA@16' collect2: ld returned 1 exit status make[3]: *** [/cygdrive/c/VTK/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 My Makefile has been automatically generated by CMake: (See attached file: Makefile) Beyond standard CMake settings for VTK, I required: *) Build of examples. *) Build of the Tcl embedding. I also manually modified CMakeCache.txt to enable finding Tcl/Tk include files, downloaded from www.cygwin.com . (See attached file: CMakeCache.txt)(See attached file: CCMakeSystemConfig.cmake) I would like to use (native?) OpenGL and not XFree85_for_cygwin. I use WinNT4.0, cygwin with gcc/g++ v.2.95.3-5, VTK4.0 Would you mind giving me some help/hints etc? Thank you very much in advance. Best regards, Piotr Kozaczewski --0__=4EBBE6DDDFBBDE3F8f9e8a93df938690918c4EBBE6DDDFBBDE3F Content-type: application/octet-stream; name="Makefile" Content-Disposition: attachment; filename="Makefile" Content-transfer-encoding: base64 IyBDTUFLRSBnZW5lcmF0ZWQgTWFrZWZpbGUsIERPIE5PVCBFRElUIQ0KIyBHZW5lcmF0ZWQgYnkg IlVuaXggTWFrZWZpbGVzIiBHZW5lcmF0b3IsIENNYWtlIFZlcnNpb24gMS40DQojIEdlbmVyYXRl ZCBmcm9tIHRoZSBmb2xsb3dpbmcgZmlsZXM6DQojIC9jeWdkcml2ZS9jL1ZUSy9DTWFrZUNhY2hl LnR4dA0KIyAvY3lnZHJpdmUvYy9WVEsvQ01ha2VMaXN0cy50eHQNCiMgL2N5Z2RyaXZlL2MvVlRL L1VzZVZUSy5jbWFrZS5pbg0KIyAvY3lnZHJpdmUvYy9WVEsvdnRrQ01ha2VPcHRpb25zLmNtYWtl DQojIC9jeWdkcml2ZS9jL1ZUSy92dGtDb25maWd1cmUuaC5pbg0KIyAvY3lnZHJpdmUvYy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A0KCSAgICQoSU5TVEFMTF9EQVRBKSBVc2VWVEsuY21ha2Ug JChERVNURElSKS91c3IvbG9jYWwvaW5jbHVkZS92dGs7IFwNCgkgZWxpZiBbIC1mICQoQ01BS0Vf Q1VSUkVOVF9TT1VSQ0UpL1VzZVZUSy5jbWFrZSBdIDsgdGhlbiBcDQoJICAgJChJTlNUQUxMX0RB VEEpICQoQ01BS0VfQ1VSUkVOVF9TT1VSQ0UpL1VzZVZUSy5jbWFrZSAkKERFU1RESVIpL3Vzci9s b2NhbC9pbmNsdWRlL3Z0azsgXA0KCWVsc2UgXA0KCSAgIGVjaG8gIiBFUlJPUiEhISBVbmFibGUg dG8gZmluZDogVXNlVlRLLmNtYWtlICI7IFwNCgkgZmkNCglAIGVjaG8gIkluc3RhbGxpbmcgQ01h a2VDYWNoZS50eHQgIg0KCUBpZiBbIC1mIENNYWtlQ2FjaGUudHh0IF0gOyB0aGVuIFwNCgkgICAk KElOU1RBTExfREFUQSkgQ01ha2VDYWNoZS50eHQgJChERVNURElSKS91c3IvbG9jYWwvaW5jbHVk ZS92dGs7IFwNCgkgZWxpZiBbIC1mICQoQ01BS0VfQ1VSUkVOVF9TT1VSQ0UpL0NNYWtlQ2FjaGUu dHh0IF0gOyB0aGVuIFwNCgkgICAkKElOU1RBTExfREFUQSkgJChDTUFLRV9DVVJSRU5UX1NPVVJD RSkvQ01ha2VDYWNoZS50eHQgJChERVNURElSKS91c3IvbG9jYWwvaW5jbHVkZS92dGs7IFwNCgll bHNlIFwNCgkgICBlY2hvICIgRVJST1IhISEgVW5hYmxlIHRvIGZpbmQ6IENNYWtlQ2FjaGUudHh0 ICI7IFwNCgkgZmkNCmluY2x1ZGUgY21ha2UuZGVwZW5kcw0K --0__=4EBBE6DDDFBBDE3F8f9e8a93df938690918c4EBBE6DDDFBBDE3F Content-type: application/octet-stream; name="CMakeCache.txt" Content-Disposition: attachment; filename="CMakeCache.txt" Content-transfer-encoding: base64 IyBUaGlzIGlzIHRoZSBDTWF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Y3V0YWJsZQ0KdnRrV3JhcFRjbF9DTUFLRV9QQVRIOklOVEVSTkFMPS9jeWdkcml2ZS9jL1ZUSy9X cmFwcGluZw0KLy9QYXRoIHRvIGFuIGV4ZWN1dGFibGUNCnZ0a19DTUFLRV9QQVRIOklOVEVSTkFM PS9jeWdkcml2ZS9jL1ZUSy9XcmFwcGluZy9UY2wNCi8vUGF0aCB0byBhIGxpYnJhcnkNCnZ0a2pw ZWdfQ01BS0VfUEFUSDpJTlRFUk5BTD0vY3lnZHJpdmUvYy9WVEsvVXRpbGl0aWVzL2pwZWcNCi8v V2hldGhlciBhIGxpYnJhcnkgaXMgc3RhdGljLCBzaGFyZWQgb3IgbW9kdWxlLg0KdnRranBlZ19M SUJSQVJZX1RZUEU6SU5URVJOQUw9U1RBVElDDQovL1BhdGggdG8gYSBsaWJyYXJ5DQp2dGtwbmdf Q01BS0VfUEFUSDpJTlRFUk5BTD0vY3lnZHJpdmUvYy9WVEsvVXRpbGl0aWVzL3BuZw0KLy9XaGV0 aGVyIGEgbGlicmFyeSBpcyBzdGF0aWMsIHNoYXJlZCBvciBtb2R1bGUuDQp2dGtwbmdfTElCUkFS WV9UWVBFOklOVEVSTkFMPVNUQVRJQw0KLy9QYXRoIHRvIGEgbGlicmFyeQ0KdnRremxpYl9DTUFL RV9QQVRIOklOVEVSTkFMPS9jeWdkcml2ZS9jL1ZUSy9VdGlsaXRpZXMvemxpYg0KLy9XaGV0aGVy IGEgbGlicmFyeSBpcyBzdGF0aWMsIHNoYXJlZCBvciBtb2R1bGUuDQp2dGt6bGliX0xJQlJBUllf VFlQRTpJTlRFUk5BTD1TVEFUSUMNCg0K --0__=4EBBE6DDDFBBDE3F8f9e8a93df938690918c4EBBE6DDDFBBDE3F Content-type: application/octet-stream; name="CCMakeSystemConfig.cmake" Content-Disposition: attachment; filename="CCMakeSystemConfig.cmake" Content-transfer-encoding: base64 IyANCiMgQ01ha2VMb2NhbC5tYWtlLmluIHNob3VsZCBiZSBpbiB0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HUw0KQ01BS0VfTU9EVUxFX0JVSUxEX0ZMQUdTDQpDTUFL RV9USFJFQURfTElCUw0KQ01BS0VfRExfTElCUw0KQ01BS0VfU0hMSUJfTElOS19GTEFHUw0KQ01B S0VfTU9EVUxFX0xJTktfRkxBR1MNCkNNQUtFX1NITElCX0xEX0xJQlMNCkNNQUtFX1NITElCX1JV TlRJTUVfRkxBRw0KQ01BS0VfU0hMSUJfUlVOVElNRV9TRVANCkNNQUtFX1NLSVBfUlBBVEgNCkNN QUtFX1hfQ0ZMQUdTDQpDTUFLRV9BTlNJX0NGTEFHUw0KQ01BS0VfTUFLRV9QUk9HUkFNDQpDTUFL RV9DX0xJTktfU0hBUkVEDQopDQo= --0__=4EBBE6DDDFBBDE3F8f9e8a93df938690918c4EBBE6DDDFBBDE3F-- From lehrig@t-online.de Thu Oct 10 12:15:22 2002 From: lehrig@t-online.de (Rainer Lehrig) Date: Thu, 10 Oct 2002 13:15:22 +0200 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 Message-ID: <200210101315.22410.lehrig@t-online.de> Hi, when compiling VTK40 on SuSE Linux 8.1 i get an error. On SuSE Linux 8.0 it did work. The error message is: /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx: In functio= n=20 `int Vtkcommontcl_Init(Tcl_Interp*)': /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx:370: invali= d conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)' make[3]: *** [vtkCommonTCLInit.o] Fehler 1 make[2]: *** [default_target] Fehler 2 make[1]: *** [default_target_Common] Fehler 2 make: *** [default_target] Fehler 2 The code looks like: int VTK_EXPORT Vtkcommontcl_Init(Tcl_Interp *interp) { vtkTclInterpStruct *info =3D new vtkTclInterpStruct; info->Number =3D 0; info->InDelete =3D 0; info->DebugOn =3D 0; Tcl_InitHashTable(&info->InstanceLookup, TCL_STRING_KEYS); Tcl_InitHashTable(&info->PointerLookup, TCL_STRING_KEYS); Tcl_InitHashTable(&info->CommandLookup, TCL_STRING_KEYS); Tcl_SetAssocData(interp,(char *) "vtk",NULL,(ClientData *)info); Tcl_CreateExitHandler(vtkCommonDeleteAssocData,(ClientData *)info); Tcl_CreateCommand(interp,(char *) "vtkCommand",vtkCommand, =09=09 (ClientData *)NULL, NULL); // The error is caused by the last p= arameter vtkTclCreateNew(interp,(char *) "vtkFunctionParser",=20 vtkFunctionParserNewCommand, vtkFunctionParserCommand); vtkTclCreateNew(interp,(char *) "vtkObjectFactoryCollection",=20 vtkObjectFactoryCollectionNewCommand, vtkObjectFactoryCollectionCommand); vtkTclCreateNew(interp,(char *) "vtkPlanes", vtkPlanesNewCommand, vtkPlanesCommand); ... Yours: Rainer Lehrig From broicher@techinfo.rwth-aachen.de Thu Oct 10 12:26:23 2002 From: broicher@techinfo.rwth-aachen.de (Frank Broicher) Date: Thu, 10 Oct 2002 13:26:23 +0200 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 References: <200210101315.22410.lehrig@t-online.de> Message-ID: <3DA563DF.6000700@techinfo.rwth-aachen.de> Hi, this is exactly why we haven't upgraded yet. The standard compiler on a SuSE 8.1 system is gcc 3.2 (AFAIK). This compiler is stricter that the "old" gcc 2.9.xy and compiler closer to the standards, as you can see in your mail. Your problem can be solved by type-casting the pointer (static_cast) char** to const char**. With Best Regards Frank Rainer Lehrig schrieb: > Hi, > > when compiling VTK40 on SuSE Linux 8.1 i get an error. > On SuSE Linux 8.0 it did work. > > The error message is: > > /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx: In function > `int > Vtkcommontcl_Init(Tcl_Interp*)': > /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx:370: invalid > conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int > (*)(void*, Tcl_Interp*, int, const char**)' > make[3]: *** [vtkCommonTCLInit.o] Fehler 1 > make[2]: *** [default_target] Fehler 2 > make[1]: *** [default_target_Common] Fehler 2 > make: *** [default_target] Fehler 2 > > The code looks like: > > int VTK_EXPORT Vtkcommontcl_Init(Tcl_Interp *interp) > { > vtkTclInterpStruct *info = new vtkTclInterpStruct; > info->Number = 0; info->InDelete = 0; info->DebugOn = 0; > > > Tcl_InitHashTable(&info->InstanceLookup, TCL_STRING_KEYS); > Tcl_InitHashTable(&info->PointerLookup, TCL_STRING_KEYS); > Tcl_InitHashTable(&info->CommandLookup, TCL_STRING_KEYS); > Tcl_SetAssocData(interp,(char *) "vtk",NULL,(ClientData *)info); > Tcl_CreateExitHandler(vtkCommonDeleteAssocData,(ClientData *)info); > Tcl_CreateCommand(interp,(char *) "vtkCommand",vtkCommand, > (ClientData *)NULL, NULL); // The error is caused by the last parameter > > > vtkTclCreateNew(interp,(char *) "vtkFunctionParser", > vtkFunctionParserNewCommand, > vtkFunctionParserCommand); > vtkTclCreateNew(interp,(char *) "vtkObjectFactoryCollection", > vtkObjectFactoryCollectionNewCommand, > vtkObjectFactoryCollectionCommand); > vtkTclCreateNew(interp,(char *) "vtkPlanes", vtkPlanesNewCommand, > vtkPlanesCommand); > > ... > > Yours: > Rainer Lehrig > _______________________________________________ > 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 > -- Dipl.-Inform. F. H. Broicher Chair of Technical Computer Science Lehrstuhl f. Technische Informatik RWTH Aachen University RWTH-Aachen Ahornstrae 55, Room 2226 D-52074 Aachen ------------------------------------------------------------------------ Tel.: +49 (241) 80 23636 mailto:broicher@techinfo.rwth-aachen.de Fax.: +49 (241) 80 22308 mailto:frank.broicher@ieee.org ------------------------------------------------------------------------ Fate, it seems, is not without a sense of irony. (Morpheus, The Matrix) From sebastien.barre@kitware.com Thu Oct 10 13:41:45 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Thu, 10 Oct 2002 08:41:45 -0400 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 In-Reply-To: <200210101315.22410.lehrig@t-online.de> Message-ID: <5.1.1.6.0.20021010084056.01b4acc0@pop.biz.rr.com> At 10/10/2002 07:15 AM, Rainer Lehrig wrote: >Hi, > >when compiling VTK40 on SuSE Linux 8.1 i get an error. Hi Rainer Which version of CMake are you using (including patch level). Which version of Tcl/Tk is provided by Suse 8.1 ? -- Sebastien Barre From sebastien.barre@kitware.com Thu Oct 10 13:45:12 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Thu, 10 Oct 2002 08:45:12 -0400 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 Message-ID: <5.1.1.6.0.20021010084321.018a10b0@pop.biz.rr.com> At 10/10/2002 07:15 AM, Rainer Lehrig wrote: >Hi, > >when compiling VTK40 on SuSE Linux 8.1 i get an error. > Hi Rainer > Which version of CMake are you using (including patch level). > Which version of Tcl/Tk is provided by Suse 8.1 ? I will answer to my own question :) I checked Suse web site, this Linux distrib comes with Tcl/Tk 8.4. CMake won't support it until you use the CVS version. As a matter of fact, you will have to use VTK CVS too. -- Sebastien Barre From james@rogue-research.com Thu Oct 10 13:58:36 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 10 Oct 2002 08:58:36 -0400 (EDT) Subject: [vtkusers] building debug? Message-ID: Is there a way to build VTK with debugging symbols? I seem to be getting into an infinite loop, and I'm not sure what specific in VTK is causing it, so I'd like to examine it in more detail. Should I just add -g to the CFLAGS, or is there already a mechanism to build a debug version? James From siddumd@yahoo.co.in Thu Oct 10 14:17:53 2002 From: siddumd@yahoo.co.in (=?iso-8859-1?q?Mysore=20Siddu?=) Date: Thu, 10 Oct 2002 14:17:53 +0100 (BST) Subject: [vtkusers] vtkPointLocator & Collision avoidance Message-ID: <20021010131753.80686.qmail@web8203.mail.in.yahoo.com> --0-1415159706-1034255873=:79992 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi vtk Users, I have two questions: 1. From cellLocator->IntersectWithLine I compute the intersection point and its cellID on the STL file. Now I want to find all the points within a radius around the intersection point. I tried using vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) But I was not successful with the following code: float p1[] = {2.0, 1.0, 3.0}; float rad = 2.0; vtkIdList *res; // Build a locator vtkPointLocator *pointLocator = vtkPointLocator::New(); pointLocator->SetDataSet(STLReader->GetOutput()); pointLocator->FindPointsWithinRadius(rad,p1,res); pointLocator->BuildLocator(); I dont know where I am goofing up the code. As soon as Execute I am getting error as Memory cant be assigned error I debugged the code it is stopping at vtkIdList.h // Description: // Reset to an empty state. void Reset() {this->NumberOfIds = 0;}; */ 2. Is there any vtk class, which I can use for collision avoidance? Basically I have two STL files and I want to check the collision around a particular point. Any Help in this regard is very well appreciated. Best Regards Siddu. Yahoo! Properties Special Buy, sell, rent...your flat, or even post an ad --0-1415159706-1034255873=:79992 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

 Hi vtk Users,

 I have two questions:

 

1.      From cellLocator->IntersectWithLine I compute the intersection point and its cellID on the STL file. Now I want to find all the points within a radius around the intersection point. I tried using vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) But I was not successful with the following code:

                  float p1[] = {2.0, 1.0, 3.0};

float rad = 2.0;

vtkIdList *res;

// Build a locator

vtkPointLocator *pointLocator = vtkPointLocator::New();

pointLocator->SetDataSet(STLReader->GetOutput());

pointLocator->FindPointsWithinRadius(rad,p1,res);

pointLocator->BuildLocator();

 I dont know where I am goofing up the code. As soon as Execute I am getting error as Memory cant be assigned error I debugged the code it is stopping at  vtkIdList.h // Description:

// Reset to an empty state.

void Reset() {this->NumberOfIds = 0;};

*/

 

 

2.      Is there any vtk class, which I can use for collision avoidance? Basically I have two STL files and I want to check the collision around a particular point.

 

Any Help in this regard is very well appreciated.

 Best Regards

Siddu.



Yahoo! Properties Special new Buy, sell, rent...your flat, or even post an ad --0-1415159706-1034255873=:79992-- From affable@hd2.dot.net.in Thu Oct 10 14:41:58 2002 From: affable@hd2.dot.net.in (cspl) Date: Thu, 10 Oct 2002 19:11:58 +0530 Subject: [vtkusers] How to convert volueme data into buffer data References: <20021010072101.18747.10227.Mailman@public.kitware.com> Message-ID: <001b01c27062$cf828aa0$01000001@macinfo.net> Dear friends, how to convert volume data into buffer data. I am using raycast technique.After that I want to export the output into a buffer.please give me suggestion. thanking you, regards, ramakrishna From james@rogue-research.com Thu Oct 10 14:41:16 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 10 Oct 2002 09:41:16 -0400 (EDT) Subject: [vtkusers] problems with VTK on Mac OS X - ignore last email Message-ID: I seem to be having some problems with VTK on Mac OS X 10.2.1, using gcc3, I believe, whatever the default is. In any case, in my first call to anything in VTK, the simple program I wrote (based on an example in the book) freezes. This program worked under 10.1.5, and simply loads the data file Data/42400-IDGH.stl and displays it. Here is the gdb stack trace, if it helps: #0 0x90034f28 in semaphore_wait_trap () #1 0x9000a418 in pthread_mutex_lock () #2 0x0089e230 in std::locale::classic() () #3 0x0089da8c in std::locale::locale() () #4 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #5 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #6 0x00899470 in std::ios_base::Init::Init() () #7 0x00961fd8 in __static_initialization_and_destruction_0(int, int) () #8 0x0096203c in _GLOBAL__I__ZN12vtkBYUReader16CollectRevisionsERSo () #9 0x8fe16350 in __dyld_call_module_initializers_for_library () #10 0x8fe160e4 in __dyld_call_module_initializers () #11 0x8fe106f0 in __dyld_link_in_need_modules () #12 0x8fe1016c in __dyld_bind_lazy_symbol_reference () #13 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #14 0x0089e288 in std::locale::classic() () #15 0x0089da8c in std::locale::locale() () #16 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #17 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #18 0x00899470 in std::ios_base::Init::Init() () #19 0x00961ed8 in __static_initialization_and_destruction_0(int, int) () #20 0x00961f3c in _GLOBAL__I__ZN12vtkBMPWriter16CollectRevisionsERSo () #21 0x8fe16350 in __dyld_call_module_initializers_for_library () #22 0x8fe160e4 in __dyld_call_module_initializers () #23 0x8fe106f0 in __dyld_link_in_need_modules () #24 0x8fe1016c in __dyld_bind_lazy_symbol_reference () #25 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #26 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #27 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #28 0x00899470 in std::ios_base::Init::Init() () #29 0x00961dd8 in __static_initialization_and_destruction_0(int, int) () #30 0x00961e3c in _GLOBAL__I__ZN12vtkBMPReader16CollectRevisionsERSo () #31 0x8fe16350 in __dyld_call_module_initializers_for_library () #32 0x8fe160e4 in __dyld_call_module_initializers () #33 0x8fe106f0 in __dyld_link_in_need_modules () #34 0x8fe102d0 in __dyld_bind_lazy_symbol_reference () #35 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #36 0x000027b8 in main (argc=1, argv=0xbffffd64) at ReaderSourceObject/Reader.cxx:15 #37 0x0000253c in _start (argc=1, argv=0xbffffd64, envp=0xbffffd6c) at /SourceCache/Csu/Csu-45/crt.c:267 #38 0x000023bc in start () Now, what I'm guessing here is that the static initializer for that last object for some reason deadlocks. This code is a nightly from a few days ago, but it built find for me in 10.1.5. Any clues? Thanks, James From wind@climate.gsfc.nasa.gov Thu Oct 10 15:04:51 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Thu, 10 Oct 2002 07:04:51 -0700 Subject: [vtkusers] problems with VTK on Mac OS X - ignore last email In-Reply-To: Message-ID: <3ED24A11-DC59-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov> Ah, you've got same one I've hit, or along those lines anyways. GCC3 is crap. You need to execute this command: sudo gcc_select 2 Yeah, you need to rebuild VTK from scratch. But that should make the pesky error go away once and for all. 10.2.1 updated your compilers, but thank goodness didn't uninstall the gcc 2.95.whatever. Try it, should fix all your problems -- Gala On Thursday, October 10, 2002, at 06:41 AM, James Dessart wrote: > I seem to be having some problems with VTK on Mac OS X 10.2.1, using > gcc3, > I believe, whatever the default is. In any case, in my first call to > anything in VTK, the simple program I wrote (based on an example in the > book) freezes. This program worked under 10.1.5, and simply loads the > data file Data/42400-IDGH.stl and displays it. > > Here is the gdb stack trace, if it helps: > > #0 0x90034f28 in semaphore_wait_trap () > #1 0x9000a418 in pthread_mutex_lock () > #2 0x0089e230 in std::locale::classic() () > #3 0x0089da8c in std::locale::locale() () > #4 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #5 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #6 0x00899470 in std::ios_base::Init::Init() () > #7 0x00961fd8 in __static_initialization_and_destruction_0(int, int) > () > #8 0x0096203c in _GLOBAL__I__ZN12vtkBYUReader16CollectRevisionsERSo () > #9 0x8fe16350 in __dyld_call_module_initializers_for_library () > #10 0x8fe160e4 in __dyld_call_module_initializers () > #11 0x8fe106f0 in __dyld_link_in_need_modules () > #12 0x8fe1016c in __dyld_bind_lazy_symbol_reference () > #13 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #14 0x0089e288 in std::locale::classic() () > #15 0x0089da8c in std::locale::locale() () > #16 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #17 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #18 0x00899470 in std::ios_base::Init::Init() () > #19 0x00961ed8 in __static_initialization_and_destruction_0(int, int) > () > #20 0x00961f3c in _GLOBAL__I__ZN12vtkBMPWriter16CollectRevisionsERSo () > #21 0x8fe16350 in __dyld_call_module_initializers_for_library () > #22 0x8fe160e4 in __dyld_call_module_initializers () > #23 0x8fe106f0 in __dyld_link_in_need_modules () > #24 0x8fe1016c in __dyld_bind_lazy_symbol_reference () > #25 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #26 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #27 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #28 0x00899470 in std::ios_base::Init::Init() () > #29 0x00961dd8 in __static_initialization_and_destruction_0(int, int) > () > #30 0x00961e3c in _GLOBAL__I__ZN12vtkBMPReader16CollectRevisionsERSo () > #31 0x8fe16350 in __dyld_call_module_initializers_for_library () > #32 0x8fe160e4 in __dyld_call_module_initializers () > #33 0x8fe106f0 in __dyld_link_in_need_modules () > #34 0x8fe102d0 in __dyld_bind_lazy_symbol_reference () > #35 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #36 0x000027b8 in main (argc=1, argv=0xbffffd64) at > ReaderSourceObject/Reader.cxx:15 > #37 0x0000253c in _start (argc=1, argv=0xbffffd64, envp=0xbffffd6c) at > /SourceCache/Csu/Csu-45/crt.c:267 > #38 0x000023bc in start () > > Now, what I'm guessing here is that the static initializer for that > last > object for some reason deadlocks. This code is a nightly from a few > days > ago, but it built find for me in 10.1.5. Any clues? > > Thanks, > James > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From dahuang@skltr2.mech.pku.edu.cn Thu Oct 10 15:28:04 2002 From: dahuang@skltr2.mech.pku.edu.cn (dahuang) Date: Thu, 10 Oct 2002 22:28:4 +0800 Subject: [vtkusers] (no subject) Message-ID: <0042f1933140aa2MAIL@smtp.mech.pku.edu.cn> Hi, =09I am comparing various algorithms to reconstruct my MRI slices.I= have used the vtkMarchingCubes algorithm and it worked well,= only that the speed is a bit slow.Now I am trying the= vtkDividingCubes algorithm, but either it consumes too much= memory, or I can not get the 3d image in the render window. =09I think it is maybe caused by the inappropriate parameters I= chose.I need your suggestions. =09 My data: =09=09Pixel Spacing: 0.666016,0.666016;Slice Thickness: 2.500000; =09 =09My Parameter(showing no image) =09=09Distance(0.5);Increment(10); =A1=A1 =A1=A1Default Parameter(Value =3D 0.0;Distance =3D 0.1;Increment =3D 1;) =09 =09=09=09->Memory collapse =A1=A1=A1=A1=A1=A1=A1=A1 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1dahuang =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1dahuang@skltr2.mech.pku.edu.cn =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12002-10-10 From sebastien.barre@kitware.com Thu Oct 10 15:43:27 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Thu, 10 Oct 2002 10:43:27 -0400 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 In-Reply-To: <200210101315.22410.lehrig@t-online.de> Message-ID: <5.1.1.6.0.20021010094849.03129440@pop.biz.rr.com> > > Hi Rainer > > > Which version of CMake are you using (including patch level). > > Which version of Tcl/Tk is provided by Suse 8.1 ? > >I will answer to my own question :) >I checked Suse web site, this Linux distrib comes with Tcl/Tk 8.4. >CMake won't support it until you use the CVS version. >As a matter of fact, you will have to use VTK CVS too. Rainer, if you are willing to experiment, we can try the following. Keep using VTK 4.0, and your current CMake (is it a release ?) and try any of those: a) edit the top VTK/CMakeList.txt file and add *at the top*: ADD_DEFINITIONS( -DUSE_NON_CONST -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK ) or the less intrusive b) Run your favorite CMake cache editor (i.e. CMakeSetup, or ccmake), show the advanced values, and add the above flags to any of those (if they exist): CMAKE_CXX_FLAGS CMAKE_C_FLAGS Thus, your CMAKE_CXX_FLAGS will probably look like: -g -O2 -DUSE_NON_CONST -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK Keep me posted if any of those work -- Sebastien Barre From eric@ece.gatech.edu Thu Oct 10 15:52:27 2002 From: eric@ece.gatech.edu (Eric Pichon) Date: Thu, 10 Oct 2002 10:52:27 -0400 (EDT) Subject: [vtkusers] small objects are not rendered Message-ID: Hi All, When trying to render many objects, VTK will discard those that are too small and too far (even though they are still much bigger than one pixel). I understand that this makes sense in many cases but it is a problem for what I want to do (basically rendering hundreds of small spheres) and I did not manage to get VTK to render all the actors regardless of any optimization consideration. I set manually the clipping planes of the camera and I am not using vtkLODactors but regular vtkActors. Your help would be greatly appreciated ! Eric Pichon --- I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) It was compiled using gcc version 2.95.2. At startup VTK says : Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 From berk.geveci@kitware.com Thu Oct 10 16:21:26 2002 From: berk.geveci@kitware.com (Berk Geveci) Date: 10 Oct 2002 11:21:26 -0400 Subject: [vtkusers] small objects are not rendered In-Reply-To: References: Message-ID: <1034263286.14159.11.camel@caemlyn.kitwarein.com> I don't think VTK discriminates objects depending on their size/position (unless they are outside the clipping range). I have run into a similar problem with older versions of Mesa in the past. It is possible that the OpenGL library distributed with Sun drops small objects when rendering. I would recommend compiling Mesa 3.5 and using it instead of OpenGL to test whether this is the case. -Berk On Thu, 2002-10-10 at 10:52, Eric Pichon wrote: > Hi All, > > When trying to render many objects, VTK will discard those that are too > small and too far (even though they are still much bigger than one pixel). > > I understand that this makes sense in many cases but it is a problem for > what I want to do (basically rendering hundreds of small spheres) and I > did not manage to get VTK to render all the actors regardless of any > optimization consideration. > > I set manually the clipping planes of the camera and I am not using > vtkLODactors but regular vtkActors. > > Your help would be greatly appreciated ! > > Eric Pichon > > --- > > I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) > > It was compiled using gcc version 2.95.2. > > At startup VTK says : > Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 > Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 > > _______________________________________________ > 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 haase@msg.ucsf.edu Thu Oct 10 17:59:44 2002 From: haase@msg.ucsf.edu (Sebastian Haase) Date: Thu, 10 Oct 2002 09:59:44 -0700 Subject: [vtkusers] MayaVi - more modules !? volume rendering References: <009601c26426$f4b25d20$3b45da80@rodan> Message-ID: <077701c2707e$6eaa7410$3b45da80@rodan> Hi all, Hi Prabhu ! I'm working here in the Macromolecular Structure Group at UCSF (San Francisco) and I recently discovered MayaVI - Very nice program !! Since our data sets (optical and electronical microscopy data stacks) are rather "fuzzy" we would prefer volume rendering over surface rendering. 1) Are there new modules being implemented for mayavi ? Maybe "Volume Rendering" ;-) I read the documentation for mayavi and thought it shouldn't be that hard to convert e.g. the iso-surface module into a volume rendering module, since VTK supports both equally well, right? 2) I'm just curious how the "scalar cut plane" is implemented? Doesn't it convert the viewed data into a 2D-texture and is therefore an "identical" view of what a "standard" z-section view looks like (if the cut-plane is perpendicular to the z-axis, of course) ? 3) How do I change the used look-up table? I realized that a vtk-file contains a line that reads "LOOKUP_TABLE default" - what else is there besides "default" ? Also the mayavi example directory contains a ".lut" file - how do I use that? Thanks again for the nice work? Sebastian Haase From haase@msg.ucsf.edu Thu Oct 10 18:25:05 2002 From: haase@msg.ucsf.edu (Sebastian Haase) Date: Thu, 10 Oct 2002 10:25:05 -0700 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux References: <009601c26426$f4b25d20$3b45da80@rodan> Message-ID: <078b01c27081$f9433aa0$3b45da80@rodan> Hi VolumePro board users ! I got VTK 4.0 now compiled (with volumePro 1000 support). The trick was that I inserted a "#inlcude" line in ./Rendering/vtkVolumeProMapper.h : #include Which as I thing resolved a "namespace' issue that got introduced with a recent change in the VolumePro source. BUT: now, how do I get e.g. the "volProt" sample program to use my board ? Is there environment variable to be set ? Or does it maybe not work because of perspective projection while the board only supports orthogonal !? Thanks, Sebastian ----- Original Message ----- From: "Sebastian Haase" To: Sent: Tuesday, September 24, 2002 5:03 PM Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > Hi Folks, > I'm trying to get started with VTK ! > We have a VolPro1000 board - so I got the VTK source , ccmake and turned the > VolPro1000 option on. > I had to create a directory named 'vli3' and under that a directory > 'include' > to put the header file 'vtk3.h' into that . So finally I told ccmake that > my header file is in > '/jws18/lehuaStuff/vli3/include/' > When I do a make I get ( maybe after 30 min. or so) > these compiler errors complaining about e.g. VLIContext defined both in a > VTK-header file and in the vli3.h file which came with the VolumePro1000 > board. : > From anast.jm@pg.com Thu Oct 10 19:24:30 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 10 Oct 2002 14:24:30 -0400 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux Message-ID: Sebastien, You just need to switch to the vtkVolumeProMapper from the vtkVolumeRayCastMapper. If you built tcl wrapping I can send you a short volProt script....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Sebastian Haase" @public.kitware.com on 10/10/2002 10:25 AM MST "Sebastian Haase" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux Sent by: vtkusers-admin@public.kitware.com 10/10/2002 01:25 PM Hi VolumePro board users ! I got VTK 4.0 now compiled (with volumePro 1000 support). The trick was that I inserted a "#inlcude" line in ./Rendering/vtkVolumeProMapper.h : #include Which as I thing resolved a "namespace' issue that got introduced with a recent change in the VolumePro source. BUT: now, how do I get e.g. the "volProt" sample program to use my board ? Is there environment variable to be set ? Or does it maybe not work because of perspective projection while the board only supports orthogonal !? Thanks, Sebastian ----- Original Message ----- From: "Sebastian Haase" To: Sent: Tuesday, September 24, 2002 5:03 PM Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > Hi Folks, > I'm trying to get started with VTK ! > We have a VolPro1000 board - so I got the VTK source , ccmake and turned the > VolPro1000 option on. > I had to create a directory named 'vli3' and under that a directory > 'include' > to put the header file 'vtk3.h' into that . So finally I told ccmake that > my header file is in > '/jws18/lehuaStuff/vli3/include/' > When I do a make I get ( maybe after 30 min. or so) > these compiler errors complaining about e.g. VLIContext defined both in a > VTK-header file and in the vli3.h file which came with the VolumePro1000 > board. : > _______________________________________________ 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 will.schroeder@kitware.com Thu Oct 10 20:02:44 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Thu, 10 Oct 2002 15:02:44 -0400 Subject: [vtkusers] VTK Course at IEEE Visualization 2002 in Boston Message-ID: <5.1.1.6.0.20021010150108.02f0f448@pop.biz.rr.com> --=====================_2261802==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi Folks- This is an announcement for a VTK Course at the IEEE Visualization Conference in Boston on October 27 at special conference rates. See http://www.kitware.com/products/ieeevis2002vtkcourse.html for the announcement. Will ------------------------------ Kitware is offering a special 1-day VTK course at the IEEE Visualization 2002 Conference (http://vis.computer.org/vis2002/) on Sunday October 27, 2002. The course will cover the fundamentals of VTK 4.0 including system organization; the visualization pipeline; key filters and how to use them; surface, image, and volume rendering; and methods to interface your data to VTK. The course will be taught hands-on, students are encouraged to bring a laptop computer and work through the exercises during class. Attendees will receive course notes and a VTK User's Guide. This course is offered at a special conference price of $350 for the day ($250 for students). To register for this course, please contact Kitware at kitware@kitware.com, or via phone at 518-371-3971. The attached registration form (http://www.kitware.com/products/IeeeRegistrationForm.pdf) may also be completed and faxed to 518-371-3971. Payment may be via credit card (MasterCard, Visa, or American Express) or check. Contact Kitware for information regarding payment via purchase order. Please register early, seating is limited. Come to the course and then enjoy the conference! IEEE Visualization is the premier visualization conference in the world today. This year the conference will be held in Boston, MA, USA from October 27 through November 1. At the conference you can meet many of the developers and companies creating visualization technology. A special 3-day exhibition (Kitware is a Gold Supporter) offers the chance to see and try the latest in visualization technology. Two special mini-conferences on volume visualization (VolVis 2002 http://www.cs.sunysb.edu/~volvis02/) and information visualization (InfoVis 2002 http://www.infovis.org/infovis2002/) are also offered that same week. --=====================_2261802==.ALT Content-Type: text/html; charset="us-ascii" Hi Folks-

This is an announcement for a VTK Course at the IEEE Visualization Conference in Boston on October 27 at special conference rates. See http://www.kitware.com/products/ieeevis2002vtkcourse.html for the announcement.

Will
------------------------------

Kitware is offering a special 1-day VTK course at the IEEE Visualization 2002 Conference (http://vis.computer.org/vis2002/) on Sunday October 27, 2002. The course will cover the fundamentals of VTK 4.0 including system organization; the visualization pipeline; key filters and how to use them; surface, image, and volume rendering; and methods to interface your data to VTK. The course will be taught hands-on, students are encouraged to bring a laptop computer and work through the exercises during class. Attendees will receive course notes and a VTK User's Guide. This course is offered at a special conference price of $350 for the day ($250 for students).

To register for this course, please contact Kitware at kitware@kitware.com, or via phone at 518-371-3971. The attached registration form (http://www.kitware.com/products/IeeeRegistrationForm.pdf) may also be completed and faxed to 518-371-3971. Payment may be via credit card (MasterCard, Visa, or American Express) or check. Contact Kitware for information regarding payment via purchase order. Please register early, seating is limited.

Come to the course and then enjoy the conference! IEEE Visualization is the premier visualization conference in the world today. This year the conference will be held in Boston, MA, USA from October 27 through November 1. At the conference you can meet many of the developers and companies creating visualization technology. A special 3-day exhibition (Kitware is a Gold Supporter) offers the chance to see and try the latest in visualization technology. Two special mini-conferences on volume visualization (VolVis 2002 http://www.cs.sunysb.edu/~volvis02/) and information visualization (InfoVis 2002 http://www.infovis.org/infovis2002/) are also offered that same week.

--=====================_2261802==.ALT-- From vtk_replies@yahoo.com Thu Oct 10 22:27:29 2002 From: vtk_replies@yahoo.com (vtk replies) Date: Thu, 10 Oct 2002 14:27:29 -0700 (PDT) Subject: [vtkusers] RE: deriving my own class from vtkActor In-Reply-To: <20021009162102.7595.70631.Mailman@public.kitware.com> Message-ID: <20021010212729.26224.qmail@web21510.mail.yahoo.com> Hi, I ran into a similar problems with deriving my own classes from vtk classes - it turned out that when I created my child class instance, the parent class variables were not intialized. These variables were used in some of the functions in the parent class that I wanted to use. Since I use vtk3.2, I dont know what are the variables in vtkActor class that need initialization in vtk4.0 [The following is an overkill, but it is just another way of doing things - (the disadvantages of doing it are having to re-run config , making changes to lib, and possible memory leaks - not sure - there are probably better ways- if at all nothing, someone will point to simpler way to you after seeing my elaborate mail :)) ). (1) put the additional function, eg., fun1() , that you wish to have in your derived class as a Virtual function in the vtkActor class. (2) then, define the fun1() in the derived class to do what you want it to do. (3) define the New() function in your derived class. (4) in your derived class constructor call the vtkActor() contstructor with appropriate values for intializing any variables in the class - this will properly instantiate any vtkActor class variables. (5) you probably already have a destructor for your derived class in place. (5) for destroying instances of your derived class, call the Delete() method ( since u created the derived class using the New() method in vtk). It should ( probably not cause any mem leaks :) ) call delete() of vtkActor class and then finally delete your class instance too. (6) in the Makefile.in of the appropriate directory, add vtkActor to the list of Abstract classes (7) add your derived class to the list of Concrete classes (8) SAVE all other files that you have changed and your own files to a different dir. (9) re-run config with your own options and make to integrate your class into the library. ] good luck ! cheers, Joseph. --- vtkusers-request@public.kitware.com wrote: > Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of vtkusers digest..." > > > Subject: RE: [vtkusers] deriving my own class from > vtkActor > From: "Charl P. Botha" > To: vtkusers@public.kitware.com > Date: 09 Oct 2002 15:48:53 +0200 > > On Wed, 2002-10-09 at 15:29, Jerome, Ron wrote: > > I ran into the same problem, I derived my class > from vtkOpenGLActor instead > > and it worked fine. > > As far is I know, this is not The Right Way(tm) if > you want to add > functionality in a generic fashion. This would mean > that your class can > only work on OpenGL targets. A better way would be > to derive from > vtkActor and also CONTAIN an instance of vtkActor as > member that can be > used to perform rendering. The contained vtkActor > will specialise (due > to the object factories) as per usual. > > > Ron Jerome > > Institute for Chemical Process and > > Environmental Technology > > National Research Council Canada > > 613-993-5346 > > > > > > >-----Original Message----- > > >From: Steffen Oeltze > [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > > >Sent: Wednesday, October 09, 2002 6:00 AM > > >To: Vtkusers (E-mail) > > >Subject: [vtkusers] deriving my own class from > vtkActor > > > > > > > > >Dear VTK-users, > > > > > >I have tried to derive my own class from vtkActor > using the following > > >code: > > > > > >class FIB_TRACK : public vtkActor > > >{ > > >public: > > > FIB_TRACK(double [3], double [3], bool); > > > ~FIB_TRACK(); > > >.... > > >} > > > > > >For creating a new object I use: > > > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, > dims, true); > > > > > >Then, I construct the rendering pipeline, add the > actor to the > > >renderer and render the window but nothing > happens. Is there > > >anyone who can help me ? > > > > > >Regards, > > >Steffen > > >_______________________________________________ > > >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 > > > > -- > charl p. botha http://cpbotha.net/ > http://visualisation.tudelft.nl/ > __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From haase@msg.ucsf.edu Fri Oct 11 00:53:28 2002 From: haase@msg.ucsf.edu (Sebastian Haase) Date: Thu, 10 Oct 2002 16:53:28 -0700 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux References: Message-ID: <08b501c270b8$3bc16a60$3b45da80@rodan> Thanks a lot - now I know at least that it works. Even though I have the feeling that on a different computer where we have a NVidia GForce4 Ti video card installed the corresponding sample (with 2D texture, I think) runs maybe faster !? The computer with the volumepro board has no hardware OpenGL support (yet). Would that help ? My understanding was that the VolumePro board works with a "different scheme" anyway. Thanks again, Sebastian ----- Original Message ----- From: To: "Sebastian Haase" Sent: Thursday, October 10, 2002 12:55 PM Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux > > Seb, yes, but you can create a VolumeProMapper and query to see if the board > exists, if not you can load a raycastmapper instead. I am not sure what happens > if you create a VolumeProMapper and no board exists if it will default into a > RaycastMapper or?? Interesting experiment. Attached is a simple script with > some comments....john > > (See attached file: SimpleRC_VolPro or RC wStereo.tcl) > > > > Internet Mail Message > Received from host: msg.ucsf.edu > [128.218.69.41] > > > > From: "Sebastian Haase" on 10/10/2002 12:04 PM MST > > "Sebastian Haase" To: John Anast-JM/PGI@PGI > Cc: > Subject: Re: [vtkusers] VTK 4.0 with > VolumePro support on Linux > 10/10/2002 03:04 PM > > > > > > > Thanks, > if you could send me a running sample that would be perfect. (I am building > tcl wrapper) > > Does that mean the user-program (like _my_ code) has to know if there is a > VolumePro board > installed and then use different classes than what I would use normally? > > - Sebastian > > > ----- Original Message ----- > From: > To: > Sent: Thursday, October 10, 2002 11:24 AM > Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux > > > > > > Sebastien, > > > > You just need to switch to the vtkVolumeProMapper from the > > vtkVolumeRayCastMapper. If you built tcl wrapping I can send you a short > volProt > > script....john > > > > > > > > Internet Mail Message > > Received from host: public.kitware.com > > [24.97.130.19] > > > > > > > > From: "Sebastian Haase" @public.kitware.com on > 10/10/2002 > > 10:25 AM MST > > > > "Sebastian Haase" To: > > > @public.kitware.com Cc: (bcc: John > Anast-JM/PGI) > > Subject: Re: [vtkusers] > VTK 4.0 with > > VolumePro support on Linux > > Sent by: > > vtkusers-admin@public.kitware.com > > 10/10/2002 01:25 PM > > > > > > > > > > > > > > Hi VolumePro board users ! > > I got VTK 4.0 now compiled (with volumePro 1000 support). > > The trick was that I inserted a "#inlcude" line in > > ./Rendering/vtkVolumeProMapper.h : > > #include > > Which as I thing resolved a "namespace' issue that got introduced with a > > recent change > > in the VolumePro source. > > > > BUT: now, how do I get e.g. the "volProt" sample program to use my board ? > > Is there environment variable to be set ? Or does it maybe not work > because > > of > > perspective projection while the board only supports orthogonal !? > > > > Thanks, > > Sebastian > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Sebastian Haase" > > To: > > Sent: Tuesday, September 24, 2002 5:03 PM > > Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > > > > > > > Hi Folks, > > > I'm trying to get started with VTK ! > > > We have a VolPro1000 board - so I got the VTK source , ccmake and turned > > the > > > VolPro1000 option on. > > > I had to create a directory named 'vli3' and under that a directory > > > 'include' > > > to put the header file 'vtk3.h' into that . So finally I told ccmake > that > > > my header file is in > > > '/jws18/lehuaStuff/vli3/include/' > > > When I do a make I get ( maybe after 30 min. or so) > > > these compiler errors complaining about e.g. VLIContext defined both in > a > > > VTK-header file and in the vli3.h file which came with the VolumePro1000 > > > board. : > > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: < > > http://public.kitware.com/cgi-bin/vtkfaq> > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > _______________________________________________ > > This 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 nsmith5@gl.umbc.edu Fri Oct 11 01:48:36 2002 From: nsmith5@gl.umbc.edu (Nathan Smith) Date: Thu, 10 Oct 2002 20:48:36 -0400 (EDT) Subject: [vtkusers] Problem with updating Message-ID: I've been toying with this problem endlessly, and it seems I'm nowhere nearer to the solution than when I began. Basically, the rendering program has an input which changes over time, and that input is plugged into a vtkProgrammableGlyphFilter which is then plugged into a renderer. When I initialize the source, everything is fine and dandy, but when I add elements onto the source (with the same 'old' elements in the source), they don't get displayed. I suspect that this is something to do with an UpdateExtent not being right, although I lack experience in this area. Anyone have any ideas? Thanks in advance Nate From nsmith5@gl.umbc.edu Fri Oct 11 01:58:09 2002 From: nsmith5@gl.umbc.edu (Nathan Smith) Date: Thu, 10 Oct 2002 20:58:09 -0400 (EDT) Subject: [vtkusers] Problem with updating In-Reply-To: Message-ID: Lemme rephrase this because I narrowed down the problem: I do: set vtk(glypher) [vtkProgrammableGlyphFilter renderer] $vtk(glypher) SetGlyphMethod glypherProc After the data is updated, I checked vtk(glypher) right before any implicit calls to glypherProc, and it contained the right number of source points (7). But glypherProc is only called 4 times (the previous number of source points). So something between the renderwindow and renderer and glypherProc is not noticing that there is an updated source. Anyone know where this could lie? Thanks Nate On Thu, 10 Oct 2002, Nathan Smith wrote: > I've been toying with this problem endlessly, and it seems I'm nowhere > nearer to the solution than when I began. Basically, the rendering program > has an input which changes over time, and that input is plugged into a > vtkProgrammableGlyphFilter which is then plugged into a renderer. > > When I initialize the source, everything is fine and dandy, but when I add > elements onto the source (with the same 'old' elements in the source), > they don't get displayed. I suspect that this is something to do with an > UpdateExtent not being right, although I lack experience in this area. > Anyone have any ideas? Thanks in advance > > Nate > > > _______________________________________________ > 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 Koning, P.J.H. de (LKEB)" Message-ID: 10-10-02 16:52:27, Eric Pichon wrote: Try removing the default culler from the renderer. It worked for me. See also mails from aug. 2002 regarding this subject >Hi All, > >When trying to render many objects, VTK will discard those that are too >small and too far (even though they are still much bigger than one pixel). > >I understand that this makes sense in many cases but it is a problem for >what I want to do (basically rendering hundreds of small spheres) and I >did not manage to get VTK to render all the actors regardless of any >optimization consideration. > >I set manually the clipping planes of the camera and I am not using >vtkLODactors but regular vtkActors. > >Your help would be greatly appreciated ! > >Eric Pichon > >--- > >I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) > >It was compiled using gcc version 2.95.2. > >At startup VTK says : >Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 >Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 > >_______________________________________________ >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 T.Hutton@eastman.ucl.ac.uk Fri Oct 11 10:42:01 2002 From: T.Hutton@eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 11 Oct 2002 10:42:01 +0100 Subject: [vtkusers] vtkPointLocator & Collision avoidance In-Reply-To: <20021010131753.80686.qmail@web8203.mail.in.yahoo.com> Message-ID: <5.1.0.14.0.20021011103629.033ec3e0@144.82.123.1> Hi Siddu, Try putting BuildLocator before the call to FindClosestPointsWithinRadius. (You may also need to do a STLReader->Update() before the call to BuildLocator.) For collision detection a thorough approach would be to tetrahedralize if necessary all your objects so they are represented as solids (not just as surface meshes) and then use vtkCellLocator::FindClosestPoint to detect if each point is inside a cell. Good luck, Tim. At 14:17 10/10/2002 +0100, Mysore Siddu wrote: > Hi vtk Users, > > I have two questions: > > > >1. From cellLocator->IntersectWithLine I compute the intersection >point and its cellID on the STL file. Now I want to find all the points >within a radius around the intersection point. I tried using >vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) >But I was not successful with the following code: > > float p1[] = {2.0, 1.0, 3.0}; > >float rad = 2.0; > >vtkIdList *res; > >// Build a locator > >vtkPointLocator *pointLocator = vtkPointLocator::New(); > >pointLocator->SetDataSet(STLReader->GetOutput()); > >pointLocator->FindPointsWithinRadius(rad,p1,res); > >pointLocator->BuildLocator(); > > I dont know where I am goofing up the code. As soon as Execute I am > getting error as Memory cant be assigned error I debugged the code it is > stopping at vtkIdList.h // Description: > >// Reset to an empty state. > >void Reset() {this->NumberOfIds = 0;}; > >*/ > > > > > >2. Is there any vtk class, which I can use for collision avoidance? >Basically I have two STL files and I want to check the collision around a >particular point. > > > >Any Help in this regard is very well appreciated. > > Best Regards > >Siddu. --------------------------------------------------------------------------- Tim Hutton, http://www.eastman.ucl.ac.uk/~dmi/MINORI Research Fellow & PhD student, T.Hutton@eastman.ucl.ac.uk MINORI Project, Biomedical Informatics Unit, Tel: [+44] (0)20 7915 2344 Eastman Dental Institute, UCL, Fax: [+44] (0)20 7915 2303 256 Gray's Inn Road, London WC1X 8LD, UK Mobile: [+44] (0)7748 678 832 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. From simon.chatelain@epfl.ch Fri Oct 11 11:06:22 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Fri, 11 Oct 2002 12:06:22 +0200 Subject: [vtkusers] one again unexpected signal in libX11 Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C2711E.9DB1D4B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, i am sorry to insist, but i really need help. my problem is that i need to add a vtkRenderer in the vtkRenderWindow of the class vtkPanel after the window containing the vtkPanel is showed. With windows there is no problem, but with linux there is an error in the libX11.so. in attachement there is a sample application who reproduce this problem, in the class MySimpleVTk, there is this code //here works //panel.addView(v); frame.pack(); frame.setVisible(true); //here doesn't work panel.addView(v); if i change the order of these instructions, the application work or not. if someone can try this and at least say me if he has the same behaviour. it can help me. Thanks Simon Chatelain ------=_NextPart_000_0003_01C2711E.9DB1D4B0 Content-Type: application/octet-stream; name="MySimpleVTK.java" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="MySimpleVTK.java" import javax.swing.*;=0A= import java.awt.event.*;=0A= =0A= public class MySimpleVTK extends JFrame=0A= {=0A= static {=0A= System.loadLibrary("vtkCommonJava");=0A= System.loadLibrary("vtkFilteringJava");=0A= System.loadLibrary("vtkIOJava");=0A= System.loadLibrary("vtkImagingJava");=0A= System.loadLibrary("vtkGraphicsJava");=0A= System.loadLibrary("vtkRenderingJava");=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=0A= JFrame frame;=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=0A= public MySimpleVTK()=0A= {=0A= View v =3D new View();=0A= SimplePanel panel =3D new SimplePanel();=0A= =0A= frame =3D new JFrame("SimpleVTK");=0A= frame.addWindowListener(new WindowAdapter()=0A= {=0A= public void windowClosing(WindowEvent e)=0A= {=0A= System.exit(0);=0A= }=0A= });=0A= frame.getContentPane().add("Center", panel);=0A= =0A= //here works=0A= //panel.addView(v);=0A= =0A= frame.pack();=0A= frame.setVisible(true);=0A= =0A= //here does'nt work=0A= panel.addView(v);=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=0A= public static void main(String[] args)=0A= {=0A= MySimpleVTK msvtk =3D new MySimpleVTK();=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=0A= }=0A= ------=_NextPart_000_0003_01C2711E.9DB1D4B0 Content-Type: application/octet-stream; name="SimplePanel.java" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="SimplePanel.java" import java.awt.*;=0A= import java.awt.event.*;=0A= import javax.swing.*;=0A= import vtk.*;=0A= =0A= =0A= public class SimplePanel extends JPanel implements ActionListener=0A= {=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= JButton exitButton;=0A= vtkPanel renWin;=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public SimplePanel()=0A= {=0A= setLayout(new BorderLayout());=0A= // Create the buttons.=0A= exitButton =3D new JButton("Exit");=0A= exitButton.addActionListener(this);=0A= =0A= renWin =3D new vtkPanel();=0A= =0A= =0A= add(renWin, BorderLayout.CENTER);=0A= add(exitButton, BorderLayout.EAST);=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= /** An ActionListener that listens to the radio buttons. */=0A= public void actionPerformed(ActionEvent e)=0A= {=0A= if (e.getSource().equals(exitButton))=0A= {=0A= System.exit(0);=0A= }=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public void addView(View v)=0A= {=0A= this.renWin.addRenderer(v.getRenderer());=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= } ------=_NextPart_000_0003_01C2711E.9DB1D4B0 Content-Type: application/octet-stream; name="View.java" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="View.java" import vtk.*;=0A= import javax.swing.*;=0A= =0A= public class View=0A= {=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= protected vtkRenderer renderer ;=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public View()=0A= {=0A= vtkConeSource cone =3D new vtkConeSource();=0A= cone.SetResolution(8);=0A= vtkPolyDataMapper coneMapper =3D new vtkPolyDataMapper();=0A= coneMapper.SetInput(cone.GetOutput());=0A= =0A= vtkActor coneActor =3D new vtkActor();=0A= coneActor.SetMapper(coneMapper);=0A= =0A= renderer =3D new vtkRenderer();=0A= renderer.AddActor(coneActor);=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public vtkRenderer getRenderer()=0A= {=0A= return this.renderer;=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= }=0A= ------=_NextPart_000_0003_01C2711E.9DB1D4B0 Content-Type: application/octet-stream; name="vtkPanel.java" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="vtkPanel.java" package vtk;=0A= import java.awt.*;=0A= import java.awt.event.*;=0A= import java.util.*;=0A= =0A= public class vtkPanel=0A= extends Canvas=0A= implements MouseListener, MouseMotionListener, KeyListener=0A= {=0A= protected vtkRenderWindow rw =3D new vtkRenderWindow();=0A= protected vtkCamera cam =3D null;=0A= protected vtkLight lgt =3D new vtkLight();=0A= protected int lastX;=0A= protected int lastY;=0A= protected int windowset =3D 0;=0A= protected int lightingset =3D 0;=0A= protected int LightFollowCamera =3D 1;=0A= protected int InteractionMode =3D 1;=0A= protected boolean rendering =3D false;=0A= protected WindowObservable windowSetObservable =3D new = WindowObservable();=0A= =0A= protected native void RenderCreate(vtkRenderWindow id0);=0A= protected native void Lock();=0A= protected native void UnLock();=0A= =0A= public vtkPanel()=0A= {=0A= addMouseListener(this);=0A= addMouseMotionListener(this);=0A= addKeyListener(this);=0A= super.setSize(200, 200);=0A= rw.SetSize(200, 200);=0A= }=0A= =0A= public vtkRenderWindow GetRenderWindow()=0A= {=0A= return rw;=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public void addRenderer(vtkRenderer renderer)=0A= {=0A= this.rw.AddRenderer(renderer);=0A= =0A= // set the window id and the active camera=0A= cam =3D renderer.GetActiveCamera();=0A= if (lightingset =3D=3D 0)=0A= {=0A= renderer.AddLight(lgt);=0A= lgt.SetPosition(cam.GetPosition());=0A= lgt.SetFocalPoint(cam.GetFocalPoint());=0A= lightingset =3D 1;=0A= }=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= public void addWindowSetObserver(Observer obs)=0A= {=0A= windowSetObservable.addObserver(obs);=0A= }=0A= =0A= public void removeWindowSetObserver(Observer obs)=0A= {=0A= windowSetObservable.deleteObserver(obs);=0A= }=0A= =0A= public void setSize(int x, int y)=0A= {=0A= super.setSize(x, y);=0A= if (windowset =3D=3D 1)=0A= {=0A= Lock();=0A= rw.SetSize(x, y);=0A= UnLock();=0A= }=0A= }=0A= =0A= public void addNotify()=0A= {=0A= super.addNotify();=0A= windowset =3D 0;=0A= rw.SetForceMakeCurrent();=0A= rendering =3D false;=0A= }=0A= =0A= public void removeNotify()=0A= {=0A= rendering =3D true;=0A= super.removeNotify();=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= protected synchronized boolean visibleActor()=0A= {=0A= //System.out.println("visibleActor");=0A= Lock();=0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= =0A= int nbActor =3D 0;=0A= while (ren !=3D null)=0A= {=0A= nbActor +=3D ren.VisibleActorCount();=0A= ren =3D rcoll.GetNextItem();=0A= }=0A= UnLock();=0A= return (nbActor !=3D 0);=0A= }=0A= = //=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=0A= public synchronized void Render()=0A= {=0A= if (!rendering)=0A= {=0A= rendering =3D true;=0A= if (!visibleActor())=0A= {=0A= rendering =3D false;=0A= return;=0A= }=0A= if (rw !=3D null)=0A= {=0A= if (windowset =3D=3D 0)=0A= {=0A= =0A= RenderCreate(rw);=0A= windowset =3D 1;=0A= // notify observers that we have a renderwindow created=0A= windowSetObservable.notifyObservers();=0A= }=0A= Lock();=0A= rw.Render();=0A= UnLock();=0A= rendering =3D false;=0A= }=0A= }=0A= }=0A= =0A= public boolean isWindowSet()=0A= {=0A= return (this.windowset =3D=3D 1);=0A= }=0A= =0A= public void paint(Graphics g)=0A= {=0A= this.Render();=0A= }=0A= =0A= public void LightFollowCameraOn()=0A= {=0A= this.LightFollowCamera =3D 1;=0A= }=0A= =0A= public void LightFollowCameraOff()=0A= {=0A= this.LightFollowCamera =3D 0;=0A= }=0A= =0A= public void InteractionModeRotate()=0A= {=0A= this.InteractionMode =3D 1;=0A= }=0A= =0A= public void InteractionModeTranslate()=0A= {=0A= this.InteractionMode =3D 2;=0A= }=0A= =0A= public void InteractionModeZoom()=0A= {=0A= this.InteractionMode =3D 3;=0A= }=0A= =0A= public void UpdateLight()=0A= {=0A= lgt.SetPosition(cam.GetPosition());=0A= lgt.SetFocalPoint(cam.GetFocalPoint());=0A= }=0A= =0A= public void resetCameraClippingRange()=0A= {=0A= Lock();=0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= while (ren !=3D null)=0A= {=0A= ren.ResetCameraClippingRange();=0A= ren =3D rcoll.GetNextItem();=0A= }=0A= =0A= UnLock();=0A= }=0A= =0A= public void resetCamera()=0A= {=0A= Lock();=0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= while (ren !=3D null)=0A= {=0A= ren.ResetCamera();=0A= ren =3D rcoll.GetNextItem();=0A= }=0A= UnLock();=0A= }=0A= =0A= public void mouseClicked(MouseEvent e)=0A= {=0A= =0A= }=0A= =0A= public void mousePressed(MouseEvent e)=0A= {=0A= =0A= if (!visibleActor())=0A= return;=0A= rw.SetDesiredUpdateRate(5.0);=0A= lastX =3D e.getX();=0A= lastY =3D e.getY();=0A= if ((e.getModifiers() =3D=3D InputEvent.BUTTON2_MASK)=0A= || (e.getModifiers()=0A= =3D=3D (InputEvent.BUTTON1_MASK | InputEvent.SHIFT_MASK)))=0A= {=0A= InteractionModeTranslate();=0A= } else if (e.getModifiers() =3D=3D InputEvent.BUTTON3_MASK)=0A= {=0A= InteractionModeZoom();=0A= } else=0A= {=0A= InteractionModeRotate();=0A= }=0A= }=0A= =0A= public void mouseReleased(MouseEvent e)=0A= {=0A= rw.SetDesiredUpdateRate(0.01);=0A= }=0A= =0A= public void mouseEntered(MouseEvent e)=0A= {=0A= this.requestFocus();=0A= }=0A= =0A= public void mouseExited(MouseEvent e)=0A= {=0A= }=0A= =0A= public void mouseMoved(MouseEvent e)=0A= {=0A= lastX =3D e.getX();=0A= lastY =3D e.getY();=0A= }=0A= =0A= public void mouseDragged(MouseEvent e)=0A= {=0A= if (!visibleActor())=0A= return;=0A= int x =3D e.getX();=0A= int y =3D e.getY();=0A= // rotate=0A= if (this.InteractionMode =3D=3D 1)=0A= {=0A= cam.Azimuth(lastX - x);=0A= cam.Elevation(y - lastY);=0A= cam.OrthogonalizeViewUp();=0A= resetCameraClippingRange();=0A= if (this.LightFollowCamera =3D=3D 1)=0A= {=0A= lgt.SetPosition(cam.GetPosition());=0A= lgt.SetFocalPoint(cam.GetFocalPoint());=0A= }=0A= }=0A= // translate=0A= if (this.InteractionMode =3D=3D 2)=0A= {=0A= double FPoint[];=0A= double PPoint[];=0A= double APoint[] =3D new double[3];=0A= double RPoint[];=0A= double focalDepth;=0A= =0A= // get the current focal point and position=0A= FPoint =3D cam.GetFocalPoint();=0A= PPoint =3D cam.GetPosition();=0A= =0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= =0A= // calculate the focal depth since we'll be using it a lot=0A= ren.SetWorldPoint(FPoint[0], FPoint[1], FPoint[2], 1.0);=0A= ren.WorldToDisplay();=0A= focalDepth =3D ren.GetDisplayPoint()[2];=0A= =0A= APoint[0] =3D rw.GetSize()[0] / 2.0 + (x - lastX);=0A= APoint[1] =3D rw.GetSize()[1] / 2.0 - (y - lastY);=0A= APoint[2] =3D focalDepth;=0A= ren.SetDisplayPoint(APoint);=0A= ren.DisplayToWorld();=0A= RPoint =3D ren.GetWorldPoint();=0A= if (RPoint[3] !=3D 0.0)=0A= {=0A= RPoint[0] =3D RPoint[0] / RPoint[3];=0A= RPoint[1] =3D RPoint[1] / RPoint[3];=0A= RPoint[2] =3D RPoint[2] / RPoint[3];=0A= }=0A= =0A= /*=0A= * Compute a translation vector, moving everything 1/2 =0A= * the distance to the cursor. (Arbitrary scale factor)=0A= */=0A= cam.SetFocalPoint(=0A= (FPoint[0] - RPoint[0]) / 2.0 + FPoint[0],=0A= (FPoint[1] - RPoint[1]) / 2.0 + FPoint[1],=0A= (FPoint[2] - RPoint[2]) / 2.0 + FPoint[2]);=0A= cam.SetPosition(=0A= (FPoint[0] - RPoint[0]) / 2.0 + PPoint[0],=0A= (FPoint[1] - RPoint[1]) / 2.0 + PPoint[1],=0A= (FPoint[2] - RPoint[2]) / 2.0 + PPoint[2]);=0A= resetCameraClippingRange();=0A= }=0A= // zoom=0A= if (this.InteractionMode =3D=3D 3)=0A= {=0A= double zoomFactor;=0A= double clippingRange[];=0A= =0A= zoomFactor =3D Math.pow(1.02, (y - lastY));=0A= if (cam.GetParallelProjection() =3D=3D 1)=0A= {=0A= cam.SetParallelScale(cam.GetParallelScale() / zoomFactor);=0A= } else=0A= {=0A= cam.Dolly(zoomFactor);=0A= resetCameraClippingRange();=0A= }=0A= }=0A= lastX =3D x;=0A= lastY =3D y;=0A= this.Render();=0A= }=0A= =0A= public void keyTyped(KeyEvent e)=0A= {=0A= }=0A= =0A= public void keyPressed(KeyEvent e)=0A= {=0A= if (!visibleActor())=0A= return;=0A= char keyChar =3D e.getKeyChar();=0A= =0A= if ('r' =3D=3D keyChar)=0A= {=0A= resetCamera();=0A= this.Render();=0A= }=0A= if ('u' =3D=3D keyChar)=0A= {=0A= pickActor(lastX, lastY);=0A= }=0A= if ('w' =3D=3D keyChar)=0A= {=0A= vtkActorCollection ac;=0A= vtkActor anActor;=0A= vtkActor aPart;=0A= int i, j;=0A= =0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= =0A= ac =3D ren.GetActors();=0A= ac.InitTraversal();=0A= for (i =3D 0; i < ac.GetNumberOfItems(); i++)=0A= {=0A= anActor =3D ac.GetNextActor();=0A= anActor.InitPartTraversal();=0A= for (j =3D 0; j < anActor.GetNumberOfParts(); j++)=0A= {=0A= aPart =3D anActor.GetNextPart();=0A= aPart.GetProperty().SetRepresentationToWireframe();=0A= }=0A= }=0A= this.Render();=0A= }=0A= if ('s' =3D=3D keyChar)=0A= {=0A= vtkActorCollection ac;=0A= vtkActor anActor;=0A= vtkActor aPart;=0A= int i, j;=0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= =0A= ac =3D ren.GetActors();=0A= ac.InitTraversal();=0A= for (i =3D 0; i < ac.GetNumberOfItems(); i++)=0A= {=0A= anActor =3D ac.GetNextActor();=0A= anActor.InitPartTraversal();=0A= for (j =3D 0; j < anActor.GetNumberOfParts(); j++)=0A= {=0A= aPart =3D anActor.GetNextPart();=0A= aPart.GetProperty().SetRepresentationToSurface();=0A= }=0A= }=0A= this.Render();=0A= }=0A= }=0A= =0A= public void HardCopy(String filename, int mag)=0A= {=0A= =0A= Lock();=0A= =0A= vtkWindowToImageFilter w2if =3D new vtkWindowToImageFilter();=0A= w2if.SetInput(rw);=0A= =0A= w2if.SetMagnification(mag);=0A= w2if.Update();=0A= =0A= vtkTIFFWriter writer =3D new vtkTIFFWriter();=0A= writer.SetInput(w2if.GetOutput());=0A= writer.SetFileName(filename);=0A= writer.Write();=0A= =0A= UnLock();=0A= }=0A= =0A= public void pickActor(int x, int y)=0A= {=0A= =0A= vtkPropPicker picker =3D new vtkPropPicker();=0A= =0A= Lock();=0A= vtkRendererCollection rcoll =3D this.rw.GetRenderers();=0A= rcoll.InitTraversal();=0A= =0A= vtkRenderer ren =3D rcoll.GetNextItem();=0A= =0A= picker.PickProp(x, rw.GetSize()[1] - y, ren);=0A= UnLock();=0A= =0A= if (picker.GetActor() !=3D null)=0A= System.out.println(picker.GetActor().GetClassName());=0A= }=0A= =0A= public void keyReleased(KeyEvent e)=0A= {=0A= }=0A= =0A= private class WindowObservable extends Observable=0A= {=0A= =0A= public void notifyObservers()=0A= {=0A= this.setChanged();=0A= super.notifyObservers();=0A= }=0A= =0A= public void notifyObservers(Object message)=0A= {=0A= this.setChanged();=0A= super.notifyObservers(message);=0A= }=0A= =0A= public boolean hasObservers()=0A= {=0A= return 0 < super.countObservers();=0A= }=0A= }=0A= =0A= }=0A= ------=_NextPart_000_0003_01C2711E.9DB1D4B0-- From dahuang@skltr2.mech.pku.edu.cn Fri Oct 11 11:48:27 2002 From: dahuang@skltr2.mech.pku.edu.cn (dahuang) Date: Fri, 11 Oct 2002 18:48:27 +0800 Subject: [vtkusers] DividingCubes or MarchingCubes? Message-ID: <004dc4153100ba2MAIL@smtp.mech.pku.edu.cn> Hi, =09I am comparing various algorithms to reconstruct my MRI slices.I= have used the vtkMarchingCubes algorithm and it worked well,= only that the speed is a bit slow.Now I am trying the= vtkDividingCubes algorithm, but either it consumes too much= memory, or I can not get the 3d image in the render window. =09I think it is maybe caused by the inappropriate parameters I= chose.I need your suggestions. =09 My data: =09=09Pixel Spacing: 0.666016,0.666016;Slice Thickness: 2.500000; =09 =09My Parameter(showing no image) =09=09Distance(0.5);Increment(10); =A1=A1 =A1=A1Default Parameter(Value =3D 0.0;Distance =3D 0.1;Increment =3D 1;) =09 =09=09=09->Memory collapse =A1=A1=A1=A1=A1=A1=A1=A1 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1dahuang =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1dahuang@skltr2.mech.pku.edu.cn =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12002-10-11 From moitinho@civil.ist.utl.pt Fri Oct 11 12:56:54 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Fri, 11 Oct 2002 12:56:54 +0100 Subject: [vtkusers] Oriented Tensor Glyphs Message-ID: <200210111256.54810.moitinho@civil.ist.utl.pt> Hello I extended the vtkTensorGlyph class, so that the glyph is repeated and oriented at each point, for each eigenvector. I hope that the result is explained by the examples that are available at http://www.civil.ist.utl.pt/~moitinho/vtk The behaviour of the object is controlled by two new Boolean variables ThreeGlyphs and Symmetric. When they are false the object behaves as vtkTensorGlyph. If ThreeGlyphs is true three glyphs, which are scaled according to the eigenvalue along the main axis (the one that after rotation corresponds to the eigenvector), are drawn. If Symmetric is true then the glyph (or the glyphs) is/are mirrored, i.e. 2 or 6 glyphs are produced. In the examples both variables are true. This behaviour is usefull in solid mechanics were other than knowing the direction and magnitude of the eigenvectors we also want to know its sign. Other uses are probably possible... I tried to write the code according to the instructions (a vtkMy...). Could someone who is interested in testing this provide me with some info on the best way to "publish" it? Thank you Ze Paulo From ben.held@staarinc.com Fri Oct 11 13:29:51 2002 From: ben.held@staarinc.com (Ben Held) Date: Fri, 11 Oct 2002 07:29:51 -0500 Subject: [vtkusers] Multiple vtkScalarBarActors in a window Message-ID: Does anyone have example code on how to place multiple (usually 2 or 3) vtkScalarBarActors in a single window? I want to place these in "columns" along the left side of the view. I have coded something which should work, but although the vtkScalarBarActors show up when the window is initially rendered, as soon as a rotation is done, they disappear and vtk seems to be unstable from then on. Ben From jiang@TI.FhG.DE Fri Oct 11 14:20:08 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Fri, 11 Oct 2002 15:20:08 +0200 Subject: [vtkusers] How to rendering 3d image Message-ID: Hi, all, Now I have a question. I have stored a set of medical images in the buffer, the pixel value, just like one array. I want to display them on the screen. Firstly, render it as a cube, then perform reslice on it to oberserve the inside of the cube in different direction. How can do it by vtk4.0 and MFC? Can anyone give me one example? Thanks a lot! Chunyan Jiang *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From PS7278514B@ntu.edu.sg Fri Oct 11 14:11:16 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Fri, 11 Oct 2002 21:11:16 +0800 Subject: [vtkusers] Resolution Reduced Dataset. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB32@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I got a stack of BMP format slice image files. The resolution is 512X512 data. I want to reduce the resolution to 64X64 dataset. Could I use vtk C++/Tcl program to do it. Could Someone provide some suggest or similar source code to do it. Thanks very much.=20 ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Fri Oct 11 14:19:20 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Fri, 11 Oct 2002 21:19:20 +0800 Subject: [vtkusers] Limitation Resolution Input of vtkImageReader Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A689@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I am afraid that VTK provided Image Read Class like vtkImageReader, = vtkVolumeReader...... could only read the resolution below 256X256 image = data. Could I correct? Could some experts share some experience about the Limitation Resolution = Input of vtkImageReader . Thanks very much. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Fri Oct 11 14:34:21 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Fri, 11 Oct 2002 21:34:21 +0800 Subject: [vtkusers] About quarter.hdr file. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB34@mail02.student.main.ntu.edu.sg> Dear VTK-Users: How about the vtk provided quarter.hdr file in headsq slices? If I want to build a stack of slices. Do I need the similar file. How to modified it? Thanks a lots. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From anast.jm@pg.com Fri Oct 11 14:54:37 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Fri, 11 Oct 2002 09:54:37 -0400 Subject: [vtkusers] Resolution Reduced Dataset. Message-ID: Here's a piece of tcl code...key is vtkImageShrink3D....john vtkBMPReader reader1 reader1 SetFilePrefix "P:/VolumeData/2uCT/test/dik" reader1 SetDataSpacing 0.44 0.44 0.88 reader1 SetDataExtent 0 1023 0 1023 1 200 reader1 SetDataVOI 100 925 100 925 1 200 vtkImageLuminance reader reader SetInput [reader1 GetOutput] vtkImageShrink3D shrink shrink SetInput [reader GetOutput] shrink SetShrinkFactors 4 4 1 shrink AveragingOff Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "#YAN RI AN#" @public.kitware.com on 10/11/2002 09:11 PM ZE8 "#YAN RI AN#" To: "Vtkusers (E-mail)" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Resolution Reduced Sent by: Dataset. vtkusers-admin@public.kitware.com 10/11/2002 09:11 AM Dear VTK-Users: I got a stack of BMP format slice image files. The resolution is 512X512 data. I want to reduce the resolution to 64X64 dataset. Could I use vtk C++/Tcl program to do it. Could Someone provide some suggest or similar source code to do it. Thanks very much. *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** _______________________________________________ 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 vidya.sivakumar@quest-global.com Fri Oct 11 15:23:45 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Fri, 11 Oct 2002 10:23:45 -0400 Subject: [vtkusers] (no subject) In-Reply-To: <20021011103854.20553.99501.Mailman@public.kitware.com> Message-ID: Hi All, I am using jdk 1.3.1 with vtk and I have a rendering problem which typically occurs when I use vtkRenderWindow. I get the error below: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x690d295b Function name=glPushClientAttrib Library=C:\WINNT\System32\atio2kag.dll Current Java thread: at vtk.vtkRenderWindow.Render_6(Native Method) at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36) at try7.(try7.java:152) at try7.main(try7.java:187) The program crashes when I use the Render method. The line 152 corresponds to the where I uyse the render() method Could any body help me with this? Thanks in advance, Vidya From Gowri.Gopalakrishnan@inteq.com Fri Oct 11 16:47:10 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Fri, 11 Oct 2002 10:47:10 -0500 Subject: [vtkusers] vrml exporter Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2713D.75CABD80 Content-Type: text/plain Hi All and particulary vtk support/development group I have posted few remarks in this group before about the vrml importer and exporter. Many people have also asked about various related issues regarding vrml importer/exporter To name a few in the exporter 1. if you draw a cube and make it wireframe then the vrmlexporter exports a solid cube. So if you had something inside the cube it is not shown in wrl file 2. Various color problems in the exporter 3. The whole scene being somewhere in cosmo player. It takes random rotation, zoom etc to find the scene on the vrml file....... I would like to know if possible from the kitware team if any of this is reviewed for correction. I have checked vtk3.* version and vtk4.0 and the problems remain..... it would be very helpful if someone could give me a feed back on this issue, because I would finally like to decide if my application (which is based on vtk) can export to vrml. It would be a nice feature to have in an application but if I know kitware's priority on this class it would be helpful for me to decide.... Thank you very much in advance for your reply. If there is an official channel to submit this issue please let me know..... Regards Gowri ------_=_NextPart_001_01C2713D.75CABD80 Content-Type: text/html

 

            Hi All and particulary vtk support/development group

 

            I have posted few remarks in this group before about the vrml importer and exporter. Many people have also asked about various related issues regarding   

            vrml importer/exporter

 

            To name a few in the exporter

 

1.      if you draw a cube and make it wireframe then the vrmlexporter exports a solid cube. So if you had something inside the cube it is not shown in wrl file

2.      Various color problems in the exporter

3.      The whole scene being somewhere in cosmo player. It takes random rotation, zoom etc to find the scene on the vrml file.......

 

I would  like to know if possible from the  kitware team  if any of this is reviewed for correction. I have checked vtk3.* version and vtk4.0 and the problems remain.....

it would be very helpful if someone could give me a feed back on this issue, because I would finally like to decide if my application (which is based on vtk)

can export to vrml.  It would be a nice feature to have in an application but if I know kitware's priority on this class it would be helpful for me to decide....

 

Thank you very much in advance for your reply.  If there is an official channel to submit this issue please let me know.....

 

Regards

Gowri

 

 

------_=_NextPart_001_01C2713D.75CABD80-- From Eduardo Kortright" Message-ID: <005701c27141$13a3f3c0$6500a8c0@CyberFrog> Dear VTK Gurus, I have noticed that the Tcl shell that comes with the pre-compiled Windows VTK 4.0 binaries is not as friendly on Win98 or WinME as it is on Win2000 or WinXP. It seems to run on Windows' "MSDOS prompt" utility and you cannot retrieve previous commands (e.g. by using the up-arrow key) or edit the current command line. It is very difficult to even paste text from other windows (you have to move the mouse around to coax the text to come out of the clipboard), and as far as I know you cannot copy or cut text. These limitations do not exist if you run Tcl by itself (wish83); the shell that appears has all the basic text editing features. My question is: does anyone know how to run VTK from this nicer Tcl shell instead of the ugly MSDOS shell? Or is there some way to fix this behavior? Thanks for any help you can offer. -- Eduardo Kortright UNO Computer Science eduardo@cs.uno.edu From vtk_replies@yahoo.com Fri Oct 11 19:11:50 2002 From: vtk_replies@yahoo.com (vtk replies) Date: Fri, 11 Oct 2002 11:11:50 -0700 (PDT) Subject: [vtkusers] help with blanking portions in a Structured Grid Message-ID: <20021011181150.85480.qmail@web21507.mail.yahoo.com> Hello, I have not been able to blank a portion of a structured grid ( in order to simulate an object/obstacle )using the vtkStructuredGrid->BlankPoint(pointId) function in vtkStructuredGrid class. (1) Is there any way of blanking a portion of a structured grid in VTK ? How can it be done ? Will anyone who has done this before please take the time to help me out ? Any help will be greatly appreciated. Thanks in advance, regards Joseph. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From heiland@ncsa.uiuc.edu Fri Oct 11 19:43:30 2002 From: heiland@ncsa.uiuc.edu (Randy Heiland) Date: Fri, 11 Oct 2002 13:43:30 -0500 Subject: [vtkusers] vtkRenderLargeImage w/ vtkTextActor Message-ID: <1021011134331.ZM28102@pecos.ncsa.uiuc.edu> When I use these two classes, I see that the text is replicated in each tile. Is there an easy workaround? I'm using a CVS from July. thanks, --Randy From jeff@cdnorthamerica.com Fri Oct 11 19:46:35 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Fri, 11 Oct 2002 14:46:35 -0400 Subject: [vtkusers] vtkRenderLargeImage w/ vtkTextActor References: <1021011134331.ZM28102@pecos.ncsa.uiuc.edu> Message-ID: <3DA71C8B.7080108@cdnorthamerica.com> how about vtkWindowToImageFilter? Randy Heiland wrote: >When I use these two classes, I see that the text is replicated in each tile. > Is there an easy workaround? > >I'm using a CVS from July. > >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 nundys@neuro.duke.edu Fri Oct 11 20:09:26 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Fri, 11 Oct 2002 15:09:26 -0400 Subject: [vtkusers] vtkSpatialRepresentationFilter.SetInput problem In-Reply-To: <20021011184701.6728.44496.Mailman@public.kitware.com> Message-ID: Hello, I have a strange problem using the vtkSpatialRepresentationFilter.SetInput method. When I pass it a vtkPolyData object in Java (with say vtkConeSource.GetOutput), it works fine. However, when i use it in C++, it complains saying it needs a vtkDataSet object (which seems to be verified in the documentation). I can't seem to figure out how to convert a vtkConeSource output (or any other kind of such object) into vtkDataSet form, is there such a filter? Thanks, Surajit Nundy From nundys@neuro.duke.edu Tue Oct 1 05:20:21 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 1 Oct 2002 00:20:21 -0400 Subject: [vtkusers] vtk-Java Help Message-ID: I have been able to successfully make Java wrapped libraries on 10.2.1. They almost work (I can see vtkRenderWindows and generate other classes easily). However, one major exception remains:- If I do vtkPolyDataMapper.SetInput( cone.GetOutput()), the program fails with a EXC_BAD_ACCESS error. This is not a java problem, because I cannot catch an exception around this code. Instead, a "Bus Error" happens with the above problem written to Console. Oddly, I can use vtkPolyDataMapper.SetInput in C++ and Tcl code without any problems, which suggests that the actual Java wrapping is responsible. Since this is a pretty important method and class (I can't visualize data without it), I was hoping you would have some ideas about it. I also haven't been able to use vtkPanel.java yet which apparently makes the Carbon drawing surface thread-safe (using vtkRenderWindow directly apparently is not thread-safe). Have you used these successfully? Thanks, Surajit On Wednesday, September 25, 2002, at 02:32 AM, Raphael Sebbe wrote: > Here is my CMakeCache.txt, it builds VTK for Cocoa, but no Java > backend. Note that the last time I built it was on September 3 (from > CVS). > > > > Raphael > > On Tuesday, September 24, 2002, at 08:37 PM, Surajit Nundy wrote: > >> Problems: >> I successfully built VTK using Cocoa on Mac OS X 10.2.1. However, >> when I try to run it, I get the error message (unlike Sandor Heman):- >> >> /TimeRenderer >> dyld: ./TimeRenderer Undefined symbols: >> OpenGL undefined reference to _gll_noop expected to be defined in >> /usr/X11R6/lib/libGL.dylib >> OpenGL undefined reference to _gll_pkey expected to be defined in >> /usr/X11R6/lib/libGL.dylib >> Trace/BPT trap >> >> This is behavior that didn't exist about a month ago when I could >> build and run VTK on 10.1.5 (quite) flawlessly. It seems to want >> some X-Windows values, however, I am building for Cocoa. Has anyone >> successfully navigated these straits and has a recipe for successful >> building and running (hopefully, using Java wrapping) on 10.2.1. >> >> Thanks, >> Surajit >> >> _______________________________________________ >> 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 cnavarro@ncsa.uiuc.edu Fri Oct 11 20:34:32 2002 From: cnavarro@ncsa.uiuc.edu (Christopher M. Navarro) Date: Fri, 11 Oct 2002 14:34:32 -0500 (CDT) Subject: [vtkusers] vtkTexture question Message-ID: If I create a cube with side lengths of 0.05 and I want to create a PNG file to texture the cube's sides with, what is the unit on 0.05 so I size the texture in gimp to exactly match the lengths of the cubes sides? Thanks. -chris From prabhu@aero.iitm.ernet.in Fri Oct 11 19:15:38 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 11 Oct 2002 23:45:38 +0530 Subject: [vtkusers] Oriented Tensor Glyphs In-Reply-To: <200210111256.54810.moitinho@civil.ist.utl.pt> References: <200210111256.54810.moitinho@civil.ist.utl.pt> Message-ID: <15783.5450.28791.295174@monster.linux.in> >>>>> "JP" == Jose Paulo Moitinho de Almeida writes: JP> Hello I extended the vtkTensorGlyph class, so that the glyph JP> is repeated and oriented at each point, for each eigenvector. JP> I hope that the result is explained by the examples that are JP> available at http://www.civil.ist.utl.pt/~moitinho/vtk Looks very nice! If you think that the best place for the modifications is inside the TensorGlyph class then just put out your code so that it works with vtkTensorGlyph and put it up for download maybe one of the developers can take a look and commit it into the repository. OTOH if think you should have a separate class for this then make it so and put that for download as well. I think its best if it were left in vtkTensorGlyph. Thanks. prabhu From Eduardo Kortright" Message-ID: <003601c2717b$62707b10$6500a8c0@CyberFrog> I am displaying an actor with its mapper set to ScalarVisibilityOn to color the actor based on its scalar values. After playing with the actor's diffuse lighting coefficient, I concluded that lighting has no effect when color mapping is turned on. The specular coefficient does have an effect, however. After playing with the ambient coefficient I found out that the diffuse coefficient does have an effect, provided the ambient coefficient is non-zero. Similarly, the ambient lighting has no effect if the diffuse coefficient is zero. Since ambient and diffuse reflection are not linked when scalars are not used, why are they dependent on one another with scalars are turned on? Could this be a bug, or is this the intended functionality? I am using VTK 4.0 on Win XP. --------------------[ Eduardo Kortright eduardo@cs.uno.edu ][ Department of Computer Science Phone 504 280-6626 ][ University of New Orleans FAX 504 280-7228 ][ New Orleans, LA 70148 From Ron.Jerome@nrc.ca Sat Oct 12 01:35:25 2002 From: Ron.Jerome@nrc.ca (Jerome, Ron) Date: Fri, 11 Oct 2002 20:35:25 -0400 Subject: [vtkusers] help with blanking portions in a Structured Grid Message-ID: <17C47B340D0BD411B0C70004AC5676BC1D2B02@nrcmrdex1c.imsb.nrc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27187.41B2DD80 Content-Type: text/plain; charset="iso-8859-1" I have used this, and it works, make sure that you blank all the points that makeup a given cell. Ron Jerome National Research Council Canada -----Original Message----- From: vtk replies [mailto:vtk_replies@yahoo.com] Sent: Friday, October 11, 2002 2:12 PM To: vtkusers@public.kitware.com Subject: [vtkusers] help with blanking portions in a Structured Grid Hello, I have not been able to blank a portion of a structured grid ( in order to simulate an object/obstacle )using the vtkStructuredGrid->BlankPoint(pointId) function in vtkStructuredGrid class. (1) Is there any way of blanking a portion of a structured grid in VTK ? How can it be done ? Will anyone who has done this before please take the time to help me out ? Any help will be greatly appreciated. Thanks in advance, regards Joseph. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ------_=_NextPart_001_01C27187.41B2DD80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [vtkusers] help with blanking portions in a Structured = Grid

I have used this, and it works, make sure that you = blank all the points that makeup a given cell.

Ron Jerome
National Research Council Canada


-----Original Message-----
From: vtk replies [mailto:vtk_replies@yahoo.com]<= /FONT>
Sent: Friday, October 11, 2002 2:12 PM
To: vtkusers@public.kitware.com
Subject: [vtkusers] help with blanking portions in a = Structured Grid


Hello,
I have not been able to blank a portion of a
structured grid ( in order to simulate an
object/obstacle )using the
vtkStructuredGrid->BlankPoint(pointId) function = in
vtkStructuredGrid class.

(1) Is there any way of blanking a portion of = a
structured grid in VTK ? How can it be done ? =

Will anyone who has done this before please take = the
time to help me out ?
Any help will be greatly appreciated.

Thanks in advance,

regards

Joseph.

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & = More
http://faith.yahoo.com
_______________________________________________
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

------_=_NextPart_001_01C27187.41B2DD80-- From PS7278514B@ntu.edu.sg Sat Oct 12 03:31:30 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sat, 12 Oct 2002 10:31:30 +0800 Subject: [vtkusers] Resolution Reduced Dataset. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB35@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I got a stack of BMP format slice image files. The resolution is 512X512 data. I want to reduce the resolution to 64X64 dataset. Could I use vtk C++/Tcl program to do it. Could Someone provide some suggest or similar source code to do it. Thanks very much.=20 ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From galen@sp1.compbio.washington.edu Sat Oct 12 04:29:01 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Fri, 11 Oct 2002 20:29:01 -0700 (PDT) Subject: [vtkusers] prob. with colors in vtkVRMLExporter In-Reply-To: <15752.7481.690016.154313@monster.linux.in> Message-ID: Hi, I am using a vtkVRMLExporter to create .wrl files. For some reason, everything is either blue or black in the output file. Does anyone know how to get the VRML output to truly match the VTK rendering? My 3-d objects are not very complex: def write_vrml(self,event): vrml = vtkVRMLExporter() vrml.SetInput(self.renWin) vrml_filename = self.abs_file_name + ".wrl" vrml.SetFileName(vrml_filename) vrml.Write() print "Wrote VRML output: ", vrml_filename I don't think it matters, but the render window is created by using a vtkTKRenderWidget: self.root = Tk() self.vtk_tkrenwigt = vtkTkRenderWidget(self.root, height = 800, width = 800) self.renWin = self.vtk_tkrenwigt.GetRenderWindow() thanks, Galen Wilkerson -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 From PS7278514B@ntu.edu.sg Sat Oct 12 08:39:04 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sat, 12 Oct 2002 15:39:04 +0800 Subject: [vtkusers] Limitation Resolution Input of vtkImageReader Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB37@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I can reduce the resolution of the image files. I am afraid that VTK provided Image Read Class like vtkImageReader, = vtkVolumeReader...... could only read the resolution below 256X256 image = data. Could I correct? Could some experts share some experience about the Limitation Resolution = Input of vtkImageReader . Thanks very much. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From affable@hd2.dot.net.in Sat Oct 12 12:54:03 2002 From: affable@hd2.dot.net.in (cspl) Date: Sat, 12 Oct 2002 17:24:03 +0530 Subject: [vtkusers] How to convert volueme data into buffer data Message-ID: <003201c271e6$118327a0$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_002F_01C27214.293B74F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear friends, how to convert volume data into buffer data. I am using raycast technique.After that I want to export the output into = a buffer.please give me suggestion. thanking you, regards, ramakrishna ------=_NextPart_000_002F_01C27214.293B74F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear friends,

how to convert volume data into buffer = data.
I am=20 using raycast technique.After that I want to export the output into=20 a
buffer.please give me suggestion.

thanking=20 you,

regards,
ramakrishna
------=_NextPart_000_002F_01C27214.293B74F0-- From stefan.bruckner@chello.at Sat Oct 12 16:13:03 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: 12 Oct 2002 17:13:03 +0200 Subject: [vtkusers] Shear-Warp in VTK Message-ID: <1034435583.8081.2.camel@NANCY> Hi! We are planning to implement volume rendering using a shear-warp-factorization based algorithm for VTK. Just out of interest, are there any other people working on something like that? -- Stefan Bruckner From simon.faust@post.rwth-aachen.de Sun Oct 13 10:54:04 2002 From: simon.faust@post.rwth-aachen.de (Simon Faust) Date: Sun, 13 Oct 2002 11:54:04 +0200 Subject: [vtkusers] unsuscribe Message-ID: <3DA942BC.9010300@post.rwth-aachen.de> From vcravikiran@hotmail.com Sun Oct 13 11:23:50 2002 From: vcravikiran@hotmail.com (ravi kiran) Date: Sun, 13 Oct 2002 10:23:50 +0000 Subject: [vtkusers] Urgent!Please help!!! Message-ID: hi, I have tetrahedralized a cube of 11*11*5 points. The following code tetrahedralizes the cube. But, i am having a hard time generating a file that represents each cell with its coordinates. Can anyone help me modify this code to generate a file that gives me the coordinates of each cell that is tetrahedralized.Please help me as it is urgent. Thanks in advance. Ravi catch {load vtktcl} set VTK_DATA "../vtkdata" set VTK_TCL ".." # include get the vtk interactor ui source $VTK_TCL/vtkInt.tcl set x [list 0 100 200 300 400 500 600 700 800 900 1000] set y [list 0 100 200 300 400 500 600 700 800 900 1000] #set z [list 0 100 200 300 400 500 600 700 800 900 1000] set z [list 0 100 200 300 400 500] # create a vtkPoints object to contain a list of points vtkPoints points set fileid [open "MARS.txt" w+] seek $fileid 0 start puts $fileid "Sl X Y Z" set l 0 # using InsertNextPoint, you don't have to number the vertices for {set i 0} {$i < [llength $x]} {incr i} { for {set j 0} {$j < [llength $y]} {incr j} { for {set k 0} {$k < [llength $z]} {incr k} { points InsertNextPoint [lindex $x $i] [lindex $y $j] [lindex $z $k] puts $fileid "$l [lindex $x $i] [lindex $y $j] [lindex $z $k]" set l [expr $l + 1] } } } close $fileid vtkUnstructuredGrid pSet pSet SetPoints points vtkPolyData profile profile SetPoints points # triangulate them # vtkDelaunay3D del del SetInput profile del BoundingTriangulationOff del SetTolerance 100 del SetAlpha 0 del SetInput profile vtkShrinkFilter shrink shrink SetInput [del GetOutput] shrink SetShrinkFactor 0.98 # Transform And Transform Filter Were Used To Scale The Height Field vtkTransform delT delT Identity vtkTransformFilter delTF delTF SetTransform delT delTF SetInput [shrink GetOutput] delT Scale 1.0 1.0 1.0 vtkExtractUnstructuredGrid gridCell gridCell SetInput [delTF GetOutput] vtkDataSetMapper map map SetInput [gridCell GetOutput] vtkActor triangulation triangulation SetMapper map [triangulation GetProperty] SetColor 0 0 1 # Build the prop assembly out of a vtkActor and a vtkAssembly vtkPropAssembly assembly assembly AddPart triangulation # Create the RenderWindow, Renderer and both Actors # vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # Add the actors to the renderer, set the background and size # ren1 AddProp assembly ren1 SetBackground 0 0 0 renWin SetSize 2000 2000 set cam1 [ren1 GetActiveCamera] $cam1 Zoom 1.0 $cam1 Elevation -45 # Get handles to some useful objects # iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize renWin Render # prevent the tk window from showing up then start the event loop wm withdraw . _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From vidya.sivakumar@quest-global.com Sun Oct 13 12:47:36 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Sun, 13 Oct 2002 07:47:36 -0400 Subject: [vtkusers] vtkScalars In-Reply-To: <20021013103631.20113.41195.Mailman@public.kitware.com> Message-ID: Hi All, I am trying to use vtkScalars in java to store the scalar values of points. But I get the error unable to reslove symbol. I don't see it in the jar file either. Is there any other function that I can use in its place? Could anybody help? Thanks in advance, Vidya From ted@caept.com Sun Oct 13 19:29:53 2002 From: ted@caept.com (Ted Christiansen) Date: Sun, 13 Oct 2002 20:29:53 +0200 Subject: [vtkusers] Better vtkContourBar Message-ID: <3DA9BBA1.B02E6C89@caept.com> Hello, Has anyone worked on a better contour bar? I am interested in one that has better size/placement control, fixed font size (doesnt scale when window changes size), and "smart" numerical precision when displaying the values. If not, I will have to dive in and do it myself. Ted From M.Petrek@sh.cvut.cz Sun Oct 13 20:35:20 2002 From: M.Petrek@sh.cvut.cz (Martin Petrek) Date: Sun, 13 Oct 2002 21:35:20 +0200 Subject: [vtkusers] HedgeHog X Streamlines X glyph2D ?? Message-ID: <008e01c272ef$aabb5870$16792093@joplin> This is a multi-part message in MIME format. ------=_NextPart_000_008A_01C27300.6DF62F80 Content-Type: multipart/alternative; boundary="----=_NextPart_001_008B_01C27300.6DF62F80" ------=_NextPart_001_008B_01C27300.6DF62F80 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hello, I'm new VTK user and have some problems with visualizing vectors. I' ve computed vector field and save it into structured grid. (as = vectors) Then I use "vtkGlyph2D" to visualize it, with the source object arrow (from vtkGlyphSource2D). This goes well, but then I tried = vtkHedgeHog class and the result doesn't corespondent with the previous "arrows". =20 Also when I wanted to generate streamlines expecting "curves along the = arrows" I got some "mysterious" lines and I don't want to believe these are streamlines of the field. Those = arrows should be in tangetial direction, shouldn't? Will someone = explain what I'm doing bad?=20 Thanks a lot Martin P.S the code and data are in atachmentes \VVVV/ /? -o>o _///\__@/ O=3D=3D-, / ___ \ ___ | | )__ \__/ \ | ___ \____Bw############88#___| \____/ /\___/ | | \ | | \ | | | | | | | |~~|~|__ /|\ \___/__/ / | \ Joplin (M.Petrek@sh.cvut.cz) ICQ: 52725854 Phone: +42 (072) 3369582=20 ------=_NextPart_001_008B_01C27300.6DF62F80 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
Hello, I'm new VTK user and have some = problems with=20 visualizing vectors.
 I' ve computed vector field and = save it into=20 structured grid. (as vectors)
 
Then I use "vtkGlyph2D" to visualize = it, with the=20 source
object arrow (from vtkGlyphSource2D). = This goes=20 well, but then I tried vtkHedgeHog  class and the = result
doesn't corespondent with the previous=20 "arrows". 
 
Also when I wanted to generate = streamlines=20 expecting "curves along the arrows" I got some "mysterious" = lines
and I don't want to believe these are = streamlines=20 of the field.   Those arrows should be in tangetial direction, = shouldn't?   Will someone explain what I'm doing bad? =
 
Thanks a=20 lot           &nbs= p;       =20 Martin
 
P.S  the code=20 and data are in atachmentes
------=_NextPart_001_008B_01C27300.6DF62F80-- ------=_NextPart_000_008A_01C27300.6DF62F80 Content-Type: application/octet-stream; name="sem.vtk" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="sem.vtk" # vtk DataFile Version 2.0 2D phase field model ASCII DATASET STRUCTURED_POINTS DIMENSIONS 40 40 1 ORIGIN 0.0 0.0 0.0 SPACING 0.100 0.1000 0.1000 POINT_DATA 1600 VECTORS vec1 float -2 8 0.0 -1.9 7.7 0.0 -1.8 7.4 0.0 -1.7 7.1 0.0 -1.6 6.8 0.0 -1.5 6.5 = 0.0 -1.4 6.2 0.0 -1.3 5.9 0.0 -1.2 5.6 0.0 -1.1 5.3 0.0 -1 5 0.0 -0.9 = 4.7 0.0 -0.8 4.4 0.0 -0.7 4.1 0.0 -0.6 3.8 0.0 -0.5 3.5 0.0 -0.4 3.2 0.0 = -0.3 2.9 0.0 -0.2 2.6 0.0 -0.1 2.3 0.0 6.38378e-16 2 0.0 0.1 1.7 0.0 0.2 = 1.4 0.0 0.3 1.1 0.0 0.4 0.8 0.0 0.5 0.5 0.0 0.6 0.2 0.0 0.7 -0.1 0.0 0.8 = -0.4 0.0 0.9 -0.7 0.0 1 -1 0.0 1.1 -1.3 0.0 1.2 -1.6 0.0 1.3 -1.9 0.0 = 1.4 -2.2 0.0 1.5 -2.5 0.0 1.6 -2.8 0.0 1.7 -3.1 0.0 1.8 -3.4 0.0 1.9 = -3.7 0.0=20 -2 7.12 0.0 -1.9 6.859 0.0 -1.8 6.598 0.0 -1.7 6.337 0.0 -1.6 6.076 0.0 = -1.5 5.815 0.0 -1.4 5.554 0.0 -1.3 5.293 0.0 -1.2 5.032 0.0 -1.1 4.771 = 0.0 -1 4.51 0.0 -0.9 4.249 0.0 -0.8 3.988 0.0 -0.7 3.727 0.0 -0.6 3.466 = 0.0 -0.5 3.205 0.0 -0.4 2.944 0.0 -0.3 2.683 0.0 -0.2 2.422 0.0 -0.1 = 2.161 0.0 6.38378e-16 1.9 0.0 0.1 1.639 0.0 0.2 1.378 0.0 0.3 1.117 0.0 = 0.4 0.856 0.0 0.5 0.595 0.0 0.6 0.334 0.0 0.7 0.073 0.0 0.8 -0.188 0.0 = 0.9 -0.449 0.0 1 -0.71 0.0 1.1 -0.971 0.0 1.2 -1.232 0.0 1.3 -1.493 0.0 = 1.4 -1.754 0.0 1.5 -2.015 0.0 1.6 -2.276 0.0 1.7 -2.537 0.0 1.8 -2.798 = 0.0 1.9 -3.059 0.0=20 -2 6.28 0.0 -1.9 6.056 0.0 -1.8 5.832 0.0 -1.7 5.608 0.0 -1.6 5.384 0.0 = -1.5 5.16 0.0 -1.4 4.936 0.0 -1.3 4.712 0.0 -1.2 4.488 0.0 -1.1 4.264 = 0.0 -1 4.04 0.0 -0.9 3.816 0.0 -0.8 3.592 0.0 -0.7 3.368 0.0 -0.6 3.144 = 0.0 -0.5 2.92 0.0 -0.4 2.696 0.0 -0.3 2.472 0.0 -0.2 2.248 0.0 -0.1 = 2.024 0.0 6.38378e-16 1.8 0.0 0.1 1.576 0.0 0.2 1.352 0.0 0.3 1.128 0.0 = 0.4 0.904 0.0 0.5 0.68 0.0 0.6 0.456 0.0 0.7 0.232 0.0 0.8 0.008 0.0 0.9 = -0.216 0.0 1 -0.44 0.0 1.1 -0.664 0.0 1.2 -0.888 0.0 1.3 -1.112 0.0 1.4 = -1.336 0.0 1.5 -1.56 0.0 1.6 -1.784 0.0 1.7 -2.008 0.0 1.8 -2.232 0.0 = 1.9 -2.456 0.0=20 -2 5.48 0.0 -1.9 5.291 0.0 -1.8 5.102 0.0 -1.7 4.913 0.0 -1.6 4.724 0.0 = -1.5 4.535 0.0 -1.4 4.346 0.0 -1.3 4.157 0.0 -1.2 3.968 0.0 -1.1 3.779 = 0.0 -1 3.59 0.0 -0.9 3.401 0.0 -0.8 3.212 0.0 -0.7 3.023 0.0 -0.6 2.834 = 0.0 -0.5 2.645 0.0 -0.4 2.456 0.0 -0.3 2.267 0.0 -0.2 2.078 0.0 -0.1 = 1.889 0.0 6.38378e-16 1.7 0.0 0.1 1.511 0.0 0.2 1.322 0.0 0.3 1.133 0.0 = 0.4 0.944 0.0 0.5 0.755 0.0 0.6 0.566 0.0 0.7 0.377 0.0 0.8 0.188 0.0 = 0.9 -0.001 0.0 1 -0.19 0.0 1.1 -0.379 0.0 1.2 -0.568 0.0 1.3 -0.757 0.0 = 1.4 -0.946 0.0 1.5 -1.135 0.0 1.6 -1.324 0.0 1.7 -1.513 0.0 1.8 -1.702 = 0.0 1.9 -1.891 0.0=20 -2 4.72 0.0 -1.9 4.564 0.0 -1.8 4.408 0.0 -1.7 4.252 0.0 -1.6 4.096 0.0 = -1.5 3.94 0.0 -1.4 3.784 0.0 -1.3 3.628 0.0 -1.2 3.472 0.0 -1.1 3.316 = 0.0 -1 3.16 0.0 -0.9 3.004 0.0 -0.8 2.848 0.0 -0.7 2.692 0.0 -0.6 2.536 = 0.0 -0.5 2.38 0.0 -0.4 2.224 0.0 -0.3 2.068 0.0 -0.2 1.912 0.0 -0.1 = 1.756 0.0 6.38378e-16 1.6 0.0 0.1 1.444 0.0 0.2 1.288 0.0 0.3 1.132 0.0 = 0.4 0.976 0.0 0.5 0.82 0.0 0.6 0.664 0.0 0.7 0.508 0.0 0.8 0.352 0.0 0.9 = 0.196 0.0 1 0.04 0.0 1.1 -0.116 0.0 1.2 -0.272 0.0 1.3 -0.428 0.0 1.4 = -0.584 0.0 1.5 -0.74 0.0 1.6 -0.896 0.0 1.7 -1.052 0.0 1.8 -1.208 0.0 = 1.9 -1.364 0.0=20 -2 4 0.0 -1.9 3.875 0.0 -1.8 3.75 0.0 -1.7 3.625 0.0 -1.6 3.5 0.0 -1.5 = 3.375 0.0 -1.4 3.25 0.0 -1.3 3.125 0.0 -1.2 3 0.0 -1.1 2.875 0.0 -1 2.75 = 0.0 -0.9 2.625 0.0 -0.8 2.5 0.0 -0.7 2.375 0.0 -0.6 2.25 0.0 -0.5 2.125 = 0.0 -0.4 2 0.0 -0.3 1.875 0.0 -0.2 1.75 0.0 -0.1 1.625 0.0 6.38378e-16 = 1.5 0.0 0.1 1.375 0.0 0.2 1.25 0.0 0.3 1.125 0.0 0.4 1 0.0 0.5 0.875 0.0 = 0.6 0.75 0.0 0.7 0.625 0.0 0.8 0.5 0.0 0.9 0.375 0.0 1 0.25 0.0 1.1 = 0.125 0.0 1.2 9.99634e-17 0.0 1.3 -0.125 0.0 1.4 -0.25 0.0 1.5 -0.375 = 0.0 1.6 -0.5 0.0 1.7 -0.625 0.0 1.8 -0.75 0.0 1.9 -0.875 0.0=20 -2 3.32 0.0 -1.9 3.224 0.0 -1.8 3.128 0.0 -1.7 3.032 0.0 -1.6 2.936 0.0 = -1.5 2.84 0.0 -1.4 2.744 0.0 -1.3 2.648 0.0 -1.2 2.552 0.0 -1.1 2.456 = 0.0 -1 2.36 0.0 -0.9 2.264 0.0 -0.8 2.168 0.0 -0.7 2.072 0.0 -0.6 1.976 = 0.0 -0.5 1.88 0.0 -0.4 1.784 0.0 -0.3 1.688 0.0 -0.2 1.592 0.0 -0.1 = 1.496 0.0 6.38378e-16 1.4 0.0 0.1 1.304 0.0 0.2 1.208 0.0 0.3 1.112 0.0 = 0.4 1.016 0.0 0.5 0.92 0.0 0.6 0.824 0.0 0.7 0.728 0.0 0.8 0.632 0.0 0.9 = 0.536 0.0 1 0.44 0.0 1.1 0.344 0.0 1.2 0.248 0.0 1.3 0.152 0.0 1.4 0.056 = 0.0 1.5 -0.04 0.0 1.6 -0.136 0.0 1.7 -0.232 0.0 1.8 -0.328 0.0 1.9 = -0.424 0.0=20 -2 2.68 0.0 -1.9 2.611 0.0 -1.8 2.542 0.0 -1.7 2.473 0.0 -1.6 2.404 0.0 = -1.5 2.335 0.0 -1.4 2.266 0.0 -1.3 2.197 0.0 -1.2 2.128 0.0 -1.1 2.059 = 0.0 -1 1.99 0.0 -0.9 1.921 0.0 -0.8 1.852 0.0 -0.7 1.783 0.0 -0.6 1.714 = 0.0 -0.5 1.645 0.0 -0.4 1.576 0.0 -0.3 1.507 0.0 -0.2 1.438 0.0 -0.1 = 1.369 0.0 6.38378e-16 1.3 0.0 0.1 1.231 0.0 0.2 1.162 0.0 0.3 1.093 0.0 = 0.4 1.024 0.0 0.5 0.955 0.0 0.6 0.886 0.0 0.7 0.817 0.0 0.8 0.748 0.0 = 0.9 0.679 0.0 1 0.61 0.0 1.1 0.541 0.0 1.2 0.472 0.0 1.3 0.403 0.0 1.4 = 0.334 0.0 1.5 0.265 0.0 1.6 0.196 0.0 1.7 0.127 0.0 1.8 0.058 0.0 1.9 = -0.011 0.0=20 -2 2.08 0.0 -1.9 2.036 0.0 -1.8 1.992 0.0 -1.7 1.948 0.0 -1.6 1.904 0.0 = -1.5 1.86 0.0 -1.4 1.816 0.0 -1.3 1.772 0.0 -1.2 1.728 0.0 -1.1 1.684 = 0.0 -1 1.64 0.0 -0.9 1.596 0.0 -0.8 1.552 0.0 -0.7 1.508 0.0 -0.6 1.464 = 0.0 -0.5 1.42 0.0 -0.4 1.376 0.0 -0.3 1.332 0.0 -0.2 1.288 0.0 -0.1 = 1.244 0.0 6.38378e-16 1.2 0.0 0.1 1.156 0.0 0.2 1.112 0.0 0.3 1.068 0.0 = 0.4 1.024 0.0 0.5 0.98 0.0 0.6 0.936 0.0 0.7 0.892 0.0 0.8 0.848 0.0 0.9 = 0.804 0.0 1 0.76 0.0 1.1 0.716 0.0 1.2 0.672 0.0 1.3 0.628 0.0 1.4 0.584 = 0.0 1.5 0.54 0.0 1.6 0.496 0.0 1.7 0.452 0.0 1.8 0.408 0.0 1.9 0.364 0.0 = -2 1.52 0.0 -1.9 1.499 0.0 -1.8 1.478 0.0 -1.7 1.457 0.0 -1.6 1.436 0.0 = -1.5 1.415 0.0 -1.4 1.394 0.0 -1.3 1.373 0.0 -1.2 1.352 0.0 -1.1 1.331 = 0.0 -1 1.31 0.0 -0.9 1.289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843 0.0 -0.2 0.862 0.0 -0.1 = 0.881 0.0 6.38378e-16 0.9 0.0 0.1 0.919 0.0 0.2 0.938 0.0 0.3 0.957 0.0 = 0.4 0.976 0.0 0.5 0.995 0.0 0.6 1.014 0.0 0.7 1.033 0.0 0.8 1.052 0.0 = 0.9 1.071 0.0 1 1.09 0.0 1.1 1.109 0.0 1.2 1.128 0.0 1.3 1.147 0.0 1.4 = 1.166 0.0 1.5 1.185 0.0 1.6 1.204 0.0 1.7 1.223 0.0 1.8 1.242 0.0 1.9 = 1.261 0.0=20 -2 0.08 0.0 -1.9 0.116 0.0 -1.8 0.152 0.0 -1.7 0.188 0.0 -1.6 0.224 0.0 = -1.5 0.26 0.0 -1.4 0.296 0.0 -1.3 0.332 0.0 -1.2 0.368 0.0 -1.1 0.404 = 0.0 -1 0.44 0.0 -0.9 0.476 0.0 -0.8 0.512 0.0 -0.7 0.548 0.0 -0.6 0.584 = 0.0 -0.5 0.62 0.0 -0.4 0.656 0.0 -0.3 0.692 0.0 -0.2 0.728 0.0 -0.1 = 0.764 0.0 6.38378e-16 0.8 0.0 0.1 0.836 0.0 0.2 0.872 0.0 0.3 0.908 0.0 = 0.4 0.944 0.0 0.5 0.98 0.0 0.6 1.016 0.0 0.7 1.052 0.0 0.8 1.088 0.0 0.9 = 1.124 0.0 1 1.16 0.0 1.1 1.196 0.0 1.2 1.232 0.0 1.3 1.268 0.0 1.4 1.304 = 0.0 1.5 1.34 0.0 1.6 1.376 0.0 1.7 1.412 0.0 1.8 1.448 0.0 1.9 1.484 0.0 = -2 -0.32 0.0 -1.9 -0.269 0.0 -1.8 -0.218 0.0 -1.7 -0.167 0.0 -1.6 -0.116 = 0.0 -1.5 -0.065 0.0 -1.4 -0.014 0.0 -1.3 0.037 0.0 -1.2 0.088 0.0 -1.1 = 0.139 0.0 -1 0.19 0.0 -0.9 0.241 0.0 -0.8 0.292 0.0 -0.7 0.343 0.0 -0.6 = 0.394 0.0 -0.5 0.445 0.0 -0.4 0.496 0.0 -0.3 0.547 0.0 -0.2 0.598 0.0 = -0.1 0.649 0.0 6.38378e-16 0.7 0.0 0.1 0.751 0.0 0.2 0.802 0.0 0.3 0.853 = 0.0 0.4 0.904 0.0 0.5 0.955 0.0 0.6 1.006 0.0 0.7 1.057 0.0 0.8 1.108 = 0.0 0.9 1.159 0.0 1 1.21 0.0 1.1 1.261 0.0 1.2 1.312 0.0 1.3 1.363 0.0 = 1.4 1.414 0.0 1.5 1.465 0.0 1.6 1.516 0.0 1.7 1.567 0.0 1.8 1.618 0.0 = 1.9 1.669 0.0=20 -2 -0.68 0.0 -1.9 -0.616 0.0 -1.8 -0.552 0.0 -1.7 -0.488 0.0 -1.6 -0.424 = 0.0 -1.5 -0.36 0.0 -1.4 -0.296 0.0 -1.3 -0.232 0.0 -1.2 -0.168 0.0 -1.1 = -0.104 0.0 -1 -0.04 0.0 -0.9 0.024 0.0 -0.8 0.088 0.0 -0.7 0.152 0.0 = -0.6 0.216 0.0 -0.5 0.28 0.0 -0.4 0.344 0.0 -0.3 0.408 0.0 -0.2 0.472 = 0.0 -0.1 0.536 0.0 6.38378e-16 0.6 0.0 0.1 0.664 0.0 0.2 0.728 0.0 0.3 = 0.792 0.0 0.4 0.856 0.0 0.5 0.92 0.0 0.6 0.984 0.0 0.7 1.048 0.0 0.8 = 1.112 0.0 0.9 1.176 0.0 1 1.24 0.0 1.1 1.304 0.0 1.2 1.368 0.0 1.3 1.432 = 0.0 1.4 1.496 0.0 1.5 1.56 0.0 1.6 1.624 0.0 1.7 1.688 0.0 1.8 1.752 0.0 = 1.9 1.816 0.0=20 -2 -1 0.0 -1.9 -0.925 0.0 -1.8 -0.85 0.0 -1.7 -0.775 0.0 -1.6 -0.7 0.0 = -1.5 -0.625 0.0 -1.4 -0.55 0.0 -1.3 -0.475 0.0 -1.2 -0.4 0.0 -1.1 -0.325 = 0.0 -1 -0.25 0.0 -0.9 -0.175 0.0 -0.8 -0.1 0.0 -0.7 -0.025 0.0 -0.6 0.05 = 0.0 -0.5 0.125 0.0 -0.4 0.2 0.0 -0.3 0.275 0.0 -0.2 0.35 0.0 -0.1 0.425 = 0.0 6.38378e-16 0.5 0.0 0.1 0.575 0.0 0.2 0.65 0.0 0.3 0.725 0.0 0.4 0.8 = 0.0 0.5 0.875 0.0 0.6 0.95 0.0 0.7 1.025 0.0 0.8 1.1 0.0 0.9 1.175 0.0 1 = 1.25 0.0 1.1 1.325 0.0 1.2 1.4 0.0 1.3 1.475 0.0 1.4 1.55 0.0 1.5 1.625 = 0.0 1.6 1.7 0.0 1.7 1.775 0.0 1.8 1.85 0.0 1.9 1.925 0.0=20 -2 -1.28 0.0 -1.9 -1.196 0.0 -1.8 -1.112 0.0 -1.7 -1.028 0.0 -1.6 -0.944 = 0.0 -1.5 -0.86 0.0 -1.4 -0.776 0.0 -1.3 -0.692 0.0 -1.2 -0.608 0.0 -1.1 = -0.524 0.0 -1 -0.44 0.0 -0.9 -0.356 0.0 -0.8 -0.272 0.0 -0.7 -0.188 0.0 = -0.6 -0.104 0.0 -0.5 -0.02 0.0 -0.4 0.064 0.0 -0.3 0.148 0.0 -0.2 0.232 = 0.0 -0.1 0.316 0.0 6.38378e-16 0.4 0.0 0.1 0.484 0.0 0.2 0.568 0.0 0.3 = 0.652 0.0 0.4 0.736 0.0 0.5 0.82 0.0 0.6 0.904 0.0 0.7 0.988 0.0 0.8 = 1.072 0.0 0.9 1.156 0.0 1 1.24 0.0 1.1 1.324 0.0 1.2 1.408 0.0 1.3 1.492 = 0.0 1.4 1.576 0.0 1.5 1.66 0.0 1.6 1.744 0.0 1.7 1.828 0.0 1.8 1.912 0.0 = 1.9 1.996 0.0=20 -2 -1.52 0.0 -1.9 -1.429 0.0 -1.8 -1.338 0.0 -1.7 -1.247 0.0 -1.6 -1.156 = 0.0 -1.5 -1.065 0.0 -1.4 -0.974 0.0 -1.3 -0.883 0.0 -1.2 -0.792 0.0 -1.1 = -0.701 0.0 -1 -0.61 0.0 -0.9 -0.519 0.0 -0.8 -0.428 0.0 -0.7 -0.337 0.0 = -0.6 -0.246 0.0 -0.5 -0.155 0.0 -0.4 -0.064 0.0 -0.3 0.027 0.0 -0.2 = 0.118 0.0 -0.1 0.209 0.0 6.38378e-16 0.3 0.0 0.1 0.391 0.0 0.2 0.482 0.0 = 0.3 0.573 0.0 0.4 0.664 0.0 0.5 0.755 0.0 0.6 0.846 0.0 0.7 0.937 0.0 = 0.8 1.028 0.0 0.9 1.119 0.0 1 1.21 0.0 1.1 1.301 0.0 1.2 1.392 0.0 1.3 = 1.483 0.0 1.4 1.574 0.0 1.5 1.665 0.0 1.6 1.756 0.0 1.7 1.847 0.0 1.8 = 1.938 0.0 1.9 2.029 0.0=20 -2 -1.72 0.0 -1.9 -1.624 0.0 -1.8 -1.528 0.0 -1.7 -1.432 0.0 -1.6 -1.336 = 0.0 -1.5 -1.24 0.0 -1.4 -1.144 0.0 -1.3 -1.048 0.0 -1.2 -0.952 0.0 -1.1 = -0.856 0.0 -1 -0.76 0.0 -0.9 -0.664 0.0 -0.8 -0.568 0.0 -0.7 -0.472 0.0 = -0.6 -0.376 0.0 -0.5 -0.28 0.0 -0.4 -0.184 0.0 -0.3 -0.088 0.0 -0.2 = 0.008 0.0 -0.1 0.104 0.0 6.38378e-16 0.2 0.0 0.1 0.296 0.0 0.2 0.392 0.0 = 0.3 0.488 0.0 0.4 0.584 0.0 0.5 0.68 0.0 0.6 0.776 0.0 0.7 0.872 0.0 0.8 = 0.968 0.0 0.9 1.064 0.0 1 1.16 0.0 1.1 1.256 0.0 1.2 1.352 0.0 1.3 1.448 = 0.0 1.4 1.544 0.0 1.5 1.64 0.0 1.6 1.736 0.0 1.7 1.832 0.0 1.8 1.928 0.0 = 1.9 2.024 0.0=20 -2 -1.88 0.0 -1.9 -1.781 0.0 -1.8 -1.682 0.0 -1.7 -1.583 0.0 -1.6 -1.484 = 0.0 -1.5 -1.385 0.0 -1.4 -1.286 0.0 -1.3 -1.187 0.0 -1.2 -1.088 0.0 -1.1 = -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.3 -1.387 0.0 -1.2 -1.288 0.0 -1.1 = -1.189 0.0 -1 -1.09 0.0 -0.9 -0.991 0.0 -0.8 -0.892 0.0 -0.7 -0.793 0.0 = -0.6 -0.694 0.0 -0.5 -0.595 0.0 -0.4 -0.496 0.0 -0.3 -0.397 0.0 -0.2 = -0.298 0.0 -0.1 -0.199 0.0 6.38378e-16 -0.1 0.0 0.1 -0.001 0.0 0.2 0.098 = 0.0 0.3 0.197 0.0 0.4 0.296 0.0 0.5 0.395 0.0 0.6 0.494 0.0 0.7 0.593 = 0.0 0.8 0.692 0.0 0.9 0.791 0.0 1 0.89 0.0 1.1 0.989 0.0 1.2 1.088 0.0 = 1.3 1.187 0.0 1.4 1.286 0.0 1.5 1.385 0.0 1.6 1.484 0.0 1.7 1.583 0.0 = 1.8 1.682 0.0 1.9 1.781 0.0=20 -2 -2.12 0.0 -1.9 -2.024 0.0 -1.8 -1.928 0.0 -1.7 -1.832 0.0 -1.6 -1.736 = 0.0 -1.5 -1.64 0.0 -1.4 -1.544 0.0 -1.3 -1.448 0.0 -1.2 -1.352 0.0 -1.1 = -1.256 0.0 -1 -1.16 0.0 -0.9 -1.064 0.0 -0.8 -0.968 0.0 -0.7 -0.872 0.0 = -0.6 -0.776 0.0 -0.5 -0.68 0.0 -0.4 -0.584 0.0 -0.3 -0.488 0.0 -0.2 = -0.392 0.0 -0.1 -0.296 0.0 6.38378e-16 -0.2 0.0 0.1 -0.104 0.0 0.2 = -0.008 0.0 0.3 0.088 0.0 0.4 0.184 0.0 0.5 0.28 0.0 0.6 0.376 0.0 0.7 = 0.472 0.0 0.8 0.568 0.0 0.9 0.664 0.0 1 0.76 0.0 1.1 0.856 0.0 1.2 0.952 = 0.0 1.3 1.048 0.0 1.4 1.144 0.0 1.5 1.24 0.0 1.6 1.336 0.0 1.7 1.432 0.0 = 1.8 1.528 0.0 1.9 1.624 0.0=20 -2 -2.12 0.0 -1.9 -2.029 0.0 -1.8 -1.938 0.0 -1.7 -1.847 0.0 -1.6 -1.756 = 0.0 -1.5 -1.665 0.0 -1.4 -1.574 0.0 -1.3 -1.483 0.0 -1.2 -1.392 0.0 -1.1 = -1.301 0.0 -1 -1.21 0.0 -0.9 -1.119 0.0 -0.8 -1.028 0.0 -0.7 -0.937 0.0 = -0.6 -0.846 0.0 -0.5 -0.755 0.0 -0.4 -0.664 0.0 -0.3 -0.573 0.0 -0.2 = -0.482 0.0 -0.1 -0.391 0.0 6.38378e-16 -0.3 0.0 0.1 -0.209 0.0 0.2 = -0.118 0.0 0.3 -0.027 0.0 0.4 0.064 0.0 0.5 0.155 0.0 0.6 0.246 0.0 0.7 = 0.337 0.0 0.8 0.428 0.0 0.9 0.519 0.0 1 0.61 0.0 1.1 0.701 0.0 1.2 0.792 = 0.0 1.3 0.883 0.0 1.4 0.974 0.0 1.5 1.065 0.0 1.6 1.156 0.0 1.7 1.247 = 0.0 1.8 1.338 0.0 1.9 1.429 0.0=20 -2 -2.08 0.0 -1.9 -1.996 0.0 -1.8 -1.912 0.0 -1.7 -1.828 0.0 -1.6 -1.744 = 0.0 -1.5 -1.66 0.0 -1.4 -1.576 0.0 -1.3 -1.492 0.0 -1.2 -1.408 0.0 -1.1 = -1.324 0.0 -1 -1.24 0.0 -0.9 -1.156 0.0 -0.8 -1.072 0.0 -0.7 -0.988 0.0 = -0.6 -0.904 0.0 -0.5 -0.82 0.0 -0.4 -0.736 0.0 -0.3 -0.652 0.0 -0.2 = -0.568 0.0 -0.1 -0.484 0.0 6.38378e-16 -0.4 0.0 0.1 -0.316 0.0 0.2 = -0.232 0.0 0.3 -0.148 0.0 0.4 -0.064 0.0 0.5 0.02 0.0 0.6 0.104 0.0 0.7 = 0.188 0.0 0.8 0.272 0.0 0.9 0.356 0.0 1 0.44 0.0 1.1 0.524 0.0 1.2 0.608 = 0.0 1.3 0.692 0.0 1.4 0.776 0.0 1.5 0.86 0.0 1.6 0.944 0.0 1.7 1.028 0.0 = 1.8 1.112 0.0 1.9 1.196 0.0=20 -2 -2 0.0 -1.9 -1.925 0.0 -1.8 -1.85 0.0 -1.7 -1.775 0.0 -1.6 -1.7 0.0 = -1.5 -1.625 0.0 -1.4 -1.55 0.0 -1.3 -1.475 0.0 -1.2 -1.4 0.0 -1.1 -1.325 = 0.0 -1 -1.25 0.0 -0.9 -1.175 0.0 -0.8 -1.1 0.0 -0.7 -1.025 0.0 -0.6 = -0.95 0.0 -0.5 -0.875 0.0 -0.4 -0.8 0.0 -0.3 -0.725 0.0 -0.2 -0.65 0.0 = -0.1 -0.575 0.0 6.38378e-16 -0.5 0.0 0.1 -0.425 0.0 0.2 -0.35 0.0 0.3 = -0.275 0.0 0.4 -0.2 0.0 0.5 -0.125 0.0 0.6 -0.05 0.0 0.7 0.025 0.0 0.8 = 0.1 0.0 0.9 0.175 0.0 1 0.25 0.0 1.1 0.325 0.0 1.2 0.4 0.0 1.3 0.475 0.0 = 1.4 0.55 0.0 1.5 0.625 0.0 1.6 0.7 0.0 1.7 0.775 0.0 1.8 0.85 0.0 1.9 = 0.925 0.0=20 -2 -1.88 0.0 -1.9 -1.816 0.0 -1.8 -1.752 0.0 -1.7 -1.688 0.0 -1.6 -1.624 = 0.0 -1.5 -1.56 0.0 -1.4 -1.496 0.0 -1.3 -1.432 0.0 -1.2 -1.368 0.0 -1.1 = -1.304 0.0 -1 -1.24 0.0 -0.9 -1.176 0.0 -0.8 -1.112 0.0 -0.7 -1.048 0.0 = -0.6 -0.984 0.0 -0.5 -0.92 0.0 -0.4 -0.856 0.0 -0.3 -0.792 0.0 -0.2 = -0.728 0.0 -0.1 -0.664 0.0 6.38378e-16 -0.6 0.0 0.1 -0.536 0.0 0.2 = -0.472 0.0 0.3 -0.408 0.0 0.4 -0.344 0.0 0.5 -0.28 0.0 0.6 -0.216 0.0 = 0.7 -0.152 0.0 0.8 -0.088 0.0 0.9 -0.024 0.0 1 0.04 0.0 1.1 0.104 0.0 = 1.2 0.168 0.0 1.3 0.232 0.0 1.4 0.296 0.0 1.5 0.36 0.0 1.6 0.424 0.0 1.7 = 0.488 0.0 1.8 0.552 0.0 1.9 0.616 0.0=20 -2 -1.72 0.0 -1.9 -1.669 0.0 -1.8 -1.618 0.0 -1.7 -1.567 0.0 -1.6 -1.516 = 0.0 -1.5 -1.465 0.0 -1.4 -1.414 0.0 -1.3 -1.363 0.0 -1.2 -1.312 0.0 -1.1 = -1.261 0.0 -1 -1.21 0.0 -0.9 -1.159 0.0 -0.8 -1.108 0.0 -0.7 -1.057 0.0 = -0.6 -1.006 0.0 -0.5 -0.955 0.0 -0.4 -0.904 0.0 -0.3 -0.853 0.0 -0.2 = -0.802 0.0 -0.1 -0.751 0.0 6.38378e-16 -0.7 0.0 0.1 -0.649 0.0 0.2 = -0.598 0.0 0.3 -0.547 0.0 0.4 -0.496 0.0 0.5 -0.445 0.0 0.6 -0.394 0.0 = 0.7 -0.343 0.0 0.8 -0.292 0.0 0.9 -0.241 0.0 1 -0.19 0.0 1.1 -0.139 0.0 = 1.2 -0.088 0.0 1.3 -0.037 0.0 1.4 0.014 0.0 1.5 0.065 0.0 1.6 0.116 0.0 = 1.7 0.167 0.0 1.8 0.218 0.0 1.9 0.269 0.0=20 -2 -1.52 0.0 -1.9 -1.484 0.0 -1.8 -1.448 0.0 -1.7 -1.412 0.0 -1.6 -1.376 = 0.0 -1.5 -1.34 0.0 -1.4 -1.304 0.0 -1.3 -1.268 0.0 -1.2 -1.232 0.0 -1.1 = -1.196 0.0 -1 -1.16 0.0 -0.9 -1.124 0.0 -0.8 -1.088 0.0 -0.7 -1.052 0.0 = -0.6 -1.016 0.0 -0.5 -0.98 0.0 -0.4 -0.944 0.0 -0.3 -0.908 0.0 -0.2 = -0.872 0.0 -0.1 -0.836 0.0 6.38378e-16 -0.8 0.0 0.1 -0.764 0.0 0.2 = -0.728 0.0 0.3 -0.692 0.0 0.4 -0.656 0.0 0.5 -0.62 0.0 0.6 -0.584 0.0 = 0.7 -0.548 0.0 0.8 -0.512 0.0 0.9 -0.476 0.0 1 -0.44 0.0 1.1 -0.404 0.0 = 1.2 -0.368 0.0 1.3 -0.332 0.0 1.4 -0.296 0.0 1.5 -0.26 0.0 1.6 -0.224 = 0.0 1.7 -0.188 0.0 1.8 -0.152 0.0 1.9 -0.116 0.0=20 -2 -1.28 0.0 -1.9 -1.261 0.0 -1.8 -1.242 0.0 -1.7 -1.223 0.0 -1.6 -1.204 = 0.0 -1.5 -1.185 0.0 -1.4 -1.166 0.0 -1.3 -1.147 0.0 -1.2 -1.128 0.0 -1.1 = -1.109 0.0 -1 -1.09 0.0 -0.9 -1.071 0.0 -0.8 -1.052 0.0 -0.7 -1.033 0.0 = -0.6 -1.014 0.0 -0.5 -0.995 0.0 -0.4 -0.976 0.0 -0.3 -0.957 0.0 -0.2 = -0.938 0.0 -0.1 -0.919 0.0 6.38378e-16 -0.9 0.0 0.1 -0.881 0.0 0.2 = -0.862 0.0 0.3 -0.843 0.0 0.4 -0.824 0.0 0.5 -0.805 0.0 0.6 -0.786 0.0 = 0.7 -0.767 0.0 0.8 -0.748 0.0 0.9 -0.729 0.0 1 -0.71 0.0 1.1 -0.691 0.0 = 1.2 -0.672 0.0 1.3 -0.653 0.0 1.4 -0.634 0.0 1.5 -0.615 0.0 1.6 -0.596 = 0.0 1.7 -0.577 0.0 1.8 -0.558 0.0 1.9 -0.539 0.0=20 -2 -1 0.0 -1.9 -1 0.0 -1.8 -1 0.0 -1.7 -1 0.0 -1.6 -1 0.0 -1.5 -1 0.0 = -1.4 -1 0.0 -1.3 -1 0.0 -1.2 -1 0.0 -1.1 -1 0.0 -1 -1 0.0 -0.9 -1 0.0 = -0.8 -1 0.0 -0.7 -1 0.0 -0.6 -1 0.0 -0.5 -1 0.0 -0.4 -1 0.0 -0.3 -1 0.0 = -0.2 -1 0.0 -0.1 -1 0.0 6.38378e-16 -1 0.0 0.1 -1 0.0 0.2 -1 0.0 0.3 -1 = 0.0 0.4 -1 0.0 0.5 -1 0.0 0.6 -1 0.0 0.7 -1 0.0 0.8 -1 0.0 0.9 -1 0.0 1 = -1 0.0 1.1 -1 0.0 1.2 -1 0.0 1.3 -1 0.0 1.4 -1 0.0 1.5 -1 0.0 1.6 -1 0.0 = 1.7 -1 0.0 1.8 -1 0.0 1.9 -1 0.0=20 -2 -0.68 0.0 -1.9 -0.701 0.0 -1.8 -0.722 0.0 -1.7 -0.743 0.0 -1.6 -0.764 = 0.0 -1.5 -0.785 0.0 -1.4 -0.806 0.0 -1.3 -0.827 0.0 -1.2 -0.848 0.0 -1.1 = -0.869 0.0 -1 -0.89 0.0 -0.9 -0.911 0.0 -0.8 -0.932 0.0 -0.7 -0.953 0.0 = -0.6 -0.974 0.0 -0.5 -0.995 0.0 -0.4 -1.016 0.0 -0.3 -1.037 0.0 -0.2 = -1.058 0.0 -0.1 -1.079 0.0 6.38378e-16 -1.1 0.0 0.1 -1.121 0.0 0.2 = -1.142 0.0 0.3 -1.163 0.0 0.4 -1.184 0.0 0.5 -1.205 0.0 0.6 -1.226 0.0 = 0.7 -1.247 0.0 0.8 -1.268 0.0 0.9 -1.289 0.0 1 -1.31 0.0 1.1 -1.331 0.0 = 1.2 -1.352 0.0 1.3 -1.373 0.0 1.4 -1.394 0.0 1.5 -1.415 0.0 1.6 -1.436 = 0.0 1.7 -1.457 0.0 1.8 -1.478 0.0 1.9 -1.499 0.0=20 -2 -0.32 0.0 -1.9 -0.364 0.0 -1.8 -0.408 0.0 -1.7 -0.452 0.0 -1.6 -0.496 = 0.0 -1.5 -0.54 0.0 -1.4 -0.584 0.0 -1.3 -0.628 0.0 -1.2 -0.672 0.0 -1.1 = -0.716 0.0 -1 -0.76 0.0 -0.9 -0.804 0.0 -0.8 -0.848 0.0 -0.7 -0.892 0.0 = -0.6 -0.936 0.0 -0.5 -0.98 0.0 -0.4 -1.024 0.0 -0.3 -1.068 0.0 -0.2 = -1.112 0.0 -0.1 -1.156 0.0 6.38378e-16 -1.2 0.0 0.1 -1.244 0.0 0.2 = -1.288 0.0 0.3 -1.332 0.0 0.4 -1.376 0.0 0.5 -1.42 0.0 0.6 -1.464 0.0 = 0.7 -1.508 0.0 0.8 -1.552 0.0 0.9 -1.596 0.0 1 -1.64 0.0 1.1 -1.684 0.0 = 1.2 -1.728 0.0 1.3 -1.772 0.0 1.4 -1.816 0.0 1.5 -1.86 0.0 1.6 -1.904 = 0.0 1.7 -1.948 0.0 1.8 -1.992 0.0 1.9 -2.036 0.0=20 -2 0.08 0.0 -1.9 0.011 0.0 -1.8 -0.058 0.0 -1.7 -0.127 0.0 -1.6 -0.196 = 0.0 -1.5 -0.265 0.0 -1.4 -0.334 0.0 -1.3 -0.403 0.0 -1.2 -0.472 0.0 -1.1 = -0.541 0.0 -1 -0.61 0.0 -0.9 -0.679 0.0 -0.8 -0.748 0.0 -0.7 -0.817 0.0 = -0.6 -0.886 0.0 -0.5 -0.955 0.0 -0.4 -1.024 0.0 -0.3 -1.093 0.0 -0.2 = -1.162 0.0 -0.1 -1.231 0.0 6.38378e-16 -1.3 0.0 0.1 -1.369 0.0 0.2 = -1.438 0.0 0.3 -1.507 0.0 0.4 -1.576 0.0 0.5 -1.645 0.0 0.6 -1.714 0.0 = 0.7 -1.783 0.0 0.8 -1.852 0.0 0.9 -1.921 0.0 1 -1.99 0.0 1.1 -2.059 0.0 = 1.2 -2.128 0.0 1.3 -2.197 0.0 1.4 -2.266 0.0 1.5 -2.335 0.0 1.6 -2.404 = 0.0 1.7 -2.473 0.0 1.8 -2.542 0.0 1.9 -2.611 0.0=20 -2 0.52 0.0 -1.9 0.424 0.0 -1.8 0.328 0.0 -1.7 0.232 0.0 -1.6 0.136 0.0 = -1.5 0.04 0.0 -1.4 -0.056 0.0 -1.3 -0.152 0.0 -1.2 -0.248 0.0 -1.1 = -0.344 0.0 -1 -0.44 0.0 -0.9 -0.536 0.0 -0.8 -0.632 0.0 -0.7 -0.728 0.0 = -0.6 -0.824 0.0 -0.5 -0.92 0.0 -0.4 -1.016 0.0 -0.3 -1.112 0.0 -0.2 = -1.208 0.0 -0.1 -1.304 0.0 6.38378e-16 -1.4 0.0 0.1 -1.496 0.0 0.2 = -1.592 0.0 0.3 -1.688 0.0 0.4 -1.784 0.0 0.5 -1.88 0.0 0.6 -1.976 0.0 = 0.7 -2.072 0.0 0.8 -2.168 0.0 0.9 -2.264 0.0 1 -2.36 0.0 1.1 -2.456 0.0 = 1.2 -2.552 0.0 1.3 -2.648 0.0 1.4 -2.744 0.0 1.5 -2.84 0.0 1.6 -2.936 = 0.0 1.7 -3.032 0.0 1.8 -3.128 0.0 1.9 -3.224 0.0=20 -2 1 0.0 -1.9 0.875 0.0 -1.8 0.75 0.0 -1.7 0.625 0.0 -1.6 0.5 0.0 -1.5 = 0.375 0.0 -1.4 0.25 0.0 -1.3 0.125 0.0 -1.2 1.9984e-15 0.0 -1.1 -0.125 = 0.0 -1 -0.25 0.0 -0.9 -0.375 0.0 -0.8 -0.5 0.0 -0.7 -0.625 0.0 -0.6 = -0.75 0.0 -0.5 -0.875 0.0 -0.4 -1 0.0 -0.3 -1.125 0.0 -0.2 -1.25 0.0 = -0.1 -1.375 0.0 6.38378e-16 -1.5 0.0 0.1 -1.625 0.0 0.2 -1.75 0.0 0.3 = -1.875 0.0 0.4 -2 0.0 0.5 -2.125 0.0 0.6 -2.25 0.0 0.7 -2.375 0.0 0.8 = -2.5 0.0 0.9 -2.625 0.0 1 -2.75 0.0 1.1 -2.875 0.0 1.2 -3 0.0 1.3 -3.125 = 0.0 1.4 -3.25 0.0 1.5 -3.375 0.0 1.6 -3.5 0.0 1.7 -3.625 0.0 1.8 -3.75 = 0.0 1.9 -3.875 0.0=20 -2 1.52 0.0 -1.9 1.364 0.0 -1.8 1.208 0.0 -1.7 1.052 0.0 -1.6 0.896 0.0 = -1.5 0.74 0.0 -1.4 0.584 0.0 -1.3 0.428 0.0 -1.2 0.272 0.0 -1.1 0.116 = 0.0 -1 -0.04 0.0 -0.9 -0.196 0.0 -0.8 -0.352 0.0 -0.7 -0.508 0.0 -0.6 = -0.664 0.0 -0.5 -0.82 0.0 -0.4 -0.976 0.0 -0.3 -1.132 0.0 -0.2 -1.288 = 0.0 -0.1 -1.444 0.0 6.38378e-16 -1.6 0.0 0.1 -1.756 0.0 0.2 -1.912 0.0 = 0.3 -2.068 0.0 0.4 -2.224 0.0 0.5 -2.38 0.0 0.6 -2.536 0.0 0.7 -2.692 = 0.0 0.8 -2.848 0.0 0.9 -3.004 0.0 1 -3.16 0.0 1.1 -3.316 0.0 1.2 -3.472 = 0.0 1.3 -3.628 0.0 1.4 -3.784 0.0 1.5 -3.94 0.0 1.6 -4.096 0.0 1.7 = -4.252 0.0 1.8 -4.408 0.0 1.9 -4.564 0.0=20 -2 2.08 0.0 -1.9 1.891 0.0 -1.8 1.702 0.0 -1.7 1.513 0.0 -1.6 1.324 0.0 = -1.5 1.135 0.0 -1.4 0.946 0.0 -1.3 0.757 0.0 -1.2 0.568 0.0 -1.1 0.379 = 0.0 -1 0.19 0.0 -0.9 0.001 0.0 -0.8 -0.188 0.0 -0.7 -0.377 0.0 -0.6 = -0.566 0.0 -0.5 -0.755 0.0 -0.4 -0.944 0.0 -0.3 -1.133 0.0 -0.2 -1.322 = 0.0 -0.1 -1.511 0.0 6.38378e-16 -1.7 0.0 0.1 -1.889 0.0 0.2 -2.078 0.0 = 0.3 -2.267 0.0 0.4 -2.456 0.0 0.5 -2.645 0.0 0.6 -2.834 0.0 0.7 -3.023 = 0.0 0.8 -3.212 0.0 0.9 -3.401 0.0 1 -3.59 0.0 1.1 -3.779 0.0 1.2 -3.968 = 0.0 1.3 -4.157 0.0 1.4 -4.346 0.0 1.5 -4.535 0.0 1.6 -4.724 0.0 1.7 = -4.913 0.0 1.8 -5.102 0.0 1.9 -5.291 0.0=20 -2 2.68 0.0 -1.9 2.456 0.0 -1.8 2.232 0.0 -1.7 2.008 0.0 -1.6 1.784 0.0 = -1.5 1.56 0.0 -1.4 1.336 0.0 -1.3 1.112 0.0 -1.2 0.888 0.0 -1.1 0.664 = 0.0 -1 0.44 0.0 -0.9 0.216 0.0 -0.8 -0.008 0.0 -0.7 -0.232 0.0 -0.6 = -0.456 0.0 -0.5 -0.68 0.0 -0.4 -0.904 0.0 -0.3 -1.128 0.0 -0.2 -1.352 = 0.0 -0.1 -1.576 0.0 6.38378e-16 -1.8 0.0 0.1 -2.024 0.0 0.2 -2.248 0.0 = 0.3 -2.472 0.0 0.4 -2.696 0.0 0.5 -2.92 0.0 0.6 -3.144 0.0 0.7 -3.368 = 0.0 0.8 -3.592 0.0 0.9 -3.816 0.0 1 -4.04 0.0 1.1 -4.264 0.0 1.2 -4.488 = 0.0 1.3 -4.712 0.0 1.4 -4.936 0.0 1.5 -5.16 0.0 1.6 -5.384 0.0 1.7 = -5.608 0.0 1.8 -5.832 0.0 1.9 -6.056 0.0=20 -2 3.32 0.0 -1.9 3.059 0.0 -1.8 2.798 0.0 -1.7 2.537 0.0 -1.6 2.276 0.0 = -1.5 2.015 0.0 -1.4 1.754 0.0 -1.3 1.493 0.0 -1.2 1.232 0.0 -1.1 0.971 = 0.0 -1 0.71 0.0 -0.9 0.449 0.0 -0.8 0.188 0.0 -0.7 -0.073 0.0 -0.6 = -0.334 0.0 -0.5 -0.595 0.0 -0.4 -0.856 0.0 -0.3 -1.117 0.0 -0.2 -1.378 = 0.0 -0.1 -1.639 0.0 6.38378e-16 -1.9 0.0 0.1 -2.161 0.0 0.2 -2.422 0.0 = 0.3 -2.683 0.0 0.4 -2.944 0.0 0.5 -3.205 0.0 0.6 -3.466 0.0 0.7 -3.727 = 0.0 0.8 -3.988 0.0 0.9 -4.249 0.0 1 -4.51 0.0 1.1 -4.771 0.0 1.2 -5.032 = 0.0 1.3 -5.293 0.0 1.4 -5.554 0.0 1.5 -5.815 0.0 1.6 -6.076 0.0 1.7 = -6.337 0.0 1.8 -6.598 0.0 1.9 -6.859 0.0=20 ------=_NextPart_000_008A_01C27300.6DF62F80 Content-Type: application/octet-stream; name="stream.tcl" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="stream.tcl" package require vtk package require vtkinteraction ###### vtkStructuredPointsReader reader reader SetFileName "sem.vtk" ## glyph vtkGlyphSource2D arrow arrow SetGlyphTypeToArrow arrow SetScale .1 arrow FilledOff #vtkConeSource cone #cone SetResolution 1 vtkGlyph2D gl gl SetSource [arrow GetOutput] gl SetInput [reader GetOutput] gl SetScaleFactor 1 vtkHedgeHog gl1 gl1 SetInput [reader GetOutput] gl1 SetScaleFactor .1 vtkPolyDataMapper pdm1 pdm1 SetInput [gl1 GetOutput] vtkPolyDataMapper pdm pdm SetInput [gl GetOutput] vtkActor actorG vtkActor actorG1 actorG SetMapper pdm actorG1 SetMapper pdm1 vtkLineSource line line SetResolution 4 line SetPoint1 15 3 0 line SetPoint2 15 40 0 vtkPolyDataMapper linepdm linepdm SetInput [line GetOutput] vtkActor lineac lineac SetMapper linepdm ####### vtkRungeKutta2 integ set maxTime 140 vtkStreamLine streamers streamers SetInput [reader GetOutput ] streamers SetSource [line GetOutput ] streamers SetMaximumPropagationTime $maxTime streamers SetStepLength [ expr $maxTime / 500.0 ] #streamers SpeedScalarsOn #streamers VorticityOn #streamers SetIntegrationDirection 0; streamers SetIntegrationStepLength .1 streamers SetIntegrator integ vtkPolyDataMapper streamersMapper streamersMapper SetInput [ streamers GetOutput ] #eval streamersMapper SetScalarRange [[ reader GetOutput] GetScalarRange] vtkActor lines lines SetMapper streamersMapper ########################## vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin ren1 AddActor actorG ren1 AddActor actorG1 #ren1 AddActor lineac #ren1 AddActor lines ren1 SetBackground 0.0 0.0 0.0 renWin SetSize 500 250 iren Initialize iren AddObserver UserEvent {wm deiconify .vtkInteract} # Withdraw the default tk window. wm withdraw . ------=_NextPart_000_008A_01C27300.6DF62F80-- From sebastien.barre@kitware.com Sun Oct 13 20:44:04 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Sun, 13 Oct 2002 15:44:04 -0400 Subject: [vtkusers] Better vtkContourBar In-Reply-To: <3DA9BBA1.B02E6C89@caept.com> Message-ID: <5.1.1.6.0.20021013154214.01c35be8@pop.biz.rr.com> HI Ted I guess you meant vtkScalarBar instead of vtkContourBar. At 10/13/2002 02:29 PM, Ted Christiansen wrote: >Has anyone worked on a better contour bar? I am interested in one that >has better size/placement control, VTK (CVS) includes a very nice widget (vtkScalarBarWidget) that can be used to move the scalar bar anywhere, resize it in any direction, etc. >fixed font size (doesnt scale when >window changes size), I guess a flag could be added to the current class. Whatever option you choose, please try to use the new vtkTextProperty framework :) > and "smart" numerical precision when displaying >the values. What do you mean ? -- Sebastien Barre From mjack@noodle.med.yale.edu Mon Oct 14 00:54:08 2002 From: mjack@noodle.med.yale.edu (Marcel Jackowski) Date: Sun, 13 Oct 2002 18:54:08 -0500 (CDT) Subject: [vtkusers] VTK 4 nightly build Message-ID: Hello there, I've been trying to build VTK 4 under Win XP/MSVC++ 6.0, Cmake 1.4.5, Tcl/Tk 8.4 and get the following compile error: vtkCommonTCLInit.cxx C:\VTK4\Common\vtkCommonTCLInit.cxx(411) : error C2664 : 'Tcl_CreateCommand' : cannort convert parameter 3 from '(int (__cdecl *)(void *, struct Tcl_Interp *, int, char *[])' to '(int (__cdecl *)(void *, struct Tcl_Interp *, int const *[])' Line 411 is: TclCreateCommand(interp,(char *)"vtkCommand", reinterpret_cast(vtkCommand), (ClientData *)NULL, NULL); I already tried reinterpreting the C cast ClientData * into C++ but I could not get it to work. Has anyone had a problem like this before? Marcel. -- ------------------------------------------------------------------------- Marcel Jackowski, Ph.D. Postdoctoral Fellow Image Processing and Analysis Group (IPAG) Dept. of Diagnostic Radiology and Electrical Engineering Yale School of Medicine New Haven, CT 06520-8042 Phone: (203) 785-4910 e-mail: mjack@noodle.med.yale.edu Fax: (203) 737-4273 http://noodle.med.yale.edu/~mjack ------------------------------------------------------------------------- From sebastien.barre@kitware.com Mon Oct 14 00:35:09 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Sun, 13 Oct 2002 19:35:09 -0400 Subject: [vtkusers] VTK 4 nightly build In-Reply-To: Message-ID: <5.1.1.6.0.20021013193449.019e6ff8@pop.biz.rr.com> At 10/13/2002 07:54 PM, Marcel Jackowski wrote: >Hello there, > >I've been trying to build VTK 4 under Win XP/MSVC++ 6.0, Cmake 1.4.5, >Tcl/Tk 8.4 and get the following compile error: I finally made an entry for this one: 2.5. Does VTK support Tcl/Tk 8.4 ? http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq02.005.htp -- Sebastien Barre From philip@cd.co.uk Mon Oct 14 07:40:38 2002 From: philip@cd.co.uk (Philip Morris Jones) Date: Mon, 14 Oct 2002 07:40:38 +0100 Subject: [vtkusers] vtkProbeFilter misses some data points and adds others References: <008301c26f8b$5e951100$a0564ed5@romulus> Message-ID: <002301c2734c$9b7ec380$aa94c1c2@sally> Hi, After some investigation I found that I was defining wedges using the wrong handedness and this seemed to cause some points to miss and add some extra ones. Hope this helps others sometime ... Philip Philip M. Jones Fax: +44 (0)20 7471 6201 MA, MSc, MIMechE, CEng Tel: +44 (0)20 7471 6200 New Technology Consultant e-mail: philip@cd.co.uk From a.maclean@acfr.usyd.edu.au Mon Oct 14 07:52:32 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Mon, 14 Oct 2002 16:52:32 +1000 Subject: [vtkusers] Problem with surface reconstruction and contour filter in C++. Message-ID: <017401c2734e$4585b8b0$88d24e81@acfr.usyd.edu.au> This is a multi-part message in MIME format. ------=_NextPart_000_0175_01C273A2.1731C8B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using the latest nightly build (13-Oct-2002). I seem to be unable to reconstruct a surface using vtkSurfaceReconstructionFilter in C++ with the following code: // Filled a vtkPolyData structure with points from //$VTK_DATA_ROOT/Data/cactus.3337.pts. nPts = polyData->GetNumberOfPoints(); // A nPts = 3337 points polyData->GetBounds(bounds); polyData->Modified(); surf->SetInput( polyData ); surf->Update(); nPts = ((vtkDataSet * )surf->GetOutput())->GetNumberOfPoints(); // B nPts = 75760 points ((vtkDataSet * )surf->GetOutput())->GetBounds(bounds); // Contour at 0 to extract the surface. vtkContourFilter * cf = vtkContourFilter::New(); cf->SetInput( (vtkDataSet * )surf->GetOutput()); cf->SetValue(0,0.0); cf->Update(); nPts = cf->GetOutput()->GetNumberOfPoints(); // C nPts = 0 points cf->GetOutput()->GetBounds(bounds); // Sometimes the contouring algorithm can create a volume whose gradient // vector and ordering of polygon (using the right hand rule) are // inconsistent. vtkReverseSense cures this problem. vtkReverseSense * rev = vtkReverseSense::New(); rev->SetInput(cf->GetOutput()); rev->ReverseCellsOn(); rev->ReverseNormalsOn(); rev->Update(); polyData->DeepCopy(rev->GetOutput()); This is a translation of the TCL code in the example reconstructSurface.tcl. polyData is a vtkPolyData structure filled with points from the file $VTK_DATA_ROOT/Data/cactus.3337.pts nPts at point A has the value: 3337. At B, npts = 75760, which is expected as the surface has been constructed. However at C, nPts is zero and the bounds all have VTK_LARGE_FLOAT in them! The contour filter doesn't seem to be producing any output. One oddity now is that I have had to put in the type conversion (vtkDataSet * ) at the indicated points as a result of the VC7 compiler telling me: 'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1 from 'vtkImageData *' to 'vtkDataSet *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast I thought that vtkContourFilter takes any dataset (and this is supported by the documentation). This type conversion did not have to be specified in the older nightly builds ( before August). Another oddity is that the TCL example code works OK ( I am using TCL8.4.0). Can someone please help? 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/ ___________________________________________ ------=_NextPart_000_0175_01C273A2.1731C8B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using the latest nightly build = (13-Oct-2002).

 

I seem to be unable to reconstruct a surface using = vtkSurfaceReconstructionFilter in C++ with the following code:

 

// Filled a vtkPolyData structure with points from
//$VTK_DATA_ROOT/Data/cactus.3337.pts.

      nPts =3D polyData->GetNumberOfPoints();

      // A nPts =3D 3337 = points

      = polyData->GetBounds(bounds);

 

      = polyData->Modified();

      surf->SetInput( polyData );

      = surf->Update();

      nPts =3D ((vtkDataSet * = )surf->GetOutput())->GetNumberOfPoints();

      // B nPts =3D 75760 = points

      ((vtkDataSet * )surf->GetOutput())->GetBounds(bounds);

 

      // Contour at 0 to extract the = surface.

      vtkContourFilter * cf =3D vtkContourFilter::New();

      cf->SetInput( (vtkDataSet * )surf->GetOutput());

      = cf->SetValue(0,0.0);

      cf->Update();

      nPts =3D cf->GetOutput()->GetNumberOfPoints();

      // C nPts =3D 0 = points

      = cf->GetOutput()->GetBounds(bounds);

 

      // Sometimes the contouring = algorithm can create a volume whose gradient

      // vector and ordering of = polygon (using the right hand rule) are

      // inconsistent. = vtkReverseSense cures this problem. 

      vtkReverseSense * rev =3D vtkReverseSense::New();

      = rev->SetInput(cf->GetOutput());

      = rev->ReverseCellsOn();

      = rev->ReverseNormalsOn();

      rev->Update();

 

      = polyData->DeepCopy(rev->GetOutput());

 

 

This is a translation of the TCL code in the example = reconstructSurface.tcl.

polyData is a vtkPolyData structure filled with = points from the file $VTK_DATA_ROOT/Data/cactus.3337.pts

nPts at point A has the value: 3337. At B, npts =3D = 75760, which is expected as the surface

has been constructed. However at C, nPts is zero and = the bounds all have VTK_LARGE_FLOAT in them!

The contour filter doesn’t seem to be producing = any output.

One oddity now is that I have had to put in the type conversion (vtkDataSet * ) = at the indicated points as a result of the VC7 compiler telling me: =

'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1 from 'vtkImageData *' to 'vtkDataSet = *'

        = Types pointed to are unrelated; conversion requires reinterpret_cast, C-style = cast or function-style cast

 

I thought that vtkContourFilter takes any dataset = (and this is supported by the documentation).

This type conversion did not have to be specified in = the older nightly builds ( before August).

Another oddity is that the TCL example code works OK = ( I am using TCL8.4.0).

 

 

Can someone please help?

 

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/

 

___________________________________________

 

------=_NextPart_000_0175_01C273A2.1731C8B0-- From piotr.kozaczewski@power.alstom.com Mon Oct 14 11:44:39 2002 From: piotr.kozaczewski@power.alstom.com (piotr.kozaczewski@power.alstom.com) Date: Mon, 14 Oct 2002 12:44:39 +0200 Subject: [vtkusers] VTK4.0 and Tcl/Tk_8.0: Tcl Stubs under Cygwin Message-ID: Dear VTK Users. I am trying to build TCL Wrapping under cygwin (VTK4.0, WinNT4.0, cygwin, gcc 2.95.3-5, Tcl/Tk 8.0). After building *.a libraries and vtk.exe, the vtk.exe has ca. 18 MB. However, vtk.exe does not run, see messages below: Administrator@TE_LAPTOP /cygdrive/c/VTK/Graphics/Testing/Tcl $ echo $TCLLIBPATH c:/VTK/Wrapping/Tcl Administrator@TE_LAPTOP /cygdrive/c/VTK/Graphics/Testing/Tcl $ /cygdrive/c/VTK/bin/vtk disk.tcl ::vtk::load_component: vtkCommonTCL could not be found. Administrator@TE_LAPTOP /cygdrive/c/VTK/Graphics/Testing/Tcl $ I think, I should also build shared libs, but then the linker complains about missing Tcl stubs. My questions: 1) Is it possible to run (under cygwin) VTK Tcl examples without producing DLLs? Which way? 2) How to obtain libtclstub80.a and libtkstub80.a libraries? Thank you very much in advance, Piotr Kozaczewski From bruce_clay@qualia-computing.com Mon Oct 14 13:21:38 2002 From: bruce_clay@qualia-computing.com (Bruce Clay) Date: Mon, 14 Oct 2002 08:21:38 -0400 Subject: [vtkusers] 3D bar chart Message-ID: Is there any support built into VTK to generate 3D barcharts from = processing results? Thanks in advance Bruce Clay From G.Berenschot@student.tue.nl Mon Oct 14 14:14:44 2002 From: G.Berenschot@student.tue.nl (Berenschot, G.) Date: Mon, 14 Oct 2002 15:14:44 +0200 Subject: [vtkusers] color vtkTensorGlyph Message-ID: Dear vtkUsers, I have a problem with coloring vtkTensorGlyphs. The glyphs are created correctly, but the color of the glyps is always red. I create a structured point dataset with as attributes tensors and scalars(color). The attribute scalar data is an vtkUnsignedChar array which is the color that I want to give the glyphs. tensorPlane->GetPointData()->SetTensors(tensors); tensorPlane->GetPointData()->SetScalars(scalars); With this dataset I create the tensorglyphs. tensorGlyph->ColorGlyphsOn(); tensorGlyph->SetInput(tensorPlane); tensorGlyph->SetSource(cube->GetOutput()); tensorGlyph->SetScaleFactor(0.0015); Is there anybody who has an idea what is going wrong??? Kind regards, Guus From butler@ARL.ARMY.MIL Mon Oct 14 17:24:08 2002 From: butler@ARL.ARMY.MIL (Lee A. Butler) Date: Mon, 14 Oct 2002 12:24:08 -0400 (EDT) Subject: [vtkusers] Building with CMake? Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---2143346560-703030007-1034612648=:1526914 Content-Type: TEXT/PLAIN; charset=US-ASCII I'm still occasionally trying (wihtout success) to get VTK to build under MacOSX 10.2.1. I'm working from the CVS nightly source. This weekend I got an interesting error message. vtk_build> cmake -i ../VTK Would you like to see advanced options? [No]: Please wait while cmake processes CMakeLists.txt files.... failed to compile VTK extensions to CMake I have re-built CMake (also from the CVS nightly) but haven't found anything obvious to specify I want the VTK extensions. Can someone offer me the appropriate clue? As far as building VTK, at this point I'm just taking the defaults for the configuration. I've given up on any wrappings for now. I'm currently failing to build: /Users/butler/src/vtk_build/bin/libvtkRendering.dylib With the following error message: 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/butler/src/vtk_build/bin/libvtkRendering.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 In the faint hope that anyone can help, I've attached both my CMakeCache.txt and the actual compile line that produced the error above. Lee ---2143346560-703030007-1034612648=:1526914 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=compile_line Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: YysrICAtbXVsdGlwbHlfZGVmaW5lZCBzdXBwcmVzcyAtZnJhbWV3b3JrIENh cmJvbiAtZHluYW1pY2xpYiAtV25vLWRlcHJlY2F0ZWQNCi1mcGFzY2FsLXN0 cmluZ3MgLW8NCi9Vc2Vycy9idXRsZXIvc3JjL3Z0a19idWlsZC9iaW4vbGli dnRrUmVuZGVyaW5nLmR5bGliDQp2dGtBYnN0cmFjdE1hcHBlcjNELm8gdnRr QWJzdHJhY3RQaWNrZXIubyB2dGtBYnN0cmFjdFByb3BQaWNrZXIubyB2dGtB Y3Rvci5vDQp2dGtBY3RvckNvbGxlY3Rpb24ubyB2dGtBc3NlbWJseS5vIHZ0 a0F4aXNBY3RvcjJELm8gdnRrQ2FtZXJhLm8NCnZ0a0NlbGxQaWNrZXIubyB2 dGtDdWxsZXIubyB2dGtDdWxsZXJDb2xsZWN0aW9uLm8gdnRrRGF0YVNldE1h cHBlci5vDQp2dGtEaXJlY3Rpb25FbmNvZGVyLm8gdnRrRW5jb2RlZEdyYWRp ZW50RXN0aW1hdG9yLm8gdnRrRW5jb2RlZEdyYWRpZW50U2hhZGVyLm8NCnZ0 a0V4cG9ydGVyLm8gdnRrRmluaXRlRGlmZmVyZW5jZUdyYWRpZW50RXN0aW1h dG9yLm8gdnRrRm9sbG93ZXIubw0KdnRrRnJ1c3R1bUNvdmVyYWdlQ3VsbGVy Lm8gdnRrR2VuZXJpY1JlbmRlcldpbmRvd0ludGVyYWN0b3Iubw0KdnRrR3Jh cGhpY3NGYWN0b3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HZ0a0dyYXBoaWNzDQot bHZ0a0ltYWdpbmcgLWxHTFUgLWxHTCAtbFgxMSAtbFhleHQgLWx2dGtmdGds IC1sdnRrZnJlZXR5cGUgLWx2dGtGaWx0ZXJpbmcNCi1sdnRrQ29tbW9uIC1s WGV4dCAtbFgxMSAtbEdMVSAtbEdMIC1scHRocmVhZCAtbG0gDQo= ---2143346560-703030007-1034612648=:1526914 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="CMakeCache.txt" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: IyBUaGlzIGlzIHRoZSBDTWFrZUNhY2hlIGZpbGUuDQojIEZvciBidWlsZCBp biBkaXJlY3Rvcnk6IC9Vc2Vycy9idXRsZXIvc3JjL3Z0a19idWlsZA0KIyBZ b3UgY2FuIGVkaXQgdGhpcyBmaWxlIHRvIGNoYW5nZSB2YWx1ZXMgZm91bmQg YW5kIHVzZWQgYnkgY21ha2UuDQojIElmIHlvdSBkbyBub3Qgd2FudCB0byBj aGFuZ2UgYW55IG9mIHRoZSB2YWx1ZXMsIHNpbXBseSBleGl0IHRoZSBlZGl0 b3IuDQojIElmIHlvdSBkbyB3YW50IHRvIGNoYW5nZSBhIHZhbHVlLCBzaW1w bHkgZWRpdCwgc2F2ZSwgYW5kIGV4aXQgdGhlIGVkaXRvci4NCiMgVGhlIHN5 bnRheCBmb3IgdGhlIGZpbGUgaXMgYXMgZm9sbG93czoNCiMgS0VZOlRZUEU9 VkFMVUUNCiMgS0VZIGlzIHRoZSBuYW1lIG9mIGEgdmFyaWJsZSBpbiB0aGUg Y2FjaGUuDQojIFRZUEUgaXMgYSBoaW50IHRvIEdVSSdzIGZvciB0aGUgdHlw ZSBvZiBWQUxVRSwgRE8gTk9UIEVESVQgVFlQRSEuDQojIFZBTFVFIGlzIHRo ZSBjdXJyZW50IHZhbHVlIGZvciB0aGUgS0VZLg0KDQojIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMNCiMgRVhURVJOQUwgY2FjaGUgZW50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mFyeQ0KdnRremxpYl9DTUFLRV9QQVRIOklO VEVSTkFMPS9Vc2Vycy9idXRsZXIvc3JjL3Z0a19idWlsZC9VdGlsaXRpZXMv emxpYg0KLy9XaGV0aGVyIGEgbGlicmFyeSBpcyBzdGF0aWMsIHNoYXJlZCBv ciBtb2R1bGUuDQp2dGt6bGliX0xJQlJBUllfVFlQRTpJTlRFUk5BTD1TSEFS RUQNCg0K ---2143346560-703030007-1034612648=:1526914-- From p.cook@cs.ucl.ac.uk Mon Oct 14 17:54:24 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 14 Oct 2002 17:54:24 +0100 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1338 - 4 msgs In-Reply-To: <20021014162701.29137.75936.Mailman@public.kitware.com> References: <20021014162701.29137.75936.Mailman@public.kitware.com> Message-ID: <1034614465.11847.58.camel@maraca.cs.ucl.ac.uk> > Message: 3 > From: "Berenschot, G." > To: "'vtkusers@public.kitware.com'" > Date: Mon, 14 Oct 2002 15:14:44 +0200 > Subject: [vtkusers] color vtkTensorGlyph > > Dear vtkUsers, > > I have a problem with coloring vtkTensorGlyphs. The glyphs are created > correctly, but the color of the glyps is always red. I create a structured > point dataset with as attributes tensors and scalars(color). The attribute > scalar data is an vtkUnsignedChar array which is the color that I want to > give the glyphs. > > tensorPlane->GetPointData()->SetTensors(tensors); > tensorPlane->GetPointData()->SetScalars(scalars); > > With this dataset I create the tensorglyphs. > > tensorGlyph->ColorGlyphsOn(); > tensorGlyph->SetInput(tensorPlane); > tensorGlyph->SetSource(cube->GetOutput()); > tensorGlyph->SetScaleFactor(0.0015); Did you tell the mapper the scalar range? vtkPolyDataMapper mapper = vtkPolyDataMapper::New(); mapper->SetInput(tensorGlyph->GetOutput()); mapper->SetScalarRange(minScalar, maxScalar); Phil From John Biddiscombe" Message-ID: <002401c273a6$3a114190$0100a8c0@tigger> > 'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1 from > 'vtkImageData *' to 'vtkDataSet *' > > Types pointed to are unrelated; conversion requires > reinterpret_cast, C-style cast or function-style cast Recent cleanups of all the vtk classes have removed #include "stuff.h" from many headers and you obviously haven't got a #include "vtkImageData.h" statement at the top of your file. Hence the compiler doesn't know it's a subclass of vtkDataSet. All the headers just state class vtkImageData; now so you need to add it. It's a pain, but it make the build process cleaner and faster (and it;s the right thing to do really) JB From rudi@yeah.co.at Mon Oct 14 19:42:53 2002 From: rudi@yeah.co.at (rudi@yeah.co.at) Date: Mon, 14 Oct 2002 20:42:53 +0200 Subject: [vtkusers] howto support a new file format Message-ID: <200210142042.53569.rudi@yeah.co.at> Hey out there! I want to implement a new reader of a non-commercial volume file format n= amed "f3d" and provide it as VTK class. I know the coding guideline and I am trying to do it all in VTK's types. But I am still missing some generic functions / templates / macros. So where do I find functions / macros / templates similar to these: #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef ABS #define ABS(a) (((a) > 0) ? (a) : -(a)) #endif // unit type enum UnitType{ f3dUum =3D 1,=09=09=09/* micrometers */ f3dUmm,=09=09=09/* millimeters */ f3dUm=09=09=09/* meters */ }; enum EndianType { =09f3dBigEndian =3D 1, =09f3dLittleEndian }; and conversion routines. I have all these but I want to replace it with vtk-proper functions. With kind regards Rudi ------------------------------------------------------- From yanjunxu@umich.edu Mon Oct 14 20:20:59 2002 From: yanjunxu@umich.edu (Xu, Yanjun) Date: Mon, 14 Oct 2002 15:20:59 -0400 Subject: [vtkusers] cmake configure error for VTK on Solaris 8 Message-ID: <2449F3F867FBD211936600C04F68569E012E2926@smhrimsx.mhri.med.umich.edu> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C273B6.D39BF250 Content-Type: text/plain; charset="iso-8859-1" Hi, Dear All, When I run ccmake for VTK on Solaris 8, I got the following error. Could anybody help me with this? Thanks a lot. Sincerely, Yanjun Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 Determining if the function gethostbyname exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=gethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file gethostbyname CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the function connect exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -DCHECK_FUNCTION_EXISTS=connect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o gcc CheckFunctionExists.o -o cmTryCompileExec Undefined first referenced symbol in file connect CheckFunctionExists.o ld: fatal: Symbol referencing errors. No output written to cmTryCompileExec collect2: ld returned 1 exit status make: *** [cmTryCompileExec] Error 1 Determining if the include file sys/prctl.h exists failed with the following output: gcc -I/zubhome1/ResearchSources/VTK-build/CMakeTmp -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c:1:23: sys/prctl.h: No such file or directory make: *** [CheckIncludeFile.o] Error 1 ------_=_NextPart_001_01C273B6.D39BF250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi, Dear All,

 

When I run ccmake for = VTK on Solaris 8, I got the following error. Could anybody help me with this? = Thanks a lot.

 

Sincerely,

Yanjun=

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctio= nExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0 =A0-c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o = CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o = CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o = CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o = CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o = CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c = /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c = /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

Determining if the function gethostbyname exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dgethostbyname -c /export/home/local/share/CMake/Modules/CheckFunc= tionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

gethostbyname= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the function = connect exists failed with the following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 = -DCHECK_FUNCTION_EXISTS=3Dconnect -c /export/home/local/share/CMake/Modules/CheckFunctionExists.c -o CheckFunctionExists.o

=

gcc=A0=A0 CheckFunctionExists.o=A0=A0 -o cmTryCompileExec

Undefined=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 first referenced

=A0symbol=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0in = file

connect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CheckFunctionExists.o

=

ld: = fatal: Symbol referencing errors. No output written to cmTryCompileExec

collect2: ld returned 1 = exit status

make: *** [cmTryCompileExec] Error = 1

 

 

Determining if the include file sys/prctl.h exists failed with the = following output:

gcc=A0 = -I/zubhome1/ResearchSources/= VTK-build/CMakeTmp=A0=A0 -c = /zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckIncludeFile.c -o CheckIncludeFile.o

/zubhome1/ResearchSources/VTK-build/CMakeTmp/CheckInc= ludeFile.c:1:23: sys/prctl.h: No such file or = directory

make: *** [CheckIncludeFile.o] Error = 1

 

 

------_=_NextPart_001_01C273B6.D39BF250-- From imho@skynet.be Mon Oct 14 22:52:07 2002 From: imho@skynet.be (imho) Date: Mon, 14 Oct 2002 23:52:07 +0200 Subject: [vtkusers] greyscale image to color image ? Message-ID: <3DAB3C87.5030703@skynet.be> Hi, how do I map a greyscale image to colors in JAVA ? Thanks From a.maclean@acfr.usyd.edu.au Tue Oct 15 01:11:12 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 15 Oct 2002 10:11:12 +1000 Subject: [vtkusers] Problem with surface reconstruction and contour filter in C++. In-Reply-To: <002401c273a6$3a114190$0100a8c0@tigger> Message-ID: <004f01c273df$5f099540$88d24e81@acfr.usyd.edu.au> Thanks for that. I forgot about the rationalisation of the header files! However it still doesn't fix my problem, in that the contour filter is not returning any data. 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: John Biddiscombe [mailto:jbiddiscombe@skippingmouse.co.uk] Sent: Tuesday, 15 October 2002 03:22 To: a.maclean@acfr.usyd.edu.au; vtkusers@public.kitware.com Subject: Re: [vtkusers] Problem with surface reconstruction and contour filter in C++. > 'vtkDataSetToPolyDataFilter::SetInput' : cannot convert parameter 1 from > 'vtkImageData *' to 'vtkDataSet *' > > Types pointed to are unrelated; conversion requires > reinterpret_cast, C-style cast or function-style cast Recent cleanups of all the vtk classes have removed #include "stuff.h" from many headers and you obviously haven't got a #include "vtkImageData.h" statement at the top of your file. Hence the compiler doesn't know it's a subclass of vtkDataSet. All the headers just state class vtkImageData; now so you need to add it. It's a pain, but it make the build process cleaner and faster (and it;s the right thing to do really) JB From galen@sp1.compbio.washington.edu Tue Oct 15 01:21:16 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Mon, 14 Oct 2002 17:21:16 -0700 (PDT) Subject: [vtkusers] cmake errors on redhat Message-ID: I'm trying to compile the nightly release on redhat 7.3 In my VTK directory... galen@singularity%../../cmake-new/bin/cmake -i Would you like to see advanced options? [No]: Please wait while cmake processes CMakeLists.txt files.... CMake Error: Faild to create directory:/singularity/maxa/home/galen/src/vtk/VTK CMake Error: Faild to create directory:/singularity/maxa/home/galen/src/vtk/VTK CMake Error: Error splitting file name off end of path: /singularity/maxa/home/galen/src/cmake-new/bin/cmake Directory not found: /singularity/maxa/home/galen/src/cmake-new/bin CMake Error: cmake version 1.4 Usage: ../../cmake-new/bin/cmake [srcdir] [options] Where cmake is run from the directory where you want the object files written. If srcdir is not specified, the current directory is used for both source and object files. thanks for any help, Galen -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 From John Biddiscombe" Message-ID: <001e01c273e1$e03d8840$0100a8c0@tigger> > However it still doesn't fix my problem, in that the contour filter is > not returning any data. Oh. Sorry, I only looked at the compile error. My first guess would be // Description: // If you want to contour by an arbitrary array, then set its name here. // By default this in NULL and the filter will use the active scalar array. vtkGetStringMacro(InputScalarsSelection); void SelectInputScalars(const char *fieldName) {this->SetInputScalarsSelection(fieldName);} Try setting the scalar name to something appropriate and see if that helps. Could be somehow you're getting a different scalar name in your data somehow (and the contour filter isn't using it). JB From jiang@TI.FhG.DE Tue Oct 15 09:30:46 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Tue, 15 Oct 2002 10:30:46 +0200 Subject: [vtkusers] How to do volume rendering Message-ID: Hi, all, I want to render a set of images as volume. How can I transfer the buffer data to vtk data? Should I use vtkStructuredPoints or some other vtk classes? Thank you very much! Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From dharmendra@strandgenomics.com Tue Oct 15 09:48:16 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 15 Oct 2002 14:18:16 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> Hello All, I am new to VTK.My requirements are like this. Gui is going to be in Python/tkinter and visualization part is going to be in c++. My question is how to get a VTKRenderWindow(which is in c++) from python. thanks dharmendra From dharmendra@strandgenomics.com Tue Oct 15 09:52:28 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 15 Oct 2002 14:22:28 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021015142104.00aeb558@mail.strandgenomics.com> Hello All, I want to pass a VtkRenederWindow from python to c++. I c++ i do all the visualization stuff.Like adding renderers. how to acheive this. dharmendra From PS7278514B@ntu.edu.sg Tue Oct 15 10:20:25 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 15 Oct 2002 17:20:25 +0800 Subject: [vtkusers] About The VTK Reader. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A68B@mail02.student.main.ntu.edu.sg> Dear VT-Users: I tried to render a stack of 256X256X8 bit *.BMP Slices. I used vtkImageReader class instead of vtkVolume16Reader because it is a = grayscale 8 bit source. I used vtkMarchingCubes algorithm to generate my model. But the result accuracy was very poor & a lot of holes occured in the = model. There were two same model existed at the render window. I did not know what was the problem. I tried use vtkBMPReader. But it was still same. Could any expert suggest which reader is best for it. How about the problem. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From prabhu@aero.iitm.ernet.in Tue Oct 15 10:35:33 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 15 Oct 2002 15:05:33 +0530 Subject: [vtkusers] urgent In-Reply-To: <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> References: <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> Message-ID: <15787.57701.682244.909408@monster.linux.in> >>>>> "D" == dharmendra writes: D> Hello All, I am new to VTK.My requirements are like this. Gui D> is going to be in Python/tkinter and visualization part is D> going to be in c++. My question is how to get a D> VTKRenderWindow(which is in c++) from python. The function vtkObjectBase *vtkPythonGetPointerFromObject(PyObject *obj, const char *result_type) is defined in Common/vtkPythonUtil.h Simply pass this function the Python object that corresponds to your Python vtkRenderWindow and the expected return type ("vtkRenderWindow" in this case) and then use the returned pointer (after suitably typecasting it of course). cheers, prabhu From sebaaihb@linux.zrz.TU-Berlin.DE Tue Oct 15 11:15:12 2002 From: sebaaihb@linux.zrz.TU-Berlin.DE (Sebastian Loebbert) Date: Tue, 15 Oct 2002 12:15:12 +0200 (CEST) Subject: [vtkusers] vtkImageViewer + greyscale image + color LUT Message-ID: Hi all, I have written a little viewer for slices of an volume. The viewer gets greyscale image slices as input and displays them. Now I would like to color these images using a "transfer function-like" approach by defining a color LUT for the grey values. Is there a way to tell vtkImageViewer to use a color LUT? This color LUT must be able to handle values larger than 256 as the greyscale range often is much higher. Thanks for all tips, Sebastian From Steffen.Oeltze@Student.Uni-Magdeburg.DE Tue Oct 15 11:27:23 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Tue, 15 Oct 2002 12:27:23 +0200 (MEST) Subject: [vtkusers] restrictions of the vtkVolumeRayCastMapper ? Message-ID: <1034677643.3dabed8be7b2f@webmail.uni-magdeburg.de> Dear VTK-users, I just read in my May2001 edition of The VTK-users guide that the vtkVolumeRayCastMapper supports only VTK_UNSIGNED_SHORT data and that the vtkVolumeProMapper supports only 8 or 12 bit data. Why is that and has something changed in the meanwhile concerning these restrictions ? I got curious because the AddRGBPoint(...)-method of the vtkColorTransferFunction allows the scalar value to be of data type float which makes no sense to me since the data values of the volume are required to be VTK_UNSIGNED_SHORT. Steffen From moitinho@civil.ist.utl.pt Tue Oct 15 12:20:24 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Tue, 15 Oct 2002 12:20:24 +0100 Subject: [vtkusers] Using tensors with cell data Message-ID: <200210151220.24060.moitinho@civil.ist.utl.pt> Hello Am I misreading the code or some of the "tensor routines" (eg vtkExtractTensorComponents and vtkTensorGlyph) will not work with cell data? If this is true, is it just a "to be done" or is there another reason? Regards Ze Paulo From tp500@doc.ic.ac.uk Tue Oct 15 13:04:53 2002 From: tp500@doc.ic.ac.uk (Theodore Papatheodorou) Date: Tue, 15 Oct 2002 13:04:53 +0100 Subject: [vtkusers] data access with OBJReader Message-ID: <3DAC0465.B67DFC4F@doc.ic.ac.uk> Hi all, I have imported an .obj file using the vtkOBJReader class. I have managed to display the object on the screen by connecting the output of the reader to the renderer but I do not know how to access the data in order to store it in a vtkPolyData structure for processing. Does anyone know how I can access the raw data to put it in a vtkPolyData object? Please help!!! Theodore From sebaaihb@linux.zrz.TU-Berlin.DE Tue Oct 15 13:06:38 2002 From: sebaaihb@linux.zrz.TU-Berlin.DE (Sebastian Loebbert) Date: Tue, 15 Oct 2002 14:06:38 +0200 (CEST) Subject: AW: [vtkusers] vtkImageViewer + greyscale image + color LUT Message-ID: Hi Chunyan, > I also want to create a viewer like yours. Could you like to share your > experience to me how to do it? I basically took $VTKHOME/Imaging/Testing/Tcl/ReslicePermuteResample.tcl and enhanced it a little bit. Do you have any specific questions? Best Regards, Sebastian From jiang@TI.FhG.DE Tue Oct 15 13:12:34 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Tue, 15 Oct 2002 14:12:34 +0200 Subject: [vtkusers] How to initialize vtkStructuredPoints Message-ID: Dear vtk users, I want to use vtkVolumeRayCastMapper to render volume. First of all, I should get volume data. However, I want to initialize vtkStructuredPoints on own for that I have store the serial images data in buffer. I would not use vtkStructuredPointsReader. How can I do it? Thanks in advance. Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From Gowri.Gopalakrishnan@inteq.com Tue Oct 15 13:13:34 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Tue, 15 Oct 2002 07:13:34 -0500 Subject: [vtkusers] (no subject) Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27444.48DDF8A0 Content-Type: text/plain Hi Does any one have a sample code for vtkExporter .... Regards Gowri ------_=_NextPart_001_01C27444.48DDF8A0 Content-Type: text/html

 

Hi

 

 

Does any one have a sample code for vtkExporter ....

 

Regards

Gowri

 

------_=_NextPart_001_01C27444.48DDF8A0-- From vahid@elham.iut.ac.ir Tue Oct 15 13:17:30 2002 From: vahid@elham.iut.ac.ir (Vahid Zahiri) Date: Tue, 15 Oct 2002 15:47:30 +0330 Subject: [vtkusers] multi grid Message-ID: <20021015121730.E68BA884A3@elham.iut.ac.ir> Hello how can i make multi grid ? Thanks in advance Vahid _________________________________ Vahid Zahiri Isfahan University of Technology (I.U.T) Isfahan IRAN work Phone : +98 (311) 3915824 From v.dercksen@suave.nl Tue Oct 15 14:45:32 2002 From: v.dercksen@suave.nl (Vincent) Date: Tue, 15 Oct 2002 15:45:32 +0200 Subject: [vtkusers] special keys Message-ID: <200210151345.g9FDja917722@phoenix.vhl.tudelft.nl> Hi, Does anyone have an idea how I can capture key events from special keys (arrows, etc.) in VTK? I'm using python and wxWindows. Thanks. Vincent Dercksen From dgobbi@imaging.robarts.ca Tue Oct 15 15:04:15 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Tue, 15 Oct 2002 10:04:15 -0400 (EDT) Subject: [vtkusers] special keys In-Reply-To: <200210151345.g9FDja917722@phoenix.vhl.tudelft.nl> Message-ID: Hi Vincent, If you use the wxVTKRenderWindow (which comes with VTK 4.n) you can get the key code from the event: def MyKeyFunc(event): if event.GetKeyCode() == WXK_RIGHT: do something EVT_KEY_DOWN(window,MyKeyFunc) # 'window' is a wxVTKRenderWindow - David On Tue, 15 Oct 2002, Vincent wrote: > Hi, > Does anyone have an idea how I can capture key events from special keys > (arrows, etc.) in VTK? I'm using python and wxWindows. > Thanks. > > Vincent Dercksen > _______________________________________________ > 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 Stefan.Rank@scai.FhG.de Tue Oct 15 19:05:02 2002 From: Stefan.Rank@scai.FhG.de (Stefan Rank) Date: Tue, 15 Oct 2002 20:05:02 +0200 Subject: [vtkusers] VRML reader/importer Message-ID: <3DAC58CE.1BB97EB5@cartan.gmd.de> Hello, is there a way of importing VRML data (especially VRML 1.0) in VTK. Thanks, Stefan From galen@sp1.compbio.washington.edu Tue Oct 15 19:17:06 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Tue, 15 Oct 2002 11:17:06 -0700 (PDT) Subject: [vtkusers] vrml HELP! Message-ID: Is there anyone who knows enough about vrml and vtkVRMLExporter to tell me why my multi-colored objects are all blue in VRML? thanks! -Galen -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 From gms158@psu.edu Tue Oct 15 19:42:47 2002 From: gms158@psu.edu (Gary M. Stump) Date: Tue, 15 Oct 2002 14:42:47 -0400 Subject: [vtkusers] vtkPanel to lightweight component Message-ID: I have written a Java applicaiton that uses vtkPanel, however vtkPanel uses Canvas which is a heavyweight component. I would eventually like to embed vtkPanel into a Swing application, thus I would like to make vtkPanel a lightweight component. Within vtkPanel I tried using JPanel and JComponent instead of Canvas but to no luck. Has anyone out there encountered this problem before ?? thanks -Gary From galen@sp1.compbio.washington.edu Tue Oct 15 20:08:17 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Tue, 15 Oct 2002 12:08:17 -0700 (PDT) Subject: [vtkusers] vrml HELP! In-Reply-To: Message-ID: Paul and others, Thanks for your help. I just figured it out. I was using colored vtkLines, which looked fine in the VTK engine, but the vtkVRMLExporter was somehow not interested in their colors, so they were being written as black. I fixed it by wrapping tubes (vtkTubeFilter) around the lines. IMHO, Might be useful to fix the vtkVRMLExporter to preserve the color of lines. cheers, -Galen On Tue, 15 Oct 2002, Paul A Hsieh wrote: > > Hi Galen: I have used vtkVRMLExporter a bit and have been relatively > successfully in producing wrl files that look like what is displayed by the > vtk renderer. Your posted code lines looks OK. The fact that all the > objects look blue suggests that color to scalar mapping might not be > correct. For example, if blue is the min value of your scalar to color > mapping and all your scalar values are below the min value. I might be able > to help if you would send me a sample code that creates one object (just to > illustrate your problem) and also the output wrl file. Regards, Paul Hsieh > (pahsieh@usgs.gov). > > > > Galen Wilkerson > ington.edu> cc: > Sent by: Subject: [vtkusers] vrml HELP! > vtkusers-admin@public.k > itware.com > > > 10/15/2002 11:17 AM > > > > > > > Is there anyone who knows enough about vrml and vtkVRMLExporter to tell me > why my multi-colored objects are all blue in VRML? > > thanks! > -Galen > > -- > Computational Biology Research Group > http://compbio.washington.edu/ > phone: 206 732 6127 > fax: 206 732 6055 > > _______________________________________________ > 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 > > > > > -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 From jeff@cdnorthamerica.com Tue Oct 15 20:42:23 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Tue, 15 Oct 2002 15:42:23 -0400 Subject: [vtkusers] vtkPanel to lightweight component References: Message-ID: <3DAC6F9F.5090604@cdnorthamerica.com> what is your requirement? you can already use awt components inside swing i.e. place the canvas inside a JPanel. -Jeff Gary M. Stump wrote: >I have written a Java applicaiton that uses vtkPanel, however vtkPanel uses >Canvas which is a heavyweight component. I would eventually like to embed >vtkPanel into a Swing application, thus I would like to make vtkPanel a >lightweight component. Within vtkPanel I tried using JPanel and JComponent >instead of Canvas but to no luck. Has anyone out there encountered this >problem before ?? thanks -Gary > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://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 anast.jm@pg.com Tue Oct 15 20:45:40 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 15 Oct 2002 15:45:40 -0400 Subject: [vtkusers] VRML reader/importer Message-ID: Stefan, vtkVRMLImporter is the class you will need. I've not tried vrml1.0 but it works with 2.0 files (mostly anyway, there are a few minor problems). If you search the achives you'll see several threads that talk about import/expot of vrml. I have a simple viewer in tcl code that might get you started if you are interested......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Stefan Rank @public.kitware.com on 10/15/2002 08:05 PM ZE2 Stefan Rank To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] VRML reader/importer Sent by: vtkusers-admin@public.kitware.com 10/15/2002 02:05 PM Hello, is there a way of importing VRML data (especially VRML 1.0) in VTK. Thanks, Stefan _______________________________________________ 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 anast.jm@pg.com Tue Oct 15 20:47:25 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 15 Oct 2002 15:47:25 -0400 Subject: [vtkusers] vrml HELP! Message-ID: Galen, perhaps if you posted a snippet of your code we might be able to offer some tips....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Galen Wilkerson @public.kitware.com on 10/15/2002 11:17 AM MST Galen Wilkerson To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] vrml HELP! Sent by: vtkusers-admin@public.kitware.com 10/15/2002 02:17 PM Is there anyone who knows enough about vrml and vtkVRMLExporter to tell me why my multi-colored objects are all blue in VRML? thanks! -Galen -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 _______________________________________________ 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 lalond01@gel.ulaval.ca Tue Oct 15 22:29:03 2002 From: lalond01@gel.ulaval.ca (Louis-Jacques Lalonde) Date: Tue, 15 Oct 2002 17:29:03 -0400 Subject: [vtkusers] vtkHandleMEssage2 Message-ID: <20021015_212903_088425.lalond01@gel.ulaval.ca> Hi ! I'm using VTK 4.0 and Visual Studio 6 to code an interface using MFC and VTK. Everything is fine so far except that when I display something in my VTK screen my MFC toolbar doesnt update. I believe it has something do to with this callback. Any way I can tell the function, once the interactor is initialized I dont want to always call vtkHandleMessage2. Am I wrong or it seems that this fonction is catching all update message even the one of the toolbar ? When the interactor is not initialized (when I just open my program and do nothing my toolbar is updating correctly) Thanks a lot ! LRESULT CInterface3DView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { //case WM_PAINT: case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MBUTTONDOWN: case WM_MBUTTONUP: case WM_RBUTTONDOWN: case WM_RBUTTONUP: case WM_MOUSEMOVE: case WM_CHAR: case WM_TIMER: if (this->Interactor->GetInitialized()) { return vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, this->Interactor); } break; } return CView::WindowProc(message, wParam, lParam); } ------------------------- Courriel Web gelgif Dpartement de gnie lectrique et de gnie informatique Universit Laval http://www.gel.ulaval.ca From galen@sp1.compbio.washington.edu Tue Oct 15 22:46:55 2002 From: galen@sp1.compbio.washington.edu (Galen Wilkerson) Date: Tue, 15 Oct 2002 14:46:55 -0700 (PDT) Subject: [vtkusers] (no subject) Message-ID: Thanks, I posted a snippet of my code yesterday, but didn't bother to post it again. Didn't want to bother the whole list with my code again, and was hoping to hear from someone who knew VRML etc., which i did. You may have seen that I figured things out. Thanks for the help, Galen ------------- Message: 15 Subject: Re: [vtkusers] vrml HELP! To: vtkusers@public.kitware.com From: anast.jm@pg.com Date: Tue, 15 Oct 2002 15:47:25 -0400 Galen, perhaps if you posted a snippet of your code we might be able to offer some tips....john -- Computational Biology Research Group http://compbio.washington.edu/ phone: 206 732 6127 fax: 206 732 6055 From gmascetti@infinito.it Wed Oct 16 08:18:26 2002 From: gmascetti@infinito.it (Giancarlo Mascetti, Ph.D.) Date: Wed, 16 Oct 2002 09:18:26 +0200 Subject: [vtkusers] Rendering Cygwin compilation error In-Reply-To: <20021015213801.16180.59954.Mailman@public.kitware.com> Message-ID: <5.0.2.1.0.20021016091029.00a8e5d0@pop3.infinito.it> Hello, trying to compiling VTK4.0 on cygwin I received some errors regarding Rendering and OpenGL even if I installed opengl-1.1.0 (from cygwin setup) therefore building of vtkRendering.dll and vtkRenderingTCL.dll fails. Which are the values and flag to configure/add to CMake in order to link correctly to opengl library? Thanks in advance Giancarlo Mascetti Dr. Giancarlo Mascetti, Ph.D. X-Istituto di Calcolo Scientifico-Institute for Scientific Computing S.r.l. Business Innovation Center (Bic Liguria) v. Greto di Cornigliano 6R - 16152 Genova, Italy tel. 010-6563250 - mob. 335-7787927 - fax. 010-6563400 E-mail: gmascetti@infinito.it From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 16 09:00:03 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 16 Oct 2002 10:00:03 +0200 Subject: [vtkusers] window/level concept Message-ID: <3DAD1C83.4000904@student.uni-magdeburg.de> Dear VTK-users, I'm not familiar with the window/level concept of the vtkImageMapper. Could anybody give me some insight please ? Thanks, Steffen From dharmendra@strandgenomics.com Wed Oct 16 09:28:31 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 16 Oct 2002 13:58:31 +0530 Subject: [vtkusers] urgent In-Reply-To: <15787.57701.682244.909408@monster.linux.in> References: <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> Message-ID: <5.1.1.6.0.20021016135413.00a79600@mail.strandgenomics.com> Hello, Let me make myself clear. I have a renderwindow in python/Tkinter( ren_widget = vtkRenderWidget.vtkTkRenderWidget( frame ) ren_win = ren_widget.GetRenderWindow() Now i want to pass this ren_win to a c++ class which adds renderers to it and returns ren_win. In my python code i will say ren_win.render(). how to acheive this. with some code example. thanks dharmendra At 03:05 PM 10/15/2002 +0530, you wrote: > >>>>> "D" == dharmendra writes: > > D> Hello All, I am new to VTK.My requirements are like this. Gui > D> is going to be in Python/tkinter and visualization part is > D> going to be in c++. My question is how to get a > D> VTKRenderWindow(which is in c++) from python. > >The function > >vtkObjectBase *vtkPythonGetPointerFromObject(PyObject *obj, > const char *result_type) > >is defined in Common/vtkPythonUtil.h > >Simply pass this function the Python object that corresponds to your >Python vtkRenderWindow and the expected return type ("vtkRenderWindow" >in this case) and then use the returned pointer (after suitably >typecasting it of course). > >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 dharmendra@strandgenomics.com Wed Oct 16 10:11:00 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 16 Oct 2002 14:41:00 +0530 Subject: [vtkusers] (no subject) Message-ID: <5.1.1.6.0.20021016144047.00ae7c08@mail.strandgenomics.com> Hello, Let me make myself clear. I have a renderwindow in python/Tkinter( ren_widget = vtkRenderWidget.vtkTkRenderWidget( frame ) ren_win = ren_widget.GetRenderWindow() Now i want to pass this ren_win to a c++ class which adds renderers to it and returns ren_win. In my python code i will say ren_win.render(). how to acheive this. with some code example. thanks dharmendra From dharmendra@strandgenomics.com Wed Oct 16 10:20:06 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 16 Oct 2002 14:50:06 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021016144951.00afd510@mail.strandgenomics.com> Hello, Let me make myself clear. I have a renderwindow in python/Tkinter( ren_widget = vtkRenderWidget.vtkTkRenderWidget( frame ) ren_win = ren_widget.GetRenderWindow() Now i want to pass this ren_win to a c++ class which adds renderers to it and returns ren_win. In my python code i will say ren_win.render(). how to acheive this. with some code example. thanks dharmendra From J.A.Schaap@lumc.nl Wed Oct 16 10:38:59 2002 From: J.A.Schaap@lumc.nl (Schaap, J.A. (LKEB)) Date: Wed, 16 Oct 2002 11:38:59 +0200 Subject: [vtkusers] Stereo rendering on a GeForce 3 on Windows2000 Message-ID: <84OJMG4KI0606URT5YI97KHRQSRZX.3dad33b3@mri-jorrit> Hi, I'm trying to use the stereo rendering capabilities of vtk on the following platform Windows2000 GeForce 3 (driver 40.72 from NVidia + NVidia's Stereo3D driver 30.87) the Asus 3D shutter glasses connected to the Asus GeForce 3 card vtk nightly september 24 I'm constructing the vtkRenderWindow like this: vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->SetStereoCapableWindow(1); renWin->SetStereoTypeToCrystalEyes(); renWin->StereoRenderOn(); renWin->StereoUpdate(); However, I don't get any stereo picture. It just shows the left-eye (or right-eye, I'm not sure...) picture all the time instead of swapping between the two eyes at 100Hz (display freq) RedBlue stereo is working properly by the way, but it doesn't look as nice :-( Are there any other settings? in vtk? in the display settings? in the OpenGL settings? Furthermore, I find the following piece of code quite peculiar (vtkOpenGLRenderWindow.cxx rev 1.63) void vtkOpenGLRenderWindow::StereoUpdate(void) { // if stereo is on and it wasn't before if (this->StereoRender && (!this->StereoStatus)) { switch (this->StereoType) { case VTK_STEREO_CRYSTAL_EYES: { } break; case VTK_STEREO_RED_BLUE: { this->StereoStatus = 1; } } } ..... Why is there an empty case for VTK_STEREO_CRYSTAL_EYES? Could this be why the stereorendering is not working? Thanks for any answers. Best regards, Jorrit Schaap From prabhu@aero.iitm.ernet.in Wed Oct 16 10:39:02 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 16 Oct 2002 15:09:02 +0530 Subject: [vtkusers] urgent In-Reply-To: <5.1.1.6.0.20021016135413.00a79600@mail.strandgenomics.com> References: <5.1.1.6.0.20021015141554.00b0b928@mail.strandgenomics.com> <5.1.1.6.0.20021016135413.00a79600@mail.strandgenomics.com> Message-ID: <15789.13238.184771.673057@monster.linux.in> >>>>> "D" == dharmendra writes: D> Hello, Let me make myself clear. I have a renderwindow in D> python/Tkinter( ren_widget = vtkRenderWidget.vtkTkRenderWidget( D> frame ) ren_win = ren_widget.GetRenderWindow() D> Now i want to pass this ren_win to a c++ class which adds D> renderers to it and returns ren_win. In my python code i will D> say ren_win.render(). BTW, why do you want to return ren_win from the c++ code? D> how to acheive this. with some code example. Here is what you need to do. 1. You need one entry point to your C++ code from Python. i.e. you need to hand off your ren_win to a C++ function in your C++ code where you are adding renderers etc. To do this you need to wrap atleast the one function that will be given a ren_win object. I'd suggest that you read up the documentation (Extending and Embedding the Python Interpreter) and also the Python C/API and wrap one single function that hooks into your C++ code. Expose this function to Python as a module. Lets call the file simple.c and the resulting python module simple with the single function static PyObject* simple_vtk_function(PyObject *obj, PyObject *args); or whatever. This function would in turn use the function I mentioned earlier to get the vtkRenderWindow from the argument passed to it. How to write the complete function is beyond the scope of this email. Its not that hard. Alternatively use SWIG (http://www.swig.org) or boost.python (http://www.boost.org)to do the job. Either way you'd have to pick something and figure out how to use it. I've attached an extremely simple example below of a simple function call in C that is called from Python. More on that follows. 2. Now from Python, import this module (simple) and then call your function with the ren_win. You should be all set. Anyway here is some actual working code that I wrote just for the purpose of illustration. This question has come up quite a few times. I thought I might as well write a small demo. It took less than half an hour. // --------------- cut here ---------- // simple.c #include "Python.h" #include "vtkPythonUtil.h" #include "vtkObject.h" #include "vtkObjectBase.h" #include extern "C" { PyObject* simple_vtk_function(PyObject *self, PyObject *args); } static PyObject* simple_vtk_function(PyObject *self, PyObject *args) { PyObject *vtkpy; if (!PyArg_ParseTuple(args, "O", &vtkpy)) return NULL; vtkObject *obj = (vtkObject*)vtkPythonGetPointerFromObject(vtkpy, "vtkObject"); /* Do what you want to do here. */ printf("%s\n", obj->GetClassName()); Py_INCREF(Py_None); return Py_None; } static PyMethodDef simple_methods[] = { {"vtk_function", simple_vtk_function, METH_VARARGS, "Simple VTK function"}, {NULL, NULL, 0, NULL} /* sentinel */ }; extern "C" { void initsimple(); } DL_EXPORT(void) initsimple() { PyObject *m, *d; m = Py_InitModule("simple", simple_methods); d = PyModule_GetDict(m); } // --------------- cut here ---------- Lets call this simple.c. Now compile it like so: $ g++ simple.c -shared -fPIC -I/usr/include/python2.1 \ -Ipath/to/your/vtk/headers -Lpath/to/your/vtk/libs/ \ -lvtkCommon -lvtkCommonPython -o simple.so Now run this from python: >>> import vtk >>> import simple >>> o = vtk.vtkRenderWindow() >>> simple.vtk_function (o) vtkXOpenGLRenderWindow It works! Anyway, I wonder why you are not using Python to do all the VTK related stuff and want to hand off everything to C++? Whats the point? VTK-Python is only a thin wrapper so should work ok. cheers, prabhu From blpriti@yahoo.com Wed Oct 16 10:45:09 2002 From: blpriti@yahoo.com (Priti Laxman) Date: Wed, 16 Oct 2002 02:45:09 -0700 (PDT) Subject: [vtkusers] Freezing VTK output window Message-ID: <20021016094509.21757.qmail@web80314.mail.yahoo.com> Hi, I am a novice in VTK. I tried opening a MBP in MS VC++ using vtkBMPReader class....btu got an error which I think is "cannot open file" . i am not sure of the error coz the output window vanishes with in a fravtion of a second. Can you please tell me how to freeze the output window to see the error? can you please send me the code for opening a BMP image please? Thank you , Priti __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From blpriti@yahoo.com Wed Oct 16 10:47:59 2002 From: blpriti@yahoo.com (Priti Laxman) Date: Wed, 16 Oct 2002 02:47:59 -0700 (PDT) Subject: [vtkusers] TCL examples Message-ID: <20021016094759.76961.qmail@web80304.mail.yahoo.com> Hi, I tried running the TCL examples , but am getting an error which says, VTK not found. How do I set the path for VTK in tcl in CMake. Thank you, Priti __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From dharmendra@strandgenomics.com Wed Oct 16 11:01:25 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 16 Oct 2002 15:31:25 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021016153004.00afac98@mail.strandgenomics.com> Hello PRABHU, When i try to compile it . The following error occurs iam using vtknightly unresolved external symbol "__declspec(dllimport) class vtkObjectBase * __cdecl vtkPythonGetPointerFromObject(struct _object *,char const *)" (__imp_?vtkPythonGetPointerFromObject@@YAPAVvtkObjectBase@@PAU_object@@PBD@Z) Release/sample4.dll : fatal error LNK1120: 1 unresolved externals thansk, dharmendra From moitinho@civil.ist.utl.pt Wed Oct 16 10:59:23 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Wed, 16 Oct 2002 10:59:23 +0100 Subject: [vtkusers] Oriented Tensor Glyphs (Take 2) Message-ID: <200210161059.23252.moitinho@civil.ist.utl.pt> Hello I have created a tar with the code for extended tensor glyphs, which can be found at: http://www.civil.ist.utl.pt/~moitinho/vtk/vtkJPM-0.01.tgz To test it (unixes) you must: cd somewhere (/tmp is a good idea) tar xzvf vtkJPM-0.01.tgz mkdir work cd work cmake ../vtkJPM make Done! You must now add (somewhere)/vtkJPM/bin to your LD_LIBRARY_PATH or PYTHONPATH or (possibly, never tried) TCLPATH. Some simple examples (requiring a proper PYTHONPATH) can be found in vtkJPM/Examples just try python example.py You can modify the file tensor.vtk or use your own. Have fun and please let me know what you think about it. Regards Ze Paulo PS: Those who dare may just copy vtkOrientedTensorGlyphs.* over vtkTensorGlyphs.*, replace the functions to the old name and (with some luck) it should work as if nothing has changed, only with more possibilities. From benjaminking@web.de Wed Oct 16 10:19:47 2002 From: benjaminking@web.de (Benjamin King) Date: Wed, 16 Oct 2002 11:19:47 +0200 Subject: [vtkusers] Delete a vtkTkRenderWidget Message-ID: <3DAD2F33.9000208@web.de> Hi, how do I delete a vtkTkRenderWidget from Tcl? There are no [dD](elete|estroy) methods available... cu, Ben -- There are only 10 types of people in this world: Those who understand binary, and those who don't. From marcio.mathias@edb.ericsson.se Wed Oct 16 11:20:18 2002 From: marcio.mathias@edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Wed, 16 Oct 2002 07:20:18 -0300 Subject: [vtkusers] VTK40 under Win2000 Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C274FD.75951E50 Content-Type: text/plain; charset="iso-8859-1" Hi I have just upgraded my OS, from Win98 to Win2000. Nothing is working anymore. Is there a special setup to get the VTK4.0 running again? PS: I already set TCLLIBPATH and VTK directory in the path. Thanks for any help, Marcio. ------_=_NextPart_001_01C274FD.75951E50 Content-Type: text/html; charset="iso-8859-1" VTK40 under Win2000

Hi
I have just upgraded my OS, from Win98 to Win2000.
Nothing is working anymore. Is there a special setup to get the VTK4.0 running again?

PS: I already set TCLLIBPATH and VTK directory in the path.

Thanks for any help,

Marcio.

------_=_NextPart_001_01C274FD.75951E50-- From schwabs@mindspring.com Wed Oct 16 12:09:50 2002 From: schwabs@mindspring.com (Hal Schwab) Date: Wed, 16 Oct 2002 07:09:50 -0400 Subject: [vtkusers] Re:Stereo rendering on a GeForce 3 on Windows2000 Message-ID: <000e01c27504$8cc847d0$f0320bb4@porky> As far as I know, the Nvidia stereo driver only works in full screen mode for both DirectX and OpenGL. The VTK framework only uses windowed mode. Please let everyone know if you get it working. I'm sure a lot of people would like to do this. Hal Schwab From dharmendra@strandgenomics.com Wed Oct 16 12:34:54 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 16 Oct 2002 17:04:54 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021016170347.00a79928@mail.strandgenomics.com> Hello All When i use vtkObjectBase i get the following error unresolved external symbol "__declspec(dllimport) class vtkObjectBase * __cdecl vtkPythonGetPointerFromObject(struct _object *,char const *)" (__imp_?vtkPythonGetPointerFromObject@@YAPAVvtkObjectBase@@PAU_object@@PBD@Z) Release/sample4.dll : fatal error LNK1120: 1 unresolved externals thansk, dharmendra From citrit@rpi.edu Wed Oct 16 14:30:26 2002 From: citrit@rpi.edu (Tom Citriniti) Date: Wed, 16 Oct 2002 09:30:26 -0400 Subject: [vtkusers] VRML reader/importer References: Message-ID: <004201c27518$30be2db0$0c021dc7@winston> The VRMLImporter only works on version 2.0 files. There are converters out there to convert VRML 1.0 files to 2.0. Tom C. ----- Original Message ----- From: To: Sent: Tuesday, October 15, 2002 3:45 PM Subject: Re: [vtkusers] VRML reader/importer > > Stefan, vtkVRMLImporter is the class you will need. I've not tried vrml1.0 but > it works with 2.0 files (mostly anyway, there are a few minor problems). If you > search the achives you'll see several threads that talk about import/expot of > vrml. I have a simple viewer in tcl code that might get you started if you are > interested......john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Stefan Rank @public.kitware.com on 10/15/2002 > 08:05 PM ZE2 > > Stefan Rank To: vtkusers@public.kitware.com > @public.kitware.com Cc: (bcc: John Anast-JM/PGI) > Subject: [vtkusers] VRML reader/importer > > Sent by: vtkusers-admin@public.kitware.com > 10/15/2002 02:05 PM > > > > > > > Hello, > > is there a way of importing VRML data (especially VRML 1.0) in VTK. > > Thanks, > > Stefan > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This 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 robbel@science.uva.nl Wed Oct 16 14:44:08 2002 From: robbel@science.uva.nl (Robert Belleman) Date: Wed, 16 Oct 2002 15:44:08 +0200 Subject: [vtkusers] Stereo rendering on a GeForce 3 on Windows2000 In-Reply-To: <84OJMG4KI0606URT5YI97KHRQSRZX.3dad33b3@mri-jorrit>; from J.A.Schaap@lumc.nl on Wed, Oct 16, 2002 at 11:38:59AM +0200 References: <84OJMG4KI0606URT5YI97KHRQSRZX.3dad33b3@mri-jorrit> Message-ID: <20021016154408.A1829@lanier.science.uva.nl> Hi Jorrit and other Vtk enthousiasts, I know little about stereo support for *Windows*, but some of you may be interested to know that the latest *Linux* drivers from nVidia (1.0-3123) contain support for quad-buffered stereo, but only on cards with a Quadro chipset. I realize that not many of will have had the funds to buy Quadro chipset based graphics cards, but for all you GeForce2 owners out there there's an interesting little hardware hack. It turns out that the GeForce2 and Quadro2 chips are really the same. The only difference on the graphics cards is a couple of resistors which are connected to different pins on the chip. With a little careful handywork it's possible to change your GeForce2 into a Quadro2, meaning you can do stereo rendering on Linux and get a better performing graphics card at the same time. I recently applied this hardware patch to my ASUS V7700 and it works beautifully with the ASUS 3D shutter glasses. For more information on this hardware hack, read http://www.tweakhardware.com/guide/quadro/ Let me stress again; I know this hack works on GeForce2 cards. I am quite sure it will *not* work on GeForce3 and GeForce4 cards. Also; don't blaim me if you try this hack and it fails in any way. Now back to Jorrit's Windows question; the thing I do in Vtk to render in stereo is the following: vtkRenderWindow renWin renWin StereoCapableWindowOn renWin SetStereoTypeToCrystalEyes renWin AddRenderer renderer With Vtk's RenderWindowInteractor, pressing '3' will toggle stereo on/off, otherwise call StereoRenderOn()/Off() like you do. I'm not sure why you would need the StereoUpdate(). I agree that the empty case in the switch statement you mentioned is puzzling, though I don't think it's the reason why stereo isn't working for you. Best, -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] On Wed, Oct 16, 2002 at 11:38:59AM +0200, Schaap, J.A. (LKEB) wrote: > Hi, > > I'm trying to use the stereo rendering capabilities of vtk on the following platform > > Windows2000 > GeForce 3 (driver 40.72 from NVidia + NVidia's Stereo3D driver 30.87) > the Asus 3D shutter glasses connected to the Asus GeForce 3 card > vtk nightly september 24 > > I'm constructing the vtkRenderWindow like this: > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->SetStereoCapableWindow(1); > renWin->SetStereoTypeToCrystalEyes(); > renWin->StereoRenderOn(); > renWin->StereoUpdate(); > > > However, I don't get any stereo picture. It just shows the left-eye (or right-eye, I'm not sure...) picture all the time instead of swapping between the two eyes at 100Hz (display freq) > RedBlue stereo is working properly by the way, but it doesn't look as nice :-( > > > Are there any other settings? in vtk? in the display settings? in the OpenGL settings? > > > Furthermore, I find the following piece of code quite peculiar (vtkOpenGLRenderWindow.cxx rev 1.63) > > void vtkOpenGLRenderWindow::StereoUpdate(void) > { > // if stereo is on and it wasn't before > if (this->StereoRender && (!this->StereoStatus)) > { > switch (this->StereoType) > { > case VTK_STEREO_CRYSTAL_EYES: > { > } > break; > case VTK_STEREO_RED_BLUE: > { > this->StereoStatus = 1; > } > } > } > ..... > > Why is there an empty case for VTK_STEREO_CRYSTAL_EYES? Could this be why the stereorendering is not working? > > Thanks for any answers. > Best regards, Jorrit Schaap > > > _______________________________________________ > 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@aero.iitm.ernet.in Wed Oct 16 14:52:22 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 16 Oct 2002 19:22:22 +0530 Subject: [vtkusers] urgent In-Reply-To: <5.1.1.6.0.20021016153004.00afac98@mail.strandgenomics.com> References: <5.1.1.6.0.20021016153004.00afac98@mail.strandgenomics.com> Message-ID: <15789.28438.902194.299333@monster.linux.in> >>>>> "D" == dharmendra writes: D> unresolved external symbol "__declspec(dllimport) class D> vtkObjectBase * __cdecl vtkPythonGetPointerFromObject(struct D> _object *,char const *)" D> (__imp_?vtkPythonGetPointerFromObject@@YAPAVvtkObjectBase@@PAU_object@@PBD@Z) Maybe you are not linking with the right libraries when you build the code? I have no idea if this will work or makes any sense but FWIW try replacing the DL_EXPORT(void) initsimple() with just void initsimple() cheers, prabhu From marcio.mathias@edb.ericsson.se Tue Oct 15 20:13:39 2002 From: marcio.mathias@edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Tue, 15 Oct 2002 16:13:39 -0300 Subject: [vtkusers] VTK40 under Win2000 Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2747E.A02469FC Content-Type: text/plain; charset="iso-8859-1" Hi I have just upgraded my OS, from Win98 to Win2000. Nothing is working anymore. Is there a special setup to get the VTK4.0 running again? PS: I set TCLLIBPATH and put the VTK directory in the path. Thanks for any help, Marcio. ------_=_NextPart_001_01C2747E.A02469FC Content-Type: text/html; charset="iso-8859-1" VTK40 under Win2000

Hi
I have just upgraded my OS, from Win98 to Win2000.
Nothing is working anymore. Is there a special setup to get the VTK4.0 running again?

PS: I set TCLLIBPATH and put the VTK directory in the path.

Thanks for any help,

Marcio.

------_=_NextPart_001_01C2747E.A02469FC-- From J.A.Schaap@lumc.nl Wed Oct 16 16:40:41 2002 From: J.A.Schaap@lumc.nl (Schaap, J.A. (LKEB)) Date: Wed, 16 Oct 2002 17:40:41 +0200 Subject: [vtkusers] Stereo rendering on a GeForce 3 on Windows2000 In-Reply-To: <20021016154408.A1829@lanier.science.uva.nl> Message-ID: <1IPN2YOJ93LGE9YV764372EBYUKGUO.3dad8879@mri-jorrit> Hi, after several tips from all of you I found out how to enable stereo rendering in Windows2000 with a GeForce 1, 2 or 3 card. It's quite simple and works beautifully. There is a little tweak program that converts your GeForce into a Quadro card, called rivatuner. It works for drivers 28.32 and lower. (search google for "detonator version 28.32 download") The Stereo3D drivers from nvidia's website are NOT needed. Good sites with info are: http://www.stereofoto.de/java/browsers/pageflip.html http://www.nvworld.ru/index_e.shtml It might not be really legal to uses this patch, but hey, if you pay a good amount of money for your graphics card you might expect it to support stereo rendering, don't you think? Good luck with trying this very cool feature! grtz, Jorrit 16-10-2002 15:44:08, Robert Belleman wrote: >Hi Jorrit and other Vtk enthousiasts, > >I know little about stereo support for *Windows*, but some of you may >be interested to know that the latest *Linux* drivers from nVidia >(1.0-3123) contain support for quad-buffered stereo, but only on cards >with a Quadro chipset. > >I realize that not many of will have had the funds to buy Quadro >chipset based graphics cards, but for all you GeForce2 owners out >there there's an interesting little hardware hack. > >It turns out that the GeForce2 and Quadro2 chips are really the same. >The only difference on the graphics cards is a couple of resistors >which are connected to different pins on the chip. With a little careful >handywork it's possible to change your GeForce2 into a Quadro2, meaning >you can do stereo rendering on Linux and get a better performing >graphics card at the same time. > >I recently applied this hardware patch to my ASUS V7700 and it works >beautifully with the ASUS 3D shutter glasses. > >For more information on this hardware hack, read >http://www.tweakhardware.com/guide/quadro/ > >Let me stress again; I know this hack works on GeForce2 cards. I am >quite sure it will *not* work on GeForce3 and GeForce4 cards. >Also; don't blaim me if you try this hack and it fails in any way. > > >Now back to Jorrit's Windows question; the thing I do in Vtk to render >in stereo is the following: > > vtkRenderWindow renWin > renWin StereoCapableWindowOn > renWin SetStereoTypeToCrystalEyes > renWin AddRenderer renderer > >With Vtk's RenderWindowInteractor, pressing '3' will toggle stereo >on/off, otherwise call StereoRenderOn()/Off() like you do. I'm not >sure why you would need the StereoUpdate(). > >I agree that the empty case in the switch statement you mentioned is >puzzling, though I don't think it's the reason why stereo isn't >working for you. > >Best, >-- Rob > >-- >[] Robert Belleman X Section Computational Science [] >[] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] >[] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > >On Wed, Oct 16, 2002 at 11:38:59AM +0200, Schaap, J.A. (LKEB) wrote: >> Hi, >> >> I'm trying to use the stereo rendering capabilities of vtk on the following platform >> >> Windows2000 >> GeForce 3 (driver 40.72 from NVidia + NVidia's Stereo3D driver 30.87) >> the Asus 3D shutter glasses connected to the Asus GeForce 3 card >> vtk nightly september 24 >> >> I'm constructing the vtkRenderWindow like this: >> >> vtkRenderWindow *renWin = vtkRenderWindow::New(); >> renWin->SetStereoCapableWindow(1); >> renWin->SetStereoTypeToCrystalEyes(); >> renWin->StereoRenderOn(); >> renWin->StereoUpdate(); >> >> >> However, I don't get any stereo picture. It just shows the left-eye (or right-eye, I'm not sure...) picture all the time instead of swapping between the two eyes at 100Hz (display freq) >> RedBlue stereo is working properly by the way, but it doesn't look as nice :-( >> >> >> Are there any other settings? in vtk? in the display settings? in the OpenGL settings? >> >> >> Furthermore, I find the following piece of code quite peculiar (vtkOpenGLRenderWindow.cxx rev 1.63) >> >> void vtkOpenGLRenderWindow::StereoUpdate(void) >> { >> // if stereo is on and it wasn't before >> if (this->StereoRender && (!this->StereoStatus)) >> { >> switch (this->StereoType) >> { >> case VTK_STEREO_CRYSTAL_EYES: >> { >> } >> break; >> case VTK_STEREO_RED_BLUE: >> { >> this->StereoStatus = 1; >> } >> } >> } >> ..... >> >> Why is there an empty case for VTK_STEREO_CRYSTAL_EYES? Could this be why the stereorendering is not working? >> >> Thanks for any answers. >> Best regards, Jorrit Schaap >> >> >> _______________________________________________ >> 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 vidya.sivakumar@quest-global.com Wed Oct 16 16:48:08 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Wed, 16 Oct 2002 11:48:08 -0400 Subject: [vtkusers] (no subject) In-Reply-To: <20021016104017.26039.42965.Mailman@public.kitware.com> Message-ID: Hi All, Is there any method to display coordinate axis in vtk? Thanks in advance, Vidya From anast.jm@pg.com Wed Oct 16 18:30:12 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 16 Oct 2002 13:30:12 -0400 Subject: [vtkusers] window/level concept Message-ID: Steffen, If you think of the image histogram, the window is the range of values that will be mapped to your display, the level is where in the histogram this range begins. For example if you have a 4096 bin histogram, a window of 250 and a level of 1000, this would map bins 1000-1250 full scale onto your display, all other values would be clipped. The Window/Level concept is also know in photographic circles as contrast/bightness and for cameras gain/offset....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Steffen Oeltze @public.kitware.com on 10/16/2002 10:00 AM ZE2 Steffen Oeltze To: VTK users @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] window/level concept Sent by: vtkusers-admin@public.kitware.com 10/16/2002 04:00 AM Dear VTK-users, I'm not familiar with the window/level concept of the vtkImageMapper. Could anybody give me some insight please ? Thanks, Steffen _______________________________________________ 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 dean.inglis@on.aibn.com Wed Oct 16 18:51:24 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Wed, 16 Oct 2002 13:51:24 -0400 Subject: [vtkusers] vtkMy doxygen Message-ID: Just wondering, would it be possible/useful to add a /Utilities/Doxygen to VTK/Examples/vtkMy so that users could build their own documentation, set up in such a way that any parent classes used by derived classes (from the VTK source) would also be included? Dean From sebastien.barre@kitware.com Wed Oct 16 19:10:13 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Wed, 16 Oct 2002 14:10:13 -0400 Subject: [vtkusers] vtkMy doxygen In-Reply-To: Message-ID: <5.1.1.6.0.20021016140929.0208e550@pop.biz.rr.com> At 10/16/2002 01:51 PM, Dean Inglis wrote: >Just wondering, > >would it be possible/useful to add >a /Utilities/Doxygen to >VTK/Examples/vtkMy >so that users could build their >own documentation, set up in such a way >that any parent classes used by >derived classes (from the VTK source) >would also be included? Yes, it's possible, the VTK doxygen stuff already creates what is called a "tag" file that enables you to link two documentations. It's a bit tricky to do/automate though. -- Sebastien Barre From kmorel@sandia.gov Wed Oct 16 19:28:53 2002 From: kmorel@sandia.gov (Moreland, Kenneth) Date: Wed, 16 Oct 2002 12:28:53 -0600 Subject: [vtkusers] Please fix this vtkOpenGLCamera bug. Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C27541.E1698C30 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit According to the CVS log, on January 24, 2002 Ken Martin changed a line vtkOpenGLCamera from matrix->DeepCopy(this->GetPerspectiveTransformMatrix(1.0*aspect[0]/aspect[1] , -1,1)); to matrix->DeepCopy(this->GetPerspectiveTransformMatrix(1.0*usize/vsize, -1,1)); This effectively throws away the aspect computed by the renderer and replaces it with a brash approximation with pixel sizes. I am currently trying to use a custom renderer that has an aspect ratio that is often very different from the image dimension ratios. The renderer returns an appropriate aspect in its GetAspect method, but the camera is ignoring it. Could someone PLEASE change the vtkOpenGLCamera::Render method back so that it no longer trashes the correct aspect ratio. -Ken **** Kenneth Moreland *** Sandia National Laboratories *********** *** *** *** email: kmorel@sandia.gov ** *** ** phone: (505) 844-8919 *** fax: (505) 844-9297 ------_=_NextPart_000_01C27541.E1698C30 Content-Type: application/ms-tnef Content-Transfer-Encoding: base64 eJ8+IjcSAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0gcKABAADAAcADUAAwBTAQEggAMADgAAANIHCgAQ AAwAHAA1AAMAUwEBCYABACEAAAA1QzJCQTA0MkNFNTQxNjRGOUIyMEY3OUY3RUM2RDU0RABUBwEE gAEAJQAAAFBsZWFzZSBmaXggdGhpcyB2dGtPcGVuR0xDYW1lcmEgYnVnLgAIDQENgAQAAgAAAAIA AgABA5AGACwIAAAuAAAAAwA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v4YIBAAAAAAAAAC9PPVNOTC9PVT1TRUVNUy9DTj1SRUNJUElF TlRTL0NOPUtNT1JFTAAeAPo/AQAAABIAAABNb3JlbGFuZCwgS2VubmV0aAAAAB4AOUABAAAABwAA AEtNT1JFTAAAQAAHMFCHYuFBdcIBQAAIMOxZj+FBdcIBHgA9AAEAAAABAAAAAAAAAB4AHQ4BAAAA JQAAAFBsZWFzZSBmaXggdGhpcyB2dGtPcGVuR0xDYW1lcmEgYnVnLgAAAAAeADUQAQAAADMAAAA8 QjUxRjBDNjM2RTU3OEE0RTgzMkQzOTU4NjkwQ0Q3M0VEMjBENTFAZXMwNHNubG50PgAACwApAAAA AAALACMAAAAAAAMABhAQOMrQAwAHEAEDAAADABAQAAAAAAMAERAAAAAAHgAIEAEAAABlAAAAQUND T1JESU5HVE9USEVDVlNMT0csT05KQU5VQVJZMjQsMjAwMktFTk1BUlRJTkNIQU5HRURBTElORVZU S09QRU5HTENBTUVSQUZST01NQVRSSVgtREVFUENPUFkoVEhJUy1HRQAAAAACAX8AAQAAADMAAAA8 QjUxRjBDNjM2RTU3OEE0RTgzMkQzOTU4NjkwQ0Q3M0VEMjBENTFAZXMwNHNubG50PgAAg+0= ------_=_NextPart_000_01C27541.E1698C30-- From prabhu@aero.iitm.ernet.in Wed Oct 16 19:31:12 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 17 Oct 2002 00:01:12 +0530 Subject: [vtkusers] (no subject) In-Reply-To: References: <20021016104017.26039.42965.Mailman@public.kitware.com> Message-ID: <15789.45168.864699.727899@monster.linux.in> >>>>> "VS" == vidya sivakumar writes: VS> Hi All, Is there any method to display coordinate axis in vtk? vtkCubeAxesActor2D, vtkAxes. prabhu From a.maclean@acfr.usyd.edu.au Thu Oct 17 00:22:32 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 17 Oct 2002 09:22:32 +1000 Subject: [vtkusers] Problem with surface reconstruction and contour filter in C++. In-Reply-To: <001e01c273e1$e03d8840$0100a8c0@tigger> Message-ID: <008b01c2756a$e84a1eb0$88d24e81@acfr.usyd.edu.au> I think what you said is pointing in the right direction. I have a vtkDoubleArray where I read the intensity of each point into. If there are no intensities, the values are set to 0. I then do a set points in the vtkPolydata structure to this array. The array is called (surprisingly!) "Intensity". Could this array be interfering with the contouring? 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: John Biddiscombe [mailto:jbiddiscombe@skippingmouse.co.uk] Sent: Tuesday, 15 October 2002 10:29 To: a.maclean@acfr.usyd.edu.au; vtkusers@public.kitware.com Subject: Re: [vtkusers] Problem with surface reconstruction and contour filter in C++. > However it still doesn't fix my problem, in that the contour filter is > not returning any data. Oh. Sorry, I only looked at the compile error. My first guess would be // Description: // If you want to contour by an arbitrary array, then set its name here. // By default this in NULL and the filter will use the active scalar array. vtkGetStringMacro(InputScalarsSelection); void SelectInputScalars(const char *fieldName) {this->SetInputScalarsSelection(fieldName);} Try setting the scalar name to something appropriate and see if that helps. Could be somehow you're getting a different scalar name in your data somehow (and the contour filter isn't using it). JB From cuehara@uh.edu Thu Oct 17 00:39:50 2002 From: cuehara@uh.edu (Christian Uehara) Date: Wed, 16 Oct 2002 18:39:50 -0500 Subject: [vtkusers] VTK 4 nightly build Message-ID: <000001c2756d$51cf2450$0bf90781@grover> Referencing Re: error compiling VTK40 on SuSE Linux 8.1 (Frank Broicher): Your problem can be solved by type-casting the pointer (static_cast) char** to const char**. At the top of vtkCommonTCLInit.cxx, try changing extern "C" { typedef int (*vtkTclCommandType)(ClientData, Tcl_Interp *,int, char *[]); } to extern "C" { typedef int (*vtkTclCommandType)(ClientData, Tcl_Interp *,int, const char *[]); } _____________________________________________ christian uehara, research associate univ of houston em: cuehara@uh.edu From a.maclean@acfr.usyd.edu.au Thu Oct 17 01:05:14 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 17 Oct 2002 10:05:14 +1000 Subject: [vtkusers] Singleton points Message-ID: <00a101c27570$de2a0d40$88d24e81@acfr.usyd.edu.au> This is a multi-part message in MIME format. ------=_NextPart_000_00A2_01C275C4.AFD61D40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Is there a way of filtering vtkPolyData so that singleton points are removed? By this I mean that if a point is greater than a distance ( say x ) from it's nearest point then it should be removed from the points list. Just a thought: maybe it could be a subclass of vtkCleanPolyData if you could somehow specify the points as unused. This sort of thing arises in real data because you get spurious isolated points from transients in the imaging systems. Thanks in advance for any pointers or comments. 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/ ___________________________________________ ------=_NextPart_000_00A2_01C275C4.AFD61D40 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is there a way of filtering vtkPolyData so that = singleton points are removed? By this I mean that if a point is greater than a = distance ( say x ) from it’s nearest point then it should be removed from the = points list. Just a thought: maybe it could be a subclass of vtkCleanPolyData = if you could somehow specify the points as unused.

 

This sort of thing arises in real data because you = get spurious isolated points from transients in the imaging systems. =

 

Thanks in advance for any pointers or = comments.

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/

 

___________________________________________

 

------=_NextPart_000_00A2_01C275C4.AFD61D40-- From Gowri.Gopalakrishnan@inteq.com Thu Oct 17 09:20:17 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Thu, 17 Oct 2002 03:20:17 -0500 Subject: [vtkusers] vtkPanel to lightweight component Message-ID: Summary on the vtkPanel + lightweight + heavy weight First of all here is a link to a site where the jframe instead of canvas is used http://www.codeproject.com/java/mousewheel.asp The disadvantage with this is that you have to extract the window handle in java and pass it to C and take all the precaution necessary avoid multiple access etc.... also if I remember correctly there is some hitch with notify()... check it out anyway...if you need help let me know... Secondly if you are using GUI if possible don't mix awt and swing components. AWT components being heavy weight will ALWAYS dominate the swing items. Ex: if you have a jpopup over a awt canvas, canvas will block the jpopup. Basically your popup will be hidden behind the canvas.... Sun says you can mix awt and swing, but there are lot of hassles (events are another nightmare when you mix....) Hope this helps Regards Gowri -----Original Message----- From: Jeff Lee [mailto:jeff@cdnorthamerica.com] Sent: 15 October 2002 20:42 To: Gary M. Stump Cc: vtkusers@public.kitware.com Subject: Re: [vtkusers] vtkPanel to lightweight component what is your requirement? you can already use awt components inside swing i.e. place the canvas inside a JPanel. -Jeff Gary M. Stump wrote: >I have written a Java applicaiton that uses vtkPanel, however vtkPanel uses >Canvas which is a heavyweight component. I would eventually like to embed >vtkPanel into a Swing application, thus I would like to make vtkPanel a >lightweight component. Within vtkPanel I tried using JPanel and JComponent >instead of Canvas but to no luck. Has anyone out there encountered this >problem before ?? thanks -Gary > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://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 From tp500@doc.ic.ac.uk Thu Oct 17 10:43:33 2002 From: tp500@doc.ic.ac.uk (Theodore Papatheodorou) Date: Thu, 17 Oct 2002 10:43:33 +0100 Subject: [vtkusers] Please Help!!! Message-ID: <3DAE8645.68EDA4A7@doc.ic.ac.uk> Hello VTKuser & developers, please help! I am loading a file of type .OBJ into VTK and although it only has about 9000 points the vtkPolyData object that is returned has 46.000. I have printed the list of all the points in the resulting vtkPolyData object and I have seen that there are a lot of repetitions something that does not exist in the original data set. Can anyone tell me why it loads the OBJ file incorrectly? Why does it produce these replications of data and how I can fix it? vtkOBJReader *face = vtkOBJReader::New(); face->SetFileName("face.obj"); vtkPolyData *datum = vtkPolyData::New(); datum = face->GetOutput(); int x = datum->GetNumberOfPoints() x = 46845 (when it really is around 9000). Any Ideas? I have spent a lot of time on this. If you know something please email me! Thanks!!!! Theodoros From Gowri.Gopalakrishnan@inteq.com Thu Oct 17 11:35:29 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Thu, 17 Oct 2002 05:35:29 -0500 Subject: [vtkusers] vtkHandleMEssage2 Message-ID: Three thoughts on this : First, if in your main or somewhere you specify that CInterface3DView::winproc is the winproc then all your events will go through that winproc. On the other hand if you had two winprocs one for the vtk window and one for the rest then it would go to the appropriate winprocs. If you don't give two then all will go through one. Second thing to check is the question of window handle. If do setParentId(hwnd) in vtk and not setWindowId(hwnd).Normally if the window handle is set properly then you don't need two winprocs. Lastly there is a tool that comes with visual studio called spy++ keep this running while you are running your application, then you can see on this spy window the origin of your events and exactly which window gets this event etc. Let me know if you need more help / tests.... Regards Gowri From Andrew.Porter@man.ac.uk Thu Oct 17 14:10:25 2002 From: Andrew.Porter@man.ac.uk (Andrew Porter) Date: Thu, 17 Oct 2002 14:10:25 +0100 (BST) Subject: [vtkusers] Reading XDR data Message-ID: <20021017140955.M79574-100000@nessie.mcc.ac.uk> Hi all, Has anyone investigated/implemented an XDR reader for vtk? I've been looking into it but am hitting difficulties since vtk uses ifstreams and the XDR library wants a FILE*. One solution would be to replace the array data in the vtk file with the filename of an associated XDR file. This would only be apparent to a 'vtkReadXDRData' routine (in analogy with vtkReadBinaryData). However, it does of course break the normal vtk approach of including the header information and data in a single file. Any thoughts or suggestions gratefully received. Andrew. -- Andrew Porter Software engineer, RealityGrid Tel. : +44 (0)161 2757184 Manchester Computing Fax. : +44 (0)161 2756040 University of Manchester Email: Andrew.Porter@man.ac.uk Oxford Road Web : www.realitygrid.org Manchester, M13 9PL : www.csar.cfs.ac.uk/staff/porter/ From malcolm@geovision.co.za Thu Oct 17 14:24:58 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Thu, 17 Oct 2002 15:24:58 +0200 Subject: [vtkusers] minor bug in vtKDataReader ... Message-ID: <000a01c275e0$b455ef50$718cfea9@maggie> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C275F1.5A512270 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ... or maybe just a nuisance. I'm using VTK32, so not sure about 4.x. = Sorry if it's been fixed already - couldn't find anything in the = archives. If you characterize a file, ie use GetNumberOfScalars and = GetScalarsNameInFile, the stored filenames have been converted to = lowercase (because CheckFor converts the whole line to lowercase). = However ReadScalarData is comparing against the original name in the = file (not necessarily lowercase), hence the possible problem. I found this because when I loaded scalar names into a list box I = noticed all the caps were gone and attempts to load the selected scalars = failed. Malcolm Drummond GeoVision cc ------=_NextPart_000_0007_01C275F1.5A512270 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
... or maybe just a nuisance. I'm using = VTK32, so=20 not sure about 4.x. Sorry if it's been fixed already - couldn't find = anything in=20 the archives.
 
If you characterize a file, ie use=20 GetNumberOfScalars and GetScalarsNameInFile, the stored filenames have = been=20 converted to lowercase (because CheckFor converts the whole line to = lowercase).=20 However ReadScalarData is comparing against the original name in the = file (not=20 necessarily lowercase), hence the possible problem.
 
I found this because when I loaded = scalar names=20 into a list box I noticed all the caps were gone and attempts to load = the=20 selected scalars failed.
 
Malcolm Drummond
GeoVision=20 cc
------=_NextPart_000_0007_01C275F1.5A512270-- From berk.geveci@kitware.com Thu Oct 17 14:34:04 2002 From: berk.geveci@kitware.com (Berk Geveci) Date: 17 Oct 2002 09:34:04 -0400 Subject: [vtkusers] Reading XDR data In-Reply-To: <20021017140955.M79574-100000@nessie.mcc.ac.uk> References: <20021017140955.M79574-100000@nessie.mcc.ac.uk> Message-ID: <1034861648.26042.1.camel@caemlyn.kitwarein.com> You certainly can use FILE*. There are quite a few readers which use C style IO. Check vtkPLOT3DReader and vtkGenericEnSightReader for example. -Berk On Thu, 2002-10-17 at 09:10, Andrew Porter wrote: > Hi all, > > Has anyone investigated/implemented an XDR reader for vtk? I've been > looking into it but am hitting difficulties since vtk uses ifstreams and > the XDR library wants a FILE*. One solution would be to replace the array > data in the vtk file with the filename of an associated XDR file. This > would only be apparent to a 'vtkReadXDRData' routine (in analogy with > vtkReadBinaryData). However, it does of course break the normal vtk > approach of including the header information and data in a single file. > > Any thoughts or suggestions gratefully received. > > Andrew. > > > -- > Andrew Porter > > Software engineer, RealityGrid Tel. : +44 (0)161 2757184 > Manchester Computing Fax. : +44 (0)161 2756040 > University of Manchester Email: Andrew.Porter@man.ac.uk > Oxford Road Web : www.realitygrid.org > Manchester, M13 9PL : www.csar.cfs.ac.uk/staff/porter/ > > > > _______________________________________________ > 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 imho@skynet.be Thu Oct 17 14:55:42 2002 From: imho@skynet.be (imho) Date: Thu, 17 Oct 2002 15:55:42 +0200 Subject: [vtkusers] how to map a greyscale image to a color image? Message-ID: <3DAEC15E.30508@skynet.be> Hi, I'd like to colorize a medical greyscale image. I do this : vtkLookupTable table = new vtkLookupTable(); table.SetTableRange(-1800,1800); *** table.SetValueRange( 0.0, 15); *** table.SetSaturationRange( 0.0, 1.0); // 0 a 1 *** table.SetHueRange( 0.0,1.0 ); // 0 a 1 *** table.SetAlphaRange( 0.0, 1.0); // 0 a 1 table.SetNumberOfColors(256); table.Build(); vtkImageMapToColors alpha = new vtkImageMapToColors(); alpha.SetInput(reader.GetOutput()); alpha.SetLookupTable(table); alpha.SetOutputFormatToRGB(); but the colors are ugly :p Wich values do I have to set for *** ? Thanks a lot From Stefan.Rank@scai.FhG.de Thu Oct 17 15:45:41 2002 From: Stefan.Rank@scai.FhG.de (Stefan Rank) Date: Thu, 17 Oct 2002 16:45:41 +0200 Subject: [vtkusers] 2D Visualization Message-ID: <3DAECD15.1754921@cartan.gmd.de> Hello vtk users, are there any classes in VTK special for visualizing 2d Data. Does anybody have an example for this? Thanks, Stefan From james@rogue-research.com Thu Oct 17 16:14:35 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 17 Oct 2002 11:14:35 -0400 (EDT) Subject: [vtkusers] vtkCarbonRenderWindow and existing PowerPlant windows Message-ID: Now, I'm not entirely clear on the functioning of vtkCarbonRenderWindow, but I thought this would work: ----------------- mVTKRenderWindow = dynamic_cast(vtkRenderWindow::New()); if( !mVTKRenderWindow ) return; CalcPortFrameRect( mBufferRect ); mVTKRenderWindow->SetParentId( FindViewWindow() ); mVTKRenderWindow->SetWindowInfo( FindViewWindow() ); mVTKRenderWindow->Initialize(); mVTKRenderWindow->SetPosition( mFrameLocation.h, mFrameLocation.v ); mVTKRenderWindow->SetSize( mFrameSize.width, mFrameSize.height ); ----------------- After that, I go and set up things in the usual VTK way, adding a renderer to the render window, and such. This project is PowerPlant based, but this shouldn't make too much of a difference. My next step will be to try it without PowerPlant, but here are my problems right now... The application starts up fine, it renders the image properly, and then as soon as it gets brought to the front, it crashes. It's crashing on the Carbon function MacGetNextWindow, which is called after the application receives a Resume event. I'm still looking it up, but does anyone have a clue, before I go too deep into this? James From stephen.reilly@ntlworld.com Thu Oct 17 16:24:20 2002 From: stephen.reilly@ntlworld.com (Stephen Reilly) Date: Thu, 17 Oct 2002 16:24:20 +0100 Subject: [vtkusers] Error building vtkCommonTCLInit.cxx Message-ID: <001201c275f1$47143530$f0370650@karl> This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C275F9.A5D1ECE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I recently downloaded the release VTK source code, and am trying to = build with Java and Tcl/Tk wrapping. However, when I make, I get the following errors: Error E2034 C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381: = Cannot convert 'int (*)(void *,Tcl_Interp *,int,char * *)' to 'int = (*)(void *,Tcl_Interp *,int,const char * *)' in function Vtkcommontcl_Init(Tcl_Interp *) Error E2342 C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381: = Type mismatch in parameter 'proc' (wanted 'int (*)(void *,Tcl_Interp = *,int,const char * *)', got 'int (*)(void *,Tcl_Interp *,int,char * *)') = in function Vtkcommontcl_Init(Tcl_Interp *) I don't want to start editing files in case I end up with a build that = just doesn't work. My current setup is: Windows 2000 with the Borland 5.2 compiler I am quite a newbie, so any help would be greatly appreciated. Thanks in advance, Stephen ------=_NextPart_000_000F_01C275F9.A5D1ECE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I recently downloaded the release VTK = source code,=20 and am trying to build with Java and Tcl/Tk wrapping.
 
However, when I make, I get the = following=20 errors:
 
Error E2034=20 C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381: Cannot = convert 'int=20 (*)(void *,Tcl_Interp *,int,char * *)' to 'int (*)(void=20 *,Tcl_Interp
 *,int,const char * *)' in function=20 Vtkcommontcl_Init(Tcl_Interp *)

Error E2342 = C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381:=20 Type mismatch in parameter 'proc' (wanted 'int (*)(void *,Tcl_Interp = *,int,const=20 char * *)', got 'int (*)(void *,Tcl_Interp *,int,char * *)') in function = Vtkcommontcl_Init(Tcl_Interp *)
 
I don't want to start editing files in case I end up with a build = that just=20 doesn't work.
 
My current setup is:
Windows 2000 with the Borland 5.2 compiler
 
I am quite a newbie, so any help would be greatly = appreciated.
 
Thanks in advance,
Stephen
------=_NextPart_000_000F_01C275F9.A5D1ECE0-- From james@rogue-research.com Thu Oct 17 16:27:25 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 17 Oct 2002 11:27:25 -0400 (EDT) Subject: [vtkusers] vtkCarbonRenderWindow and existing PowerPlant windows In-Reply-To: Message-ID: I've gotten a little clearer on this... the CarbonRenderWindow sets the refcon on the mac window to itself, which, in the future, is retrieved by the CarbonRenderWindowInteractor. However, PowerPlant ALSO uses the window's refcon to store its object associated with the window. So it doesn't make any sense for both to use it, since it's only a single variable. Here's my proposed change, which I will use in my own copy of the code, and which may be useful for anyone trying to use VTK in conjunction with PowerPlant and CodeWarrior. I have added a define of VTK_USE_PP, which should only be defined if VTK_USE_CARBON is valid. It also means the CarbonRenderWindowInteractor would be useless, but I'll come up with a PowerPlant interactor, if I can get the rendering working properly. Anyways, if VTK_USE_PP is defined, the refcon will not be set by the RenderWindow. Not sure if this works fully yet, but I'll keep you guys posted. If anyone has feedback on this, or is interested in knowing what it takes to get VTK compiling in CodeWarrior for Mac OS X, just ask. Oh, and here's an interesting factoid, with precompiled headers in CodeWarrior, a semi-complete VTK build (png and freetype parts removed) takes at most a half hour on my dual 400mhz G4 (with 768 MB RAM) James From berklist@nycap.rr.com Thu Oct 17 16:42:35 2002 From: berklist@nycap.rr.com (Berk Geveci) Date: 17 Oct 2002 11:42:35 -0400 Subject: [vtkusers] Error building vtkCommonTCLInit.cxx In-Reply-To: <001201c275f1$47143530$f0370650@karl> References: <001201c275f1$47143530$f0370650@karl> Message-ID: <1034869356.26044.15.camel@caemlyn.kitwarein.com> See the VTK FAQ: http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq02.005.htp On Thu, 2002-10-17 at 11:24, Stephen Reilly wrote: > Hello, > > I recently downloaded the release VTK source code, and am trying to build with Java and Tcl/Tk wrapping. > > However, when I make, I get the following errors: > > Error E2034 C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381: Cannot convert 'int (*)(void *,Tcl_Interp *,int,char * *)' to 'int (*)(void *,Tcl_Interp > *,int,const char * *)' in function Vtkcommontcl_Init(Tcl_Interp *) > > Error E2342 C:\PROGRA~1\vtk40\lib2\vtk\Common\vtkCommonTCLInit.cxx 381: Type mismatch in parameter 'proc' (wanted 'int (*)(void *,Tcl_Interp *,int,const char * *)', got 'int (*)(void *,Tcl_Interp *,int,char * *)') in function Vtkcommontcl_Init(Tcl_Interp *) > > I don't want to start editing files in case I end up with a build that just doesn't work. > > My current setup is: > Windows 2000 with the Borland 5.2 compiler > > I am quite a newbie, so any help would be greatly appreciated. > > Thanks in advance, > Stephen From imho@skynet.be Thu Oct 17 16:52:06 2002 From: imho@skynet.be (imho) Date: Thu, 17 Oct 2002 17:52:06 +0200 Subject: [vtkusers] how to map a greyscale image to a color image? Message-ID: <3DAEDCA6.4030409@skynet.be> Hi, I'd like to colorize a medical greyscale image. I do this : vtkLookupTable table = new vtkLookupTable(); table.SetTableRange(-1800,1800); *** table.SetValueRange( 0.0, 15); *** table.SetSaturationRange( 0.0, 1.0); // 0 a 1 *** table.SetHueRange( 0.0,1.0 ); // 0 a 1 *** table.SetAlphaRange( 0.0, 1.0); // 0 a 1 table.SetNumberOfColors(256); table.Build(); vtkImageMapToColors alpha = new vtkImageMapToColors(); alpha.SetInput(reader.GetOutput()); alpha.SetLookupTable(table); alpha.SetOutputFormatToRGB(); but the colors are ugly :p Wich values do I have to set for *** ? Thanks a lot PS : sorry if you receive this email twice, I had a problem From goodwin.lawlor@ucd.ie Thu Oct 17 16:49:40 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Thu, 17 Oct 2002 16:49:40 +0100 Subject: [vtkusers] Please Help!!! References: <3DAE8645.68EDA4A7@doc.ic.ac.uk> Message-ID: <00ca01c275f4$cf49b760$139701c1@highcross> Hi Theodore, I've come up against this problem with vtkOBJReader in the past and have posted to the list about it (http://public.kitware.com/pipermail/vtkusers/2001-June/006909.html) Basically, vtkOBJReader reads in a polygon from disk and inserts its vertices into the points list regardless if they've been inserted already. The way around this is to follow vtkOBJReader with vtkCleanPolyData. So.... vtkOBJReader reader reader SetFileName "file.obj" vtkCleanPolyData clean clean SetInput [reader GetOutput] vtkXXXXFilter filter filter SetInput [clean GetOutput] The vtkCleanPolyData filter will delete duplicate points from the points list. This works fine except the order of the points list will be different from the order of the points in the OBJ file... if there are scalars associated with the points in the file they wont be assigned correctly. I've been meaning to write another obj reader that would preserve the list order... sometime. HTH Goodwin University College Dublin ----- Original Message ----- From: "Theodore Papatheodorou" To: ; "'VTK Users'" Sent: Thursday, October 17, 2002 10:43 AM Subject: [vtkusers] Please Help!!! > Hello VTKuser & developers, > please help! I am loading a file of type .OBJ into VTK and although it > only has about 9000 points the vtkPolyData object that is returned has > 46.000. I have printed the list of all the points in the resulting > vtkPolyData object and I have seen that there are a lot of repetitions > something that does not exist in the original data set. > Can anyone tell me why it loads the OBJ file incorrectly? Why does it > produce these replications of data and how I can fix it? > > vtkOBJReader *face = vtkOBJReader::New(); > face->SetFileName("face.obj"); > > vtkPolyData *datum = vtkPolyData::New(); > datum = face->GetOutput(); > > int x = datum->GetNumberOfPoints() > > x = 46845 (when it really is around 9000). > > Any Ideas? I have spent a lot of time on this. If you know something > please email me! Thanks!!!! > Theodoros > > > > _______________________________________________ > 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_ehrhart@altavista.fr Thu Oct 17 16:57:38 2002 From: m_ehrhart@altavista.fr (man) Date: Thu, 17 Oct 2002 17:57:38 +0200 Subject: [vtkusers] Contouring polygon & outline path Message-ID: <000c01c275f5$eb79f1b0$4200a8c0@dev> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C27606.AE146A10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, For modeling operation, I have to take an outline and expand it while = moving it along a path (concave and convexe polygon). From a series = vertices, how do I define a new polygon which is equal to the original polygon plus/minus a buffer of a specified width around perimeter of the = polygon. This task is not contouring such vtkContourFilter since I have not got = any scalar values with my mesh (vtkPolyData, just vtkArray for Points = and one vtkCellArray for lines). I don't know which class I can use. Thanks M;Ehrhart. ------=_NextPart_000_0009_01C27606.AE146A10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
For modeling operation, I have to take = an outline=20 and expand it while moving it along a path (concave and convexe = polygon). From a=20 series vertices, how do I define a new polygon which is equal to the=20 original
polygon plus/minus a buffer of a specified width around = perimeter of=20 the polygon.
This task is not contouring such vtkContourFilter since = I have=20 not got any scalar values with my mesh (vtkPolyData, just vtkArray for = Points=20 and one vtkCellArray for lines).
I don't know which class I can = use.
 
Thanks
M;Ehrhart.
------=_NextPart_000_0009_01C27606.AE146A10-- From ebachta@ncsa.uiuc.edu Thu Oct 17 18:05:52 2002 From: ebachta@ncsa.uiuc.edu (Edward Bachta) Date: Thu, 17 Oct 2002 12:05:52 -0500 (CDT) Subject: [vtkusers] window/level concept In-Reply-To: Message-ID: That's odd, because in the VTK User's Guide v4.0 on page 127 the window/level scheme is described differently. There is a diagram: ____________ / / __________/ | ^ | L <-W-> This is my understanding: Level (L) designates the center of the range of values mapped to grayscale. Window designates the extent of the range to either side of the level. Thus, the range mapped is (level-window/2) to (level+window/2). For a positive window value, regions less than (level-window/2) are clamped to black and regions greater than (level+window/2) are clamped to white. Regions at (level) are 50% gray. With a negative window value you get the inverse image. Based on what I have observed in my implementations using vtkImageViewer, this is correct. (VTK CVS version circa Sept 24th) -- Ed Bachta ebachta@ncsa.uiuc.edu On Wed, 16 Oct 2002 anast.jm@pg.com wrote: > > Steffen, > > If you think of the image histogram, the window is the range of values that will > be mapped to your display, the level is where in the histogram this range > begins. For example if you have a 4096 bin histogram, a window of 250 and a > level of 1000, this would map bins 1000-1250 full scale onto your display, all > other values would be clipped. The Window/Level concept is also know in > photographic circles as contrast/bightness and for cameras gain/offset....john > > > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Steffen Oeltze > @public.kitware.com on 10/16/2002 10:00 AM ZE2 > > Steffen Oeltze To: VTK users > @public.kitware.com > Cc: (bcc: John Anast-JM/PGI) > Subject: [vtkusers] window/level concept > Sent by: vtkusers-admin@public.kitware.com > 10/16/2002 04:00 AM > > > > > > > Dear VTK-users, > > I'm not familiar with the window/level concept of the vtkImageMapper. Could > anybody give me some insight please ? > > Thanks, > Steffen > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This 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 akiyama@rao.co.jp Thu Oct 17 18:42:08 2002 From: akiyama@rao.co.jp (Toshio Akiyama) Date: Fri, 18 Oct 2002 02:42:08 +0900 Subject: [vtkusers] Does vtk StructuredPointsReader support 16-bit Binary Data? Message-ID: <20021018024155.89B3.AKIYAMA@rao.co.jp> Hello. I need some help. I'm trying Volume Rendering from 16-bit 3D data. I use vtkStructuredPointsReader() function. Does this function support 16-bit Binary Data? ^^^^^^ It doesn't seem that this funcition can set data length. When the 3D data format is Binary, vtkStructuredPointsReader() can't read that 16-bit data correctly. But when the format is ASCII, the funcion works good even if the data range is from 0 to 32767.(16-bit) The header of binary version is like this. # vtk DataFile Version 2.0 vtk test BINARY DATASET STRUCTURED_POINTS DIMENSIONS 136 150 50 SPACING 1.000000 1.000000 0.500000 ORIGIN 0 0 0 POINT_DATA 1020000 SCALARS volume_scalars unsigned_short 1 LOOKUP_TABLE default Please tell me how to read 16-bit binary data. -- RAO, Inc. Toshio Akiyama From anast.jm@pg.com Thu Oct 17 19:09:02 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 17 Oct 2002 14:09:02 -0400 Subject: [vtkusers] window/level concept Message-ID: Yes, of course you are correct, level is the center of the range not the beginning as I stated....not enough caffeine that night apparently. Sorry for the confusion...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Edward Bachta @public.kitware.com on 10/17/2002 12:05 PM Edward Bachta To: John Anast-JM/PGI@PGI @public.kitware.com Cc: vtkusers@public.kitware.com Subject: Re: [vtkusers] window/level concept Sent by: vtkusers-admin@public.kitware.com 10/17/2002 01:05 PM That's odd, because in the VTK User's Guide v4.0 on page 127 the window/level scheme is described differently. There is a diagram: ____________ / / __________/ | ^ | L <-W-> This is my understanding: Level (L) designates the center of the range of values mapped to grayscale. Window designates the extent of the range to either side of the level. Thus, the range mapped is (level-window/2) to (level+window/2). For a positive window value, regions less than (level-window/2) are clamped to black and regions greater than (level+window/2) are clamped to white. Regions at (level) are 50% gray. With a negative window value you get the inverse image. Based on what I have observed in my implementations using vtkImageViewer, this is correct. (VTK CVS version circa Sept 24th) -- Ed Bachta ebachta@ncsa.uiuc.edu On Wed, 16 Oct 2002 anast.jm@pg.com wrote: > > Steffen, > > If you think of the image histogram, the window is the range of values that will > be mapped to your display, the level is where in the histogram this range > begins. For example if you have a 4096 bin histogram, a window of 250 and a > level of 1000, this would map bins 1000-1250 full scale onto your display, all > other values would be clipped. The Window/Level concept is also know in > photographic circles as contrast/bightness and for cameras gain/offset....john > > > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Steffen Oeltze > @public.kitware.com on 10/16/2002 10:00 AM ZE2 > > Steffen Oeltze To: VTK users > @public.kitware.com > Cc: (bcc: John Anast-JM/PGI) > Subject: [vtkusers] window/level concept > Sent by: vtkusers-admin@public.kitware.com > 10/16/2002 04:00 AM > > > > > > > Dear VTK-users, > > I'm not familiar with the window/level concept of the vtkImageMapper. Could > anybody give me some insight please ? > > Thanks, > Steffen > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > _______________________________________________ This 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 tdeschamps@lbl.gov Thu Oct 17 19:33:23 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Thu, 17 Oct 2002 11:33:23 -0700 Subject: [vtkusers] Installation Guide on Unix Message-ID: <3DAF0273.9090906@lbl.gov> Hi vtkusers, By looking in the previous posts I found that Adele P. Peskin peskin at boulder . nist . gov on Thu, 25 Jul 2002 08:48:38 -0600 proposed a "Howto" documents for both the installation and running of CMake and VTK. I would like to know if someone still have it and can send it to me. I am currently enduring tremendous problems making work vtk on a Unix platform, and linking its libraries with my code, while it was so easy on my nice linux box. Thank you Thomas TDeschamps@lbl.gov From anast.jm@pg.com Thu Oct 17 20:01:03 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 17 Oct 2002 15:01:03 -0400 Subject: [vtkusers] Manipulating 4D data Message-ID: I have a set of time steps from an FEA simulation that we would like to be able to interact with in pseudo real time, that is be able to view the time sequence but also interact in 3D with the model (to take a better look at whats happening at each step). The time steps come in as a discrete series of vrml scenes which I have imported into vtk as a list of ActorCollections, one ActorCollection per scene. My initial thought was to assign a slider to select a specific ActorCollection and set the rest of the actors opacity to zero. By running the slider I could see the time progress but still be able to interact with each step in 3D. This is the first time I've tried to deal with 4D data so I'm wondering if folks can suggest a better way to do this. Thanks for any ideas/pointer....john From prabhu@aero.iitm.ernet.in Thu Oct 17 19:23:02 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 17 Oct 2002 23:53:02 +0530 Subject: [vtkusers] minor bug in vtKDataReader ... In-Reply-To: <000a01c275e0$b455ef50$718cfea9@maggie> References: <000a01c275e0$b455ef50$718cfea9@maggie> Message-ID: <15791.6.988208.550638@monster.linux.in> >>>>> "MD" == Malcolm Drummond writes: MD> ... or maybe just a nuisance. I'm using VTK32, so not sure MD> about 4.x. Sorry if it's been fixed already - couldn't find MD> anything in the archives. If you characterize a file, ie use MD> GetNumberOfScalars and GetScalarsNameInFile, the stored MD> filenames have been converted to lowercase (because CheckFor MD> converts the whole line to lowercase). However ReadScalarData MD> is comparing against the original name in the file (not MD> necessarily lowercase), hence the possible problem. Works fine on 4.x CVS. cheers, prabhu From stevie157@gmx.net Thu Oct 17 22:50:37 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Thu, 17 Oct 2002 23:50:37 +0200 Subject: [vtkusers] appending polydata Message-ID: <3DAF30AD.3020705@gmx.net> hi, i used the appendpolydata-filter to append several polydata-objects and to write them to disk in one vtk file. does anyone know how I can give the ojects a different color or transparency, perhaps even a texture, before i append them? thanks stef From cates@sci.utah.edu Thu Oct 17 23:13:27 2002 From: cates@sci.utah.edu (Joshua Cates) Date: Thu, 17 Oct 2002 16:13:27 -0600 (MDT) Subject: [vtkusers] compile problems on VC++ Message-ID: Hi, I'm attempting to compile using VC++ 6.0 service pack 5 on windows 2000 with Tcl wrapping enabled. See the experimental dashboard for Thu 10/17/02 "AJI WinNT-cl-JoshsLaptop-VC++SP5" for the errors. Any suggestions as to what I'm doing wrong? CMakeCache.txt is available at http://www.sci.utah.edu:/~cates/CMakeCache.txt Thanks, Josh. ______________________________ Josh Cates School of Computer Science University of Utah Email: cates@sci.utah.edu Phone: (801) 587-7697 URL: www.cs.utk.edu/~cates From blpriti@yahoo.com Fri Oct 18 03:21:37 2002 From: blpriti@yahoo.com (Priti Laxman) Date: Thu, 17 Oct 2002 19:21:37 -0700 (PDT) Subject: [vtkusers] vtkBMPReader Message-ID: <20021018022137.37310.qmail@web80304.mail.yahoo.com> Hi, I am a novice in vtk. Can you please please send me the code for opening a BMP image in MS VC++?? I don't need the volume rendering one. I need to open only one image.. a 2-d image. thanks a lot in advance. bye priti __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From nsmith5@gl.umbc.edu Fri Oct 18 05:05:23 2002 From: nsmith5@gl.umbc.edu (Nathan Smith) Date: Fri, 18 Oct 2002 00:05:23 -0400 (EDT) Subject: [vtkusers] Getting vtkProgrammableGlyphFilter to work with C++ Message-ID: Hello, I'm trying to get the SetGlypherMethod to work with c++-style function pointers, although it requires a c-style function pointer. Has anyone found a workaround for this? The first solution I thought of was to create a c wrapper for the c++ call, but is there any way to get back to the correct c++ object through information in the void * argument? I'm not sure if anything useful is passed in it (documentation for it is really bad). Anyway, here is the standard compiler error for this type of problem: ....:77: no matching function for call to 'vtkProgrammableGlyphFilter::SetGlyphMethod (void * (vtkIVTKGlypher::*)(void *))' .....:87: candidates are: void vtkProgrammableGlyphFilter::SetGlyphMethod(void (*)(void *), void*) Any help on this would be greatly appreciated. Thanks Nate From wzllist@yahoo.com.cn Fri Oct 18 10:27:26 2002 From: wzllist@yahoo.com.cn (=?gb2312?q?Steven=20Wu?=) Date: Fri, 18 Oct 2002 17:27:26 +0800 (CST) Subject: [vtkusers] vtk***Instantiator ??? Message-ID: <20021018092726.30608.qmail@web15006.mail.bjs.yahoo.com> I've newly download the nightly package. I find new object creators added to the source. They are classes with names as vtk***Instantiator . Within these class implemented static functions for objects creation. I do't know what future features related to these class will be added by VTK group. Will VTK group advise users to create objects in this way at last? _________________________________________________________ Do You Yahoo!? ʵ,ֵ - ŻƳֵܱ! http://cn.ent.yahoo.com/newsletter/index.html From dharmendra@strandgenomics.com Fri Oct 18 11:19:01 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Fri, 18 Oct 2002 15:49:01 +0530 Subject: [vtkusers] how to build vtk vtkRenderingPythonTkWidgets.dll Message-ID: <5.1.1.6.0.20021018154706.00a7ae00@mail.strandgenomics.com> Hello All, can some please let me know how to build vtkRenderingPythonTkWidgets.dll. building vtk does'nt seem to create this dll. thanka in advance, dharmendra From p.cook@cs.ucl.ac.uk Fri Oct 18 12:29:57 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 18 Oct 2002 12:29:57 +0100 Subject: [vtkusers] Please Help!!! (vtkOBJReader) In-Reply-To: <20021017170701.4235.76109.Mailman@public.kitware.com> References: <20021017170701.4235.76109.Mailman@public.kitware.com> Message-ID: <1034940598.22929.272.camel@maraca.cs.ucl.ac.uk> > Message: 11 > Date: Thu, 17 Oct 2002 16:49:40 +0100 > From: Goodwin Lawlor > Subject: Re: [vtkusers] Please Help!!! > To: Theodore Papatheodorou , > 'VTK Users' > > Hi Theodore, > > I've come up against this problem with vtkOBJReader in the past and have > posted to the list about it > (http://public.kitware.com/pipermail/vtkusers/2001-June/006909.html) > > Basically, vtkOBJReader reads in a polygon from disk and inserts its > vertices into the points list regardless if they've been inserted already. > Did anyone give a reason why it does this? Surely it would be sufficient to read the points into vtkPoints, polys into vtkCellArray, normals and tCoords into vtkFloatArray, and then just say output = vtkPolyData() output.SetPoints(points) output.SetPolys(polys) output.GetPointData().SetNormals(normals) output.GetPointData().SetTCoords(tCoords) Instead, vtkOBJReader reads the points, normals and tCoords, then it reads the polygons, and in this process it changes all the point IDs and duplicates most of the points. I can't figure out why this is even necessary. Phil From dgobbi@imaging.robarts.ca Fri Oct 18 14:18:43 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Fri, 18 Oct 2002 09:18:43 -0400 (EDT) Subject: [vtkusers] how to build vtk vtkRenderingPythonTkWidgets.dll In-Reply-To: <5.1.1.6.0.20021018154706.00a7ae00@mail.strandgenomics.com> Message-ID: You need both VTK_WRAP_PYTHON and VTK_WRAP_TCL to build this dll. - David On Fri, 18 Oct 2002, Dharmendra wrote: > Hello All, > can some please let me know how to build vtkRenderingPythonTkWidgets.dll. > building vtk does'nt seem to create this dll. > > thanka in advance, > dharmendra > > _______________________________________________ > 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 wzllist@yahoo.com.cn Fri Oct 18 14:50:48 2002 From: wzllist@yahoo.com.cn (=?gb2312?q?Steven=20Wu?=) Date: Fri, 18 Oct 2002 21:50:48 +0800 (CST) Subject: [vtkusers] fatal error C1076: compiler limit: internal heap limit reached Message-ID: <20021018135048.91804.qmail@web15005.mail.bjs.yahoo.com> In VS7 and VS6. I compiled the Nightly Package configured by cmake with option ANSI C++ STDLIB. The compiling is okay. But when I want to use the VTK header files and lib in my own project. The compilers complained a fatal error heap size limit. First, I increased the compiler's heap size by set /Zm200 or /Zm1000. But with option /Zm200 still saw the heap size limit error and /Zm1000 complainning outscope of my virtual memory. Second I disable the precompiled header file for stdafx.h, but still saw the error. Is it because I enabled the ANSI C++ STDLIB??? Help Please! _________________________________________________________ Do You Yahoo!? "Ӯֻ,μŻ!" http://cn.ent.yahoo.com/star/midautumn/index.html From tdsternberg@lbl.gov Fri Oct 18 15:02:49 2002 From: tdsternberg@lbl.gov (Theodore D. Sternberg) Date: Fri, 18 Oct 2002 07:02:49 -0700 (PDT) Subject: [vtkusers] vtkRenderWindowInteractor + Tkinter.Tk In-Reply-To: <20021018055601.12991.62004.Mailman@public.kitware.com> Message-ID: How would one write a Python version of Graphics/Testing/Tcl/TransformConcatenation.tcl? That is, I want to have a vtkRenderWindowInteractor *and*, separately, a Tk root window both active, in the same process. The problem with doing this in Python is that (as far as I know) you are forced to call both vtkRenderWindowInteractor.Start() and Tkinter.Tk.mainloop() -- and either one prevents the Python interpreter from executing any subsequent lines in the .py file. I've tried spinning threads, but the vtkRenderWindowInteractor seems to starve all other threads. I am trying to avoid vtkTkRenderWidget. It dumps core on a lot of systems (when using Python, and I've tried the tricks -- setting VTK_TK_WIDGET_PATH, copying vtkTkRenderWidget into /usr/lib, configuring --with-shared). Ted Sternberg Applied Numerical Algorithms Group National Energy Research Scientific Computing Center Lawrence Berkeley National Laboratory From gms158@psu.edu Fri Oct 18 15:05:25 2002 From: gms158@psu.edu (Gary M. Stump) Date: Fri, 18 Oct 2002 10:05:25 -0400 Subject: [vtkusers] rendering time Message-ID: I'm new to vtk. I am rendering my graphics window many times, and the time to perform the rendering is longer each time I render the window. I update my graphics about 60 to 100 times each session. why is this occurring and how can I eliminate this? thank you. -Gary From nundys@neuro.duke.edu Tue Oct 1 05:12:23 2002 From: nundys@neuro.duke.edu (S Nundy) Date: Tue, 1 Oct 2002 00:12:23 -0400 Subject: [vtkusers] vtkFloatArray to double[] in java or C++? In-Reply-To: <20021018103806.21739.49019.Mailman@public.kitware.com> Message-ID: Hello, I would like to access the data contained in a vtkFloatArray = from=20 java (or C++). So far, I have been able to access each Tuple=20 individually in a loop, which for large datasets is exceedingly slow. =20= Is there some way in which I can access the whole array fast? Thanks, Surajit Nundy On Friday, October 18, 2002, at 06:38 AM, vtkusers- request@public.kitware.com wrote: > Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Does vtk StructuredPointsReader support 16-bit Binary Data?=20 > (Toshio Akiyama) > 2. Re: window/level concept (anast.jm@pg.com) > 3. Installation Guide on Unix (Thomas Deschamps) > 4. Manipulating 4D data (anast.jm@pg.com) > 5. Re: minor bug in vtKDataReader ... (Prabhu Ramachandran) > 6. appending polydata (Stefan Ulbrich) > 7. compile problems on VC++ (Joshua Cates) > 8. vtkBMPReader (Priti Laxman) > 9. Getting vtkProgrammableGlyphFilter to work with C++ (Nathan = Smith) > 10. vtk***Instantiator ??? (=3D?gb2312?q?Steven=3D20Wu?=3D) > 11. how to build vtk vtkRenderingPythonTkWidgets.dll (Dharmendra) > > --__--__-- > > Message: 1 > Date: Fri, 18 Oct 2002 02:42:08 +0900 > From: Toshio Akiyama > To: vtkusers@public.kitware.com > Subject: [vtkusers] Does vtk StructuredPointsReader support 16-bit=20 > Binary Data? > > Hello. > > I need some help. > > I'm trying Volume Rendering from 16-bit 3D data. > I use vtkStructuredPointsReader() function. > Does this function support 16-bit Binary Data? > ^^^^^^ > It doesn't seem that this funcition can set data length. > > > When the 3D data format is Binary, vtkStructuredPointsReader() can't > read that 16-bit data correctly. > > But when the format is ASCII, the funcion works good even if the data > range is from 0 to 32767.(16-bit) > > > The header of binary version is like this. > > > # vtk DataFile Version 2.0 > vtk test > BINARY > DATASET STRUCTURED_POINTS > DIMENSIONS 136 150 50 > SPACING 1.000000 1.000000 0.500000 > ORIGIN 0 0 0 > POINT_DATA 1020000 > SCALARS volume_scalars unsigned_short 1 > LOOKUP_TABLE default > > > Please tell me how to read 16-bit binary data. > > -- > RAO, Inc. Toshio Akiyama > > > --__--__-- > > Message: 2 > Subject: Re: [vtkusers] window/level concept > To: vtkusers@public.kitware.com > From: anast.jm@pg.com > Date: Thu, 17 Oct 2002 14:09:02 -0400 > > > Yes, of course you are correct, level is the center of the range not = the > beginning as I stated....not enough caffeine that night apparently.=20 > Sorry for > the confusion...john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Edward Bachta @public.kitware.com on=20 > 10/17/2002 > 12:05 PM > > Edward Bachta To: John=20 > Anast-JM/PGI@PGI > @public.kitware.com Cc: =20 > vtkusers@public.kitware.com > Subject: Re:=20 > [vtkusers] window/level concept > > Sent by: > vtkusers-admin@public.kitware.com > 10/17/2002 01:05 PM > > > > > > > > That's odd, because in the VTK User's Guide v4.0 on page 127 the > window/level scheme is described differently. There is a diagram: > > ____________ > / > / > __________/ > | ^ | > L > <-W-> > > This is my understanding: > > Level (L) designates the center of the range of values mapped to > grayscale. Window designates the extent of the range to either side of=20= > the > level. Thus, the range mapped is (level-window/2) to (level+window/2).=20= > For > a positive window value, regions less than (level-window/2) are = clamped=20 > to > black and regions greater than (level+window/2) are clamped to white. > Regions at (level) are 50% gray. With a negative window value you get=20= > the > inverse image. > > Based on what I have observed in my implementations using=20 > vtkImageViewer, > this is correct. (VTK CVS version circa Sept 24th) > > -- > Ed Bachta > ebachta@ncsa.uiuc.edu > > On Wed, 16 Oct 2002 anast.jm@pg.com wrote: > >> >> Steffen, >> >> If you think of the image histogram, the window is the range of = values=20 >> that > will >> be mapped to your display, the level is where in the histogram this=20= >> range >> begins. For example if you have a 4096 bin histogram, a window of 250=20= >> and a >> level of 1000, this would map bins 1000-1250 full scale onto your=20 >> display, all >> other values would be clipped. The Window/Level concept is also know = in >> photographic circles as contrast/bightness and for cameras=20 >> gain/offset....john >> >> >> >> >> >> Internet Mail Message >> Received from host: public.kitware.com >> [24.97.130.19] >> >> >> >> From: Steffen Oeltze >> @public.kitware.com on 10/16/2002 10:00 AM ZE2 >> >> Steffen Oeltze > Magdeburg.DE> To: > VTK users >> @public.kitware.com > >> = =20 >> Cc: > (bcc: John Anast-JM/PGI) >> =20 >> Subject: > [vtkusers] window/level concept >> Sent by: vtkusers-admin@public.kitware.com >> 10/16/2002 04:00 AM >> >> >> >> >> >> >> Dear VTK-users, >> >> I'm not familiar with the window/level concept of the vtkImageMapper.=20= >> Could >> anybody give me some insight please ? >> >> Thanks, >> Steffen >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: < >> http://public.kitware.com/cgi-bin/vtkfaq> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > _______________________________________________ > This 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 > > > > > --__--__-- > > Message: 3 > Date: Thu, 17 Oct 2002 11:33:23 -0700 > From: Thomas Deschamps > To: VTK users list > Subject: [vtkusers] Installation Guide on Unix > > Hi vtkusers, > > By looking in the previous posts I found that Adele P. Peskin peskin = at > boulder . nist . gov on Thu, 25 Jul 2002 08:48:38 -0600 > proposed a "Howto" documents for both the installation and running of > CMake and VTK. > > I would like to know if someone still have it and can send it to me. > I am currently enduring tremendous problems making work vtk on a Unix > platform, and linking its libraries with my code, while it was so easy > on my nice linux box. > Thank you > > Thomas > TDeschamps@lbl.gov > > > --__--__-- > > Message: 4 > To: vtkusers@public.kitware.com > From: anast.jm@pg.com > Date: Thu, 17 Oct 2002 15:01:03 -0400 > Subject: [vtkusers] Manipulating 4D data > > > I have a set of time steps from an FEA simulation that we would like = to=20 > be able > to interact with in pseudo real time, that is be able to view the time=20= > sequence > but also interact in 3D with the model (to take a better look at whats=20= > happening > at each step). The time steps come in as a discrete series of vrml=20 > scenes which > I have imported into vtk as a list of ActorCollections, one=20 > ActorCollection per > scene. My initial thought was to assign a slider to select a specific > ActorCollection and set the rest of the actors opacity to zero. By=20 > running the > slider I could see the time progress but still be able to interact = with=20 > each > step in 3D. This is the first time I've tried to deal with 4D data so=20= > I'm > wondering if folks can suggest a better way to do this. Thanks for any > ideas/pointer....john > > > --__--__-- > > Message: 5 > From: Prabhu Ramachandran > Date: Thu, 17 Oct 2002 23:53:02 +0530 > To: "Malcolm Drummond" > Cc: "vtkusers" > Subject: Re: [vtkusers] minor bug in vtKDataReader ... > >>>>>> "MD" =3D=3D Malcolm Drummond writes: > > MD> ... or maybe just a nuisance. I'm using VTK32, so not sure > MD> about 4.x. Sorry if it's been fixed already - couldn't find > MD> anything in the archives. If you characterize a file, ie use > MD> GetNumberOfScalars and GetScalarsNameInFile, the stored > MD> filenames have been converted to lowercase (because CheckFor > MD> converts the whole line to lowercase). However ReadScalarData > MD> is comparing against the original name in the file (not > MD> necessarily lowercase), hence the possible problem. > > Works fine on 4.x CVS. > > cheers, > prabhu > > > --__--__-- > > Message: 6 > Date: Thu, 17 Oct 2002 23:50:37 +0200 > From: Stefan Ulbrich > To: vtkusers@public.kitware.com > Subject: [vtkusers] appending polydata > > hi, > > i used the appendpolydata-filter to append several polydata-objects = and > to write them to disk in one vtk file. does anyone know how I can give > the ojects a different color or transparency, perhaps even a texture, > before i append them? > > thanks > > stef > > > --__--__-- > > Message: 7 > Date: Thu, 17 Oct 2002 16:13:27 -0600 (MDT) > From: Joshua Cates > To: VTK Mailist > Subject: [vtkusers] compile problems on VC++ > > Hi, > > I'm attempting to compile using VC++ 6.0 service pack 5 on windows = 2000 > with Tcl wrapping enabled. See the experimental dashboard for Thu > 10/17/02 "AJI WinNT-cl-JoshsLaptop-VC++SP5" for the errors. > > Any suggestions as to what I'm doing wrong? CMakeCache.txt is = available > at > > http://www.sci.utah.edu:/~cates/CMakeCache.txt > > > Thanks, > > Josh. > > ______________________________ > Josh Cates =09 > School of Computer Science=09 > University of Utah > Email: cates@sci.utah.edu > Phone: (801) 587-7697 > URL: www.cs.utk.edu/~cates > > > > --__--__-- > > Message: 8 > Date: Thu, 17 Oct 2002 19:21:37 -0700 (PDT) > From: Priti Laxman > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtkBMPReader > > Hi, > > I am a novice in vtk. Can you please please send me > the code for opening a BMP image in MS VC++?? > > I don't need the volume rendering one. I need to open > only one image.. a 2-d image. > > thanks a lot in advance. > bye > priti > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > --__--__-- > > Message: 9 > Date: Fri, 18 Oct 2002 00:05:23 -0400 (EDT) > From: Nathan Smith > To: vtkusers@public.kitware.com > Subject: [vtkusers] Getting vtkProgrammableGlyphFilter to work with = C++ > > Hello, > > I'm trying to get the SetGlypherMethod to work with c++-style function > pointers, although it requires a c-style function pointer. Has anyone > found a workaround for this? The first solution I thought of was to=20 > create > a c wrapper for the c++ call, but is there any way to get back to the > correct c++ object through information in the void * argument? I'm not > sure if anything useful is passed in it (documentation for it is = really > bad). Anyway, here is the standard compiler error for this type of > problem: > > ....:77: no matching function for call to > 'vtkProgrammableGlyphFilter::SetGlyphMethod (void * > (vtkIVTKGlypher::*)(void *))' > .....:87: candidates are: void > vtkProgrammableGlyphFilter::SetGlyphMethod(void (*)(void *), void*) > > Any help on this would be greatly appreciated. Thanks > > Nate > > > > > --__--__-- > > Message: 10 > Date: Fri, 18 Oct 2002 17:27:26 +0800 (CST) > From: =3D?gb2312?q?Steven=3D20Wu?=3D > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtk***Instantiator ??? > > I've newly download the nightly package. I find new > object creators added to the source. They are classes > with names as vtk***Instantiator . Within these class > implemented static functions for objects creation. I > do't know what future features related to these class > will be added by VTK group. Will VTK group advise > users to create objects in this way at last? > > _________________________________________________________ > Do You Yahoo!? > =E2=80=93=C2=AC=C5=93=C2=A0=C2=B5=CE=A9=C2=B5=E2=97=8A,=E2=80=9D=C3=88=C2= =BF=C3=B7=C2=B5=CE=A9=C2=BA=E2=80=9C - = =E2=80=94=E2=89=88=C2=AA=C2=A2=C3=95=E2=88=86=E2=89=A5=CB=86=E2=88=9A=E2=80= =9A=E2=88=91=E2=80=94=E2=80=9D=C3=88=C2=BF=C3=B7=C2=B5=C3=81=E2=97=8A=E2=80= =9D=C3=B7=E2=80=B9=C2=B1=C2=AE! > http://cn.ent.yahoo.com/newsletter/index.html > > --__--__-- > > Message: 11 > Date: Fri, 18 Oct 2002 15:49:01 +0530 > To: vtkusers@public.kitware.com > From: Dharmendra > Subject: [vtkusers] how to build vtk vtkRenderingPythonTkWidgets.dll > > Hello All, > can some please let me know how to build=20 > vtkRenderingPythonTkWidgets.dll. > building vtk does'nt seem to create this dll. > > thanka in advance, > dharmendra > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers@public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest > From andy.cedilnik@kitware.com Fri Oct 18 15:18:24 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 18 Oct 2002 10:18:24 -0400 Subject: [vtkusers] fatal error C1076: compiler limit: internal heap limit reached In-Reply-To: <20021018135048.91804.qmail@web15005.mail.bjs.yahoo.com> References: <20021018135048.91804.qmail@web15005.mail.bjs.yahoo.com> Message-ID: <1034950704.796.80.camel@xanth.kitwarein.com> Hi Steven, On the nightly dashboard for Visual Studio .NET, we use /Zm800 and that seems to be working. We are however working on getting rid of this problem by cleaning header files. Andy On Fri, 2002-10-18 at 09:50, Steven Wu wrote: > In VS7 and VS6. > I compiled the Nightly Package configured by cmake > with option ANSI C++ STDLIB. The compiling is okay. > But when I want to use the VTK header files and lib in > my own project. The compilers complained a fatal error > heap size limit. First, I increased the compiler's > heap size by set /Zm200 or /Zm1000. But with option > /Zm200 > still saw the heap size limit error and /Zm1000 > complainning outscope of my virtual memory. Second I > disable the precompiled header file for stdafx.h, but > still saw the error. > Is it because I enabled the ANSI C++ STDLIB??? From james@rogue-research.com Fri Oct 18 15:26:45 2002 From: james@rogue-research.com (James Dessart) Date: Fri, 18 Oct 2002 10:26:45 -0400 Subject: [vtkusers] VTK, PowerPlant and CodeWarrior, now possible! Message-ID: I've managed to get a small demo going, using VTK within a PowerPlant view. The performance isn't what I'd like, but it was a proof of concept. If anyone is interested in my changes, mail me off-list, and I can walk you through the process. Note, because of the quick nature of the "port" I did, freetype isn't included in the build, and neither are the PNG classes. Some minor code changes were required to get it to compile, and finally run. They're fairly straightforward. My project takes under a half hour to compile and link, so in some sense, it has a leg up over the CMake solution, which, on the same machine, takes at least an hour. James From Gowri.Gopalakrishnan@inteq.com Fri Oct 18 15:29:51 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Fri, 18 Oct 2002 09:29:51 -0500 Subject: [vtkusers] vtkFloatArray to double[] in java or C++? Message-ID: Did you try the method getPointer in the vtkFloatArray. This gives you direcly memory address of the point. May be this could be faster?.... Gowri -----Original Message----- From: S Nundy [mailto:nundys@neuro.duke.edu] Sent: 01 October 2002 05:12 To: vtkusers@public.kitware.com Subject: [vtkusers] vtkFloatArray to double[] in java or C++? Hello, I would like to access the data contained in a vtkFloatArray from java (or C++). So far, I have been able to access each Tuple individually in a loop, which for large datasets is exceedingly slow. Is there some way in which I can access the whole array fast? Thanks, Surajit Nundy On Friday, October 18, 2002, at 06:38 AM, vtkusers- request@public.kitware.com wrote: > Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Does vtk StructuredPointsReader support 16-bit Binary Data? > (Toshio Akiyama) > 2. Re: window/level concept (anast.jm@pg.com) > 3. Installation Guide on Unix (Thomas Deschamps) > 4. Manipulating 4D data (anast.jm@pg.com) > 5. Re: minor bug in vtKDataReader ... (Prabhu Ramachandran) > 6. appending polydata (Stefan Ulbrich) > 7. compile problems on VC++ (Joshua Cates) > 8. vtkBMPReader (Priti Laxman) > 9. Getting vtkProgrammableGlyphFilter to work with C++ (Nathan Smith) > 10. vtk***Instantiator ??? (=?gb2312?q?Steven=20Wu?=) > 11. how to build vtk vtkRenderingPythonTkWidgets.dll (Dharmendra) > > --__--__-- > > Message: 1 > Date: Fri, 18 Oct 2002 02:42:08 +0900 > From: Toshio Akiyama > To: vtkusers@public.kitware.com > Subject: [vtkusers] Does vtk StructuredPointsReader support 16-bit > Binary Data? > > Hello. > > I need some help. > > I'm trying Volume Rendering from 16-bit 3D data. > I use vtkStructuredPointsReader() function. > Does this function support 16-bit Binary Data? > ^^^^^^ > It doesn't seem that this funcition can set data length. > > > When the 3D data format is Binary, vtkStructuredPointsReader() can't > read that 16-bit data correctly. > > But when the format is ASCII, the funcion works good even if the data > range is from 0 to 32767.(16-bit) > > > The header of binary version is like this. > > > # vtk DataFile Version 2.0 > vtk test > BINARY > DATASET STRUCTURED_POINTS > DIMENSIONS 136 150 50 > SPACING 1.000000 1.000000 0.500000 > ORIGIN 0 0 0 > POINT_DATA 1020000 > SCALARS volume_scalars unsigned_short 1 > LOOKUP_TABLE default > > > Please tell me how to read 16-bit binary data. > > -- > RAO, Inc. Toshio Akiyama > > > --__--__-- > > Message: 2 > Subject: Re: [vtkusers] window/level concept > To: vtkusers@public.kitware.com > From: anast.jm@pg.com > Date: Thu, 17 Oct 2002 14:09:02 -0400 > > > Yes, of course you are correct, level is the center of the range not the > beginning as I stated....not enough caffeine that night apparently. > Sorry for > the confusion...john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Edward Bachta @public.kitware.com on > 10/17/2002 > 12:05 PM > > Edward Bachta To: John > Anast-JM/PGI@PGI > @public.kitware.com Cc: > vtkusers@public.kitware.com > Subject: Re: > [vtkusers] window/level concept > > Sent by: > vtkusers-admin@public.kitware.com > 10/17/2002 01:05 PM > > > > > > > > That's odd, because in the VTK User's Guide v4.0 on page 127 the > window/level scheme is described differently. There is a diagram: > > ____________ > / > / > __________/ > | ^ | > L > <-W-> > > This is my understanding: > > Level (L) designates the center of the range of values mapped to > grayscale. Window designates the extent of the range to either side of > the > level. Thus, the range mapped is (level-window/2) to (level+window/2). > For > a positive window value, regions less than (level-window/2) are clamped > to > black and regions greater than (level+window/2) are clamped to white. > Regions at (level) are 50% gray. With a negative window value you get > the > inverse image. > > Based on what I have observed in my implementations using > vtkImageViewer, > this is correct. (VTK CVS version circa Sept 24th) > > -- > Ed Bachta > ebachta@ncsa.uiuc.edu > > On Wed, 16 Oct 2002 anast.jm@pg.com wrote: > >> >> Steffen, >> >> If you think of the image histogram, the window is the range of values >> that > will >> be mapped to your display, the level is where in the histogram this >> range >> begins. For example if you have a 4096 bin histogram, a window of 250 >> and a >> level of 1000, this would map bins 1000-1250 full scale onto your >> display, all >> other values would be clipped. The Window/Level concept is also know in >> photographic circles as contrast/bightness and for cameras >> gain/offset....john >> >> >> >> >> >> Internet Mail Message >> Received from host: public.kitware.com >> [24.97.130.19] >> >> >> >> From: Steffen Oeltze >> @public.kitware.com on 10/16/2002 10:00 AM ZE2 >> >> Steffen Oeltze > Magdeburg.DE> To: > VTK users >> @public.kitware.com > >> >> Cc: > (bcc: John Anast-JM/PGI) >> >> Subject: > [vtkusers] window/level concept >> Sent by: vtkusers-admin@public.kitware.com >> 10/16/2002 04:00 AM >> >> >> >> >> >> >> Dear VTK-users, >> >> I'm not familiar with the window/level concept of the vtkImageMapper. >> Could >> anybody give me some insight please ? >> >> Thanks, >> Steffen >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: < >> http://public.kitware.com/cgi-bin/vtkfaq> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > _______________________________________________ > This 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 > > > > > --__--__-- > > Message: 3 > Date: Thu, 17 Oct 2002 11:33:23 -0700 > From: Thomas Deschamps > To: VTK users list > Subject: [vtkusers] Installation Guide on Unix > > Hi vtkusers, > > By looking in the previous posts I found that Adele P. Peskin peskin at > boulder . nist . gov on Thu, 25 Jul 2002 08:48:38 -0600 > proposed a "Howto" documents for both the installation and running of > CMake and VTK. > > I would like to know if someone still have it and can send it to me. > I am currently enduring tremendous problems making work vtk on a Unix > platform, and linking its libraries with my code, while it was so easy > on my nice linux box. > Thank you > > Thomas > TDeschamps@lbl.gov > > > --__--__-- > > Message: 4 > To: vtkusers@public.kitware.com > From: anast.jm@pg.com > Date: Thu, 17 Oct 2002 15:01:03 -0400 > Subject: [vtkusers] Manipulating 4D data > > > I have a set of time steps from an FEA simulation that we would like to > be able > to interact with in pseudo real time, that is be able to view the time > sequence > but also interact in 3D with the model (to take a better look at whats > happening > at each step). The time steps come in as a discrete series of vrml > scenes which > I have imported into vtk as a list of ActorCollections, one > ActorCollection per > scene. My initial thought was to assign a slider to select a specific > ActorCollection and set the rest of the actors opacity to zero. By > running the > slider I could see the time progress but still be able to interact with > each > step in 3D. This is the first time I've tried to deal with 4D data so > I'm > wondering if folks can suggest a better way to do this. Thanks for any > ideas/pointer....john > > > --__--__-- > > Message: 5 > From: Prabhu Ramachandran > Date: Thu, 17 Oct 2002 23:53:02 +0530 > To: "Malcolm Drummond" > Cc: "vtkusers" > Subject: Re: [vtkusers] minor bug in vtKDataReader ... > >>>>>> "MD" == Malcolm Drummond writes: > > MD> ... or maybe just a nuisance. I'm using VTK32, so not sure > MD> about 4.x. Sorry if it's been fixed already - couldn't find > MD> anything in the archives. If you characterize a file, ie use > MD> GetNumberOfScalars and GetScalarsNameInFile, the stored > MD> filenames have been converted to lowercase (because CheckFor > MD> converts the whole line to lowercase). However ReadScalarData > MD> is comparing against the original name in the file (not > MD> necessarily lowercase), hence the possible problem. > > Works fine on 4.x CVS. > > cheers, > prabhu > > > --__--__-- > > Message: 6 > Date: Thu, 17 Oct 2002 23:50:37 +0200 > From: Stefan Ulbrich > To: vtkusers@public.kitware.com > Subject: [vtkusers] appending polydata > > hi, > > i used the appendpolydata-filter to append several polydata-objects and > to write them to disk in one vtk file. does anyone know how I can give > the ojects a different color or transparency, perhaps even a texture, > before i append them? > > thanks > > stef > > > --__--__-- > > Message: 7 > Date: Thu, 17 Oct 2002 16:13:27 -0600 (MDT) > From: Joshua Cates > To: VTK Mailist > Subject: [vtkusers] compile problems on VC++ > > Hi, > > I'm attempting to compile using VC++ 6.0 service pack 5 on windows 2000 > with Tcl wrapping enabled. See the experimental dashboard for Thu > 10/17/02 "AJI WinNT-cl-JoshsLaptop-VC++SP5" for the errors. > > Any suggestions as to what I'm doing wrong? CMakeCache.txt is available > at > > http://www.sci.utah.edu:/~cates/CMakeCache.txt > > > Thanks, > > Josh. > > ______________________________ > Josh Cates > School of Computer Science > University of Utah > Email: cates@sci.utah.edu > Phone: (801) 587-7697 > URL: www.cs.utk.edu/~cates > > > > --__--__-- > > Message: 8 > Date: Thu, 17 Oct 2002 19:21:37 -0700 (PDT) > From: Priti Laxman > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtkBMPReader > > Hi, > > I am a novice in vtk. Can you please please send me > the code for opening a BMP image in MS VC++?? > > I don't need the volume rendering one. I need to open > only one image.. a 2-d image. > > thanks a lot in advance. > bye > priti > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > --__--__-- > > Message: 9 > Date: Fri, 18 Oct 2002 00:05:23 -0400 (EDT) > From: Nathan Smith > To: vtkusers@public.kitware.com > Subject: [vtkusers] Getting vtkProgrammableGlyphFilter to work with C++ > > Hello, > > I'm trying to get the SetGlypherMethod to work with c++-style function > pointers, although it requires a c-style function pointer. Has anyone > found a workaround for this? The first solution I thought of was to > create > a c wrapper for the c++ call, but is there any way to get back to the > correct c++ object through information in the void * argument? I'm not > sure if anything useful is passed in it (documentation for it is really > bad). Anyway, here is the standard compiler error for this type of > problem: > > ....:77: no matching function for call to > 'vtkProgrammableGlyphFilter::SetGlyphMethod (void * > (vtkIVTKGlypher::*)(void *))' > .....:87: candidates are: void > vtkProgrammableGlyphFilter::SetGlyphMethod(void (*)(void *), void*) > > Any help on this would be greatly appreciated. Thanks > > Nate > > > > > --__--__-- > > Message: 10 > Date: Fri, 18 Oct 2002 17:27:26 +0800 (CST) > From: =?gb2312?q?Steven=20Wu?= > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtk***Instantiator ??? > > I've newly download the nightly package. I find new > object creators added to the source. They are classes > with names as vtk***Instantiator . Within these class > implemented static functions for objects creation. I > do't know what future features related to these class > will be added by VTK group. Will VTK group advise > users to create objects in this way at last? > > _________________________________________________________ > Do You Yahoo!? > –¬œ µΩµ◊,”È¿÷µΩº“ - —˜ª¢Õ∆≥ˆ√‚∑—”È¿÷µÁ◊”÷‹±®! > http://cn.ent.yahoo.com/newsletter/index.html > > --__--__-- > > Message: 11 > Date: Fri, 18 Oct 2002 15:49:01 +0530 > To: vtkusers@public.kitware.com > From: Dharmendra > Subject: [vtkusers] how to build vtk vtkRenderingPythonTkWidgets.dll > > Hello All, > can some please let me know how to build > vtkRenderingPythonTkWidgets.dll. > building vtk does'nt seem to create this dll. > > thanka in advance, > dharmendra > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers@public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest > _______________________________________________ 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 jnorris@mcs.anl.gov Fri Oct 18 16:27:41 2002 From: jnorris@mcs.anl.gov (John Norris) Date: Fri, 18 Oct 2002 10:27:41 -0500 Subject: [vtkusers] Black lines? Message-ID: <20021018152741.GD7467@mcs.anl.gov> Hello, I'm using VTK4.0, so if some of these things have been addressed in 4.1, please forgive me. I'm using vtkTensorGlyph with a vtkAxes as the source (with symmetry turned on), and I've run into a few problems. First, the output of vtkTensorGlyph eventually is run through vtkPolyDataNormals (the glyph is often a sphere or cone, and the output may be clipped, capped and triangulated, and I have to use vtkPolyDataNormals to avoid some strange lighting effects at sharp corners). When I'm using vtkAxes as the glyph, however, vtkPolyDataNormals panics because there are neither polys nor strips in its input. It would be much more convenient if it would just pass the data through in this case (perhaps with a warning), rather than give up completely. I can fix this myself without changing the library by deriving a new class from vtkPolyDataNormals, so that's not such a big deal. Second, vtkTensorGlyph::SetScaling() and family has no effect. Finally, when using vtkAxes as a glyph, I've noticed that sometimes the lines are the correct color, and sometimes they're black. It seems to depend on the camera's orientation. I would like the lines to have the same color regardless of what direction I'm looking at them from. Is there a way to do this? This is the most pressing issue for me. Thanks for any advice, John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From jeff@cdnorthamerica.com Fri Oct 18 16:34:23 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Fri, 18 Oct 2002 11:34:23 -0400 Subject: [vtkusers] Black lines? References: <20021018152741.GD7467@mcs.anl.gov> Message-ID: <3DB029FF.4080304@cdnorthamerica.com> John Norris wrote: >Hello, > >I'm using VTK4.0, so if some of these things have been addressed in 4.1, >please forgive me. > >I'm using vtkTensorGlyph with a vtkAxes as the source (with symmetry turned >on), and I've run into a few problems. > >First, the output of vtkTensorGlyph eventually is run through >vtkPolyDataNormals (the glyph is often a sphere or cone, and the output may >be clipped, capped and triangulated, and I have to use vtkPolyDataNormals to >avoid some strange lighting effects at sharp corners). When I'm using vtkAxes >as the glyph, however, vtkPolyDataNormals panics because there are neither >polys nor strips in its input. It would be much more convenient if it would >just pass the data through in this case (perhaps with a warning), rather than >give up completely. I can fix this myself without changing the library by >deriving a new class from vtkPolyDataNormals, so that's not such a big deal. > >Second, vtkTensorGlyph::SetScaling() and family has no effect. > >Finally, when using vtkAxes as a glyph, I've noticed that sometimes the lines >are the correct color, and sometimes they're black. It seems to depend on >the camera's orientation. I would like the lines to have the same color >regardless of what direction I'm looking at them from. Is there a way to >do this? This is the most pressing issue for me. > Could this be a matter of setting Ambient=1.0, Diffuse=0.0 on the actor representing the glyph? -Jeff > >Thanks for any advice, >John > > From moitinho@civil.ist.utl.pt Fri Oct 18 16:47:06 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Fri, 18 Oct 2002 16:47:06 +0100 Subject: [vtkusers] Black lines? In-Reply-To: <20021018152741.GD7467@mcs.anl.gov> References: <20021018152741.GD7467@mcs.anl.gov> Message-ID: <200210181647.06662.moitinho@civil.ist.utl.pt> On Friday 18 October 2002 16:27, John Norris wrote: > Hello, > > I'm using VTK4.0, so if some of these things have been addressed in 4.1, > please forgive me. > > I'm using vtkTensorGlyph with a vtkAxes as the source (with symmetry turned > on), and I've run into a few problems. > > First, the output of vtkTensorGlyph eventually is run through > vtkPolyDataNormals (the glyph is often a sphere or cone, and the output may > be clipped, capped and triangulated, and I have to use vtkPolyDataNormals > to avoid some strange lighting effects at sharp corners). When I'm using > vtkAxes as the glyph, however, vtkPolyDataNormals panics because there are > neither polys nor strips in its input. It would be much more convenient if > it would just pass the data through in this case (perhaps with a warning), > rather than give up completely. I can fix this myself without changing the > library by deriving a new class from vtkPolyDataNormals, so that's not such > a big deal. > Looking at vtkTensorGlyph, the code is: if ( (sourceNormals = pd->GetNormals()) ) .... If you use axes then you are not suposed to create the normals for the point data. In that case the code will not try to use them. If you create the normals, but they are not defined then you have a problem. > Second, vtkTensorGlyph::SetScaling() and family has no effect. > > Finally, when using vtkAxes as a glyph, I've noticed that sometimes the > lines are the correct color, and sometimes they're black. It seems to > depend on the camera's orientation. I would like the lines to have the > same color regardless of what direction I'm looking at them from. Is there > a way to do this? This is the most pressing issue for me. Are you using windows? We had some problems with rendering, which have been solved in cvs. Regards Ze Paulo From jnorris@mcs.anl.gov Fri Oct 18 16:59:30 2002 From: jnorris@mcs.anl.gov (John Norris) Date: Fri, 18 Oct 2002 10:59:30 -0500 Subject: [vtkusers] Black lines? In-Reply-To: <3DB029FF.4080304@cdnorthamerica.com> References: <20021018152741.GD7467@mcs.anl.gov> <3DB029FF.4080304@cdnorthamerica.com> Message-ID: <20021018155930.GE7467@mcs.anl.gov> Once upon a time, Jeff Lee wrote: > John Norris wrote: > >Finally, when using vtkAxes as a glyph, I've noticed that sometimes the > >lines > >are the correct color, and sometimes they're black. It seems to depend on > >the camera's orientation. I would like the lines to have the same color > >regardless of what direction I'm looking at them from. Is there a way to > >do this? This is the most pressing issue for me. > > > Could this be a matter of setting Ambient=1.0, Diffuse=0.0 on the actor > representing the glyph? Perfect! Why didn't I think of that? Thanks! John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From tdeschamps@lbl.gov Fri Oct 18 17:55:49 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Fri, 18 Oct 2002 09:55:49 -0700 Subject: [vtkusers] vtk Installation pb on Unix SunOS 5.8 Message-ID: <3DB03D15.2030908@lbl.gov> Hi vtkusers I am trying to compile vtk on a Unix SunOS 5.8 Compilation turns to be fine, but when I try to execute the vtk command, I have the following error: ----------------------------------------------------- > /home/euphrates/local/bin/vtk Application initialization failed: Can't find a usable tk.tcl in the following directories: /usr/lib/tk8.3 This probably means that tk wasn't installed properly. % ------------------------------------------------------ Of course the file tk.tcl is in the directory /usr/lib/tk8.3, its version is # RCS: @(#) $Id: tk.tcl,v 1.19 2000/02/08 10:00:55 hobbs Exp $ And wish8.3 works without returning errors... The different versions of the programs on this machine are 1) gcc 2.95.2 2) tcl and tk 8.3.0 3) X11R6/pl5 I think that's all. Does someone can help? Thomas From klimek@grc.nasa.gov Fri Oct 18 14:29:52 2002 From: klimek@grc.nasa.gov (Robert Klimek) Date: Fri, 18 Oct 2002 13:29:52 +0000 Subject: [vtkusers] vtkSubPixelPositionEdgels to vtkImageData Message-ID: <200210181329.52855.klimek@grc.nasa.gov> Hello, How does one convert vtkSubPixelPositionEdgels (Canny example) to=20 vtkImageData? Then I can display it in a wxPython window. Regards, Bob Klimek From vidya.sivakumar@quest-global.com Fri Oct 18 18:49:13 2002 From: vidya.sivakumar@quest-global.com (vidya sivakumar) Date: Fri, 18 Oct 2002 13:49:13 -0400 Subject: [vtkusers] (no subject) In-Reply-To: <20021002172301.22521.51306.Mailman@public.kitware.com> Message-ID: I am using vtkAxes and I able to draw the 3D axes in the rendering window. Is there any method to control the lenfth of the three axes. I want Z long while the x and Y short. In otherwords,how do I set the scale factor for x,y,andz axes separately. Can anybody help? Thanks, VIdya From rudi@yeah.co.at Fri Oct 18 18:51:08 2002 From: rudi@yeah.co.at (rudi@yeah.co.at) Date: Fri, 18 Oct 2002 19:51:08 +0200 Subject: [vtkusers] vtkDataArray and SetValue? Message-ID: <200210181951.08050.rudi@yeah.co.at> Hey! Probably someone faced the same problem. Ich want to write a generic clas= s=20 which processes data arrays of any type (VTK_CHAR ... VTK_UNSIGNED_CHAR = =2E..=20 VTK_WHATEVER). So why not take the abstract superclass and set the right=20 subclass on demand? Well, if you would like to do so, there is one proble= m:=20 SetValue is implemented in every sublcass but there is no abstract SetVal= ue=20 in vtkDataArray. Has anybody a good idea how to solve my problem? Perhaps there is a way I forgot! Thanks in advance! Rudi From berklist@nycap.rr.com Fri Oct 18 19:07:28 2002 From: berklist@nycap.rr.com (Berk Geveci) Date: 18 Oct 2002 14:07:28 -0400 Subject: [vtkusers] vtkDataArray and SetValue? In-Reply-To: <200210181951.08050.rudi@yeah.co.at> References: <200210181951.08050.rudi@yeah.co.at> Message-ID: <1034964454.19675.1.camel@caemlyn.kitwarein.com> Why not use SetComponent or SetTuple ? On Fri, 2002-10-18 at 13:51, rudi@yeah.co.at wrote: > Hey! > > Probably someone faced the same problem. Ich want to write a generic class > which processes data arrays of any type (VTK_CHAR ... VTK_UNSIGNED_CHAR ... > VTK_WHATEVER). So why not take the abstract superclass and set the right > subclass on demand? Well, if you would like to do so, there is one problem: > SetValue is implemented in every sublcass but there is no abstract SetValue > in vtkDataArray. Has anybody a good idea how to solve my problem? > > Perhaps there is a way I forgot! Thanks in advance! > > Rudi > _______________________________________________ > 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@aero.iitm.ernet.in Fri Oct 18 20:09:28 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 19 Oct 2002 00:39:28 +0530 Subject: [vtkusers] vtkRenderWindowInteractor + Tkinter.Tk In-Reply-To: References: <20021018055601.12991.62004.Mailman@public.kitware.com> Message-ID: <15792.23656.239241.820213@monster.linux.in> >>>>> "TS" == Theodore D Sternberg writes: TS> The problem with doing this in Python is that (as far as I TS> know) you are forced to call both TS> vtkRenderWindowInteractor.Start() and Tkinter.Tk.mainloop() -- TS> and either one prevents the Python interpreter from executing TS> any subsequent lines in the .py file. TS> I've tried spinning threads, but the vtkRenderWindowInteractor TS> seems to starve all other threads. Yes, that is what happens. The only easy way I can think of doing this is to use the vtkTkRenderWidget. TS> I am trying to avoid vtkTkRenderWidget. It dumps core on a TS> lot of systems (when using Python, and I've tried the tricks TS> -- setting VTK_TK_WIDGET_PATH, copying vtkTkRenderWidget into TS> /usr/lib, configuring --with-shared). Maybe if you give us more details on this problem, it could be fixed? Recently, Andy added a vtkpython executable that solves some of the problems with VTK and Tkinter on non-Linux *nix platforms. IIRC the biggest problems arise on systems with non-gcc compilers. Maybe you should try with the vtkpython executable instead of vanilla Python. cheers, prabhu From dmpd@onetel.net.uk Fri Oct 18 21:12:43 2002 From: dmpd@onetel.net.uk (D.M.P.Davies) Date: Fri, 18 Oct 2002 21:12:43 +0100 Subject: [vtkusers] vtkThreshold with vertex points Message-ID: <3DB06B3B.1C1E5DAF@onetel.net.uk> This is a multi-part message in MIME format. --------------648762E8BD37550C8651DF14 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry but I need help - I've been trying to set up a set of vertex points with scalar values representing each vertex. I then generate an unstructured grid and push through a vtkThreshold . I am unable to get the threshold to work either by using as point data (results in no output) or as cell data (where no vertexes are removed). The Tcl pipeline is in the attached file should some guru know the answer. Please could someone out there help Dave Davies --------------648762E8BD37550C8651DF14 Content-Type: text/plain; charset=us-ascii; name="vtkusers.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vtkusers.txt" ############## SET UP SOME 5 SCALARS####################################### vtkScalars scalars scalars SetNumberOfScalars 5 for {set i 0} {$i < 5} {incr i} { scalars InsertScalar $i $i } scalars Modified ################## SAME NUMBER -5- POINTS ################################### vtkPoints points points SetNumberOfPoints 5 for {set i 0} {$i < 5} {incr i} { points SetPoint $i [expr $i*20] [expr $i*20] [expr $i*20] } points Modified ##################CREATE A SET OF 5 VERTEXES################################### vtkVertex vertex [vertex GetPointIds] SetNumberOfIds 5 for {set ii 0} {$ii < 5} {incr ii} { [vertex GetPointIds] SetId $ii $ii } vertex Modified ############ FEED INTO UNSTRUCTURED GRID ######################################### vtkUnstructuredGrid unstruc unstruc SetPoints points for {set ii 0} {$ii < 5} {incr ii} { unstruc InsertNextCell [vertex GetCellType] [vertex GetPointIds] } [unstruc GetPointData] SetScalars scalars [unstruc GetCellData] SetScalars scalars [unstruc GetPointData] Modified [unstruc GetCellData] Modified ################# PUT INTO A THRESHOLD TO REMOVE 1'st & last CELL#################################### vtkThreshold thresh thresh SetAttributeModeToUseCellData thresh SetInput unstruc thresh ThresholdBetween 1 3 thresh AllScalarsOn [thresh GetOutput] Update thresh Modified ######################THEN A MAPPER#################### vtkDataSetMapper mapper mapper SetScalarRange 0 4 mapper SetScalarModeToUsePointData mapper SetInput [thresh GetOutput] ####################AND AN ACTOR ########################### vtkActor actor actor SetMapper mapper actor SetProperty property(alloy) [actor GetProperty] SetPointSize 10 ######### FINALLY RENDER ############# puts "Output no of cells-PRE RENDER COMMAND [thresh GetOutput] - [[thresh GetOutput] GetNumberOfCells]" puts "Output no of cells-UNSTRUCT GRID PRE RENDER COMMAND unstruc - [unstruc GetNumberOfCells]" Renderer($widget) AddActor actor #################### Now The The Unstructured Grid ############# vtkDataSetMapper mapper1 mapper1 SetScalarRange 0 4 mapper1 SetScalarModeToUsePointData mapper1 SetInput unstruc vtkActor actor1 actor1 SetMapper mapper1 actor1 SetPosition 50 0 0 actor1 SetProperty property(alloy) [actor1 GetProperty] SetPointSize 4 Renderer($widget) AddActor actor1 ################################################################# --------------648762E8BD37550C8651DF14-- From smitty@kcc.com Fri Oct 18 21:15:33 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Fri, 18 Oct 2002 15:15:33 -0500 (CDT) Subject: [vtkusers] "GLX" missing? Message-ID: Hello vtkusers@public.kitware.com, I had to tell cmake not to do Java Wrappers to avoid a syntax error on a compiler, but I've succeeded in getting cmake -i, followed by make, to complete for VTK 4.0 without errors on a RedHat 7.3 Linux host. But when I do - export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl I get this result: Xlib: extension "GLX" missing on display "uswew004:10.0". ...the above repeated... ERROR: In /contrib/vtk/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 195 vtkXOpenGLRenderWindow (0x9005ae8): Could not find a decent visual Segmentation fault From the same host, I can do this to another host with VTK 3.2 installed, and it works fine: ssh oldhost "(cd /contrib/vtk/vtk3.2/graphics/examplesTcl; vtk hello.tcl)" Here's what I did to compile, after installing cmake: tar xzf vtk40Src.tar.gz chown -R root:root VTK cd VTK tar xzf ../vtk40Data.tar.gz cmake -i # Skipped Java Wrappers. make I did not install Mesa beforehand, because there are some conflicts with the openGL rpm, already installed. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From Tam Tran Fri Oct 18 22:12:53 2002 From: Tam Tran (Tam Tran) Date: Fri, 18 Oct 2002 16:12:53 -0500 (CDT) Subject: [vtkusers] Problem building VTK executable Message-ID: <200210182112.g9ILCQfT026977@miltie.math.uno.edu> Hi everybody, This is the first time I use VTK. I want to install VTK 4.0 locally on my Sun Blade 100 workstation. The OS is Sun Solaris 5.8 (or SunOS 2.8). I was able to compile everything, except when it gets to the part where VTK executable is being built, and I got the following error: /vtk/VTK/Wrapping/Tcl: building default_target /cmake/bin/cmake -S/vtk/VTK/Wrapping/Tcl -O/vtk/VTK/Wrapping/Tcl -H/vtk/VTK -B/vtk/VTK `cmake.check_depends' is up to date. `cmake.depends' is up to date. /usr/local/bin/c++ -I/vtk/VTK/Wrapping/Tcl -I/vtk/VTK/Rendering -I/vtk/VTK -I/vtk/VTK/Common -I/vtk/VTK/Filtering -I/vtk/VTK/Imaging -I/vtk/VTK/Graphics -I/vtk/VTK/IO -I/vtk/VTK/Utilities/zlib -I/vtk/VTK/Utilities/png -I/vtk/VTK/Utilities/jpeg -I/vtk/VTK/Common/Testing/Cxx -I/usr/openwin/share/include -I/usr/openwin/include -c /vtk/VTK/Wrapping/Tcl/tkAppInit.cxx -o tkAppInit.o /usr/local/bin/c++ tkAppInit.o -L/vtk/VTK/bin -lpthread -ldl -lm -lvtkpng -lvtkzlib -lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -ltcl8.4 -lGL -ltk8.4 -lXt -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl -lvtkRenderingTCL -lvtkRendering -lvtkpng -lvtkzlib -lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -lvtkFilteringTCL -lvtkCommonTCL -ltk8.4 -ltcl8.4 -lvtkImaging -lvtkGraphics -lvtkFiltering -lvtkCommon -lGL -lpthread -lm -ldl -lXt -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl -Wl,-R,/vtk/VTK/bin -o /vtk/VTK/bin/vtk /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/libgcc.a: could not read symbols: Bad value collect2: ld returned 1 exit status *** Error code 1 Does anyone know what went wrong? I am all ears! Thank you in advance. Tam From prabhu@aero.iitm.ernet.in Fri Oct 18 22:23:48 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 19 Oct 2002 02:53:48 +0530 Subject: [vtkusers] vtkThreshold with vertex points In-Reply-To: <3DB06B3B.1C1E5DAF@onetel.net.uk> References: <3DB06B3B.1C1E5DAF@onetel.net.uk> Message-ID: <15792.31716.989064.796286@monster.linux.in> >>>>> "DMPD" == D M P Davies writes: DMPD> Sorry but I need help - I've been trying to set up a set of DMPD> vertex points with scalar values representing each vertex. I DMPD> then generate an unstructured grid and push through a DMPD> vtkThreshold . DMPD> I am unable to get the threshold to work either by using as DMPD> point data (results in no output) or as cell data (where no DMPD> vertexes are removed). Seems to work under CVS VTK 4.x. I had to slightly modify your code and here is the output: Output no of cells-PRE RENDER COMMAND vtkTemp3 - 3 Output no of cells-UNSTRUCT GRID PRE RENDER COMMAND unstruc - 5 Yet another reason to upgrade. :) cheers, prabhu From cmontag@terra.com.br Sat Oct 19 01:47:04 2002 From: cmontag@terra.com.br (Cristian Montagnoli) Date: Fri, 18 Oct 2002 21:47:04 -0300 Subject: [vtkusers] Voxel editor Message-ID: <001101c27709$0b9dfef0$a8aafea9@cristian> Hi vtkusers, Im wasting too much time editing slices in BMP format and reading them into a vtkbmpreader. It would be great if I could find a "windows paint"-like program but to work in 3d. Are there any freeware volume editor ? Thanks in advance, Cristian Montagnoli From cmontag@terra.com.br Sat Oct 19 14:56:59 2002 From: cmontag@terra.com.br (Cristian Montagnoli) Date: Sat, 19 Oct 2002 10:56:59 -0300 Subject: [vtkusers] Volume viewing Message-ID: <000f01c27777$655e2f00$a8aafea9@cristian> Hi vtkusers, Is there a some way to read a volume and view each voxel like a cube (with alpha and color) ? I ask such kind of thing because my data sets are extremely small and the composite functions do not give me the cube like bevahior. Thanks in advance, Cristian Montagnoli. From Steffen.Oeltze@Student.Uni-Magdeburg.DE Sat Oct 19 17:05:08 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sat, 19 Oct 2002 18:05:08 +0200 Subject: [vtkusers] deriving my own class from vtkActor Message-ID: <3DB182B4.10300@student.uni-magdeburg.de> Dear VTK-users, I have derived my own class from vtkActor and I have added a couple of methods to this new class. After creating and modifying such a new actor I add it to my existing renderer. At some point I use vtkRenderer->GetActors() to retrieve my custom actors. Then, I would like to traverse the returned list and apply a custom method to each of my selfmade actors. However, I get the error: > 'method' : is not an element of 'vtkActor' I guess this is a problem of backward compatibility but I don't know how to solve it. Can anybody help me ? Steffen From malcolm@geovision.co.za Sun Oct 20 11:59:33 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Sun, 20 Oct 2002 12:59:33 +0200 Subject: [vtkusers] deriving my own class from vtkActor References: <3DB182B4.10300@student.uni-magdeburg.de> Message-ID: <000901c27827$e5a3a540$718cfea9@maggie> Hi Steffen Try casting to your type of actor - the actor collection contains pointers to type vtkActor. Malcolm ----- Original Message ----- From: "Steffen Oeltze" To: "VTK users" Sent: Saturday, October 19, 2002 6:05 PM Subject: [vtkusers] deriving my own class from vtkActor > Dear VTK-users, > > I have derived my own class from vtkActor and I have added a couple of > methods to this new class. > After creating and modifying such a new actor I add it to my existing > renderer. At some point I use > vtkRenderer->GetActors() to retrieve my custom actors. Then, I would > like to traverse the returned > list and apply a custom method to each of my selfmade actors. However, I > get the error: > > > 'method' : is not an element of 'vtkActor' > > I guess this is a problem of backward compatibility but I don't know how > to solve it. Can anybody help me ? > > Steffen > > > _______________________________________________ > 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 Steffen.Oeltze@Student.Uni-Magdeburg.DE Sun Oct 20 13:43:59 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Sun, 20 Oct 2002 14:43:59 +0200 Subject: [vtkusers] deriving my own class from vtkActor References: <3DB182B4.10300@student.uni-magdeburg.de> <000901c27827$e5a3a540$718cfea9@maggie> Message-ID: <3DB2A50F.5050904@student.uni-magdeburg.de> --------------020707020906050806070604 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Malcolm Drummond wrote: >Hi Steffen > >Try casting to your type of actor - the actor collection contains pointers >to type vtkActor. > Unfortunately, I'm not very familiar with C. How does casting work ? What is the syntax ? Steffen > > >Malcolm > >----- Original Message ----- >From: "Steffen Oeltze" >To: "VTK users" >Sent: Saturday, October 19, 2002 6:05 PM >Subject: [vtkusers] deriving my own class from vtkActor > > >>Dear VTK-users, >> >>I have derived my own class from vtkActor and I have added a couple of >>methods to this new class. >>After creating and modifying such a new actor I add it to my existing >>renderer. At some point I use >>vtkRenderer->GetActors() to retrieve my custom actors. Then, I would >>like to traverse the returned >>list and apply a custom method to each of my selfmade actors. However, I >>get the error: >> >>>'method' : is not an element of 'vtkActor' >>> >>I guess this is a problem of backward compatibility but I don't know how >>to solve it. Can anybody help me ? >> >>Steffen >> >> >>_______________________________________________ >>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 > --------------020707020906050806070604 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Malcolm Drummond wrote:
Hi Steffen

Try casting to your type of actor - the actor collection contains pointers
to type vtkActor.
Unfortunately, I'm not very familiar with C. How does casting work ? What is the syntax ?

Steffen



Malcolm

----- Original Message -----
From: "Steffen Oeltze" <Steffen.Oeltze@Student.Uni-Magdeburg.DE>
To: "VTK users" <vtkusers@public.kitware.com>
Sent: Saturday, October 19, 2002 6:05 PM
Subject: [vtkusers] deriving my own class from vtkActor


Dear VTK-users,

I have derived my own class from vtkActor and I have added a couple of
methods to this new class.
After creating and modifying such a new actor I add it to my existing
renderer. At some point I use
vtkRenderer->GetActors() to retrieve my custom actors. Then, I would
like to traverse the returned
list and apply a custom method to each of my selfmade actors. However, I
get the error:

'method' : is not an element of 'vtkActor'
I guess this is a problem of backward compatibility but I don't know how
to solve it. Can anybody help me ?

Steffen


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




_______________________________________________
This 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


--------------020707020906050806070604-- From feng_1999@eyou.com Sun Oct 20 15:21:22 2002 From: feng_1999@eyou.com (feng_1999@eyou.com) Date: 20 Oct 2002 22:21:22 +0800 Subject: [vtkusers] Who can help me about NURBS Message-ID: <20021020222122.66944.qmail@eyou.com> dear everybody, I know vtk can do the job of surface reconstruction from unorganized point well. But now,I want to use NURBS method to approximate the scattered points(about 1000) as smooth surface.How can I do. The formulation confused me.Suppose I have scattered points which do not satisfiy the matrix condition.How to do the parametrisation job to get the u,v vector and the control points?Is there anybody who can help me?I'll provide detail information about my question.Your kind help will be valuable for me.Thanks! feng ᵽ >Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > >You can reach the person managing the list at > vtkusers-admin@public.kitware.com > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of vtkusers digest..." > > >Today's Topics: > > 1. Volume viewing (Cristian Montagnoli) > 2. deriving my own class from vtkActor (Steffen Oeltze) > >--__--__-- > >Message: 1 >From: "Cristian Montagnoli" >To: >Date: Sat, 19 Oct 2002 10:56:59 -0300 >Subject: [vtkusers] Volume viewing > >Hi vtkusers, > >Is there a some way to read a volume and view each >voxel like a cube (with alpha and color) ? > >I ask such kind of thing because my data sets are >extremely small and the composite functions do not >give me the cube like bevahior. > >Thanks in advance, > >Cristian Montagnoli. > > >--__--__-- > >Message: 2 >Date: Sat, 19 Oct 2002 18:05:08 +0200 >From: Steffen Oeltze >To: VTK users >Subject: [vtkusers] deriving my own class from vtkActor > >Dear VTK-users, > >I have derived my own class from vtkActor and I have added a couple of >methods to this new class. >After creating and modifying such a new actor I add it to my existing >renderer. At some point I use >vtkRenderer->GetActors() to retrieve my custom actors. Then, I would >like to traverse the returned >list and apply a custom method to each of my selfmade actors. However, I >get the error: > >> 'method' : is not an element of 'vtkActor' > >I guess this is a problem of backward compatibility but I don't know how >to solve it. Can anybody help me ? > >Steffen > > > > >--__--__-- > >_______________________________________________ >vtkusers mailing list >vtkusers@public.kitware.com >http://public.kitware.com/mailman/listinfo/vtkusers > > >End of vtkusers Digest > --http://www.eyou.com --ȶɿѵ ʼ ƶǩ 洢...δ From malcolm@geovision.co.za Sun Oct 20 18:40:51 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Sun, 20 Oct 2002 19:40:51 +0200 Subject: [vtkusers] deriving my own class from vtkActor References: <3DB182B4.10300@student.uni-magdeburg.de> <000901c27827$e5a3a540$718cfea9@maggie> <3DB2A50F.5050904@student.uni-magdeburg.de> Message-ID: <002201c2785f$f50e3350$718cfea9@maggie> This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C27870.98C36E10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Steffen Something like ... vtkActorCollection *actors =3D vtkRenderer->GetActors() ; vtkMyNewActor *actor; for (actors->InitTraversal();actor =3D = ((vtkMyNewActor*)(actors->GetNextActor()));) { actor->MyExtendedMethod(); // etc etc } ... but there are much safer ways of casting available now. There should = be something on dynamic and static casting in your compiler help system. Malcolm ----- Original Message -----=20 From: Steffen Oeltze=20 To: Malcolm Drummond ; VTK users=20 Sent: Sunday, October 20, 2002 2:43 PM Subject: Re: [vtkusers] deriving my own class from vtkActor Malcolm Drummond wrote: Hi SteffenTry casting to your type of actor - the actor collection = contains pointersto type vtkActor. Unfortunately, I'm not very familiar with C. How does casting work ? = What is the syntax ? Steffen Malcolm----- Original Message -----From: "Steffen Oeltze" = mailto:GetActors() to retrieve my custom actors. Then, I = wouldlike to traverse the returnedlist and apply a custom method to each = of my selfmade actors. However, Iget the error: 'method' : is not an element of 'vtkActor' I guess this is a problem of backward compatibility but I don't know = howto solve it. Can anybody help me = ?Steffen_______________________________________________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= ------=_NextPart_000_001D_01C27870.98C36E10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Steffen
 
Something like ...
 
vtkActorCollection *actors =3D=20 vtkRenderer->GetActors() ;
vtkMyNewActor *actor;
for (actors->InitTraversal();actor = =3D=20 ((vtkMyNewActor*)(actors->GetNextActor()));)
    {
   =20 actor->MyExtendedMethod();
    // etc = etc
    }
 
... but there are much safer ways of = casting=20 available now. There should be something on dynamic and static = casting in=20 your compiler help system.
 
Malcolm
 
----- Original Message -----
From:=20 Steffen Oeltze =
To: Malcolm=20 Drummond ; VTK users
Sent: Sunday, October 20, 2002 = 2:43=20 PM
Subject: Re: [vtkusers] = deriving my own=20 class from vtkActor


Malcolm Drummond wrote:
Hi =
Steffen

Try casting to your type of actor - the actor collection = contains pointers
to type vtkActor.
Unfortunately,=20 I'm not very familiar with C. How does casting work ? What is the = syntax=20 ?

Steffen



Malcolm

----- Original Message -----
From: = "Steffen Oeltze" mailto:<Steff= en.Oeltze@Student.Uni-Magdeburg.DE
To: "VTK users" mailto:<vtkusers@public.k= itware.com
Sent: Saturday, October 19, 2002 6:05 PM
Subject: = [vtkusers] deriving my own class from vtkActor


Dear VTK-users,

I = have derived my own class from vtkActor and I have added a couple = of
methods to this new class.
After creating and modifying such a = new actor I add it to my existing
renderer. At some point I = use
vtkRenderer->GetActors() to retrieve my custom actors. Then, I = would
like to traverse the returned
list and apply a custom method = to each of my selfmade actors. However, I
get the = error:

'method' : is not an =
element of 'vtkActor'
I guess this =
is a problem of backward compatibility but I don't know how
to solve = it. Can anybody help me = ?

Steffen


_____________________________________________= __
This is the private VTK discussion list.
Please keep messages = on-topic. Check the FAQ at:
<http://public.kitwa=
re.com/cgi-bin/vtkfaq>
Follow this link to =
subscribe/unsubscribe:
http://publi= c.kitware.com/mailman/listinfo/vtkusers




_______________________________________________<= BR>This is the private VTK discussion list.
Please keep messages = on-topic. Check the FAQ at: <http://public.kitwa= re.com/cgi-bin/vtkfaq>
Follow this link to = subscribe/unsubscribe:
http://publi= c.kitware.com/mailman/listinfo/vtkusers

------=_NextPart_000_001D_01C27870.98C36E10-- From sjk60@iastate.edu Mon Oct 21 02:20:01 2002 From: sjk60@iastate.edu (Steve Kirstukas) Date: Sun, 20 Oct 2002 20:20:01 -0500 (CDT) Subject: [vtkusers] vtkAppendFilter doesn't work with fields Message-ID: Hi, With VTK4.0, vtkAppendFilter properly appends points, cells, cell types, scalars, and vectors. But only the first file's fielddata survives the append operation. A quick glance at the code leads me to understand that fielddata is supposed to be supported. Has anyone seen (and resolved) this issue? Thanks, Steve From cnavarro@ncsa.uiuc.edu Mon Oct 21 05:36:53 2002 From: cnavarro@ncsa.uiuc.edu (Christopher M. Navarro) Date: Sun, 20 Oct 2002 23:36:53 -0500 (CDT) Subject: [vtkusers] Visual Studios 6 + vtk setup help Message-ID: I have built the vtk 4.0 source with visual studios 6, but I get link errors when trying to build an example (for instance cone.cxx). Under the tools -> options I set the include directory to vtk\include (I put all of the headers into an *include* directory after building vtk 4.0)...I put all of the *.lib and *.dll files in lib and under tools->options I set the library to vtk\lib I can compile cone.cxx, but when I try to build cone.exe I get link errors like: Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)" (__imp_?Azimuth@vtkCamera@@QAEXN@Z) Can anyone who has set up Visual studios to work with vtk give me a run down of what else they had to set to get the vtk examples to work? Thanks! -chris From goodwin.lawlor@ucd.ie Mon Oct 21 05:59:52 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Mon, 21 Oct 2002 05:59:52 +0100 Subject: [vtkusers] Voxel editor References: <001101c27709$0b9dfef0$a8aafea9@cristian> Message-ID: <000401c278c0$88718470$0a9701c1@highcross> Have a look at www.slicer.org Goodwin ----- Original Message ----- From: "Cristian Montagnoli" To: Sent: Saturday, October 19, 2002 1:47 AM Subject: [vtkusers] Voxel editor > Hi vtkusers, > > Im wasting too much time editing slices in BMP format and > reading them into a vtkbmpreader. It would be great if I > could find a "windows paint"-like program but to work in > 3d. > > Are there any freeware volume editor ? > > Thanks in advance, > > Cristian Montagnoli > > > _______________________________________________ > 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 praveenb@gauri.engr.sgi.com Mon Oct 21 06:22:58 2002 From: praveenb@gauri.engr.sgi.com (Praveen Bhaniramka) Date: Sun, 20 Oct 2002 22:22:58 -0700 Subject: [vtkusers] "Friends of Volumizer" Meeting at IEEE Visualization, 2002, Boston, MA Message-ID: ======================================================================= OpenGL Volumizer "Friends of Volumizer" Meeting IEEE VISUALIZATION 2002, BOSTON, MA Wednesday, Oct. 30th, 5:00pm - 6:00pm The Boston Park Plaza Hotel, Terrace Room ======================================================================= VTK Users, Please join us in Boston, Massachusetts (USA) for the "Friends of Volumizer" meeting at the IEEE Visualization 2002 conference! We'll be discussing the latest happenings with OpenGL Volumizer and giving a sneak preview of version 2.4. We'll also be available after our presentations to answer questions and talk in more detail. Be sure to stop by and say hello. Agenda ------ 5:00 Welcome & Introduction 5:15 Demos Volumizer Overview OpenGL Volumizer 2.4 Sneak Preview Q & A 6:00 Adjourn OpenGL Volumizer in the Conference ================================== SGI booth --------- Pick up more information on Volumizer at the SGI booth in the Exhibits area, where we will be showing live demos of OpenGL Volumizer. Paper Presentation ------------------ Title: "OpenGL Volumizer: A Toolkit for High Quality Volume Rendering of Large Data sets" Authors: Praveen Bhaniramka, Yves Demange Time: Monday, 2:30pm - 3:00pm Location:IEEE Volume Visualization Symposium ======================================================================= Hope to see you there.... - The OpenGL Volumizer team From piotr.kozaczewski@power.alstom.com Mon Oct 21 08:23:40 2002 From: piotr.kozaczewski@power.alstom.com (piotr.kozaczewski@power.alstom.com) Date: Mon, 21 Oct 2002 09:23:40 +0200 Subject: [vtkusers] Mismatched PoindIDs from ExtractEdges Message-ID: Dear VTKers. I want to be able to pick on triangular cells, their edges and nodes of an unstructured grid in a consistent manner. I have a problem with getting correct PointIDs from the picker, when picking on end-points of edges extracted from a triangular grid. I do the following : ... # Build and map a grid -------------------------------------------------------------- vtkDataSetReader reader reader SetFileName "../Data/TriMesh07.vtk" set uGrid [reader GetOutput] vtkDataSetMapper uGridMapper uGridMapper SetInput $uGrid vtkActor uGridActor uGridActor SetMapper uGridMapper # Retrieve edges from the grid vtkExtractEdges extractEdges extractEdges SetInput $uGrid vtkPolyDataMapper mapEdges mapEdges SetInput [extractEdges GetOutput] vtkActor edgeActor edgeActor SetMapper mapEdges # DANGEROUS: defining what to pick -------------------------------------- # Case 1 - picking (triangular) cells and their nodes edgeActor PickableOff uGridActor PickableOn # Case 2 -- picking edges and their end-points #edgeActor PickableOn #uGridActor PickableOff # PROBLEM : When Case 1 (i.e. picking of initial triangles and nodes) is active, I got the correct PointIDs from the picker. In Case 2 (i.e. picking edges and their endpoints), picking in the same "geometrical points" delivers different PointIDs than in Case 1 !!! Where is my error? How to prevent such a mismatch? Could anybody help me please? Thanks in advance, Piotr Kozaczewski From affable@hd2.dot.net.in Mon Oct 21 08:22:31 2002 From: affable@hd2.dot.net.in (cspl) Date: Mon, 21 Oct 2002 12:52:31 +0530 Subject: [vtkusers] Volume export function -- need help Message-ID: <000401c278d4$6ee18af0$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0024_01C27900.B7D22A40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Friends, I am working on vtkVolumeRaycastMIPFunction.I want to export ray castmip = function o/p into buffer=20 which is created by me.But it is giving runtime exception at export = function. Please give me=20 suggestion.I have written code as follows. I have indicated the line of = code raising the=20 exception. Volume *volMIP(Volume *vol) { unsigned short *Buffer =3D NULL; Buffer =3D (unsigned short *) vol->Mem; =20 vtkRenderer *renderer =3DvtkRenderer::New(); vtkRenderWindow *renWin=3DvtkRenderWindow::New(); =20 vtkImageImport *Importer =3D vtkImageImport::New(); Importer->SetDataExtent(1, vol->width, 1, vol->height, 1, vol->depth); Importer->SetWholeExtent(1, vol->width, 1, vol->height, 1, vol->depth); Importer->SetDataScalarTypeToUnsignedShort( ); Importer->SetImportVoidPointer(vol->Mem); // Importing the Buffer =20 =20 vtkVolumeProperty *volumeProperty=3DvtkVolumeProperty::New(); =20 vtkVolumeRayCastIsosurfaceFunction = *iso=3DvtkVolumeRayCastIsosurfaceFunction::New(); vtkVolumeRayCastMapper *volumeMapper=3DvtkVolumeRayCastMapper::New(); =20 vtkVolumeRayCastCompositeFunction =20 *compositeFunction=3DvtkVolumeRayCastCompositeFunction::New(); =20 vtkVolumeRayCastMIPFunction *mip=3DvtkVolumeRayCastMIPFunction ::New(); vtkVolume *volume1=3DvtkVolume::New(); =20 =20 vtkPiecewiseFunction = *opacityTransferFunction=3DvtkPiecewiseFunction::New(); opacityTransferFunction->AddPoint(20,0.0); opacityTransferFunction->AddPoint(255,0.3); vtkColorTransferFunction = *colorTransferFunction=3DvtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0.0,0.0,0.0,0.0); colorTransferFunction->AddRGBPoint(64.0, 1.0,0.0,0.0); colorTransferFunction->AddRGBPoint(128.0,0.0,0.0,1.0); colorTransferFunction->AddRGBPoint(192.0,0.0,1.0,0.0); colorTransferFunction->AddRGBPoint(255.0,0.0,0.2,0.0); =20 volumeProperty->SetColor(colorTransferFunction); volumeProperty->SetScalarOpacity(opacityTransferFunction); volumeProperty->SetInterpolationTypeToLinear(); volumeProperty->ShadeOn(); mip->SetMaximizeMethodToScalarValue(); mip->SetMaximizeMethodToOpacity(); =20 =20 volumeMapper->SetVolumeRayCastFunction(compositeFunction);///for = Raycast Technique volumeMapper->SetVolumeRayCastFunction(mip); =20 volumeMapper->SetSampleDistance(0.25); volumeMapper->SetInput(Importer->GetOutput()); =20 volume1->SetMapper(volumeMapper); volume1->SetProperty(volumeProperty); =20 vtkImageImport *Importer1 =3D vtkImageImport::New(); Importer1->SetDataExtent(1, vol->width, 1, vol->height, 1, vol->depth); Importer1->SetWholeExtent(1, vol->width, 1, vol->height, 1, = vol->depth); Importer1->SetDataScalarTypeToUnsignedShort( ); Importer1->SetImportVoidPointer(volume1); vtkImageExport *Exporter =3D vtkImageExport::New(); Exporter->SetInput(Importer->GetOutput()); =20 ******* Exporter->Export(Buffer); // Exporting the buffer exception is = coming here vol->Mem =3DBuffer; return vol; } ------=_NextPart_000_0024_01C27900.B7D22A40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Friends,
 
I am working on = vtkVolumeRaycastMIPFunction.I want=20 to export ray castmip function o/p into buffer
 
which is created by me.But it is giving = runtime=20 exception at export function.  Please give me
 
suggestion.I have written code as = follows. I have=20 indicated the line of code raising the
 
exception.
 
Volume *volMIP(Volume = *vol)
{
 unsigned=20 short *Buffer =3D NULL;
 Buffer =3D (unsigned short *)=20 vol->Mem;
 
 
 vtkRenderer *renderer=20 =3DvtkRenderer::New();
 vtkRenderWindow=20 *renWin=3DvtkRenderWindow::New();
 
 vtkImageImport = *Importer =3D=20 vtkImageImport::New();
 Importer->SetDataExtent(1, = vol->width, 1,=20 vol->height, 1, =  vol->depth);
 Importer->SetWholeExtent(1,=20 vol->width, 1, vol->height, 1,=20 vol->depth);
 Importer->SetDataScalarTypeToUnsignedShort(=20 );
 Importer->SetImportVoidPointer(vol->Mem);   = //=20 Importing the Buffer
 
 
 
 vtkVolumeProperty=20 *volumeProperty=3DvtkVolumeProperty::New();
 
 vtkVolumeR= ayCastIsosurfaceFunction=20 *iso=3DvtkVolumeRayCastIsosurfaceFunction::New();
 vtkVolumeRayCa= stMapper=20 *volumeMapper=3DvtkVolumeRayCastMapper::New();
 
 vtkVolu= meRayCastCompositeFunction     
 
*compositeFunction=3DvtkVolumeRayCastCompositeFunction::New(); 
 vtkVolumeRayCastMIPFunction=20 *mip=3DvtkVolumeRayCastMIPFunction ::New();
 vtkVolume=20 *volume1=3DvtkVolume::New();
  
 
 vtkPiecew= iseFunction=20 *opacityTransferFunction=3DvtkPiecewiseFunction::New();
 opacityT= ransferFunction->AddPoint(20,0.0);
 opacityTransferFunction-&g= t;AddPoint(255,0.3);
 
 vtkColorTransferFunction=20 *colorTransferFunction=3DvtkColorTransferFunction::New();
 colorT= ransferFunction->AddRGBPoint(0.0,0.0,0.0,0.0);
 colorTransferF= unction->AddRGBPoint(64.0,=20 1.0,0.0,0.0);
 colorTransferFunction->AddRGBPoint(128.0,0.0,0.= 0,1.0);
 colorTransferFunction->AddRGBPoint(192.0,0.0,1.0,0.0)= ;
 colorTransferFunction->AddRGBPoint(255.0,0.0,0.2,0.0);
 
   =20
 volumeProperty->SetColor(colorTransferFunction);
 vo= lumeProperty->SetScalarOpacity(opacityTransferFunction);
 volu= meProperty->SetInterpolationTypeToLinear();
 volumeProperty-&g= t;ShadeOn();
 mip->SetMaximizeMethodToScalarValue();
 = mip->SetMaximizeMethodToOpacity();
 =20
 
 volumeMapper->SetVolumeRayCastFunction(compositeFu= nction);///for=20 Raycast Technique
 
 volumeMapper->SetVolumeRayCastFunction(mip);
 <= BR> volumeMapper->SetSampleDistance(0.25);
 volumeMapper-= >SetInput(Importer->GetOutput());
 
 volume1->Se= tMapper(volumeMapper);
 volume1->SetProperty(volumeProperty);<= BR> 
 vtkImageImport=20 *Importer1 =3D = vtkImageImport::New();
 Importer1->SetDataExtent(1,=20 vol->width, 1, vol->height, 1,=20 vol->depth);
 Importer1->SetWholeExtent(1, vol->width, = 1,=20 vol->height, 1,=20 vol->depth);
 Importer1->SetDataScalarTypeToUnsignedShort( = );
 Importer1->SetImportVoidPointer(volume1);
 vtkImageExport *Exporter =3D=20 vtkImageExport::New();
 Exporter->SetInput(Importer->GetOutput()); =20
******* Exporter->Export(Buffer); //=20 Exporting the buffer exception is coming here
 vol->Mem=20 =3DBuffer;
 return vol;
}
------=_NextPart_000_0024_01C27900.B7D22A40-- From philip@cd.co.uk Mon Oct 21 08:29:55 2002 From: philip@cd.co.uk (Philip Morris Jones) Date: Mon, 21 Oct 2002 08:29:55 +0100 Subject: [vtkusers] Visual Studios 6 + vtk setup help References: Message-ID: <00ef01c278d3$a757d8e0$aa94c1c2@sally> To set up visual studio I think there are three steps: 1) Get all the include files in the right place so they can be found 2) Put all the libaries in the right place so they can be found 3) include the libraries on the link line I think you have done 1 and 2 but not 3 For (3) go to project, settings, on link tab in general add the libraries to the object/library modules field: Opengl32.lib glu32.lib libpng.lib vtkcommon.lib vtkgraphics.lib vtkfiltering.lib vtkio.lib vtkrendering.lib vtkimaging.lib CompDyn.lib rpcrt4.lib oncrpcms.lib or whatever ones you need Philip Philip M. Jones Fax: +44 (0)20 7471 6201 MA, MSc, MIMechE, CEng Tel: +44 (0)20 7471 6200 New Technology Consultant e-mail: philip@cd.co.uk From dharmendra@strandgenomics.com Sat Oct 12 10:00:02 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Sat, 12 Oct 2002 14:30:02 +0530 Subject: [vtkusers] URGENT Message-ID: <5.1.1.6.0.20021012142635.00aa0e38@mail.strandgenomics.com> Hello All, When i try to load vtkRenderingPythonTkWidgets.dll it throws some strangs error interp.call('load ,filename) no such process error. Iam unable to execute the following peice of code. import vtkRenderWidget import vtkTkRenderWidget import Tkinter root = Tkinter.Tk() ren_widget = vtkRenderWidget.vtkTkRenderWidget(root) at this it gives that error thanks in advance dharmendra From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 21 10:38:29 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 21 Oct 2002 11:38:29 +0200 (MEST) Subject: [vtkusers] (no subject) Message-ID: <1035193109.3db3cb15af4be@webmail.uni-magdeburg.de> Hi VTK-users, is there anybody who can tell me whether there are still restrictions concerning the data type being accepted by the vtkVolumeRaycastMapper and the vtkVolumeProMapper ? Thanks, Steffen Oeltze From rrp@imm.dtu.dk Mon Oct 21 10:58:04 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Mon, 21 Oct 2002 11:58:04 +0200 (METDST) Subject: [vtkusers] Visual Studios 6 + vtk setup help In-Reply-To: Message-ID: On Sun, 20 Oct 2002, Christopher M. Navarro wrote: > I have built the vtk 4.0 source with visual studios 6, but I get link > errors when trying to build an example (for instance cone.cxx). Under the > tools -> options I set the include directory to vtk\include (I put all > of the headers into an *include* directory after building vtk 4.0)...I put > all of the *.lib and *.dll files in lib and under tools->options I set the > library to vtk\lib > > I can compile cone.cxx, but when I try to build cone.exe I get link errors > like: > > Cone.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)" > (__imp_?Azimuth@vtkCamera@@QAEXN@Z) > > Can anyone who has set up Visual studios to work with vtk give me a run > down of what else they had to set to get the vtk examples to work? > Thanks! I have written an installation guide to the nightly vtk release (4.1.1). Perhaps you can use some of it. It can be found here www.imm.dtu.dk/~rrp (in the manuals sections) Regards, Rasmus From dharmendra@strandgenomics.com Sat Oct 12 11:09:37 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Sat, 12 Oct 2002 15:39:37 +0530 Subject: [vtkusers] URGENT Message-ID: <5.1.1.6.0.20021012153848.00a7b8f8@mail.strandgenomics.com> help needed for vtkRenderingPythonTkWidgets.dll dharmednra From cormack@chem.vu.nl Mon Oct 21 11:21:23 2002 From: cormack@chem.vu.nl (Drew McCormack) Date: Mon, 21 Oct 2002 12:21:23 +0200 Subject: [vtkusers] Cocoa with VTK Message-ID: I am thinking about writing an introductory article about integrating VTK into Mac OS X Cocoa apps. I think this would be a good way to introduce Cocoa developers to VTK and help both groups of developers. I don't want to step on any toes, so I want to give VTK developers a chance to voice their displeasure, should there be any. I also would like to ask if there is anyone else on the list who is utilizing VTK directly in Cocoa apps, and if so, how they have approached it. In this regard, I found certain problems with interactors in the Cocoa implementation which required fixes in the form of subclassing some of the the VTK-Cocoa classes and overriding mouse event methods. I also found that a standalone VTK view class could be created, which doesn't require the Cocoa developer to explicitly type their windows as vtkCocoaWindows. I was wondering how other Cocoa developers have dealt with these and other Cocoa-related issues. Drew ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack@chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 21 11:54:22 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 21 Oct 2002 12:54:22 +0200 (MEST) Subject: [vtkusers] data type / vtkVolumeRaycastMapper Message-ID: <1035197662.3db3dcdeca3f9@webmail.uni-magdeburg.de> Hi VTK-users, is there anybody who can tell me whether there are still restrictions concerning the data type being accepted by the vtkVolumeRaycastMapper and the vtkVolumeProMapper ? Thanks, Steffen Oeltze From dharmendra@strandgenomics.com Mon Oct 21 11:21:15 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Mon, 21 Oct 2002 15:51:15 +0530 Subject: [vtkusers] help Message-ID: <5.1.1.6.0.20021021155105.00b072a0@mail.strandgenomics.com> Hello All, When i try to load vtkRenderingPythonTkWidgets.dll it throws some strangs error interp.call('load ,filename) no such process error. Iam unable to execute the following peice of code. import vtkRenderWidget import vtkTkRenderWidget import Tkinter root = Tkinter.Tk() ren_widget = vtkRenderWidget.vtkTkRenderWidget(root) at this it gives that error thanks in advance dharmendra From dharmendra@strandgenomics.com Mon Oct 21 13:24:19 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Mon, 21 Oct 2002 17:54:19 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021021175411.00a7bcf8@mail.strandgenomics.com> Hello All, When i try to load vtkRenderingPythonTkWidgets.dll it throws some strangs error interp.call('load ,filename) no such process error. Iam unable to execute the following peice of code. import vtkRenderWidget import vtkTkRenderWidget import Tkinter root = Tkinter.Tk() ren_widget = vtkRenderWidget.vtkTkRenderWidget(root) at this it gives that error thanks in advance dharmendra From berk.geveci@kitware.com Mon Oct 21 13:57:30 2002 From: berk.geveci@kitware.com (Berk Geveci) Date: 21 Oct 2002 08:57:30 -0400 Subject: [vtkusers] deriving my own class from vtkActor In-Reply-To: <3DB2A50F.5050904@student.uni-magdeburg.de> References: <3DB182B4.10300@student.uni-magdeburg.de> <000901c27827$e5a3a540$718cfea9@maggie> <3DB2A50F.5050904@student.uni-magdeburg.de> Message-ID: <1035205051.1735.7.camel@caemlyn.kitwarein.com> If you added the vtkTypeMacro to your class' header, you can use SafeDownCast. This is much safer down static casting: vtkActorCollection *actors = vtkRenderer->GetActors() ; vtkActor *actor; for (actors->InitTraversal();actor=actors->GetNextActor());) { vtkMyActor* myactor = vtkMyActor::SafeDownCast(actor); if (myactor) { actor->MyExtendedMethod(); } // etc etc } -Berk On Sun, 2002-10-20 at 08:43, Steffen Oeltze wrote: > > Malcolm Drummond wrote: > > >Hi Steffen > > > >Try casting to your type of actor - the actor collection contains pointers > >to type vtkActor. > > > Unfortunately, I'm not very familiar with C. How does casting work ? > What is the syntax ? > > Steffen > > > > > > >Malcolm > > > >----- Original Message ----- > >From: "Steffen Oeltze" > >To: "VTK users" > >Sent: Saturday, October 19, 2002 6:05 PM > >Subject: [vtkusers] deriving my own class from vtkActor > > > > > >>Dear VTK-users, > >> > >>I have derived my own class from vtkActor and I have added a couple of > >>methods to this new class. > >>After creating and modifying such a new actor I add it to my existing > >>renderer. At some point I use > >>vtkRenderer->GetActors() to retrieve my custom actors. Then, I would > >>like to traverse the returned > >>list and apply a custom method to each of my selfmade actors. However, I > >>get the error: > >> > >>>'method' : is not an element of 'vtkActor' > >>> > >>I guess this is a problem of backward compatibility but I don't know how > >>to solve it. Can anybody help me ? > >> > >>Steffen > >> > >> > >>_______________________________________________ > >>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 affable@hd2.dot.net.in Mon Oct 21 15:03:26 2002 From: affable@hd2.dot.net.in (cspl) Date: Mon, 21 Oct 2002 19:33:26 +0530 Subject: [vtkusers] create bitmap Message-ID: <002501c2790a$b520e160$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C27938.BA073840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable dear friends, I am working on vtkWin32ImageMapper class to create hbitmap.But in that = createBitmapObject function getting abort.Please give me suggestion = where I am going wrong.I have written code as follows. { LPBITMAPINFO lpbi; // Fill in the BITMAPINFOHEADER lpbi =3D (LPBITMAPINFO) new BYTE[sizeof(BITMAPINFOHEADER) + (256 * = sizeof(RGBQUAD))]; lpbi->bmiHeader.biSize =3D sizeof(BITMAPINFOHEADER); lpbi->bmiHeader.biWidth =3D 512;//size.cx; lpbi->bmiHeader.biHeight =3D 512;//size.cy; lpbi->bmiHeader.biPlanes =3D 1; lpbi->bmiHeader.biBitCount =3D 8; lpbi->bmiHeader.biCompression =3D BI_RGB; lpbi->bmiHeader.biSizeImage =3D 512*512*8;//WIDTHBYTES((DWORD)size.cx * = 8) * size.cy; lpbi->bmiHeader.biXPelsPerMeter =3D 0; lpbi->bmiHeader.biYPelsPerMeter =3D 0; lpbi->bmiHeader.biClrUsed =3D 0; lpbi->bmiHeader.biClrImportant =3D 0; for(int col=3D0;col<256;col++) { //int color=3Drand()%255; lpbi->bmiColors[col].rgbBlue=3D(BYTE)(col); lpbi->bmiColors[col].rgbGreen=3D(BYTE)(col); lpbi->bmiColors[col].rgbRed =3D(BYTE)(col); lpbi->bmiColors[col].rgbReserved=3D0; } LPLOGPALETTE lpLogPal; lpLogPal =3D (LPLOGPALETTE) new BYTE[sizeof(LOGPALETTE) + ((255) * = sizeof(PALETTEENTRY))]; lpLogPal->palVersion =3D 0x0300; lpLogPal->palNumEntries =3D256; =20 for (int i =3D 0; i < 256; i++) { lpLogPal->palPalEntry[i].peRed =3D lpbi->bmiColors[i].rgbRed; lpLogPal->palPalEntry[i].peGreen =3D lpbi->bmiColors[i].rgbGreen; lpLogPal->palPalEntry[i].peBlue =3D lpbi->bmiColors[i].rgbBlue; lpLogPal->palPalEntry[i].peFlags =3D 0; } =20 HDC hMemDC; hMemDC =3D CreateCompatibleDC(dc.m_hDC); CPalette m_Palette; VERIFY( m_Palette.CreatePalette( lpLogPal ) ); =20 HPALETTE m_hPalette=3DCreateHalftonePalette(hMemDC);=20 ::SelectPalette(dc.m_hDC,m_hPalette,FALSE );=20 =20 BYTE *pBits; HBITMAP oldbmp=3DNULL; unsigned char *data; vtkImageReader *Reader =3D vtkImageReader::New(); Reader->SetDataByteOrderToLittleEndian(); Reader->SetDataExtent(0,511,0,511,1,1); = Reader->SetFileName(filepath);//"g:\\1.2.840.113713.10001.1.20076558.428.= 1013450393.36"); Reader->SetDataSpacing(1.0, 1.0, 1.0); Reader->SetDataMask(0x7fff); Reader->SetDataScalarTypeToUnsignedShort();=20 vtkWin32ImageMapper *bb=3DvtkWin32ImageMapper::New(); HBITMAP = hBitmap1=3Dbb->CreateBitmapObject(oldbmp,*lpbi,dc.m_hDC,data,Reader->GetO= utput(),512,512); } Thanking you, regards, Satyanarayana ------=_NextPart_000_001B_01C27938.BA073840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
dear friends,
 
I am working on vtkWin32ImageMapper = class to create=20 hbitmap.But in that createBitmapObject function getting abort.Please = give me=20 suggestion where I am going wrong.I have written code as = follows.
 
{
 

 LPBITMAPINFO lpbi;
 

 // Fill in the BITMAPINFOHEADER
 lpbi =3D = (LPBITMAPINFO)=20 new BYTE[sizeof(BITMAPINFOHEADER) + (256 *=20 sizeof(RGBQUAD))];
 lpbi->bmiHeader.biSize =3D=20 sizeof(BITMAPINFOHEADER);
 lpbi->bmiHeader.biWidth =3D=20 512;//size.cx;
 lpbi->bmiHeader.biHeight =3D=20 512;//size.cy;
 lpbi->bmiHeader.biPlanes =3D=20 1;
 lpbi->bmiHeader.biBitCount =3D=20 8;
 lpbi->bmiHeader.biCompression =3D=20 BI_RGB;
 lpbi->bmiHeader.biSizeImage =3D=20 512*512*8;//WIDTHBYTES((DWORD)size.cx * 8) *=20 size.cy;
 lpbi->bmiHeader.biXPelsPerMeter =3D=20 0;
 lpbi->bmiHeader.biYPelsPerMeter =3D=20 0;
 lpbi->bmiHeader.biClrUsed =3D=20 0;
 lpbi->bmiHeader.biClrImportant =3D 0;
 for(int=20 col=3D0;col<256;col++)
 {
  //int=20 color=3Drand()%255;
  lpbi->bmiColors[col].rgbBlue=3D(BYT= E)(col);
  lpbi->bmiColors[col].rgbGreen=3D(BYTE)(col);  lpbi->bmiColors[col].rgbRed=20 =3D(BYTE)(col);
  lpbi->bmiColors[col].rgbReserved=3D0;
 
 }
 
 LPLOGPALETTE lpLogPal;
 lpLogPal =3D (LPLOGPALETTE) = new=20 BYTE[sizeof(LOGPALETTE) + ((255) *=20 sizeof(PALETTEENTRY))];
 lpLogPal->palVersion =3D=20 0x0300;
 lpLogPal->palNumEntries = =3D256;
 
 for (int i=20 =3D 0; i < 256;=20 i++)
 {
  lpLogPal->palPalEntry[i].peRed =3D=20 lpbi->bmiColors[i].rgbRed;
  lpLogPal->palPalEntry[i].= peGreen=20 =3D=20 lpbi->bmiColors[i].rgbGreen;
  lpLogPal->palPalEntry[i= ].peBlue=20 =3D=20 lpbi->bmiColors[i].rgbBlue;
  lpLogPal->palPalEntry[i]= .peFlags=20 =3D 0;
 }
 
 HDC hMemDC;
 hMemDC =3D=20 CreateCompatibleDC(dc.m_hDC);
 
 CPalette m_Palette;
 VERIFY( m_Palette.CreatePalette( = lpLogPal ) );
 
 
 HPALETTE = m_hPalette=3DCreateHalftonePalette(hMemDC);=20
 ::SelectPalette(dc.m_hDC,m_hPalette,FALSE=20 ); 
 
 BYTE *pBits;
 
 HBITMAP oldbmp=3DNULL;
 unsigned char *data;
 
 vtkImageReader *Reader =3D=20 vtkImageReader::New();
 Reader->SetDataByteOrderToLittleEndian= ();
 Reader->SetDataExtent(0,511,0,511,1,1);
 Reader-&= gt;SetFileName(filepath);//"g:\\1.2.840.113713.10001.1.20076558.428.10134= 50393.36");
 Reader->SetDataSpacing(1.0,=20 1.0,=20 1.0);
 Reader->SetDataMask(0x7fff);
 Reader->SetDat= aScalarTypeToUnsignedShort();=20
 

 vtkWin32ImageMapper=20 *bb=3DvtkWin32ImageMapper::New();
 HBITMAP=20  hBitmap1=3Dbb->CreateBitmapObject(oldbmp,*lpbi,dc.m_hDC,data,Rea= der->GetOutput(),512,512);
}
 

Thanking=20 you,
regards,
Satyanarayana
------=_NextPart_000_001B_01C27938.BA073840-- From affable@hd2.dot.net.in Mon Oct 21 15:04:26 2002 From: affable@hd2.dot.net.in (cspl) Date: Mon, 21 Oct 2002 19:34:26 +0530 Subject: [vtkusers] conversion of imagedata to poly data Message-ID: <002901c2790a$e04ef520$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C27938.DDDC3180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable dear friends, I want how to convert Imagedata to polydata.Please give me suggestion. Thanking you, Regards, satyanarayana ------=_NextPart_000_0026_01C27938.DDDC3180 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
dear friends,
 
I want how to convert Imagedata to = polydata.Please=20 give me suggestion.
 
Thanking=20 you,
Regards,
satyanarayana
------=_NextPart_000_0026_01C27938.DDDC3180-- From prabhu@aero.iitm.ernet.in Mon Oct 21 16:17:27 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 21 Oct 2002 20:47:27 +0530 Subject: [vtkusers] URGENT In-Reply-To: <5.1.1.6.0.20021012142635.00aa0e38@mail.strandgenomics.com> References: <5.1.1.6.0.20021012142635.00aa0e38@mail.strandgenomics.com> Message-ID: <15796.6791.182506.602282@monster.linux.in> Hi, Please give your emails a useful subject line and *dont* shout. Dont post the same message twice in the hope that you will get better or faster help. It does not help and only tends to irritate the people who answer (at any rate it does irritate me). Also try and look at the archives. Some of the questions might have already been answered. Also, remember to give information about what platform, what release of VTK, and how you installed it (built via sources, installed binary etc.). >>>>> "D" == dharmendra writes: D> Hello All, When i try to load vtkRenderingPythonTkWidgets.dll D> it throws some strangs error interp.call('load ,filename) no D> such process error. D> Iam unable to execute the following peice of code. D> import vtkRenderWidget import vtkTkRenderWidget import Tkinter D> root = Tkinter.Tk() ren_widget = D> vtkRenderWidget.vtkTkRenderWidget(root) Is the directory that contains the vtkRenderingPythonTkWidgets.dll in your PATH? Also try copying the vtkRenderingPythonTkWidgets.dll to the directory that contains the vtkRenderWidget.py file. Might help. cheers, prabhu From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 21 18:16:57 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 21 Oct 2002 19:16:57 +0200 Subject: [vtkusers] deriving my own class from vtkActor References: <3DB182B4.10300@student.uni-magdeburg.de> <000901c27827$e5a3a540$718cfea9@maggie> <3DB2A50F.5050904@student.uni-magdeburg.de> <1035205051.1735.7.camel@caemlyn.kitwarein.com> Message-ID: <3DB43689.4060006@student.uni-magdeburg.de> --------------070607090300020404030301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Berk Geveci wrote: >If you added the vtkTypeMacro to your class' header, you >can use SafeDownCast. This is much safer down static casting: > >vtkActorCollection *actors = vtkRenderer->GetActors() ; >vtkActor *actor; > >for (actors->InitTraversal();actor=actors->GetNextActor());) > { > vtkMyActor* myactor = vtkMyActor::SafeDownCast(actor); > if (myactor) > { > actor->MyExtendedMethod(); > } > // etc etc > } > >-Ber > Thank's a lot. How do I add the vtkTypeMacro to my class' header ? > > >On Sun, 2002-10-20 at 08:43, Steffen Oeltze wrote: > >>Malcolm Drummond wrote: >> >>>Hi Steffen >>> >>>Try casting to your type of actor - the actor collection contains pointers >>>to type vtkActor. >>> >>Unfortunately, I'm not very familiar with C. How does casting work ? >>What is the syntax ? >> >>Steffen >> >>> >>>Malcolm >>> >>>----- Original Message ----- >>>From: "Steffen Oeltze" >>>To: "VTK users" >>>Sent: Saturday, October 19, 2002 6:05 PM >>>Subject: [vtkusers] deriving my own class from vtkActor >>> >>> >>>>Dear VTK-users, >>>> >>>>I have derived my own class from vtkActor and I have added a couple of >>>>methods to this new class. >>>>After creating and modifying such a new actor I add it to my existing >>>>renderer. At some point I use >>>>vtkRenderer->GetActors() to retrieve my custom actors. Then, I would >>>>like to traverse the returned >>>>list and apply a custom method to each of my selfmade actors. However, I >>>>get the error: >>>> >>>>>'method' : is not an element of 'vtkActor' >>>>> >>>>I guess this is a problem of backward compatibility but I don't know how >>>>to solve it. Can anybody help me ? >>>> >>>>Steffen >>>> >>>> >>>>_______________________________________________ >>>>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 >>> > > > > > --------------070607090300020404030301 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Berk Geveci wrote:
If you added the vtkTypeMacro to your class' header, you
can use SafeDownCast. This is much safer down static casting:

vtkActorCollection *actors = vtkRenderer->GetActors() ;
vtkActor *actor;

for (actors->InitTraversal();actor=actors->GetNextActor());)
{
vtkMyActor* myactor = vtkMyActor::SafeDownCast(actor);
if (myactor)
{
actor->MyExtendedMethod();
}
// etc etc
}

-Ber
Thank's a lot. How do I add the vtkTypeMacro to my class' header ?


On Sun, 2002-10-20 at 08:43, Steffen Oeltze wrote:
Malcolm Drummond wrote:

Hi Steffen

Try casting to your type of actor - the actor collection contains pointers
to type vtkActor.

Unfortunately, I'm not very familiar with C. How does casting work ? 
What is the syntax ?

Steffen


Malcolm

----- Original Message -----
From: "Steffen Oeltze" <Steffen.Oeltze@Student.Uni-Magdeburg.DE>
To: "VTK users" <vtkusers@public.kitware.com>
Sent: Saturday, October 19, 2002 6:05 PM
Subject: [vtkusers] deriving my own class from vtkActor


Dear VTK-users,

I have derived my own class from vtkActor and I have added a couple of
methods to this new class.
After creating and modifying such a new actor I add it to my existing
renderer. At some point I use
vtkRenderer->GetActors() to retrieve my custom actors. Then, I would
like to traverse the returned
list and apply a custom method to each of my selfmade actors. However, I
get the error:

'method' : is not an element of 'vtkActor'

I guess this is a problem of backward compatibility but I don't know how
to solve it. Can anybody help me ?

Steffen


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:

<http://public.kitware.com/cgi-bin/vtkfaq>

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



_______________________________________________
This 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







--------------070607090300020404030301-- From heller@cs.umass.edu Mon Oct 21 19:19:10 2002 From: heller@cs.umass.edu (Robert Heller) Date: Mon, 21 Oct 2002 14:19:10 -0400 Subject: [vtkusers] VTK 4.0 Example C++ code does not compile! Message-ID: <200210211819.OAA18666@libra.cs.umass.edu> We are finding that the C++ code for VTK 4.0 does not compile. What are we doing wrong? g++ -O2 -march=i386 -mcpu=i686 -I/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx -I/usr/include/vtk -c /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx -o Arrays.o /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx: In function `int main (int, char **)': /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:87: no method `vtkPolyData::New' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:89: invalid use of undefined type `class vtkPolyData' /usr/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `class vtkPolyData' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:90: invalid use of undefined type `class vtkPolyData' /usr/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `class vtkPolyData' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:92: invalid use of undefined type `class vtkPolyData' /usr/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `class vtkPolyData' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:95: invalid use of undefined type `class vtkPolyData' /usr/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `class vtkPolyData' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:104: no method `vtkActor::New' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:105: invalid use of undefined type `class vtkActor' /usr/include/vtk/vtkMapper.h:70: forward declaration of `class vtkActor' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:108: no method `vtkRenderer::New' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:109: invalid use of undefined type `class vtkRenderer' /usr/include/vtk/vtkMapper.h:69: forward declaration of `class vtkRenderer' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:124: invalid use of undefined type `class vtkPolyData' /usr/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `class vtkPolyData' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:126: invalid use of undefined type `class vtkActor' /usr/include/vtk/vtkMapper.h:70: forward declaration of `class vtkActor' /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:127: invalid use of undefined type `class vtkRenderer' /usr/include/vtk/vtkMapper.h:69: forward declaration of `class vtkRenderer' make[1]: *** [Arrays.o] Error 1 make: *** [default_target] Error 2 # This is the CMakeCache file. # For build in directory: /scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx # 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 ######################## //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr/local //Value Computed by CMake DataManipulation_BINARY_DIR:STATIC=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //Value Computed by CMake DataManipulation_SOURCE_DIR:STATIC=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //Single output directory for building all executables. EXECUTABLE_OUTPUT_PATH:PATH= //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH= //Use an installed (versus built from source) version of VTK. Be // sure that VTK_INSTALL_PATH is correct. USE_INSTALLED_VTK:BOOL=1 //What is the path where the file UseVTK.cmake can be found VTK_BINARY_PATH:PATH=NOTFOUND //What is the path where the file include/vtk/UseVTK.cmake can // be found VTK_INSTALL_PATH:PATH=/usr //Path to a program. VTK_PARSE_JAVA_EXE:FILEPATH=/usr/bin/vtkParseJava //Path to a program. VTK_WRAP_JAVA_EXE:FILEPATH=/usr/bin/vtkWrapJava //Path to a program. VTK_WRAP_PYTHON_EXE:FILEPATH=/usr/bin/vtkWrapPython //Path to a program. VTK_WRAP_TCL_EXE:FILEPATH=/usr/bin/vtkWrapTcl ######################## # INTERNAL cache entries ######################## //Path to an executable Arrays_CMAKE_PATH:INTERNAL=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //DO NOT EDIT, BASH loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt BASH:INTERNAL=/bin/bash //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 //DO NOT EDIT, CMAKE_AR loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_AR:INTERNAL=/usr/bin/ar //Advanced flag for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_AR_ARGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_AR_ARGS:INTERNAL=cr //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=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //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=4 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/local/bin/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 //DO NOT EDIT, CMAKE_CXX_AR loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_CXX_AR:INTERNAL=/usr/bin/ar //Advanced flag for variable: CMAKE_CXX_AR CMAKE_CXX_AR-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_AR_ARGS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_AR_ARGS:INTERNAL=cr //Advanced flag for variable: CMAKE_CXX_AR_ARGS CMAKE_CXX_AR_ARGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_COMPILER loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_COMPILER:INTERNAL=g++ //Advanced flag for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_FLAGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_CXX_FLAGS:INTERNAL=-O2 -march=i386 -mcpu=i686 //DO NOT EDIT, CMAKE_CXX_LINK_SHARED loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_LINK_SHARED:INTERNAL=g++ //Advanced flag for variable: CMAKE_CXX_LINK_SHARED CMAKE_CXX_LINK_SHARED-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_MODULE_BUILD_FLAGS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_MODULE_BUILD_FLAGS:INTERNAL=-shared //Advanced flag for variable: CMAKE_CXX_MODULE_BUILD_FLAGS CMAKE_CXX_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_MODULE_LINK_FLAGS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_MODULE_LINK_FLAGS:INTERNAL=-rdynamic //Advanced flag for variable: CMAKE_CXX_MODULE_LINK_FLAGS CMAKE_CXX_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_SHLIB_BUILD_FLAGS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_SHLIB_BUILD_FLAGS:INTERNAL=-shared //Advanced flag for variable: CMAKE_CXX_SHLIB_BUILD_FLAGS CMAKE_CXX_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_SHLIB_CFLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_SHLIB_CFLAGS:INTERNAL=-fPIC //Advanced flag for variable: CMAKE_CXX_SHLIB_CFLAGS CMAKE_CXX_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_SHLIB_LINK_FLAGS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_SHLIB_LINK_FLAGS:INTERNAL=-rdynamic //Advanced flag for variable: CMAKE_CXX_SHLIB_LINK_FLAGS CMAKE_CXX_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_SHLIB_RUNTIME_FLAG loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_SHLIB_RUNTIME_FLAG:INTERNAL=-Wl,-rpath, //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_FLAG CMAKE_CXX_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_CXX_SHLIB_RUNTIME_SEP loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_CXX_SHLIB_RUNTIME_SEP:INTERNAL=: //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_SEP CMAKE_CXX_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_C_COMPILER loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_C_COMPILER:INTERNAL=gcc //Advanced flag for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_C_FLAGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_C_FLAGS:INTERNAL=-O2 -march=i386 -mcpu=i686 //DO NOT EDIT, CMAKE_C_LINK_SHARED loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_C_LINK_SHARED:INTERNAL=gcc //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=-rdynamic //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=-Wl,-rpath, //Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_DL_LIBS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_DL_LIBS:INTERNAL=-ldl //Advanced flag for variable: CMAKE_DL_LIBS CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/bin/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=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //DO NOT EDIT, CMAKE_HP_PTHREADS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_HP_PTHREADS:INTERNAL=0 //Advanced flag for variable: CMAKE_HP_PTHREADS CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_MAKE_PROGRAM loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_MAKE_PROGRAM:INTERNAL=/usr/bin/gmake //Advanced flag for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_MODULE_BUILD_FLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_MODULE_BUILD_FLAGS:INTERNAL=-shared //Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_MODULE_LINK_FLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_MODULE_LINK_FLAGS:INTERNAL=-rdynamic //Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_MODULE_SUFFIX loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_MODULE_SUFFIX:INTERNAL=.so //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 support the ansi stringstream class. CMAKE_NO_ANSI_STRING_STREAM:INTERNAL= //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 //DO NOT EDIT, CMAKE_RANLIB loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_RANLIB:INTERNAL=ranlib //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/usr/local/share/CMake //DO NOT EDIT, CMAKE_SHLIB_BUILD_FLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_BUILD_FLAGS:INTERNAL=-shared //Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_CFLAGS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_CFLAGS:INTERNAL=-fPIC //Advanced flag for variable: CMAKE_SHLIB_CFLAGS CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_LD_LIBS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_LD_LIBS:INTERNAL= //Advanced flag for variable: CMAKE_SHLIB_LD_LIBS CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_LINK_FLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_LINK_FLAGS:INTERNAL=-rdynamic //Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_RUNTIME_FLAG loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_RUNTIME_FLAG:INTERNAL=-Wl,-rpath, //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_RUNTIME_SEP loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_RUNTIME_SEP:INTERNAL=: //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_SHLIB_SUFFIX loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SHLIB_SUFFIX:INTERNAL=.so //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 //DO NOT EDIT, CMAKE_SKIP_RPATH loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_SKIP_RPATH:INTERNAL=NO //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=Linux-2.4.18-10 //DO NOT EDIT, CMAKE_TEMPLATE_FLAGS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_TEMPLATE_FLAGS:INTERNAL= //Advanced flag for variable: CMAKE_TEMPLATE_FLAGS CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_THREAD_LIBS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_THREAD_LIBS:INTERNAL=-lpthread //Advanced flag for variable: CMAKE_THREAD_LIBS CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_USE_PTHREADS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_USE_PTHREADS:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_PTHREADS CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_USE_SPROC loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_USE_SPROC:INTERNAL=0 //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 //DO NOT EDIT, CMAKE_WORDS_BIGENDIAN loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // CMAKE_WORDS_BIGENDIAN:INTERNAL= //Advanced flag for variable: CMAKE_WORDS_BIGENDIAN CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_X_CFLAGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_X_CFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_X_CFLAGS CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CMAKE_X_LIBS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt CMAKE_X_LIBS:INTERNAL=' -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext ' //Advanced flag for variable: CMAKE_X_LIBS CMAKE_X_LIBS-ADVANCED:INTERNAL=1 //DO NOT EDIT, CP loaded from external file. To change this value // edit this file: /usr/include/vtk/CMakeCache.txt CP:INTERNAL=/bin/cp //Path to an executable Cube_CMAKE_PATH:INTERNAL=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //DO NOT EDIT, DART_ROOT loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt DART_ROOT:INTERNAL=NOTFOUND //DO NOT EDIT, DOT loaded from external file. To change this value // edit this file: /usr/include/vtk/CMakeCache.txt DOT:INTERNAL=NOTFOUND //DO NOT EDIT, DOT_PATH loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt DOT_PATH:INTERNAL= //DO NOT EDIT, DOXYGEN loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt DOXYGEN:INTERNAL=/usr/bin/doxygen //DO NOT EDIT, FTGL_BUILD_EXAMPLES loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // FTGL_BUILD_EXAMPLES:INTERNAL=OFF //DO NOT EDIT, GNUPLOT loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt GNUPLOT:INTERNAL=/usr/bin/gnuplot //DO NOT EDIT, GZIP loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt GZIP:INTERNAL=/bin/gzip //DO NOT EDIT, JAVA_ARCHIVE loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt JAVA_ARCHIVE:INTERNAL=NOTFOUND //DO NOT EDIT, JAVA_COMPILE loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt JAVA_COMPILE:INTERNAL=NOTFOUND //DO NOT EDIT, JAVA_RUNTIME loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt JAVA_RUNTIME:INTERNAL=NOTFOUND //DO NOT EDIT, JAVE_AWT_INCLUDE_PATH loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // JAVE_AWT_INCLUDE_PATH:INTERNAL=/usr/local/j2sdk1.3.1/include //DO NOT EDIT, MPIRUN loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt MPIRUN:INTERNAL=/usr/bin/mpirun //DO NOT EDIT, MPI_EXTRA_LIBRARY loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // MPI_EXTRA_LIBRARY:INTERNAL=/usr/lib/liblam.a //DO NOT EDIT, MPI_INCLUDE_PATH loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // MPI_INCLUDE_PATH:INTERNAL=/usr/include //DO NOT EDIT, MPI_LIBRARY loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt MPI_LIBRARY:INTERNAL=/usr/lib/libmpi.a //DO NOT EDIT, MPI_MAX_NUMPROCS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // MPI_MAX_NUMPROCS:INTERNAL=2 //DO NOT EDIT, MPI_POSTFLAGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt MPI_POSTFLAGS:INTERNAL= //DO NOT EDIT, MPI_PREFLAGS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt MPI_PREFLAGS:INTERNAL=-np 2 //DO NOT EDIT, MV loaded from external file. To change this value // edit this file: /usr/include/vtk/CMakeCache.txt MV:INTERNAL=/bin/mv //DO NOT EDIT, OPENGL_INCLUDE_PATH loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // OPENGL_INCLUDE_PATH:INTERNAL=/usr/include //DO NOT EDIT, OPENGL_LIBRARY loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt OPENGL_LIBRARY:INTERNAL=/usr/lib/libGL.so //DO NOT EDIT, PERL loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt PERL:INTERNAL=/usr/bin/perl //Path to an executable RGrid_CMAKE_PATH:INTERNAL=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //DO NOT EDIT, RM loaded from external file. To change this value // edit this file: /usr/include/vtk/CMakeCache.txt RM:INTERNAL=/bin/rm //Path to an executable SGrid_CMAKE_PATH:INTERNAL=/scratch4/heller/VTKTests/VTK/Examples/DataManipulation/Cxx //DO NOT EDIT, TAR loaded from external file. To change this value // edit this file: /usr/include/vtk/CMakeCache.txt TAR:INTERNAL=/bin/tar //DO NOT EDIT, TCL_LIBRARY_DEBUG loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // TCL_LIBRARY_DEBUG:INTERNAL=NOTFOUND //DO NOT EDIT, TCL_STUB_LIBRARY loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // TCL_STUB_LIBRARY:INTERNAL=/usr/lib/libtclstub.a //DO NOT EDIT, TCL_STUB_LIBRARY_DEBUG loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // TCL_STUB_LIBRARY_DEBUG:INTERNAL=NOTFOUND //DO NOT EDIT, TK_LIBRARY_DEBUG loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // TK_LIBRARY_DEBUG:INTERNAL=NOTFOUND //DO NOT EDIT, TK_STUB_LIBRARY loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt TK_STUB_LIBRARY:INTERNAL=/usr/lib/libtkstub.a //DO NOT EDIT, TK_STUB_LIBRARY_DEBUG loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // TK_STUB_LIBRARY_DEBUG:INTERNAL=NOTFOUND //DO NOT EDIT, VTKEXPAT_BINARY_DIR loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKEXPAT_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/expat //DO NOT EDIT, VTKEXPAT_SOURCE_DIR loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKEXPAT_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/expat //DO NOT EDIT, VTKFREETYPE_BINARY_DIR loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKFREETYPE_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/freetype //DO NOT EDIT, VTKFREETYPE_SOURCE_DIR loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKFREETYPE_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/freetype //DO NOT EDIT, VTKFTGL_BINARY_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKFTGL_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/ftgl //DO NOT EDIT, VTKFTGL_SOURCE_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKFTGL_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/ftgl //DO NOT EDIT, VTKJPEG_BINARY_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKJPEG_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/jpeg //DO NOT EDIT, VTKJPEG_SOURCE_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKJPEG_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/jpeg //DO NOT EDIT, VTKPNG_BINARY_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKPNG_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/png //DO NOT EDIT, VTKPNG_SOURCE_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKPNG_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/png //DO NOT EDIT, VTKTIFF_BINARY_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKTIFF_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/tiff //DO NOT EDIT, VTKTIFF_SOURCE_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKTIFF_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/tiff //DO NOT EDIT, VTKZLIB_BINARY_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKZLIB_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/zlib //DO NOT EDIT, VTKZLIB_SOURCE_DIR loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTKZLIB_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK/Utilities/zlib //DO NOT EDIT, VTK_BINARY_DIR loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_BINARY_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK //DO NOT EDIT, VTK_BUILD_PYTHON_EXECUTABLE loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_BUILD_PYTHON_EXECUTABLE:INTERNAL=OFF //DO NOT EDIT, VTK_BUILD_SHARED_LIBS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_BUILD_SHARED_LIBS:INTERNAL=ON //DO NOT EDIT, VTK_DATA_ROOT loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_DATA_ROOT:INTERNAL=/usr/share/doc/vtk-data-4.1.1 //DO NOT EDIT, VTK_DEBUG_LEAKS loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_DEBUG_LEAKS:INTERNAL=OFF //DO NOT EDIT, VTK_DISABLE_TK_INIT loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_DISABLE_TK_INIT:INTERNAL=0 //DO NOT EDIT, VTK_MANGLE_MESA loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_MANGLE_MESA:INTERNAL=OFF //DO NOT EDIT, VTK_OPENGL_HAS_OSMESA loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_OPENGL_HAS_OSMESA:INTERNAL=OFF //Advanced flag for variable: VTK_PARSE_JAVA_EXE VTK_PARSE_JAVA_EXE-ADVANCED:INTERNAL=1 //DO NOT EDIT, VTK_SOURCE_DIR loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_SOURCE_DIR:INTERNAL=/home/bellet/rpm/BUILD/VTK //DO NOT EDIT, VTK_USE_64BIT_IDS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_64BIT_IDS:INTERNAL=OFF //DO NOT EDIT, VTK_USE_ANSI_STDLIB loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_ANSI_STDLIB:INTERNAL=OFF //DO NOT EDIT, VTK_USE_FREETYPE loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_FREETYPE:INTERNAL=ON //DO NOT EDIT, VTK_USE_HYBRID loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_USE_HYBRID:INTERNAL=ON //DO NOT EDIT, VTK_USE_MPI loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_USE_MPI:INTERNAL=ON //DO NOT EDIT, VTK_USE_PARALLEL loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_PARALLEL:INTERNAL=ON //DO NOT EDIT, VTK_USE_PATENTED loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_PATENTED:INTERNAL=ON //DO NOT EDIT, VTK_USE_RENDERING loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_RENDERING:INTERNAL=ON //DO NOT EDIT, VTK_USE_VOLUMEPRO loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // VTK_USE_VOLUMEPRO:INTERNAL=OFF //DO NOT EDIT, VTK_USE_X loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_USE_X:INTERNAL=ON //DO NOT EDIT, VTK_WRAP_JAVA loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_WRAP_JAVA:INTERNAL=ON //Advanced flag for variable: VTK_WRAP_JAVA_EXE VTK_WRAP_JAVA_EXE-ADVANCED:INTERNAL=1 //DO NOT EDIT, VTK_WRAP_PYTHON loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_WRAP_PYTHON:INTERNAL=ON //Advanced flag for variable: VTK_WRAP_PYTHON_EXE VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 //DO NOT EDIT, VTK_WRAP_TCL loaded from external file. To change // this value edit this file: /usr/include/vtk/CMakeCache.txt VTK_WRAP_TCL:INTERNAL=ON //Advanced flag for variable: VTK_WRAP_TCL_EXE VTK_WRAP_TCL_EXE-ADVANCED:INTERNAL=1 //DO NOT EDIT, WGET loaded from external file. To change this // value edit this file: /usr/include/vtk/CMakeCache.txt WGET:INTERNAL=/usr/bin/wget //DO NOT EDIT, vtkCommonJava_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkCommonJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommon; //DO NOT EDIT, vtkCommonPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkCommonPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommon; //DO NOT EDIT, vtkCommonTCL_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkCommonTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;/usr/lib/libtcl.so;vtkCommon; //DO NOT EDIT, vtkCommon_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkCommon_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm; //DO NOT EDIT, vtkFilteringJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkFilteringJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonJava;vtkFiltering; //DO NOT EDIT, vtkFilteringPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkFilteringPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonPython;vtkFiltering; //DO NOT EDIT, vtkFilteringTCL_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkFilteringTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonTCL;vtkFiltering;/usr/lib/libtcl.so; //DO NOT EDIT, vtkFiltering_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkFiltering_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommon; //DO NOT EDIT, vtkGraphicsJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkGraphicsJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonJava;vtkFilteringJava;vtkGraphics; //DO NOT EDIT, vtkGraphicsPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkGraphicsPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringPython;vtkCommonPython;vtkGraphics; //DO NOT EDIT, vtkGraphicsTCL_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkGraphicsTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringTCL;vtkGraphics;/usr/lib/libtcl.so; //DO NOT EDIT, vtkGraphics_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkGraphics_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFiltering; //DO NOT EDIT, vtkHybridJava_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkHybridJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkHybrid;vtkRenderingJava;vtkIOJava; //DO NOT EDIT, vtkHybridPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkHybridPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkRenderingPython;vtkIOPython;/usr/lib/libGL.so;vtkHybrid; //DO NOT EDIT, vtkHybridTCL_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkHybridTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkHybrid;vtkRenderingTCL;vtkIOTCL; //DO NOT EDIT, vtkHybrid_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkHybrid_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkRendering;vtkIO; //DO NOT EDIT, vtkIOJava_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkIOJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonJava;vtkFilteringJava;vtkIO; //DO NOT EDIT, vtkIOPython_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkIOPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringPython;vtkCommonPython;vtkIO; //DO NOT EDIT, vtkIOTCL_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkIOTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringTCL;vtkIO;/usr/lib/libtcl.so; //DO NOT EDIT, vtkIO_LIB_DEPENDS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkIO_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFiltering;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat; //DO NOT EDIT, vtkImagingJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkImagingJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkCommonJava;vtkFilteringJava;vtkImaging; //DO NOT EDIT, vtkImagingPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkImagingPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringPython;vtkCommonPython;vtkImaging; //DO NOT EDIT, vtkImagingTCL_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkImagingTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFilteringTCL;vtkImaging;/usr/lib/libtcl.so; //DO NOT EDIT, vtkImaging_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkImaging_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkFiltering; //DO NOT EDIT, vtkParallelJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkParallelJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkParallel;vtkRenderingJava;vtkIOJava; //DO NOT EDIT, vtkParallelPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkParallelPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkIOPython;vtkRenderingPython;/usr/lib/libGL.so;vtkParallel; //DO NOT EDIT, vtkParallelTCL_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkParallelTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkParallel;vtkIOTCL;vtkRenderingTCL; //DO NOT EDIT, vtkParallel_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkParallel_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;/usr/lib/libmpi.a;/usr/lib/liblam.a;vtkRendering;vtkIO; //DO NOT EDIT, vtkPatentedJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkPatentedJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkPatented;vtkImagingJava;vtkGraphicsJava; //DO NOT EDIT, vtkPatentedPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkPatentedPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkGraphicsPython;vtkImagingPython;vtkPatented; //DO NOT EDIT, vtkPatentedTCL_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkPatentedTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkPatented;vtkIOTCL;vtkGraphicsTCL;vtkImagingTCL; //DO NOT EDIT, vtkPatented_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkPatented_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkImaging;vtkGraphics;vtkIO; //DO NOT EDIT, vtkRenderingJava_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkRenderingJava_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkImagingJava;vtkGraphicsJava;vtkRendering; //DO NOT EDIT, vtkRenderingPythonTkWidgets_LIB_DEPENDS loaded from // external file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkRenderingPythonTkWidgets_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkRendering;/usr/lib/libtcl.so;/usr/lib/libtk.so; //DO NOT EDIT, vtkRenderingPython_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkRenderingPython_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkGraphicsPython;vtkImagingPython;vtkRendering; //DO NOT EDIT, vtkRenderingTCL_LIB_DEPENDS loaded from external // file. To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkRenderingTCL_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkGraphicsTCL;vtkImagingTCL;vtkRendering;/usr/lib/libtcl.so;/usr/lib/libtk.so; //DO NOT EDIT, vtkRendering_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkRendering_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkGraphics;vtkImaging;/usr/lib/libGL.so;vtkftgl;vtkfreetype;-lXt; -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext ; //DO NOT EDIT, vtkexpat_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkexpat_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm; //DO NOT EDIT, vtkfreetype_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkfreetype_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm; //DO NOT EDIT, vtkftgl_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkftgl_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;/usr/lib/libGL.so;vtkfreetype; //DO NOT EDIT, vtkjpeg_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkjpeg_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm; //DO NOT EDIT, vtkpng_LIB_DEPENDS loaded from external file. To // change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkpng_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkzlib; //DO NOT EDIT, vtktiff_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtktiff_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm;vtkzlib;vtkjpeg; //DO NOT EDIT, vtkzlib_LIB_DEPENDS loaded from external file. // To change this value edit this file: /usr/include/vtk/CMakeCache.txt // vtkzlib_LIB_DEPENDS:INTERNAL=-lpthread;-ldl;-lm; PROJECT (DataManipulation) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF (USE_VTK_FILE) ADD_EXECUTABLE(Arrays Arrays.cxx) ADD_EXECUTABLE(Cube Cube.cxx) ADD_EXECUTABLE(SGrid SGrid.cxx) ADD_EXECUTABLE(RGrid RGrid.cxx) TARGET_LINK_LIBRARIES(Arrays vtkRendering) TARGET_LINK_LIBRARIES(Cube vtkRendering) TARGET_LINK_LIBRARIES(SGrid vtkRendering) TARGET_LINK_LIBRARIES(RGrid vtkRendering) goku.cs.umass.edu% cat /etc/redhat-release Red Hat Linux release 7.3 (Valhalla) goku.cs.umass.edu% rpm -q vtk vtk-devel gcc gcc-c++ binutils kernel vtk-4.1.1-1.cvs20020925 vtk-devel-4.1.1-1.cvs20020925 gcc-2.96-112 gcc-c++-2.96-112 binutils-2.11.93.0.2-11 kernel-2.4.18-3 kernel-2.4.18-10 \/ Robert Heller ||InterNet: heller@cs.umass.edu http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com http://www.deepsoft.com /\FidoNet: 1:321/153 From prabhu@aero.iitm.ernet.in Mon Oct 21 19:49:49 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 22 Oct 2002 00:19:49 +0530 Subject: [vtkusers] VTK 4.0 Example C++ code does not compile! In-Reply-To: <200210211819.OAA18666@libra.cs.umass.edu> References: <200210211819.OAA18666@libra.cs.umass.edu> Message-ID: <15796.19533.305761.153124@monster.linux.in> hi, >>>>> "RH" == Robert Heller writes: RH> We are finding that the C++ code for VTK 4.0 does not compile. RH> What are we doing wrong? [snip] Minor nitpick. While its useful that you send in as much information as you can. Try to avoid sinding out large emails like this. Your mail was 40Kb long. Multiply that into 1024 users (very likely a low estimate) and you just generated 40MB of internet traffic! Wow!! Please consider snipping off what you feel are irrelevant and just make an offer to send more information if its needed. Getting this right could be considered black art but its mostly common sense. :) RH> gcc gcc-c++ binutils kernel vtk-4.1.1-1.cvs20020925 RH> vtk-devel-4.1.1-1.cvs20020925 gcc-2.96-112 gcc-c++-2.96-112 RH> binutils-2.11.93.0.2-11 kernel-2.4.18-3 kernel-2.4.18-10 Ahh, this is actually VTK CVS and not VTK 4.0. Anyway, recently the CVS tree has been modified in order to reduce the time taken to compile VTK (a very noble goal!:). So for each and every class that you use directly or indirectly, you need to explicity include the right header files. So in your case consider adding the following lines to your code. #include "vtkPolyData.h" #include "vtkRenderer.h" #include "vtkActor.h" Since in your case you are compiling the VTK tests it looks like you picked a bad day to download the RPM. Just check out the VTK dashboard (link on site) before you download a nightly release. Try a more recent (or an older one). cheers, prabhu -- It was so of old, Atula. It is not just so today. They criticise him who sits in silence, they criticise him who talks a lot. They even criticise him who speaks in moderation. There is not a man in the world who is not criticised. -- The Dhammapada From anast.jm@pg.com Mon Oct 21 20:01:58 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 21 Oct 2002 15:01:58 -0400 Subject: [vtkusers] conversion of imagedata to poly data Message-ID: in vtk4x see the example /Examples/VisualizationAlgorithms/Tcl/imageWarp.tcl ...john =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: "cspl" @public.kitware.com on 10/21/2002 = 07:34 PM ZE5B = =20 "cspl" To: =20 @public.kitware.com Cc: (bcc: Joh= n Anast-JM/PGI) =20 Subject: [vtkusers]= conversion of imagedata =20 to poly data = =20 Sent by: vtkusers-admin@public.kitware.com = =20 10/21/2002 10:04 AM = =20 = =20 = =20 dear friends, I want how to convert Imagedata to polydata.Please give me suggestion.= Thanking you, Regards, satyanarayana = From klimek@grc.nasa.gov Mon Oct 21 16:32:40 2002 From: klimek@grc.nasa.gov (Robert Klimek) Date: Mon, 21 Oct 2002 15:32:40 +0000 Subject: [vtkusers] conversion of imagedata to poly data In-Reply-To: References: Message-ID: <200210211532.40812.klimek@grc.nasa.gov> Hi, Related to this conversion, does anyone know how to go the other way - fr= om=20 polydata to imagedata? I've searched the archives as well as the examples= and=20 I can't find any procedure (or a function) that would do it. Best regards, Bob On Monday October 21 2002 7:01 pm, anast.jm@pg.com wrote: > in vtk4x see the example > > /Examples/VisualizationAlgorithms/Tcl/imageWarp.tcl > > ...john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: "cspl" @public.kitware.com on 10/21/2002 > 07:34 PM ZE5B > > "cspl" To: =20 > @public.kitware.com Cc: (bcc= : > John Anast-JM/PGI) Subject: [vtkusers] conversion of imagedata to = poly > data > Sent by: vtkusers-admin@public.kitware.com > 10/21/2002 10:04 AM > > > > > > > > dear friends, > > I want how to convert Imagedata to polydata.Please give me suggestion. > > Thanking you, > Regards, > satyanarayana > > > > _______________________________________________ > 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 anast.jm@pg.com Mon Oct 21 20:54:38 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 21 Oct 2002 15:54:38 -0400 Subject: [vtkusers] conversion of imagedata to poly data Message-ID: I'm assuming you want 3D imagedata or you could just use the output of a render window. I would think you could resample the polydata points onto a structured points set with vtkShepardMethod...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Robert Klimek @public.kitware.com on 10/21/2002 03:32 PM GMT Robert Klimek To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: Re: [vtkusers] conversion of imagedata to poly data Sent by: vtkusers-admin@public.kitware.com 10/21/2002 11:32 AM Please respond to klimek@grc.nasa.gov Hi, Related to this conversion, does anyone know how to go the other way - from polydata to imagedata? I've searched the archives as well as the examples and I can't find any procedure (or a function) that would do it. Best regards, Bob On Monday October 21 2002 7:01 pm, anast.jm@pg.com wrote: > in vtk4x see the example > > /Examples/VisualizationAlgorithms/Tcl/imageWarp.tcl > > ...john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: "cspl" @public.kitware.com on 10/21/2002 > 07:34 PM ZE5B > > "cspl" To: > @public.kitware.com Cc: (bcc: > John Anast-JM/PGI) Subject: [vtkusers] conversion of imagedata to poly > data > Sent by: vtkusers-admin@public.kitware.com > 10/21/2002 10:04 AM > > > > > > > > dear friends, > > I want how to convert Imagedata to polydata.Please give me suggestion. > > Thanking you, > Regards, > satyanarayana > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to > subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From twtan@cheerful.com Mon Oct 21 20:14:54 2002 From: twtan@cheerful.com (Kevin Tiow Wee TAN) Date: Mon, 21 Oct 2002 20:14:54 +0100 Subject: [vtkusers] problem compile with volumePro include file Message-ID: <3DB4522E.8B63329B@pgr.salford.ac.uk> Hello, I had NO PROBLME compiling the vtkNightly version with Java wrapping, but now I would like to compile the vtkNightly version with downloaded VolumePro support files. I had done what had given by the VTK web-site and set the CMake to have VolumePro add-on, such as Setup the inc and lib directory, etc...etc... I am using Visual Studio 6 to perform the compilation. The compiler kept giving me a list of errors about "Ambigous Symbol" on VLIContext, VLILookupTable in vli.h and as well as VLIContext and VLIVolume in vtkVolumeProVP1000Mapper.h Had anyone tried to intergrate the vtkNightly version with the downloaded VolumePro files? If so, how do you get around this errors??? Any advice/suggestion to solve the problem would be greatly appricated... -- Thanks Kevin ********************************** Manchester Material Science Centre University of Manchester ---------------------------------- Centre for Virtual Environments University of Salford ********************************** From tdeschamps@lbl.gov Mon Oct 21 21:47:19 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Mon, 21 Oct 2002 13:47:19 -0700 Subject: [vtkusers] Pb building and using the STATIC libraries of VTK (CVS version) Message-ID: <3DB467D7.4070801@lbl.gov> Dear VTK users, I have some problems using the static libraries produces by the compilation of the sources of VTk on 2 different platforms: 1) Linux RedHat 7.2 2) SunOs 5.7 My version of VTK is downloaded from the CVS repository. In both cases, the linking against these libraries is not working. It produces a lots of Undefined Symbol, while all the *.a files are called. I used -static on both machines for gcc. And for choosing between static and shared libraries, I just set the cmake flag BUILD_SHARED_LIBS:BOOL=OFF I really want to create an executable independent from the libraries, I really want to use static libraries. Thank you very much for your help Thomas (tdeschamps@lbl.gov) From Joeri Verbiest Mon Oct 21 22:06:03 2002 From: Joeri Verbiest (Joeri Verbiest ) Date: Mon, 21 Oct 2002 23:06:03 +0200 Subject: [vtkusers] problem compile VTK References: <3DB4522E.8B63329B@pgr.salford.ac.uk> Message-ID: <3DB46C3B.E55FD2DE@yahoo.com> --- Forwarded by news2mail for Joeri Verbiest --- Hi, I have a problem installing VTK. I do: env CXX=g++ CC=g++ cmake I get: running cd /opt/VTK && /bin/Templates/cconfigure loading cache ./config.cache checking for gcc... (cached) g++ checking whether the C compiler (g++ ) works... yes checking whether the C compiler (g++ ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether g++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for a BSD compatible install... (cached) /usr/bin/install -c checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of void *... (cached) 4 checking size of char... (cached) 1 checking size of short... (cached) 2 checking size of float... (cached) 4 checking size of double... (cached) 8 checking how to run the C preprocessor... (cached) g++ -E checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... (cached) no checking for dnet_ntoa in -ldnet_stub... (cached) no checking for gethostbyname... (cached) no checking for gethostbyname in -lnsl... (cached) no checking for connect... (cached) no checking for connect in -lsocket... (cached) no checking for remove... (cached) no checking for remove in -lposix... (cached) no checking for shmat... (cached) no checking for shmat in -lipc... (cached) no checking for IceConnectionNumber in -lICE... (cached) no checking whether byte ordering is bigendian... (cached) no checking for limits.h... (cached) yes checking for unistd.h... (cached) yes checking system version (for dynamic loading)... Linux-2.4.4-4GB checking for dlopen in -ldl... (cached) no checking for dld.h... (cached) no checking for sys/prctl.h... (cached) yes checking for pthread.h... (cached) yes checking for pthread_create in -lpthreads... (cached) no checking for pthread_create in -lpthread... (cached) no checking for ar... (cached) /usr/bin/ar creating ./config.status creating CCMakeSystemConfig.cmake running cd /opt/VTK && /bin/Templates/cxxconfigure loading cache ./config.cache checking for c++... (cached) g++ checking whether the C++ compiler (g++ ) works... yes checking whether the C++ compiler (g++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether g++ accepts -g... (cached) yes checking system version (for dynamic loading)... Linux-2.4.4-4GB checking for ansi standard C++ stringstream ... yes checking for ar... (cached) /usr/bin/ar creating ./config.status creating CXXCMakeSystemConfig.cmake cmake: creating : /opt/VTK/Makefile cmake: creating : /opt/VTK/Wrapping/Makefile cmake: creating : /opt/VTK/Utilities/Makefile cmake: creating : /opt/VTK/Utilities/zlib/Makefile cmake: creating : /opt/VTK/Utilities/png/Makefile cmake: creating : /opt/VTK/Utilities/jpeg/Makefile cmake: creating : /opt/VTK/Utilities/Doxygen/Makefile cmake: creating : /opt/VTK/Common/Makefile cmake: creating : /opt/VTK/Filtering/Makefile cmake: creating : /opt/VTK/Imaging/Makefile cmake: creating : /opt/VTK/Graphics/Makefile cmake: creating : /opt/VTK/IO/Makefile cmake: creating : /opt/VTK/Rendering/Makefile cmake: creating : /opt/VTK/Common/Testing/Makefile cmake: creating : /opt/VTK/Common/Testing/Cxx/Makefile cmake: creating : /opt/VTK/Filtering/Testing/Makefile cmake: creating : /opt/VTK/Graphics/Testing/Makefile cmake: creating : /opt/VTK/Graphics/Testing/Cxx/Makefile cmake: creating : /opt/VTK/Imaging/Testing/Makefile cmake: creating : /opt/VTK/Imaging/Testing/Cxx/Makefile cmake: creating : /opt/VTK/IO/Testing/Makefile cmake: creating : /opt/VTK/Rendering/Testing/Makefile cmake: creating : /opt/VTK/Rendering/Testing/Cxx/Makefile I think that this is OK (I hope). Then I do make I get: /bin/cmake -S/opt/VTK -O/opt/VTK -H/opt/VTK -B/opt/VTK cmake.depends is up-to-date /opt/VTK/Wrapping: building default_target cmake.depends is up-to-date /opt/VTK/Utilities: building default_target cmake.depends is up-to-date /opt/VTK/Utilities/zlib: building default_target cmake.depends is up-to-date g++ -I/opt/VTK/Utilities/zlib -I/opt/VTK/Rendering -I/opt/VTK -I/opt/VTK/Common -I/opt/VTK/Filtering -I/opt/VTK/Imaging -I/opt/VTK/Graphics -I/opt/VTK/IO -I/opt/VTK/Utilities/zlib -I/opt/VTK/Utilities/png -I/opt/VTK/Utilities/jpeg -I/opt/VTK/Common/Testing/Cxx -c /opt/VTK/Utilities/zlib/adler32.c -o adler32.o /opt/VTK/Utilities/zlib/adler32.c:21: `adler' was not declared in this scope /opt/VTK/Utilities/zlib/adler32.c:21: `buf' was not declared in this scope /opt/VTK/Utilities/zlib/adler32.c:21: `len' was not declared in this scope /opt/VTK/Utilities/zlib/adler32.c:22: `uLong adler32' redeclared as different kind of symbol /opt/VTK/Utilities/zlib/zlib.h:821: previous declaration of `uLong adler32(long unsigned int, const Bytef *, unsigned int)' /opt/VTK/Utilities/zlib/adler32.c:22: initializer list being treated as compound expression /opt/VTK/Utilities/zlib/adler32.c:22: syntax error before `adler' /opt/VTK/Utilities/zlib/adler32.c:25: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:27: `adler' was not declared in this scope /opt/VTK/Utilities/zlib/adler32.c:30: parse error before `if' /opt/VTK/Utilities/zlib/adler32.c:34: syntax error before `-=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:37: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:38: syntax error before `-=' /opt/VTK/Utilities/zlib/adler32.c:42: syntax error before `+=' /opt/VTK/Utilities/zlib/adler32.c:44: syntax error before `%=' /opt/VTK/Utilities/zlib/adler32.c:45: syntax error before `%=' make[5]: *** [adler32.o] 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 What is the problem. Thanks JV From ZhangZ@mail.nlm.nih.gov Mon Oct 21 22:14:26 2002 From: ZhangZ@mail.nlm.nih.gov (Zhan Zhang) Date: Mon, 21 Oct 2002 17:14:26 -0400 Subject: [vtkusers] questions about vtk Marching Square filter Message-ID: Hi, I have some questions about the vtk Marching Squares filter. Suppose I have a two-dimensional binary image, in which there is a donut-like object. If I use marching square to extract the shape boundary, I should get two circles (the inner and outer boundaries of the donut-like object). I find that in the output file (vtk Poly Data file) of the vtk marching square filter, the Cells Part are only line cells---no polygons. In fact, what I am most interested in is the connectivity lists of the points on these two boundaries, so I have to generate these two point-lists (a point-list here represents one circular boundary) by myself. 1) Can anyone tell me whether VTK marching square provides such functionality? 2) Suppose I have to generate such lists by myself strictly according to the point connectivity indirectly given to me in the Line Cells Part of the vtk Poly Data file, or suppose vtk can do this, my next question is: suppose that in the binary image I traverse the calculated point list representing the outer circle and that I look at my right hand side and I always see "black", if I do the same thing on the second point list representing the inner circle, will I always see "black" if look at my right hand side? Hopefully I can get the answers. Thanks for reading this email. Zhan From John Biddiscombe" Message-ID: <000a01c2794f$e8bea260$0100a8c0@tigger> Try vtkStripper to join line segments into a polygon. JB ----- Original Message ----- From: "Zhan Zhang" To: Sent: Monday, October 21, 2002 10:14 PM Subject: [vtkusers] questions about vtk Marching Square filter > Hi, > > I have some questions about the vtk Marching Squares filter. > > Suppose I have a two-dimensional binary image, in which there is a > donut-like object. If I use marching square to extract the shape > boundary, I should get two circles (the inner and outer boundaries of > the donut-like object). I find that in the output file (vtk Poly Data > file) of the vtk marching square filter, the Cells Part are only line > cells---no polygons. In fact, what I am most interested in is the > connectivity lists of the points on these two boundaries, so I have to > generate these two point-lists (a point-list here represents one > circular boundary) by myself. > 1) Can anyone tell me whether VTK marching square provides such > functionality? > 2) Suppose I have to generate such lists by myself strictly according > to the point connectivity indirectly given to me in the Line Cells Part > of the vtk Poly Data file, or suppose vtk can do this, my next question > is: suppose that in the binary image I traverse the calculated point > list representing the outer circle and that I look at my right hand side > and I always see "black", if I do the same thing on the second point > list representing the inner circle, will I always see "black" if > look at my right hand side? > > Hopefully I can get the answers. Thanks for reading this email. > > Zhan > > _______________________________________________ > 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 dharmendra@strandgenomics.com Tue Oct 22 06:10:14 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 22 Oct 2002 10:40:14 +0530 Subject: [vtkusers] vtkRenderingPythonTkWidgets.dll(couldn't load this library) Message-ID: <5.1.1.6.0.20021022103239.00af94c8@mail.strandgenomics.com> Hi All, I have built vtkNightly from sources. vtkRenderingPythonTkWidgets.dll doesn't come with binary installables. but iam unable to load that dll. this is a small peice of code which loads that dll import Tkinter root = Tkinter.Tk() root.tk.eval('load vtkRenderingPythonTkWidgets.dll') when i execute this on the command prompt it says couldn't load library "vtkRenderingPythonTkWidgets.dll": no such process TclError: couldn't load library "vtkRenderingPythonTkWidgets.dll": this library or a dependen library path. I dont know what this error means. I need some help on this.Would be very glad if someone can help me out. thanks dharmendra. From lisa.avila@kitware.com Tue Oct 22 06:23:58 2002 From: lisa.avila@kitware.com (Lisa S. Avila) Date: Tue, 22 Oct 2002 01:23:58 -0400 Subject: [vtkusers] data type / vtkVolumeRaycastMapper In-Reply-To: <1035197662.3db3dcdeca3f9@webmail.uni-magdeburg.de> Message-ID: <5.1.1.6.0.20021022012316.02c820b0@pop.biz.rr.com> Hello Steffen, Currently only unsigned char and unsigned short are supported by the volume mappers. Lisa At 06:54 AM 10/21/2002, Steffen Oeltze wrote: >Hi VTK-users, > >is there anybody who can tell me whether there are still restrictions >concerning the data type being accepted by the vtkVolumeRaycastMapper >and the vtkVolumeProMapper ? > >Thanks, >Steffen Oeltze >_______________________________________________ >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@acfr.usyd.edu.au Tue Oct 22 06:25:03 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 22 Oct 2002 15:25:03 +1000 Subject: [vtkusers] Problem with surface reconstruction and contour filter in C++. In-Reply-To: <001e01c273e1$e03d8840$0100a8c0@tigger> Message-ID: <007e01c2798b$600d13c0$88d24e81@acfr.usyd.edu.au> I found the problem! It has to do with Update(). If you do surf->Update(); immediately after surf->SetInput() contouring doesn't work. So the following code works OK. polyData->Modified(); surf->SetInput( polyData ); // Contour at 0 to extract the surface. vtkContourFilter * cf = vtkContourFilter::New(); cf->SetInput( surf->GetOutput() ); cf->SetValue(0,0.0); // Sometimes the contouring algorithm can create a volume whose gradient // vector and ordering of polygon (using the right hand rule) are // inconsistent. vtkReverseSense cures this problem. vtkReverseSense * rev = vtkReverseSense::New(); rev->SetInput(cf->GetOutput()); rev->ReverseCellsOn(); rev->ReverseNormalsOn(); rev->Update(); //polyData->Reset(); polyData->Initialize(); polyData->DeepCopy(rev->GetOutput());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: John Biddiscombe [mailto:jbiddiscombe@skippingmouse.co.uk] Sent: Tuesday, 15 October 2002 10:29 To: a.maclean@acfr.usyd.edu.au; vtkusers@public.kitware.com Subject: Re: [vtkusers] Problem with surface reconstruction and contour filter in C++. > However it still doesn't fix my problem, in that the contour filter is > not returning any data. Oh. Sorry, I only looked at the compile error. My first guess would be // Description: // If you want to contour by an arbitrary array, then set its name here. // By default this in NULL and the filter will use the active scalar array. vtkGetStringMacro(InputScalarsSelection); void SelectInputScalars(const char *fieldName) {this->SetInputScalarsSelection(fieldName);} Try setting the scalar name to something appropriate and see if that helps. Could be somehow you're getting a different scalar name in your data somehow (and the contour filter isn't using it). JB From prabhu@aero.iitm.ernet.in Tue Oct 22 06:27:47 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 22 Oct 2002 10:57:47 +0530 Subject: [vtkusers] vtkRenderingPythonTkWidgets.dll(couldn't load this library) In-Reply-To: <5.1.1.6.0.20021022103239.00af94c8@mail.strandgenomics.com> References: <5.1.1.6.0.20021022103239.00af94c8@mail.strandgenomics.com> Message-ID: <15796.57811.249119.624413@monster.linux.in> >>>>> "D" == dharmendra writes: D> TclError: couldn't load library D> "vtkRenderingPythonTkWidgets.dll": this library or a dependen D> library path. D> I dont know what this error means. Looks like Tcl is unable to load this library. Things to try. (1) Try putting the directory that contains vtkRenderingPythonTkWidgets.dll in your system PATH. IIRC that is all that I needed to do when I installed pre-built binaries (thanks to Les Schaffer). (2) Move vtkRenderingPythonTkWidgets.dll to your system directory. IIRC Windows/system or something (not sure) and try again. (3) Is Tcl/Tk also compiled from source? Or is it a binary install? Maybe there is some complication with Tcl/Tk. Could it be built statically, in which case it is unable to load a new library dynamically? Also, did you read VTK/Wrapping/Python/README.txt? A while ago I added a section dedicated to installation of VTK-Python on Unix and Windows. cheers, prabhu From prabhu@aero.iitm.ernet.in Tue Oct 22 06:29:48 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 22 Oct 2002 10:59:48 +0530 Subject: [vtkusers] Pb building and using the STATIC libraries of VTK (CVS version) In-Reply-To: <3DB467D7.4070801@lbl.gov> References: <3DB467D7.4070801@lbl.gov> Message-ID: <15796.57932.678758.480954@monster.linux.in> >>>>> "TD" == Thomas Deschamps writes: TD> In both cases, the linking against these libraries is not TD> working. It produces a lots of Undefined Symbol, while all the TD> *.a files are called. I used -static on both machines for TD> gcc. And for choosing between static and shared libraries, I Could you please note the undefined symbols and give the list an edited (for brevity) list of those symbols that the linker is complaining about? cheers, prabhu From dharmendra@strandgenomics.com Tue Oct 22 07:03:59 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 22 Oct 2002 11:33:59 +0530 Subject: [vtkusers] vtkNightly dll's Message-ID: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> Hello All, some one let me know where i can find vtkNightly dll's just like vtk dll's from Les Schaffer site thanks, dharmendra From andy.cedilnik@kitware.com Tue Oct 22 12:47:10 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 22 Oct 2002 07:47:10 -0400 Subject: [vtkusers] vtkNightly dll's In-Reply-To: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> References: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> Message-ID: <1035287230.792.5513.camel@xanth.kitwarein.com> Hello Dharmendra, Try www.vtk.org. Andy On Tue, 2002-10-22 at 02:03, Dharmendra wrote: > Hello All, > some one let me know where i can find vtkNightly dll's just like vtk > dll's from Les Schaffer site From billlist@nycap.rr.com Tue Oct 22 14:35:10 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Tue, 22 Oct 2002 09:35:10 -0400 Subject: [vtkusers] Pb building and using the STATIC libraries of VTK (CVS version) In-Reply-To: <3DB467D7.4070801@lbl.gov> Message-ID: <5.1.1.6.0.20021022093111.03cd6008@pop.nycap.rr.com> With static libraries the order that you link libraries is important. Unix linkers perform only a single pass, so you want the libraries to be in the order of using as many symbols as possible, to least number of symbols. For example, vtkGraphics should come before vtkCommon. With shared libraries, you always get the entire library so order is not a problem. With static libraries, you only get what you need. If you use cmake for your project, the library ordering is maintained by cmake, and should work for both shared and static builds. -Bill At 01:47 PM 10/21/2002 -0700, Thomas Deschamps wrote: >Dear VTK users, > >I have some problems using the static libraries produces by the compilation of the sources of VTk on 2 different platforms: >1) Linux RedHat 7.2 >2) SunOs 5.7 > >My version of VTK is downloaded from the CVS repository. > >In both cases, the linking against these libraries is not working. It produces a lots of Undefined Symbol, while all the *.a files are called. >I used -static on both machines for gcc. And for choosing between static and shared libraries, I just set the cmake flag BUILD_SHARED_LIBS:BOOL=OFF >I really want to create an executable independent from the libraries, I really want to use static libraries. > >Thank you very much for your help > >Thomas (tdeschamps@lbl.gov) > >_______________________________________________ >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 apbai@yahoo.com Tue Oct 22 16:37:03 2002 From: apbai@yahoo.com (P Bai) Date: Tue, 22 Oct 2002 08:37:03 -0700 (PDT) Subject: [vtkusers] vtkDecimatePro.h compile error in Microsoft VC++ In-Reply-To: Message-ID: <20021022153703.53273.qmail@web13102.mail.yahoo.com> Hi, I tried to use vtkDecimatePro in my code. But I keep getting this error message while compiling: ..\vtk40\include\vtk\vtkdecimatepro.h(385) : error C2059: syntax error : 'constant' ..\vtk40\include\vtk\vtkdecimatepro.h(385) : error C2238: unexpected token(s) preceding ';' I have no idea what it is about. Even when I comment those lines, the errors are still the same. Has anyone have this problem before? Thanks. P __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From klimek@grc.nasa.gov Tue Oct 22 13:13:21 2002 From: klimek@grc.nasa.gov (Robert Klimek) Date: Tue, 22 Oct 2002 12:13:21 +0000 Subject: [vtkusers] conversion of imagedata to poly data In-Reply-To: References: Message-ID: <200210221213.21610.klimek@grc.nasa.gov> Thanks for the reply, but no, I'm working with 2D data; nothing about wha= t I'm=20 doing is 3D. Basically here's what I'm trying to do. I read single tiff f= ile=20 (a 2D image). I do some 2D image processing by executing the Canny edge=20 filter. You can see it at: http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Graphics/Test= ing/Tcl/Canny.tcl The output of this filter is a vtkSubPixelPositionEdgels data but if I fe= ed it=20 into vtkPolyDataMapper2D then I get polydata output. Now I'm just trying to put it back in a 2D vtkImageData format so that I = can=20 display it inside my Python/wxPython program (if I can convert the output= of=20 the filter to vtkImageData then I'm home free, because I know how to conv= et=20 vtkImageData to wxImage format). I've tried converting vtkSubPixelPositionEdgels to vtkImageData to no ava= il.=20 I've also tried converting the vtkPolyDataMapper output to vtkImageData t= o no=20 avail. BTW, the vtkShepardMethod appears to work with only 3D data. Bob On Monday October 21 2002 7:54 pm, anast.jm@pg.com wrote: > I'm assuming you want 3D imagedata or you could just use the output of = a > render window. I would think you could resample the polydata points ont= o a > structured points set with vtkShepardMethod...john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: Robert Klimek @public.kitware.com on 10/21/2= 002 > 03:32 PM GMT > > Robert Klimek To: =20 > vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: = John > Anast-JM/PGI) Subject: Re: [vtkusers] conversion of imagedata to p= oly > data Sent by: > vtkusers-admin@public.kitware.com > 10/21/2002 11:32 AM > Please respond to klimek@grc.nasa.gov > > > > > > Hi, > > Related to this conversion, does anyone know how to go the other way - = from > polydata to imagedata? I've searched the archives as well as the exampl= es > and I can't find any procedure (or a function) that would do it. > > Best regards, > Bob > > On Monday October 21 2002 7:01 pm, anast.jm@pg.com wrote: > > in vtk4x see the example > > > > /Examples/VisualizationAlgorithms/Tcl/imageWarp.tcl > > > > ...john > > > > > > > > Internet Mail Message > > Received from host: public.kitware.com > > [24.97.130.19] > > > > > > > > From: "cspl" @public.kitware.com on 10/21/200= 2 > > 07:34 PM ZE5B > > > > "cspl" To: > > @public.kitware.com Cc: (b= cc: > > John Anast-JM/PGI) Subject: [vtkusers] conversion of imagedata t= o > > poly data > > Sent by: vtkusers-admin@public.kitware.com > > 10/21/2002 10:04 AM > > > > > > > > > > > > > > > > dear friends, > > > > I want how to convert Imagedata to polydata.Please give me suggestio= n. > > > > Thanking you, > > Regards, > > satyanarayana > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > Follow this link to > > subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://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 sstewart@numeritech.com Tue Oct 22 18:40:45 2002 From: sstewart@numeritech.com (Scott Stewart) Date: Tue, 22 Oct 2002 10:40:45 -0700 Subject: [vtkusers] Tcl vtkFloatArray "SetArray" method available? Message-ID: <697E18BF23D4264786FBE2B3AAD7BEC63A9AA1@exmail3-1> From the Tcl API, does vtkFloatArray provide access to its "SetArray" method? If so, what syntax should I use? I could not find an example of it in the Examples or Testing directories, though it seems like a useful call. However, if I call it, I get the typical "could not find requested method: SetArray or the method was called with incorrect arguments." I want to populate a Float Array as quickly as possible, rather than using a Tcl loop. Thanks for any help, -- Scott Stewart Numerical Technologies, Inc. From andresba@hotmail.com Tue Oct 22 19:52:28 2002 From: andresba@hotmail.com (Andres Barrera) Date: Tue, 22 Oct 2002 13:52:28 -0500 Subject: [vtkusers] vtkRenderWindowInteractor Message-ID: Hello list, I am using vtk 4.0 and C++ (Borland). I assign the display and interaction to my own wondow (or other objects like pannels, etc.) I have no preoblem getting the mouse events, but the default keyboard "c", "w", "t", etc doesnt't work. Why am I getting the MOUSE events by and not KEY events? vtkRenderWindowInteractor *iren; // an interactor .... renWin->SetParentId ( MainForm->Handle ); iren = vtkWin32RenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // begin interaction Thank you in advance for any help or idea Andres _________________________________________________________________ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp From weinberg@osprey.astro.umass.edu Tue Oct 22 22:00:37 2002 From: weinberg@osprey.astro.umass.edu (Martin D. Weinberg) Date: Tue, 22 Oct 2002 17:00:37 -0400 Subject: [vtkusers] SetExitMethod in 3.2 Message-ID: <20021022170037.6f313deb.weinberg@osprey.astro.umass.edu> Folks, SetExitMethod seems to not work with source code that worked in 3.1. That is, a 'e' or a 'q' exits rather than calling the function specifed in the SetExitMethod call. I realize that folks are onto 4.0 now, but does anybody have a clue? Thanks, --Martin -- Martin Weinberg Phone: (413) 545-3821 Dept. of Astronomy FAX: (413) 545-4223 530 Graduate Research Tower weinberg@astro.umass.edu University of Massachusetts http://www.astro.umass.edu/~weinberg/ Amherst, MA 01003-4525 From andresba@hotmail.com Tue Oct 22 22:08:42 2002 From: andresba@hotmail.com (Andres Barrera) Date: Tue, 22 Oct 2002 16:08:42 -0500 Subject: [vtkusers] vtkRenderWindowInteractor Message-ID: Hi Marc, Finally what I did is catching the KEY event myself and call "iren->GetInteractorStyle()->OnChar(0,0,'w', 1);" with the proper CHAR ('w' in this example) For sure there is a better way to do that, but I had enough for today. May be sometime I will change it. Thanks again for your collaboration Andres > >Hi again > >There is a way you can toggle with the correct key between the two >interactor modes. It's been so long ago now I forgot how to do it. >I had the same problem and after toggling, it worked correctly. > >Something else that I did, in case you're interested. I found the >interaction using the mouse very sluggish so the way I got around to it >was, >I created my own invisible window above the renderer (same size, same pixel >alignment). I have all the required info to do this even in 3D. I then >can >rubber band, etc. in real time and just pass the mouse clicks to the >renderer. > >Just thought I'd pass that on. > >So long > >-----Original Message----- >From: Andres Barrera [mailto:andresba@hotmail.com] >Sent: Tuesday, October 22, 2002 3:21 PM >To: Jaspar,Marc,TRENTON,Engineering >Subject: RE: [vtkusers] vtkRenderWindowInteractor > > >Thank you Marc, > > I've been trying both Camera and Actor mode (TrackBall and Joystick), >but >it still doesn't get the keyboard events........ > > I'll keep trying things. > > Thank you again! > > Andres > > > > >Hi > > > >I had the same problem with Borland (though it's not a Borland problem). >I > >change the interactor style and the keyboard worked fine. > > > >So Long > > > >-----Original Message----- > >From: Andres Barrera [mailto:andresba@hotmail.com] > >Sent: Tuesday, October 22, 2002 2:52 PM > >To: vtkusers@public.kitware.com > >Subject: [vtkusers] vtkRenderWindowInteractor > > > > > >Hello list, > > I am using vtk 4.0 and C++ (Borland). I assign the display and > >interaction > > > >to my own wondow (or other objects like pannels, etc.) > > > > I have no preoblem getting the mouse events, but the default keyboard > >"c", > > > >"w", "t", etc doesnt't work. Why am I getting the MOUSE events by and not > >KEY events? > > > > vtkRenderWindowInteractor *iren; // an interactor > > .... > > renWin->SetParentId ( MainForm->Handle ); > > iren = vtkWin32RenderWindowInteractor::New(); > > iren->SetRenderWindow(renWin); // begin interaction > > > > Thank you in advance for any help or idea > > > > Andres > >_________________________________________________________________ >Unlimited Internet access -- and 2 months free! Try MSN. >http://resourcecenter.msn.com/access/plans/2monthsfree.asp _________________________________________________________________ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp From David.Pont@ForestResearch.co.nz Wed Oct 23 01:08:43 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Wed, 23 Oct 2002 13:08:43 +1300 Subject: [vtkusers] Applications built on vtk Message-ID: Hi vtk users, We have a new employee that is interested in working on creation of 3D models from 2D images, and feature extraction from the resulting 3D models. Because this is a research project the ability to connect pre-exisitng algorithms with developmental ones is a basic requirement, rather than 'packaged solutions'. This is not my area of expertise, but both ITK and Slicer look like candidates for useful development environments. Can anyone knowledgeable comment? Perhaps compare and contrast the key features of these two applications, and any others that could be useful. thanks in advance Dave Pont From prabhu@aero.iitm.ernet.in Wed Oct 23 08:10:35 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 23 Oct 2002 12:40:35 +0530 Subject: [vtkusers] vtkNightly dll's In-Reply-To: <1035287230.792.5513.camel@xanth.kitwarein.com> References: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> <1035287230.792.5513.camel@xanth.kitwarein.com> Message-ID: <15798.19307.891995.411665@monster.linux.in> >>>>> "AC" == Andy Cedilnik writes: AC> Hello Dharmendra, Try www.vtk.org. Yes, but the vtk*Python.exe does not specify which version of Python, Tcl/Tk etc. it requires. So its unlikely people will download it without knowing what it requires. Also, where does it install VTK-Python? Can someone who uses/builds these please clarify? Actually, if you want you can easily build a distutils based exe file for VTK-Python. Do this on a windows machine with Python installed: $ cd Wrapping/Python $ python setup.py bdist_wininst That should do the trick and build a distutils based exe that will install VTK-Python correctly with all the Python files and the DLLs on Windows if Python is already installed. Could some Windows + VTK Python user please check this? I'm asking since I cannot test under Windows. cheers, prabhu From Swapna.Kondagiri@geind.ge.com Wed Oct 23 11:51:06 2002 From: Swapna.Kondagiri@geind.ge.com (Kondagiri, Swapna (MED, Contractor)) Date: Wed, 23 Oct 2002 16:21:06 +0530 Subject: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKIni t Message-ID: <10B96F9B1453D61191B400508B650D9402E1203A@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27A82.16FAFD80 Content-Type: text/plain; charset="iso-8859-1" hi, i've a problem while running Cone.java.Here are the exceptions. Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkConeSource.VTKInit(Native Method) at vtk.vtkObject.(vtkObject.java:97) at vtk.vtkProcessObject.(vtkProcessObject.java:86) at vtk.vtkSource.(vtkSource.java:86) at vtk.vtkPolyDataSource.(vtkPolyDataSource.java:30) at vtk.vtkConeSource.(vtkConeSource.java:90) at Cone.main(Cone.java:31) please send me the solution as early as possible. with regards , swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27A82.16FAFD80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi,
 
   i've a=20 problem while running Cone.java.Here are the = exceptions.
 
 
Exception in = thread "main"=20 java.lang.UnsatisfiedLinkError:=20 VTKInit
        at=20 vtk.vtkConeSource.VTKInit(Native=20 Method)
        at=20 vtk.vtkObject.<init>(vtkObject.java:97)
    = ;   =20 at=20 vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
 &nb= sp;     =20 at=20 vtk.vtkSource.<init>(vtkSource.java:86)
    = ;   =20 at=20 vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
 &= nbsp;     =20 at=20 vtk.vtkConeSource.<init>(vtkConeSource.java:90)
  &nb= sp;    =20 at Cone.main(Cone.java:31)
 
please send me the = solution as=20 early as possible.
 
          &nb= sp;           =20 with regards ,
          &nb= sp;           &nb= sp;           &nb= sp;=20 swapna


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27A82.16FAFD80-- From Swapna.Kondagiri@geind.ge.com Wed Oct 23 11:56:35 2002 From: Swapna.Kondagiri@geind.ge.com (Kondagiri, Swapna (MED, Contractor)) Date: Wed, 23 Oct 2002 16:26:35 +0530 Subject: FW: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLi nkError: VTKIni t Message-ID: <10B96F9B1453D61191B400508B650D9402E12060@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27A82.DA8EE450 Content-Type: text/plain; charset="iso-8859-1" -----Original Message----- From: Kondagiri, Swapna (MED, Contractor) [mailto:Swapna.Kondagiri@geind.ge.com] Sent: Wednesday, October 23, 2002 4:21 PM To: vtkusers@public.kitware.com Subject: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKIni t hi, i've a problem while running Cone.java.Here are the exceptions. Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkConeSource.VTKInit(Native Method) at vtk.vtkObject.(vtkObject.java:97) at vtk.vtkProcessObject.(vtkProcessObject.java:86) at vtk.vtkSource.(vtkSource.java:86) at vtk.vtkPolyDataSource.(vtkPolyDataSource.java:30) at vtk.vtkConeSource.(vtkConeSource.java:90) at Cone.main(Cone.java:31) please send me the solution as early as possible. with regards , swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27A82.DA8EE450 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
-----Original Message-----
From: Kondagiri, Swapna = (MED,=20 Contractor) [mailto:Swapna.Kondagiri@geind.ge.com]
Sent: = Wednesday,=20 October 23, 2002 4:21 PM
To:=20 vtkusers@public.kitware.com
Subject: [vtkusers] Exception in = thread=20 "main" java.lang.UnsatisfiedLinkError: VTKIni t

hi,
 
   i've a=20 problem while running Cone.java.Here are the = exceptions.
 
 
Exception in = thread "main"=20 java.lang.UnsatisfiedLinkError:=20 VTKInit
        at=20 vtk.vtkConeSource.VTKInit(Native=20 Method)
        at=20 vtk.vtkObject.<init>(vtkObject.java:97)
    = ;   =20 at=20 vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
 &nb= sp;     =20 at=20 vtk.vtkSource.<init>(vtkSource.java:86)
    = ;   =20 at=20 vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
 &= nbsp;     =20 at=20 vtk.vtkConeSource.<init>(vtkConeSource.java:90)
  &nb= sp;    =20 at Cone.main(Cone.java:31)
 
please send me the = solution as=20 early as possible.
 
          &nb= sp;           =20 with regards ,
          &nb= sp;           &nb= sp;           &nb= sp;=20 swapna


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS=20 INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and = privileged=20 information.

If the reader of this message is not the = intended=20 recipient,

you are notified that any dissemination, = distribution=20 or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please=20 notify us

immediately, return the original mail to = the sender=20 and delete the

message from your=20 system."




"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27A82.DA8EE450-- From Gowri.Gopalakrishnan@inteq.com Wed Oct 23 12:08:10 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Wed, 23 Oct 2002 06:08:10 -0500 Subject: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLi nkError: VTKIni t Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27A84.78C84DE0 Content-Type: text/plain Okay this could be another one of java class path and putting the dlls /sos in the right place. This requires a bit more information about your platform, and about your setup. Where your *.java files are, where the vtk libraries are etc etc....... Also this issue has been posted many times in the user group, so it might be quicker for you if you could Find all the posting related to this in the archives and try the suggestions, if nothing works post again with Details and what you have already tried. From my experience this problem requires a few trials and there is no direct solution one can post..... Regards Gowri -----Original Message----- From: Kondagiri, Swapna (MED, Contractor) [mailto:Swapna.Kondagiri@geind.ge.com] Sent: 23 October 2002 11:51 To: vtkusers@public.kitware.com Subject: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKIni t hi, i've a problem while running Cone.java.Here are the exceptions. Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit at vtk.vtkConeSource.VTKInit(Native Method) at vtk.vtkObject.(vtkObject.java:97) at vtk.vtkProcessObject.(vtkProcessObject.java:86) at vtk.vtkSource.(vtkSource.java:86) at vtk.vtkPolyDataSource.(vtkPolyDataSource.java:30) at vtk.vtkConeSource.(vtkConeSource.java:90) at Cone.main(Cone.java:31) please send me the solution as early as possible. with regards , swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27A84.78C84DE0 Content-Type: text/html

Okay this could be another one of java class path and putting the dlls /sos in the right place.

This requires a bit more information about your platform, and about your setup. Where your

*.java files are, where the vtk libraries are etc etc.......

Also this issue has been posted many times in the user group, so it might be quicker for you if you could

Find all the posting related to this in the archives and try the suggestions, if nothing works post again with

Details and what you have already tried.

 

From my experience this problem requires a few trials and there is no direct solution one can post.....

 

Regards

Gowri

 

 

-----Original Message-----
From: Kondagiri, Swapna (MED, Contractor) [mailto:Swapna.Kondagiri@geind.ge.com]
Sent: 23 October 2002 11:51
To: vtkusers@public.kitware.com
Subject: [vtkusers] Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKIni t

 

hi,

 

   i've a problem while running Cone.java.Here are the exceptions.

 

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
        at vtk.vtkConeSource.VTKInit(Native Method)
        at vtk.vtkObject.<init>(vtkObject.java:97)
        at vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
        at vtk.vtkSource.<init>(vtkSource.java:86)
        at vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
        at vtk.vtkConeSource.<init>(vtkConeSource.java:90)
        at Cone.main(Cone.java:31)

 

please send me the solution as early as possible.

 

                       with regards ,

                                    swapna



"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information.

If the reader of this message is not the intended recipient,

you are notified that any dissemination, distribution or copy of this

communication is strictly Prohibited.

If you have received this message by error, please notify us

immediately, return the original mail to the sender and delete the

message from your system."


------_=_NextPart_001_01C27A84.78C84DE0-- From affable@hd2.dot.net.in Wed Oct 23 14:16:22 2002 From: affable@hd2.dot.net.in (cspl) Date: Wed, 23 Oct 2002 18:46:22 +0530 Subject: [vtkusers] Create bitmap Message-ID: <000c01c27a96$711af3b0$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C27AC4.7B7C0820 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable dear friends, I am working on vtkWin32ImageMapper class to create hbitmap.But in that = createBitmapObject function getting abort.Please give me suggestion = where I am going wrong.What i need is HBITMAP for displaying on window. I have written code as follows. { LPBITMAPINFO lpbi; // Fill in the BITMAPINFOHEADER lpbi =3D (LPBITMAPINFO) new BYTE[sizeof(BITMAPINFOHEADER) + (256 * = sizeof(RGBQUAD))]; lpbi->bmiHeader.biSize =3D sizeof(BITMAPINFOHEADER); lpbi->bmiHeader.biWidth =3D 512;//size.cx; lpbi->bmiHeader.biHeight =3D 512;//size.cy; lpbi->bmiHeader.biPlanes =3D 1; lpbi->bmiHeader.biBitCount =3D 8; lpbi->bmiHeader.biCompression =3D BI_RGB; lpbi->bmiHeader.biSizeImage =3D 512*512*8;//WIDTHBYTES((DWORD)size.cx * = 8) * size.cy; lpbi->bmiHeader.biXPelsPerMeter =3D 0; lpbi->bmiHeader.biYPelsPerMeter =3D 0; lpbi->bmiHeader.biClrUsed =3D 0; lpbi->bmiHeader.biClrImportant =3D 0; for(int col=3D0;col<256;col++) { //int color=3Drand()%255; lpbi->bmiColors[col].rgbBlue=3D(BYTE)(col); lpbi->bmiColors[col].rgbGreen=3D(BYTE)(col); lpbi->bmiColors[col].rgbRed =3D(BYTE)(col); lpbi->bmiColors[col].rgbReserved=3D0; } =20 HDC hMemDC; hMemDC =3D CreateCompatibleDC(dc.m_hDC); =20 BYTE *pBits; HBITMAP oldbmp=3DNULL; unsigned char *data; vtkImageReader *Reader =3D vtkImageReader::New(); Reader->SetDataByteOrderToLittleEndian(); Reader->SetDataExtent(0,511,0,511,1,1); = Reader->SetFileName(filepath);//"g:\\1.2.840.113713.10001.1.20076558.428.= 1013450393.36"); Reader->SetDataSpacing(1.0, 1.0, 1.0); Reader->SetDataMask(0x7fff); Reader->SetDataScalarTypeToUnsignedShort();=20 vtkWin32ImageMapper *bb=3DvtkWin32ImageMapper::New(); HBITMAP = hBitmap1=3Dbb->CreateBitmapObject(oldbmp,*lpbi,dc.m_hDC,data,Reader->GetO= utput(),512,512); } Thanking you, regards, Satyanarayana ------=_NextPart_000_0009_01C27AC4.7B7C0820 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
dear friends,
 
I am working on vtkWin32ImageMapper = class to create=20 hbitmap.But in that createBitmapObject function getting abort.Please = give me=20 suggestion where I am going wrong.What i need is HBITMAP for displaying = on=20 window.
 
I have written code as = follows.
{
 
 LPBITMAPINFO lpbi;
 
 // Fill in the = BITMAPINFOHEADER
 lpbi=20 =3D (LPBITMAPINFO) new BYTE[sizeof(BITMAPINFOHEADER) + (256 *=20 sizeof(RGBQUAD))];
 lpbi->bmiHeader.biSize =3D=20 sizeof(BITMAPINFOHEADER);
 lpbi->bmiHeader.biWidth =3D=20 512;//size.cx;
 lpbi->bmiHeader.biHeight =3D=20 512;//size.cy;
 lpbi->bmiHeader.biPlanes =3D=20 1;
 lpbi->bmiHeader.biBitCount =3D=20 8;
 lpbi->bmiHeader.biCompression =3D=20 BI_RGB;
 lpbi->bmiHeader.biSizeImage =3D=20 512*512*8;//WIDTHBYTES((DWORD)size.cx * 8) *=20 size.cy;
 lpbi->bmiHeader.biXPelsPerMeter =3D=20 0;
 lpbi->bmiHeader.biYPelsPerMeter =3D=20 0;
 lpbi->bmiHeader.biClrUsed =3D=20 0;
 lpbi->bmiHeader.biClrImportant =3D 0;
 for(int=20 col=3D0;col<256;col++)
 {
  //int=20 color=3Drand()%255;
  lpbi->bmiColors[col].rgbBlue=3D(BYT= E)(col);
  lpbi->bmiColors[col].rgbGreen=3D(BYTE)(col);  lpbi->bmiColors[col].rgbRed=20 =3D(BYTE)(col);
  lpbi->bmiColors[col].rgbReserved=3D0;
 
 }
 
 HDC=20 hMemDC;
 hMemDC =3D CreateCompatibleDC(dc.m_hDC);
 
 
 BYTE = *pBits;
 
 HBITMAP = oldbmp=3DNULL;
 unsigned char=20 *data;
 
 vtkImageReader *Reader =3D=20 vtkImageReader::New();
 Reader->SetDataByteOrderToLittleEndian= ();
 Reader->SetDataExtent(0,511,0,511,1,1);
  &n= bsp;Reader->SetFileName(filepath);//"g:\\1.2.840.113713.10001.1.200765= 58.428.1013450393.36");
 Reader->SetDataSpacing(1.0,=20 1.0,=20 1.0);
 Reader->SetDataMask(0x7fff);
 Reader->SetDat= aScalarTypeToUnsignedShort();=20
 

 vtkWin32ImageMapper=20 *bb=3DvtkWin32ImageMapper::New();
 HBITMAP=20  hBitmap1=3Dbb->CreateBitmapObject(oldbmp,*lpbi,dc.m_hDC,data,Rea= der->GetOutput(),512,512);
}
 

Thanking=20 you,
regards,
Satyanarayana
------=_NextPart_000_0009_01C27AC4.7B7C0820-- From affable@hd2.dot.net.in Wed Oct 23 14:18:05 2002 From: affable@hd2.dot.net.in (cspl) Date: Wed, 23 Oct 2002 18:48:05 +0530 Subject: [vtkusers] Convert image data to polydata Message-ID: <001d01c27a96$b10edea0$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C27AC4.B8FD6C70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sir, I have worked that sample.It works fine.In that it is working for 3 = components.But we have 1 component that is dicom images. = vtkImageLuminance class SetInput function takes only 3 components. Its giving color image output.Actually I want Gray image not color = image.I need to convert imagedata(read from dicom file) to polydata. so,please givem me suggesition for this. Thank you, satyanarayana. ------=_NextPart_000_001A_01C27AC4.B8FD6C70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Dear Sir,
I have worked that = sample.It works=20 fine.In that it is working for  3 components.But we have 1 = component that=20 is dicom images. vtkImageLuminance class SetInput function takes only 3=20 components.
Its giving  color image output.Actually I want Gray = image=20 not color image.I need to convert imagedata(read from dicom file) to=20 polydata.
so,please givem me suggesition for this.
Thank=20 you,
satyanarayana.
------=_NextPart_000_001A_01C27AC4.B8FD6C70-- From amati@ira.cnr.it Wed Oct 23 14:56:27 2002 From: amati@ira.cnr.it (Amati Giancarlo) Date: Wed, 23 Oct 2002 15:56:27 +0200 Subject: [vtkusers] vtkScalarBarActor WARNING Message-ID: <3DB6AA8B.9080405@ira.cnr.it> Hi group, my problem is the following. In my visualization program I use the 2D acotr vtkScalarColorBarActor to visualize a colored bar depending on the current scalar. I create it using: set lukUpTable($order) [new vtkLookupTable] $lukUpTable($order) SetHueRange 0 1 $lukUpTable($order) SetSaturationRange 0 .8 $lukUpTable($order) SetValueRange 0.8 1 $lukUpTable($order) Build set scalarColorBar($order) [new vtkScalarBarActor] $scalarColorBar($order) SetLookupTable $lukUpTable($order) $scalarColorBar($order) SetOrientationToVertical $scalarColorBar($order) SetTitle "$namevar" $scalarColorBar($order) SetFontFamilyToArial $scalarColorBar($order) SetNumberOfLabels 6 $scalarColorBar($order) BoldOff $scalarColorBar($order) ItalicOff $scalarColorBar($order) PickableOff $scalarColorBar($order) SetPosition 0.9 0.03 $scalarColorBar($order) SetWidth 0.09 #$scalarColorBar($order) SetHeight 0.6 #$scalarColorBar($order) SetPosition2 0.8 0.9 [$scalarColorBar($order) GetPositionCoordinate] SetCoordinateSystemToNormalizedViewport [$scalarColorBar($order) GetProperty] SetColor 1 1 1 From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 23 14:56:31 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 23 Oct 2002 15:56:31 +0200 (MEST) Subject: [vtkusers] (no subject) Message-ID: <1035381391.3db6aa8f7a628@webmail.uni-magdeburg.de> Dear VTK-users, I have written an application that uses 2 different vtkVolumeMapper. I'd like to enable the user to switch between the two mappers. However, after I have started my vtkRenderWindowInteractor (iren->Start()) the call volume->SetMapper( otherMapper ); has no effect. Can anybody help me please ? Regards, Steffen From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 23 15:02:47 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 23 Oct 2002 16:02:47 +0200 (MEST) Subject: [vtkusers] switching between different mappers Message-ID: <1035381767.3db6ac07cbd49@webmail.uni-magdeburg.de> Dear VTK-users, I have written an application that uses 2 different vtkVolumeMapper. I'd like to enable the user to switch between the two mappers. However, after I have started my vtkRenderWindowInteractor (iren->Start()) the call volume->SetMapper( otherMapper ); has no effect. Can anybody help me please ? Regards, Steffen From amati@ira.cnr.it Wed Oct 23 15:09:02 2002 From: amati@ira.cnr.it (Amati Giancarlo) Date: Wed, 23 Oct 2002 16:09:02 +0200 Subject: [vtkusers] rendering Message-ID: <3DB6AD7E.60603@ira.cnr.it> Hello everybody, I was guessing if the vtk rendering is based on ray-tracing, or there is the possibility to change it with radiosity rendering. Is radiosity suitable in VTK? Thank in advance. -- ---------------------------------------- dott. Giancarlo Amati | (amati@ira.cnr.it) | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From anast.jm@pg.com Wed Oct 23 15:14:05 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 23 Oct 2002 10:14:05 -0400 Subject: [vtkusers] Convert image data to polydata Message-ID: Satyanarayana, With single component images you already essentially have the luminance= so you can just skip the vtkImageLuminance step and use the reader output directly....john =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: "cspl" @public.kitware.com on 10/23/2002 = 06:48 PM ZE5B = =20 "cspl" To: John Anast= -JM/PGI@PGI =20 @public.kitware.com Cc: =20 Subject: [vtkusers]= Convert image data to =20 polydata = =20 Sent by: vtkusers-admin@public.kitware.com = =20 10/23/2002 09:18 AM = =20 = =20 = =20 Dear Sir, I have worked that sample.It works fine.In that it is working for=A0 3= components.But we have 1 component that is dicom images. vtkImageLumin= ance class SetInput function takes only 3 components. Its giving=A0 color image output.Actually I want Gray image not color = image.I need to convert imagedata(read from dicom file) to polydata. so,please givem me suggesition for this. Thank you, satyanarayana. = From P.Sherwood@dl.ac.uk Wed Oct 23 16:29:10 2002 From: P.Sherwood@dl.ac.uk (Sherwood, P (Paul)) Date: Wed, 23 Oct 2002 16:29:10 +0100 Subject: [vtkusers] Picking questions Message-ID: Hi All, I am a just starting with vtk and I am using it to represent molecules as atoms and spheres. I am just experimenting with picking and I am unsure how to efficiently work out which atom was picked. I am working in Python. I can identify the picked property (Actor) using picker.GetPath().GetFirstNode(), by I am not sure of the best way to find out which atom in my model was picked. Is there a user data component of an actor I could set when it is created and access to indicate what it represents when it is picked? I notice the document to SetPickMethod for a property indicates that a function and an argument can be stored for each actor, this would enable me to use the argument as a way to work back from the actor to the originating object. However, it seems that in the python binding SetPickMethod only takes a single argument (the method itself). As far as I can see I would otherwise need to implement some look up process ( e.g. keep a dictionary relating each actor address to the chemical object that it relates to), but for a very long list of actors this seems rather inelegant and maybe slow. Also, is there any way to pick multiple actors using something like the rubberband selection tools many programs use these days? Is there another way? thanks Paul Sherwood From prabhu@aero.iitm.ernet.in Wed Oct 23 18:07:36 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 23 Oct 2002 22:37:36 +0530 Subject: [vtkusers] Picking questions In-Reply-To: References: Message-ID: <15798.55128.507845.745479@monster.linux.in> hi, >>>>> "PS" == P Sherwood writes: PS> I am just experimenting with picking and I am unsure how to PS> efficiently work out which atom was picked. I am working in PS> Python. PS> I can identify the picked property (Actor) using PS> picker.GetPath().GetFirstNode(), by I am not sure of the best PS> way to find out which atom in my model was picked. Is there a PS> user data component of an actor I could set when it is created PS> and access to indicate what it represents when it is picked? If you are using VTK 4.0+ then you can use observers to do this easily. Here is a quick example using MayaVi's ivtk module (for convenience). from mayavi import ivtk import vtk cs = vtk.vtkConeSource() m = vtk.vtkPolyDataMapper() a = vtk.vtkActor() m.SetInput(cs.GetOutput()) a.SetMapper(m) v = ivtk.viewer() v.AddActors(a) def test(obj, event): print "Event", event, "occured" print repr(obj) a.AddObserver('PickEvent', test) Now press 'p' on the viewer window near one of the vertices of the cone and see your test function in action. PS> Also, is there any way to pick multiple actors using something PS> like the rubberband selection tools many programs use these PS> days? No clue if there is something to do this already but I guess you can write some code to do this. However it might take some work. cheers, prabhu From gms158@psu.edu Wed Oct 23 18:21:10 2002 From: gms158@psu.edu (Gary M. Stump) Date: Wed, 23 Oct 2002 13:21:10 -0400 Subject: [vtkusers] vtkPointPicker question Message-ID: Has anyone implemented vtkPointPicker into vtkPanel. I implemented it into the keyListener portion of the code and when I check getPointId of vtkPointPicker, it returns -1 (no point selected) even if the mouse is located right on the point. thanks -Gary From P.Sherwood@dl.ac.uk Wed Oct 23 19:49:40 2002 From: P.Sherwood@dl.ac.uk (Sherwood, P (Paul)) Date: Wed, 23 Oct 2002 19:49:40 +0100 Subject: [vtkusers] Picking questions Message-ID: Prabhu, thanks for this. I have played around and ended up passing the molecule and atom picked by declaring the observer with something like # actor a represents atom at in molecule m a.AddObserver('PickEvent', \ lambda obj,ev,s=self,mol=m,atom=at : s.mypick(mol,atom,obj,ev) I still feel it looks like a rather complicated way of providing some user data for when the pick event happens. It seems to work, but if there is a nicer way I'd like to know! thanks again Paul >> -----Original Message----- >> From: Prabhu Ramachandran [mailto:prabhu@aero.iitm.ernet.in] >> Sent: 23 October 2002 18:08 >> To: Sherwood, P (Paul) >> Cc: vtkusers@public.kitware.com >> Subject: Re: [vtkusers] Picking questions >> >> >> hi, >> >> >>>>> "PS" == P Sherwood writes: >> >> PS> I am just experimenting with picking and I am unsure how to >> PS> efficiently work out which atom was picked. I am working in >> PS> Python. >> >> PS> I can identify the picked property (Actor) using >> PS> picker.GetPath().GetFirstNode(), by I am not sure >> of the best >> PS> way to find out which atom in my model was picked. >> Is there a >> PS> user data component of an actor I could set when it >> is created >> PS> and access to indicate what it represents when it is picked? >> >> If you are using VTK 4.0+ then you can use observers to do this >> easily. Here is a quick example using MayaVi's ivtk module (for >> convenience). >> >> from mayavi import ivtk >> import vtk >> cs = vtk.vtkConeSource() >> m = vtk.vtkPolyDataMapper() >> a = vtk.vtkActor() >> m.SetInput(cs.GetOutput()) >> a.SetMapper(m) >> v = ivtk.viewer() >> v.AddActors(a) >> >> def test(obj, event): >> print "Event", event, "occured" >> print repr(obj) >> >> a.AddObserver('PickEvent', test) >> >> Now press 'p' on the viewer window near one of the vertices of the >> cone and see your test function in action. >> >> PS> Also, is there any way to pick multiple actors >> using something >> PS> like the rubberband selection tools many programs use these >> PS> days? >> >> No clue if there is something to do this already but I guess you can >> write some code to do this. However it might take some work. >> >> cheers, >> prabhu >> From stevie157@gmx.net Wed Oct 23 21:16:22 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Wed, 23 Oct 2002 22:16:22 +0200 Subject: [vtkusers] scalar array Message-ID: <3DB70396.1090900@gmx.net> hello, how can I associate a scalar array with a polydata so that I can use scalars to be mapped as colors? thanx stefan From prabhu@aero.iitm.ernet.in Wed Oct 23 21:29:50 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 01:59:50 +0530 Subject: [vtkusers] Picking questions In-Reply-To: References: Message-ID: <15799.1726.410438.61958@monster.linux.in> >>>>> "PS" == P Sherwood writes: PS> # actor a represents atom at in molecule m PS> a.AddObserver('PickEvent', \ lambda PS> obj,ev,s=self,mol=m,atom=at : s.mypick(mol,atom,obj,ev) PS> I still feel it looks like a rather complicated way of PS> providing some user data for when the pick event happens. It PS> seems to work, but if there is a nicer way I'd like to know! Why not simply a.AddObserver('PickEvent', self.mypick) Afterall your class will have all the necessary data? self.mypick is a bound function also classifies as a function. So as soon as your actor is picked the class does what is necessary. By distributing responsibilities properly everything should work just fine. cheers, prabhu From prabhu@aero.iitm.ernet.in Wed Oct 23 21:31:55 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 02:01:55 +0530 Subject: [vtkusers] scalar array In-Reply-To: <3DB70396.1090900@gmx.net> References: <3DB70396.1090900@gmx.net> Message-ID: <15799.1851.912920.295628@monster.linux.in> >>>>> "SU" == Stefan Ulbrich writes: SU> hello, how can I associate a scalar array with a polydata so SU> that I can use scalars to be mapped as colors? p = vtkPolyData() s = vtkFloatArray() # or whatever. # setup your array correctly. p.GetPointData().SetScalars(s) For CellData just do GetCellData().SetScalars(s) cheers, prabhu From wind@climate.gsfc.nasa.gov Wed Oct 23 21:33:05 2002 From: wind@climate.gsfc.nasa.gov (Gala Wind) Date: Wed, 23 Oct 2002 13:33:05 -0700 Subject: [vtkusers] scalar array In-Reply-To: <3DB70396.1090900@gmx.net> Message-ID: Here's how: first of all you need to make a vtkScalars object out of your data. Here's how to do that: in this case the scalars are floating point numbers, stored in the array eff_rad. vtkFloatArray* scalars = vtkFloatArray::New(); scalars->SetNumberOfValues(data_size); for (int i=0; iSetValue(i, eff_rad[i]); once you get your scalars in such shape, do this: say your polydata is called p_data. p_data->SetScalars(scalars); I needed to do that for this visualization I was doing. I wanted to warp a plane using one set of scalars and color it using another set of scalars, so I did what I just told you on the output of vtkWarpScalars, which is polydata. That changed the colors quite nicely. -- Gala On Wednesday, October 23, 2002, at 01:16 PM, Stefan Ulbrich wrote: > hello, > > how can I associate a scalar array with a polydata so that I can use > scalars to be mapped as colors? > > thanx > > stefan > > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From krs@cs.uncc.edu Wed Oct 23 21:43:55 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Wed, 23 Oct 2002 16:43:55 -0400 Subject: [vtkusers] vtk-flk problem.. Message-ID: <3DB70A0A.72BBAED6@cs.uncc.edu> I am trying to use fltk with vtk and having a problem in even compiling the simple Cone example (that comes with the Charles Botha's classes).. this is on SGI Irix 6.5.. as described below.. Thanks.. ********************* "K.R.Subramanian" wrote: > Hi. > > Trying to use fltk + vtk on our SGIs (Octane2, Irix 6.5) here and the Cone3 example has a > linker problem.. > The application works fine on our Linux boxes.. let me know what might be the problem. > Here > are the diagnostics from our run.. (we are running vtk4.0 and fltk 1.1) > > chip.cs.uncc.edu% ls > Cone3.cxx Cone3.o Makefile* Makefile.bak* > chip.cs.uncc.edu% make > CC -g -g -I. -I/usr/include/CC -I/afs/uncc/cs/irix/irixlinks/include/vtk > -I/afs/uncc/cs/irix/irixlinks/include/ -LANG:std Cone3.o -o Cone3 -L. > -L/afs/uncc/cs/irix/irixlinks/lib -lvtkfl -lfltk_gl -lfltk -lvtkGraphics -lvtkPatented > -lvtkRendering -lvtkCommon -lGL -lXt -lXext -lX11 -lm > ld32: ERROR 33 : Unresolved text symbol "vtkPolyDataSource::GetOutput(void)" -- 1st > referenced by Cone3.o. > Use linker option -v to see when and which objects, archives and dsos are loaded. > ld32: INFO 152: Output file removed because of error. > *** Error code 2 (bu21) > > and running nm to look for this in our libvtkGraphics.so.. > > chip.cs.uncc.edu% nm /afs/uncc/cs/irix/irixlinks/lib/libvtkGraphics.so|grep GetOutput > [250] |1607417392| 88|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutput__31vtkProgrammableDataObjectSourceGv > [278] |1608044672| 904|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutput__30vtkSpatialRepresentationFilterGi > [436] |1604840640| 88|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__25vtkUnstructuredGridSourceGv > [463] |1604841180| 88|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__17vtkPolyDataSourceGv > [507] |1604842060| 1232|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__25vtkDataSetToDataSetFilterGv > [554] |1604843000| 88|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__23vtkStructuredGridSourceGv > [632] |1604844560| 88|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__19vtkDataObjectSourceGv > [746] |1604846840| 116|FUNC |GLOB |DEFAULT |UNDEF |GetOutput__9vtkSourceGi > [788] |1604847680| 656|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__27vtkPointSetToPointSetFilterGv > [1018] |1605728848| 88|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutput__28vtkDataObjectToDataSetFilterGv > [1056] |1605817488| 284|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutputPointId__23vtkDataSetSurfaceFilterGiP10vtkDataSetP9vtkPointsP12vtkPointData > > [1196] |1606297552| 1364|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutput__26vtkExtractVectorComponentsGi > [1721] |1608045584| 152|FUNC |GLOB |DEFAULT > |MIPS_TEXT|GetOutput__30vtkSpatialRepresentationFilterGv > [6137] |1606359408| 656|STAT |LOCL |DEFAULT |MIPS_TEXT|GetOutputAttributeD > ............ > > and > > chip.cs.uncc.edu% nm Cone3.o|grep GetOutput > [28] | 0| 0|FUNC |GLOB |DEFAULT |UNDEF > |GetOutput__17vtkPolyDataSourceGv > > As you can see, the GetOutput() method is there in the library, from what I can tell. > Thanks. > > -- krs > > -- > K.R.Subramanian Phone: (704) 687-4872 > Department of Computer Science FAX: (704) 687-4893 > UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu > Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From c.p.botha@its.tudelft.nl Wed Oct 23 22:04:16 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Wed, 23 Oct 2002 23:04:16 +0200 Subject: [vtkusers] vtk-flk problem.. In-Reply-To: <3DB70A0A.72BBAED6@cs.uncc.edu> References: <3DB70A0A.72BBAED6@cs.uncc.edu> Message-ID: <20021023210416.GA20260@dutidad.twi.tudelft.nl> On Wed, Oct 23, 2002 at 04:43:55PM -0400, K.R.Subramanian wrote: > I am trying to use fltk with vtk and having a problem in even compiling the > simple Cone example (that comes with the Charles Botha's classes).. this is > on SGI Irix 6.5.. as described below.. Urp! I'm very sorry, your mail got lost in my overfull inbox! I'll have a look at this tomorrow at work... I don't usually work on an SGI box, which is why I can't quickly test these things out. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha@its.tudelft.nl Wed Oct 23 22:11:21 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Wed, 23 Oct 2002 23:11:21 +0200 Subject: [vtkusers] vtk-flk problem.. In-Reply-To: <3DB70A0A.72BBAED6@cs.uncc.edu> References: <3DB70A0A.72BBAED6@cs.uncc.edu> Message-ID: <20021023211121.GB20260@dutidad.twi.tudelft.nl> On Wed, Oct 23, 2002 at 04:43:55PM -0400, K.R.Subramanian wrote: > I am trying to use fltk with vtk and having a problem in even compiling the > simple Cone example (that comes with the Charles Botha's classes).. this is > on SGI Irix 6.5.. as described below.. > > Trying to use fltk + vtk on our SGIs (Octane2, Irix 6.5) here and the Cone3 example has a > > linker problem.. > > The application works fine on our Linux boxes.. let me know what might be the problem. > > Here > > are the diagnostics from our run.. (we are running vtk4.0 and fltk 1.1) > > > > chip.cs.uncc.edu% ls > > Cone3.cxx Cone3.o Makefile* Makefile.bak* > > chip.cs.uncc.edu% make > > CC -g -g -I. -I/usr/include/CC -I/afs/uncc/cs/irix/irixlinks/include/vtk > > -I/afs/uncc/cs/irix/irixlinks/include/ -LANG:std Cone3.o -o Cone3 -L. > > -L/afs/uncc/cs/irix/irixlinks/lib -lvtkfl -lfltk_gl -lfltk -lvtkGraphics -lvtkPatented > > -lvtkRendering -lvtkCommon -lGL -lXt -lXext -lX11 -lm > > ld32: ERROR 33 : Unresolved text symbol "vtkPolyDataSource::GetOutput(void)" -- 1st > > referenced by Cone3.o. > > Use linker option -v to see when and which objects, archives and dsos are loaded. > > ld32: INFO 152: Output file removed because of error. > > *** Error code 2 (bu21) Hmmm, I think I see the problem. Please add -lvtkFiltering to the link list, as vtkPolyDataSource is part of this kit. Somehow, I forgot this in the example Makefile and somehow it still works on other non-Irix platforms. I'll update the Makefile and make a new package available. Thanks for reporting this! -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From zhou@isg.cs.uni-magdeburg.de Wed Oct 23 22:27:03 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Wed, 23 Oct 2002 23:27:03 +0200 Subject: [vtkusers] volume rendering with texture mapping based on GeForce3 Graphics card Message-ID: <3DB73045.5707.35015@localhost> Hi, VTK users, I plan to implement a volume renderer with texture mapping based on GeForce3 graphics card. I think this should of course derive some vtk classes (e.g. vtkVolumeTextureMapper2D etc.) to use the features of GeForce3 (e.g. register combiners, multitexture mapping, etc.) to improve rendering performance. Has anyone completed similar vtk classes using texture mapping based on GeForce or give me any ideas how to realize this class? Thank you in advance. Best regards, Jianlong From stephen.reilly@ntlworld.com Wed Oct 23 23:25:47 2002 From: stephen.reilly@ntlworld.com (Stephen Reilly) Date: Wed, 23 Oct 2002 23:25:47 +0100 Subject: [vtkusers] Converting Image Data to a Volume Message-ID: <002b01c27ae3$23400c00$f0370650@karl> This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C27AEB.8446F060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have a set of greyscale images, and I would like to convert it to a = volume so that I can apply a number of transfer functions. I am not sure if I should first convert it to PolyData, and then try and = convert it to a volume. At present, I read the files in, and use vtkMarchingCubes to convert = them to poly data, then I use vtkDecimate them to cut down the size of = the object I have to render. If I pass this into a PolyDataMapper and = Actor, I can see that everything has gone well - all the conversions = have been successful, and the images have been put together to make a = single object. I tried using vtkShepardMethod to convert the PolyData to a Volume, but = this crashes the program. I am not sure if I have set up the input = incorrectly, or if this is just the wrong class. Any help would be = appreciated. Thanks in advance, Stephen ------=_NextPart_000_0028_01C27AEB.8446F060 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a set of greyscale images, and I = would like=20 to convert it to a volume so that I can apply a number = of transfer=20 functions.
 
I am not sure if I should first convert = it to=20 PolyData, and then try and convert it to a volume.
 
At present, I read the files in, and = use=20 vtkMarchingCubes to convert them to poly data, then I use vtkDecimate = them to=20 cut down the size of the object I have to render. If I pass this into a PolyDataMapper and Actor, I can see that = everything=20 has gone well - all the conversions have been successful, and the = images=20 have been put together to make a single object.
 
I tried using vtkShepardMethod to = convert the=20 PolyData to a Volume, but this crashes the program. I am not sure if I=20 have set up the input incorrectly, or if this is just the wrong=20 class. Any help would be appreciated.
 
Thanks in advance,
Stephen
------=_NextPart_000_0028_01C27AEB.8446F060-- From jmbeotegui@yahoo.es Wed Oct 23 23:50:59 2002 From: jmbeotegui@yahoo.es (=?iso-8859-1?q?jose=20beotegui?=) Date: Thu, 24 Oct 2002 00:50:59 +0200 (CEST) Subject: [vtkusers] center position coordinates Message-ID: <20021023225059.35689.qmail@web21510.mail.yahoo.com> Hello users, I'm using VTK 4.0 and Tcl/Tk. I have a BMP image of white circles over a black background. I want to get the center pixel coordinate of every circle (to convert them in a grid of vtkPoints) but I don't know how to do it. How can I get the center position of the circles? Thanks in advance. _______________________________________________________________ Yahoo! Messenger Nueva versin: Webcam, voz, y mucho ms Gratis! Descrgalo ya desde http://messenger.yahoo.es From tdsternberg@lbl.gov Thu Oct 24 00:09:40 2002 From: tdsternberg@lbl.gov (Theodore D. Sternberg) Date: Wed, 23 Oct 2002 16:09:40 -0700 (PDT) Subject: [vtkusers] ImplicitFunction from vtkPolyData? In-Reply-To: <20021023204501.21759.93768.Mailman@public.kitware.com> Message-ID: I'd like to clip one vtkPolyData against a (non-planar) surface defined by another vtkPolyData. Image the first vtkPolyData is the Earth, and the second vtkPolyData is the shape of an impact crater; I'd like to show the Earth with a crater in it. To do this, I think I need a vtkImplicitFunction to pass to a vtkClipPolyData. Is there a good way to obtain the necessary vtkImplicitFunction from that second vtkPolyData? Ted Sternberg Lawrence Berkeley National Laboratory From david.netherway@adelaide.edu.au Thu Oct 24 06:29:18 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Thu, 24 Oct 2002 14:59:18 +0930 Subject: [vtkusers] Overlay of 3D lines References: Message-ID: <01c501c27b1e$4c9cb950$0d8156c0@acfu.wch.sa.gov.au> Hello, I wish to overlay lines defined in 3D on top of a VolPro generated 3D CT reconstruction. The depth of the image from the VolPro card is probably a fixed depth of 0. The lines that pass behind the z = 0 plane are not drawn. I wish to draw them as if to an overlay plane, i.e. force them to be drawn in front. Does anyone have a way of doing this without having to grab each end point and the camera parameters, and then project onto the near plane and render as 2D actors each time the camera is altered? Perhaps there is way to directly send openGl drawing instructions to the window so that the lines are drawn after everthing else. Thanks for any suggestions. Cheers, David ----- Original Message ----- From: "Sherwood, P (Paul)" To: Sent: Thursday, 24 October, 2002 12:59 AM Subject: [vtkusers] Picking questions > Hi All, > > I am a just starting with vtk and I am using it to > represent molecules as atoms and spheres. > > I am just experimenting with picking and I am unsure how > to efficiently work out which atom was picked. I am > working in Python. > > I can identify the picked property (Actor) using > picker.GetPath().GetFirstNode(), by I am not sure of the best > way to find out which atom in my model was picked. Is > there a user data component of an actor I could set > when it is created and access to indicate what it > represents when it is picked? > > I notice the document to SetPickMethod for a property > indicates that a function and an argument can be stored for > each actor, this would enable me to use the argument as > a way to work back from the actor to the originating object. > However, it seems that in the python binding SetPickMethod > only takes a single argument (the method itself). > > As far as I can see I would otherwise need to implement some > look up process ( e.g. keep a dictionary relating each actor > address to the chemical object that it relates to), > but for a very long list of actors this seems rather > inelegant and maybe slow. > > Also, is there any way to pick multiple actors using something > like the rubberband selection tools many programs use these days? > > Is there another way? > > thanks > Paul Sherwood > _______________________________________________ > 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 mhp@dadlnet.dk Thu Oct 24 07:15:05 2002 From: mhp@dadlnet.dk (Morten H Pedersen) Date: Thu, 24 Oct 2002 08:15:05 +0200 Subject: [vtkusers] Usenet Newsgroup comp.graphics.visualization.vtk Message-ID: <1035440105.3db78fe997b77@webmail.uni2.dk> Once, the VTK mailing list was mirrored at nntp://vtkusers@public.kitware.com This service seems to be stopped, and I have not been able to get through to the institution. Wouldn't it be great to have the mailing list mirrored or converted to a usenet newsgroup - for instance: comp.graphics.visualization.vtk ? Then you wouldn't have to get all correspondence and you could easily search the postings by thread. Instead of maintaining an archive of vtk digests which are hard to search, storing it all on a news server would make it much more useful. For those preferring the mailing list one could make a usenet-digest gateway, so that postings would appear both places. Sincerely, Morten H Pedersen, M.D. mhp@dadlnet.dk Department of Ultrasound Herlev Hospital University of Copenhagen Herlev Ringvej 75 DK-2730 Herlev, DENMARK From prabhu@aero.iitm.ernet.in Thu Oct 24 07:54:22 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 12:24:22 +0530 Subject: [vtkusers] ImplicitFunction from vtkPolyData? In-Reply-To: References: <20021023204501.21759.93768.Mailman@public.kitware.com> Message-ID: <15799.39198.666831.566929@monster.linux.in> >>>>> "TDS" == Theodore D Sternberg writes: TDS> I'd like to clip one vtkPolyData against a (non-planar) TDS> surface defined by another vtkPolyData. Image the first TDS> vtkPolyData is the Earth, and the second vtkPolyData is the TDS> shape of an impact crater; I'd like to show the Earth with a TDS> crater in it. TDS> To do this, I think I need a vtkImplicitFunction to pass to a TDS> vtkClipPolyData. Is there a good way to obtain the necessary TDS> vtkImplicitFunction from that second vtkPolyData? I dont know of a way to do exactly this but take a look at the vtkSelectPolyData class. It lets you define a loop on your PolyData and then lets you select everything within or outside that loop. Maybe you can use it to do what you need. cheers, prabhu From arnaud_garcia_fr@yahoo.fr Thu Oct 24 07:55:40 2002 From: arnaud_garcia_fr@yahoo.fr (=?iso-8859-1?q?arnaud=20garcia?=) Date: Thu, 24 Oct 2002 08:55:40 +0200 (CEST) Subject: [vtkusers] Pb Linux compilation Message-ID: <20021024065540.56168.qmail@web10308.mail.yahoo.com> Hello, I can't compile VTK source on Linux Mandrake 9.0 with gcc version 3.2. After doing the traditional cmake -i, i did a make and i have an error: "gcc: cannot specify -o with -c or -S and multiple compilations" any idea ? Arnaud the complete output after make is: [root@uin-ui13 VTK]# make cmake.depends is up-to-date /usr/local/src/vtk40Src/VTK/Wrapping: building default_target cmake.depends is up-to-date /usr/local/src/vtk40Src/VTK/Utilities: building default_target cmake.depends is up-to-date /usr/local/src/vtk40Src/VTK/Utilities/zlib: building default_target cmake.depends is up-to-date gcc OFF -I/usr/local/src/vtk40Src/VTK/Utilities/zlib -I/usr/local/src/vtk40Src/VTK/Rendering -I/usr/local/src/vtk40Src/VTK -I/usr/local/src/vtk40Src/VTK/Common -I/usr/local/src/vtk40Src/VTK/Filtering -I/usr/local/src/vtk40Src/VTK/Imaging -I/usr/local/src/vtk40Src/VTK/Graphics -I/usr/local/src/vtk40Src/VTK/IO -I/usr/local/src/vtk40Src/VTK/Utilities/zlib -I/usr/local/src/vtk40Src/VTK/Utilities/png -I/usr/local/src/vtk40Src/VTK/Utilities/jpeg -I/usr/local/src/vtk40Src/VTK/Common/Testing/Cxx -c /usr/local/src/vtk40Src/VTK/Utilities/zlib/adler32.c -o adler32.o gcc: cannot specify -o with -c or -S and multiple compilations make[5]: *** [adler32.o] Erreur 1 make[4]: *** [default_target] Erreur 2 make[3]: *** [default_target_zlib] Erreur 2 make[2]: *** [default_target] Erreur 2 make[1]: *** [default_target_Utilities] Erreur 2 make: *** [default_target] Erreur 2 [root@uin-ui13 VTK]# ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en franais ! Yahoo! Mail : http://fr.mail.yahoo.com From PreethishK@geind.ge.com Thu Oct 24 07:50:05 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Thu, 24 Oct 2002 12:20:05 +0530 Subject: [vtkusers] vtkpanel not working Message-ID: <10B96F9B1453D61191B400508B650D9402E459BA@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27B29.956F7360 Content-Type: text/plain; charset="iso-8859-1" hi, java vkpanel doesnot seem to work in irix6.5.the sample java program which display sphere is not working.please help "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27B29.956F7360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi,
   java = vkpanel=20 doesnot seem to work in irix6.5.the sample java program which display = sphere is=20 not working.please help

 


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27B29.956F7360-- From P.Sherwood@dl.ac.uk Thu Oct 24 09:13:08 2002 From: P.Sherwood@dl.ac.uk (Sherwood, P (Paul)) Date: Thu, 24 Oct 2002 09:13:08 +0100 Subject: [vtkusers] Picking questions Message-ID: Prahbu, >>>>> "PS" == P Sherwood writes: ... PS> I am not keen on keeping tables if I can associate the data PS> with the actor in some way and recover it on the pick, the PS> lambda method seems to do this (albeit inelegantly). >> .... Basically, AFAIK, you cant >> stick data into the vtkActors. Instead you can wrap the >> vtkActor with a simple class. thanks for the hint, this does seem a nicer way to do it. I am still keen to hear if anyone has any ideas on my other question, how to implement a "rubberband type" multiple selection. Paul From Swapna.Kondagiri@geind.ge.com Thu Oct 24 09:19:54 2002 From: Swapna.Kondagiri@geind.ge.com (Kondagiri, Swapna (MED, Contractor)) Date: Thu, 24 Oct 2002 13:49:54 +0530 Subject: [vtkusers] UnsatisfiedLinkError Message-ID: <10B96F9B1453D61191B400508B650D9402E45B6E@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27B36.21A42090 Content-Type: text/plain; charset="iso-8859-1" hi group, Iam working on windows ,i've got a runtime error .Error is : Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at Cone.(Cone.java:22) Anticipating solutions at the earliest. thanx in advance. regards swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27B36.21A42090 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi = group,
 
          Iam = working=20 on  windows ,i've got a runtime error  .Error is = :
 
       Exception in thread = "main"=20 java.lang.UnsatisfiedLinkError: = D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't=20 find dependent libraries
        = at=20 java.lang.ClassLoader$NativeLibrary.load(Native=20 Method)
        at=20 java.lang.ClassLoader.loadLibrary0(Unknown=20 Source)
        at=20 java.lang.ClassLoader.loadLibrary(Unknown=20 Source)
        at=20 java.lang.Runtime.loadLibrary0(Unknown=20 Source)
        at=20 java.lang.System.loadLibrary(Unknown=20 Source)
        at=20 Cone.<clinit>(Cone.java:22)
Anticipating = solutions at the=20 earliest.
 
thanx in=20 advance.
regards
swapna
 
 
 
    =


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27B36.21A42090-- From simon.chatelain@epfl.ch Thu Oct 24 09:54:36 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Thu, 24 Oct 2002 10:54:36 +0200 Subject: [vtkusers] how to use vtkInteractorStyleTrackballActor Message-ID: <3DB7B54C.3080102@epfl.ch> Hello, I saw this class who seems to be what i need. But i really don't understand how to use it. I am using vtk 4 and Java for my application. Does someone have an example or some explanation on how to use it. Thanks a lot Simon From Swapna.Kondagiri@geind.ge.com Thu Oct 24 10:05:58 2002 From: Swapna.Kondagiri@geind.ge.com (Kondagiri, Swapna (MED, Contractor)) Date: Thu, 24 Oct 2002 14:35:58 +0530 Subject: [vtkusers] unsatisfied link error Message-ID: <10B96F9B1453D61191B400508B650D9402E45C6F@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27B3C.91860990 Content-Type: text/plain; charset="iso-8859-1" hi group, Iam working on windows ,i've got a runtime error .Error is : Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at Cone.(Cone.java:22) Anticipating solutions at the earliest. thanx in advance. regards swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27B3C.91860990 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi = group,
 
          Iam = working=20 on  windows ,i've got a runtime error  .Error is = :
 
       Exception in thread = "main"=20 java.lang.UnsatisfiedLinkError: = D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't=20 find dependent libraries
        = at=20 java.lang.ClassLoader$NativeLibrary.load(Native=20 Method)
        at=20 java.lang.ClassLoader.loadLibrary0(Unknown=20 Source)
        at=20 java.lang.ClassLoader.loadLibrary(Unknown=20 Source)
        at=20 java.lang.Runtime.loadLibrary0(Unknown=20 Source)
        at=20 java.lang.System.loadLibrary(Unknown=20 Source)
        at=20 Cone.<clinit>(Cone.java:22)
Anticipating = solutions at the=20 earliest.
 
thanx in=20 advance.
regards
swapna
 
 
 
    =


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C27B3C.91860990-- From michele.zamponi@menci.com Thu Oct 24 10:22:46 2002 From: michele.zamponi@menci.com (Michele Zamponi) Date: Thu, 24 Oct 2002 11:22:46 +0200 Subject: [vtkusers] textures color levels adjustment in vtk - like Photoshop Message-ID: <000001c27b3e$ea640f10$2000a8c0@devlab1xp> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C27B4F.ADECDF10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, As you can see I'm not a vtk guru! I need to adjust color levels (such RGB channels, Brightness, Contrast, etc) of textures applied over some vtkActors. In other words, I need to implement the "Photoshop Adjust Levels" over a texturized vtkActor. Is it possible? And, if yes, how can I do it? Thank you in advance for any help. Michele ------=_NextPart_000_0001_01C27B4F.ADECDF10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

 

As you can see I’m not a vtk guru!

 

I need to adjust color levels (such RGB channels, = Brightness, Contrast, etc) of textures applied over some vtkActors. In other words, I need to implement the “Photoshop Adjust = Levels” over a texturized vtkActor.

 

Is it possible? And, if yes, how can I do = it?

 

Thank you in advance for any = help.

Michele

------=_NextPart_000_0001_01C27B4F.ADECDF10-- From Gowri.Gopalakrishnan@inteq.com Thu Oct 24 10:35:06 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Thu, 24 Oct 2002 04:35:06 -0500 Subject: [vtkusers] UnsatisfiedLinkError Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27B40.A33C5A00 Content-Type: text/plain Yesterday you had problem in vtkInit not found. I sent you a mail earlier about putting the dlls etc in system path. Did you do that? What happened then?. I also mentioned that your dependent libraries should be in the system path. If you tried these things could you reply as to what happened when you tried this. Gowri -----Original Message----- From: Kondagiri, Swapna (MED, Contractor) [mailto:Swapna.Kondagiri@geind.ge.com] Sent: 24 October 2002 09:20 To: vtkusers@public.kitware.com Subject: [vtkusers] UnsatisfiedLinkError hi group, Iam working on windows ,i've got a runtime error .Error is : Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at Cone.(Cone.java:22) Anticipating solutions at the earliest. thanx in advance. regards swapna "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ------_=_NextPart_001_01C27B40.A33C5A00 Content-Type: text/html

Yesterday you had problem in vtkInit not found. I sent you a mail earlier about putting the dlls etc in system path. Did you do that?

What happened then?. I also mentioned that your dependent libraries should be in the system path.

If you tried these things could you reply as to what happened when you tried this.

 

Gowri

 

 

-----Original Message-----
From: Kondagiri, Swapna (MED, Contractor) [mailto:Swapna.Kondagiri@geind.ge.com]
Sent: 24 October 2002 09:20
To: vtkusers@public.kitware.com
Subject: [vtkusers] UnsatisfiedLinkError

 

hi group,

 

          Iam working on  windows ,i've got a runtime error  .Error is :

 

       Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\vtkcore\vtk40\bin\vtkRenderingJava.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at Cone.<clinit>(Cone.java:22)

Anticipating solutions at the earliest.

 

thanx in advance.

regards

swapna

 

 

 

   



"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information.

If the reader of this message is not the intended recipient,

you are notified that any dissemination, distribution or copy of this

communication is strictly Prohibited.

If you have received this message by error, please notify us

immediately, return the original mail to the sender and delete the

message from your system."


------_=_NextPart_001_01C27B40.A33C5A00-- From Steffen.Oeltze@Student.Uni-Magdeburg.DE Thu Oct 24 10:46:44 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Thu, 24 Oct 2002 11:46:44 +0200 (MEST) Subject: [vtkusers] (no subject) Message-ID: <1035452804.3db7c18436641@webmail.uni-magdeburg.de> Dear VTK-users, I have written a slice viewer that uses a vtkImageMapper to display the slices. I would like the displayed image to fit exactly into the render window. However, once the image is bigger than the render window its gets cut. Does anybody have an idea ? Regards, Steffen From Steffen.Oeltze@Student.Uni-Magdeburg.DE Thu Oct 24 10:52:59 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Thu, 24 Oct 2002 11:52:59 +0200 (MEST) Subject: [vtkusers] displaying images Message-ID: <1035453179.3db7c2fb5bfa0@webmail.uni-magdeburg.de> Dear VTK-users, I have written a slice viewer that uses a vtkImageMapper to display the slices. I would like the displayed image to fit exactly into the render window. However, once the image is bigger than the render window its gets cut. Does anybody have an idea ? Regards, Steffen From jeff@cdnorthamerica.com Thu Oct 24 11:21:51 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 24 Oct 2002 06:21:51 -0400 Subject: [vtkusers] how to use vtkInteractorStyleTrackballActor References: <3DB7B54C.3080102@epfl.ch> Message-ID: <3DB7C9BF.9030309@cdnorthamerica.com> See the java example vtkCanvas.java, it uses vtkGenericRenderWindowInteractor - there is a method for setting interactor style. -Jeff Simon Chatelain wrote: > Hello, > > I saw this class who seems to be what i need. But i really don't > understand how to use it. > I am using vtk 4 and Java for my application. > > Does someone have an example or some explanation on how to use it. > > Thanks a lot > > 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 winston@cat.rpi.edu Thu Oct 24 11:42:45 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Thu, 24 Oct 2002 06:42:45 -0400 Subject: [vtkusers] Usenet Newsgroup comp.graphics.visualization.vtk References: <1035440105.3db78fe997b77@webmail.uni2.dk> Message-ID: <3DB7CEA5.527BDD20@cat.rpi.edu> Morten H Pedersen wrote: > > Once, the VTK mailing list was mirrored at nntp://vtkusers@public.kitware.com > This service seems to be stopped, and I have not been able to get through to > the institution. Morten, See http://public.kitware.com/pipermail/vtkusers/ to view, and http://www.kitware.com/search.html to search the archives. > Wouldn't it be great to have the mailing list mirrored or converted to a usenet > newsgroup - for instance: comp.graphics.visualization.vtk ? Searching the archive, I see that this topic has come up before: http://www.kitware.com/cgi-bin/htsearch?config=htdig_vtk&words=vtk+newsgroup HTH, -Jeremy From T.Hutton@eastman.ucl.ac.uk Thu Oct 24 12:06:49 2002 From: T.Hutton@eastman.ucl.ac.uk (Tim Hutton) Date: Thu, 24 Oct 2002 12:06:49 +0100 Subject: [vtkusers] vtkPolyDataNormals::ConsistencyOn problems Message-ID: <5.1.0.14.0.20021024114941.03a3aab0@144.82.123.1> Hello vtkusers, I have had occasional problems with vtkPolyDataNormals when consistency has been on and my surface is crumpled in places. I get streaks of reversed normals (appearing black) across the surface in places where there is no inconsistency, since the consistency is propagated out using a wave algorithm, in the order that the polygons are stored. I can get around the problem by simply turning ConsistencyOff(). Is there any need for a different normals algorithm that decides whether to enforce consistency based on some measure of how parallel the neighbouring polygons are? ie. if two neighbouring polys lie in the same plane then consistency is enforced more readily than if they make a sharp angle. Apologies if this email makes no sense. Thanks, Tim. --------------------------------------------------------------------------- Tim Hutton, http://www.eastman.ucl.ac.uk/~dmi/MINORI Research Fellow & PhD student, T.Hutton@eastman.ucl.ac.uk MINORI Project, Biomedical Informatics Unit, Tel: [+44] (0)20 7915 2344 Eastman Dental Institute, UCL, Fax: [+44] (0)20 7915 2303 256 Gray's Inn Road, London WC1X 8LD, UK Mobile: [+44] (0)7748 678 832 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. From mhp@dadlnet.dk Thu Oct 24 13:29:15 2002 From: mhp@dadlnet.dk (Morten H Pedersen) Date: Thu, 24 Oct 2002 14:29:15 +0200 Subject: [vtkusers] Usenet Newsgroup comp.graphics.visualization.vtk In-Reply-To: <3DB7CEA5.527BDD20@cat.rpi.edu> References: <1035440105.3db78fe997b77@webmail.uni2.dk> <3DB7CEA5.527BDD20@cat.rpi.edu> Message-ID: <1035462555.3db7e79b4bcac@webmail.uni2.dk> I know the search options at the Kitwares site, and that it has been discussed before - still, though, a newsgroup containing all posts is much faster and easier to search and navigate. Try it out using a GUI NNTP client. Jeremy Winston wrote: > Morten, > See > http://public.kitware.com/pipermail/vtkusers/ ... ASO Sincerely, Morten H Pedersen From c.p.botha@its.tudelft.nl Thu Oct 24 13:48:22 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 24 Oct 2002 14:48:22 +0200 Subject: [vtkusers] Usenet Newsgroup comp.graphics.visualization.vtk In-Reply-To: <1035462555.3db7e79b4bcac@webmail.uni2.dk> References: <1035440105.3db78fe997b77@webmail.uni2.dk> <3DB7CEA5.527BDD20@cat.rpi.edu> <1035462555.3db7e79b4bcac@webmail.uni2.dk> Message-ID: <1035463703.22555.11.camel@dutidad> On Thu, 2002-10-24 at 14:29, Morten H Pedersen wrote: > I know the search options at the Kitwares site, and that it has been discussed > before - still, though, a newsgroup containing all posts is much faster and > easier to search and navigate. Try it out using a GUI NNTP client. I disagree. I find email much more convenient. With a good threading MUA and filtering software, you have all the advantages of a usenet newsgroup with none of the disadvantages. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From pascal.kilian@esil.univ-mrs.fr Thu Oct 24 14:08:51 2002 From: pascal.kilian@esil.univ-mrs.fr (Pascal Kilian) Date: Thu, 24 Oct 2002 15:08:51 +0200 Subject: [vtkusers] MacOSX 10.2.1 Installation problems (lot of problems) Message-ID: I have a strange behaviour when compiling vtk on Darwin. So i followed the instructions given on the O'Reilly Network by M.J. Norton and the following things occured : 1) When compiling with Carbon only, there is a lot of symbols missing I added the AGL framework in the Makefile and recompiled the stuff. Compilation ends successfully but the Mace example wasn't built. Can't someone explain me why please. (Yes i turned the options "Examples" and "Testing" ON in the CMakeCache.txt and done cmake again (and again, and again, ...)) 2)When compiling with Cocoa, no symbols is missing. In these 2 cases i built the Mace example manually because it wasn't done. When built, and launched with -I option a window appears but with nothing in it. Seems i've done something wrong. (What ?) When building vtk with gcc2 and g++2, during linking one symbol is missing : __ZNSt8ios_base4InitC4Ev Where is this symbol located. Can't find it. Please please help me Pascal Kilian (pkilian.mailing@free.fr) From james@rogue-research.com Thu Oct 24 14:19:49 2002 From: james@rogue-research.com (James Dessart) Date: Thu, 24 Oct 2002 09:19:49 -0400 Subject: [vtkusers] MacOSX 10.2.1 Installation problems (lot of problems) In-Reply-To: Message-ID: <45CA6A62-E753-11D6-8D4F-003065B4553E@rogue-research.com> On Thursday, October 24, 2002, at 09:08 AM, Pascal Kilian wrote: > When building vtk with gcc2 and g++2, during linking one symbol is > missing : > __ZNSt8ios_base4InitC4Ev > > Where is this symbol located. Can't find it. That one is a gcc3-only symbol. It's called by the dylib initialization routines, to work around a bug that Apple is aware of. For the time being, you can either compile with gcc 3, or change your make files to not use the initialization routines, and comment them out. I haven't tried a build since that change was introduced, however. James From simon.chatelain@epfl.ch Thu Oct 24 14:24:44 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Thu, 24 Oct 2002 15:24:44 +0200 Subject: [vtkusers] another question about vtkInteractorStyleTrackballActor Message-ID: <3DB7F49C.2070400@epfl.ch> Thanks to Jeff: i undestand how to set an interactor style. Buut i have now to questions more: first : what is exactly changed when using this interactor, the vtkActor or the vtkPolydata ? In fact i need to apply the same transformations on another mesh in an other frame, but i d'ont know how to get the transformation applied on the actor. second : i have multiple actor in my vtkRenderWindow, but i want that only one can be modified by user. Typically i d'ont want that the user move the axesActor. Actually, i check each time the mouse button is pressed if the actor under the mouse is or not the actor who can be moved and set the interactor style. here is the code : public void mousePressed(MouseEvent e) { super.mousePressed(e); this.pickActor(e.getX(),e.getY()); if (this.activeActor == this.parent.instrumentMeshActor) { System.out.println("Instrument picked"); // set the interactor style to trackballActor iren.SetInteractorStyle(ista); } else { System.out.println("Other mesh picked"); // set the interaction style to trackballCamera iren.SetInteractorStyle(istc); } } From cpieper@kcc.com Thu Oct 24 14:33:54 2002 From: cpieper@kcc.com (Pieper, Chris) Date: Thu, 24 Oct 2002 08:33:54 -0500 Subject: [vtkusers] How to use a vtkLookupTable with more than 65536 entries Message-ID: <890DCD03CDC9D31195A300508B6FB72F126035A3@ustcax12.kcc.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C27B61.FEED33BC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am still using VTK3.2 (I know, I should update...), but my problem is that I am trying to set/get more than 65536 entries to/from a vtkLookupTable. I'm not a programmer, but I did dig around in the vtkLookupTable.h file and it seems that there may be some hard limit to the number of entries in a LUT. I tried the SetNumberOfTableValues() method, but did not get the results I wanted. My program works fine for anything with less than 65536 colors, but when I go over that number, I get bad looking results. Does anyone have a solution to allow more than 65536 entries into a LookupTable? Thanks, Chris ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== ------_=_NextPart_001_01C27B61.FEED33BC Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable How to use a vtkLookupTable with more than 65536 entries

I am still using VTK3.2 (I know, I should = update...), but my problem is that I am trying to set/get more than 65536 = entries to/from a vtkLookupTable.  I'm not a programmer, but I did dig= = around in the vtkLookupTable.h file and it seems that there may be some har= d= limit to the number of entries in a LUT.  I tried the = SetNumberOfTableValues() method, but did not get the results I wanted. = ;= My program works fine for anything with less than 65536 colors, but when I= = go over that number, I get bad looking results.

Does anyone have a solution to allow more = than 65536 entries into a LookupTable?

Thanks,

Chris

------------------------------------------------------------------------= ------
This e-mail is intended for the use of the addressee(s) only and may contai= n= privileged, confidential, or proprietary information that is exempt from = disclosure under law. If you have received this message in error, please = inform us promptly by reply e-mail, then delete the e-mail and destroy any = printed copy. Thank you.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

------_=_NextPart_001_01C27B61.FEED33BC-- From siddumd@yahoo.co.in Thu Oct 24 15:10:18 2002 From: siddumd@yahoo.co.in (=?iso-8859-1?q?Mysore=20Siddu?=) Date: Thu, 24 Oct 2002 15:10:18 +0100 (BST) Subject: [vtkusers] Normal Computation Message-ID: <20021024141018.99271.qmail@web8206.mail.in.yahoo.com> --0-2021772717-1035468618=:67813 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi vtk Users, I have some 3D points in vtkPolyData; I want to compute normal for them. I tried the following way, the code is working till triangulation but vtkPolyDataNormals is not working. I have two questions on this problem: 1. Why vtkPolyDataNormals is not working? 2. What is the probable reason for getting the following error? if I try to execute vtkDataArray *p = Snormals->GetOutput()->GetPointData()->GetNormals(); I'll get the error as error C2039: 'GetNormal' : is not a member of 'vtkDataArray' Can someone throw light on this Here is the code I am working on: vtkGeometryFilter *geoms = vtkGeometryFilter::New(); geoms->SetInput(Polydata output); geoms->Update(); vtkDelaunay2D *Ttriangulate =vtkDelaunay2D::New(); Ttriangulate->BoundingTriangulationOff(); Ttriangulate->SetTolerance(stltolerance); Ttriangulate->SetAlpha(0.01); Ttriangulate->ReleaseDataFlagOn(); Ttriangulate->SetInput(geoms->GetOutput()); Ttriangulate->Update(); vtkPolyDataNormals *Snormals=vtkPolyDataNormals::New(); Snormals->SetInput(Ttriangulate->GetOutput()); Snormals-> SetFeatureAngle(30.0); Snormals->SetComputePointNormals(1); Snormals->SplittingOff(); Snormals->ConsistencyOn(); Snormals->Update(); float *n = Snormals->GetOutput()->GetPointData()->GetNormals()->GetNormal(ptId); Thanks in advance Siddu Post your ad on Yahoo! India Autos.Check out the used Maruti, Fiat and Ford models on sale now. --0-2021772717-1035468618=:67813 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

Hi vtk Users,

I have some 3D points in vtkPolyData; I want to compute normal for them. I tried the following way, the code is working till triangulation but vtkPolyDataNormals is not working. I have two questions on this problem:

1. Why vtkPolyDataNormals is not working?

2. What is the probable reason for getting the following error? if I try to execute vtkDataArray *p = Snormals->GetOutput()->GetPointData()->GetNormals();

I'll get the error as error C2039: 'GetNormal' : is not a member of 'vtkDataArray'

Can someone throw light on this

Here is the code I am working on:

vtkGeometryFilter *geoms = vtkGeometryFilter::New();

geoms->SetInput(Polydata output);

geoms->Update();

vtkDelaunay2D *Ttriangulate =vtkDelaunay2D::New();

Ttriangulate->BoundingTriangulationOff();

Ttriangulate->SetTolerance(stltolerance);

Ttriangulate->SetAlpha(0.01);

Ttriangulate->ReleaseDataFlagOn();

Ttriangulate->SetInput(geoms->GetOutput());

Ttriangulate->Update();

vtkPolyDataNormals *Snormals=vtkPolyDataNormals::New();

Snormals->SetInput(Ttriangulate->GetOutput());

Snormals-> SetFeatureAngle(30.0);

Snormals->SetComputePointNormals(1);

Snormals->SplittingOff();

Snormals->ConsistencyOn();

Snormals->Update();

float *n = Snormals->GetOutput()->GetPointData()->GetNormals()->GetNormal(ptId);

Thanks in advance 

Siddu

 

Post your ad on Yahoo! India Autos. Check out the used Maruti, Fiat and Ford models on sale now. --0-2021772717-1035468618=:67813-- From jeff@cdnorthamerica.com Thu Oct 24 15:15:50 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 24 Oct 2002 10:15:50 -0400 Subject: [vtkusers] another question about vtkInteractorStyleTrackballActor References: <3DB7F49C.2070400@epfl.ch> Message-ID: <3DB80096.40802@cdnorthamerica.com> Simon Chatelain wrote: > Thanks to Jeff: i undestand how to set an interactor style. > > Buut i have now to questions more: > > first : what is exactly changed when using this interactor, the > vtkActor or the vtkPolydata ? > In fact i need to apply the same transformations on another > mesh in an other frame, > but i d'ont know how to get the transformation applied on > the actor. depending on the interactor style, either the camera is moved, or the actor is moved. The underlying polydata is never modified. > > > second : i have multiple actor in my vtkRenderWindow, but i want that > only one can be modified by > user. Typically i d'ont want that the user move the > axesActor. > Actually, i check each time the mouse button is pressed > if the actor under the mouse is or not > the actor who can be moved and set the interactor style. vtkInteractorStyleSwitch has both actor and camera modes - see the documentation for a description of keypresses. > > here is the code : > > public void mousePressed(MouseEvent e) > { > super.mousePressed(e); > this.pickActor(e.getX(),e.getY()); > if (this.activeActor == this.parent.instrumentMeshActor) > { > System.out.println("Instrument picked"); > // set the interactor style to trackballActor > iren.SetInteractorStyle(ista); > } > else > { > System.out.println("Other mesh picked"); > // set the interaction style to trackballCamera > iren.SetInteractorStyle(istc); > } > } > > _______________________________________________ > 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 volpecr@crd.ge.com Thu Oct 24 15:47:38 2002 From: volpecr@crd.ge.com (Volpe, Christopher R (Research)) Date: Thu, 24 Oct 2002 10:47:38 -0400 Subject: [vtkusers] Nightly CHM docs Message-ID: To whom it may concern: The file vtkNightlyDoc.chm in ftp://public.kitware.com/pub/vtk/nightly/ is corrupted. Is there a nightly version of the docs available? thanks, Chris > GE Global Research Center > ___________________________________________________________________________________________________ > _______________________________________________ > Dr. Christopher R. Volpe, Ph.D. Computer Scientist Visualization and Computer Vision Lab Imaging Technologies Bldg KW, Room C215 P.O. Box 8, Schenectady, NY 12301 (518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981 e-mail: volpecr@crd.ge.com web: http://www.crd.ge.com/~volpecr begin 600 winmail.dat M>)\^(BT.`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<` M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````T@<*`!@` M"@`O`"8`!`!>`0$@@`,`#@```-('"@`8``H`+P`J``0`8@$!"8`!`"$````W M1C`U.#)!1#@Y,3,X-C0R03E#-3$U-$(X,3@S,T$S.0#\!@$$@`$`$0```$YI M9VAT;'D@0TA-(&1O8W,`H`4!#8`$``(````"``(``0.0!@!P"```+0````,` M/8`((`8``````,````````!&`````%*%``!];@$`'@`^@`@@!@``````P``` M`````$8`````5(4```$````$````.2XP``L`ZH$((`8``````,````````!& M``````:%`````````P`_@`@@!@``````P````````$8``````84````````+ M`#N`""`&``````#`````````1@`````#A0````````L`0(`((`8``````,`` M``````!&``````Z%`````````P`\@`@@!@``````P````````$8`````$(4` M```````#`$&`""`&``````#`````````1@`````1A0````````,`0H`((`8` M`````,````````!&`````!B%`````````@$)$`$````%`P```0,``.H$``!, M6D9U?I<9>@,`"@!R8W!G,3(U%C(`^`M@;@X0,#,S3P'W`J0#XP(`8V@*P'/P M970P(`<3`H,`4`3E<0(`<')Q#E`0U@XP-7\&``4#`H,2\1!U$L(1:3.[`\81 M>#04FQ#/`I(U`\:;!>L"@'T*@`C((#L);_<3D1O3#B`X";0=<@HR'7%?&],3 MD0F[`H`*@78(D'?*:PN`9!=`=6,`4`L#@0NU(%1O('=H`W!,(&D%0`#`>2`% MH&XZ8P21.@JB"H0*@%1H&&4@9@,0)%!V=&L`3FEG:'1L>41X;V,N&$`B80.@ M`8!P8#HO+W!U`F`-X"[I()!T=PK`9260`W`F8MHO),$O`P`E$R\B<`0@&06A MF%&,"L1`'!D+W!% M9KM&T2L"3`&@"N,*@$D`P)IG"X!G(?`%D&AN"/&/2@`'D$&V%5!";&1*,!Q+ M5T10"``B44,R,2,9<".#4"Y/*7!";[AX(#A$4!/0)$!N,.&(861Y1%!.62`. M(`PS,"$3([8H-3$X`"D@,S@W+30)9!5AR]^5/5`DW]6\$J03C`+IRWJ(X,:\0`!6Y`` M```>`'```0```!$```!.:6=H=&QY($-(32!D;V-S``````(!<0`!````%@`` M``'">VQ,Y^[A;$HJRDK'HM=M$Y1I&K(```L``@`!`````P`)60,````#`-X_ MKV\``$``.0"P>E5,;'O"`0,`\3\)!```'@`Q0`$````2````0TA225-43U!( M15(N5D],4$4````#`!I``````!X`,$`!````$@```$-(4DE35$]02$52+E9/ M3%!%`````P`90``````#`/T_Y`0```,`)@```````P`V```````#`(`0____ M_P(!1P`!````-0```&,]55,[83U-05)+-#`P.W`]1T4[;#U834(P,D-21$=% M+3`R,3`R-#$T-#\(!0``(,'!F MV4YL>\(!'@`]``$````!`````````!X`'0X!````$0```$YI9VAT;'D@0TA- M(&1O8W,`````'@`U$`$````V````/$9"13DP1$9#,C0P0D$U-#%",SA!-#-& M,SDY,3-!,39$,#5!1D4V-#%`>&UB,#)C``@0`0```&4` M``!43U=(3TU)5$U!64-/3D-%4DXZ5$A%1DE,15942TY)1TA43%E$3T-#2$U) M3D944#HO+U!50DQ)0TM)5%=!4D5#3TTO4%5"+U942R].24=(5$Q9+TE30T]2 M4E505$5$25-42$52``````(!?P`!````-@```#Q&0D4Y,$1&0S(T,$)!-30Q I0C,X030S1C,Y.3$S03$V1#`U049%-C0Q0'AM8C`R8W)D9V4^````\.L= ` end From prabhu@aero.iitm.ernet.in Thu Oct 24 15:49:14 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 20:19:14 +0530 Subject: [vtkusers] Picking questions In-Reply-To: References: Message-ID: <15800.2154.461869.23121@monster.linux.in> >>>>> "PS" == P Sherwood writes: PS> I am still keen to hear if anyone has any ideas on my other PS> question, how to implement a "rubberband type" multiple PS> selection. 1. Find the co-ordinates of the rubberband box 2. sample a whole bunch of points (random or regular) in that box. 3. Do a pick for each of those points and find the object picked. Store if the object has not been picked already. cheers, prabhu From sebastien.barre@kitware.com Thu Oct 24 15:56:02 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Thu, 24 Oct 2002 10:56:02 -0400 Subject: [vtkusers] Nightly CHM docs In-Reply-To: Message-ID: <5.1.1.6.0.20021024105540.02017ce8@pop.biz.rr.com> At 10/24/2002 10:47 AM, Volpe, Christopher R (Research) wrote: >To whom it may concern: > >The file vtkNightlyDoc.chm in ftp://public.kitware.com/pub/vtk/nightly/ is >corrupted. Is there a >nightly version of the docs available? Yes, the HTML one: http://www.vtk.org/files/nightly/vtkNightlyDocHtml.tar.gz -- Sebastien Barre From prabhu@aero.iitm.ernet.in Thu Oct 24 16:02:16 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 20:32:16 +0530 Subject: [vtkusers] Normal Computation In-Reply-To: <20021024141018.99271.qmail@web8206.mail.in.yahoo.com> References: <20021024141018.99271.qmail@web8206.mail.in.yahoo.com> Message-ID: <15800.2936.956821.854033@monster.linux.in> >>>>> "MS" == Mysore Siddu writes: MS> 2. What is the probable reason for getting the following MS> error? if I try to execute vtkDataArray *p = MS> Snormals->GetOutput()->GetPointData()->GetNormals(); If you are using VTK 4.0+ GetNormals wont work. Try using GetPointData()->GetValue(ptId) instead. cheers, prabhu From prabhu@aero.iitm.ernet.in Thu Oct 24 16:28:06 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 Oct 2002 20:58:06 +0530 Subject: [vtkusers] Normal Computation In-Reply-To: <15800.2936.956821.854033@monster.linux.in> References: <20021024141018.99271.qmail@web8206.mail.in.yahoo.com> <15800.2936.956821.854033@monster.linux.in> Message-ID: <15800.4486.386736.233101@monster.linux.in> >>>>> "PR" == Prabhu Ramachandran writes: >>>>> "MS" == Mysore Siddu writes: MS> 2. What is the probable reason for getting the following MS> error? if I try to execute vtkDataArray *p = MS> Snormals->GetOutput()->GetPointData()->GetNormals(); PR> If you are using VTK 4.0+ GetNormals wont work. Try using PR> GetPointData()->GetValue(ptId) instead. Arghh, that should read GetPointData()->GetNormals()->GetValue(ptId). sorry. prabhu From jiang@TI.FhG.DE Thu Oct 24 17:12:10 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Thu, 24 Oct 2002 18:12:10 +0200 Subject: [vtkusers] How to realize volume raycast? Message-ID: Dear VTK users, I import 3d image data to vtkImageImport. Now I want to realize volume rendering. So I use the example SimpleRayCast and add the vtkImageImport to the line: volumeMapper->SetInput(importer->GetOutput()); instead of volumeMapper->SetInput(reader->GetOutput()); But the data can not be displayed on the screen. How should I do? Thanks in advance! Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From markus@noodle.med.yale.edu Thu Oct 24 17:15:51 2002 From: markus@noodle.med.yale.edu (Markus Neff) Date: Thu, 24 Oct 2002 12:15:51 -0400 Subject: [vtkusers] Questions on wrapping a C++ library for use in VTK Scripting (eg. TCL) Message-ID: <15800.7351.929000.623242@gargle.gargle.HOWL> Hello dear VTK mailing list readers ! I have a C++ class library (already using some VTK objects like "vtkImageData" in its interface) that I want to make usable from within VTK/TCL or VTK/Python etc. scripts. This library however uses standard C++ exceptions for error reporting to its users and things like std::string to pass strings in and out. There is a hierarchy of C++ classes that could be thrown in the case of some error condition. I probably have to write a small C++ class derived from "vtkObject" that internally uses the C++ class library and translate the interface of the C++ class library to a simpler form that the VTK Wrapper generator can understand but before starting to write this class, I wanted to ask you some questions: 1. Is there a way of automatically wrapping C++ exceptions to the corresponding exception mechanisms of TCL / JAVA /Python etc. ? If there is no such thing (I guess there is nothing like that by now) what would be the best way to provide sophisticated error handling facilities to the script writers ? 2. Is there support for automatically wrapping "std::string" or "std::vector" arguments in C++ class-methods ? 3. Has someone ever used SWIG together with VTK and some scripting language (because it seams to support some of the features I am asking about) ? 4. Is it possible to pass out multiple strings to the scripting languages with just one call similar to the following C++ code: void passOutTwoStrings(std::string& string1, std::string& string2) { string1 = std::string( "one" ); string2 = std::string( "two" ); } 4. I was playing with the wrapper generator and it seamed that it considers the use of the C/C++ keyword "volatile" as a syntax error. Is there a reason for this behaviour ? I just used the keyword for a private attribute of a class. Thanks a lot for any help or suggestions in advance !!! Regards, Markus Neff From smitty@kcc.com Thu Oct 24 18:08:23 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Thu, 24 Oct 2002 12:08:23 -0500 (CDT) Subject: [vtkusers] connection to ":0.0" refused by server Message-ID: Hello vtkusers@public.kitware.com, I got past the initial error (GLX missing, see attached (BTW the responses from vtkusers were underwhelming :-)) by upgrading to Exceed 3D 7.1, but now when I do - export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.). But I also get this error: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified and when I press "q" to quit, I get a segmentation fault. I'm running this remotely via ssh, and my $DISPLAY is set to - bash-2.05a$ echo $DISPLAY myhost:11.0 I have no trouble running other X Clients (xterm, xclock, xeyes, MATAB, etc.) so I don't believe it's my X Configuration causing this. >From smitty@random.kcc.com Fri Oct 18 15:17:29 2002 >Date: Fri, 18 Oct 2002 15:15:33 -0500 (CDT) >From: "Tom G. Smith (Smitty)" >To: vtk mailing list >Subject: "GLX" missing? > >Hello vtkusers@public.kitware.com, > >I had to tell cmake not to do Java Wrappers to avoid a syntax error on >a compiler, but I've succeeded in getting cmake -i, followed by make, >to complete for VTK 4.0 without errors on a RedHat 7.3 Linux host. >But when I do - > > export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl > vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl > >I get this result: > > Xlib: extension "GLX" missing on display "uswew004:10.0". > ...the above repeated... > ERROR: In /contrib/vtk/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 195 > vtkXOpenGLRenderWindow (0x9005ae8): Could not find a decent visual > Segmentation fault > >From the same host, I can do this to another host with VTK 3.2 installed, >and it works fine: > > ssh oldhost "(cd /contrib/vtk/vtk3.2/graphics/examplesTcl; vtk hello.tcl)" > >Here's what I did to compile, after installing cmake: > > tar xzf vtk40Src.tar.gz > chown -R root:root VTK > cd VTK > tar xzf ../vtk40Data.tar.gz > cmake -i # Skipped Java Wrappers. > make > >I did not install Mesa beforehand, because there are some conflicts with >the openGL rpm, already installed. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From tdsternberg@lbl.gov Thu Oct 24 18:20:06 2002 From: tdsternberg@lbl.gov (Theodore D. Sternberg) Date: Thu, 24 Oct 2002 10:20:06 -0700 (PDT) Subject: [vtkusers] ImplicitFunction from vtkPolyData? In-Reply-To: <15799.39198.666831.566929@monster.linux.in> Message-ID: On Thu, 24 Oct 2002, Prabhu Ramachandran wrote: > >>>>> "TDS" == Theodore D Sternberg writes: > > TDS> I'd like to clip one vtkPolyData against a (non-planar) > TDS> surface defined by another vtkPolyData. Image the first > TDS> vtkPolyData is the Earth, and the second vtkPolyData is the > TDS> shape of an impact crater; I'd like to show the Earth with a > TDS> crater in it. > > TDS> To do this, I think I need a vtkImplicitFunction to pass to a > TDS> vtkClipPolyData. Is there a good way to obtain the necessary > TDS> vtkImplicitFunction from that second vtkPolyData? > > I dont know of a way to do exactly this but take a look at the > vtkSelectPolyData class. It lets you define a loop on your PolyData > and then lets you select everything within or outside that loop. > Maybe you can use it to do what you need. > prabhu Thanks. It's not clear how I'd define a loop that encloses a volume, though. Before receiving your response, I was experimenting with vtkImplicitDataSet, since that implements vtkImplicitFunction, which is what I need for my clipping. I thought, start with the vtkPolyData whose geometry I want to use to define my clipping function, pipe that into a vtkImplicitModeler, pipe that to a vtkImplicitDataSet...and pass that to the vtkClipPolyData's SetClipFunction method. This approach makes sense, and hooking up that pipeline does not result in any complaints from VTK. Unfortunately, the rendering doesn't show the clipping I want...so far. Do you think I'm at least on the right track? Here is examplesPython/hello.py (VTK v3.2) modified along these lines, i.e. I'm trying to use the outline of the "HELLO" as a geometry to clip away from a red plane. ----------------------------- hello-clipping.py --------------------- #!/usr/local/bin/python import os try: VTK_DATA = os.environ['VTK_DATA'] except KeyError: VTK_DATA = '../../../vtkdata/' from libVTKCommonPython import * from libVTKGraphicsPython import * from colors import * # Create the RenderWindow, Renderer and both Actors # ren = vtkRenderer() renWin = vtkRenderWindow() renWin.AddRenderer(ren) iren = vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create lines reader = vtkPolyDataReader() reader.SetFileName(VTK_DATA + "/hello.vtk") lineMapper = vtkPolyDataMapper() lineMapper.SetInput(reader.GetOutput()) lineActor = vtkActor() lineActor.SetMapper(lineMapper) lineActor.GetProperty().SetColor(red[0],red[1],red[2]) # create implicit model imp = vtkImplicitModeller() imp.SetInput(reader.GetOutput()) imp.SetSampleDimensions(110,40,20) imp.SetMaximumDistance(25) imp.SetModelBounds(-1.0,10.0,-1.0,3.0,-1.0,1.0) contour = vtkContourFilter() contour.SetInput(imp.GetOutput()) contour.SetValue(0,0.4) impMapper = vtkPolyDataMapper() impMapper.SetInput(contour.GetOutput()) impMapper.ScalarVisibilityOff() impActor = vtkActor() impActor.SetMapper(impMapper) impActor.GetProperty().SetColor(peacock[0],peacock[1],peacock[2]) impActor.GetProperty().SetOpacity(0.5) # Add the actors to the renderer, set the background and size # #ren.AddActor(lineActor) ren.AddActor(impActor) ren.SetBackground(1,1,1) renWin.SetSize(600,250) camera = vtkCamera() camera.SetClippingRange(1.81325,90.6627) camera.SetFocalPoint(4.5,1,0) camera.SetPosition(4.5,1.0,6.73257) camera.SetViewUp(0,1,0) camera.Zoom(0.8) ren.SetActiveCamera(camera) # # A plane, which we will clip against the "Hello". # plane_source = vtkPlaneSource() plane_source.SetOrigin( -1,-1,0 ) plane_source.SetPoint1( -1,3,0 ) plane_source.SetPoint2( 10,-1,0 ) plane_mapper = vtkPolyDataMapper() plane_actor = vtkActor() plane_prop = vtkProperty() plane_prop.SetColor( 1.0,0,0 ) hello_dataset = vtkImplicitDataSet() hello_dataset.SetDataSet( imp.GetOutput() ) clipper = vtkClipPolyData() clipper.SetInput( plane_source.GetOutput() ) clipper.SetClipFunction( hello_dataset ) clipper.SetValue( 2.0 ) clipper.GenerateClippedOutputOn() clipper.InsideOutOn() clipper.Update() plane_mapper.SetInput( clipper.GetOutput() ) plane_actor.SetMapper( plane_mapper ) plane_actor.SetProperty( plane_prop ) ren.AddActor( plane_actor ) iren.Initialize() iren.Start() -------------------------------------------------------------------- From cristian.montagnoli@sudameris.com.br Thu Oct 24 18:39:40 2002 From: cristian.montagnoli@sudameris.com.br (Cristian Montagnoli) Date: Thu, 24 Oct 2002 14:39:40 -0300 Subject: [vtkusers] Voxel viewing Message-ID: Dear vtkusers, I am just starting with vtk and I am using it to represent voxel based algoritms for skeleton straction. I=B4ve read my test dataset with : vtkBMPReader *imagein=3DvtkBMPReader::New(); imagein->SetFilePrefix ("fig.bmp"); imagein->SetDataExtent(0, 255, 0, 255, 1, 9); Now I want to view each voxel as cube. It will be great if I could assign a alpha value for the cubes separately too. I=B4ve searched the examples but I did not find any source code which could help me. I would like a suggestion from someone. Thanks in advance, Cristian Montagnoli = From heiland@ncsa.uiuc.edu Thu Oct 24 19:03:35 2002 From: heiland@ncsa.uiuc.edu (Randy Heiland) Date: Thu, 24 Oct 2002 13:03:35 -0500 Subject: [vtkusers] updating SG scalars Message-ID: <1021024130335.ZM29546@pecos.ncsa.uiuc.edu> I've visited this problem in the past, but I just like to relive these moments... I have a vtkStructuredGrid containing a grid and just one scalar field. I want to read in/display filters for the SG, then read in a vtkFieldData file and update the scalar field (and filters). I currently try this for the update: dor = vtkDataObjectReader() dor.SetFileName(fieldfile) dor.Update() print 'doing GetArray(0)' scalars = vtkFloatArray() scalars = dor.GetOutput().GetFieldData().GetArray(0) vtkSG1.GetPointData().SetScalars(scalars) vtkSG1.GetPointData().Modified() vtkSG1.Update() However, it doesn't change seem to change the scalar field. Is this more or less the proper approach, or should I do it differently? --Randy From jeff@cdnorthamerica.com Thu Oct 24 19:22:50 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 24 Oct 2002 14:22:50 -0400 Subject: [vtkusers] updating SG scalars References: <1021024130335.ZM29546@pecos.ncsa.uiuc.edu> Message-ID: <3DB83A7A.20908@cdnorthamerica.com> Randy Heiland wrote: >I've visited this problem in the past, but I just like to relive these >moments... > >I have a vtkStructuredGrid containing a grid and just one scalar field. I want >to read in/display filters for the SG, then read in a vtkFieldData file and >update the scalar field (and filters). I currently try this for the update: > >dor = vtkDataObjectReader() >dor.SetFileName(fieldfile) >dor.Update() > >print 'doing GetArray(0)' >scalars = vtkFloatArray() >scalars = dor.GetOutput().GetFieldData().GetArray(0) >vtkSG1.GetPointData().SetScalars(scalars) >vtkSG1.GetPointData().Modified() >vtkSG1.Update() > >However, it doesn't change seem to change the scalar field. Is this more or >less the proper approach, or should I do it differently? > I do something like Grid->GetCellData()->AddArray(da); Grid->GetCellData()->SetActiveScalars(da->GetName()); Grid->Modified(); -Jeff > >--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 markus@noodle.med.yale.edu Thu Oct 24 19:43:25 2002 From: markus@noodle.med.yale.edu (Markus Neff) Date: Thu, 24 Oct 2002 14:43:25 -0400 Subject: [vtkusers] Questions on wrapping a C++ library for use in VTK Scripting (eg. TCL) In-Reply-To: <002e01c27b84$3cd02a50$2801a8c0@kitwarein.com> References: <15800.7351.929000.623242@gargle.gargle.HOWL> <002e01c27b84$3cd02a50$2801a8c0@kitwarein.com> Message-ID: <15800.16205.440000.803120@gargle.gargle.HOWL> Hi Ken, thanks a lot for your response !!! > > 2. Is there support for automatically wrapping "std::string" or > > "std::vector" arguments in C++ class-methods ? > > Not with the VTK wrappers. There is a new wrapper called cable > http://public.kitware.com/Cable/HTML/Index.html that I believe can > handle this and most other C++ features. I had a look at the web page and it looks like this would be the way to go in some time (when support for Python and Java becomes available). As I have to do the job now, I think I will have to write my own C++ wrapper and use the VTK wrapper generator to generate the required TCL/Python/Java wrappers ... > > If there is no such thing (I guess there is nothing like that > > by now) what would be the best way to provide sophisticated error > > handling facilities to the script writers ? Do you have any suggestions on this issue ? > That is just a goober (technical term) and the VTK wrappers could be > fairly easily modified to handle this if necessary. I have never used flex or bison or whatever is used for the wrapper. If there is no reason why "volatile" should be rejected by the parser, it might be a good thing to have it accepted by the wrapper generator. Thanks again for your help !!! Regards, Markus From luzdeser@yahoo.com.ar Thu Oct 24 19:58:58 2002 From: luzdeser@yahoo.com.ar (=?iso-8859-1?q?yo?=) Date: Thu, 24 Oct 2002 15:58:58 -0300 (ART) Subject: [vtkusers] RenderWindowsInteractor and update Message-ID: <20021024185858.45942.qmail@web40607.mail.yahoo.com> Hello, need help about something. The windowsinteractor only update the images when de camera moves, but is there any way to make it update the image even if the camera is still ? thanx anyway. Ahora pods usar Yahoo! Messenger desde tu celular. Aprend cmo hacerlo en Yahoo! Mvil: http://ar.mobile.yahoo.com/sms.html From smitty@kcc.com Thu Oct 24 20:08:43 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Thu, 24 Oct 2002 14:08:43 -0500 (CDT) Subject: [vtkusers] connection to ":0.0" refused by server In-Reply-To: Message-ID: As I said in my original post (see below) I have no trouble running any other X client in this environment. I'd already tried "xhost +myhost" but as a last resort; I wouldn't have expected it to make any difference. My display is - bash-2.05a$ echo $DISPLAY myhost:11.0 *not* ":0.0". Perhaps the real question should be, why is vtk partially ignoring my $DISPLAY value? Ssh is listening on port 11 on myhost. It captures all of the X Client output, sending it back to my real host in its own encrypted tunnel. BTW, I tried this - export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl vtk -display $DISPLAY \ /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl which gives me a grey-filled window labeled "vtk," no "Hello" graphic, no interaction, nada, and the only way I've found to get rid of it is to press Ctrl-C. If I leave off the -display - export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl I get the "Hello" graphic, and I can interact with it, rotating, zooming, etc, just like I can with VTK 3.2. But I get this message at startup (Note that :0.0 is *NOT* my $DISPLAY value) - Xlib: connection to ":0.0" refused by server Xlib: No protocol specified and when I press "q" to exit, I get a segmentation fault. On Thu, 24 Oct 2002, John Balster wrote: > >I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.). > >But I also get this error: > > > > Xlib: connection to ":0.0" refused by server > > Xlib: No protocol specified > > Did you execute an xhost command on the computer you are trying to open > the display on to tell it to allow windows to be opened? This has to be > done even if it's on the same machine that's running VtK. For instance, > if your machine is called kcc, you would use "xhost + kcc" to tell it to > allow windows from kcc. From a security point of view, I don't recommend > using "xhost +" as that would open up windows creation to any computer in > the world. > > John Original post to vtkusers@public.kitware.com: >From smitty@random.kcc.com Thu Oct 24 12:09:29 2002 Date: Thu, 24 Oct 2002 12:08:23 -0500 (CDT) From: "Tom G. Smith (Smitty)" To: vtk mailing list Cc: Chris Pieper Subject: connection to ":0.0" refused by server Hello vtkusers@public.kitware.com, I got past the initial error (GLX missing, see attached (BTW the responses from vtkusers were underwhelming :-)) by upgrading to Exceed 3D 7.1, but now when I do - export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.). But I also get this error: Xlib: connection to ":0.0" refused by server Xlib: No protocol specified and when I press "q" to quit, I get a segmentation fault. I'm running this remotely via ssh, and my $DISPLAY is set to - bash-2.05a$ echo $DISPLAY myhost:11.0 I have no trouble running other X Clients (xterm, xclock, xeyes, MATLAB, etc.) so I don't believe it's my X Configuration causing this. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From stefan.bruckner@chello.at Thu Oct 24 20:52:31 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: 24 Oct 2002 21:52:31 +0200 Subject: [vtkusers] vtkLineSource - multiple points Message-ID: <1035489152.1566.5.camel@NANCY> Hi. I have a question regarding vtkLineSource: I want to create a polyline connecting several points. Additionally, I want to be able to add new points to the line later. However, vtkLineSource only supports two points. What's the best way to to this? Is using several line sources a good way, what alternatives are there? Thanks for your help! -- Stefan Bruckner From ystarrev@uwo.ca Thu Oct 24 14:29:07 2002 From: ystarrev@uwo.ca (Yves Starreveld) Date: Thu, 24 Oct 2002 09:29:07 -0400 Subject: [vtkusers] MacOSX 10.2.1 Installation problems (lot of problems) In-Reply-To: Message-ID: <92B2B3B0-E754-11D6-9481-003065497A0E@uwo.ca> --Apple-Mail-3--823110622 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, Pascal, Unfortunately VTK on OSX is a bit of a moving target at present, since the compiler, Tk/Tcl, and the OS are pretty labile. (VTK is the most stable piece of the puzzle at this point!) The change to 10.2 introduced some changes to OpenGL and to fstream which are causing numerous tests to fail. That said, I recently committed some changes to VTK to deal with dynamic lib initialization which has fixed the build problems, and I tested this out by building from scratch on a virgin iMac over the weekend. There may be some problems if you have X11 installed on your machine. Currently you should be building with gcc3 only, as James just pointed out. I am also only working on Carbon builds at present, since all the tests use Tk windows and those are Carbon-based. I append a CMakeCache.txt file-stub that you can use. (put it in your build directory, name it CMakeCache.txt, run cmake again, then make) It assumes you have framework builds of Python and Tk/Tcl available in /Library/Frameworks. I am working on the vtkImageReader problem now. Once I have things building properly, I promise to update CMake to configure properly on OSX! --Apple-Mail-3--823110622 Content-Disposition: attachment; filename=NIGHTLYCMakeCache.txt Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="NIGHTLYCMakeCache.txt" //Build the local directory classes VTK_USE_LOCAL:BOOL=ON //Build VTK examples. BUILD_EXAMPLES:BOOL=ON //Build VTK with shared libraries. BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=ON //Flag used by CXX to build a shared library. CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-Wl,-flat_namespace,-U,_environ -bundle -framework Python -undefined suppress //Flag used by CXX to build a shared library. CMAKE_MODULE_BUILD_FLAGS:STRING=-bundle -flat_namespace -undefined suppress //Flags used by CXX compiler. CMAKE_CXX_FLAGS:STRING=-Wno-deprecated //Flags for C compiler. CMAKE_C_FLAGS:STRING= //Path to a program. PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python //What is the path where the file Python.h can be found PYTHON_INCLUDE_PATH:PATH=/Library/Frameworks/Python.framework/Headers //Where can one of the python, python21, python2.1, python20, python2.0, // python1.5, python15, python22 or python2.2 libraries be found // PYTHON_LIBRARY:FILEPATH=-framework Python //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=ON //Build the parallel directory classes VTK_USE_PARALLEL:BOOL=ON //Build the patented directory classes, these classes are patented // and may require a license to use VTK_USE_PATENTED:BOOL=ON //wrap classes into the Python interpreted language VTK_WRAP_PYTHON:BOOL=ON //wrap classes into the TCL intepreted language VTK_WRAP_TCL:BOOL=ON //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/Library/Frameworks/Tcl.framework/Headers;/Library/Frameworks/Tcl.framework/PrivateHeaders //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=-framework Tcl //What is the path where the file tk.h can be found TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers;/Library/Frameworks/Tk.framework/PrivateHeaders //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=-framework Tk --Apple-Mail-3--823110622 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Yves --Apple-Mail-3--823110622-- From ken-lists@nycap.rr.com Thu Oct 24 18:38:52 2002 From: ken-lists@nycap.rr.com (KenLists) Date: Thu, 24 Oct 2002 13:38:52 -0400 Subject: [vtkusers] Questions on wrapping a C++ library for use in VTK Scripting (eg. TCL) In-Reply-To: <15800.7351.929000.623242@gargle.gargle.HOWL> Message-ID: <002e01c27b84$3cd02a50$2801a8c0@kitwarein.com> > I have a C++ class library (already using some VTK objects like > "vtkImageData" in its interface) that I want to make usable from > within VTK/TCL or VTK/Python etc. scripts. This library however > uses standard C++ exceptions for error reporting to its users and > things like std::string to pass strings in and out. > There is a hierarchy of C++ classes that could be thrown in the > case of some error condition. > > I probably have to write a small C++ class derived from > "vtkObject" that internally uses the C++ class library and > translate the interface of the C++ class library to a simpler > form that the VTK Wrapper generator can understand but before > starting to write this class, I wanted to ask you some questions: > > 1. Is there a way of automatically wrapping C++ exceptions to the > corresponding exception mechanisms of TCL / JAVA /Python etc. ? > If there is no such thing (I guess there is nothing like that > by now) what would be the best way to provide sophisticated error > handling facilities to the script writers ? > > > 2. Is there support for automatically wrapping "std::string" or > "std::vector" arguments in C++ class-methods ? Not with the VTK wrappers. There is a new wrapper called cable http://public.kitware.com/Cable/HTML/Index.html that I believe can handle this and most other C++ features. > 3. Has someone ever used SWIG together with VTK and some scripting > language (because it seams to support some of the features > I am asking about) ? This usually gets tried or mentioned once a year or so and last I knew it didn't really work. But I haven't checked up on it in the last year so, feel free to give it a shot. > 4. Is it possible to pass out multiple strings to the scripting > languages with just one call similar to the following C++ code: > > void passOutTwoStrings(std::string& string1, std::string& string2) > { > string1 = std::string( "one" ); > string2 = std::string( "two" ); > } Not with the VTK wrappers. With Cable I believe you can do this. > 4. I was playing with the wrapper generator and it seamed that it > considers the use of the C/C++ keyword "volatile" as a syntax > error. Is there a reason for this behaviour ? I just used > the keyword for a private attribute of a class. That is just a goober (technical term) and the VTK wrappers could be fairly easily modified to handle this if necessary. Thanks Ken From maxxmad@yahoo.com Thu Oct 24 22:22:17 2002 From: maxxmad@yahoo.com (Matthew Mendez) Date: Thu, 24 Oct 2002 14:22:17 -0700 (PDT) Subject: [vtkusers] (no subject) Message-ID: <20021024212217.58307.qmail@web12804.mail.yahoo.com> Hello, I need a little help. I'm new to VTK and after spending 1 month banging out a script to do a MRA MIP reconstruction from MRA images I can't seem to get it to look right. Plus, I have a few other questions and woul really appreciate help from anyone with a few moments to spare. My questions are as follows: 1. How do you figure out the proper opacity and color transfer settings? I've tried a few different things and it never looks quite right (I think this is at the heart of why it doesn't look like an MRA). 2. How can I display the axes on my image? With a simple example the add axis works, but not when I do a the full blown data set. 3. When I rotate the image it blurs. How can I control this? Also, the first time I rotate it rotates fine, but the second time (and every time after that) it's terribly slow, any explanation for this? 4. The MR scanner is going to give me coordinates and I want to be able to put a cursor at those coordinates and then move the cursor to different coordinates based on updated input from the scanner. I tried to draw a sphere inside my volume, but I can't see it (I know it's commented out in the code below, but I can't see it even when it's not commented out). I tried show cursor which doesn't seem to work. 5. How do I convert coordinates from the scanner into vtk "world coordinates"? What do these coordinates represent? Thanks in advance for any help! Matt Mendez Cleveland, OH P.S. If someone would like to access the files I am using goto: http://www.anytimenow.com/in_atnp/guest/ and login with the "maxxmad" as login and password "files" (no quotes). Then click on the files area on the left and you will see the images. Here's my script: # MRAAPP TCL package require vtk package require vtkinteraction # Create the Renderer, RenderWindow, and RenderWindowInteractor. vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin SetSize 400 400 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # Create a sphere source in red vtkSphereSource sphere sphere SetRadius 0.2 vtkPolyDataMapper sphereMapper sphereMapper SetInput [sphere GetOutput] sphereMapper GlobalImmediateModeRenderingOn vtkLODActor sphereActor sphereActor SetMapper sphereMapper [sphereActor GetProperty] SetColor 1.0 0 0 sphereActor SetPosition 1 1 1 # Create the axes and the associated mapper and actor. vtkAxes axes axes SetOrigin 0 0 0 vtkPolyDataMapper axesMapper axesMapper SetInput [axes GetOutput] vtkActor axesActor axesActor SetMapper axesMapper [axesActor GetProperty] SetColor 1 0 0 vtkVectorText atext atext SetText "Origin" vtkPolyDataMapper textMapper textMapper SetInput [atext GetOutput] vtkFollower textActor textActor SetMapper textMapper textActor SetScale 0.2 0.2 0.2 textActor AddPosition 0 -0.1 0 vtkVolume16Reader reader reader SetFilePrefix "C:/MR/vtk40/VTKData/Data/RConvMRI/MRSample" reader SetFilePattern %s%d.raw reader SetImageRange 1 70 reader SetDataSpacing 0.25 0.25 2 reader SetDataDimensions 512 384 # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 0 0.0 opacityTransferFunction AddPoint 3 0.0 opacityTransferFunction AddPoint 6 0.0 opacityTransferFunction AddPoint 255 100 # Create transfer mapping scalar value to color vtkColorTransferFunction colorTransferFunction # colorTransferFunction AddRGBPoint 0.0 0.0 0.0 0.0 # colorTransferFunction AddRGBPoint 64.0 1.0 0.0 0.0 # colorTransferFunction AddRGBPoint 128.0 0.0 0.0 1.0 # colorTransferFunction AddRGBPoint 192.0 0.0 1.0 0.0 # colorTransferFunction AddRGBPoint 255.0 0.0 0.2 0.0 colorTransferFunction AddRGBPoint 0 0 0 0 colorTransferFunction AddRGBPoint 150 0 0 0 colorTransferFunction AddRGBPoint 255 1 1 1 # vtkPiecewiseFunc cFunc # CFunc AddPoint 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 vtkVolumeRayCastMIPFunction 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 volume SetPosition 1 1 1 ren1 SetBackground 0.1 0.2 0.4 ren1 AddActor axesActor ren1 AddVolume volume #ren1 AddActor textActor #ren1 AddActor sphereActor #ren1 AddActor2D textActor renWin Render __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From anast.jm@pg.com Fri Oct 25 00:46:12 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 24 Oct 2002 19:46:12 -0400 Subject: [vtkusers] (no subject) -> MRA rendering Message-ID: Matthew..as to question 1, you are treating the data as 8 bit in your transfer functions, typically you would scale everything up to 4095 instead of max 255, BUT your data is only in the low part of the 16 bit range so 0-255 opacity function is okay, now you just have to remember that opacity is 0 to 1.0 not 100. I was able to render your sample images okay but the slices don't seem to be a contiguous dataset (looks like maybe 3 sets back to back???)...maybe I just don't understand what the slices are. The easiest way to figure out the proper opacity and color functions is to load the slices up in VolView and use the interactive tools to sort it out (unfortunately this approach involves $$) You can download a trial version of VolView from Kitwares web site. Its really quite a nice tool to have on hand. The cheap way is trial and error. Examining the histogram can help with initial estimates however. You could always build your own interactive tools...I'm still looking for a tcl snippet to do this but no one's posted any yet ... hint hint (-; try this vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 0 0.0 opacityTransferFunction AddPoint 75 0.5 opacityTransferFunction AddPoint 190 1.0 vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0 0 0 0 colorTransferFunction AddRGBPoint 75 0.8 0.8 0.8 colorTransferFunction AddRGBPoint 190 1 1 1 question 3....the blurring is a lower level of detail so the intereaction stays real time. When you stop interacting it should do a full render. On my system, this works as expected and I don't notice any slow downs on subsequent interactions. Have to look to others to figure out the rest ...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Matthew Mendez @public.kitware.com on 10/24/2002 02:22 PM MST Matthew Mendez To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] (no subject) Sent by: vtkusers-admin@public.kitware.com 10/24/2002 05:22 PM Hello, I need a little help. I'm new to VTK and after spending 1 month banging out a script to do a MRA MIP reconstruction from MRA images I can't seem to get it to look right. Plus, I have a few other questions and woul really appreciate help from anyone with a few moments to spare. My questions are as follows: 1. How do you figure out the proper opacity and color transfer settings? I've tried a few different things and it never looks quite right (I think this is at the heart of why it doesn't look like an MRA). 2. How can I display the axes on my image? With a simple example the add axis works, but not when I do a the full blown data set. 3. When I rotate the image it blurs. How can I control this? Also, the first time I rotate it rotates fine, but the second time (and every time after that) it's terribly slow, any explanation for this? 4. The MR scanner is going to give me coordinates and I want to be able to put a cursor at those coordinates and then move the cursor to different coordinates based on updated input from the scanner. I tried to draw a sphere inside my volume, but I can't see it (I know it's commented out in the code below, but I can't see it even when it's not commented out). I tried show cursor which doesn't seem to work. 5. How do I convert coordinates from the scanner into vtk "world coordinates"? What do these coordinates represent? Thanks in advance for any help! Matt Mendez Cleveland, OH P.S. If someone would like to access the files I am using goto: http://www.anytimenow.com/in_atnp/guest/ and login with the "maxxmad" as login and password "files" (no quotes). Then click on the files area on the left and you will see the images. Here's my script: # MRAAPP TCL package require vtk package require vtkinteraction # Create the Renderer, RenderWindow, and RenderWindowInteractor. vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin SetSize 400 400 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # Create a sphere source in red vtkSphereSource sphere sphere SetRadius 0.2 vtkPolyDataMapper sphereMapper sphereMapper SetInput [sphere GetOutput] sphereMapper GlobalImmediateModeRenderingOn vtkLODActor sphereActor sphereActor SetMapper sphereMapper [sphereActor GetProperty] SetColor 1.0 0 0 sphereActor SetPosition 1 1 1 # Create the axes and the associated mapper and actor. vtkAxes axes axes SetOrigin 0 0 0 vtkPolyDataMapper axesMapper axesMapper SetInput [axes GetOutput] vtkActor axesActor axesActor SetMapper axesMapper [axesActor GetProperty] SetColor 1 0 0 vtkVectorText atext atext SetText "Origin" vtkPolyDataMapper textMapper textMapper SetInput [atext GetOutput] vtkFollower textActor textActor SetMapper textMapper textActor SetScale 0.2 0.2 0.2 textActor AddPosition 0 -0.1 0 vtkVolume16Reader reader reader SetFilePrefix "C:/MR/vtk40/VTKData/Data/RConvMRI/MRSample" reader SetFilePattern %s%d.raw reader SetImageRange 1 70 reader SetDataSpacing 0.25 0.25 2 reader SetDataDimensions 512 384 # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 0 0.0 opacityTransferFunction AddPoint 3 0.0 opacityTransferFunction AddPoint 6 0.0 opacityTransferFunction AddPoint 255 100 # Create transfer mapping scalar value to color vtkColorTransferFunction colorTransferFunction # colorTransferFunction AddRGBPoint 0.0 0.0 0.0 0.0 # colorTransferFunction AddRGBPoint 64.0 1.0 0.0 0.0 # colorTransferFunction AddRGBPoint 128.0 0.0 0.0 1.0 # colorTransferFunction AddRGBPoint 192.0 0.0 1.0 0.0 # colorTransferFunction AddRGBPoint 255.0 0.0 0.2 0.0 colorTransferFunction AddRGBPoint 0 0 0 0 colorTransferFunction AddRGBPoint 150 0 0 0 colorTransferFunction AddRGBPoint 255 1 1 1 # vtkPiecewiseFunc cFunc # CFunc AddPoint 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 vtkVolumeRayCastMIPFunction 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 volume SetPosition 1 1 1 ren1 SetBackground 0.1 0.2 0.4 ren1 AddActor axesActor ren1 AddVolume volume #ren1 AddActor textActor #ren1 AddActor sphereActor #ren1 AddActor2D textActor renWin Render __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ _______________________________________________ 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 david.netherway@adelaide.edu.au Fri Oct 25 02:22:23 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Fri, 25 Oct 2002 10:52:23 +0930 Subject: [vtkusers] ImplicitFunction from vtkPolyData? References: Message-ID: <001801c27bc4$f91e6380$0d8156c0@acfu.wch.sa.gov.au> Have a look through the archives. A vtkImplicitPolyData class has been made freely available by David Pont. David ----- Original Message ----- From: "Theodore D. Sternberg" To: Sent: Thursday, 24 October, 2002 8:39 AM Subject: [vtkusers] ImplicitFunction from vtkPolyData? > I'd like to clip one vtkPolyData against a (non-planar) surface defined by > another vtkPolyData. Image the first vtkPolyData is the Earth, and the > second vtkPolyData is the shape of an impact crater; I'd like to show the > Earth with a crater in it. > > To do this, I think I need a vtkImplicitFunction to pass to a > vtkClipPolyData. Is there a good way to obtain the necessary > vtkImplicitFunction from that second vtkPolyData? > > Ted Sternberg > Lawrence Berkeley National Laboratory > > _______________________________________________ > 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 cormack@chem.vu.nl Fri Oct 25 08:34:09 2002 From: cormack@chem.vu.nl (Drew McCormack) Date: Fri, 25 Oct 2002 09:34:09 +0200 Subject: [vtkusers] Who wrote Cocoa implementation? Message-ID: <26882300-E7EC-11D6-9759-003065BD3BD8@chem.vu.nl> Can anyone tell me who was responsible for writing the Cocoa implementation in VTK? I was hoping to get in contact with them. Drew ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack@chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From goodwin.lawlor@ucd.ie Fri Oct 25 09:00:33 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Fri, 25 Oct 2002 09:00:33 +0100 Subject: [vtkusers] Compile error on FreeBSD4.5 Message-ID: <002e01c27bfc$9903e6e0$a96cdac3@highcross> Hi All, I'm trying to compile vtkNightly4.n on a FreeBSD4.5 machine. Configured to compile shared libraries and wrapping tcl. All the vtk*.so libs are built but I get the following error when the build tries to compile the vtk executable. /usr/X11R6/lib/libGL.so: undefined reference to `pthread_getspecific' /usr/X11R6/lib/libGL.so: undefined reference to `pthread_key_create' /usr/X11R6/lib/libGL.so: undefined reference to `pthread_setspecific' This has cropped up once before on the list and Prabhu suggested adding -lpthread to the linker flags. http://public.kitware.com/pipermail/vtkusers/2001-November/008541.html Which one of these should -lpthread be added to: CMAKE_MODULE_LINK_FLAGS CMAKE_SHLIB_LINK_FLAGS CMAKE_CXX_MODULE_LINK_FLAGS CMAKE_CXX_SHLIB_LINK_FLAGS Maybe things have changed and one of these should be set to 1 instead: CMAKE_USE_PTHREADS CMAKE_HP_PTHREADS CMAKE_THREAD_LIBS Since the machine has a single processor should libGL.so be trying to reference pthread at all? Thanks, Goodwin University College Dublin From zhou@isg.cs.uni-magdeburg.de Fri Oct 25 09:16:37 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Fri, 25 Oct 2002 10:16:37 +0200 Subject: [vtkusers] volume texture mapping based on GeForce3 graphics card Message-ID: <3DB91A05.1175.69908F@localhost> Hi, vtk users, I want to render volume with texture mapping based on GeForce3 Graphics card in VTK. To realize this function, I think I should derive some vtk classes (e.g. vtkVolumeTextureMapper2D, etc.) and add GeForce3 functions (e.g. register combiners, etc.) into the derived classes. Does anyone have the experience to program combining VTK and GeForce3 graphics card to do volume rendering? Would anyone give me any ideas about combining VTK and GeForce card to do volume rendering? Thank you in advance. Best regards, Jianlong From P.Sherwood@dl.ac.uk Fri Oct 25 09:55:04 2002 From: P.Sherwood@dl.ac.uk (Sherwood, P (Paul)) Date: Fri, 25 Oct 2002 09:55:04 +0100 Subject: [vtkusers] Picking questions Message-ID: Prabhu and all, >> >>>>> "PS" == P Sherwood writes: >> >> PS> I am still keen to hear if anyone has any ideas on my other >> PS> question, how to implement a "rubberband type" multiple >> PS> selection. >> >> 1. Find the co-ordinates of the rubberband box >> >> 2. sample a whole bunch of points (random or regular) in that box. >> >> 3. Do a pick for each of those points and find the object picked. >> Store if the object has not been picked already. Thanks for the suggestion. I wondered about this approach, but I am worried about the cost of lots of pick calls .. and I expect lots will be needed to make sure no parts of the scene are missed and the rectangle is fully sampled. The scene may be very complex and it could be a major disaster of one of the elements (atoms) escapes the selection. It would seem to be a feature that would be best built into the vtk core somehow, but to be realistic I probably don't have the skills (or right now, the time) needed to do this. Maybe I could help at some time in the future with the support of someone who understands the current picking code. I understand from Will that there will be some vtk folks at SC 2002 so maybe we can talk it through then. Paul From p.cook@cs.ucl.ac.uk Fri Oct 25 11:56:42 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 25 Oct 2002 11:56:42 +0100 Subject: [vtkusers] Re: vtkLineSource - multiple points In-Reply-To: <20021025081801.9823.98366.Mailman@public.kitware.com> References: <20021025081801.9823.98366.Mailman@public.kitware.com> Message-ID: <1035543405.19681.107.camel@maraca.cs.ucl.ac.uk> > > Message: 1 > From: Stefan Bruckner > To: vtkusers@public.kitware.com > Date: 24 Oct 2002 21:52:31 +0200 > Subject: [vtkusers] vtkLineSource - multiple points > > Hi. I have a question regarding vtkLineSource: I want to create a > polyline connecting several points. Additionally, I want to be able to > add new points to the line later. > > However, vtkLineSource only supports two points. > > What's the best way to to this? Is using several line sources a good > way, what alternatives are there? > > Thanks for your help! > > -- > Stefan Bruckner > > Try vtkTubeFilter. It will draw a multi-sided (min sides == 3) tube around lines composed of many points. First, define the points (vtkPoints) and lines (vtkCellArray), then call poly->SetPoints(points) and poly->SetLines(lines). You can then use poly as the input to a vtkTubeFilter. You will need to reapply the filter if you change the input points. Phil From tp500@doc.ic.ac.uk Fri Oct 25 12:18:34 2002 From: tp500@doc.ic.ac.uk (Theodore Papatheodorou) Date: Fri, 25 Oct 2002 12:18:34 +0100 Subject: [vtkusers] model vs. world coordinates Message-ID: <3DB9288A.CDF71288@doc.ic.ac.uk> Hello, do you know of a way to get the world coordinates of an object in VTK. I am using the function actor->GETPOINTS->GETPOINT(a, x[3]) but it returns the coordinates in the model coordinate system. Do you know how I can get the coordinates in the world coordinate system? Please help if you know!!! Theodoros From Steffen.Oeltze@Student.Uni-Magdeburg.DE Fri Oct 25 12:35:00 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Fri, 25 Oct 2002 13:35:00 +0200 (MEST) Subject: [vtkusers] updating a vtkMapper Message-ID: <1035545700.3db92c6411e41@webmail.uni-magdeburg.de> Dear VTK-users, I have implemented a slice viewer together with a keyboard event-handler. When the user presses 'd' I want the slice to make a 90-turn. This works fine but only once. When I press 'd' the second time I have to change the slice to see the result. I probably forget some ->update() or ->modified() calls. I there anybody who would have a look at my code and help me ? void my2DvtkInteractorStyle::OnChar(int ctrl, int shift, char keycode, int vtkNotUsed(repeatcount)) { this->CtrlKey = ctrl; this->ShiftKey = shift; vtkRenderWindowInteractor *rwi = this->Interactor; switch (keycode) { case 'd' : case 'D' : ResultMatrix->Multiply4x4(ResultMatrix, RotMatrix, ResultMatrix); sliceViewer->get_imgReslice()->SetResliceAxes(ResultMatrix); sliceViewer->get_imgReslice()->Update(); sliceViewer->get_imgMapper()->RemoveAllInputs(); sliceViewer->get_imgMapper()->SetInput(sliceViewer->get_imgReslice()- >GetOutput()); sliceViewer->get_imgMapper()->Modified(); sliceViewer->get_imgActor()->Modified(); sliceViewer->get_imgRenderer()->Modified(); sliceViewer->get_imgRenderer()->Render(); sliceViewer->get_imgWindow()->Render(); sliceViewer->get_imgMapper()->SetZSlice(sliceViewer->get_imgMapper()- >GetZSlice()+1); rwi->Render(); break; From Gowri.Gopalakrishnan@inteq.com Fri Oct 25 13:00:49 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Fri, 25 Oct 2002 07:00:49 -0500 Subject: [vtkusers] model vs. world coordinates Message-ID: Either use the vtkworldpointpicker or after you get your coordinate you can use vtkCoordinate class to convert it which ever coordinate you want Gowri -----Original Message----- From: Theodore Papatheodorou [mailto:tp500@doc.ic.ac.uk] Sent: 25 October 2002 12:19 To: vtkusers@public.kitware.com Subject: [vtkusers] model vs. world coordinates Hello, do you know of a way to get the world coordinates of an object in VTK. I am using the function actor->GETPOINTS->GETPOINT(a, x[3]) but it returns the coordinates in the model coordinate system. Do you know how I can get the coordinates in the world coordinate system? Please help if you know!!! Theodoros _______________________________________________ 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.chatelain@epfl.ch Fri Oct 25 13:56:24 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Fri, 25 Oct 2002 14:56:24 +0200 Subject: [vtkusers] Analyze reader Message-ID: <3DB93F78.8030304@epfl.ch> Hello, i am looking for vtk reader an writer for the Analyze file format. i found the CISG toolkit who contains this but i need to use it with java. Can i compile the CISG classes like the vtk library with wrapping to java, and how ? Or if someone has others classes to read and write this format, can he send it to me ? Thanks Simon From jiang@TI.FhG.DE Fri Oct 25 14:47:37 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Fri, 25 Oct 2002 15:47:37 +0200 Subject: AW: [vtkusers] How to realize volume raycast? In-Reply-To: <20021024174634.W69000-100000@nessie.mcc.ac.uk> Message-ID: Hi, Andrew, Thank you for your help. It will be helpful if I want to shift data type some time. Now my problem is not data type. I imported short int data to vtkImageImport. Since I must do some operation on data, I have to import them from array to vtk pointer, instead of using vtk reader. Now it can be shown by vtkDataSetMapper. However, it can not be shown by vtkVolumeRayCastMapper. How can I solve this problem? By the way, the output of vtkImageImport is vtkImageData, not vtkStructuredPoints. Best, Chuyan -----Ursprungliche Nachricht----- Von: Andrew Porter [mailto:Andrew.R.Porter@man.ac.uk] Gesendet: Donnerstag, 24. Oktober 2002 18:49 An: Chunyan Jiang Betreff: Re: [vtkusers] How to realize volume raycast? Hi Chunyan, The volume renderer will only deal with byte data. If you have anything else (eg floats) then you have to filter them first: vtkStructuredPoints* structPts = reader->GetOutput(); structPts->GetScalarRange(range); printf("Input field range: min = %.3f, max = %.3f\n",range[0],range[1]); // Convert to byte data because that's what the vol. renderer needs vtkImageShiftScale *imageShift = vtkImageShiftScale::New(); imageShift->SetShift(-range[0]); imageShift->SetScale(255.0/(range[1]-range[0])); imageShift->SetOutputScalarTypeToUnsignedChar(); imageShift->SetInput(structPts); and you'll be needing a imageShift->GetOutput() too. Hope this helps. Andrew. > Dear VTK users, > I import 3d image data to vtkImageImport. Now I want to realize volume > rendering. So I use the example SimpleRayCast and add the vtkImageImport to > the line: > volumeMapper->SetInput(importer->GetOutput()); > instead of > volumeMapper->SetInput(reader->GetOutput()); > > But the data can not be displayed on the screen. How should I do? > Thanks in advance! > > Chunyan > > *********************************************************************** > Chunyan Jiang, Dipl.-Inform., > Institut for Telematic > Bahnhofstrasse 30-32, D-54292 Trier, Germany > Phone: (+49) (0)651-97551-34 > Fax: (+49) (0)651-97551-12 > *********************************************************************** > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Andrew Porter Software engineer, RealityGrid Tel. : +44 (0)161 2757184 Manchester Computing Fax. : +44 (0)161 2756040 University of Manchester Email: Andrew.Porter@man.ac.uk Oxford Road Web : www.realitygrid.org Manchester, M13 9PL : www.csar.cfs.ac.uk/staff/porter/ From prabhu@aero.iitm.ernet.in Fri Oct 25 14:05:06 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 25 Oct 2002 18:35:06 +0530 Subject: [vtkusers] Questions on wrapping a C++ library for use in VTK Scripting (eg. TCL) In-Reply-To: <15800.7351.929000.623242@gargle.gargle.HOWL> References: <15800.7351.929000.623242@gargle.gargle.HOWL> Message-ID: <15801.16770.611777.747924@monster.linux.in> Hi, >>>>> "MN" == Markus Neff writes: MN> 1. Is there a way of automatically wrapping C++ exceptions to MN> the corresponding exception mechanisms of TCL / JAVA /Python MN> etc. ? If there is no such thing (I guess there is nothing MN> like that by now) what would be the best way to provide MN> sophisticated error handling facilities to the script writers MN> ? SWIG support for wrapping C++ has improved by leaps and bounds in the last year or so. It now supports a huge range of things. I think it supports C++ exceptions too. boost.python also supports exceptions from C++ but it will work only for Python. MN> 2. Is there support for automatically wrapping "std::string" MN> or "std::vector" arguments in C++ class-methods ? I think SWIG can handle this, so can boost. Essentially yes you can do it. However, I am not sure its easy to do from within VTK's wrapping mechanism. MN> 3. Has someone ever used SWIG together with VTK and some MN> scripting language (because it seams to support some of the MN> features I am asking about) ? I'm not sure -- thus far no one seems to have responded to this so I am guessing. Anyway a week or so back I mailed the list some code on how to get the VTK C++ object from Python into a C++ function. Surely something similar must be there for the Tcl and Java wrappers but I am not sure and have not looked. Under Python I think it should be fairly easy to use SWIG along with the VTK wrappers to do what you need to do. Again, I'm only talking about the Python side of things. I do not know about the other wrappers. MN> 4. Is it possible to pass out multiple strings to the MN> scripting languages with just one call similar to the MN> following C++ code: MN> void passOutTwoStrings(std::string& string1, std::string& MN> string2) { string1 = std::string( "one" ); string2 = MN> std::string( "two" ); } I think this should be possible with boost.python and SWIG. I havent done it but am fairly confident that it should be possible. Even if its not possible the way you want it there will be a way to pass strings from the scripted language to Python/Tcl/Java. I am not sure how you want to do the wrapping yet. If you want to write code by hand to wrap your classes pretty much anything should be possible. If you want to use another tool maybe Cable (as Ken mentioned) or SWIG would be a good idea. cheers, prabhu From prabhu@aero.iitm.ernet.in Fri Oct 25 13:49:41 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 25 Oct 2002 18:19:41 +0530 Subject: [vtkusers] Compile error on FreeBSD4.5 In-Reply-To: <002e01c27bfc$9903e6e0$a96cdac3@highcross> References: <002e01c27bfc$9903e6e0$a96cdac3@highcross> Message-ID: <15801.15845.248259.570577@monster.linux.in> hi, >>>>> "GL" == Goodwin Lawlor writes: GL> Maybe things have changed and one of these should be set to 1 GL> instead: GL> CMAKE_USE_PTHREADS CMAKE_HP_PTHREADS CMAKE_THREAD_LIBS Well, maybe turning CMAKE_USE_PTHREADS to ON will help. Here is what my configuration on Debian GNU/Linux is: //Thread library used CMAKE_THREAD_LIBS:STRING=-lpthread //Use the pthreads library CMAKE_USE_PTHREADS:BOOL=ON I think the -lpthread was auto detected. So I'd suggest turning on the PTHREADS bool and redoing cmake and see if it picks up pthread. cheers, prabhu From prabhu@aero.iitm.ernet.in Fri Oct 25 14:09:35 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 25 Oct 2002 18:39:35 +0530 Subject: [vtkusers] connection to ":0.0" refused by server In-Reply-To: References: Message-ID: <15801.17039.564523.811762@monster.linux.in> >>>>> "TGS" == Tom G Smith <(Smitty)" > writes: TGS> As I said in my original post (see below) I have no trouble TGS> running any other X client in this environment. I'd already TGS> tried "xhost +myhost" but as a last resort; I wouldn't have TGS> expected it to make any difference. My display is - TGS> bash-2.05a$ echo $DISPLAY myhost:11.0 I've seen this happen too but haven't had the chance to see whats wrong. My suspicion is that the vtkXOpenGLRenderWindow is not doing the "right thing" somewhere. Maybe its not checking for DISPLAY at all? I don't know enough low level X to figure it out easily. :( prabhu From smitty@kcc.com Fri Oct 25 15:20:43 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Fri, 25 Oct 2002 09:20:43 -0500 (CDT) Subject: [vtkusers] connection to ":0.0" refused by server (fwd) Message-ID: Hello John and vtkusers, Here's a cut-and-paste of two commands, and I've interjected some comments, preceded by a # (I've also replaced the real hostnames because our security department scans list servers for any mention of my company, and threatens us with dismemberment if they see any internal hostnames in our emails :-): ............................................... bash-2.04$ hostname thishost bash-2.04$ ssh myhost /usr/X11R6/bin/xclock # I did Ctrl-C to stop xclock, which displayed fine. Received signal 2. (no core) bash-2.04$ ssh myhost TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl \ > vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl Xlib: connection to ":0.0" refused by server Xlib: No protocol specified # I got the "Hello" graphic on my display, and could zoom, # rotate, etc. I pressed q to exit. bash-2.04$ ............................................... I also tried it directly on the console, where it works perfectly (and on a Compaq Evo W8000 with an nvidia quadro2 graphics card really zings! :-). But if n people use this machine, n-1 won't be at the console, so I need to resolve the problem. Here's from the ssh man page, if it'll help understand the environment we have: Excerpt from "man ssh": If the user is using X11 (the DISPLAY environment variable is set), the connection to the X11 display is automati cally forwarded to the remote side in such a way that any X11 programs started from the shell (or command) will go through the encrypted channel, and the connection to the real X server will be made from the local machine. The user should not manually set DISPLAY. Forwarding of X11 connections can be configured on the command line or in configuration files. The DISPLAY value set by ssh2 will point to the server machine, but with a display number greater than zero. This is normal, and happens because ssh2 creates a "proxy" X server on the server machine for forwarding ---------- Forwarded message ---------- Date: Thu, 24 Oct 2002 16:33:25 -0700 From: John Balster To: "Tom G. Smith (Smitty)" Subject: Re: [vtkusers] connection to ":0.0" refused by server Sorry about that. I must have overlooked that last paragraph. Is the computer you are trying to display on called myhost? The DISPLAY variable needs to have the name of the computer you are trying to open the window on. In other words, if this is the same machine as you appear to have sent your mail message from, the DISPLAY variable should have "random:11.0" rather than "myhost:11.0". What I'm thinking here is if Xlib can't resolve the "myhost", it may be defaulting to using ":0.0" in place of the DISPLAY variable contents it can't resolve. John At 2:08 PM -0500 10/24/02, Tom G. Smith (Smitty) wrote: >As I said in my original post (see below) I have no trouble running >any other X client in this environment. I'd already tried >"xhost +myhost" but as a last resort; I wouldn't have expected it to >make any difference. My display is - > > bash-2.05a$ echo $DISPLAY > myhost:11.0 > >*not* ":0.0". Perhaps the real question should be, why is vtk partially >ignoring my $DISPLAY value? Ssh is listening on port 11 on myhost. >It captures all of the X Client output, sending it back to my real >host in its own encrypted tunnel. >BTW, I tried this - > > export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl > vtk -display $DISPLAY \ > /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl > >which gives me a grey-filled window labeled "vtk," no "Hello" graphic, >no interaction, nada, and the only way I've found to get rid of it >is to press Ctrl-C. If I leave off the -display - > > export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl > vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl > >I get the "Hello" graphic, and I can interact with it, rotating, >zooming, etc, just like I can with VTK 3.2. But I get this message >at startup (Note that :0.0 is *NOT* my $DISPLAY value) - > > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > >and when I press "q" to exit, I get a segmentation fault. > >On Thu, 24 Oct 2002, John Balster wrote: >> >I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.). >> >But I also get this error: >> > >> > Xlib: connection to ":0.0" refused by server >> > Xlib: No protocol specified >> >> Did you execute an xhost command on the computer you are trying to open >> the display on to tell it to allow windows to be opened? This has to be >> done even if it's on the same machine that's running VtK. For instance, >> if your machine is called kcc, you would use "xhost + kcc" to tell it to >> allow windows from kcc. From a security point of view, I don't recommend >> using "xhost +" as that would open up windows creation to any computer in >> the world. >> >> John > >Original post to vtkusers@public.kitware.com: >>From smitty@random.kcc.com Thu Oct 24 12:09:29 2002 >Date: Thu, 24 Oct 2002 12:08:23 -0500 (CDT) >From: "Tom G. Smith (Smitty)" >To: vtk mailing list >Cc: Chris Pieper >Subject: connection to ":0.0" refused by server > >Hello vtkusers@public.kitware.com, > >I got past the initial error (GLX missing, see attached (BTW the >responses from vtkusers were underwhelming :-)) by upgrading to Exceed >3D 7.1, but now when I do - > > export TCLLIBPATH=/contrib/vtk/VTK/Wrapping/Tcl > vtk /contrib/vtk/VTK/Examples/Modelling/Tcl/hello.tcl > >I get the "Hello" graphic, and I can interact with it (rotate, zoom, etc.). >But I also get this error: > > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > >and when I press "q" to quit, I get a segmentation fault. I'm running >this remotely via ssh, and my $DISPLAY is set to - > > bash-2.05a$ echo $DISPLAY > myhost:11.0 > >I have no trouble running other X Clients (xterm, xclock, xeyes, MATLAB, etc.) >so I don't believe it's my X Configuration causing this. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From jafoster@uncc.edu Fri Oct 25 15:56:35 2002 From: jafoster@uncc.edu (Joshua A Foster) Date: Fri, 25 Oct 2002 10:56:35 -0400 Subject: [vtkusers] Problem with vtkFlRenderWindowInteractor Message-ID: <200210251056.35553.jafoster@uncc.edu> I am having a problem updating the render window in FLTK under Linux. I'm using a vtkRenderer attached to a vtkRenderWindow, which is attached to the vtkFlRenderWindowInteractor. Mouse interaction works fine, but when I manually refresh the screen by calling Render(), it crashes intermittently. The error is usually: XRequest.143: BadAccess (attempt to access private resource denied) 0x2800003 The view starts with one actor, then actors are added from other parts of a program via a callback. Is there a restriction on adding actors while interacting with the window? Another problem that I have frequently is not all actors being drawn. I can print out the visible actor count and it is correct, but only a few of the actors are shown on the screen. I can replace the vtkFlRenderWindowInteractor with a regular vtkRenderWindowInteractor and the actors are shown correctly. Do you have any ideas on what I could do to correct this? Thanks, Joshua Foster jafoster@uncc.edu From siddumd@yahoo.co.in Fri Oct 25 16:08:32 2002 From: siddumd@yahoo.co.in (=?iso-8859-1?q?Mysore=20Siddu?=) Date: Fri, 25 Oct 2002 16:08:32 +0100 (BST) Subject: [vtkusers] Points within radius Message-ID: <20021025150832.50690.qmail@web8202.mail.in.yahoo.com> --0-38143344-1035558512=:50282 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi prabhu/Tim Thanks for the response and it was very helpful. I have one more question to all the vtk users. I am using stl reader and vtkcelllocator to get a line intersection point and its cellID. After this I tried to compute all the points that lie within radius of the intersection point. To compute the points within radius I am using: pointLocator->FindPointsWithinRadius(radius, ptline, res); Question is: As I looked at the normal of all the points within radius I discovered that most of the points are from inside surface, where as my intersection point is at outside surface. How to compute all the points that lie only on the outer side of the surface? The code I am using for this is : vtkIdList *res = vtkIdList::New(); float radius = 2.0; vtkPointLocator *pointLocator = vtkPointLocator::New(); pointLocator->SetDataSet(stlreader->GetOutput()); pointLocator->BuildLocator(); pointLocator->FindPointsWithinRadius(radius, ptline, res); pointLocator->Update(); vtkIdType ptId; float *pt; int num_pts; num_pts = res->GetNumberOfIds(); for (int i=0; i < num_pts; i++) { ptId = res->GetId(i); pt = poly->GetPoint(ptId); } Thanks in advance Siddu Post your ad on Yahoo! India Autos.Check out the used Maruti, Fiat and Ford models on sale now. --0-38143344-1035558512=:50282 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

 Hi prabhu/Tim

Thanks for the response and it was very helpful. I have one more question to all the vtk users.

I am using stl reader and  vtkcelllocator to get a  line intersection point and its cellID. After this I tried to compute all the points that lie within radius of the intersection point.

To compute the points within radius I am using:

pointLocator->FindPointsWithinRadius(radius, ptline, res);

Question is: As I looked at the normal of all the points within radius I discovered that most of the points are from inside surface, where as my intersection point is at outside surface. How to compute all the points that lie only on the outer side of the surface?

The code I am using for this is :

vtkIdList *res = vtkIdList::New();

                        float radius = 2.0;

                       vtkPointLocator *pointLocator = vtkPointLocator::New();

                        pointLocator->SetDataSet(stlreader->GetOutput());

                        pointLocator->BuildLocator();

                        pointLocator->FindPointsWithinRadius(radius, ptline, res);

                        pointLocator->Update();

                        vtkIdType ptId;

                        float *pt;

                        int num_pts;

                        num_pts = res->GetNumberOfIds();

                         for (int i=0; i < num_pts; i++)

                          {

                          ptId = res->GetId(i);

                         pt = poly->GetPoint(ptId);

                         }

Thanks in advance

Siddu

 

Post your ad on Yahoo! India Autos. Check out the used Maruti, Fiat and Ford models on sale now. --0-38143344-1035558512=:50282-- From c.p.botha@its.tudelft.nl Fri Oct 25 16:22:28 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: 25 Oct 2002 17:22:28 +0200 Subject: [vtkusers] Problem with vtkFlRenderWindowInteractor In-Reply-To: <200210251056.35553.jafoster@uncc.edu> References: <200210251056.35553.jafoster@uncc.edu> Message-ID: <1035559348.27219.8.camel@dutidad> On Fri, 2002-10-25 at 16:56, Joshua A Foster wrote: > XRequest.143: BadAccess (attempt to access private resource denied) 0x2800003 I've never seen this... what would help immensely is if you could produce a short(ish) snippet of code with which you can reproduce this error. If I can reproduce it at my end, I actually have a chance of fixing it. BTW, which versions of everything are you using? Software, platform, drivers? > The view starts with one actor, then actors are added from other parts of a > program via a callback. Is there a restriction on adding actors while > interacting with the window? This shouldn't be a problem. > Another problem that I have frequently is not all actors being drawn. I can > print out the visible actor count and it is correct, but only a few of the > actors are shown on the screen. I can replace the > vtkFlRenderWindowInteractor with a regular vtkRenderWindowInteractor and the > actors are shown correctly. Do you have any ideas on what I could do to > correct this? There used to be a problem like this with some of the older NVidia drivers, but that affected all renderwindows. Once again, I need to able to reproduce this as I haven't seen it yet. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From krs@cs.uncc.edu Fri Oct 25 18:43:06 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Fri, 25 Oct 2002 13:43:06 -0400 Subject: [vtkusers] Re: vtkLineSource - multiple points References: <20021025081801.9823.98366.Mailman@public.kitware.com> <1035543405.19681.107.camel@maraca.cs.ucl.ac.uk> Message-ID: <3DB982AA.B33AB6B9@cs.uncc.edu> Phil Cook wrote: > > > > Message: 1 > > From: Stefan Bruckner > > To: vtkusers@public.kitware.com > > Date: 24 Oct 2002 21:52:31 +0200 > > Subject: [vtkusers] vtkLineSource - multiple points > > > > Hi. I have a question regarding vtkLineSource: I want to create a > > polyline connecting several points. Additionally, I want to be able to > > add new points to the line later. > > > > However, vtkLineSource only supports two points. > > > > What's the best way to to this? Is using several line sources a good > > way, what alternatives are there? > > > > Thanks for your help! > > > > -- > > Stefan Bruckner > > > > > > Try vtkTubeFilter. It will draw a multi-sided (min sides == 3) tube > around lines composed of many points. First, define the points > (vtkPoints) and lines (vtkCellArray), then call poly->SetPoints(points) > and poly->SetLines(lines). You can then use poly as the input to a > vtkTubeFilter. > > You will need to reapply the filter if you change the input points. Or put the TubeFilter around a 1D structured grid -:) works fine.. -- krs > > > Phil > > _______________________________________________ > 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@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From vahid@elham.iut.ac.ir Fri Oct 25 18:52:59 2002 From: vahid@elham.iut.ac.ir (Vahid Zahiri) Date: Fri, 25 Oct 2002 21:22:59 +0330 Subject: [vtkusers] Vtk File Format Message-ID: <20021025175259.B745D87EFC@elham.iut.ac.ir> hello i have a file with vtk format , it is contain a Structured Grid. can i add another Structured Grid to this file,(two Structured Grid in one file), and how can i read them? thanks in advance. Vahid Zahiri From maxxmad@yahoo.com Fri Oct 25 19:32:57 2002 From: maxxmad@yahoo.com (Matthew Mendez) Date: Fri, 25 Oct 2002 11:32:57 -0700 (PDT) Subject: [vtkusers] Volume Rendering, Need To Display Cursor Message-ID: <20021025183257.92597.qmail@web12806.mail.yahoo.com> Thank you to the person who answered my question earlier, much appreciated. I realized that my data set wasn't contiguous and that there were actually 3 data sets. So, I figured everything out. Appreciate your suggestions about VolView, will try that. Also, appreciate transfer function suggestions. Have one more question: 1. How do I get a cursor to display on the screen in my volume and what is the significancwe of VTKs "world coordinates." In other words, how I can I map my cursor to a desired location once it appears? Thanks, Matt Mendez __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From prabhu@aero.iitm.ernet.in Fri Oct 25 19:44:36 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 26 Oct 2002 00:14:36 +0530 Subject: [vtkusers] Vtk File Format In-Reply-To: <20021025175259.B745D87EFC@elham.iut.ac.ir> References: <20021025175259.B745D87EFC@elham.iut.ac.ir> Message-ID: <15801.37140.186614.494737@monster.linux.in> >>>>> "VZ" == Vahid Zahiri writes: VZ> hello i have a file with vtk format , it is contain a VZ> Structured Grid. can i add another Structured Grid to this VZ> file,(two Structured Grid in one file), and how can i read No, with the current data file format you cannot stick two structured grids in the same file. You can have multiple attributes in the same file but not multiple datasets. cheers, prabhu From marcelo@cci.fmrp.usp.br Fri Oct 25 14:50:26 2002 From: marcelo@cci.fmrp.usp.br (Marcelo Costa Oliveira) Date: Fri, 25 Oct 2002 11:50:26 -0200 Subject: [vtkusers] Kylix 3 for C++ and VTK 4.0 Message-ID: <3DB94C22.6010806@cci.fmrp.usp.br> Is possible to compile Kylix 3 for C++ and VTK 4.0 Tanks for advanced me From smitty@kcc.com Fri Oct 25 20:55:35 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Fri, 25 Oct 2002 14:55:35 -0500 (CDT) Subject: [vtkusers] cmake? Message-ID: Where do I find documentation on cmake? The rpm contains no man pages for it. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From andy.cedilnik@kitware.com Fri Oct 25 21:08:53 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 25 Oct 2002 16:08:53 -0400 Subject: [vtkusers] cmake? In-Reply-To: References: Message-ID: <1035576533.788.6645.camel@xanth.kitwarein.com> Hello Tom, I would start by looking at www.cmake.org. Andy On Fri, 2002-10-25 at 15:55, Tom G. Smith (Smitty) wrote: > Where do I find documentation on cmake? > The rpm contains no man pages for it. From amy.henderson@kitware.com Fri Oct 25 21:09:04 2002 From: amy.henderson@kitware.com (Amy Henderson) Date: Fri, 25 Oct 2002 16:09:04 -0400 Subject: [vtkusers] cmake? In-Reply-To: Message-ID: <5.1.0.14.0.20021025160850.02242c00@pop.biz.rr.com> www.cmake.org - Amy At 02:55 PM 10/25/2002 -0500, Tom G. Smith (Smitty) wrote: >Where do I find documentation on cmake? >The rpm contains no man pages for it. > > >------------------------------------------------------------------------------ >This e-mail is intended for the use of the addressee(s) only and may >contain privileged, confidential, or proprietary information that is >exempt from disclosure under law. If you have received this message in >error, please inform us promptly by reply e-mail, then delete the e-mail >and destroy any printed copy. Thank you. > >============================================================================== >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From sebastien.barre@kitware.com Fri Oct 25 21:10:48 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Fri, 25 Oct 2002 16:10:48 -0400 Subject: [vtkusers] cmake? In-Reply-To: Message-ID: <5.1.1.6.0.20021025161021.03468fb8@pop.biz.rr.com> At 10/25/2002 03:55 PM, Tom G. Smith (Smitty) wrote: >Where do I find documentation on cmake? http://www.cmake.org check Example, Documentation. -- Sebastien Barre From smitty@kcc.com Sat Oct 26 00:11:47 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Fri, 25 Oct 2002 18:11:47 -0500 (CDT) Subject: [vtkusers] Can't interact remotely with binary from Cone.cxx Message-ID: Hello vtkusers, I just installed VTK 4.0.2, and you may've seen the problem I posted about getting Tcl scripts to work. I'm having a similar problem with C++ files. I compile Cone.cxx with these commands: mkdir Cone; cd Cone cp /contrib/vtk/VTK/Examples/Tutorial/Step1/Cxx/Cone.cxx . vtkbuildmake Cone # Builds CMakeLists.txt, listed below, runs cmake. make It compiles clean, but when I run it remotely I get the same error as with Tcl scripts (Note that my $DISPLAY is *NOT* set to :0.0): bash-2.05a$ ./Cone Xlib: connection to ":0.0" refused by server Xlib: No protocol specified The graphic of the cone displays, and slowly revolves, but there's absolutely no interaction. I can't rotate, zoom, move, or even get it to recognize "q" to quit. The mouse and keyboard don't do anything. To stop the display I must do Ctrl-C. All other X clients work fine, e.g. xterm, xclock, MATLAB, Mathematica, SAS, etc. Here's my CMakeLists.txt file (BTW cmake takes some getting used to. Can't say I like it very much): ..................................................................... PROJECT (Cone) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF (USE_VTK_FILE) INCLUDE_DIRECTORIES( /opt/vtk/Imaging/Testing/Cxx /opt/vtk/Rendering /opt/vtk/Hybrid /opt/vtk/Patented /opt/vtk/Parallel /opt/vtk /opt/vtk/Common /opt/vtk/Filtering /opt/vtk/Imaging /opt/vtk/Graphics /opt/vtk/IO /opt/vtk/Utilities/zlib /opt/vtk/Utilities/png /opt/vtk/Utilities/jpeg /opt/vtk/Common/Testing/Cxx /usr/include/python1.5 ) LINK_DIRECTORIES( /contrib/vtk/VTK/bin /usr/X11R6/lib ) LINK_LIBRARIES( vtkRendering vtkGraphics vtkImaging vtkFiltering vtkCommon GL Xt SM ICE X11 Xext pthread m dl ) ADD_EXECUTABLE(Cone Cone.cxx) ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From affable@hd2.dot.net.in Sat Oct 26 10:21:50 2002 From: affable@hd2.dot.net.in (cspl) Date: Sat, 26 Oct 2002 14:51:50 +0530 Subject: [vtkusers] error... Message-ID: <000c01c27cd1$21121f00$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C27CFF.372AC610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sir, we are using new vtk src code.We build libs and using in our = winowsNT(4.0).It is working fine.But in windows 98 we are getting = error.I have written error follows. Error: in D:\projects\vtk\vtk\rendering\vtkwin32openglrenderwindow.cxx = line 588; vtkwin32openglrenderwindow (0x00c92160): could not create = window , error:0 please give me suggestion. Thanking you, Regards, ramakrishna ------=_NextPart_000_0009_01C27CFF.372AC610 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Dear Sir,
 
we are using new vtk src code.We build = libs and=20 using in our winowsNT(4.0).It is working fine.But in windows 98 we are = getting=20 error.I have written error follows.
 
Error: in=20 D:\projects\vtk\vtk\rendering\vtkwin32openglrenderwindow.cxx line 588;=20 vtkwin32openglrenderwindow (0x00c92160): could not create window ,=20 error:0
 

please give me suggestion.
 
Thanking you,
 
Regards,
ramakrishna
------=_NextPart_000_0009_01C27CFF.372AC610-- From baocogito@yahoo.com.cn Sat Oct 26 14:14:38 2002 From: baocogito@yahoo.com.cn (=?gb2312?q?cogito?=) Date: Sat, 26 Oct 2002 21:14:38 +0800 (CST) Subject: [vtkusers] About Transform and Rotation In-Reply-To: <20021025103553.13730.80506.Mailman@public.kitware.com> Message-ID: <20021026131438.92537.qmail@web15102.mail.bjs.yahoo.com> --0-2089955107-1035638078=:90926 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit hi, It cannot work well when I run the follow code. please help me. ---------------------------------- package require vtk package require vtkinteraction # this is a tcl version of plate vibration vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin # read a vtk file # vtkPolyDataReader plate plate SetFileName "$VTK_DATA_ROOT/Data/plate.vtk" plate SetVectorsName "mode8" vtkWarpVector warp warp SetInput [plate GetOutput] warp SetScaleFactor 0.5 vtkPolyDataNormals normals normals SetInput [warp GetPolyDataOutput] vtkVectorDot color color SetInput [normals GetOutput] vtkLookupTable lut lut SetNumberOfColors 256 lut Build for {set i 0} {$i<128} {incr i 1} { eval lut SetTableValue $i [expr (128.0-$i)/128.0] [expr (128.0-$i)/128.0] [expr (128.0-$i)/128.0] 1 } for {set i 128} {$i<256} {incr i 1} { eval lut SetTableValue $i [expr ($i-128.0)/128.0] [expr ($i-128.0)/128.0] [expr ($i-128.0)/128.0] 1 } vtkDataSetMapper plateMapper plateMapper SetInput [color GetOutput] plateMapper SetLookupTable lut plateMapper SetScalarRange -1 1 vtkActor plateActor plateActor SetMapper plateMapper #-----rotate by Z axis----------------- # vtkDataSetMapper m21 m21 SetInput [plate GetOutput] vtkActor a21 a21 SetMapper m21 a21 RotateZ 90 [a21 GetProperty] SetColor 1 0 0 # #---------------------- # Add the actors to the renderer, set the background and size # ren1 AddActor plateActor ren1 SetBackground 1 1 1 renWin SetSize 250 250 [ren1 GetActiveCamera] SetPosition 13.3991 14.0764 9.97787 [ren1 GetActiveCamera] SetFocalPoint 1.50437 0.481517 4.52992 [ren1 GetActiveCamera] SetViewAngle 30 [ren1 GetActiveCamera] SetViewUp -0.120861 0.458556 -0.880408 [ren1 GetActiveCamera] SetClippingRange 12.5724 26.8374 # render the image # iren AddObserver UserEvent {wm deiconify .vtkInteract} iren Initialize # prevent the tk window from showing up then start the event loop wm withdraw . --------------------------------- Do You Yahoo!? "ITӢСţʱд󽱣" --0-2089955107-1035638078=:90926 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit

hi,

   It cannot work well when I run the follow code.

   please help me.

----------------------------------

package require vtk
package require vtkinteraction

# this is a tcl version of plate vibration

vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin

# read a vtk file
#
vtkPolyDataReader plate
    plate SetFileName "$VTK_DATA_ROOT/Data/plate.vtk"
    plate SetVectorsName "mode8"
vtkWarpVector warp
    warp SetInput [plate GetOutput]
    warp SetScaleFactor 0.5
vtkPolyDataNormals normals
    normals SetInput [warp GetPolyDataOutput]
vtkVectorDot color
    color SetInput [normals GetOutput]
vtkLookupTable lut
    lut SetNumberOfColors 256
    lut Build
    for {set i 0} {$i<128} {incr i 1} {
        eval lut SetTableValue $i [expr (128.0-$i)/128.0] [expr (128.0-$i)/128.0] [expr (128.0-$i)/128.0] 1
    }
    for {set i 128} {$i<256} {incr i 1} {
        eval lut SetTableValue $i [expr ($i-128.0)/128.0] [expr ($i-128.0)/128.0] [expr ($i-128.0)/128.0] 1
    }

vtkDataSetMapper plateMapper
    plateMapper SetInput [color GetOutput]
    plateMapper SetLookupTable lut
    plateMapper SetScalarRange -1 1
vtkActor plateActor
    plateActor SetMapper plateMapper

#-----rotate by Z axis-----------------
#  
vtkDataSetMapper m21
m21 SetInput [plate GetOutput]

vtkActor a21
a21 SetMapper m21
a21 RotateZ 90
[a21 GetProperty] SetColor 1 0 0 

#----------------------  

# Add the actors to the renderer, set the background and size
#
ren1 AddActor plateActor
ren1 SetBackground 1 1 1
renWin SetSize 250 250

[ren1 GetActiveCamera] SetPosition 13.3991 14.0764 9.97787
[ren1 GetActiveCamera] SetFocalPoint 1.50437 0.481517 4.52992
[ren1 GetActiveCamera] SetViewAngle 30
[ren1 GetActiveCamera] SetViewUp -0.120861 0.458556 -0.880408
[ren1 GetActiveCamera] SetClippingRange 12.5724 26.8374

# render the image
#
iren AddObserver UserEvent {wm deiconify .vtkInteract}
iren Initialize

# prevent the tk window from showing up then start the event loop
wm withdraw .



Do You Yahoo!?
"ITӢСţʱд󽱣" --0-2089955107-1035638078=:90926-- From poonamshanbhag@yahoo.com Sat Oct 26 18:41:13 2002 From: poonamshanbhag@yahoo.com (Poonam Shanbhag) Date: Sat, 26 Oct 2002 10:41:13 -0700 (PDT) Subject: [vtkusers] Re: Drawing Grid Lines In-Reply-To: <20021026103403.17405.18347.Mailman@public.kitware.com> Message-ID: <20021026174113.61345.qmail@web40904.mail.yahoo.com> hello I am new to this list. My qst may seem very basic. I want to draw gird lines on the vtk rendering window. Is there any way I can do it? since I am not able to draw multiple lines using vtkLine function and vtkCellArray too Please help Poonam --- vtkusers-request@public.kitware.com wrote: > Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Re: Problem with vtkFlRenderWindowInteractor > (Charl P. Botha) > 2. Re: Re: vtkLineSource - multiple points > (K.R.Subramanian) > 3. Vtk File Format (Vahid Zahiri) > 4. Volume Rendering, Need To Display Cursor > (Matthew Mendez) > 5. Re: Vtk File Format (Prabhu Ramachandran) > 6. Kylix 3 for C++ and VTK 4.0 (Marcelo Costa > Oliveira) > 7. cmake? (Tom G. Smith (Smitty)) > 8. Re: cmake? (Andy Cedilnik) > 9. Re: cmake? (Amy Henderson) > 10. Re: cmake? (Sebastien BARRE) > 11. Can't interact remotely with binary from > Cone.cxx (Tom G. Smith (Smitty)) > 12. error... (cspl) > > --__--__-- > > Message: 1 > Subject: Re: [vtkusers] Problem with > vtkFlRenderWindowInteractor > From: "Charl P. Botha" > To: Joshua A Foster > Cc: vtkusers@public.kitware.com > Date: 25 Oct 2002 17:22:28 +0200 > > On Fri, 2002-10-25 at 16:56, Joshua A Foster wrote: > > XRequest.143: BadAccess (attempt to access private > resource denied) 0x2800003 > > I've never seen this... what would help immensely > is if you could > produce a short(ish) snippet of code with which you > can reproduce this > error. If I can reproduce it at my end, I actually > have a chance of > fixing it. > > BTW, which versions of everything are you using? > Software, platform, > drivers? > > > The view starts with one actor, then actors are > added from other parts of a > > program via a callback. Is there a restriction on > adding actors while > > interacting with the window? > > This shouldn't be a problem. > > > Another problem that I have frequently is not all > actors being drawn. I can > > print out the visible actor count and it is > correct, but only a few of the > > actors are shown on the screen. I can replace the > > > vtkFlRenderWindowInteractor with a regular > vtkRenderWindowInteractor and the > > actors are shown correctly. Do you have any ideas > on what I could do to > > correct this? > > There used to be a problem like this with some of > the older NVidia > drivers, but that affected all renderwindows. Once > again, I need to > able to reproduce this as I haven't seen it yet. > > -- > charl p. botha http://cpbotha.net/ > http://visualisation.tudelft.nl/ > > --__--__-- > > Message: 2 > Date: Fri, 25 Oct 2002 13:43:06 -0400 > From: "K.R.Subramanian" > Organization: Univ. of N. Carolina at Charlotte > To: Phil Cook > Cc: vtkusers@public.kitware.com, > stefan.bruckner@chello.at > Subject: Re: [vtkusers] Re: vtkLineSource - multiple > points > > Phil Cook wrote: > > > > > > > Message: 1 > > > From: Stefan Bruckner > > > > To: vtkusers@public.kitware.com > > > Date: 24 Oct 2002 21:52:31 +0200 > > > Subject: [vtkusers] vtkLineSource - multiple > points > > > > > > Hi. I have a question regarding vtkLineSource: I > want to create a > > > polyline connecting several points. > Additionally, I want to be able to > > > add new points to the line later. > > > > > > However, vtkLineSource only supports two points. > > > > > > What's the best way to to this? Is using several > line sources a good > > > way, what alternatives are there? > > > > > > Thanks for your help! > > > > > > -- > > > Stefan Bruckner > > > > > > > > > > Try vtkTubeFilter. It will draw a multi-sided (min > sides == 3) tube > > around lines composed of many points. First, > define the points > > (vtkPoints) and lines (vtkCellArray), then call > poly->SetPoints(points) > > and poly->SetLines(lines). You can then use poly > as the input to a > > vtkTubeFilter. > > > > You will need to reapply the filter if you change > the input points. > > Or put the TubeFilter around a 1D structured grid > -:) works fine.. > > -- krs > > > > > > > Phil > > > > _______________________________________________ > > 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@cs.uncc.edu > Charlotte, NC 28223-0001 Web: > http://www.cs.uncc.edu/~krs > > > > > --__--__-- > > Message: 3 > From: Vahid Zahiri > Reply-To: vahid@elham.iut.ac.ir > Organization: Isfahan Univ of Tech Computer Center > To: vtkusers@public.kitware.com > Date: Fri, 25 Oct 2002 21:22:59 +0330 > Subject: [vtkusers] Vtk File Format > > > hello > i have a file with vtk format , it is contain a > Structured Grid. > can i add another Structured Grid to this > file,(two Structured Grid in > one file), and how can i read them? > thanks in advance. > > Vahid Zahiri > > --__--__-- > === message truncated === ===== Poonam Shanbhag 4735, Belwood Green, Baltimore, MD - 21227 Tel : (410) 247 3759 __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From c.p.botha@its.tudelft.nl Sun Oct 27 01:15:12 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Sun, 27 Oct 2002 02:15:12 +0100 Subject: [vtkusers] Problem with vtkFlRenderWindowInteractor In-Reply-To: <001201c27d4f$102b8090$7100a8c0@josh> References: <200210251056.35553.jafoster@uncc.edu> <1035559348.27219.8.camel@dutidad> <001201c27d4f$102b8090$7100a8c0@josh> Message-ID: <20021027011512.GA1702@dutidad.twi.tudelft.nl> On Sat, Oct 26, 2002 at 08:23:17PM -0400, Joshua Foster wrote: > Thanks for replying. I'm using a Linux platform with FLTK 1.1, VTK 4.0, and > the updated Nvidia drivers (1.0.2880). The funny thing is I get different Hmmm... I'd update my drivers to 1.0.2960 at the very least. I seem to remember that 2880 had the disappearing actors problem and my mail archives confirm this. Please perform the upgrade and report back. With regards to your code, I'll try that out as soon as I get five minutes, but that might not be so soon as I'm deluged by pre-holiday work. Thanks, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From nNunn@ausport.gov.au Sun Oct 27 05:25:25 2002 From: nNunn@ausport.gov.au (Nigel Nunn) Date: Sun, 27 Oct 2002 16:25:25 +1100 Subject: [vtkusers] Re: Drawing Grid Lines Message-ID: <7AF3524792FFD511A17A0000F81E965E472BF5@elmo.ausport.gov.au> Hi Poonam, > I want to draw grid lines on the vtk rendering window. vtkRectilinearGrid and vtkRectilinearGridGeometryFilter work together to allow high-powered grid construction. In an old C++ project, I used something like this to get an XY grid: (also needed YZ and ZX grids) ---------------------------------------------- int m = 30, n = 30, p = 15; rgrid = vtkRectilinearGrid::New(); rgrid->SetDimensions(m,n,p); rgrid->SetXCoordinates(xCoords); rgrid->SetYCoordinates(yCoords); rgrid->SetZCoordinates(zCoords); planeXY = vtkRectilinearGridGeometryFilter::New(); planeXY->SetInput(rgrid); planeXY->SetExtent( 0, (m-1), 0, (n-1), 0, 0 ); //planeXZ->SetExtent( 0, (m-2), (n-1),(n-1), 1,(p-1)); //planeYZ->SetExtent((m-1),(m-1), 0, (n-2), 1, p ); mapXY = vtkPolyDataMapper::New(); mapXY->SetInput(planeXY->GetOutput()); actorXY = vtkActor::New(); actorXY->SetMapper(mapXY); // Lock each grid Actor actorXY->PickableOff(); ---------------------------------------------- See the Vtk documentation for more help. 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 fw9189@bristol.ac.uk Sun Oct 27 14:48:28 2002 From: fw9189@bristol.ac.uk (fw9189@bristol.ac.uk) Date: Sun, 27 Oct 2002 14:48:28 +0000 Subject: [vtkusers] VTK for Java: running .class files Message-ID: <1035730108.3dbbfcbccd620@webmail.bris.ac.uk> Dear All, I've succesfully installed vtk for java, and can compile files without warnings. When trying to run the class files though, java gives me the following error message: > java -cp c:\vtk-apps;c:\vtk40\bin\vtk.jar Sphere Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410) at java.lang.Runtime.loadLibrary0(Runtime.java:772) at java.lang.System.loadLibrary(System.java:832) at Sphere.(Sphere.java:8) Does anyone know why? It's most likely some simple problem with including files / package names. Thanks Fred ----------------------------------------------------- This mail sent through SilkyMail v1.1.8 From garsha@itg.uiuc.edu Sun Oct 27 18:26:16 2002 From: garsha@itg.uiuc.edu (Karl Garsha) Date: Sun, 27 Oct 2002 12:26:16 -0600 Subject: [vtkusers] hairy build on OS X 10.2 Jaguar Message-ID: <5.1.0.14.2.20021027120754.02b2bec8@mail.itg.uiuc.edu> Greetings, I'm currently working on building VTK with support for Java, Python and Tcl/Tk wrappers on MacOS X 10.2. I'm new to OS X but I have plenty of experience with Solaris and Linux and I had assumed (incorrectly) that this would be a relatively straightforward task. I've been hacking at this for two days without much luck--I've checked the archives (I guess there was some pertinent info posted on the 24th--thank you), and I've employed the changes recommended but I'm still having trouble. Has anyone out there successfully pulled off a build with support for Java in Jaguar? When I run cmake I receive notification "failed to compile VTK extensions to CMake"--this is a little alarming but I'm not sure what to make of it. I do have Xfree86 installed as well--is this serving to jazz things up? I'm compiling with my latest modifications to the CMakeCache.txt file presently--I'll follow up with more specific information about the errors when it fails. Thanks in advance for any advice. Regards, Karl G. _______________________________________________ Karl Garsha Light Microscopy Specialist Imaging Technology Group Beckman Institute for Advanced Science and Technology University of Illiniois at Urbana-Champaign 405 North Mathews Avenue Urbana, IL 61801 Room B650J Tel: (217) 244-6292 Fax: (217) 244-6219 www.itg.uiuc.edu From garsha@itg.uiuc.edu Sun Oct 27 19:36:29 2002 From: garsha@itg.uiuc.edu (Karl Garsha) Date: Sun, 27 Oct 2002 13:36:29 -0600 Subject: [vtkusers] hairy build on OS X 10.2 Jaguar In-Reply-To: <5.1.0.14.2.20021027120754.02b2bec8@mail.itg.uiuc.edu> Message-ID: <63F83B3C-E9E3-11D6-B1A4-0005027B9CB3@itg.uiuc.edu> Here is a copy of the error messages I'm getting from make, in case anybody has some insights: /develop/VTK/Common/vtkJavaUtil.cxx:64:20: thread.h: No such file or directory /develop/VTK/Common/vtkJavaUtil.cxx:65:19: synch.h: No such file or directory /develop/VTK/Common/vtkJavaUtil.cxx:66: 'mutex_t' is used as a type, but is not defined as a type. /develop/VTK/Common/vtkJavaUtil.cxx: In function `void vtkJavaRegisterCastFunction(JNIEnv*, _jobject*, int, void*)': /develop/VTK/Common/vtkJavaUtil.cxx:212: `vtkGlobalMutex' undeclared (first use this function) /develop/VTK/Common/vtkJavaUtil.cxx:212: (Each undeclared identifier is reported only once for each function it appears in.) /develop/VTK/Common/vtkJavaUtil.cxx:212: `mutex_lock' undeclared (first use this function) /develop/VTK/Common/vtkJavaUtil.cxx:219: `mutex_unlock' undeclared (first use this function) /develop/VTK/Common/vtkJavaUtil.cxx: In function `char* vtkJavaUTFToChar(JNIEnv*, _jstring*)': /develop/VTK/Common/vtkJavaUtil.cxx:513: warning: comparison is always true due to limited range of data type /develop/VTK/Common/vtkJavaUtil.cxx:520: warning: comparison is always true due to limited range of data type make[3]: *** [vtkJavaUtil.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 [192:/develop/osxBin] garsha% -Karl On Sunday, October 27, 2002, at 12:26 PM, Karl Garsha wrote: > Greetings, > I'm currently working on building VTK with support for Java, Python > and Tcl/Tk wrappers on MacOS X 10.2. I'm new to OS X but I have > plenty of experience with Solaris and Linux and I had assumed > (incorrectly) that this would be a relatively straightforward task. > I've been hacking at this for two days without much luck--I've checked > the archives (I guess there was some pertinent info posted on the > 24th--thank you), and I've employed the changes recommended but I'm > still having trouble. Has anyone out there successfully pulled off a > build with support for Java in Jaguar? > When I run cmake I receive notification "failed to compile VTK > extensions to CMake"--this is a little alarming but I'm not sure what > to make of it. > I do have Xfree86 installed as well--is this serving to jazz > things up? > I'm compiling with my latest modifications to the CMakeCache.txt file > presently--I'll follow up with more specific information about the > errors when it fails. > Thanks in advance for any advice. > Regards, > Karl G. > > _______________________________________________ > Karl Garsha > Light Microscopy Specialist > Imaging Technology Group > Beckman Institute for Advanced Science and Technology > University of Illiniois at Urbana-Champaign > 405 North Mathews Avenue > Urbana, IL 61801 > Room B650J > Tel: (217) 244-6292 > Fax: (217) 244-6219 > www.itg.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 > From garsha@itg.uiuc.edu Sun Oct 27 19:43:13 2002 From: garsha@itg.uiuc.edu (Karl Garsha) Date: Sun, 27 Oct 2002 13:43:13 -0600 Subject: [vtkusers] copy of CMakeCache.txt (OS X 10.2) In-Reply-To: <5.1.0.14.2.20021027120754.02b2bec8@mail.itg.uiuc.edu> Message-ID: <54E4BC0A-E9E4-11D6-B1A4-0005027B9CB3@itg.uiuc.edu> Here is a copy of the CMakeCache.txt I'm trying to build with, in case anyone can see where the major malfunction is: # This is the CMakeCache file. # For build in directory: /develop/osxBin # 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=ON //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=/usr/bin/g++ //Flags used by CXX compiler CMAKE_CXX_FLAGS:STRING=-Wno-deprecated //program used to link c++ shared libraries CMAKE_CXX_LINK_SHARED:STRING=/usr/bin/g++ //Flag used by CXX to build a shared library CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-Wl,-flat_namespace,-U,_environ -bundle -fra mework Python -undefined suppress //Flags used to link a shared library. CMAKE_CXX_MODULE_LINK_FLAGS:STRING= //Flag used by CXX to build a shared library. CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-dynamiclib //Flag used for building shared library objects. CMAKE_CXX_SHLIB_CFLAGS:STRING= //Flags used to link a shared library. CMAKE_CXX_SHLIB_LINK_FLAGS:STRING= //Flag used to specify run-time search paths. CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING= //If null, each runtime path is a separate option. Otherwise, they // are all joined, separated by this. CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=: //Name of C compiler used. CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc //Flags for C compiler CMAKE_C_FLAGS:STRING= //program used to link c shared libraries CMAKE_C_LINK_SHARED:STRING=/usr/bin/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 //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=/develop/osxBin/bin //Build FTGL examples (warning: you need Glut) FTGL_BUILD_EXAMPLES:BOOL=OFF //Path to a program. JAVA_ARCHIVE:FILEPATH=/usr/bin/jar //Missing description JAVA_AWT_INCLUDE_PATH:PATH=/System/Library/Frameworks/ JavaEmbedding.framework/He aders //Missing description JAVA_AWT_LIBRARY:FILEPATH=-framework JavaEmbedding //Path to a program. JAVA_COMPILE:FILEPATH=/usr/bin/javac //Missing description JAVA_INCLUDE_PATH:PATH=/System/Library/Frameworks/JavaVM.framework/ Headers //What is the path where the file jni_md.h can be found JAVA_INCLUDE_PATH2:PATH=/System/Library/Frameworks/JavaVM.framework/ Headers //Path to a program. JAVA_RUNTIME:FILEPATH=/usr/bin/java //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH=/develop/osxBin/bin //What is the path where the file GL/gl.h can be found OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include //OpenGL lib for OSX OPENGL_LIBRARIES:STRING=-framework AGL -framework OpenGL //OpenGL lib for OSX (for CMake 1.4) OPENGL_LIBRARY:STRING=-framework AGL -framework OpenGL //Where can one of the MesaGL or GL libraries be found OPENGL_gl_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.a //Where can one of the MesaGLU or GLU libraries be found OPENGL_glu_LIBRARY:FILEPATH=/usr/X11R6/lib/libGLU.a //What is the path where the file GL/xmesa.h can be found OPENGL_xmesa_INCLUDE_DIR:PATH=NOTFOUND //Path to a program PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python //What is the path where the file Python.h can be found PYTHON_INCLUDE_PATH:PATH=/Library/Frameworks/Python.framework/Versions/ 2.2/inclu de/python2.2/Headers //Where can one of the python libraries be found PYTHON_LIBRARY:FILEPATH=-framework Python //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/Library/Frameworks/Tcl.framework/Headers; /Library/Framew orks/Tcl.framework/PrivateHeaders //Where can one of the tcl libraries be found TCL_LIBRARY:FILEPATH=-framework Tcl //Where can one of the tcld, tcl84d, tcl8.4d, tcl83d, tcl8.3d, // tcl82d, tcl8.2d, tcl80d or tcl8.0d libraries be found TCL_LIBRARY_DEBUG:FILEPATH=NOTFOUND //Where can one of the tclstub, tclstub84, tclstub8.4, tclstub83, // tclstub8.3, tclstub82, tclstub8.2, tclstub80 or tclstub8.0 libraries // be found TCL_STUB_LIBRARY:FILEPATH=/usr/local/lib/libtclstub.a //Where can one of the tclstubd, tclstub84d, tclstub8.4d, tclstub83d, // tclstub8.3d, tclstub82d, tclstub8.2d, tclstub80d or tclstub8.0d // libraries be found TCL_STUB_LIBRARY_DEBUG:FILEPATH=NOTFOUND //Path to a program. TCL_TCLSH:FILEPATH=/usr/bin/tclsh //What is the path where the file tk.h can be found TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers; /Library/Framewor ks/Tk.framework/PrivateHeaders //Where can one of the tk libraries be found TK_LIBRARY:FILEPATH=-framework Tk //Where can one of the tkd, tk84d, tk8.4d, tk83d, tk8.3d, tk82d, // tk8.2d, tk80d or tk8.0d libraries be found TK_LIBRARY_DEBUG:FILEPATH=NOTFOUND //Where can one of the tkstub, tkstub84, tkstub8.4, tkstub83, tkstub8.3, // tkstub82, tkstub8.2, tkstub80 or tkstub8.0 libraries be found // TK_STUB_LIBRARY:FILEPATH=/usr/local/lib/libtkstub.a //Where can one of the tkstubd, tkstub84d, tkstub8.4d, tkstub83d, // tkstub8.3d, tkstub82d, tkstub8.2d, tkstub80d or tkstub8.0d libraries // be found TK_STUB_LIBRARY_DEBUG:FILEPATH=NOTFOUND //Path to a program. TK_WISH:FILEPATH=/usr/local/bin/wish //Where can the util library be found UTIL_LIBRARY:FILEPATH=NOTFOUND //Value Computed by CMake VTKEXPAT_BINARY_DIR:STATIC=/develop/osxBin/Utilities/expat //Value Computed by CMake VTKEXPAT_SOURCE_DIR:STATIC=/develop/VTK/Utilities/expat //Value Computed by CMake VTKFREETYPE_BINARY_DIR:STATIC=/develop/osxBin/Utilities/freetype //Value Computed by CMake VTKFREETYPE_SOURCE_DIR:STATIC=/develop/VTK/Utilities/freetype //Value Computed by CMake VTKFTGL_BINARY_DIR:STATIC=/develop/osxBin/Utilities/ftgl //Value Computed by CMake VTKFTGL_SOURCE_DIR:STATIC=/develop/VTK/Utilities/ftgl //Value Computed by CMake VTKJPEG_BINARY_DIR:STATIC=/develop/osxBin/Utilities/jpeg //Value Computed by CMake VTKJPEG_SOURCE_DIR:STATIC=/develop/VTK/Utilities/jpeg //Value Computed by CMake VTKPNG_BINARY_DIR:STATIC=/develop/osxBin/Utilities/png //Value Computed by CMake VTKPNG_SOURCE_DIR:STATIC=/develop/VTK/Utilities/png //Value Computed by CMake VTKTIFF_BINARY_DIR:STATIC=/develop/osxBin/Utilities/tiff //Value Computed by CMake VTKTIFF_SOURCE_DIR:STATIC=/develop/VTK/Utilities/tiff //Value Computed by CMake VTKZLIB_BINARY_DIR:STATIC=/develop/osxBin/Utilities/zlib //Value Computed by CMake VTKZLIB_SOURCE_DIR:STATIC=/develop/VTK/Utilities/zlib //Value Computed by CMake VTK_BINARY_DIR:STATIC=/develop/osxBin //Build vtkpython executable, which will correctly initialize static // constructors. (EXPERIMENTAL) VTK_BUILD_PYTHON_EXECUTABLE:BOOL=ON //What is the path where the file VTKData.readme can be found VTK_DATA_ROOT:PATH=/develop/VTKData //Build leak checking support into vtk. VTK_DEBUG_LEAKS:BOOL=OFF //The system has Python installed by default (Mac OSX 10.2) VTK_HAVE_FRAMEWORK_PYTHON:BOOL=OFF //Path to Java install VTK_JAVA_HOME:PATH=/develop/osxBin/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=/develop/osxBin/bin/./vtkParseJava //Value Computed by CMake VTK_SOURCE_DIR:STATIC=/develop/VTK //Build VTK with 64 bit ids VTK_USE_64BIT_IDS:BOOL=OFF //Use the ANSI standard iostream library VTK_USE_ANSI_STDLIB:BOOL=ON //Build classes using Carbon API VTK_USE_CARBON:BOOL=ON //Build classes using Cocoa API - Can only use one of these! VTK_USE_COCOA:BOOL=OFF //Build VTK with Freetype support) VTK_USE_FREETYPE:BOOL=ON //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=ON //Build the local directory classes VTK_USE_LOCAL:BOOL=ON //use MPI (Message Passing Interface) library for parallel support // VTK_USE_MPI:BOOL=OFF //Build the parallel directory classes VTK_USE_PARALLEL:BOOL=ON //Build the patented directory classes VTK_USE_PATENTED: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=/develop/VTK/Wrapping/hints //wrap classes into the Java language VTK_WRAP_JAVA:BOOL=ON //Path to an internal program. VTK_WRAP_JAVA_EXE:FILEPATH=/develop/osxBin/bin/./vtkWrapJava //wrap classes into Python VTK_WRAP_PYTHON:BOOL=ON //Path to an internal program. VTK_WRAP_PYTHON_EXE:FILEPATH=/develop/osxBin/bin/./vtkWrapPython //wrap classes into the TCL interpreted language VTK_WRAP_TCL:BOOL=ON //Path to an internal program. VTK_WRAP_TCL_EXE:FILEPATH=/develop/osxBin/bin/./vtkWrapTcl //What is the path where the file X11/X.h can be found X11_INCLUDE_DIR:PATH=/usr/X11R6/include //Where can the X11 library be found X11_X11_LIBRARY:FILEPATH=/usr/X11R6/lib/libX11.a //Where can the Xext library be found X11_Xext_LIBRARY:FILEPATH=/usr/X11R6/lib/libXext.a //Dependencies for the target vtkCommonJava_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon; //Dependencies for the target vtkCommonPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon; //Dependencies for the target vtkCommonTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;-framework Tcl;vtkCommon; //Dependencies for the target vtkCommon_LIB_DEPENDS:STATIC=-lpthread;-lm; //Dependencies for the target vtkFilteringJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkCommonJava;vtkFiltering; //Dependencies for the target vtkFilteringPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering; //Dependencies for the target vtkFilteringTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkCommonTCL;vtkFiltering;-fram ework Tcl; //Dependencies for the target vtkFiltering_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkCommon; //Dependencies for the target vtkGraphicsJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkCommonJava;vtkFilteringJava; vtkGraphics; //Dependencies for the target vtkGraphicsPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkGraphics; //Dependencies for the target vtkGraphicsTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkFilteringTCL;vtkGraphics;-fra mework Tcl; //Dependencies for the target vtkGraphics_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering; //Dependencies for the target vtkHybridJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkHybrid;vtkRenderingJava;vtkIOJ ava; //Dependencies for the target vtkHybridPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/ libGLU.a;/usr/X1 1R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/ libXext.a;vtkHybrid; //Dependencies for the target vtkHybridTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkHybrid;vtkRenderingTCL;vtkIOTCL ; //Dependencies for the target vtkHybrid_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;vtkIO; //Dependencies for the target vtkIOJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkCommonJava;vtkFilteringJava;vtkIO; //Dependencies for the target vtkIOPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkIO; //Dependencies for the target vtkIOTCL_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFilteringTCL;vtkIO;- framework Tcl; //Dependencies for the target vtkIO_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkFiltering;vtkpng;vtkzlib;vtkjpeg;vtkti ff;vtkexpat; //Dependencies for the target vtkImagingJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkCommonJava;vtkFilteringJava;v tkImaging; //Dependencies for the target vtkImagingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkImaging; //Dependencies for the target vtkImagingTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkFilteringTCL;vtkImaging;-frame work Tcl; //Dependencies for the target vtkImaging_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkFiltering; //Dependencies for the target vtkParallelJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkParallel;vtkRenderingJava;vt kIOJava; //Dependencies for the target vtkParallelPython_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/ libGLU.a;/usr/ X11R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/ libXext.a;vtkParallel; //Dependencies for the target vtkParallelTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkParallel;vtkIOTCL;vtkRenderin gTCL; //Dependencies for the target vtkParallel_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering;vtkIO; //Dependencies for the target vtkPatentedJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkPatented;vtkImagingJava;vtkG raphicsJava; //Dependencies for the target vtkPatentedPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkPatented; //Dependencies for the target vtkPatentedTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkPatented;vtkIOTCL;vtkGraphics TCL;vtkImagingTCL; //Dependencies for the target vtkPatented_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkImaging;vtkGraphics;vtkIO; //Dependencies for the target vtkRenderingJava_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkImagingJava;vtkGraphicsJava ;vtkRendering;-framework JavaEmbedding; //Dependencies for the target vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkRendering;-frame work Tcl;-framework Tk; //Dependencies for the target vtkRenderingPython_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkRendering; //Dependencies for the target vtkRenderingTCL_LIB_DEPENDS:STATIC=-lpthread;- lm;vtkGraphicsTCL;vtkImagingTCL;vt kRendering;-framework Tcl;-framework Tk; //Dependencies for the target vtkRendering_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkGraphics;vtkImaging;/ usr/X11R6/ lib/libGLU.a;/usr/X11R6/lib/libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/ lib/libXe xt.a;vtkftgl;vtkfreetype; //Dependencies for the target vtkexpat_LIB_DEPENDS:STATIC=-lpthread;-lm; //Dependencies for the target vtkfreetype_LIB_DEPENDS:STATIC=-lpthread;-lm; //Dependencies for the target vtkftgl_LIB_DEPENDS:STATIC=-lpthread;-lm;/usr/X11R6/lib/libGLU.a;/usr/ X11R6/lib/ libGL.a;/usr/X11R6/lib/libX11.a;/usr/X11R6/lib/libXext.a;vtkfreetype; //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 vtktiff_LIB_DEPENDS:STATIC=-lpthread;-lm;vtkzlib;vtkjpeg; //Dependencies for the target vtkzlib_LIB_DEPENDS:STATIC=-lpthread;-lm; ######################## # INTERNAL cache entries ######################## //Executable to project name. /develop/osxBin/bin/./vtkParseJava:INTERNAL=vtkParseJava //Executable to project name. /develop/osxBin/bin/./vtkWrapJava:INTERNAL=vtkWrapJava //Executable to project name. /develop/osxBin/bin/./vtkWrapPython:INTERNAL=vtkWrapPython //Executable to project name. /develop/osxBin/bin/./vtkWrapTcl:INTERNAL=vtkWrapTcl //Executable to project name. /develop/osxBin/bin//./vtkWrapPython:INTERNAL=vtkWrapPython //Executable to project name. /develop/osxBin/bin//./vtkWrapTcl:INTERNAL=vtkWrapTcl //Advanced flag for variable: BUILD_DOCUMENTATION BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 //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_CFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CXXFLAGS CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CXXFLAGS:INTERNAL= //Result of TRY_COMPILE CMAKE_ANSI_STREAM_HEADERS:INTERNAL=TRUE //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=/develop/osxBin //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=5 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/usr/local/bin/cmake //Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1 //Is the compile GNU C++. CMAKE_COMPILER_IS_GNUCXX: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_FLAGS CMAKE_CXX_FLAGS-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 //Advanced flag for variable: CMAKE_C_SHLIB_LINK_FLAGS CMAKE_C_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //shared link flags for cc CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL= //Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //runtime directory flag for cc CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL= //Advanced flag for variable: CMAKE_DL_LIBS CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/bin/ccmake //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Is X11 around. CMAKE_HAS_X:INTERNAL=1 //Have function CMAKE_HAVE_CONNECT:INTERNAL=1 //Have function CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1 //Have include limits.h CMAKE_HAVE_LIMITS_H:INTERNAL=1 //Have include pthread.h CMAKE_HAVE_PTHREAD_H:INTERNAL=1 //Have function CMAKE_HAVE_REMOVE:INTERNAL=1 //Have function CMAKE_HAVE_SHMAT:INTERNAL=1 //Have include sys/prctl.h CMAKE_HAVE_SYS_PRCTL_H:INTERNAL= //Have include unistd.h CMAKE_HAVE_UNISTD_H:INTERNAL=1 //Start directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/develop/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 //Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1 //Does the compiler support ansi for scoping. CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1 //Does the compiler support headers like iostream. CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL=0 //Does the compiler support the ansi stringstream class. CMAKE_NO_ANSI_STRING_STREAM:INTERNAL= //Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1 //Does the compiler not support explicit template instantiation. // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL=1 //Advanced flag for variable: CMAKE_NO_STD_NAMESPACE CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1 //Does the compiler support std::. CMAKE_NO_STD_NAMESPACE:INTERNAL= //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/usr/local/share/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 //Result of TRY_RUN CMAKE_SIZEOF_CHAR:INTERNAL=1 //Result of TRY_RUN CMAKE_SIZEOF_DOUBLE:INTERNAL=8 //Result of TRY_RUN CMAKE_SIZEOF_FLOAT:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_INT:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_LONG:INTERNAL=4 //Result of TRY_RUN CMAKE_SIZEOF_SHORT:INTERNAL=2 //Result of TRY_RUN CMAKE_SIZEOF_VOID_P:INTERNAL=4 //Advanced flag for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //What system is this. Result of uname. CMAKE_SYSTEM:INTERNAL=Darwin-6.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_WORDS_BIGENDIAN CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 //Result of TRY_RUN CMAKE_WORDS_BIGENDIAN: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 //Result of TRY_COMPILE COMPILE_OK:INTERNAL=FALSE //Path to an executable CommonCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Common/Testing/Cxx //Advanced flag for variable: EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: FTGL_BUILD_EXAMPLES FTGL_BUILD_EXAMPLES-ADVANCED:INTERNAL=1 //Path to an executable FilteringCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Filtering/ Testing/Cxx //Path to an executable GenericCommunicator_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel/ Testing/Cxx //Path to an executable GraphicsCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Graphics/Testing/ Cxx //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_CHAR:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_DOUBLE:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_FLOAT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_INT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_LONG:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_SHORT:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_SIZEOF_VOID_P:INTERNAL=TRUE //Result of TRY_COMPILE HAVE_CMAKE_WORDS_BIGENDIAN:INTERNAL=TRUE //Path to an executable HybridCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Hybrid/Testing/Cxx //Path to an executable IOCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/IO/Testing/Cxx //Path to an executable ImagingCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Imaging/Testing/Cxx //Advanced flag for variable: JAVA_ARCHIVE JAVA_ARCHIVE-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_AWT_INCLUDE_PATH JAVA_AWT_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_AWT_LIBRARY JAVA_AWT_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_COMPILE JAVA_COMPILE-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_INCLUDE_PATH2 JAVA_INCLUDE_PATH2-ADVANCED:INTERNAL=1 //Advanced flag for variable: JAVA_RUNTIME JAVA_RUNTIME-ADVANCED:INTERNAL=1 //Advanced flag for variable: LIBRARY_OUTPUT_PATH LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_INCLUDE_DIR OPENGL_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_gl_LIBRARY OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_glu_LIBRARY OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_xmesa_INCLUDE_DIR OPENGL_xmesa_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Path to an executable ParallelIsoTest_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel/Testing/Cxx //Path to an executable ParallelIso_CMAKE_PATH:INTERNAL=/develop/osxBin/Examples/ ParallelProcessing/Gene ric/Cxx //Path to an executable PipelineParallelism_CMAKE_PATH:INTERNAL=/develop/osxBin/Examples/ ParallelProcess ing/Generic/Cxx //Path to an executable RenderingCxxTests_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering/ Testing/Cxx //Path to an executable SocketClient_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel/Testing/Cxx //Path to an executable SocketServer_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel/Testing/Cxx //Advanced flag for variable: TCL_STUB_LIBRARY TCL_STUB_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: TCL_STUB_LIBRARY_DEBUG TCL_STUB_LIBRARY_DEBUG-ADVANCED:INTERNAL=1 //Advanced flag for variable: TK_STUB_LIBRARY TK_STUB_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: TK_STUB_LIBRARY_DEBUG TK_STUB_LIBRARY_DEBUG-ADVANCED:INTERNAL=1 //Path to an executable TaskParallelismWithPorts_CMAKE_PATH:INTERNAL=/develop/osxBin/Examples/ ParallelPr ocessing/Generic/Cxx //Path to an executable TaskParallelism_CMAKE_PATH:INTERNAL=/develop/osxBin/Examples/ ParallelProcessing/ Generic/Cxx //Path to an executable TestCxxFeatures_CMAKE_PATH:INTERNAL=/develop/osxBin/Common/Testing/Cxx //Path to an executable TestInstantiator_CMAKE_PATH:INTERNAL=/develop/osxBin/Common/Testing/Cxx //Path to an executable ThreadedCommunicator_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel/ Testing/Cxx //Path to an executable TimeRenderer2_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering/Testing/Cxx //Path to an executable TimeRenderer_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering/Testing/Cxx //Advanced flag for variable: VTK_BUILD_PYTHON_EXECUTABLE VTK_BUILD_PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1 //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 executables are. Used by projects which depend on VTK. // Do not remove. VTK_EXECUTABLE_PATH:INTERNAL=/develop/osxBin/bin //Advanced flag for variable: VTK_JAVA_HOME VTK_JAVA_HOME-ADVANCED:INTERNAL=1 //Where VTK libraries are. Used by projects which depend on VTK. // Do not remove. VTK_LIBRARY_PATH:INTERNAL=/develop/osxBin/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_USE_MPI VTK_USE_MPI-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_PYTHON_EXE VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_TCL_EXE VTK_WRAP_TCL_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_INCLUDE_DIR X11_INCLUDE_DIR-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_X11_LIBRARY X11_X11_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: X11_Xext_LIBRARY X11_Xext_LIBRARY-ADVANCED:INTERNAL=1 //Path to an executable mkg3states_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/tiff //Path to a library vtkCommonJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Common //Whether a library is static, shared or module. vtkCommonJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommonPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Common //Whether a library is static, shared or module. vtkCommonPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkCommonTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Common //Whether a library is static, shared or module. vtkCommonTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommon_CMAKE_PATH:INTERNAL=/develop/osxBin/Common //Whether a library is static, shared or module. vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Filtering //Whether a library is static, shared or module. vtkFilteringJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Filtering //Whether a library is static, shared or module. vtkFilteringPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkFilteringTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Filtering //Whether a library is static, shared or module. vtkFilteringTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFiltering_CMAKE_PATH:INTERNAL=/develop/osxBin/Filtering //Whether a library is static, shared or module. vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Graphics //Whether a library is static, shared or module. vtkGraphicsJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Graphics //Whether a library is static, shared or module. vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkGraphicsTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Graphics //Whether a library is static, shared or module. vtkGraphicsTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphics_CMAKE_PATH:INTERNAL=/develop/osxBin/Graphics //Whether a library is static, shared or module. vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Hybrid //Whether a library is static, shared or module. vtkHybridJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Hybrid //Whether a library is static, shared or module. vtkHybridPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkHybridTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Hybrid //Whether a library is static, shared or module. vtkHybridTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybrid_CMAKE_PATH:INTERNAL=/develop/osxBin/Hybrid //Whether a library is static, shared or module. vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOJava_CMAKE_PATH:INTERNAL=/develop/osxBin/IO //Whether a library is static, shared or module. vtkIOJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOPython_CMAKE_PATH:INTERNAL=/develop/osxBin/IO //Whether a library is static, shared or module. vtkIOPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkIOTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/IO //Whether a library is static, shared or module. vtkIOTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIO_CMAKE_PATH:INTERNAL=/develop/osxBin/IO //Whether a library is static, shared or module. vtkIO_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Imaging //Whether a library is static, shared or module. vtkImagingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Imaging //Whether a library is static, shared or module. vtkImagingPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkImagingTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Imaging //Whether a library is static, shared or module. vtkImagingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImaging_CMAKE_PATH:INTERNAL=/develop/osxBin/Imaging //Whether a library is static, shared or module. vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel //Whether a library is static, shared or module. vtkParallelJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel //Whether a library is static, shared or module. vtkParallelPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkParallelTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel //Whether a library is static, shared or module. vtkParallelTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallel_CMAKE_PATH:INTERNAL=/develop/osxBin/Parallel //Whether a library is static, shared or module. vtkParallel_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkParseJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping //Path to a library vtkPatentedJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Patented //Whether a library is static, shared or module. vtkPatentedJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatentedPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Patented //Whether a library is static, shared or module. vtkPatentedPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkPatentedTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Patented //Whether a library is static, shared or module. vtkPatentedTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatented_CMAKE_PATH:INTERNAL=/develop/osxBin/Patented //Whether a library is static, shared or module. vtkPatented_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering //Whether a library is static, shared or module. vtkRenderingJava_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPythonTkWidgets_CMAKE_PATH:INTERNAL=/develop/osxBin/ Rendering //Whether a library is static, shared or module. vtkRenderingPythonTkWidgets_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering //Whether a library is static, shared or module. vtkRenderingPython_LIBRARY_TYPE:INTERNAL=MODULE //Path to a library vtkRenderingTCL_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering //Whether a library is static, shared or module. vtkRenderingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRendering_CMAKE_PATH:INTERNAL=/develop/osxBin/Rendering //Whether a library is static, shared or module. vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkWrapJava_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping //Path to an executable vtkWrapPython_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping //Path to an executable vtkWrapTcl_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping //Path to an executable vtk_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping/Tcl //Path to a library vtkexpat_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/expat //Whether a library is static, shared or module. vtkexpat_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkfreetype_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/freetype //Whether a library is static, shared or module. vtkfreetype_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkftgl_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/ftgl //Whether a library is static, shared or module. vtkftgl_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkjpeg_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/jpeg //Whether a library is static, shared or module. vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkpng_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/png //Whether a library is static, shared or module. vtkpng_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkpython_CMAKE_PATH:INTERNAL=/develop/osxBin/Wrapping/Python //Path to a library vtktiff_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/tiff //Whether a library is static, shared or module. vtktiff_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkzlib_CMAKE_PATH:INTERNAL=/develop/osxBin/Utilities/zlib //Whether a library is static, shared or module. vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED On Sunday, October 27, 2002, at 12:26 PM, Karl Garsha wrote: > Greetings, > I'm currently working on building VTK with support for Java, Python > and Tcl/Tk wrappers on MacOS X 10.2. I'm new to OS X but I have > plenty of experience with Solaris and Linux and I had assumed > (incorrectly) that this would be a relatively straightforward task. > I've been hacking at this for two days without much luck--I've checked > the archives (I guess there was some pertinent info posted on the > 24th--thank you), and I've employed the changes recommended but I'm > still having trouble. Has anyone out there successfully pulled off a > build with support for Java in Jaguar? > When I run cmake I receive notification "failed to compile VTK > extensions to CMake"--this is a little alarming but I'm not sure what > to make of it. > I do have Xfree86 installed as well--is this serving to jazz > things up? > I'm compiling with my latest modifications to the CMakeCache.txt file > presently--I'll follow up with more specific information about the > errors when it fails. > Thanks in advance for any advice. > Regards, > Karl G. > > _______________________________________________ > Karl Garsha > Light Microscopy Specialist > Imaging Technology Group > Beckman Institute for Advanced Science and Technology > University of Illiniois at Urbana-Champaign > 405 North Mathews Avenue > Urbana, IL 61801 > Room B650J > Tel: (217) 244-6292 > Fax: (217) 244-6219 > www.itg.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 > From stevie157@gmx.net Sun Oct 27 23:39:59 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Mon, 28 Oct 2002 00:39:59 +0100 Subject: [vtkusers] lookupTable Message-ID: <3DBC794F.5080307@gmx.net> hello, i want to create a polydata object with several different colors. i've associated a vtkUnsignedCharArray (i also tried float and int) with it using scalar-->InsertNextValue(0); scalar-->InsertNextValue(1); scalar ->InsertNextValue(4); pd->GetPointData()->SetScalars(scalar); i created a lookuptable lup->->SetNumberOfTableValues (n); lut->SetTableValue(0,1,1,1,1); lut->SetTableValue(1,1,1,1,.5); lut->SetTableValue(2,1,0,0,.75); lut->SetTableValue(3,0,0,1,.25); ..... scalars->SetLookupTable (lut); but only the points with the scalar value 0 get the right color. the others get the color defined in the last entry of the lookuptable. i wrote the object to disk and the values became between 0 and 1. what do i have to do, to connect a point to a specific color?? thank you very much stefan From mdl78@libero.it Mon Oct 28 00:06:01 2002 From: mdl78@libero.it (Mdl) Date: Mon, 28 Oct 2002 01:06:01 +0100 Subject: [vtkusers] Problems with plane texture map Message-ID: <007501c27e15$cd720590$31810b17@bambinello> Hi everybody, I'm using VTK since July for my final assignment, and till now I managed to avoid asking help by spending a lot of time on the tutorials and manual pages, but... now I really need a hand! I'm having some problems with vtkTextureMapToPlane. I have to texturize a 3D model of an ancient theater, basicly planar (it's just the front of the theater, the "facade"). It is made of, let's say, a "big box", and some pillars laying a bit closer to the imaginary observer looking at its front side. Let's try to do some Ascii art (?)... viewing from the top: ________________________.... _____ __________ _____.... I__I I__I Got it (despite my english)? Hope so. Now, the problem is that I am using a perfectly planar texture map (representing a color map), as big as the facade, but I get some wrong color spots on the top of the pillars... I made some theories: 1) it's a bit like if the texture isn't mapped in a perfectly hortogonal way to the facade, but with a little angle... maybe? 2) the texture "fades" in the outer points.. the points far from the center are differently coloured 3) the 3D polydata come from a decimated STL model.. maybe the DecimatePro filter introduces some problem? (this is quite unlikely, but.. you never know :-) I cut&paste some code: tPuddinga = vtkTexture::New(); tPuddinga->SetInput(myMap->GetMap()); // myMap->GetMap() is a method returning a vtkImageData* tPuddinga->RepeatOff(); tmPuddinga = vtkTextureMapToPlane::New(); tmPuddinga->AutomaticPlaneGenerationOn(); tmPuddinga->SetOrigin (0, 0, 0); tmPuddinga->SetSRange(0, 1); tmPuddinga->SetTRange(0, 1); tmPuddinga->SetInput (riduttore->GetOutput()); // riduttore is the DecimatePro filter ...and so on, just trivial code. Anyone out there has got a clue? I thank you very much in advance. Marco From galicjan@yahoo.com Mon Oct 28 02:19:59 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Sun, 27 Oct 2002 21:19:59 -0500 Subject: [vtkusers] VTK for Java: running .class files In-Reply-To: <1035730108.3dbbfcbccd620@webmail.bris.ac.uk> Message-ID: <5.1.1.6.2.20021027211459.01f13810@pop.mail.yahoo.com> At 09:48 AM 10/27/2002, fw9189@bristol.ac.uk wrote: > > java -cp c:\vtk-apps;c:\vtk40\bin\vtk.jar Sphere >Exception in thread "main" java.lang.UnsatisfiedLinkError: no >vtkCommonJava in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410) > at java.lang.Runtime.loadLibrary0(Runtime.java:772) > at java.lang.System.loadLibrary(System.java:832) > at Sphere.(Sphere.java:8) The error means that vtkCommonJava.dll is not in you Windows PATH. Make sure to add location of your vtk DLLs to your PATH variable. Jarek From chandra@strandgenomics.com Mon Oct 28 06:44:20 2002 From: chandra@strandgenomics.com (Chandra Shekhar) Date: Mon, 28 Oct 2002 12:14:20 +0530 Subject: [vtkusers] Wanted Dlls for vtk nightly built using Python 2.2 Message-ID: <002801c27e4d$71a7f750$764f3eca@strand18> This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C27E7B.8B486590 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi ,=20 Have some code that depends on vtk Nightly ( code uses = vtkFloatPoints .etc .. that dont seem to be part of Dlls provide by Les = Schaffers Home Page ( http://basic.astrian.net/godzilla/) ).=20 =20 It would be great if some one could provide DLL's for any of the = recent Nightly's .=20 On a tangent , do any of the Kitware people plan to provide Python = Wrappers built for Python 2.2 as a part of the Vtk Nightly installables = for windows .=20 Out of curiousity , Any body here who has built a molecular = visualition software using , vtk . Any issues with reagrds to speed etc = .=20 Advance thanks . rgds chandra ------=_NextPart_000_0025_01C27E7B.8B486590 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi ,
 
    Have some code that = depends on=20 vtk Nightly ( code uses vtkFloatPoints .etc .. that dont seem to be = part of=20 Dlls provide by Les Schaffers Home Page ( http://basic.astrian.net/godz= illa/)=20 ).
 
    It would be great if = some one=20 could provide DLL's for any  of the recent Nightly's . =
 
    On a tangent , do = any of the=20 Kitware people plan to provide Python Wrappers built for Python 2.2 as a = part of=20 the Vtk Nightly installables for windows .
    Out of curiousity , = Any body=20 here who has built a molecular visualition software using , vtk . Any = issues=20 with reagrds to speed etc .
 
    Advance thanks = .
 
rgds
chandra
 
------=_NextPart_000_0025_01C27E7B.8B486590-- From moitinho@civil.ist.utl.pt Mon Oct 28 10:28:54 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Mon, 28 Oct 2002 10:28:54 +0000 Subject: [vtkusers] Wanted Dlls for vtk nightly built using Python 2.2 In-Reply-To: <002801c27e4d$71a7f750$764f3eca@strand18> References: <002801c27e4d$71a7f750$764f3eca@strand18> Message-ID: <200210281028.54906.moitinho@civil.ist.utl.pt> On Monday 28 October 2002 06:44, Chandra Shekhar wrote: > Hi , > > Have some code that depends on vtk Nightly ( code uses vtkFloatPoints > .etc .. that dont seem to be part of Dlls provide by Les Schaffers Home > Page ( http://basic.astrian.net/godzilla/) ). > You can try http://www.civil.ist.utl.pt/~moitinho/vtk/vtkdlls.zip If it works please let me know. Regards Ze Paulo From jiang@TI.FhG.DE Mon Oct 28 10:37:58 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Mon, 28 Oct 2002 11:37:58 +0100 Subject: [vtkusers] greyscale/color Message-ID: Dear VTK friends, I import the greyscale image data from memery to vtkImageImport, then transform the vtkImageImport to vtkStructuredPoints by vtkImageToStructuredPoints. After that I use vtkVolumeRayCastMapper to render the volume. It works now, however, the greyscale image changes to color image. How can I render grey image? I attach the code below. Is there something wrong? Any help is appreciated. Code: vtkImageImport *importer = vtkImageImport::New(); importer->SetWholeExtent(1,dimensions[0],1,dimensions[1],1,dimensions[2]); importer->SetDataExtentToWholeExtent(); importer->SetDataScalarTypeToUnsignedChar(); importer->SetDataOrigin(0,0,0); importer->SetDataSpacing(1,1,1); importer->SetImportVoidPointer(data);//data is unsigned char* that storing greyscale images data vtkStructuredPoints* structPts= vtkStructuredPoints::New(); vtkImageToStructuredPoints* its=vtkImageToStructuredPoints::New(); its->SetInput(importer->GetOutput()); structPts=its->GetOutput(); // Create transfer mapping scalar value to opacity vtkPiecewiseFunction *opacityTransferFunction = vtkPiecewiseFunction::New(); opacityTransferFunction->AddPoint(20, 0.0); opacityTransferFunction->AddPoint(255, 0.2); // Create transfer mapping scalar value to color vtkColorTransferFunction *colorTransferFunction = vtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); colorTransferFunction->AddRGBPoint(64.0, 1.0, 0.0, 0.0); colorTransferFunction->AddRGBPoint(128.0, 0.0, 0.0, 1.0); colorTransferFunction->AddRGBPoint(192.0, 0.0, 1.0, 0.0); colorTransferFunction->AddRGBPoint(255.0, 0.0, 0.2, 0.0); // The property describes how the data will look vtkVolumeProperty *volumeProperty = vtkVolumeProperty::New(); volumeProperty->SetColor(colorTransferFunction); volumeProperty->SetScalarOpacity(opacityTransferFunction); // The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction *compositeFunction= vtkVolumeRayCastCompositeFunction::New(); vtkVolumeRayCastMapper *volumeMapper=vtkVolumeRayCastMapper::New(); volumeMapper->SetVolumeRayCastFunction(compositeFunction); volumeMapper->SetInput(structPts);//sp reader->GetOutput() // The volume holds the mapper and the property and can be used to position/orient the volume vtkVolume *volume = vtkVolume::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); renderer->AddActor(volume); // interact with data renWin->Render(); *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From moitinho@civil.ist.utl.pt Mon Oct 28 10:44:54 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Mon, 28 Oct 2002 10:44:54 +0000 Subject: [vtkusers] vtkNightly dll's In-Reply-To: <15798.19307.891995.411665@monster.linux.in> References: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> <1035287230.792.5513.camel@xanth.kitwarein.com> <15798.19307.891995.411665@monster.linux.in> Message-ID: <200210281044.54589.moitinho@civil.ist.utl.pt> On Wednesday 23 October 2002 08:10, Prabhu Ramachandran wrote: > >>>>> "AC" == Andy Cedilnik writes: > > AC> Hello Dharmendra, Try www.vtk.org. > > Yes, but the vtk*Python.exe does not specify which version of Python, > Tcl/Tk etc. it requires. So its unlikely people will download it > without knowing what it requires. Also, where does it install > VTK-Python? Can someone who uses/builds these please clarify? > > Actually, if you want you can easily build a distutils based exe file > for VTK-Python. Do this on a windows machine with Python installed: > > $ cd Wrapping/Python > $ python setup.py bdist_wininst > > That should do the trick and build a distutils based exe that will > install VTK-Python correctly with all the Python files and the DLLs on > Windows if Python is already installed. Could some Windows + VTK > Python user please check this? I'm asking since I cannot test under > Windows. > I have now tried it out. The good news is at: http://www.civil.ist.utl.pt/~moitinho/vtk/VTK-4.1.1.cvs.win32.exe It seems to work, but needs probably some testing. I am not an expert, but is it usefull with only the vtkXXXPython.dll's? I was expecting that everything needed yo have a running vtk would be there, including vtkXXXX.dll. The (not so) bad news is that I had to use some persuasion: - copy source/__init__.py and source/vtk.pth to build directory - create a vtk directory with subdirectories gtk, qt, test, tk, util and wx Was it my mistake (bad path?). Regards Ze Paulo From moitinho@civil.ist.utl.pt Mon Oct 28 10:44:54 2002 From: moitinho@civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Mon, 28 Oct 2002 10:44:54 +0000 Subject: [vtkusers] vtkNightly dll's In-Reply-To: <15798.19307.891995.411665@monster.linux.in> References: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> <1035287230.792.5513.camel@xanth.kitwarein.com> <15798.19307.891995.411665@monster.linux.in> Message-ID: <200210281044.54589.moitinho@civil.ist.utl.pt> On Wednesday 23 October 2002 08:10, Prabhu Ramachandran wrote: > >>>>> "AC" == Andy Cedilnik writes: > > AC> Hello Dharmendra, Try www.vtk.org. > > Yes, but the vtk*Python.exe does not specify which version of Python, > Tcl/Tk etc. it requires. So its unlikely people will download it > without knowing what it requires. Also, where does it install > VTK-Python? Can someone who uses/builds these please clarify? > > Actually, if you want you can easily build a distutils based exe file > for VTK-Python. Do this on a windows machine with Python installed: > > $ cd Wrapping/Python > $ python setup.py bdist_wininst > > That should do the trick and build a distutils based exe that will > install VTK-Python correctly with all the Python files and the DLLs on > Windows if Python is already installed. Could some Windows + VTK > Python user please check this? I'm asking since I cannot test under > Windows. > I have now tried it out. The good news is at: http://www.civil.ist.utl.pt/~moitinho/vtk/VTK-4.1.1.cvs.win32.exe It seems to work, but needs probably some testing. I am not an expert, but is it usefull with only the vtkXXXPython.dll's? I was expecting that everything needed yo have a running vtk would be there, including vtkXXXX.dll. The (not so) bad news is that I had to use some persuasion: - copy source/__init__.py and source/vtk.pth to build directory - create a vtk directory with subdirectories gtk, qt, test, tk, util and wx Was it my mistake (bad path?). Regards Ze Paulo From p.cook@cs.ucl.ac.uk Mon Oct 28 11:53:50 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 28 Oct 2002 11:53:50 +0000 Subject: [vtkusers] lookupTable In-Reply-To: <20021028114039.17119.5816.Mailman@public.kitware.com> References: <20021028114039.17119.5816.Mailman@public.kitware.com> Message-ID: <1035806032.14781.10.camel@maraca.cs.ucl.ac.uk> > Message: 1 > Date: Mon, 28 Oct 2002 00:39:59 +0100 > From: Stefan Ulbrich > To: vtkusers@public.kitware.com > Subject: [vtkusers] lookupTable > > hello, > > i want to create a polydata object with several different colors. i've > associated a vtkUnsignedCharArray (i also tried float and int) with it > using > > scalar-->InsertNextValue(0); > scalar-->InsertNextValue(1); > scalar ->InsertNextValue(4); > pd->GetPointData()->SetScalars(scalar); > > i created a lookuptable > > lup->->SetNumberOfTableValues (n); > > lut->SetTableValue(0,1,1,1,1); > lut->SetTableValue(1,1,1,1,.5); > lut->SetTableValue(2,1,0,0,.75); > lut->SetTableValue(3,0,0,1,.25); > ..... > > scalars->SetLookupTable (lut); > > but only the points with the scalar value 0 get the right color. the > others get the color defined in the last entry of the lookuptable. > i wrote the object to disk and the values became between 0 and 1. > > what do i have to do, to connect a point to a specific color?? > > thank you very much > > stefan > > By default, unsigned char scalars will not be mapped through the LUT. You need to call vtkMapper::SetColorModeToMapScalars() to correct this. Also, set the correct scalar range of the LUT. You can do this directly, or you can call SetScalarRange on the vtkMapper. From J.A.Schaap@lumc.nl Mon Oct 28 12:49:54 2002 From: J.A.Schaap@lumc.nl (Schaap, J.A. (LKEB)) Date: Mon, 28 Oct 2002 13:49:54 +0100 Subject: [vtkusers] volume texture mapping based on GeForce3 graphics card In-Reply-To: <3DB91A05.1175.69908F@localhost> Message-ID: Hi Jianlong, I wanted to do this as well, but I never found the time to do it. I've got some links here with more information on the GeForce3 and volume rendering. Look especialy at Joe Kniss's work at simian. http://wwwvis.informatik.uni-stuttgart.de/~engel/pre-integrated/ http://www.cs.utah.edu/~jmk/simianweb/ http://www.sgi.com/software/opengl/advanced98/notes/node224.html furthermore I would like to suggest that you derive a class vtkVolumeTextureMapper3D from vtkVolumeTextureMapper and then implement a subclass vtkOpenGLVolumeTextureMapper3D. Take a look at how the vtkVolumeTextureMapper2D is devived from vtkVolumeTextureMapper. http://public.kitware.com/VTK/doc/nightly/html/classvtkVolumeTextureMapper2D.html Good luck! If you want to work togheter on this, please feel free to mail me. I don't have much experience with OpenGL and the GeForce3 instructions, but I'm always willing to learn and help. Jorrit. 25-10-2002 10:16:37, "Jianlong Zhou" wrote: >Hi, vtk users, > >I want to render volume with texture mapping based on GeForce3 Graphics card in VTK. >To realize this function, I think I should derive some vtk classes (e.g. >vtkVolumeTextureMapper2D, etc.) and add GeForce3 functions (e.g. register combiners, >etc.) into the derived classes. Does anyone have the experience to program combining >VTK and GeForce3 graphics card to do volume rendering? Would anyone give me any >ideas about combining VTK and GeForce card to do volume rendering? > >Thank you in advance. > >Best regards, > >Jianlong > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > From Les Schaffer Mon Oct 28 11:45:14 2002 From: Les Schaffer (Les Schaffer) Date: Mon, 28 Oct 2002 06:45:14 -0500 Subject: [vtkusers] Wanted Dlls for vtk nightly built using Python 2.2 In-Reply-To: <002801c27e4d$71a7f750$764f3eca@strand18> References: <002801c27e4d$71a7f750$764f3eca@strand18> Message-ID: <15805.9034.651139.147979@gargle.gargle.HOWL> > Have some code that depends on vtk Nightly ( code uses > vtkFloatPoints .etc .. that dont seem to be part of Dlls provide by > Les Schaffers Home Page ( http://basic.astrian.net/godzilla/) ). looks like its time to update my build. will compile latest nightly this morning. les schaffer From Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 28 15:33:33 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 28 Oct 2002 16:33:33 +0100 (MET) Subject: [vtkusers] vtkImageMapper cuts off images Message-ID: <1035819213.3dbd58cd93336@webmail.uni-magdeburg.de> Dear VTK-users, I'm using a vtkImageMapper to display slices of 256x256xK and 512x512xK volumes. I want the slices to fill in the whole render window. Therefore, I use: imgMapper->RenderToRectangleOn(); together with: imgActor->SetPosition(0.0,0.0); imgActor->SetPosition2(1.0,1.0); This works fine for my 256x256xK volumes but the slices of the 512x512xK volumes are cut off. I have to enlarge the render window to see all of the slice. The same happens (also to my 256x256xK volumes) when I make the render window significantly smaller than 256x256 (512x512). Can anybody explain this behaviour ? Steffen From anast.jm@pg.com Mon Oct 28 15:26:10 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 28 Oct 2002 10:26:10 -0500 Subject: [vtkusers] greyscale/color rendering Message-ID: Chunyan, The reason your volume renders in color is that you have assigned colors to your color transfer function. If you make all the rgb values equal (that is r=g=b) you will get a grayscale rendering vtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); colorTransferFunction->AddRGBPoint(64.0, 1.0, 0.0, 0.0); red => 1.0, 1.0, 1.0 white colorTransferFunction->AddRGBPoint(128.0, 0.0, 0.0, 1.0); blue => 1.0, 1.0, 1.0 white colorTransferFunction->AddRGBPoint(192.0, 0.0, 1.0, 0.0); green => 1.0, 1.0, 1.0 white colorTransferFunction->AddRGBPoint(255.0, 0.0, 0.2, 0.0); pale green => 0.2, 0.2, 0.2 light gray You might want to try a gray ramp if this doesn't look very good (0.0, 0.0, 0.0, 0.0); (64.0, 0.2, 0.2, 0.2); (128.0, 0.4, 0.4, 0.4); (192.0, 0.7, 1.7, 0.7); (255.0, 1.0, 1.0, 1.0); john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Chunyan Jiang" @public.kitware.com on 10/28/2002 11:37 AM CET "Chunyan Jiang" To: "VTK-User" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] greyscale/color Sent by: vtkusers-admin@public.kitware.com 10/28/2002 05:37 AM Dear VTK friends, I import the greyscale image data from memery to vtkImageImport, then transform the vtkImageImport to vtkStructuredPoints by vtkImageToStructuredPoints. After that I use vtkVolumeRayCastMapper to render the volume. It works now, however, the greyscale image changes to color image. How can I render grey image? I attach the code below. Is there something wrong? Any help is appreciated. Code: vtkImageImport *importer = vtkImageImport::New(); importer->SetWholeExtent(1,dimensions[0],1,dimensions[1],1,dimensions[2]); importer->SetDataExtentToWholeExtent(); importer->SetDataScalarTypeToUnsignedChar(); importer->SetDataOrigin(0,0,0); importer->SetDataSpacing(1,1,1); importer->SetImportVoidPointer(data);//data is unsigned char* that storing greyscale images data vtkStructuredPoints* structPts= vtkStructuredPoints::New(); vtkImageToStructuredPoints* its=vtkImageToStructuredPoints::New(); its->SetInput(importer->GetOutput()); structPts=its->GetOutput(); // Create transfer mapping scalar value to opacity vtkPiecewiseFunction *opacityTransferFunction = vtkPiecewiseFunction::New(); opacityTransferFunction->AddPoint(20, 0.0); opacityTransferFunction->AddPoint(255, 0.2); // Create transfer mapping scalar value to color vtkColorTransferFunction *colorTransferFunction = vtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); colorTransferFunction->AddRGBPoint(64.0, 1.0, 0.0, 0.0); colorTransferFunction->AddRGBPoint(128.0, 0.0, 0.0, 1.0); colorTransferFunction->AddRGBPoint(192.0, 0.0, 1.0, 0.0); colorTransferFunction->AddRGBPoint(255.0, 0.0, 0.2, 0.0); // The property describes how the data will look vtkVolumeProperty *volumeProperty = vtkVolumeProperty::New(); volumeProperty->SetColor(colorTransferFunction); volumeProperty->SetScalarOpacity(opacityTransferFunction); // The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction *compositeFunction= vtkVolumeRayCastCompositeFunction::New(); vtkVolumeRayCastMapper *volumeMapper=vtkVolumeRayCastMapper::New(); volumeMapper->SetVolumeRayCastFunction(compositeFunction); volumeMapper->SetInput(structPts);//sp reader->GetOutput() // The volume holds the mapper and the property and can be used to position/orient the volume vtkVolume *volume = vtkVolume::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); renderer->AddActor(volume); // interact with data renWin->Render(); *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From anast.jm@pg.com Mon Oct 28 15:35:06 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 28 Oct 2002 10:35:06 -0500 Subject: [vtkusers] About Transform and Rotation Message-ID: DQpCYW8sIENhbiB5b3UgYmUgbW9yZSBzcGVjaWZpYyBhYm91dCB0aGUgcHJvYmxlbXMgeW91IGFy ZSBoYXZpbmcuIFRoZSBjb2RlIHNlZW1zDQp0byBydW4gZmluZSBmb3IgbWUuLi4uam9obg0KDQoN CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICANCiBJbnRlcm5ldCBNYWlsIE1lc3NhZ2UgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICANCiBSZWNlaXZlZCBmcm9tIGhvc3Q6ICAgICAgcHVibGljLmtpdHdh cmUuY29tICAgICAgICAgICAgICAgICAgICANCiBbMjQuOTcuMTMwLjE5XSAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCg0KDQpGcm9tOiBj b2dpdG8gPGJhb2NvZ2l0b0B5YWhvby5jb20uY24+QHB1YmxpYy5raXR3YXJlLmNvbSBvbiAxMC8y Ni8yMDAyIDA5OjE0IFBNDQpaRTgNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgDQogICAgICAgICAgICAgY29naXRvIDxiYW9jb2dpdG9AeWFob28uY29tLmNuPiAgICAg ICAgICAgVG86ICAgdnRrdXNlcnNAcHVibGljLmtpdHdhcmUuY29tICAgICAgICAgIA0KICAgICAg ICAgICAgICAgICAgICAgICAgIEBwdWJsaWMua2l0d2FyZS5jb20gICAgICAgICAgIENjOiAgICAo YmNjOiBKb2huIEFuYXN0LUpNL1BHSSkgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgU3ViamVjdDogICAgICBbdnRrdXNlcnNdIEFib3V0 IFRyYW5zZm9ybSBhbmQgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgUm90YXRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIA0KIFNlbnQgYnk6ICB2dGt1c2Vycy1hZG1pbkBwdWJsaWMua2l0d2FyZS5jb20gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCiAgICAg ICAgICAgICAgICAgICAgICAgICAxMC8yNi8yMDAyIDA5OjE0IEFNICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICANCg0KDQoNCg0KDQoNCmhpLA0KDQrCoMKgIEl0IGNhbm5vdCB3b3JrIHdlbGwgd2hl biBJIHJ1biB0aGUgZm9sbG93IGNvZGUuDQoNCsKgwqAgcGxlYXNlIGhlbHAgbWUuDQoNCi0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCg0KcGFja2FnZSByZXF1aXJlIHZ0aw0KcGFj a2FnZSByZXF1aXJlIHZ0a2ludGVyYWN0aW9uDQoNCiMgdGhpcyBp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ldFBvc2l0aW9uIDEzLjM5OTEgMTQuMDc2NCA5Ljk3Nzg3DQpb cmVuMSBHZXRBY3RpdmVDYW1lcmFdIFNldEZvY2FsUG9pbnQgMS41MDQzNyAwLjQ4MTUxNyA0LjUy OTkyDQpbcmVuMSBHZXRBY3RpdmVDYW1lcmFdIFNldFZpZXdBbmdsZSAzMA0KW3JlbjEgR2V0QWN0 aXZlQ2FtZXJhXSBTZXRWaWV3VXAgLTAuMTIwODYxIDAuNDU4NTU2IC0wLjg4MDQwOA0KW3JlbjEg R2V0QWN0aXZlQ2FtZXJhXSBTZXRDbGlwcGluZ1JhbmdlIDEyLjU3MjQgMjYuODM3NA0KDQojIHJl bmRlciB0aGUgaW1hZ2UNCiMNCmlyZW4gQWRkT2JzZXJ2ZXIgVXNlckV2ZW50IHt3bSBkZWljb25p ZnkgLnZ0a0ludGVyYWN0fQ0KaXJlbiBJbml0aWFsaXplDQoNCiMgcHJldmVudCB0aGUgdGsgd2lu ZG93IGZyb20gc2hvd2luZyB1cCB0aGVuIHN0YXJ0IHRoZSBldmVudCBsb29wDQp3bSB3aXRoZHJh dyAuDQoNCg0KDQpEbyBZb3UgWWFob28hPw0KIuaYr0lU57K+6Iux5ZCX77yf5bCP6K+V54mb5YiA 6I635pe25bCa5aSn5aWW77yBIg0KDQo= From fw9189@bristol.ac.uk Mon Oct 28 15:40:00 2002 From: fw9189@bristol.ac.uk (fw9189@bristol.ac.uk) Date: Mon, 28 Oct 2002 15:40:00 +0000 Subject: [vtkusers] A dummy vtk path question Message-ID: <1035819600.3dbd5a503fbb7@webmail.bris.ac.uk> Alright, so I've downloaded the pre-compiled Java package off the vtk.org website. Compiling example files works fine, but execution isn't working. This seems to be due to a linking error... java can't find the dll's (System.loadLibrary(...)). So, where exectly do I need to put the dll's, and how do I tell java where to find them? Thanks, Fred ----------------------------------------------------- This mail sent through SilkyMail v1.1.8 From John Biddiscombe" Message-ID: <000701c27e9b$aaf10cb0$0100a8c0@tigger> Might be caused by OpenGL clipping the image due to the edge being right on the edge of the window, does it still get cut if you do imgActor->SetPosition(0.01,0.01); imgActor->SetPosition2(0.99,0.99); JB ----- Original Message ----- From: "Steffen Oeltze" To: "Vtkusers (E-mail)" Sent: Monday, October 28, 2002 3:33 PM Subject: [vtkusers] vtkImageMapper cuts off images > Dear VTK-users, > > I'm using a vtkImageMapper to display slices of 256x256xK and 512x512xK > volumes. I want the slices to fill in the whole render window. Therefore, > I use: > > imgMapper->RenderToRectangleOn(); > > together with: > > imgActor->SetPosition(0.0,0.0); > imgActor->SetPosition2(1.0,1.0); > > This works fine for my 256x256xK volumes but the slices of the 512x512xK > volumes are cut off. I have to enlarge the render window to see all of the > slice. The same happens (also to my 256x256xK volumes) when I make the render > window significantly smaller than 256x256 (512x512). > > Can anybody explain this behaviour ? > > Steffen > _______________________________________________ > 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 Steffen.Oeltze@Student.Uni-Magdeburg.DE Mon Oct 28 16:17:20 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon, 28 Oct 2002 17:17:20 +0100 (MET) Subject: [vtkusers] vtkImageMapper cuts off images In-Reply-To: <000701c27e9b$aaf10cb0$0100a8c0@tigger> References: <1035819213.3dbd58cd93336@webmail.uni-magdeburg.de> <000701c27e9b$aaf10cb0$0100a8c0@tigger> Message-ID: <1035821840.3dbd63101834b@webmail.uni-magdeburg.de> yes, it does. Steffen Zitiere John Biddiscombe : > Might be caused by OpenGL clipping the image due to the edge being right > on > the edge of the window, does it still get cut if you do > > imgActor->SetPosition(0.01,0.01); > imgActor->SetPosition2(0.99,0.99); > > > JB > > ----- Original Message ----- > From: "Steffen Oeltze" > To: "Vtkusers (E-mail)" > Sent: Monday, October 28, 2002 3:33 PM > Subject: [vtkusers] vtkImageMapper cuts off images > > > > Dear VTK-users, > > > > I'm using a vtkImageMapper to display slices of 256x256xK and > 512x512xK > > volumes. I want the slices to fill in the whole render window. > Therefore, > > I use: > > > > imgMapper->RenderToRectangleOn(); > > > > together with: > > > > imgActor->SetPosition(0.0,0.0); > > imgActor->SetPosition2(1.0,1.0); > > > > This works fine for my 256x256xK volumes but the slices of the > 512x512xK > > volumes are cut off. I have to enlarge the render window to see all of > the > > slice. The same happens (also to my 256x256xK volumes) when I make > the > render > > window significantly smaller than 256x256 (512x512). > > > > Can anybody explain this behaviour ? > > > > Steffen > > _______________________________________________ > > 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 smitty@kcc.com Mon Oct 28 16:15:44 2002 From: smitty@kcc.com (Tom G. Smith (Smitty)) Date: Mon, 28 Oct 2002 10:15:44 -0600 (CST) Subject: [vtkusers] False DISPLAY :0.0 Message-ID: Hello vtkusers, One of my coworkers pointed out that Cone.cxx isn't meant to be interactive, so I tried compiling Cube.cxx from Examples/DataManipulation/Cxx/Cube.cxx, and although I can interact with it (zoom, rotate, move, quit), I still get these errors when I run it: bash-2.05a$ ./Cube Xlib: connection to ":0.0" refused by server Xlib: No protocol specified The CMakeLists.txt for Cube.cxx is essentially identical to that I used for Cone.cxx shown below. >From smitty@random.kcc.com Fri Oct 25 18:12:40 2002 >Date: Fri, 25 Oct 2002 18:11:47 -0500 (CDT) >From: "Tom G. Smith (Smitty)" >To: vtk mailing list >Cc: Chris Pieper >Subject: Can't interact remotely with binary from Cone.cxx > >Hello vtkusers, > >I just installed VTK 4.0.2, and you may've seen the problem I posted >about getting Tcl scripts to work. I'm having a similar problem with >C++ files. I compile Cone.cxx with these commands: > > mkdir Cone; cd Cone > vtkbuildmake Cone # Builds CMakeLists.txt, listed below, runs cmake. > make > >It compiles clean, but when I run it remotely I get the same error as >with Tcl scripts (Note that my $DISPLAY is *NOT* set to :0.0): > > bash-2.05a$ ./Cone > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > >The graphic of the cone displays, and slowly revolves, but there's >absolutely no interaction. The mouse and keyboard don't do anything. >To stop the display I must do Ctrl-C. All other X clients work fine, >e.g. xterm, xclock, MATLAB, Mathematica, SAS, etc. > >Here's my CMakeLists.txt file (BTW cmake takes some getting used to. >Can't say I like it very much): >..................................................................... >PROJECT (Cone) > >INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) >IF (USE_VTK_FILE) > INCLUDE(${USE_VTK_FILE}) >ENDIF (USE_VTK_FILE) > >INCLUDE_DIRECTORIES( > /opt/vtk/Imaging/Testing/Cxx /opt/vtk/Rendering /opt/vtk/Hybrid > /opt/vtk/Patented /opt/vtk/Parallel /opt/vtk /opt/vtk/Common > /opt/vtk/Filtering /opt/vtk/Imaging /opt/vtk/Graphics /opt/vtk/IO > /opt/vtk/Utilities/zlib /opt/vtk/Utilities/png /opt/vtk/Utilities/jpeg > /opt/vtk/Common/Testing/Cxx /usr/include/python1.5 >) > >LINK_DIRECTORIES( > /contrib/vtk/VTK/bin /usr/X11R6/lib >) > >LINK_LIBRARIES( > vtkRendering vtkGraphics vtkImaging vtkFiltering vtkCommon > GL Xt SM ICE X11 Xext pthread m dl >) > >ADD_EXECUTABLE(Cone Cone.cxx) ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From prabhu@aero.iitm.ernet.in Mon Oct 28 16:58:49 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 28 Oct 2002 22:28:49 +0530 Subject: [vtkusers] vtkNightly dll's In-Reply-To: <200210281044.54589.moitinho@civil.ist.utl.pt> References: <5.1.1.6.0.20021022113229.02ac41d0@mail.strandgenomics.com> <1035287230.792.5513.camel@xanth.kitwarein.com> <15798.19307.891995.411665@monster.linux.in> <200210281044.54589.moitinho@civil.ist.utl.pt> Message-ID: <15805.27849.283024.404581@monster.linux.in> >>>>> "JP" == Jose Paulo Moitinho de Almeida writes: PR> $ cd Wrapping/Python PR> $ python setup.py bdist_wininst JP> http://www.civil.ist.utl.pt/~moitinho/vtk/VTK-4.1.1.cvs.win32.exe JP> It seems to work, but needs probably some testing. I am not an JP> expert, but is it usefull with only the vtkXXXPython.dll's? I JP> was expecting that everything needed yo have a running vtk JP> would be there, including vtkXXXX.dll. Nope. Only the vtk*Python.dll's should be there. The setup.py will not handle all the dlls. JP> The (not so) bad news is that I had to use some persuasion: JP> - copy source/__init__.py and source/vtk.pth to build JP> directory - create a vtk directory with subdirectories gtk, JP> qt, test, tk, util and wx That is wierd (unless of course something has changed in CVS that I don't know about). It should certainly include all the *.py files with the directories etc. Here is what it should do: 1. Create a directory called vtk_python in sys.prefix/lib/python-sys.version[:3]/site-packages. I'm not sure how this works under Windows though but I remember that someone tested it out and that it worked. 2. Put all the contents of Wrapping/Python inside this vtk_python dir. Also put the vtkPython*.dlls into this dir. 3. Copy vtk.pth to sys.prefix/lib/python-sys.version[:3]/site-packages. That is how the setup.py install command is supposed to work. I thought that the bdist_wininst should capture all that and work. Let me know if there are problems. Thanks. prabhu From nundys@neuro.duke.edu Mon Oct 28 14:27:58 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Mon, 28 Oct 2002 09:27:58 -0500 Subject: [vtkusers] VTK-Java problems on OS X Message-ID: <5F303F62-EA98-11D6-BAD8-000393B290A0@neuro.duke.edu> Courtesy of Raphael Sebbe, here are some changes that enabled me to build java-vtk successfully on os x. 1. at line 57 in Common/vtkJavaUtil.cxx, add "|| defined(__MACH__)" after "|| defined(sgi)" 2. before " #else JAWT_X11DrawingSurfaceInfo* dsi_x11;" in Common/vtkJavaAwt.h, add "#elif defined(VTK_USE_CARBON) jawt_MacDrawingSurfaceInfo* dsi_mac; dsi_mac = (jawt_MacDrawingSurfaceInfo*)dsi->platformInfo; temp0->SetWindowId((void *)dsi_mac->fQDWindow);" This only works for Carbon windowing (although you can use Cocoa windowing if using C++). This should give you a successful build (tested on recent cvs ~2 weeks ago). It would also be nice to ask the person responsible for Java in "OS X" to include these hacks in the source tree. Surajit Nundy From kevinsiangchin@hotmail.com Mon Oct 28 19:11:39 2002 From: kevinsiangchin@hotmail.com (Kevin Siangchin) Date: Mon, 28 Oct 2002 14:11:39 -0500 Subject: [vtkusers] Help: Embedded VTK in MFC App - Need additional openGL Window... Message-ID: Hello. Could use some tips. I have an MFC application with VTK embedded. I simply use vtk as a quick way to adjust camera position,etc. of a polygonal model(s). I would like to do additional rendering (raytracing/radiosity) in an opengl window. First I'd like to ask for pointers as to how to do this effectively. Second, I've already created an opengl window class - generic WIN32 implementation. The opengl window has its own event handler. My problems are as follows: (1) For now the opengl window simply renders a colored triangle (w/o raytracing,etc). When the window is created and the scene is rendered I seem to lose contact with the associated event handler. Specifically, in order for me to respond again to mouse events and the like I have to click outside the main application - either activate (bring to the foreground) another application or click on the taskbar slot [for lack of a better term] of the opengl window or main application window - then reactivate the opengl window. In other words, I have to deactivate (send to background) the main application or the opengl window, then reactivate (send to the foreground), in order for the opengl window to respond to messages. After this transition from foreground (after creation) to background to foreground, the messages seem like they are routed to the right handlers. NOTE: This problem occurs even when I create the opengl window in a simple AppWizard Generated SDI application. (see http://xtopia0.tripod.com/testcode/openglwintest.zip for the code ) (2) When I return to the main application I no longer can render anything using my VTK window. That window simply repaints - upon resize, move, etc - the scene prior to the spawning the opengl window. I can no longer use the vtkInteractor to change that scene (or perhaps I can use the interactor, but the rendering does not occur) or display other objects. I just get the scene prior to the creation and displaying of the opengl window. I suspect it may have to do with VTK's rendering context. Any suggestions on how to create/manage an separate opengl window in an MFC application using VTK would be greatly appreciated. And any help with (1) and (2) would likewise be appreciated. Thanks. ks From tdeschamps@lbl.gov Mon Oct 28 23:50:31 2002 From: tdeschamps@lbl.gov (Thomas Deschamps) Date: Mon, 28 Oct 2002 15:50:31 -0800 Subject: [vtkusers] Default parameters for rendering a surface obtained with vtkMarchingCube Message-ID: <3DBDCD47.2070502@lbl.gov> This is a multi-part message in MIME format. --------------060002040405040508070209 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi vtkUsers, I have problem, which is probably related to the way I set the display of a surface extracted by the Marching cube. I want to render a big cube of size 200x200x150 extracted with the marching cube algorithm (later I'll work on other shapes when this bug will be solved). The rendering gives me red faces for z-constant planes, and white faces for the 4 others. Do you know what is happening? The only modification done to the actor is to set is color to red. All other options are not set, therfore set by defaults. I do not know if I can include image in this email. I will try to do it, but if you know what's happening, or want the image, I can send it to you directly. Thank you for your help. Thomas (tdeschamps@lbl.gov) --------------060002040405040508070209 Content-Type: image/jpeg; name="cube.jpg" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="cube.jpg" /9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8S EhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEU Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAAR CADlAPEDAREAAhEBAxEB/8QAHQABAAEEAwEAAAAAAAAAAAAAAAYDBQcIAQIECf/EAEsQAAED AwIDBAQKBgUMAwAAAAEAAgMEBREGEgchMRNBUWEIFCIyFRYjQlVWcYGRlBhylaHR0jM0UnOx JCVUYmNng5KTpcHTsuHj/8QAGwEBAAIDAQEAAAAAAAAAAAAAAAQFAgMGAQf/xABCEQACAQIB BgoGCQMEAwAAAAAAAQIDEQQFEiExQVEGExRhcYGRodHwIjJSU5KxFRYjQmJygsHhJDNUQ6LS 8SVj4v/aAAwDAQACEQMRAD8AwCuwKQIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIA gCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgC AIAgCAIAg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A gCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgC AIAgP//Z --------------060002040405040508070209-- From anast.jm@pg.com Tue Oct 29 00:08:59 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 28 Oct 2002 19:08:59 -0500 Subject: [vtkusers] Default parameters for rendering a surface obtained with vtkMarchingCube Message-ID: Thomas...is ScalarVisibility set On or Off (try playing with this and see if it makes a difference.) Also if you can include a snipet of pertinent code that might help too.....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Thomas Deschamps @public.kitware.com on 10/28/2002 03:50 PM PST Thomas Deschamps To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Default parameters for rendering a surface obtained with Sent by: vtkMarchingCube vtkusers-admin@public.kitware.com 10/28/2002 06:50 PM Hi vtkUsers, I have problem, which is probably related to the way I set the display of a surface extracted by the Marching cube. I want to render a big cube of size 200x200x150 extracted with the marching cube algorithm (later I'll work on other shapes when this bug will be solved). The rendering gives me red faces for z-constant planes, and white faces for the 4 others. Do you know what is happening? The only modification done to the actor is to set is color to red. All other options are not set, therfore set by defaults. I do not know if I can include image in this email. I will try to do it, but if you know what's happening, or want the image, I can send it to you directly. Thank you for your help. Thomas (tdeschamps@lbl.gov) << image snipped for reply>> From kevinsiangchin@hotmail.com Tue Oct 29 00:57:56 2002 From: kevinsiangchin@hotmail.com (Kevin Siangchin) Date: Mon, 28 Oct 2002 19:57:56 -0500 Subject: [vtkusers] Embedded VTK in MFC App - Need additional openGL Window... Message-ID: > Hello. > Could use some tips. I have an MFC application with VTK embedded. I simply > use vtk as a quick way to adjust camera position,etc. of a polygonal > model(s). I would like to do additional rendering (raytracing/radiosity) in > an opengl window. First I'd like to ask for pointers as to how to do this > effectively. > Second, I've already created an opengl window class - generic WIN32 > implementation. The opengl window has its own event handler. My problems are > as follows: > > (1) For now the opengl window simply renders a colored triangle (w/o > raytracing,etc). When the window is created and the scene is rendered I seem > to lose > contact with the associated event handler. Specifically, in order for me to > respond again to mouse events and the like I have to click outside the main > application - either activate (bring to the foreground) another application > or click on the taskbar slot [for lack of a better term] of the opengl > window or main application window - then reactivate the opengl window. In > other words, I have to deactivate (send to background) the main application > or the opengl window, then reactivate (send to the foreground), in order for > the opengl window to respond to messages. After this transition from > foreground (after creation) to background to foreground, the messages seem > like they are routed to the right handlers. NOTE: This problem occurs even > when I create the opengl window in a simple AppWizard Generated SDI > application. (see http://xtopia0.tripod.com/testcode/openglwintest.zip for > the code ) > > > (2) When I return to the main application I no longer can render anything > using my VTK window. That window simply repaints - upon resize, move, etc - > the scene prior to the spawning the opengl window. I can no longer use the > vtkInteractor to change that scene (or perhaps I can use the interactor, but > the rendering does not occur) or display other objects. I just get the scene > prior to the creation and displaying of the opengl window. I suspect it may > have to do with VTK's rendering context. > > Any suggestions on how to create/manage an separate opengl window in an MFC > application using VTK would be greatly appreciated. And any help with (1) > and (2) would likewise be appreciated. > > Thanks. > ks > From vtk_replies@yahoo.com Tue Oct 29 01:01:45 2002 From: vtk_replies@yahoo.com (vtk replies) Date: Mon, 28 Oct 2002 17:01:45 -0800 (PST) Subject: [vtkusers] when is vtkProcessObject::SortInputsByLocality() called ? Message-ID: <20021029010145.84508.qmail@web21502.mail.yahoo.com> Hi, I have been tracing back the way vtkContourFilter works. In order to set the input to the filter, the SetInput(vtkDataSet data) method is used, which in turn calls the vtkProcessObject class methods. I looked into the vtkProcessObject class and noticed the function SortInputsByLocality() (but could not find where and when it si called). (1) I am interested in knowing on what ocassions this function is called ? (2) Does this function help the vtkContourFilter work faster in some way by sorting the dataset in some way ? If anyone can please throw light on this, I will be really grateful. I have spent quiet some time looking at all the wrong places. Thank you in advance, regards, Joseph. __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ From David.Pont@ForestResearch.co.nz Tue Oct 29 03:39:23 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Tue, 29 Oct 2002 16:39:23 +1300 Subject: [vtkusers] Points within radius Message-ID: --0__=CC256C610013C8798f9e8a93df938690918cCC256C610013C879 Content-type: text/plain; charset=us-ascii Siddu, For each point within the radius you could calculate the dot product between the point normal and the line, and keep (or process) only those with the desired sign. Dave Pont |--------+---------------------------------> | | Mysore Siddu | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 26/10/2002 04:08 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] Points within radius | >------------------------------------------------------------------------------------------------------------| Hi prabhu/Tim Thanks for the response and it was very helpful. I have one more question to all the vtk users. I am using stl reader and vtkcelllocator to get a line intersection point and its cellID. After this I tried to compute all the points that lie within radius of the intersection point. To compute the points within radius I am using: pointLocator->FindPointsWithinRadius(radius, ptline, res); Question is: As I looked at the normal of all the points within radius I discovered that most of the points are from inside surface, where as my intersection point is at outside surface. How to compute all the points that lie only on the outer side of the surface? The code I am using for this is : vtkIdList *res = vtkIdList::New(); float radius = 2.0; vtkPointLocator *pointLocator = vtkPointLocator::New (); pointLocator->SetDataSet(stlreader->GetOutput()); pointLocator->BuildLocator(); pointLocator->FindPointsWithinRadius(radius, ptline, res); pointLocator->Update(); vtkIdType ptId; float *pt; int num_pts; num_pts = res->GetNumberOfIds(); for (int i=0; i < num_pts; i++) { ptId = res->GetId(i); pt = poly->GetPoint(ptId); } Thanks in advance Siddu (Embedded image moved to file: pic06729.gif)Post your ad on Yahoo! India Autos. Check out the used Maruti, Fiat and Ford models on sale now. --0__=CC256C610013C8798f9e8a93df938690918cCC256C610013C879 Content-type: image/gif; name="pic06729.gif" Content-Disposition: attachment; filename="pic06729.gif" Content-transfer-encoding: base64 R0lGODlhHAARANX/AP//////mf/MAP+ZZv8bVP8AZv8AYf8ANf8AM8z//8zMzMyZM8wAM8wAAMgB LqafppnMzJmZmZlmAJkAM4GBgWoJBGZmZmYAAFsEHEkAAEMAFTo6Ojc3NzMzMzMyMyw3NiMICB8f HwAZDQALBAAGAwACAAABAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C0FET0JFOklSMS4wAt7tACH5BAEA ACgALAAAAAAcABEAAAbqQJRwSBxajsWkMqlIJCCdZVGBiqAsV1S043xGpWBhZwKAQCydb3iouFwm oEylQW8UJhNmNRs9vTsDAYIBAwUnAgEXJ1RLACcnBQUDk3V0hwILBheMRRaQknUnCKOkJwuihlZU Fo4ddaQIJw4MtLWPFwUXAVgojg0dsLaPeHhuihcIAhK9oggdtbQFCY/DExgQCtl+F1gnBwQTJyXE ExAnEY63FxFpFtkP7id4Ih8j8njm6NQU1P0R7ADwnAAQwYOGEyZIUOvgSEsaAFEURDjXgRo7NekY MhSyoQOHRiFObCSShiGANSh7hQkCADs= --0__=CC256C610013C8798f9e8a93df938690918cCC256C610013C879-- From mikeli80@yahoo.com Tue Oct 29 04:37:14 2002 From: mikeli80@yahoo.com (Mike Li) Date: Mon, 28 Oct 2002 20:37:14 -0800 (PST) Subject: [vtkusers] Points connected to a single point Message-ID: <20021029043714.9808.qmail@web12905.mail.yahoo.com> --0-2133563139-1035866234=:9383 Content-Type: text/plain; charset=us-ascii Hi all, How can I get the IDs of points connected to a single point (first-order neighbors) of polydata. Thanks a lot, Mike --------------------------------- Do you Yahoo!? HotJobs - Search new jobs daily now --0-2133563139-1035866234=:9383 Content-Type: text/html; charset=us-ascii

Hi all,

How can I get the IDs of points connected to a single point (first-order neighbors) of polydata.

Thanks a lot,

Mike



Do you Yahoo!?
HotJobs - Search new jobs daily now --0-2133563139-1035866234=:9383-- From freesoftinfo@163.com Thu Oct 31 07:54:50 2002 From: freesoftinfo@163.com (freesoftinfo@163.com) Date: Thu, 31 Oct 2002 15:54:50 +0800 Subject: [vtkusers] Could you tell me how to import ascii object export file of 3dsmax and render? Message-ID: <01af01c280b2$cc5d3630$1500a8c0@gis1> SGksDQoNCkNvdWxkIHlvdSB0ZWxsIG1lIGhvdyB0byBpbXBvcnQgYXNjaWkgb2JqZWN0IGV4cG9y dCBmaWxlIG9mIDNkc21heC4NCkhvdyB0byByZW5kZXIgIHRleHR1cmUgbWFwIChEdW1wIG1hcCwg RGlmZnVzZSBtYXAsIE9wYWNpdHkgbWFwLCBldGMpLg0KDQpUaGFuayB5b3UuDQogDQoNCg== From charlie.chang@nchc.gov.tw Tue Oct 29 09:22:07 2002 From: charlie.chang@nchc.gov.tw (Charlie H. Chang) Date: Tue, 29 Oct 2002 17:22:07 +0800 Subject: [vtkusers] problem on compiling examples on Mandrake Linux 9.0 Message-ID: <3DBE533F.9080103@nchc.gov.tw> Hello all, Is there any known-problem about compiling the VTK examples on Mandrake Linux 9.0 with gcc 3.2? I have used CMake and VTK cvs source on my mandrake Linux 9.0 Building the VTK is ok, but when I try to compile some of the examples I have the following error: -------------------------------------------------------------------------------- host% make /opt/bin/cmake -S/opt/build/VTK/Examples/DataManipulation/Cxx -O/opt/build/VTK/Examples/DataManipulation/Cxx -H/opt/build/VTK/Examples/DataManipulation/Cxx -B/opt/build/VTK/Examples/DataManipulation/Cxx g++ -I/opt/build/VTK/Examples/DataManipulation/Cxx -I/opt/include/vtk -I/usr/X11R6/include -c /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx -o Arrays.o In file included from /usr/include/c++/3.2/backward/strstream:51, from /opt/include/vtk/vtkSystemIncludes.h:46, from /opt/include/vtk/vtkIndent.h:27, from /opt/include/vtk/vtkObjectBase.h:46, from /opt/include/vtk/vtkObject.h:44, from /opt/include/vtk/vtkDataArray.h:48, from /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:23: /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx: In function `int main(int, char**)': /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:87: no method `vtkPolyData::New' /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:89: invalid use of undefined type `struct vtkPolyData' /opt/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `struct vtkPolyData' /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:90: invalid use of undefined type `struct vtkPolyData' /opt/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `struct vtkPolyData' .. ... make[1]: *** [Arrays.o] Error 1 make: *** [default_target] Error 2 ---------------------------------------------------------------------- However, some of the examples are ok though. (Modelling and Tutorial/step1) Any idea? Thank you in advance! -- Charlie H. Chang, Software Development Group National Center for High-performance Computing T: 1-886-3-5776085x362 E: charlie.chang@nchc.gov.tw W: www.nchc.gov.tw From dharmendra@strandgenomics.com Tue Oct 29 09:55:34 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 29 Oct 2002 15:25:34 +0530 Subject: [vtkusers] slow interaction when i render 1000 spheres Message-ID: <5.1.1.6.0.20021029151119.00adfa48@mail.strandgenomics.com> Hello All, I have posted this time and again.Though i got replies i could not impove the speed. I have a question. Iam using vtkNightly on both windows and linux. Using Python22 My question is when i try to render some 1000 spheres it is very slow. But MayaVi is able to visualize brain.vtk file and the interaction is normal.(i dont know how) the way i do is as follows: i create a assembly and add the actors(1000 actors one for each sphere)to it. I add the assemble to renderer. rendering is very slow in this case and interaction like zooming and panning are dead slow. Is this the correct way to create so many actors or is there any other way. I need some help in this regard. thanks dharmendra From jss@au.mensa.org Tue Oct 29 10:08:28 2002 From: jss@au.mensa.org (John) Date: Tue, 29 Oct 2002 20:38:28 +1030 Subject: [vtkusers] slow interaction when i render 1000 spheres Message-ID: <20021029100712.1BBC41AB08@public.kitware.com> Dharmendra, did you try these suggestions?? if so, what was wrong with them? Did they help at all? etc ---------- Forwarded Message ---------- Subject: Re: [vtkusers] urgent Date: Tue, 17 Sep 2002 09:24:53 +1200 From: David.Pont@ForestResearch.co.nz To: Dharmendra Cc: vtkusers@public.kitware.com Hi Dharmendra, Have you tried vtkLODActor? Also you could just render points rather than spheres. If you are using vtkGlyph3D with vtkSphereSource as input try reducing SetThetaResolution and SetPhiResolution. You can also use vtkMaskPoints to subsample the input data, on large data sets this can be a good way to still 'get the feel' of the data without displaying everything. hope this helps, Dave Pont From massimo.ivani@mlsw.com Tue Oct 29 10:59:14 2002 From: massimo.ivani@mlsw.com (Massimo Ivani) Date: Tue, 29 Oct 2002 11:59:14 +0100 Subject: [vtkusers] vtkRenderSource problems Message-ID: <004201c27f3a$3931c930$f254dfd9@compaq> This is a multi-part message in MIME format. ------=_NextPart_000_003F_01C27F42.9A24D770 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I used vtkRenderSource and vtkBMPwriter to create a bitmap from vtk = window. After I did that, vtk windows become VERY VERY slow and mouse = pointer "flickers" when I rotate vtk objects using mouse. That happens = even if I use vtkRenderLargeImage and other vtk image writers.=20 Thank you for your help. Dr. Massimo Ivani Media Lab Software Tel.: +39 0187 517775 Fax: +39 0187 511833 massimo.ivani@mlsw.com www.mlsw.com ------=_NextPart_000_003F_01C27F42.9A24D770 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I used vtkRenderSource and vtkBMPwriter = to create a=20 bitmap from vtk window. After I did that, vtk windows become VERY VERY = slow and=20 mouse pointer "flickers" when I rotate vtk objects using mouse. That = happens=20 even if I use vtkRenderLargeImage and other vtk image writers. =
 
Thank you for your help.
 
 
Dr. Massimo Ivani
Media Lab = Software
Tel.:=20 +39 0187 517775
Fax: +39 0187 511833
massimo.ivani@mlsw.com
www.mlsw.com
------=_NextPart_000_003F_01C27F42.9A24D770-- From dharmendra@strandgenomics.com Tue Oct 29 10:58:48 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 29 Oct 2002 16:28:48 +0530 Subject: [vtkusers] yes i have used Message-ID: <5.1.1.6.0.20021029162804.00b03bf8@mail.strandgenomics.com> yes I have used your suggestion.They were helpful. but it has improved only to some extent. Even now my interaction is slow. I haven't used vtkMaskPoints how to convert into a vtk file. dharmendra. From dharmendra@strandgenomics.com Tue Oct 29 11:34:16 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Tue, 29 Oct 2002 17:04:16 +0530 Subject: [vtkusers] creating a vtk file Message-ID: <5.1.1.6.0.20021029170237.00b094a8@mail.strandgenomics.com> Hello, Iam rendering some 1000 spheres which is very slow. Now i want to convert this into a vtk file and i want to test it in MayaVi.Thats my last hope. thanks dharmendra. From akraemer@biochem.uni-kiel.de Tue Oct 29 13:14:53 2002 From: akraemer@biochem.uni-kiel.de (Dr. A. Kraemer) Date: Tue, 29 Oct 2002 14:14:53 +0100 (MET) Subject: [vtkusers] HowTo reconstruct a 3D scene from Red-Green Stereo images in vtk Message-ID: Hallo, i have some red-green stereo images and want to read them into vtk to operate on the 3D scene (3D reconstruction). Do you have any experience with this topic. --Alex -- Dr. Alex Kraemer http://busselab.uni-kiel.de fax/phone: ++ 49 431 880 2228 a challenge conceals an attainment From goodwin.lawlor@ucd.ie Tue Oct 29 13:23:24 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Tue, 29 Oct 2002 13:23:24 +0000 Subject: [vtkusers] Modifications to vtkOpenGLPolyDataMapper.cxx vtkOpenGLProperty.cxx Message-ID: <004201c27f4e$5dae35f0$0e9701c1@highcross> This is a multi-part message in MIME format. --Boundary_(ID_iCASUmgs3AskcEcEFwX1ww) Content-type: text/plain; charset=Windows-1252 Content-transfer-encoding: 8BIT Hi All, I've made some change to my vtk src that may be of interest: 1. Allows backface/frontface culling in wireframe and points representation. 2. Allows a backface property to be set in wireframe and points representation. 3. Speeds up wireframe rendering by 20% with BackfaceCullingOff and by 110% with BackfaceCullingOn (SB's bench-sphere.tcl on Dell Inspiron 3800- ATI Rage Mobility graphics card). Probably speeds up points rendering too (haven't tested it though). Other representation are unaffected- triangle strips are still the fastest primitive to render. 4. EdgeVisibilty could now be enabled when rendering surfaces in vtk (would take some more hacking). It seems EdgeVisibility is only used in the GeomView exporter. In a nutshell, the changes are that vtkOpenGLPolyDataMapper.cxx always draws triangles and vtkOpenGLProperty.cxx switches the representation using glPolygonMode( ) John Biddiscombe inquired about this back in Oct 1999... here's the thread: http://public.kitware.com/pipermail/vtkusers/1999-October/002446.html. Maybe there should be a feature wish-list or bug-n page on the website? Here are the diffs (compared to nightly 10/10) and the files are attached: Diff for vtkOpenGLPolyDataMapper.cxx: 2487a2488,2509 > switch (rep) > { > case VTK_POINTS: > glFunction[0] = GL_POINTS; > glFunction[1] = GL_POINTS; > glFunction[2] = GL_POINTS; > glFunction[3] = GL_POINTS; > break; > case VTK_WIREFRAME: > glFunction[0] = GL_POINTS; > glFunction[1] = GL_LINE_STRIP; > glFunction[2] = GL_LINE_STRIP; > glFunction[3] = GL_LINE_LOOP; > break; > case VTK_SURFACE: > glFunction[0] = GL_POINTS; > glFunction[1] = GL_LINE_STRIP; > glFunction[2] = GL_TRIANGLE_STRIP; > glFunction[3] = GL_POLYGON; > break; > default: > vtkErrorMacro(<< "Bad representation sent\n"); 2491a2514,2515 > break; > } 2647c2671 < /* --- > 2704c2728 < */ --- > 2804,2805c2828 < draw3(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); < /* --- > draw2(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); 2810c2833 < */ --- > Diff for vtkOpenGLProperty.cxx: 65,70d64 < if (this->GetRepresentation() == VTK_WIREFRAME) < glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); < else if (this->GetRepresentation() == VTK_SURFACE) < glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); < else < glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); 76,81d69 < if (this->GetRepresentation() == VTK_WIREFRAME) < glPolygonMode(GL_FRONT, GL_LINE); < else if (this->GetRepresentation() == VTK_SURFACE) < glPolygonMode(GL_FRONT, GL_FILL); < else < glPolygonMode(GL_FRONT, GL_POINT); 87,92d74 < if (this->GetRepresentation() == VTK_WIREFRAME) < glPolygonMode(GL_BACK, GL_LINE); < else if (this->GetRepresentation() == VTK_SURFACE) < glPolygonMode(GL_BACK, GL_FILL); < else < glPolygonMode(GL_BACK, GL_POINT); --Boundary_(ID_iCASUmgs3AskcEcEFwX1ww) Content-type: application/x-zip-compressed; name=vtkOpenGLxxxx.zip Content-transfer-encoding: BASE64 Content-disposition: attachment; filename=vtkOpenGLxxxx.zip UEsDBBQAAAAIAPOuWy2l0bE5egYAAOwUAAAVAAAAdnRrT3BlbkdMUHJvcGVydHku Y3h47VdZb9s4EH5OgPyHabbI2olr5+hDazcFFB+JUF+Q5KbFojBoi7K5kUVDou24 Rf/7zpDylThtsj2eKgOWyDn4zXBmOCwcnv+sZ293bxegHctBzEZFAHgvkgkLxWem hIzAkzK8EYp4GtKfhJxY4LlTdgNBg6m6aY15dFlHDWMeq3m+f3ubm8JzkqizaDBh A5IpHx3RTIUpowF1mO/T4+PTwvGrwukpnLwqnr0unp0Y4fc8ThBBUS/Hp8IMTvLI +NyALsvxPBaDoYJMPwsnr1+fvSBt8I5H0GCxElEOrkUYgtsfxpL7PM7BBY3rMuZR glykxcIJrSWBmCc8nnI/T/Mu56sV8upWgYxhqNS4WCjMZrM8emXGYp7vy1FhxTdU IwiQ0eeKiTDJG6T4eEORQCIDLQT47YtExaI3UdyHa9u7anU8sJof4dpyHKvpfSzB TKihnCjg0xQqPmqIwqNxKFAKNcUsUnOQATSqTvkKxawLu257HwlrzfaaVdeFWssB C9qW49nlTt1yFqraHafdcqt5YyopZj055dBfujWSSvS5tmckCXWEnyMdGNqw78XW o5/Dwt7uXyLqhxOfwxtcYZgfvl2b2l+GmcMj3Ece54f7W+nLMNyg/0yVAXIH8N57 17Ub7Xq1UW163UbVtb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y2TRg2adx0AAO4vAQAbAAAA AAAAAAEAIAAAAK0GAAB2dGtPcGVuR0xQb2x5RGF0YU1hcHBlci5jeHhQSwUGAAAA AAIAAgCMAAAAXSQAAAAA --Boundary_(ID_iCASUmgs3AskcEcEFwX1ww)-- From mesaac@earthlink.net Mon Oct 28 18:25:55 2002 From: mesaac@earthlink.net (Mesa Analytics & Computing, LLC) Date: Mon, 28 Oct 2002 11:25:55 -0700 Subject: [vtkusers] Compiling error under Redhat 6.2 Message-ID: <3DBD8133.44D9E0C6@earthlink.net> Hi, When compiling VTK under RedHat 6.2 using /usr/bin/g++, I get the following error In function `void vtkGetResliceInterpFunc(class vtkImageReslice *, int (**)(void *&, const void *, const int *, const int *, int, const float *, int, const void *))': /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1708: instantiated from here /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: Internal compiler error. /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: See for details. gmake[3]: *** [vtkImageReslice.o] Error 1 gmake[2]: *** [default_target] Error 2 gmake[1]: *** [default_target_Imaging] Error 2 gmake: *** [default_target] Error 2 Wrapping, Utilities, Common, and Filtering directories all compile without incident. Anyone else have this problem? Is this a GL problem? There was an earlier thread about 6.2 and GL libraries that might apply? The error was in the Imaging directory, but with a different file. I have not tried that fix yet. thanks, John -- Mesa Analytics & Computing 505-983-3449 Phone 509-472-8131 Fax mesaac@earthlink.net From charlie.chang@nchc.gov.tw Tue Oct 29 09:10:17 2002 From: charlie.chang@nchc.gov.tw (Charlie H. Chang) Date: Tue, 29 Oct 2002 17:10:17 +0800 Subject: [vtkusers] problem: VTK cvs on Mandrake Linux 9.0 w/ gcc 3.2 Message-ID: <3DBE5079.4000201@nchc.gov.tw> Hello all, Is there any known-problem about compiling the VTK examples on Mandrake Linux 9.0 with gcc 3.2? I have used CMake and VTK cvs source on my mandrake Linux 9.0 Building the VTK is ok, but when I try to compile some of the examples I have the following error: -------------------------------------------------------------------------------- host% make /opt/bin/cmake -S/opt/build/VTK/Examples/DataManipulation/Cxx -O/opt/build/VTK/Examples/DataManipulation/Cxx -H/opt/build/VTK/Examples/DataManipulation/Cxx -B/opt/build/VTK/Examples/DataManipulation/Cxx g++ -I/opt/build/VTK/Examples/DataManipulation/Cxx -I/opt/include/vtk -I/usr/X11R6/include -c /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx -o Arrays.o In file included from /usr/include/c++/3.2/backward/strstream:51, from /opt/include/vtk/vtkSystemIncludes.h:46, from /opt/include/vtk/vtkIndent.h:27, from /opt/include/vtk/vtkObjectBase.h:46, from /opt/include/vtk/vtkObject.h:44, from /opt/include/vtk/vtkDataArray.h:48, from /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:23: /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx: In function `int main(int, char**)': /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:87: no method `vtkPolyData::New' /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:89: invalid use of undefined type `struct vtkPolyData' /opt/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `struct vtkPolyData' /opt/build/VTK/Examples/DataManipulation/Cxx/Arrays.cxx:90: invalid use of undefined type `struct vtkPolyData' /opt/include/vtk/vtkPolyDataMapper.h:34: forward declaration of `struct vtkPolyData' .. ... make[1]: *** [Arrays.o] Error 1 make: *** [default_target] Error 2 ---------------------------------------------------------------------- However, some of the examples are ok though. (Modelling and Tutorial/step1) Any idea? Thank you in advance! -- Charlie H. Chang, Software Development Group National Center for High-performance Computing T: 1-886-3-5776085x362 E: charlie.chang@nchc.gov.tw W: www.nchc.gov.tw From jiang@TI.FhG.DE Tue Oct 29 13:45:02 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Tue, 29 Oct 2002 14:45:02 +0100 Subject: [vtkusers] How to fly-in and fly-out on volume rendering Message-ID: Dear VTK-Users, Now I use vtkVolumeRayCastMapper to render a set of images as 3d image. So the object can be rotated, zoomed and translated. Then I want to perform fly-in and fly-out the object, just like look through the 3d image in different directions. How can I realize it? Which class should I use? It seems that vtkImageReslice can not work with vtkVolumeRayCastMapper. At least I don't know how to handel them. Could any body give me some help? Thank you very much! Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From prabhu@aero.iitm.ernet.in Tue Oct 29 14:06:37 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 29 Oct 2002 19:36:37 +0530 Subject: [vtkusers] slow interaction when i render 1000 spheres In-Reply-To: <5.1.1.6.0.20021029151119.00adfa48@mail.strandgenomics.com> References: <5.1.1.6.0.20021029151119.00adfa48@mail.strandgenomics.com> Message-ID: <15806.38381.102476.94940@monster.linux.in> --rQgb7E1nNN Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit >>>>> "D" == dharmendra writes: D> Hello All, I have posted this time and again.Though i got D> replies i could not impove the speed. [snip] D> i create a assembly and add the actors(1000 actors one for each D> sphere)to it. I add the assemble to renderer. Using an assembly to render many actors is possibly the slowest way of doing this. I know because I just wrote a simple test script. Instead of using an assembly either add the actors directly or better still use the vtkAppendPolyData class to do the job. I've attached a simple test program to demonstrate how you can test. prabhu --rQgb7E1nNN Content-Type: application/octet-stream Content-Disposition: attachment; filename="sp.py" Content-Transfer-Encoding: base64 aW1wb3J0IHN5cwppbXBvcnQgdnRrCmZyb20gbWF5YXZpIGltcG9ydCBpdnRrCgp2dGtfbSA9 IHZ0ay52dGtNYXRoKCkKCmRlZiByYW5kb21fcHRzKG4sIHI9MS4wKToKICAgIGdsb2JhbCB2 dGtfbQogICAgcmV0ID0gW10KICAgIGZvciBpIGluIHJhbmdlKG4pOgogICAgICAgIHJldC5h cHBlbmQocip2dGtfbS5SYW5kb20oKSkKICAgIHJldHVybiByZXQKCmRlZiBjcmVhdGVfc3Bo ZXJlcyhuLCByYWQ9MC4xLCByZWdpb249MS4wKToKICAgIHNwID0gW10KICAgIGZvciBpIGlu IHJhbmdlKG4pOgogICAgICAgIHZhbCA9IHJhbmRvbV9wdHMoMywgcmVnaW9uKQogICAgICAg IHMgPSB2dGsudnRrU3BoZXJlU291cmNlKCkKICAgICAgICBzLlNldENlbnRlcih2YWwpCiAg ICAgICAgcy5TZXRSYWRpdXMocmFkKQogICAgICAgIG0gPSB2dGsudnRrUG9seURhdGFNYXBw ZXIoKQogICAgICAgIG0uU2V0SW5wdXQocy5HZXRPdXRwdXQoKSkKICAgICAgICBhID0gdnRr LnZ0a0FjdG9yKCkKICAgICAgICBhLlNldE1hcHBlcihtKQogICAgICAgIHNwLmFwcGVuZChh KSAgICAgICAgCiAgICByZXR1cm4gc3AKCgpkZWYgY3JlYXRlX3NwaGVyZV9hc3N5KG4sIHJh ZD0wLjEsIHJlZ2lvbj0xLjApOgogICAgc3AgPSBjcmVhdGVfc3BoZXJlcyhuLCByYWQsIHJl Z2lvbikKICAgIGFzcyA9IHZ0ay52dGtBc3NlbWJseSgpCiAgICBmb3IgaSBpbiBzcDoKICAg ICAgICBhc3MuQWRkUGFydChpKQogICAgcmV0dXJuIGFzcwoKCmRlZiBjcmVhdGVfc3BoZXJl c19hcHBlbmQobiwgcmFkPTAuMSwgcmVnaW9uPTEuMCk6CiAgICBhcHAgPSB2dGsudnRrQXBw ZW5kUG9seURhdGEoKQogICAgZm9yIGkgaW4gcmFuZ2Uobik6CiAgICAgICAgdmFsID0gcmFu ZG9tX3B0cygzLCByZWdpb24pCiAgICAgICAgcyA9IHZ0ay52dGtTcGhlcmVTb3VyY2UoKQog ICAgICAgIHMuU2V0Q2VudGVyKHZhbCkKICAgICAgICBzLlNldFJhZGl1cyhyYWQpCiAgICAg ICAgYXBwLkFkZElucHV0KHMuR2V0T3V0cHV0KCkpCiAgICAgICAgCiAgICBtID0gdnRrLnZ0 a1BvbHlEYXRhTWFwcGVyKCkKICAgIG0uU2V0SW5wdXQoYXBwLkdldE91dHB1dCgpKQogICAg YSA9IHZ0ay52dGtBY3RvcigpCiAgICBhLlNldE1hcHBlcihtKQogICAgcmV0dXJuIGEKCgpk ZWYgbWFpbihvcHRpb249MSk6CiAgICB2ID0gaXZ0ay52aWV3ZXIoKQogICAgaWYgb3B0aW9u ID09IDE6CiAgICAgICAgYSA9IGNyZWF0ZV9zcGhlcmVzKDIwMDAsIDAuMSwgMTApCiAgICAg ICAgdi5BZGRBY3RvcnMoYSkKICAgIGVsaWYgb3B0aW9uID09IDI6CiAgICAgICAgYSA9IGNy ZWF0ZV9zcGhlcmVfYXNzeSgyMDAwLCAwLjEsIDEwKQogICAgICAgIHYuQWRkQWN0b3JzKGEp CiAgICBlbGlmIG9wdGlvbiA9PSAzOgogICAgICAgIGEgPSBjcmVhdGVfc3BoZXJlc19hcHBl bmQoMjAwMCwgMC4xLCAxMCkKICAgICAgICB2LkFkZEFjdG9ycyhhKQogICAgICAgIAogICAg di5yb290Lm1haW5sb29wKCkKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBpZiBs ZW4oc3lzLmFyZ3YpID4gMToKICAgICAgICBtYWluKGludChzeXMuYXJndlsxXSkpCiAgICBl bHNlOgogICAgICAgIG1haW4oKQo= --rQgb7E1nNN-- From affable@hd2.dot.net.in Tue Oct 29 14:00:02 2002 From: affable@hd2.dot.net.in (cspl) Date: Tue, 29 Oct 2002 19:30:02 +0530 Subject: [vtkusers] Image Data to Polydata Message-ID: <000401c27f54$d1071d40$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0089_01C27F81.93B7F310 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear friends, i want to display the grayscale images(medical images) and fit to image=20 in given size.But the following code is giving color image as output but = i want grayscale image as output.And how to convert image data to=20 polydata.Please give me suggestion. For that output i wrote the folowing code: vtkImageReader *Reader =3D vtkImageReader::New(); Reader->SetDataByteOrderToLittleEndian(); Reader->SetDataExtent(0,511,0,511,1,1); Reader->SetFileName(filepath);//give here filepath Reader->SetDataSpacing(1.0, 1.0, 1.0); Reader->SetDataMask(0x7fff); Reader->SetDataScalarTypeToUnsignedShort();=20 //////////////// //vtkImageLuminance *luminance=3DvtkImageLuminance::New(); //luminance->SetInput(Reader->GetOutput()); vtkImageDataGeometryFilter = *geometry=3DvtkImageDataGeometryFilter::New(); geometry->SetInput(Reader->GetOutput()); vtkWarpScalar *warp=3DvtkWarpScalar::New(); warp->SetInput(geometry->GetOutput()); warp->SetScaleFactor(-0.1); vtkMergeFilter *merge=3DvtkMergeFilter::New(); merge->SetGeometry(warp->GetOutput()); merge->SetScalars(Reader->GetOutput()); vtkDataSetMapper *mapper=3DvtkDataSetMapper::New(); mapper->SetInput(merge->GetOutput()); mapper->SetScalarRange(0, 255); mapper->ImmediateModeRenderingOff(); vtkActor *actor=3DvtkActor::New(); actor->SetMapper(mapper); vtkRenderer *ren1=3DvtkRenderer::New(); vtkRenderWindow *renWin=3DvtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren=3DvtkRenderWindowInteractor::New(); // iren->SetRenderWindow(renWin); ren1->AddActor(actor); renWin->SetSize(250,250); //threse size are given dynamically renWin->SetParentId(m_wnd);//control Id. =20 renWin->Render(); Thanking you, Regards, satyanarayana ------=_NextPart_000_0089_01C27F81.93B7F310 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear friends,
i want to display the = grayscale=20 images(medical images) and fit to image
 
in given size.But the following code is = giving=20 color image as output but i want grayscale image as output.And how to = convert=20 image data to
 
polydata.Please give me = suggestion.
For that=20 output i wrote the folowing code:
 
 vtkImageReader *Reader =3D=20 vtkImageReader::New();
 Reader->SetDataByteOrderToLittleEndian= ();
 Reader->SetDataExtent(0,511,0,511,1,1);
 Reader-&= gt;SetFileName(filepath);//give=20 here filepath
 Reader->SetDataSpacing(1.0, 1.0,=20 1.0);
 Reader->SetDataMask(0x7fff);
 Reader->SetDat= aScalarTypeToUnsignedShort();=20
////////////////
    //vtkImageLuminance=20 *luminance=3DvtkImageLuminance::New();
   =20 //luminance->SetInput(Reader->GetOutput());
 
vtkImageDataGeometryFilter=20 *geometry=3DvtkImageDataGeometryFilter::New();
   =20 geometry->SetInput(Reader->GetOutput());
 
vtkWarpScalar=20 *warp=3DvtkWarpScalar::New();
   =20 warp->SetInput(geometry->GetOutput());
  =20 warp->SetScaleFactor(-0.1);
 
vtkMergeFilter=20 *merge=3DvtkMergeFilter::New();
   =20 merge->SetGeometry(warp->GetOutput());
   =20 merge->SetScalars(Reader->GetOutput());
 
vtkDataSetMapper=20 *mapper=3DvtkDataSetMapper::New();
   =20 mapper->SetInput(merge->GetOutput());
   =20 mapper->SetScalarRange(0, 255);
   =20 mapper->ImmediateModeRenderingOff();
 
vtkActor=20 *actor=3DvtkActor::New();
 actor->SetMapper(mapper);
 
vtkRenderer=20 *ren1=3DvtkRenderer::New();
vtkRenderWindow=20 *renWin=3DvtkRenderWindow::New();
   =20 renWin->AddRenderer(ren1);
 vtkRenderWindowInteractor=20 *iren=3DvtkRenderWindowInteractor::New();
//   =20 iren->SetRenderWindow(renWin);
 
 ren1->AddActor(actor);
 
 renWin->SetSize(250,250); = //threse size=20 are given dynamically
 renWin->SetParentId(m_wnd);//control=20 Id.
 
 renWin->Render();
 

Thanking=20 you,
Regards,
satyanarayana
------=_NextPart_000_0089_01C27F81.93B7F310-- From John Biddiscombe" Message-ID: <001601c27f57$45584410$0100a8c0@tigger> Goodwin, > John Biddiscombe inquired about this back in Oct 1999... Wow! someone was listening. Nice work. I'll have a quick play with your modified files and check them in if I don't see any problems. JB > I've made some change to my vtk src that may be of interest: > > 1. Allows backface/frontface culling in wireframe and points representation. > 2. Allows a backface property to be set in wireframe and points > representation. > 3. Speeds up wireframe rendering by 20% with BackfaceCullingOff and by 110% > with BackfaceCullingOn (SB's bench-sphere.tcl on Dell Inspiron 3800- ATI > Rage Mobility graphics card). Probably speeds up points rendering too > (haven't tested it though). Other representation are unaffected- triangle > strips are still the fastest primitive to render. > 4. EdgeVisibilty could now be enabled when rendering surfaces in vtk (would > take some more hacking). It seems EdgeVisibility is only used in the > GeomView exporter. > > In a nutshell, the changes are that vtkOpenGLPolyDataMapper.cxx always draws > triangles and vtkOpenGLProperty.cxx switches the representation using > glPolygonMode( ) > > John Biddiscombe inquired about this back in Oct 1999... here's the thread: > http://public.kitware.com/pipermail/vtkusers/1999-October/002446.html. Maybe > there should be a feature wish-list or bug-n page on the website? > > Here are the diffs (compared to nightly 10/10) and the files are attached: > > Diff for vtkOpenGLPolyDataMapper.cxx: > > 2487a2488,2509 > > switch (rep) > > { > > case VTK_POINTS: > > glFunction[0] = GL_POINTS; > > glFunction[1] = GL_POINTS; > > glFunction[2] = GL_POINTS; > > glFunction[3] = GL_POINTS; > > break; > > case VTK_WIREFRAME: > > glFunction[0] = GL_POINTS; > > glFunction[1] = GL_LINE_STRIP; > > glFunction[2] = GL_LINE_STRIP; > > glFunction[3] = GL_LINE_LOOP; > > break; > > case VTK_SURFACE: > > glFunction[0] = GL_POINTS; > > glFunction[1] = GL_LINE_STRIP; > > glFunction[2] = GL_TRIANGLE_STRIP; > > glFunction[3] = GL_POLYGON; > > break; > > default: > > vtkErrorMacro(<< "Bad representation sent\n"); > 2491a2514,2515 > > break; > > } > 2647c2671 > < /* > --- > > > 2704c2728 > < */ > --- > > > 2804,2805c2828 > < draw3(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); > < /* > --- > > draw2(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); > 2810c2833 > < */ > --- > > > > Diff for vtkOpenGLProperty.cxx: > > 65,70d64 > < if (this->GetRepresentation() == VTK_WIREFRAME) > < glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); > < else if (this->GetRepresentation() == VTK_SURFACE) > < glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); > < else > < glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); > 76,81d69 > < if (this->GetRepresentation() == VTK_WIREFRAME) > < glPolygonMode(GL_FRONT, GL_LINE); > < else if (this->GetRepresentation() == VTK_SURFACE) > < glPolygonMode(GL_FRONT, GL_FILL); > < else > < glPolygonMode(GL_FRONT, GL_POINT); > 87,92d74 > < if (this->GetRepresentation() == VTK_WIREFRAME) > < glPolygonMode(GL_BACK, GL_LINE); > < else if (this->GetRepresentation() == VTK_SURFACE) > < glPolygonMode(GL_BACK, GL_FILL); > < else > < glPolygonMode(GL_BACK, GL_POINT); > > > > > From kenlists@nycap.rr.com Tue Oct 29 15:13:46 2002 From: kenlists@nycap.rr.com (KenLists) Date: Tue, 29 Oct 2002 10:13:46 -0500 Subject: [vtkusers] Modifications to vtkOpenGLPolyDataMapper.cxx vtkOpenGLProperty.cxx In-Reply-To: <001601c27f57$45584410$0100a8c0@tigger> Message-ID: <002601c27f5d$c8974c80$2801a8c0@kitwarein.com> Please make sure the tests all pass and reformat the code to adhere to VTK style=20 Thanks Ken > -----Original Message----- > From: vtkusers-admin@public.kitware.com [mailto:vtkusers- > admin@public.kitware.com] On Behalf Of John Biddiscombe > Sent: Tuesday, October 29, 2002 9:27 AM > To: Goodwin Lawlor; VTK List > Subject: Re: [vtkusers] Modifications to vtkOpenGLPolyDataMapper.cxx > vtkOpenGLProperty.cxx >=20 > Goodwin, >=20 > > John Biddiscombe inquired about this back in Oct 1999... >=20 > Wow! someone was listening. Nice work. >=20 > I'll have a quick play with your modified files and check them in if I > don't > see any problems. >=20 > JB >=20 >=20 > > I've made some change to my vtk src that may be of interest: > > > > 1. Allows backface/frontface culling in wireframe and points > representation. > > 2. Allows a backface property to be set in wireframe and points > > representation. > > 3. Speeds up wireframe rendering by 20% with BackfaceCullingOff and by > 110% > > with BackfaceCullingOn (SB's bench-sphere.tcl on Dell Inspiron 3800- ATI > > Rage Mobility graphics card). Probably speeds up points rendering too > > (haven't tested it though). Other representation are unaffected- > triangle > > strips are still the fastest primitive to render. > > 4. EdgeVisibilty could now be enabled when rendering surfaces in vtk > (would > > take some more hacking). It seems EdgeVisibility is only used in the > > GeomView exporter. > > > > In a nutshell, the changes are that vtkOpenGLPolyDataMapper.cxx always > draws > > triangles and vtkOpenGLProperty.cxx switches the representation using > > glPolygonMode( ) > > > > John Biddiscombe inquired about this back in Oct 1999... here's the > thread: > > http://public.kitware.com/pipermail/vtkusers/1999-October/002446.html. > Maybe > > there should be a feature wish-list or bug-=EDn page on the website? > > > > Here are the diffs (compared to nightly 10/10) and the files are > attached: > > > > Diff for vtkOpenGLPolyDataMapper.cxx: > > > > 2487a2488,2509 > > > switch (rep) > > > { > > > case VTK_POINTS: > > > glFunction[0] =3D GL_POINTS; > > > glFunction[1] =3D GL_POINTS; > > > glFunction[2] =3D GL_POINTS; > > > glFunction[3] =3D GL_POINTS; > > > break; > > > case VTK_WIREFRAME: > > > glFunction[0] =3D GL_POINTS; > > > glFunction[1] =3D GL_LINE_STRIP; > > > glFunction[2] =3D GL_LINE_STRIP; > > > glFunction[3] =3D GL_LINE_LOOP; > > > break; > > > case VTK_SURFACE: > > > glFunction[0] =3D GL_POINTS; > > > glFunction[1] =3D GL_LINE_STRIP; > > > glFunction[2] =3D GL_TRIANGLE_STRIP; > > > glFunction[3] =3D GL_POLYGON; > > > break; > > > default: > > > vtkErrorMacro(<< "Bad representation sent\n"); > > 2491a2514,2515 > > > break; > > > } > > 2647c2671 > > < /* > > --- > > > > > 2704c2728 > > < */ > > --- > > > > > 2804,2805c2828 > > < draw3(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); > > < /* > > --- > > > draw2(aPrim, aGlFunction, cellNum, p, n, c, t, ren, noAbort); > > 2810c2833 > > < */ > > --- > > > > > > > Diff for vtkOpenGLProperty.cxx: > > > > 65,70d64 > > < if (this->GetRepresentation() =3D=3D VTK_WIREFRAME) > > < glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); > > < else if (this->GetRepresentation() =3D=3D VTK_SURFACE) > > < glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); > > < else > > < glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); > > 76,81d69 > > < if (this->GetRepresentation() =3D=3D VTK_WIREFRAME) > > < glPolygonMode(GL_FRONT, GL_LINE); > > < else if (this->GetRepresentation() =3D=3D VTK_SURFACE) > > < glPolygonMode(GL_FRONT, GL_FILL); > > < else > > < glPolygonMode(GL_FRONT, GL_POINT); > > 87,92d74 > > < if (this->GetRepresentation() =3D=3D VTK_WIREFRAME) > > < glPolygonMode(GL_BACK, GL_LINE); > > < else if (this->GetRepresentation() =3D=3D VTK_SURFACE) > > < glPolygonMode(GL_BACK, GL_FILL); > > < else > > < glPolygonMode(GL_BACK, GL_POINT); > > > > > > > > > > >=20 > _______________________________________________ > 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.chatelain@epfl.ch Tue Oct 29 15:25:22 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Tue, 29 Oct 2002 16:25:22 +0100 Subject: [vtkusers] network transfer of vtkImageData Message-ID: <3DBEA862.3000203@epfl.ch> Hello, I have a network problem: i need to transfer a vtkimageData object via Network. I am working with Java andvtk 4. I thought about using RMI but i don't know how to serialize the object. Does somone have an idea or suggestion on how to transfer this objet via network ? Thanks. Simon Chatelain From jiang@TI.FhG.DE Tue Oct 29 15:29:21 2002 From: jiang@TI.FhG.DE (Chunyan Jiang) Date: Tue, 29 Oct 2002 16:29:21 +0100 Subject: [vtkusers] Translate from tcl to c++ Message-ID: Hi, I want to test the program imageWarp.tcl. However, I want to use MFC+vtk. Who can help me to translate the following sentences to c++ mode? [ren1 GetActiveCamera] Azimuth 20 [ren1 GetActiveCamera] Elevation 30 iren AddObserver UserEvent {wm deiconify .vtkInteract} set cam1 [ren1 GetActiveCamera] $cam1 Zoom 1.4 Thank you very much! Chunyan *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From andy.cedilnik@kitware.com Tue Oct 29 16:01:35 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 29 Oct 2002 11:01:35 -0500 Subject: [vtkusers] Translate from tcl to c++ In-Reply-To: References: Message-ID: <1035907295.793.6675.camel@xanth.kitwarein.com> Hi Chunyan, The first couple of lines are easy: ren1->GetActiveCamera()->Azimuth(20); vtkCamera* cam = ren1->GetActiveCamera(); cam->Zoom(1.4); The observer one is unnecessary anyway. Andy On Tue, 2002-10-29 at 10:29, Chunyan Jiang wrote: > I want to test the program imageWarp.tcl. However, I want to use MFC+vtk. > Who can help me to translate the following sentences to c++ mode? > > [ren1 GetActiveCamera] Azimuth 20 > [ren1 GetActiveCamera] Elevation 30 > > iren AddObserver UserEvent {wm deiconify .vtkInteract} > set cam1 [ren1 GetActiveCamera] > $cam1 Zoom 1.4 From mikeli80@yahoo.com Tue Oct 29 16:03:49 2002 From: mikeli80@yahoo.com (Mike Li) Date: Tue, 29 Oct 2002 08:03:49 -0800 (PST) Subject: [vtkusers] How can I get the IDs of points connected to a single point (first-order neighbors) of polydata. Message-ID: <20021029160349.93669.qmail@web12902.mail.yahoo.com> --0-106396225-1035907429=:92548 Content-Type: text/plain; charset=us-ascii Hi all, How can I get the IDs of points connected to a single point (first-order neighbors) of polydata. Thanks a lot, Mike --------------------------------- Do you Yahoo!? HotJobs - Search new jobs daily now --0-106396225-1035907429=:92548 Content-Type: text/html; charset=us-ascii

Hi all,

How can I get the IDs of points connected to a single point (first-order neighbors) of polydata.

Thanks a lot,

Mike



Do you Yahoo!?
HotJobs - Search new jobs daily now --0-106396225-1035907429=:92548-- From tk.sinha@vanderbilt.edu Tue Oct 29 16:23:32 2002 From: tk.sinha@vanderbilt.edu (Tuhin Sinha) Date: Tue, 29 Oct 2002 10:23:32 -0600 Subject: [vtkusers] Compilation problems... Message-ID: <200210291023.32356.tk.sinha@vanderbilt.edu> Hello everyone, I have two specific compilation errors that I was wondering about. (1) Has anyone gotten the nightly tree to compile with the GNU 3.2 com= piler=20 collection with processor specific optimizations enabled? I get as far a= s=20 "vtkImageEuclideanDistance" and then I get compiler errors. The error as= ks=20 me to submit a bug report to the GCC developers, but I wanted to make sur= e I=20 was doing things right. My C(XX) flags in CMake were: "-O3=20 -march=3Dpentium{3|4} -fomit-frame-pointer". I tried this configuration = on a=20 PIII 900 and a PIV 2.4, both choke at vtkImageEuclideanDistance (running=20 Debian Testing, and Gentoo 1.4_rc1). Compiling without the=20 "-march=3Dpentium{3|4}" works just fine on both platforms. =20 (2) I can't get last night's source tree to compile. Linking "vtk" sta= lls=20 with the following errors: /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to `vtable = for=20 vtkXTextMapper' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXRenderWindowInteractor::New()' /home/sinhatk/VTK/bin/libvtkRenderingTCL.so: undefined reference to=20 `vtkXTextMapperCppCommand(vtkXTextMapper*, Tcl_Interp*, int, char**)' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXTextMapper::CollectRevisions(std::basic_ostream >&)' /home/sinhatk/VTK/bin/libvtkRenderingTCL.so: undefined reference to=20 `XtSetKeyboardFocus' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXTextMapper::GetSystemFontSize(int)' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXTextMapper::GetSize(vtkViewport*, int*)' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXTextMapper::vtkXTextMapper[not-in-charge]()' /home/sinhatk/VTK/bin/libvtkRendering.so: undefined reference to=20 `vtkXTextMapper::PrintSelf(std::basic_ostream=20 >&, vtkIndent)' Compiled with C(XX) flags: "-O3 -march=3Di686 -fomit-frame-pointer" usi= ng=20 gcc3.0. Is there something I'm doing wrong? Thanks in advance for your=20 help. Tuhin Sinha -- Graduate Research Assistant Vanderbilt University, Dept of BME 615-343-8261 From jmbeotegui@yahoo.es Tue Oct 29 14:07:28 2002 From: jmbeotegui@yahoo.es (=?iso-8859-1?q?jose=20beotegui?=) Date: Tue, 29 Oct 2002 15:07:28 +0100 (CET) Subject: [vtkusers] How can I remove a specified point? Message-ID: <20021029140728.8407.qmail@web21502.mail.yahoo.com> --0-2078167685-1035900448=:7755 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello users, I'm using VTK 4.0 and Tcl. I've created a collection of points (vtkPoints). How can I remove a specified point? Also, I've introduced the points into a PolyData (and I've generated data with vtkIdFilter). I've tried to use the method 'DeletePoint' but It doesn't work. I don't know how to use it. Have anybody an example? Thanks in advance. --------------------------------- Yahoo! Messenger Nueva versin: Webcam, voz, y mucho ms Gratis! --0-2078167685-1035900448=:7755 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

Hello users,
I'm using VTK 4.0 and Tcl.
I've created a collection of points (vtkPoints).
How can I remove a specified point?
Also, I've introduced the points into a PolyData (and I've generated data with vtkIdFilter).
I've tried to use the method 'DeletePoint' but It doesn't work. I don't know how to use it.

Have anybody an example?

Thanks in advance.


Yahoo! Messenger
Nueva versin: Webcam, voz, y mucho ms Gratis!
--0-2078167685-1035900448=:7755-- From vtk_replies@yahoo.com Tue Oct 29 19:48:59 2002 From: vtk_replies@yahoo.com (vtk replies) Date: Tue, 29 Oct 2002 11:48:59 -0800 (PST) Subject: [vtkusers] setting break points in vtk source files in debugger Message-ID: <20021029194859.62500.qmail@web21503.mail.yahoo.com> Hello, I have tried to set break points in the vtkContourFilter.cxx file in vtk using gdb. But when I try to do it, the debugger compalins that there is no vtkConoturFilter.cxx source file. My program is compiled with the -g -O0 flag . and I can set break points in my program . but not in vtk Source files. (1) what should I do to set break points in the Source files of vtk, like vtkContourFilter.cxx ? If anyone has done this before, will they please take the time to enlighten me ? Any help will be deeply appreciated. Thank you in advance. Regards, Joseph. __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ From David.Pont@ForestResearch.co.nz Tue Oct 29 20:36:15 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Wed, 30 Oct 2002 09:36:15 +1300 Subject: [vtkusers] How can I get the IDs of points connected to a single point (first-order neighbors) of polydata. Message-ID: > How can I get the IDs of points connected to a single point (first-order neighbors) of polydata. Hi Mike, Just took a quick look at the documentation for vtkPolyData, I am using vtk 3.1 but probably the following is valid in later versions: Use BuildLinks to allow topological queries. Use GetPointCells with the target point to get all cells that point belongs to. For each cell use GetCellPoints to get the list of points used by the cell. For each point, (if it is not the target point) use IsEdge with the target point and the current candidate point, if true add this point to a list. That list should be the set of first-order neighbours. Something like that anyway... regards, Dave Pont From dean.inglis@on.aibn.com Tue Oct 29 20:45:31 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Tue, 29 Oct 2002 15:45:31 -0500 Subject: [vtkusers] CVS co of VTK - speed? Message-ID: Hi, has anyone else noticed that recently the CVS co (and update) speed of VTK (and ITK) has slowed significantly? A 56k dial-up takes over one hour whereas this was on the order of several minutes before. Any insight would be helpful ... (using WinCvs 1.2, Win 2k, cygwin) thanks, Dean ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dean Inglis, Ph.D. - Centre for Appendicular - - Magnetic Resonance Imaging Studies - 25 Charlton Avenue East, Unit 610 Hamilton, ONT, L8N 1Y2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From John Biddiscombe" Message-ID: <000701c27fa0$1ed0f1e0$0100a8c0@tigger> Ken, Goodwin, etc >Please make sure the tests all pass I'm getting 12 new fails due to the changes. I submitted an experimental dashboard, but it doesn't seem to be showing up, so I'll have another go tomorrow. The wireframe changes cause some pixel differences in several images, but more seriously there seems to be a disruption of some facets in a handful of others. Some facets appear dark or black, can't quite tell what's going on. Will stave off a commit for now. JB From PS7278514B@ntu.edu.sg Wed Oct 30 01:32:52 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Wed, 30 Oct 2002 09:32:52 +0800 Subject: [vtkusers] Surface Rendering Problem. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB6D@mail02.student.main.ntu.edu.sg> Dear VTK-User: I met the problem when I read the pre-processed *.bmp skull slices = (128X128X8 Bits from 512X512X8 Bits). It had been two skulls when I use surface rendering technical = Marchingcubes algorithm to generate the voxel. I attached my source code. Could anyone help me checked what is the problem. I can send the source slices & result picture if any experts interest. Thanks very much. #include "vtkImageReader.h" #include "vtkMarchingContourFilter.h" #include "vtkPolyDataMapper.h" #include "vtkOutlineFilter.h" #include "vtkActor.h" #include "vtkProperty.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" int main(int argc, char *argv[]) {=20 vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("g:/00head/head128/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,127,0,127,1,33);// reader->SetDataSpacing(2,2,2); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=3DvtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,255);//Scalar between 0~255 in 8 Bits. vtkPolyDataMapper *isoMapper=3DvtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); vtkActor *isoActor=3DvtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(1,1,1); vtkRenderer *ren1 =3D vtkRenderer::New(); ren1->AddActor(isoActor); ren1->SetBackground(0.2,0.3,0.5); =09 vtkRenderWindow *renWin =3D vtkRenderWindow::New(); renWin->AddRenderer(ren1); renWin->SetSize(600,600); vtkRenderWindowInteractor *iren =3D vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); =09 =09 renWin->Render(); iren->Start(); =20 reader->Delete(); isoMapper->Delete(); isoActor->Delete(); ren1->Delete(); renWin->Delete(); iren->Delete(); return 0; } ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From dharmendra@strandgenomics.com Wed Oct 30 05:29:47 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 30 Oct 2002 10:59:47 +0530 Subject: [vtkusers] Help (rendering large no. of spheres) Message-ID: <5.1.1.6.0.20021030104730.00a7df50@mail.strandgenomics.com> Hello All, Well iam sending a peice of code that I have wriiten for rendering. I think this is where it is getting slowed down. Can someone go thru the code and suggest me where Iam wrong (if at all). Directly in C++ is slow .I have created a dll and used it in python it is dead slow. coord_dump has basically sphere positions . sphereSource = vtkSphereSource::New(); sphereSource->SetThetaResolution(9); sphereSource->SetPhiResolution(9); sphereSource->SetRadius(2); ifstream file("F:\\docking\\dock\\dock\\reader\\coord_dump"); cout << file.is_open() <>str>>radius >> coord[0] >> coord[1] >> coord[2] ; int i = 0; while( !file.eof() ){ file >>str>>radius >> coord[0] >> coord[1] >> coord[2] ; atomPoints->InsertNextPoint(coord); i++; } // Create a data set for the atoms. atomsPolyData = vtkPolyData::New(); atomsPolyData->SetPoints(atomPoints); atomPoints->Delete(); // Create atoms, using a vtkGlyph3D object vtkGlyph3D *atoms = vtkGlyph3D::New(); atoms->SetInput(atomsPolyData); atoms->SetSource(sphereSource->GetOutput()); atoms->SetScaleFactor(0.7); atoms->SetScaleModeToScaleByScalar(); // Create the mapper and actor and finish up the visualization pipeline vtkPolyDataMapper *atomsMapper = vtkPolyDataMapper::New(); atomsMapper->SetInput(atoms->GetOutput()); vtkActor *atomsActor = vtkActor::New(); atomsActor->SetMapper(atomsMapper); ren->AddActor(atomsActor); ren->SetBackground(155,133,122); // interact with data renWin->Render(); From prabhu@aero.iitm.ernet.in Wed Oct 30 05:50:23 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 30 Oct 2002 11:20:23 +0530 Subject: [vtkusers] Help (rendering large no. of spheres) In-Reply-To: <5.1.1.6.0.20021030104730.00a7df50@mail.strandgenomics.com> References: <5.1.1.6.0.20021030104730.00a7df50@mail.strandgenomics.com> Message-ID: <15807.29471.706107.972992@monster.linux.in> >>>>> "D" == dharmendra writes: D> Hello All, Well iam sending a peice of code that I have wriiten D> for rendering. I think this is where it is getting slowed D> down. D> Can someone go thru the code and suggest me where Iam wrong (if D> at all). I'd suggest that you post small working examples in either C++ or a scripted language (prefferred) that require no data. Something like the example I posted. If speed is bothering you so much it just might be your hardware. If you have a lousy video card its likely you will not get any speed. On my el-cheapo TNT2 M64 the example I posted is slow (with 2000 spheres) but is definitely not "dead slow". Besides its perfectly useable when I switch to using vtkLODActors. However its easy to see that if I used a lousy card (or a very low end workstation) it would be dead slow. Rendering does require good graphics performance and thanks to the gaming industry decent cards today are fairly inexpensive. cheers, prabhu From Andrew.Porter@man.ac.uk Wed Oct 30 09:40:15 2002 From: Andrew.Porter@man.ac.uk (Andrew Porter) Date: Wed, 30 Oct 2002 09:40:15 +0000 (GMT) Subject: [vtkusers] setting break points in vtk source files in debugger In-Reply-To: <20021029194859.62500.qmail@web21503.mail.yahoo.com> Message-ID: <20021030093823.I4862-100000@nessie.mcc.ac.uk> > But when I try to do it, the debugger compalins that > there is no vtkConoturFilter.cxx source file. > You need to tell the debugger the location of any source files that aren't in the directory in which you are launching it. e.g. if you are using dbx then use the -I flag to specify the directory containing the relevant vtk cxx files. Cheers, Andrew. -- Andrew Porter Software engineer, RealityGrid Tel. : +44 (0)161 2757184 Manchester Computing Fax. : +44 (0)161 2756040 University of Manchester Email: Andrew.Porter@man.ac.uk Oxford Road Web : www.realitygrid.org Manchester, M13 9PL : www.csar.cfs.ac.uk/staff/porter/ From oli@euromobile.ch Wed Oct 30 10:14:38 2002 From: oli@euromobile.ch (Oli) Date: Wed, 30 Oct 2002 11:14:38 +0100 Subject: [vtkusers] Link Problem with VTK - QT Message-ID: <00eb01c27ffd$2b3df790$694eb280@epfl.ch> This is a multi-part message in MIME format. ------=_NextPart_000_00E8_01C28005.897ABF70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 Hi, I'have tried two librairies packages that integrate VTK RendreWindow in = a QT Widget. These librairies are vtkqt = http://www.matthias-koenig.net/vtkqt/ and vtkhandqt = http://www.medres.ch/~jstifter/vtkandqt/.=20 I use QT2.3 and VTK4.0, and I runs without problem programs that use VTK = or KT.=20 But I cannot use these librairies, VisualC++ compiles but I get errors = at linking: So Have you an idea? thanks oli Errors with vtkhandqt: Linking... interactormain.obj : error LNK2001: unresolved external symbol "private: = static struct QStringData * QString::shared_null" = (?shared_null@QString@@0PAUQStringData@@A) renderwindow.obj : error LNK2001: unresolved external symbol = _gluOrtho2D@32 moc_renderwindow.obj : error LNK2001: unresolved external symbol "class = QApplication * qApp" (?qApp@@3PAVQApplication@@A) moc_renderwindowinteractor.obj : error LNK2001: unresolved external = symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A) Debug/VTKQT1.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. VTKQT1.exe - 5 error(s), 0 warning(s) Errors with VTKQT: Linking... qvExample.obj : error LNK2001: unresolved external symbol "class = QApplication * qApp" (?qApp@@3PAVQApplication@@A) vtkQtRenderWindow.obj : error LNK2001: unresolved external symbol "class = QApplication * qApp" (?qApp@@3PAVQApplication@@A) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "class QApplication * qApp" (?qApp@@3PAVQApplication@@A) qvExample.obj : error LNK2001: unresolved external symbol "private: = static struct QStringData * QString::shared_null" = (?shared_null@QString@@0PAUQStringData@@A) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "protected: virtual void __thiscall = vtkQtRenderWindowInteractor::initMetaObject(void)" = (?initMetaObject@vtkQtRenderWindowInteractor@@MAEXXZ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "public: virtual char const * __thiscall = vtkQtRenderWindowInteractor::className(void)const " = (?className@vtkQtRenderWindowInteractor@@UBEPBDXZ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "private: static class QWidget * QApplication::main_widget" = (?main_widget@QApplication@@0PAVQWidget@@A) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "public: static class QMetaObject * __cdecl = vtkQtRenderWindowInteractor::staticMetaObject(void)" = (?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObject@@XZ) Debug/vtkqt2.exe : fatal error LNK1120: 6 unresolved externals Error executing link.exe. vtkqt2.exe - 9 error(s), 0 warning(s) ------=_NextPart_000_00E8_01C28005.897ABF70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Hi,
I'have tried two librairies packages = that integrate=20 VTK RendreWindow in a QT Widget. These librairies are vtkqt http://www.matthias-koenig= .net/vtkqt/ and=20 vtkhandqt http://www.medres.ch/~j= stifter/vtkandqt/.=20
 
I use QT2.3 and VTK4.0, and I runs = without problem=20 programs that use VTK or KT.
But I cannot use these librairies, = VisualC++=20 compiles but I get errors at linking:
 
So Have you an idea?
thanks
oli
 
Errors with vtkhandqt:
Linking...
interactormain.obj : = error LNK2001:=20 unresolved external symbol "private: static struct QStringData * =20 QString::shared_null" (?shared_null@QSt= ring@@0PAUQStringData@@A)
renderwindow.obj=20 : error LNK2001: unresolved external symbol _gluOrtho2D@32
moc_renderwindow.obj= : error=20 LNK2001: unresolved external symbol "class QApplication *  qApp" = (?qApp@@3PAVQApplication@@A= )
moc_renderwindowinteractor.obj=20 : error LNK2001: unresolved external symbol "class QApplication *  = qApp"=20 (?qApp@@3PAVQApplication@@A= )
Debug/VTKQT1.exe=20 : fatal error LNK1120: 3 unresolved externals
Error executing=20 link.exe.
VTKQT1.exe - 5 error(s), 0 = warning(s)
 
Errors with VTKQT:
Linking...
qvExample.obj : error = LNK2001:=20 unresolved external symbol "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A= )
vtkQtRenderWindow.obj=20 : error LNK2001: unresolved external symbol "class QApplication *  = qApp"=20 (?qApp@@3PAVQApplication@@A= )
vtkQtRenderWindowInteractor.obj=20 : error LNK2001: unresolved external symbol "class QApplication *  = qApp"=20 (?qApp@@3PAVQApplication@@A= )
qvExample.obj=20 : error LNK2001: unresolved external symbol "private: static struct = QStringData=20 *  QString::shared_null" (?shared_null@QSt= ring@@0PAUQStringData@@A)
vtkQtRenderWindowInteractor.obj=20 : error LNK2001: unresolved external symbol "protected: virtual void = __thiscall=20 vtkQtRenderWindowInteractor::initMetaObject(void)" (?init= MetaObject@vtkQtRenderWindowInteractor@@MAEXXZ)
vtkQtRenderWindowI= nteractor.obj=20 : error LNK2001: unresolved external symbol "public: virtual char const = *=20 __thiscall vtkQtRenderWindowInteractor::className(void)const " (?classNa= me@vtkQtRenderWindowInteractor@@UBEPBDXZ)
vtkQtRenderWindowInterac= tor.obj=20 : error LNK2001: unresolved external symbol "private: static class = QWidget=20 *  QApplication::main_widget" (?main_widget@QA= pplication@@0PAVQWidget@@A)
vtkQtRenderWindowInteractor.obj=20 : error LNK2001: unresolved external symbol "public: static class = QMetaObject *=20 __cdecl vtkQtRenderWindowInteractor::staticMetaObject(void)" (?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObjec= t@@XZ)
Debug/vtkqt2.exe=20 : fatal error LNK1120: 6 unresolved externals
Error executing=20 link.exe.
 
vtkqt2.exe - 9 error(s), 0=20 warning(s)
------=_NextPart_000_00E8_01C28005.897ABF70-- From sebbe@multitel.be Wed Oct 30 10:29:14 2002 From: sebbe@multitel.be (Raphael Sebbe) Date: Wed, 30 Oct 2002 11:29:14 +0100 Subject: [vtkusers] NURBS and other parametric representations Message-ID: <6FA38164-EBF2-11D6-A1F6-000393A6BC2C@multitel.be> Hi all, Could someone tell me whether there is support for parametric curves and surfaces, and, if not, if there is any plan to add that to VTK ? Thanks, Raphael From tp500@doc.ic.ac.uk Wed Oct 30 10:58:04 2002 From: tp500@doc.ic.ac.uk (Theodore Papatheodorou) Date: Wed, 30 Oct 2002 10:58:04 +0000 Subject: [vtkusers] .obj files Message-ID: <3DBFBB3C.193C809F@doc.ic.ac.uk> Hi, I am trying to load a file using the vtkOBJReader which reads an OBJ file and returns a vtkPolyDataStructure. The file I am trying to load contains 9000 points. However when it is loaded and converted to PolyData it contains more than 40.000 points which is incorrect. I printed out these points and I have all the points that are in the file repeated 3-4 times each in random intervals inside the polydata structure. Do you know why this happens. Is there a known bug with vtkOBJReader? Thanks for your advice!! Theodoros From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 30 10:59:37 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 30 Oct 2002 11:59:37 +0100 Subject: [vtkusers] Link Problem with VTK - QT References: <00eb01c27ffd$2b3df790$694eb280@epfl.ch> Message-ID: <3DBFBB99.5010909@student.uni-magdeburg.de> --------------030403000700070008020806 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Oli, I have no ideas how to solve these problems but you might want to try another vtk-Qt-package, which is provided by Carsten Kuebler: http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html I'm using VTK4.0 and Qt2.3 under windows together with this package and it works fine. It is very easy to handle and probably the very latest package bringing VTK and Qt together. Steffen Oli wrote: > > Hi, > > I'have tried two librairies packages that integrate VTK RendreWindow > in a QT Widget. These librairies are vtkqt > http://www.matthias-koenig.net/vtkqt/ and vtkhandqt > http://www.medres.ch/~jstifter/vtkandqt/ > . > > > > I use QT2.3 and VTK4.0, and I runs without problem programs that use > VTK or KT. > > But I cannot use these librairies, VisualC++ compiles but I get errors > at linking: > > > > So Have you an idea? > > thanks > > oli > > > > Errors with vtkhandqt: > > Linking... > interactormain.obj : error LNK2001: unresolved external symbol > "private: static struct QStringData * QString::shared_null" ( > ?shared_null@QString@@0PAUQStringData@@A > ) > renderwindow.obj : error LNK2001: unresolved external symbol > _gluOrtho2D@32 > moc_renderwindow.obj : error LNK2001: unresolved external symbol > "class QApplication * qApp" (?qApp@@3PAVQApplication@@A > ) > moc_renderwindowinteractor.obj : error LNK2001: unresolved external > symbol "class QApplication * qApp" ( ?qApp@@3PAVQApplication@@A > ) > Debug/VTKQT1.exe : fatal error LNK1120: 3 unresolved externals > Error executing link.exe. > > VTKQT1.exe - 5 error(s), 0 warning(s) > > > > Errors with VTKQT: > > Linking... > qvExample.obj : error LNK2001: unresolved external symbol "class > QApplication * qApp" (?qApp@@3PAVQApplication@@A > ) > vtkQtRenderWindow.obj : error LNK2001: unresolved external symbol > "class QApplication * qApp" (?qApp@@3PAVQApplication@@A > ) > vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external > symbol "class QApplication * qApp" ( ?qApp@@3PAVQApplication@@A > ) > qvExample.obj : error LNK2001: unresolved external symbol "private: > static struct QStringData * QString::shared_null" ( > ?shared_null@QString@@0PAUQStringData@@A > ) > vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external > symbol "protected: virtual void __thiscall > vtkQtRenderWindowInteractor::initMetaObject(void)" > (?initMetaObject@vtkQtRenderWindowInteractor@@MAEXXZ > ) > vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external > symbol "public: virtual char const * __thiscall > vtkQtRenderWindowInteractor::className(void)const " > (?className@vtkQtRenderWindowInteractor@@UBEPBDXZ > ) > vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external > symbol "private: static class QWidget * QApplication::main_widget" ( > ?main_widget@QApplication@@0PAVQWidget@@A > ) > vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external > symbol "public: static class QMetaObject * __cdecl > vtkQtRenderWindowInteractor::staticMetaObject(void)" ( > ?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObject@@XZ > > ) > Debug/vtkqt2.exe : fatal error LNK1120: 6 unresolved externals > Error executing link.exe. > > > > vtkqt2.exe - 9 error(s), 0 warning(s) > --------------030403000700070008020806 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Oli,

I have no ideas how to solve these problems but you might want to
try another vtk-Qt-package, which is provided by Carsten Kuebler:

http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html

I'm using VTK4.0 and Qt2.3 under windows together with this
package and it works fine. It is very easy to handle and probably
the very latest package bringing VTK and Qt together.

Steffen

Oli wrote:
 
Hi,
I'have tried two librairies packages that integrate VTK RendreWindow in a QT Widget. These librairies are vtkqt http://www.matthias-koenig.net/vtkqt/  and vtkhandqt http://www.medres.ch/~jstifter/vtkandqt/ .
 
I use QT2.3 and VTK4.0, and I runs without problem programs that use VTK or KT.
But I cannot use these librairies, VisualC++ compiles but I get errors at linking:
 
So Have you an idea?
thanks
oli
 
Errors with vtkhandqt:
Linking...
interactormain.obj : error LNK2001: unresolved external symbol "private: static struct QStringData *  QString::shared_null" ( ?shared_null@QString@@0PAUQStringData@@A )
renderwindow.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
moc_renderwindow.obj : error LNK2001: unresolved external symbol "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A )
moc_renderwindowinteractor.obj : error LNK2001: unresolved external symbol "class QApplication *  qApp" ( ?qApp@@3PAVQApplication@@A )
Debug/VTKQT1.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
VTKQT1.exe - 5 error(s), 0 warning(s)
 
Errors with VTKQT:
Linking...
qvExample.obj : error LNK2001: unresolved external symbol "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A )
vtkQtRenderWindow.obj : error LNK2001: unresolved external symbol "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external symbol "class QApplication *  qApp" ( ?qApp@@3PAVQApplication@@A )
qvExample.obj : error LNK2001: unresolved external symbol "private: static struct QStringData *  QString::shared_null" ( ?shared_null@QString@@0PAUQStringData@@A )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall vtkQtRenderWindowInteractor::initMetaObject(void)" (?initMetaObject@vtkQtRenderWindowInteractor@@MAEXXZ )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall vtkQtRenderWindowInteractor::className(void)const " (?className@vtkQtRenderWindowInteractor@@UBEPBDXZ )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external symbol "private: static class QWidget *  QApplication::main_widget" ( ?main_widget@QApplication@@0PAVQWidget@@A )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external symbol "public: static class QMetaObject * __cdecl vtkQtRenderWindowInteractor::staticMetaObject(void)" ( ?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObject@@XZ )
Debug/vtkqt2.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
 
vtkqt2.exe - 9 error(s), 0 warning(s)

--------------030403000700070008020806-- From malcolm@geovision.co.za Wed Oct 30 11:02:34 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Wed, 30 Oct 2002 13:02:34 +0200 Subject: [vtkusers] rasterizing a planar manifold Message-ID: <000a01c28004$00e6b7a0$adf4fea9@bart> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C28014.9CF972D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I have a set of polygons that tile a plane. Each polygon has a discreet = integer value (ie a cell value). I need to rasterize the plane such that = each raster cell contains the dominant discrete value by area, no = interpolation. Also, for any cell in the raster I need to be able to = find what percentage of it's area is occupied by any particular value. = Is there a VTK filter that can do this? If so is it in 3.2 or must I = upgrade (about time anyway). If it doesn't exist I'm prepared to write one and donate the code - can = anyone advise on strategy. Perhaps this sort of 2D work is not = appropriate to VTK. Thanks for any advice Malcolm Malcolm Drummond GeoVision cc ------=_NextPart_000_0007_01C28014.9CF972D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
 
I have a set of polygons that tile = a plane.=20 Each polygon has a discreet integer value (ie a cell value). I need to = rasterize=20 the plane such that each raster cell contains the dominant discrete = value by=20 area, no interpolation. Also, for any cell in the raster = I need=20 to be able to find what percentage of it's area is occupied by any = particular=20 value. Is there a VTK filter that can do this? If so is it in = 3.2 or=20 must I upgrade (about time anyway).
 
If it doesn't exist I'm prepared to = write one and=20 donate the code - can anyone advise on strategy. Perhaps this sort of 2D = work is=20 not appropriate to VTK.
 
Thanks for any advice
Malcolm
 
Malcolm Drummond
GeoVision cc
------=_NextPart_000_0007_01C28014.9CF972D0-- From simon.chatelain@epfl.ch Wed Oct 30 11:42:16 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Wed, 30 Oct 2002 12:42:16 +0100 Subject: [vtkusers] How to create vtkImageData from float array Message-ID: <3DBFC598.2030905@epfl.ch> Hello, I use VTK 4 with Java. I have in a java object some datas int and double array corresponding to a vtkImageData (spacing, extent, scalar type, etc) and a big double array containig the real datas. My question is : how to reconstruct an object vtkImageData with these java arrays ? There is methods setspacing, setExtent, etc.. but no method setScalarValue, or something similar. Thanks Simon Chatelain From Andrew.Porter@man.ac.uk Wed Oct 30 11:47:25 2002 From: Andrew.Porter@man.ac.uk (Andrew Porter) Date: Wed, 30 Oct 2002 11:47:25 +0000 (GMT) Subject: [vtkusers] vtkMultiProcessController in Tcl Message-ID: <20021030114404.H4862-100000@nessie.mcc.ac.uk> Hi, I'd like to be able to implement a multi-process isosurfacer in Tcl following the C++ example distributed with vtk. However, it seems that no Tcl bindings are generated for the SetSingleMethod method of vtkMultiProcessController. Is there some way around this or must I stick with C++? Many thanks, Andrew. From semeraro@ncsa.uiuc.edu Wed Oct 30 13:04:32 2002 From: semeraro@ncsa.uiuc.edu (Dave Semeraro) Date: Wed, 30 Oct 2002 07:04:32 -0600 Subject: [vtkusers] reader formats Message-ID: <5.1.0.14.2.20021030065937.03cf4a00@mail.ncsa.uiuc.edu> Hi, This question may have been asked before but I cant recall. I know there are reader classes in vtk for the vtk file format and I think there is one for ensight files as well. My question is what other formats have readers been written for? Has anyone written a reader for tecplot files or a general HDF5 reader? Anyone working on parallel IO for vtk? We deal with all sorts of users here with all sorts of data. Most of those we encounter are currently using Tecplot or IDL or AVS. They are interested in vtk and the biggest issue is data importing. That is why I ask about the other file format readers. Best Regards, Dave Dave Semeraro Ph.D. Visualization and Virtual Environments Group NCSA University of Illinois 605 E. Springfield Ave. Champaign, IL 61820 Semeraro@ncsa.uiuc.edu (217) 244-1852 From stojek@part-gmbh.de Wed Oct 30 14:02:16 2002 From: stojek@part-gmbh.de (Marcus Stojek) Date: Wed, 30 Oct 2002 14:02:16 -0000 Subject: [vtkusers] wxVTKRenderWindow freezes on Windows XP Message-ID: Hi, I'm using wxPython 2.3.3.1, Python 2.2.1 and vtk 4.0 on Windows NT. The little example program below is a minimal viewer for vtk ASCII files (vtk DataFile Version 4.0, DATASET UNSTRUCTURED_GRID). On Windows NT and 2000 everything works fine. On XP the Renderwindow (and the app) freezes with some vtk files and works fine with others. (I can mail two examples 129k) It's always the same vtk file that's crashing. Is there any known problem with XP, or could anybody give me a hint? --snip---------------------------------------------------------------------- -------- from wxPython.wx import * import os from vtk import * import wxVTKRenderWindow #---------------------------------------------------------------------- class MyParentFrame(wxMDIParentFrame): def __init__(self): wxMDIParentFrame.__init__(self, None, -1, "Viewer", size=(600,400)) self.cwd = os.getcwd() self.winCount = 0 menu = wxMenu() menu.Append(5000, "&New Window") menu.AppendSeparator() menu.Append(5001, "E&xit") menubar = wxMenuBar() menubar.Append(menu, "&File") self.SetMenuBar(menubar) self.CreateStatusBar() EVT_MENU(self, 5000, self.OnNewWindow) EVT_MENU(self, 5001, self.OnExit) #-------------------------------------------- def OnExit(self, evt): self.Close(true) #-------------------------------------------- def OnNewWindow(self, evt): dlg = wxFileDialog(self, "Select vtk file",self.cwd, "*.vtk", "vtk ASCII file |*.vtk", wxOPEN) if dlg.ShowModal() == wxID_OK: filename=dlg.GetPath() dlg.Destroy() else: dlg.Destroy() return 0 vtkbase,vtkext=os.path.splitext(filename) vtkdir,vtkfilename=os.path.split(vtkbase) win = wxMDIChildFrame(self, -1, vtkfilename) widget = wxVTKRenderWindow.wxVTKRenderWindow(win, -1) reader = vtkUnstructuredGridReader() reader.SetFileName(filename) MapperSurf=vtkDataSetMapper() MapperSurf.SetInput(reader.GetOutput()) MapperSurf.ScalarVisibilityOff() ActorSurf=vtkActor() ActorSurf.SetMapper(MapperSurf) PropSurf=vtkProperty() PropSurf.SetDiffuseColor(0.7,0.7,0.7) PropSurf.SetAmbientColor(0.7,0.7,0.7) PropSurf.SetRepresentationToSurface() PropSurf.BackfaceCullingOff() PropSurf.FrontfaceCullingOff() ActorSurf.SetProperty(PropSurf) ren = vtkRenderer() widget.GetRenderWindow().AddRenderer(ren) ren.AddActor(ActorSurf) widget.Render() widget.Show(true) #---------------------------------------------------------------------- class MyApp(wxApp): def OnInit(self): frame = MyParentFrame() frame.Show(true) self.SetTopWindow(frame) return true #-------------------------------------------- #-------------------------------------------- app = MyApp(0) app.MainLoop() --snip---------------------------------------------------------------------- -------- From winston@cat.rpi.edu Wed Oct 30 13:34:50 2002 From: winston@cat.rpi.edu (Jeremy Winston) Date: Wed, 30 Oct 2002 08:34:50 -0500 Subject: [vtkusers] Re: NURBS and other parametric representations Message-ID: <3DBFDFFA.3BC9738C@cat.rpi.edu> Raphael Sebbe sebbe@multitel.be wrote: > > Could someone tell me whether there is support for parametric curves > and surfaces, and, if not, if there is any plan to add that to VTK ? Raphael, See vtkSpline and its concrete subclasses, vtkCardinalSpline & vtkKochanekSpline. -Jeremy From zonacontrollata@yahoo.it Wed Oct 30 14:34:08 2002 From: zonacontrollata@yahoo.it (=?iso-8859-1?q?UGO=20DANESI?=) Date: Wed, 30 Oct 2002 15:34:08 +0100 (CET) Subject: [vtkusers] only a blank mail Message-ID: <20021030143408.61391.qmail@web41109.mail.yahoo.com> only a blank mail ===== Dott. Ugo Danesi Istituto Neurologico Nazionale "C. Besta" UO di Neuoradiologia ______________________________________________________________________ Mio Yahoo!: personalizza Yahoo! come piace a te http://it.yahoo.com/mail_it/foot/?http://it.my.yahoo.com/ From goodwin.lawlor@ucd.ie Wed Oct 30 15:00:36 2002 From: goodwin.lawlor@ucd.ie (Goodwin Lawlor) Date: Wed, 30 Oct 2002 15:00:36 +0000 Subject: [vtkusers] .obj files References: <3DBFBB3C.193C809F@doc.ic.ac.uk> Message-ID: <004501c28025$1bb22440$199701c1@highcross> Hi, Did you not post the same question on 17th Oct? The answer is the same: use vtkCleanPolyData after vtkOBJReader. So... vtkOBJReader *face = vtkOBJReader::New(); face->SetFileName("face.obj"); vtkCleanPolyData *clean = vtkCleanPolyData::New(); clean->SetInput(face->GetOutput()) //then check... vtkIdType numPts; numPts = clean->GetOutput()->GetNumberOfPoints() If you look back at the thread of the 17th Oct you'll find the reason for this. HTH Goodwin ----- Original Message ----- From: "Theodore Papatheodorou" To: ; Sent: Wednesday, October 30, 2002 10:58 AM Subject: [vtkusers] .obj files > Hi, > I am trying to load a file using the vtkOBJReader which reads an > OBJ file and returns a vtkPolyDataStructure. The file I am trying to > load contains 9000 points. However when it is loaded and converted to > PolyData it contains more than 40.000 points which is incorrect. I > printed out these points and I have all the points that are in the file > repeated 3-4 times each in random intervals inside the polydata > structure. > Do you know why this happens. Is there a known bug with vtkOBJReader? > Thanks for your advice!! > Theodoros > > _______________________________________________ > 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 farshid.dehmeshki@medicsight.com Wed Oct 30 15:42:45 2002 From: farshid.dehmeshki@medicsight.com (Farshid Dehmeshki) Date: Wed, 30 Oct 2002 15:42:45 -0000 Subject: [vtkusers] VolumePro1000 Message-ID: <2A49B7B35195534792E2A9274FFECD154FB160@mayfair2.HTTP-INC.local> Hi In Volume rendering I use RayCastFunctions(such as MIP) and by = "SetVolumeRayCastFunction(RayFunctionvar)" I connect it to the = vtkVolumeMapepr. Now I have Volumepro1000 board . I use either VolumeProVP1000Mapper or = VolumeProMapper.that they are a subclass of VouleMapper. in this class I can detect the board(number of boards is 1 ), but how = can I use ray functions? thanks -------------------------------------------------------------------------= -------------------------------------------------------------------------= ----------=20 The contents of this e-mail are intended for the named addressee only. = It contains information which may be confidential and which may also be = privileged. Unless you are the named addressee (or authorised to receive = for the addressee) you may not copy or use it, or disclose it to anyone=20 else. If you received it in error please notify us immediately and then = destroy it. Further, we make every effort to keep our network free from = viruses. However, you do need to verify that this email and any = attachments are free of viruses as we can take no responsibility for any = computer virus which might be transferred by way of this e-mail. From walizada@ucalgary.ca Wed Oct 30 16:33:00 2002 From: walizada@ucalgary.ca (walizada@ucalgary.ca) Date: Wed, 30 Oct 2002 16:33:00 -0000 Subject: [vtkusers] XDR support Message-ID: <200210301633.ZZ379205@mserve2.acs.ucalgary.ca> Hi, I've check the archive and couldn't find any mention of this. Does vtk support the XDR format? I'm pretty new to vtk so I'm not sure which classes may be relevant. I would like to know if vtk has a Reader class that can read in XDR data, or would I have to use the functions defined in /usr/include/rpc/xdr.h to convert the data and then pass it on to vtk. thanks for your help, Wahid From nghongwan@myrealbox.com Wed Oct 30 16:35:41 2002 From: nghongwan@myrealbox.com (Hong Wan) Date: Thu, 31 Oct 2002 00:35:41 +0800 Subject: [vtkusers] ChoosePixelFormat Error In-Reply-To: Message-ID: <000001c28032$638d25f0$6401a8c0@hong> Hi, I encountered ChoosePixelFormat Error when running MaceTk.tcl and ImagePlaneWidget.tcl in the example Running Mace.tcl and ImplicitPlaneWidget.tcl has not problem.. Can anyone here advised me on what went wrong?? I am using the latest nightly release Thanks From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Oct 30 16:52:29 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 30 Oct 2002 17:52:29 +0100 Subject: [vtkusers] changing the position of an actor Message-ID: <3DC00E4D.4000906@student.uni-magdeburg.de> Dear VTK-users, I'm using the vtkImageReslice-class to apply rotation and reflection to a volume. Before it, I use vtkImageChangeInformation to center the volume. I would like to place additional actors in the scene, in particular at certain points within the volume. However, because of my transformations the actors do not appear where they are supposed to. How can let my actors know which transformations have been applied and change their position and other values according to that ? Steffen From dgobbi@imaging.robarts.ca Wed Oct 30 17:06:16 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Wed, 30 Oct 2002 12:06:16 -0500 (EST) Subject: [vtkusers] changing the position of an actor In-Reply-To: <3DC00E4D.4000906@student.uni-magdeburg.de> Message-ID: Hi Steffen, If you want to draw actors in the same scene as an image, it is crucial that you establish a coordinate system for the image. The image coordinate system is defined by the Origin and Spacing information that is attached to the image. When you use vtkImageChangeInformation to center the volume, you are modifying the 'Origin' of the image so that the origin of the coordinate system is at the center of the volume. If, after centering the volume, you apply a transformation via vtkImageReslice, just set the inverse of the ResliceTransform as the UserTransform of the Actors. - David -- David Gobbi, MSc dgobbi@imaging.robarts.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 30 Oct 2002, Steffen Oeltze wrote: > Dear VTK-users, > > I'm using the vtkImageReslice-class to apply rotation and reflection to a > volume. Before it, I use vtkImageChangeInformation to center the volume. > I would like to place additional actors in the scene, in particular at > certain > points within the volume. However, because of my transformations the > actors do not appear where they are supposed to. How can let my actors > know which transformations have been applied and change their position > and other values according to that ? > > Steffen > > _______________________________________________ > 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 dshamoni@science.uva.nl Wed Oct 30 16:16:27 2002 From: dshamoni@science.uva.nl (Denis Shamonin) Date: Wed, 30 Oct 2002 17:16:27 +0100 Subject: [vtkusers] Again and again - Problems with VTK-QT References: <00eb01c27ffd$2b3df790$694eb280@epfl.ch> <3DBFBB99.5010909@student.uni-magdeburg.de> Message-ID: <3DC005DB.1020107@science.uva.nl> Steffen Oeltze wrote: > Hi Oli, > > I have no ideas how to solve these problems but you might want to > try another vtk-Qt-package, which is provided by Carsten Kuebler: > > http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html > > I'm using VTK4.0 and Qt2.3 under windows together with this > package and it works fine. It is very easy to handle and probably > the very latest package bringing VTK and Qt together. You right, works fine. But for example VTK4.1.1 have 3DWidgets which is very usefully. And It not possible to use them in this kind package. That why I did some extensions to make it possible. And again, a lot of peoples trying to make possible use Qt for creating GUI for VTK programs. And there are a lot of solutions in this area. For example VTK have directory VTK/src/Examples/GUI with MFC examples for Windows and other. But there are no support for VTK-Qt developers for example. Ofcource you can do it yourself, but maybe It is time to stop it. Maybe It time for VTK officialy support Qt. We need It really, creating VTK-GUI application with best library for GUI's - Qt. -Denis Shamonin. Section Computational Science University of Amsterdam Kruislaan 403, 1098 SJ Amsterdam the Netherlands From nghongwan@myrealbox.com Wed Oct 30 18:09:00 2002 From: nghongwan@myrealbox.com (Hong Wan) Date: Thu, 31 Oct 2002 02:09:00 +0800 Subject: [vtkusers] ChoosePixelFormat Error In-Reply-To: <8F419A9A5A98D611AF8D0004AC4CA41E6A82B1@nrcbouex1.imi.nrc.ca> Message-ID: <000001c2803f$6c501dc0$6401a8c0@hong> Hi Patrick I just recompile vtk4.0, and MaceTk.tcl works perfectly. I suspect this issue happens only to nightly release -----Original Message----- From: Gendron, Patrick [mailto:patrick.gendron@nrc.ca] Sent: Thursday, October 31, 2002 1:18 AM To: 'Hong Wan' Subject: RE: [vtkusers] ChoosePixelFormat Error I dont know what could be wrong, but when I had that error, I have updated my video drivers and now it work correctly. -----Original Message----- From: Hong Wan [mailto:nghongwan@myrealbox.com] Sent: Wednesday, October 30, 2002 11:36 AM To: vtkusers@public.kitware.com Subject: [vtkusers] ChoosePixelFormat Error Hi, I encountered ChoosePixelFormat Error when running MaceTk.tcl and ImagePlaneWidget.tcl in the example Running Mace.tcl and ImplicitPlaneWidget.tcl has not problem.. Can anyone here advised me on what went wrong?? I am using the latest nightly release 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 prabhu@aero.iitm.ernet.in Wed Oct 30 18:09:37 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 30 Oct 2002 23:39:37 +0530 Subject: [vtkusers] reader formats In-Reply-To: <5.1.0.14.2.20021030065937.03cf4a00@mail.ncsa.uiuc.edu> References: <5.1.0.14.2.20021030065937.03cf4a00@mail.ncsa.uiuc.edu> Message-ID: <15808.8289.544102.245919@monster.linux.in> >>>>> "DS" == Dave Semeraro writes: DS> Has anyone written a reader for tecplot files or a general DS> HDF5 reader? Anyone working on parallel IO for vtk? We deal There is a HDF5 to VTK converter out there. http://ab-initio.mit.edu/h5utils/ prabhu From David.Pont@ForestResearch.co.nz Wed Oct 30 20:31:23 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 31 Oct 2002 09:31:23 +1300 Subject: [vtkusers] Help (rendering large no. of spheres) Message-ID: Dharmendra > Can someone go thru the code and suggest me where Iam wrong (if at all). You should try vtkLODActor instead of vtkActor, and you can control the switch to lower LOD with vtkRenderWindowInteractor->SetDesiredUpdateRate( DisplayFramesPerSecond ); I see in your code that you use a value of 9 for SetThetaResolution SetPhiResolution. This is quite high if you have large numbers of points (81? triangles per sphere, * lots of points). Try lower values, OK you lose sphere quality but interaction is your problem. Spheres are useful glyphs (look the same from any angle) but they are costly in triangles. Try vtkCubeSource, I'll bet that cranks up the speed. But wait.... Interesting what a bit of reading can uncover, I just found a class I never knew existed: vtkLODProp3D, this looks as though you can set up mappers that have used spheres of differing resolution (for example), say 9, 6, 3; and have the renderer switch between them to try and get your desired update rate. You could also add a mapper directly from the point data to get points as a lowest level of detail. The earlier suggestion of using vtkMaskPoints, then to glyphs, could be used too... This sounds promising... I suppose the only danger is consuming all your memory with these multiple representations of the data, given it is 'large'. Dave Pont |--------+---------------------------------> | | Dharmendra | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 30/10/2002 18:29 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] Help (rendering large no. of spheres) | >------------------------------------------------------------------------------------------------------------| Hello All, Well iam sending a peice of code that I have wriiten for rendering. I think this is where it is getting slowed down. Can someone go thru the code and suggest me where Iam wrong (if at all). Directly in C++ is slow .I have created a dll and used it in python it is dead slow. coord_dump has basically sphere positions . sphereSource = vtkSphereSource::New(); sphereSource->SetThetaResolution(9); sphereSource->SetPhiResolution(9); sphereSource->SetRadius(2); ifstream file("F:\\docking\\dock\\dock\\reader\\coord_dump"); cout << file.is_open() <>str>>radius >> coord[0] >> coord[1] >> coord[2] ; int i = 0; while( !file.eof() ){ file >>str>>radius >> coord[0] >> coord[1] >> coord[2] ; atomPoints->InsertNextPoint(coord); i++; } // Create a data set for the atoms. atomsPolyData = vtkPolyData::New(); atomsPolyData->SetPoints(atomPoints); atomPoints->Delete(); // Create atoms, using a vtkGlyph3D object vtkGlyph3D *atoms = vtkGlyph3D::New(); atoms->SetInput(atomsPolyData); atoms->SetSource(sphereSource->GetOutput()); atoms->SetScaleFactor(0.7); atoms->SetScaleModeToScaleByScalar(); // Create the mapper and actor and finish up the visualization pipeline vtkPolyDataMapper *atomsMapper = vtkPolyDataMapper::New(); atomsMapper->SetInput(atoms->GetOutput()); vtkActor *atomsActor = vtkActor::New(); atomsActor->SetMapper(atomsMapper); ren->AddActor(atomsActor); ren->SetBackground(155,133,122); // interact with data renWin->Render(); _______________________________________________ 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 jafoster@uncc.edu Wed Oct 30 21:14:41 2002 From: jafoster@uncc.edu (Joshua A Foster) Date: Wed, 30 Oct 2002 16:14:41 -0500 Subject: [vtkusers] Problems with vtkFlRenderWindowInteractor Message-ID: <200210301614.41889.jafoster@uncc.edu> Here is some additional information: 1) We are all running NVidia drivers version 1.0-3123 now, and we still get "XRequest.144: BadAccess (attempt to access private resource denied)" frequently and "Xlib: unexpected async reply (sequence 0xa9)" on rare occasions. 2) The source of most X errors is Render() on the vtkRenderWindow(). This is also the reason some actors don't show up. If I don't call Render(), all the actors appear, and we get no X errors. Whether I call Render() or not, the visualization does not update itself. I have to interact with the mouse to get the updated scene drawn. 3) There seem to be interesting things going on with the default camera. ResetCamera() consistently causes a BadAccess error, and Dolly() causes the "unexpected async reply". If I don't mess with the camera or call Render, we get absolutely no X errors. Thanks again, Joshua Foster From stevie157@gmx.net Wed Oct 30 21:57:42 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Wed, 30 Oct 2002 22:57:42 +0100 Subject: [vtkusers] transparency-problem Message-ID: <3DC055D6.90308@gmx.net> hi, when i define a polydataset with transparent polys then the first polys aren't transparent to the polys later defined and therefore rendered. how can i set the mapper that they are transparent to all poly (including the ones of other actors)? thanx stef From lisa.avila@kitware.com Wed Oct 30 22:36:23 2002 From: lisa.avila@kitware.com (Lisa Avila) Date: Wed, 30 Oct 2002 17:36:23 -0500 Subject: [vtkusers] VolumePro1000 In-Reply-To: <2A49B7B35195534792E2A9274FFECD154FB160@mayfair2.HTTP-INC.l ocal> Message-ID: <5.1.0.14.0.20021030173545.0540dd30@pop.biz.rr.com> Hello, You don't need a ray function - this is built in to the volume pro mapper. Just change the blending mode to switch between MIP and compositing. Lisa At 10:42 AM 10/30/2002, Farshid Dehmeshki wrote: >Hi >In Volume rendering I use RayCastFunctions(such as MIP) and by >"SetVolumeRayCastFunction(RayFunctionvar)" I connect it to the vtkVolumeMapepr. >Now I have Volumepro1000 board . I use either VolumeProVP1000Mapper or >VolumeProMapper.that they are a subclass of VouleMapper. >in this class I can detect the board(number of boards is 1 ), but how can >I use ray functions? >thanks > > > >------------------------------------------------------------------------------------------------------------------------------------------------------------ > > > >The contents of this e-mail are intended for the named addressee only. It >contains information which may be confidential and which may also be >privileged. Unless you are the named addressee (or authorised to receive >for the addressee) you may not copy or use it, or disclose it to anyone >else. If you received it in error please notify us immediately and then >destroy it. Further, we make every effort to keep our network free from >viruses. However, you do need to verify that this email and any >attachments are free of viruses as we can take no responsibility for any >computer virus which might be transferred by way of this e-mail. > > > >_______________________________________________ >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 pardasaniman@yahoo.com Wed Oct 30 22:40:39 2002 From: pardasaniman@yahoo.com (Utsav Pardasani) Date: Wed, 30 Oct 2002 14:40:39 -0800 (PST) Subject: [vtkusers] Segmentation Fault in Python Code on Linux Message-ID: <20021030224039.82337.qmail@web12306.mail.yahoo.com> Whenever I call a GetMatrix() in python on my Mandrake Linux Box. I get a Segmentation fault. The same code works fine in Windoze. I am using the same version of python and VTK on both machines. Any way I can get around this issue? Many thanks, Utsav ----------------- Linux is very user friendly, it is just picky with its friends. __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ From alear@cns.montana.edu Wed Oct 30 23:37:33 2002 From: alear@cns.montana.edu (Alex Lear) Date: Wed, 30 Oct 2002 16:37:33 -0700 Subject: [vtkusers] How do I get around no vtkscalars in 4.0? Message-ID: <200210302337.g9UNbXX02719@cercus.cns.montana.edu> Hello, I have an 3d array of values that I want to apply to a structured points set. In VTK 3.2 I would create vtkScalars with that data and then use: MyStructuredPoints->GetPointData()->SetScalars(MyScalars); I have upgraded to VTK 4.0 but my program obviously has errors due to the fact there is no more vtkScalars supported. How can I apply my scalar data to those structured points? Thanks, Alex Lear From David.Pont@ForestResearch.co.nz Thu Oct 31 00:05:22 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 31 Oct 2002 13:05:22 +1300 Subject: [vtkusers] transparency-problem Message-ID: Stefan, vtkDepthSortPolyData may help. Dave Pont |--------+---------------------------------> | | Stefan Ulbrich | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 31/10/2002 10:57 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] transparency-problem | >------------------------------------------------------------------------------------------------------------| hi, when i define a polydataset with transparent polys then the first polys aren't transparent to the polys later defined and therefore rendered. how can i set the mapper that they are transparent to all poly (including the ones of other actors)? thanx stef _______________________________________________ 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 John Biddiscombe" I've just checked in a new class call vtkCurvatures which computes the Gaussian or Mean curvature of a polydata object. In Graphics/Testing/Tcl is a new test call TestCurvatures.tcl which illustrates how to use the class. Many thanks to Philip Batchelor for contributing the class and Andrew J. P. Maclean for fixing various bits and pieces. I've tested it fairly thouroughly against a range of polydata datasets and put some checks in to prevent floating point errors when degenerate data and/or other dubious polygons are supplied - but there are almost certainly going to be a few possible cases which cause trouble. Please send any bug reports or improvements to the list, one of the authors or myself. (Polydata with discontinuities or other sharp features can cause very (unrealistically) large scalar values to be generated - perhaps some sort of output clamping value should be added?) JB From lisong@vrac.iastate.edu Thu Oct 31 02:05:23 2002 From: lisong@vrac.iastate.edu (Song Li) Date: Wed, 30 Oct 2002 20:05:23 -0600 Subject: [vtkusers] delete vtkSocketController Message-ID: <3DC08FE3.ACE8DC30@vrac.iastate.edu> --------------BA594262A793C58C630F3DBA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, When I try to delete a vtkSocketController object by using method "Delete()", I alway get error message : Warning: In /home9/users/lisong/vtk/linux/VTK/Parallel/vtkSocketController.cxx, line 85 vtkSocketController (0x88863f8): Already initialized. What does that mean ????? And in general, how can I completely delete a VTK object ? Thanks! -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong@vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong --------------BA594262A793C58C630F3DBA Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  
Hi,

When I try to delete a vtkSocketController object by using method "Delete()", I alway get error
message :

Warning: In /home9/users/lisong/vtk/linux/VTK/Parallel/vtkSocketController.cxx, line 85
vtkSocketController (0x88863f8): Already initialized.

What does that mean ????? And in general,  how can I completely delete a VTK object ? Thanks!

-- 
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: http://www.vrac.iastate.edu/~lisong
  --------------BA594262A793C58C630F3DBA-- From prabhu@aero.iitm.ernet.in Thu Oct 31 03:42:59 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 31 Oct 2002 09:12:59 +0530 Subject: [vtkusers] Segmentation Fault in Python Code on Linux In-Reply-To: <20021030224039.82337.qmail@web12306.mail.yahoo.com> References: <20021030224039.82337.qmail@web12306.mail.yahoo.com> Message-ID: <15808.42691.703113.564274@monster.linux.in> >>>>> "UP" == Utsav Pardasani writes: UP> Whenever I call a GetMatrix() in python on my Mandrake Linux UP> Box. I get a Segmentation fault. The same code works fine in UP> Windoze. I am using the same version of python and VTK on UP> both machines. Any way I can get around this issue? A code sample would be of use. Try and send the smallest working example that demonstrates this problem to the list. FWIW I've been using GetMatrix in some code (under Linux) and it has never given me problems. prabhu From jss@au.mensa.org Thu Oct 31 06:09:09 2002 From: jss@au.mensa.org (John) Date: Thu, 31 Oct 2002 16:39:09 +1030 Subject: [vtkusers] Compiling error under Redhat 6.2 In-Reply-To: <3DBD8133.44D9E0C6@earthlink.net> References: <3DBD8133.44D9E0C6@earthlink.net> Message-ID: <20021031061035.7E92A1AA40@public.kitware.com> Hi, i also get these filthy internal compiler errors all the time, its horrific. i am using mandrake 8.2 and the standard mandrake non-standard gcc 2.96 compiler, but i have the same problem with gcc 3.0.4. I really havent had too many other problems with gcc 2.96, but until i tried 3.0.4 i thought it might have been a 2.96 problem. I will give 3.1 or 3.2 a go soon, and i will then hope that i have seen my last internal compiler error... generally when i get such internal compiler errors, it seems by that time my whole computer is bollocksed up... if i try to continue the VTK make it will fail again with the same internal compiler error at the exact same point. But if i then do a re-boot, and re-start the make it will continue happily for some time until the next internal compiler error. I usually get 2 or 3 internal compiler errors before the VTK make is complete. This problem happens with VTK 4.0, and VTK CVS, and it has also made compiling the Glasgow Haskell Compiler a horror. I have been assuming its possibly a hardware problem, like a few unreliable memory bytes which dont really cause too many problems unless i give my box a good workout by compiling something rather large like VTK or GHC -- but... does anyone else out there get any of these rotten internal compiler errors? im really really sick of them... compiling VTK is not a quick and simple process even if things go smoothly, but when you start it compiling and then go to bed expecting to wake up to a brave new world of improved VTK ... and then in the morning you find the compilation died after an hour and there are several hours of compilation left to go after a reboot it makes you want to pull your hair out. argh ! John On Tuesday 29 October 2002 04:55 am, you wrote: > Hi, > > When compiling VTK under RedHat 6.2 using /usr/bin/g++, I get the > following > error > > In function `void vtkGetResliceInterpFunc(class vtkImageReslice > *, > int (**)(void *&, const void *, const int *, const int *, int, const > float *, > int, const void *))': > /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1708: instantiated from > here > /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: Internal compiler > error. > /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: Please submit a > full bug report to `egcs-bugs@egcs.cygnus.com'. > /home/john/VTK/VTK/Imaging/vtkImageReslice.cxx:1449: See > for details. > gmake[3]: *** [vtkImageReslice.o] Error 1 > gmake[2]: *** [default_target] Error 2 > gmake[1]: *** [default_target_Imaging] Error 2 > gmake: *** [default_target] Error 2 > From Steffen.Oeltze@Student.Uni-Magdeburg.DE Thu Oct 31 08:51:52 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Thu, 31 Oct 2002 09:51:52 +0100 Subject: [vtkusers] changing the position of an actor References: Message-ID: <3DC0EF28.6010204@student.uni-magdeburg.de> Hi David, I still have some problem with placing my actors. I would be very grateful if you could have a look at my source code below: vtkImageChangeInformation *imgChg = vtkImageChangeInformation::New(); imgChg->SetInput(reader->GetOutput()); imgChg->CenterImageOn(); vtkTransform *transform = vtkTransform::New(); transform->SetMatrix(ResultMatrix); // matrix rotates the volume about 90 and reflects it on the y-axes vtkImageReslice *imgReslice = vtkImageReslice::New(); imgReslice->SetInput(imgChg->GetOutput()); imgReslice->SetResliceAxesDirectionCosines(1, 0, 0, 0, 1, 0, 0, 0, 1); imgReslice->SetResliceTransform(transform); ... vtkActor *aPolyLineActor = vtkActor::New(); aPolyLineActor->SetMapper(aPolyLineMapper); aPolyLineActor->SetOrigin(0.0,0.0,0.0); aPolyLineActor->SetScale(1.09,1.09,3.0); (aPolyLineActor->GetProperty())->SetDiffuseColor(1,0,0); vtkAbstractTransform *trans1; trans1 = imgReslice->GetResliceTransform(); vtkLinearTransform *trans2 = vtkLinearTransform::SafeDownCast(trans1); trans2 = trans2->GetLinearInverse(); aPolyLineActor->SetUserTransform(trans2); David Gobbi wrote: >Hi Steffen, > >If you want to draw actors in the same scene as an image, it >is crucial that you establish a coordinate system for the image. >The image coordinate system is defined by the Origin and Spacing >information that is attached to the image. > >When you use vtkImageChangeInformation to center the volume, you >are modifying the 'Origin' of the image so that the origin of >the coordinate system is at the center of the volume. If, >after centering the volume, you apply a transformation via >vtkImageReslice, just set the inverse of the ResliceTransform >as the UserTransform of the Actors. > > - David > From robbel@science.uva.nl Thu Oct 31 09:37:19 2002 From: robbel@science.uva.nl (Robert Belleman) Date: Thu, 31 Oct 2002 10:37:19 +0100 Subject: [vtkusers] Problems with vtkFlRenderWindowInteractor In-Reply-To: <200210301614.41889.jafoster@uncc.edu> References: <200210301614.41889.jafoster@uncc.edu> Message-ID: <20021031093719.GA15383@carol.science.uva.nl> On Wed, Oct 30, 2002 at 04:14:41PM -0500, Joshua A Foster wrote: > 1) We are all running NVidia drivers version 1.0-3123 now, and we still get > "XRequest.144: BadAccess (attempt to access private resource denied)" > frequently and "Xlib: unexpected async reply (sequence 0xa9)" on rare > occasions. You will get the latter message when multiple threads access the same X server. To solve this, call XInitThreads() at the start of your program. Actually; this issue has come up a number of times now, so it warrants a permanent solution. It would be a good idea to add this call to vtkXOpenGLRenderWindow.cxx. In any case; if it doesn't help, it doesn't harm. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From heiland@ncsa.uiuc.edu Thu Oct 31 09:44:59 2002 From: heiland@ncsa.uiuc.edu (Randy Heiland) Date: Thu, 31 Oct 2002 03:44:59 -0600 Subject: [vtkusers] How do I get around no vtkscalars in 4.0? In-Reply-To: Alex Lear "[vtkusers] How do I get around no vtkscalars in 4.0?" (Oct 30, 4:37pm) References: <200210302337.g9UNbXX02719@cercus.cns.montana.edu> Message-ID: <1021031034459.ZM23866@pecos.ncsa.uiuc.edu> On Oct 30, 4:37pm, Alex Lear wrote: > Subject: [vtkusers] How do I get around no vtkscalars in 4.0? > Hello, > I have an 3d array of values that I want to apply to a structured points set. > In VTK 3.2 I would create vtkScalars with that data and then use: > > MyStructuredPoints->GetPointData()->SetScalars(MyScalars); > > I have upgraded to VTK 4.0 but my program obviously has errors due to the > fact there is no more vtkScalars supported. How can I apply my scalar data > to those structured points? > > Thanks, > > Alex Lear This is a frequent topic and just as a friendly suggestion, if you didn't already, try using the VTK mail archive search engine at: http://www.kitware.com/search.html But to answer your question, instead of using vtkScalars now, just use vtkFloatArray. Your other line, ...SetScalars(floatarray), should work fine. --Randy From jeff@cdnorthamerica.com Thu Oct 31 11:27:24 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 31 Oct 2002 06:27:24 -0500 Subject: [vtkusers] Problems with vtkFlRenderWindowInteractor References: <200210301614.41889.jafoster@uncc.edu> <20021031093719.GA15383@carol.science.uva.nl> Message-ID: <3DC1139C.2030203@cdnorthamerica.com> Robert Belleman wrote: >On Wed, Oct 30, 2002 at 04:14:41PM -0500, Joshua A Foster wrote: > > >>1) We are all running NVidia drivers version 1.0-3123 now, and we still get >>"XRequest.144: BadAccess (attempt to access private resource denied)" >>frequently and "Xlib: unexpected async reply (sequence 0xa9)" on rare >>occasions. >> >> > >You will get the latter message when multiple threads access the same >X server. To solve this, call XInitThreads() at the start of your >program. > >Actually; this issue has come up a number of times now, so it warrants >a permanent solution. It would be a good idea to add this call to >vtkXOpenGLRenderWindow.cxx. > IMHO, this would not be a good place to make this call, as it must be called before any other X calls, and there are very few situations I can think of where a vtkXOpenGLRenderWindow is the first X-related object created in an app. Another solution is to make the call from your own program, or better-yet to make sure that you only modify the render window from a single thread. -Jeff > >In any case; if it doesn't help, it doesn't harm. > >-- Rob > > > From robbel@science.uva.nl Thu Oct 31 12:16:54 2002 From: robbel@science.uva.nl (Robert Belleman) Date: Thu, 31 Oct 2002 13:16:54 +0100 Subject: [vtkusers] Problems with vtkFlRenderWindowInteractor In-Reply-To: <3DC1139C.2030203@cdnorthamerica.com>; from jeff@cdnorthamerica.com on Thu, Oct 31, 2002 at 06:27:24AM -0500 References: <200210301614.41889.jafoster@uncc.edu> <20021031093719.GA15383@carol.science.uva.nl> <3DC1139C.2030203@cdnorthamerica.com> Message-ID: <20021031131654.C14674@lanier.science.uva.nl> On Thu, Oct 31, 2002 at 06:27:24AM -0500, Jeff Lee wrote: > Robert Belleman wrote: > >On Wed, Oct 30, 2002 at 04:14:41PM -0500, Joshua A Foster wrote: > >>1) We are all running NVidia drivers version 1.0-3123 now, and we still get > >>"XRequest.144: BadAccess (attempt to access private resource denied)" > >>frequently and "Xlib: unexpected async reply (sequence 0xa9)" on rare > >>occasions. > > > >You will get the latter message when multiple threads access the same > >X server. To solve this, call XInitThreads() at the start of your > >program. > > > >Actually; this issue has come up a number of times now, so it warrants > >a permanent solution. It would be a good idea to add this call to > >vtkXOpenGLRenderWindow.cxx. > > > IMHO, this would not be a good place to make this call, as it must be > called before any other X calls, You're right; XInitThreads should be called before any other X call. > and there are very few situations I can > think of where a vtkXOpenGLRenderWindow is the first X-related object > created in an app. Well... Most C++ examples in the Vtk source tree will probably call XOpenDisplay() in vtkXOpenGLRenderWindow as their first X call, but granted; non of these are multi-threaded and so they will not suffer from this problem. Anyway; now that I've given it a little more thought - vtkXOpenGLRenderWindow is, indeed, probably not the right place. > Another solution is to make the call from your own program, Agreed; we should add a note about this in the FAQ. But I think there is a little bit more we could do; I noticed that some of the Vtk interfaces to X windows GUI toolkits (i.e. Qt, Fltk, etc) use a multithreaded approach to split Vtk's and the toolkit's event handling loop - these interfaces should call XInitThreads at initialization. > or better-yet to make sure that you only modify the render > window from a single thread. You mean; make sure that you only access *the X server* from one thread. The renderer is not the real issue. However, there are advantages to multithreading an application *and* have the different threads access the same server. One such example is a Vtk application in conjunction with an X GUI. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From jeff@cdnorthamerica.com Thu Oct 31 12:58:29 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 31 Oct 2002 07:58:29 -0500 Subject: [vtkusers] Problems with vtkFlRenderWindowInteractor References: <200210301614.41889.jafoster@uncc.edu> <20021031093719.GA15383@carol.science.uva.nl> <3DC1139C.2030203@cdnorthamerica.com> <20021031131654.C14674@lanier.science.uva.nl> Message-ID: <3DC128F5.4020504@cdnorthamerica.com> Robert Belleman wrote: >On Thu, Oct 31, 2002 at 06:27:24AM -0500, Jeff Lee wrote: > > >>Robert Belleman wrote: >> >> >>>On Wed, Oct 30, 2002 at 04:14:41PM -0500, Joshua A Foster wrote: >>> >>> >>>>1) We are all running NVidia drivers version 1.0-3123 now, and we still get >>>>"XRequest.144: BadAccess (attempt to access private resource denied)" >>>>frequently and "Xlib: unexpected async reply (sequence 0xa9)" on rare >>>>occasions. >>>> >>>> >>>You will get the latter message when multiple threads access the same >>>X server. To solve this, call XInitThreads() at the start of your >>>program. >>> >>>Actually; this issue has come up a number of times now, so it warrants >>>a permanent solution. It would be a good idea to add this call to >>>vtkXOpenGLRenderWindow.cxx. >>> >>> >>> >>IMHO, this would not be a good place to make this call, as it must be >>called before any other X calls, >> >> > >You're right; XInitThreads should be called before any other X call. > > > >>and there are very few situations I can >>think of where a vtkXOpenGLRenderWindow is the first X-related object >>created in an app. >> >> > >Well... Most C++ examples in the Vtk source tree will probably call >XOpenDisplay() in vtkXOpenGLRenderWindow as their first X call, but >granted; non of these are multi-threaded and so they will not suffer >from this problem. > >Anyway; now that I've given it a little more thought - >vtkXOpenGLRenderWindow is, indeed, probably not the right place. > > > >>Another solution is to make the call from your own program, >> >> > >Agreed; we should add a note about this in the FAQ. > >But I think there is a little bit more we could do; > >I noticed that some of the Vtk interfaces to X windows GUI toolkits >(i.e. Qt, Fltk, etc) use a multithreaded approach to split Vtk's and >the toolkit's event handling loop - these interfaces should call >XInitThreads at initialization. > > Yes, this is a better place to handle the problem. > > >>or better-yet to make sure that you only modify the render >>window from a single thread. >> >> > >You mean; make sure that you only access *the X server* from one >thread. The renderer is not the real issue. However, there are >advantages to multithreading an application *and* have the different >threads access the same server. One such example is a Vtk application >in conjunction with an X GUI. > Yes, my comment was vague. The renderer is not the issue, but the render window is (specifically vtkXOpenGLRenderWindow, vtkXOpenGLTextMapper). These classes make glx calls, and are pretty much the only entrance points into X from VTK. My suggestion to make sure that methods like Render() (or any other method resulting in a glx call) be called from a single thread is one solution, although admittedly broad-brushed. This solution works well for Java (disturbingly multithreaded), where XInitThreads cannot be called before the jvm initializes X. As stated above, the gui-toolkits are the place to take care of X thread safety. I don't have alot of faith in XInitThreads (seems like a black box, not a robust solution), but I know that mutual exclusion locking works fine. -Jeff > >-- Rob > > > From jss@au.mensa.org Thu Oct 31 13:16:36 2002 From: jss@au.mensa.org (John) Date: Thu, 31 Oct 2002 23:46:36 +1030 Subject: [vtkusers] Compiling error under Redhat 6.2 (actually mandrake 8.2) In-Reply-To: <15809.1501.582799.844785@monster.linux.in> References: <3DBD8133.44D9E0C6@earthlink.net> <20021031061035.7E92A1AA40@public.kitware.com> <15809.1501.582799.844785@monster.linux.in> Message-ID: <20021031131521.83B651AA40@public.kitware.com> thanks Prabhu, i ran one pass of the standard memtest86 tests and my computer passed, which surprised me. I will set it to run the extended tests overnight, and see if they can detect anything. The cpu fan is definitely running... i was worried about my cpu fan about a month ago, as I am a smoker, and the tar/fluff build-up in my computer fans is absolutely disgusting. So i popped the fan assembly off my P3 and gave it a good clean a short while ago, and the fan was working perfectly afterwards. I was getting the internal compiler errors before and after the clean tho :( Also it is the end of winter here in Australia, so im pretty sure the problems i have been having in the past, ie in winter, were not due to overheating. I still think it is probably a memory problem, especially if you havent heard of this sort of thing being compiler or OS-related... And after all, the memtest86 took less than an hour to run one pass of its standard tests, and i tend to get the internal compiler errors after an hour or more of compilation.... So it seems to me that maybe the VTK compilation is using a section of memory which is a little tiny bit unreliable, and using it heavily, until it has failed enough to confuse the compiler. Whereas the memtest86 is wasting time testing my entire memory range, and not testing any particular section very heavily. If this internal compiler error is not a common problem, then I am satisfied that it must be an intermittent hardware error with my computer, and i wont worry about it too much, as i should be upgrading my motherboard and RAM soon. i will let you know if a more thorough memory test detects any problems tho. And I will mention one more small but weird problem Ive noticed in my next email... thanks again, John On Thursday 31 October 2002 08:58 pm, you wrote: > >>>>> "J" == jss writes: > > J> Hi, i also get these filthy internal compiler errors all the > J> time, its horrific. > > I'm almost certain it is a hardware problem. You most probably have > bad ram. Or a CPU whose CPU Fan is not running. To check the RAM > take a look at memtest86 and try and run it. > > http://www.memtest86.com/ > > Also open your box up and see if that helps or try and see if the CPU > fan is running. > > > cheers, > prabhu From Stephan.Rau@mycrona.de Thu Oct 31 13:20:27 2002 From: Stephan.Rau@mycrona.de (Stephan.Rau@mycrona.de) Date: Thu, 31 Oct 2002 14:20:27 +0100 Subject: [vtkusers] Problem to pick a vtkfollower Message-ID: This is a multipart message in MIME format. --=_alternative 00494B30C1256C63_= Content-Type: text/plain; charset="us-ascii" Hello vtkusers, I am new to vtk and got the following problem: I am using vtkVectorText in a vtkFollower actor and want to pick it with a vtkPropPicker. After starting the program the picker works fine until I rotate the scene to a new camera position. Then the picker cannot find the actor again. It seems that the follower actor isn't really where it is rendered. Is there a need of refreshing the matrix of the follower? Thanks! Stephan Rau MYCRONA GmbH --=_alternative 00494B30C1256C63_= Content-Type: text/html; charset="us-ascii"
Hello vtkusers,

I am new to vtk and got the following problem:
I am using vtkVectorText in a vtkFollower actor and want to pick it with a vtkPropPicker.
After starting the program the picker works fine until I rotate the scene to a new
camera position. Then the picker cannot find the actor again.
It seems that the follower actor isn't really where it is rendered.
Is there a need of refreshing the matrix of the follower?

Thanks!

Stephan Rau
MYCRONA GmbH --=_alternative 00494B30C1256C63_=-- From stevie157@gmx.net Thu Oct 31 15:20:16 2002 From: stevie157@gmx.net (Stefan Ulbrich) Date: Thu, 31 Oct 2002 16:20:16 +0100 Subject: [vtkusers] Re: transparency-problem Message-ID: <3DC14A30.3070009@gmx.net> hi, i get the following linker error, although i use all so-files in my vtk/bin directory. until now there weren't any errors while linking. and it causes problems when i try to use a function of vtkDepthSortPolyData. could perhaps anyone tell me what the prblem is? thanx stefan gcc -c -I/home/stef/develop/VTK/Rendering -I/home/stef/develop/VTK/Common -I/home/stef/develop/VTK/Imaging -I/home/stef/develop/VTK/IO -I/home/stef/develop/VTK/Filtering -I/home/stef/develop/VTK/Hybrid -I/home/stef/develop/VTK/Graphics -I/home/stef/develop/VTK/ main.cpp gcc -o main -L/home/stef/develop/VTK/bin/ /home/stef/develop/VTK/bin/libvtkCommon.so /home/stef/develop/VTK/bin/libvtkFiltering.so /home/stef/develop/VTK/bin/libvtkGraphics.so /home/stef/develop/VTK/bin/libvtkIO.so /home/stef/develop/VTK/bin/libvtkImaging.so /home/stef/develop/VTK/bin/libvtkRendering.so /home/stef/develop/VTK/bin/libvtkjpeg.so /home/stef/develop/VTK/bin/libvtkpng.so /home/stef/develop/VTK/bin/libvtkzlib.so main.o main.o(.text+0xc4c): In function `main': : undefined reference to `vtkDepthSortPolyData::New(void)' collect2: ld returned 1 exit status make: *** [LINK] Error 1 From sjk60@iastate.edu Thu Oct 31 15:44:35 2002 From: sjk60@iastate.edu (Steve Kirstukas) Date: Thu, 31 Oct 2002 09:44:35 -0600 (CST) Subject: [vtkusers] general purpose streamline parameters Message-ID: Whether or not streamlines appear seems to be very sensitive to the SetStepLength parameter. Do you have any suggestions as to general purpose (not neccessarily most efficient) values to use for: SetMaximumPropagationTime parameter SetIntegrationStepLength parameter SetStepLength parameter Thanks, Steve From jnorris@mcs.anl.gov Thu Oct 31 16:03:29 2002 From: jnorris@mcs.anl.gov (John Norris) Date: Thu, 31 Oct 2002 10:03:29 -0600 Subject: [vtkusers] Re: transparency-problem In-Reply-To: <3DC14A30.3070009@gmx.net> References: <3DC14A30.3070009@gmx.net> Message-ID: <20021031160329.GB15476@mcs.anl.gov> You're not linking in libvtkHybrid.so . That's where vtkDepthSortPolyData lives. Once upon a time, Stefan Ulbrich wrote: > hi, > > i get the following linker error, although i use all so-files in my > vtk/bin directory. until now there weren't any errors while linking. and > it causes problems when i try to use a function of vtkDepthSortPolyData. > could perhaps anyone tell me what the prblem is? > > thanx > stefan > > > gcc -c -I/home/stef/develop/VTK/Rendering > -I/home/stef/develop/VTK/Common -I/home/stef/develop/VTK/Imaging > -I/home/stef/develop/VTK/IO -I/home/stef/develop/VTK/Filtering > -I/home/stef/develop/VTK/Hybrid -I/home/stef/develop/VTK/Graphics > -I/home/stef/develop/VTK/ main.cpp > gcc -o main -L/home/stef/develop/VTK/bin/ > /home/stef/develop/VTK/bin/libvtkCommon.so > /home/stef/develop/VTK/bin/libvtkFiltering.so > /home/stef/develop/VTK/bin/libvtkGraphics.so > /home/stef/develop/VTK/bin/libvtkIO.so > /home/stef/develop/VTK/bin/libvtkImaging.so > /home/stef/develop/VTK/bin/libvtkRendering.so > /home/stef/develop/VTK/bin/libvtkjpeg.so > /home/stef/develop/VTK/bin/libvtkpng.so > /home/stef/develop/VTK/bin/libvtkzlib.so main.o > main.o(.text+0xc4c): In function `main': > : undefined reference to `vtkDepthSortPolyData::New(void)' > collect2: ld returned 1 exit status > make: *** [LINK] Error 1 > > _______________________________________________ > 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 > -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From farshid.dehmeshki@medicsight.com Thu Oct 31 16:10:21 2002 From: farshid.dehmeshki@medicsight.com (Farshid Dehmeshki) Date: Thu, 31 Oct 2002 16:10:21 -0000 Subject: [vtkusers] VolumePro1000 Message-ID: <2A49B7B35195534792E2A9274FFECD154FB163@mayfair2.HTTP-INC.local> subject: ** VolumeProMapper. ** Volume Rendering ** Maximum Intensity Value -------------------------------------------------------------------------= ----------------------------------- thank you Lisa for your reply .=20 I set blending mode to MIP. now I can use Volume Pro board. but I have these problems could you please tell me what is the problem ? 1. by using VolumeMapper I could set RayCastFunction to mapper for MIP = (or compisit)and I had good results, in VolumeProMapper I use = "SetBlendingModeToMaximumIntensity" . the result is faster but it is = completely deferent ( in fact the result is not correct , in Ct Scan = Images it should display maximum intensity but it display just first = and last slice of the image and between these two slice is blank. 2. VolumeProMapper speeds up process time ,but to compare with = VolView, that is so slow why? 3. I have some synthetic data ( binary and small for testing my codes ) = but still many times when I try to rotate the object I have this error: volume data is too large for viewport. =20 many thanks in advance ta farshid = >------------------------------------------------------------------------= --------------------------------------------------- The contents of this e-mail are intended for the named addressee only. = It contains information which may be confidential and which may also be = privileged. Unless you are the named addressee (or authorised to receive = for the addressee) you may not copy or use it, or disclose it to anyone=20 else. If you received it in error please notify us immediately and then = destroy it. Further, we make every effort to keep our network free from = viruses. However, you do need to verify that this email and any = attachments are free of viruses as we can take no responsibility for any = computer virus which might be transferred by way of this e-mail. -----Original Message----- From: Lisa Avila [mailto:lisa.avila@kitware.com] Sent: 30 October 2002 22:36 To: Farshid Dehmeshki; vtkusers@public.kitware.com Subject: Re: [vtkusers] VolumePro1000 Hello, You don't need a ray function - this is built in to the volume pro = mapper.=20 Just change the blending mode to switch between MIP and compositing. Lisa At 10:42 AM 10/30/2002, Farshid Dehmeshki wrote: >Hi >In Volume rendering I use RayCastFunctions(such as MIP) and by=20 >"SetVolumeRayCastFunction(RayFunctionvar)" I connect it to the = vtkVolumeMapepr. >Now I have Volumepro1000 board . I use either VolumeProVP1000Mapper = or=20 >VolumeProMapper.that they are a subclass of VouleMapper. >in this class I can detect the board(number of boards is 1 ), but how = can=20 >I use ray functions? >thanks > > > >------------------------------------------------------------------------= -------------------------------------------------------------------------= -----------=20 > > > >The contents of this e-mail are intended for the named addressee only. = It=20 >contains information which may be confidential and which may also be=20 >privileged. Unless you are the named addressee (or authorised to = receive=20 >for the addressee) you may not copy or use it, or disclose it to anyone >else. If you received it in error please notify us immediately and then = >destroy it. Further, we make every effort to keep our network free from = >viruses. However, you do need to verify that this email and any=20 >attachments are free of viruses as we can take no responsibility for = any=20 >computer virus which might be transferred by way of this e-mail. > > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at:=20 > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _____________________________________________________________________ This e-mail has been scanned for viruses by the WorldCom Internet = Managed Scanning Service - powered by MessageLabs. For further = information visit http://www.worldcom.com From miguelcorvacho@netscape.net Thu Oct 31 17:24:46 2002 From: miguelcorvacho@netscape.net (Miguel Angel Corvacho) Date: Thu, 31 Oct 2002 12:24:46 -0500 Subject: [vtkusers] Compile HP11 Message-ID: <044D6CF1.3ECB5287.717B12A4@netscape.net> HI I am tryin to compile VTK on a HP 11 machine, but I am getting this error: /macorvac/libraries/VTK/Utilities/jpeg: building default_target `cmake.depends' is up to date. `cmake.check_depends' is up to date. `cmake.depends' is up to date. /macorvac/libraries/VTK/Utilities/Doxygen: building default_target `cmake.depends' is up to date. `cmake.check_depends' is up to date. cmake.depends is up-to-date /macorvac/libraries/VTK/Common: building default_target Make: line too long. Stop. *** Error exit code 1 What is it? Thanks Miguel __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From alear@cns.montana.edu Thu Oct 31 17:29:55 2002 From: alear@cns.montana.edu (Alex Lear) Date: Thu, 31 Oct 2002 10:29:55 -0700 Subject: [vtkusers] Can VTK_QT render volumes? Message-ID: <200210311729.g9VHTtC04197@cercus.cns.montana.edu> I would like to know if VTK_QT can render volumes? I am trying to render a volume and I am getting a segmentation error when I call the render() function. Thanks, Alex Lear From lorensen@crd.ge.com Thu Oct 31 17:56:20 2002 From: lorensen@crd.ge.com (Lorensen, William E (Research)) Date: Thu, 31 Oct 2002 12:56:20 -0500 Subject: [vtkusers] RE: [vtk-developers] .obj files Message-ID: Put the reader output through a CleanPolyData. The OBJ reader does not merge duplicate points. Bill -----Original Message----- From: Theodore Papatheodorou [mailto:tp500@doc.ic.ac.uk] Sent: Wednesday, October 30, 2002 5:58 AM To: vtk-developers@public.kitware.com; vtkusers@public.kitware.com Subject: [vtk-developers] .obj files Hi, I am trying to load a file using the vtkOBJReader which reads an OBJ file and returns a vtkPolyDataStructure. The file I am trying to load contains 9000 points. However when it is loaded and converted to PolyData it contains more than 40.000 points which is incorrect. I printed out these points and I have all the points that are in the file repeated 3-4 times each in random intervals inside the polydata structure. Do you know why this happens. Is there a known bug with vtkOBJReader? Thanks for your advice!! Theodoros _______________________________________________ vtk-developers mailing list vtk-developers@public.kitware.com http://public.kitware.com/mailman/listinfo/vtk-developers From oli@euromobile.ch Thu Oct 31 17:58:32 2002 From: oli@euromobile.ch (oli) Date: Thu, 31 Oct 2002 18:58:32 +0100 Subject: [vtkusers] Link Problem with VTK - QT References: <00eb01c27ffd$2b3df790$694eb280@epfl.ch> <3DBFBB99.5010909@student.uni-magdeburg.de> Message-ID: <005a01c28107$23d9ddb0$0100a8c0@k7> This is a multi-part message in MIME format. ------=_NextPart_000_0057_01C2810F.81F2A2D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, thanks for response, I have found on this link a good information: to = use QT_DLL, UNICODE, QT_THREAD_SUPPORT in the precompiled arguments. With this line I can link the vtkhandqt solution without problem, but It = is strange because the other solutions (even kuebler solution) give the = same linking problem... It's strange but one runs, therefore It's ok. If anyone can explain me the reason of theses problems, I'm still = interested. oli I have no ideas how to solve these problems but you might want to try another vtk-Qt-package, which is provided by Carsten Kuebler: http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html I'm using VTK4.0 and Qt2.3 under windows together with this=20 package and it works fine. It is very easy to handle and probably the very latest package bringing VTK and Qt together. Steffen Oli wrote: =20 Hi, I'have tried two librairies packages that integrate VTK RendreWindow = in a QT Widget. These librairies are vtkqt = http://www.matthias-koenig.net/vtkqt/ and vtkhandqt = http://www.medres.ch/~jstifter/vtkandqt/ .=20 I use QT2.3 and VTK4.0, and I runs without problem programs that use = VTK or KT.=20 But I cannot use these librairies, VisualC++ compiles but I get = errors at linking: So Have you an idea? thanks oli Errors with vtkhandqt: Linking... interactormain.obj : error LNK2001: unresolved external symbol = "private: static struct QStringData * QString::shared_null" ( = ?shared_null@QString@@0PAUQStringData@@A ) renderwindow.obj : error LNK2001: unresolved external symbol = _gluOrtho2D@32=20 moc_renderwindow.obj : error LNK2001: unresolved external symbol = "class QApplication * qApp" (?qApp@@3PAVQApplication@@A ) moc_renderwindowinteractor.obj : error LNK2001: unresolved external = symbol "class QApplication * qApp" ( ?qApp@@3PAVQApplication@@A ) Debug/VTKQT1.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. VTKQT1.exe - 5 error(s), 0 warning(s) Errors with VTKQT: Linking... qvExample.obj : error LNK2001: unresolved external symbol "class = QApplication * qApp" (?qApp@@3PAVQApplication@@A ) vtkQtRenderWindow.obj : error LNK2001: unresolved external symbol = "class QApplication * qApp" (?qApp@@3PAVQApplication@@A ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "class QApplication * qApp" ( ?qApp@@3PAVQApplication@@A ) qvExample.obj : error LNK2001: unresolved external symbol "private: = static struct QStringData * QString::shared_null" ( = ?shared_null@QString@@0PAUQStringData@@A ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "protected: virtual void __thiscall = vtkQtRenderWindowInteractor::initMetaObject(void)" = (?initMetaObject@vtkQtRenderWindowInteractor@@MAEXXZ ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "public: virtual char const * __thiscall = vtkQtRenderWindowInteractor::className(void)const " = (?className@vtkQtRenderWindowInteractor@@UBEPBDXZ ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "private: static class QWidget * QApplication::main_widget" ( = ?main_widget@QApplication@@0PAVQWidget@@A ) vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved external = symbol "public: static class QMetaObject * __cdecl = vtkQtRenderWindowInteractor::staticMetaObject(void)" ( = ?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObject@@XZ ) Debug/vtkqt2.exe : fatal error LNK1120: 6 unresolved externals Error executing link.exe. vtkqt2.exe - 9 error(s), 0 warning(s) ------=_NextPart_000_0057_01C2810F.81F2A2D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
thanks for response, I have found on = this link a=20 good information: to use QT_DLL, = UNICODE,=20 QT_THREAD_SUPPORT in the precompiled arguments.
With this line I can link the vtkhandqt = solution=20 without problem, but It is strange because the other solutions (even = kuebler=20 solution) give the same linking problem... It's strange but one runs, = therefore=20 It's ok.
If anyone can explain me the reason of = theses=20 problems, I'm still interested.
oli


I=20 have no ideas how to solve these problems but you might want to
try = another=20 vtk-Qt-package, which is provided by Carsten Kuebler:

http://wwwipr= .ira.uka.de/~kuebler/vtkqt/index.html

I'm=20 using VTK4.0 and Qt2.3 under windows together with this
package = and it=20 works fine. It is very easy to handle and probably
the very latest = package=20 bringing VTK and Qt together.

Steffen

Oli wrote:
 =20
Hi,
I'have tried two librairies = packages that=20 integrate VTK RendreWindow in a QT Widget. These librairies are = vtkqt http://www.matthias-koenig= .net/vtkqt/=20  and vtkhandqt http://www.medres.ch/= ~jstifter/vtkandqt/=20 .
 
I use QT2.3 and VTK4.0, and I runs = without=20 problem programs that use VTK or KT.
But I cannot use these librairies, = VisualC++=20 compiles but I get errors at linking:
 
So Have you an idea?
thanks
oli
 
Errors with vtkhandqt:
Linking...
interactormain.obj : = error=20 LNK2001: unresolved external symbol "private: static struct = QStringData=20 *  QString::shared_null" (=20 ?shared_null@QString@@0PAUQStringData@@A )
renderwindow.obj : = error=20 LNK2001: unresolved external symbol _gluOrtho2D@32 =
moc_renderwindow.obj :=20 error LNK2001: unresolved external symbol "class QApplication = *  qApp"=20 (?qApp@@3PAVQApplication@@A= =20 )
moc_renderwindowinteractor.obj : error LNK2001: unresolved = external=20 symbol "class QApplication *  qApp" ( = ?qApp@@3PAVQApplication@@A=20 )
Debug/VTKQT1.exe : fatal error LNK1120: 3 unresolved = externals
Error=20 executing link.exe.
VTKQT1.exe - 5 error(s), 0=20 warning(s)
 
Errors with VTKQT:
Linking...
qvExample.obj : error = LNK2001:=20 unresolved external symbol "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A= =20 )
vtkQtRenderWindow.obj : error LNK2001: unresolved external = symbol=20 "class QApplication *  qApp" (?qApp@@3PAVQApplication@@A= =20 )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved = external=20 symbol "class QApplication *  qApp" ( = ?qApp@@3PAVQApplication@@A=20 )
qvExample.obj : error LNK2001: unresolved external symbol = "private:=20 static struct QStringData *  QString::shared_null" (=20 ?shared_null@QString@@0PAUQStringData@@A=20 )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved = external=20 symbol "protected: virtual void __thiscall=20 vtkQtRenderWindowInteractor::initMetaObject(void)" (?init= MetaObject@vtkQtRenderWindowInteractor@@MAEXXZ=20 )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved = external=20 symbol "public: virtual char const * __thiscall=20 vtkQtRenderWindowInteractor::className(void)const " (?classNa= me@vtkQtRenderWindowInteractor@@UBEPBDXZ=20 )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved = external=20 symbol "private: static class QWidget *  = QApplication::main_widget" (=20 ?main_widget@QApplication@@0PAVQWidget@@A=20 )
vtkQtRenderWindowInteractor.obj : error LNK2001: unresolved = external=20 symbol "public: static class QMetaObject * __cdecl=20 vtkQtRenderWindowInteractor::staticMetaObject(void)" (=20 = ?staticMetaObject@vtkQtRenderWindowInteractor@@SAPAVQMetaObject@@XZ=20 )
Debug/vtkqt2.exe : fatal error LNK1120: 6 unresolved = externals
Error=20 executing link.exe.
 
vtkqt2.exe - 9 error(s), 0=20 = warning(s)

= ------=_NextPart_000_0057_01C2810F.81F2A2D0-- From lisa.avila@kitware.com Thu Oct 31 18:15:44 2002 From: lisa.avila@kitware.com (Lisa Avila) Date: Thu, 31 Oct 2002 13:15:44 -0500 Subject: [vtkusers] VolumePro1000 In-Reply-To: <2A49B7B35195534792E2A9274FFECD154FB163@mayfair2.HTTP-INC.l ocal> Message-ID: <5.1.0.14.0.20021031130909.03397fb8@pop.biz.rr.com> Hello Farshid, >thank you Lisa for your reply . >I set blending mode to MIP. now I can use Volume Pro board. >but I have these problems could you please tell me what is the problem ? > >1. by using VolumeMapper I could set RayCastFunction to mapper for MIP (or >compisit)and I had good results, in VolumeProMapper I use >"SetBlendingModeToMaximumIntensity" . the result is faster but it is >completely deferent ( in fact the result is not correct , in Ct Scan >Images it should display maximum intensity but it display just first and >last slice of the image and between these two slice is blank. I am not sure why you would see this - are you certain that your opacity / color transfer functions are correct? If you keep everything else the same and just switch mappers (between a ray cast mapper and a VolumePro mapper) do you see (approximately) the same image? >2. VolumeProMapper speeds up process time ,but to compare with VolView, >that is so slow why? VolView will use the VolumePro mapper if it detects a board on your system. This may run faster or slower than the example you are working on since VolView may use different parameters for the size of the image (VolumePro 1000 speed does depend on image size), the super sampling factors, etc. >3. I have some synthetic data ( binary and small for testing my codes ) >but still many times when I try to rotate the object I have this error: > volume data is too large for viewport. Generally this error occurs when you are zoomed out too far from a volume. The VolumePro 1000 has a limitation on how far apart (in voxels) two neighboring rays can be - if you descrease your window size and/or zoom out farther from the volume you will exceed this limit which will cause the error message. Lisa From sedatdo@omu.edu.tr Thu Oct 31 20:42:13 2002 From: sedatdo@omu.edu.tr (Sedat DOGAN) Date: Thu, 31 Oct 2002 22:42:13 +0200 Subject: [vtkusers] How to paste human face photograph onto human face polygonal surface generated with marching cubes References: <20021029113731.30957.53725.Mailman@public.kitware.com> Message-ID: <003b01c2811e$079fa460$237883d9@veezy> Dear friends, How can I paste a human face photograph onto a polygonal surface, generated with marching cubes. I couldn't solve the problem, by using texture mapping capabilities of vtk. But now, I want to warp image according to my polygonal surfaces geometry, and then I want to assign the warped image to an actor and I want to plan to orient warped actor on to the polygonal surface. Is it possiblle with vtk, to warp and image with a polygonal mesh. If possiblle how can I do this? Thanks in advance. S. Dogan From jafoster@uncc.edu Thu Oct 31 21:47:03 2002 From: jafoster@uncc.edu (Joshua A Foster) Date: Thu, 31 Oct 2002 16:47:03 -0500 Subject: [vtkusers] vtkFlRenderWindowInteractor problems resolved! Message-ID: <200210311647.03769.jafoster@uncc.edu> All problems with vtkFlRenderWindowInteractor have been resolved. It was just a bit of bad program design -- it turns out I did have two threads trying to update the window. Fixed that, and all the other problems disappeared -- the X errors, the actors not showing up, and Render() not redrawing the window. Quite a relief...thanks, all responders, for your help. Josh From zhou@isg.cs.uni-magdeburg.de Thu Oct 31 22:18:22 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Thu, 31 Oct 2002 23:18:22 +0100 Subject: [vtkusers] Get viewpoint in a vtkRenderWindow. Message-ID: <3DC1BA3D.29406.6EC990@localhost> hi, vtk users, How to get viewpoint and viewing direction in a vtkRenderWindow? Thank you in advance. Best regards, Jianlong From krw@viz-solutions.com Thu Oct 31 22:20:41 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 31 Oct 2002 14:20:41 -0800 Subject: [vtkusers] Get viewpoint in a vtkRenderWindow. In-Reply-To: <3DC1BA3D.29406.6EC990@localhost> Message-ID: <5.1.0.14.0.20021031141926.028e8d10@mail.viz-solutions.com> At 11:18 PM 10/31/2002 +0100, you wrote: >hi, vtk users, > >How to get viewpoint and viewing direction in a vtkRenderWindow? From vtkRenderer you can get an instance of vtkCamera from the GetActiveCamera call. You should be able to query the vtkCamera for all the information you would need. Kevin. From amenta@cs.utexas.edu Thu Oct 31 22:34:53 2002 From: amenta@cs.utexas.edu (Nina Amenta) Date: Thu, 31 Oct 2002 16:34:53 -0600 Subject: [vtkusers] contour only splats? Message-ID: <200210312234.g9VMYrWL018354@corn.cs.utexas.edu> Hi, We'd like to splat data into a structured voxel grid, and then extract a contour only in the area covered by the splats. Is there a good way to do this in vtk? Thanks, Nina Amenta From vphilou at caramail.com Tue Oct 1 05:32:26 2002 From: vphilou at caramail.com (Philippe Vincent) Date: Mon May 24 19:15:43 2004 Subject: [vtkusers] vtkprobe - extract values Message-ID: <1033443146011395@caramail.com> Hi everybody, I need to extract the computed values on a probe (line for example) for each point and its location (X Y Z) to write in a file the information we can get on the vtkxyplot (XY data along a line).If anybody has an idea on how to do that with TCL it would be very nice! Thanks alot Philippe ______________________________________________________ Bo?te aux lettres - Caramail - http://www.caramail.com From prabhu at aero.iitm.ernet.in Tue Oct 1 01:17:15 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] vtkprobe - extract values In-Reply-To: <1033443146011395@caramail.com> References: <1033443146011395@caramail.com> Message-ID: <15769.12251.161584.694278@monster.linux.in> >>>>> "PV" == Philippe Vincent writes: PV> Hi everybody, I need to extract the computed values on a probe PV> (line for example) for each point and its location (X Y Z) to PV> write in a file the information we can get on the vtkxyplot PV> (XY data along a line).If anybody has an idea on how to do PV> that with TCL it would be very nice! Thanks alot Philippe $ cd VTK/Examples $ rgrep -l vtkProbe * [ output edited for brevity ] Annotation/Tcl/xyPlot.tcl GUI/Tcl/ProbeWithPointWidget.tcl GUI/Tcl/ProbingWithPlaneWidget.tcl VisualizationAlgorithms/Tcl/probeComb.tcl VolumeRendering/Tcl/volSimpleLOD.tcl cheers, prabhu From daniele.bianchini at menci.com Tue Oct 1 06:59:48 2002 From: daniele.bianchini at menci.com (Daniele Bianchini) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] vtkProcessObject Message-ID: Is it possible to know how many times the ProgressMethod() will be invoked by the vtkProcessObject before the EndMethod() is called? Thank you in advance for any help. Daniele. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021001/e0beedf3/attachment.html From michele.zamponi at menci.com Tue Oct 1 07:52:51 2002 From: michele.zamponi at menci.com (Michele Zamponi) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] vtkProcessObject Message-ID: <000001c26941$1347f9b0$2000a8c0@devlab1xp> Hi all! Is it possible to know how many times the ProgressMethod will be invoked by the vtkProcessObject before the EndMethod is called? Thank you in advance for any help Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021001/c4bb3368/attachment.htm From michele.zamponi at menci.com Tue Oct 1 08:00:04 2002 From: michele.zamponi at menci.com (Michele Zamponi) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] (no subject) Message-ID: <000501c26942$143b16d0$2000a8c0@devlab1xp> Hi All! Does anybody know the best way to implement an Undo/Redo manager under vtk? Thank you in advance for any help. Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021001/c027c807/attachment.html From andresba at hotmail.com Tue Oct 1 08:29:51 2002 From: andresba at hotmail.com (Andres Barrera) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] vtkPicker bug? Message-ID: Dear list, Is there a bug, or I am doing something wrong? vtkPicker should send a ray from the camera position to the graphic window, right? Well, when I start my rendering, everyrhing works OK and I can pick any actor I want. Now, when I put the camera on the back of the scene (lets say Azimuth = 180), and I have two actors aligned, it picks the one that is on the BACK instead of the one on the FRONT! Any idea? Thank you for your time Andres _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com From simon.chatelain at epfl.ch Tue Oct 1 08:34:10 2002 From: simon.chatelain at epfl.ch (Simon Chatelain) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Adding slice in a vtkImageData Message-ID: Hello, I work with medical images. I read it with appropriate reader, and then work with th vtkImageData. my problem is that i need to add slices in the imagedata. For example if my image data has extent (0,255,0,160,0,255) i want to add 95 slice to the second dimension, so my imagedata is a cube without changing anything to the original slice. Someone can help me ? Thanks Simon Chatelain From lists at carlh.net Tue Oct 1 08:32:39 2002 From: lists at carlh.net (Carl Hetherington) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Writing Postscript files from VTK Message-ID: Hi, I'm interested in writing vector Postscript files of VTK renderings. Consulting the mailing list archive suggests that gl2ps might be able to do this. I've tried the following example: /* Set up a render window with a wireframe representation of a ** vtkPolyData. */ /* ... */ FILE* fp = fopen("test.eps", "w"); int buffsize = 0; int state = GL2PS_OVERFLOW; while (state == GL2PS_OVERFLOW) { buffsize += 1024*1024; gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, buffsize, fp, NULL); window->Render(); state = gl2psEndPage(); } fclose(fp); Unfortunately this gives me zero-sized EPS files, with gl2ps saying "GL2PS warning: Empty feedback buffer". Can anyone show me how it is done? Thanks in advance, Carl From anast.jm at pg.com Tue Oct 1 10:15:26 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Adding slice in a vtkImageData Message-ID: vtkShepardMethod can resample any dataset onto a structured points set....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Simon Chatelain" @public.kitware.com on 10/01/2002 02:34 PM ZE2 "Simon Chatelain" To: "vtkmailinlist" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Adding slice in a Sent by: vtkusers-admin@public.kitware.com vtkImageData 10/01/2002 08:34 AM Hello, I work with medical images. I read it with appropriate reader, and then work with th vtkImageData. my problem is that i need to add slices in the imagedata. For example if my image data has extent (0,255,0,160,0,255) i want to add 95 slice to the second dimension, so my imagedata is a cube without changing anything to the original slice. Someone can help me ? Thanks Simon Chatelain _______________________________________________ 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 goodwin.lawlor at ucd.ie Tue Oct 1 11:07:21 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Writing Postscript files from VTK References: Message-ID: <002301c2695c$42b808a0$119701c1@highcross> Hi Carl, If you dont have any luck with gl2ps I have a work around for writing PS vector files from VTK under windows. 1. Use vtkCGMWriter to write a scene to file. This class is included in vtk4.n but it is not built... so you have to add it yourself to the cmake files and re-compile. Under windows and the borland compiler there were a couple of small bugs. Email me if they cause you any problems. 2. Download and install the universal postscript printer driver from adobe. 3. Insert the CGM file into a Word document. Make sure Word has the CGM graphics importer installed 4. Print the Word page to a PS file using the PS printer driver. 5. You can fix the PS bounding box in GhostView HTH Goodwin University College Dublin ----- Original Message ----- From: "Carl Hetherington" To: "VTK Mailing list" Sent: Tuesday, October 01, 2002 1:32 PM Subject: [vtkusers] Writing Postscript files from VTK > Hi, > > I'm interested in writing vector Postscript files of VTK renderings. > Consulting the mailing list archive suggests that gl2ps might be able to > do this. I've tried the following example: > > /* Set up a render window with a wireframe representation of a > ** vtkPolyData. > */ > > /* ... */ > > FILE* fp = fopen("test.eps", "w"); > int buffsize = 0; > int state = GL2PS_OVERFLOW; > > while (state == GL2PS_OVERFLOW) > { > buffsize += 1024*1024; > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > buffsize, fp, NULL); > window->Render(); > state = gl2psEndPage(); > } > > fclose(fp); > > Unfortunately this gives me zero-sized EPS files, with gl2ps saying > "GL2PS warning: Empty feedback buffer". > > Can anyone show me how it is done? > > Thanks in advance, > Carl > > > > _______________________________________________ > 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 melvin.hadasht at free.fr Tue Oct 1 12:21:54 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Writing Postscript files from VTK In-Reply-To: References: Message-ID: <20021001182154.5a27048f.melvin.hadasht@free.fr> Hi Carl, on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) Carl Hetherington wrote: > Hi, > > I'm interested in writing vector Postscript files of VTK renderings. > Consulting the mailing list archive suggests that gl2ps might be able to > do this. I've tried the following example: > > /* Set up a render window with a wireframe representation of a > ** vtkPolyData. > */ > > /* ... */ > > FILE* fp = fopen("test.eps", "w"); > int buffsize = 0; > int state = GL2PS_OVERFLOW; > > while (state == GL2PS_OVERFLOW) > { > buffsize += 1024*1024; > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > buffsize, fp, NULL); You should test for the return value of fopen. Maybe the problem was there. I don't know the following may help or not, but in an old code I had the filename also as the last argument of gl2psBeginPage{...char *filename; File *fp = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember why I did that. Klahowya (Chinook: Goodbye) -- Melvin Hadasht From bryan.cole at teraview.co.uk Tue Oct 1 12:34:45 2002 From: bryan.cole at teraview.co.uk (bryan cole) Date: Mon May 24 19:15:44 2004 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033443146011395@caramail.com> References: <1033443146011395@caramail.com> Message-ID: <1033490098.7258.31.camel@bryan.teraviewhq.local> I've got a VTK/Python question. With python, when/how are VTK objects destroyed? Normal python objects are destroyed when their reference counts are decreased to zero, but this cannot be true of VTK objects: if I create a set of VTK objects locally in a function, these objects persist outside of this function, even though their references have been lost. How do I force an object to be destroyed? Bryan -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382 From prabhu at aero.iitm.ernet.in Tue Oct 1 14:43:16 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033490098.7258.31.camel@bryan.teraviewhq.local> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> Message-ID: <15769.60612.780206.287900@monster.linux.in> >>>>> "BC" == bryan cole writes: BC> I've got a VTK/Python question. With python, when/how are VTK BC> objects destroyed? BC> Normal python objects are destroyed when their reference BC> counts are decreased to zero, but this cannot be true of VTK BC> objects: if I create a set of VTK objects locally in a BC> function, these objects persist outside of this function, even BC> though their references have been lost. I'm not the expert on this since David Gobbi wrote the implementation but here is my explanation of how things work. I'll let David correct me if I'm wrong. The VTK-Python wrappers are a thin layer around the VTK library. As you must be aware, VTK has its own reference counting mechanism. When a VTK object is used by another the object increases the reference count of the object it uses. When it no longer needs the object the objects refcount is decremented and when it drops to zero the object is destroyed. Its the same as in Python. So here is an example demonstrating how it all works: >>> import sys >>> import vtk >>> cs = vtk.vtkConeSource() >>> out = cs.GetOutput() >>> print sys.getrefcount (out) 2 >>> print out.GetReferenceCount () 3 >>> m = vtk.vtkPolyDataMapper() >>> m.SetInput(out) >>> print out.GetReferenceCount() 4 >>> print sys.getrefcount (out) 2 >>> o = out >>> sys.getrefcount (out) 3 >>> print out.GetReferenceCount () 4 # Now how are objects deleted? >>> print cs.GetReferenceCount() 3 >>> print sys.getrefcount(cs) 2 # Now turn on debug to see if the object is indeed deleted. >>> cs.DebugOn() >>> del cs Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 2 Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 1 >>> # this object is not deleted because out still holds a reference # internally. >>> del out # still nothing happens because GetOutput() is still held by the # mapper. >>> del m Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 225 vtkConeSource (0x819d1d0): UnRegistered by vtkPolyData (0x8136640), ReferenceCount = 0 Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 126 vtkObject (0x819d1d0): Destructing! I think this explains everything. :) prabhu From venkat at sci.utah.edu Tue Oct 1 15:21:56 2002 From: venkat at sci.utah.edu (Venkatanand Venkatachalapathy) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Question on building examples... Message-ID: Hi, I am installing vtk and wanted to setup the examples. I used ccmake and turned the examples option to "ON" and then i did cmake and gmake in my build directory. But at the end of this, I am not getting any executables under the examples in my build directory. I got the following warnings during "gmaking": -------------------------------------------------------- [venkat@bugs ~...vtk/vtkbuild]% gmake Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' cmake.depends is up-to-date Makefile:181: warning: overriding commands for target `default_target_Examples' Makefile:141: warning: ignoring old commands for target `default_target_Examples' Makefile:283: warning: overriding commands for target `clean_Examples' Makefile:243: warning: ignoring old commands for target `clean_Examples' Makefile:385: warning: overriding commands for target `depend_Examples' Makefile:345: warning: ignoring old commands for target `depend_Examples' Makefile:487: warning: overriding commands for target `install_Examples' Makefile:447: warning: ignoring old commands for target `install_Examples' ---------------------------------------------------------------------------- Can someone tell me what i should do ? I am also including my ccmake options below: BUILD_EXAMPLES ON BUILD_SHARED_LIBS OFF BUILD_TESTING ON CMAKE_CXX_FLAGS CMAKE_C_FLAGS CMAKE_INSTALL_PREFIX /usr/local DART_ROOT NOTFOUND VTK_DATA_ROOT NOTFOUND VTK_USE_ANSI_STDLIB OFF VTK_USE_HYBRID OFF VTK_USE_PARALLEL OFF VTK_USE_PATENTED OFF VTK_USE_RENDERING ON VTK_USE_VOLUMEPRO OFF VTK_WRAP_JAVA OFF VTK_WRAP_PYTHON OFF VTK_WRAP_TCL OFF --------------------------------------------------------------------- Thanks Venkat From anast.jm at pg.com Tue Oct 1 15:21:02 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Strip Lines and Point cells from PolyData Message-ID: I have a polydata set that contains some unwanted point and line cells. Is there a way to strip these out leaving just polygon cells?? ....john From David.Pont at ForestResearch.co.nz Tue Oct 1 16:29:06 2002 From: David.Pont at ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Strip Lines and Point cells from PolyData Message-ID: vtkTriangleFilter with PassVertsOff and PassLinesOff (which might be the default behaviour anyway). Of course your polygons will be trangulated which may not be desireable? Dave Pont |--------+---------------------------------> | | anast.jm@pg.com | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 02/10/2002 07:21 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] Strip Lines and Point cells from PolyData | >------------------------------------------------------------------------------------------------------------| I have a polydata set that contains some unwanted point and line cells. Is there a way to strip these out leaving just polygon cells?? ....john _______________________________________________ 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 shibaji at cvrti.utah.edu Tue Oct 1 17:44:15 2002 From: shibaji at cvrti.utah.edu (Shibaji Shome) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] VTK40+MacOSX1015+TCL In-Reply-To: <20021001184401.26362.27261.Mailman@public.kitware.com> Message-ID: Hello, I am trying to get VTK 4.0 installed on a MacG4 running OSX 10.1.5, but I am unable to do so. There was a tutorial on macdevcenter.com but that wasnt of much help and neither was the vtk mailing list archives. I reached the point where I could install cmake but things have gown downhill since. If anyone could point me in the right direction to go about this, I would really appreciate it. Thanks! Cheers, Shibaji From cnavarro at ncsa.uiuc.edu Tue Oct 1 17:52:16 2002 From: cnavarro at ncsa.uiuc.edu (Christopher Navarro (ALG-NCSA)) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] vtkScalarBarActor Message-ID: Is there any way to control where the text of a ScalarBarActor is rendered? Right now by default it puts the text to the right of the scalar bar. However, if I want the scalar bar on the right side of the renderwindow, I'd like the text rendered to the left of the scalar bar. Is there a simple way to do this? Thanks -chris p.s. For reference I am using vtk 4.0 From david.netherway at adelaide.edu.au Wed Oct 2 01:14:22 2002 From: david.netherway at adelaide.edu.au (David Netherway) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Adding slice in a vtkImageData References: Message-ID: <001901c269d2$91811640$0d8156c0@acfu.wch.sa.gov.au> Another way is to use vtkImageReslice. Just expand the output extents and set the background level. David ----- Original Message ----- From: To: Sent: Tuesday, 01 October, 2002 11:45 PM Subject: Re: [vtkusers] Adding slice in a vtkImageData > > vtkShepardMethod can resample any dataset onto a structured points set....john > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > > From: "Simon Chatelain" @public.kitware.com on > 10/01/2002 02:34 PM ZE2 > > "Simon Chatelain" To: "vtkmailinlist" > @public.kitware.com > Cc: (bcc: John Anast-JM/PGI) > Subject: [vtkusers] Adding slice in a > Sent by: vtkusers-admin@public.kitware.com vtkImageData > 10/01/2002 08:34 AM > > > > > > > Hello, > > I work with medical images. I read it with appropriate reader, and then work > with th vtkImageData. > my problem is that i need to add slices in the imagedata. For example if my > image data has extent (0,255,0,160,0,255) > i want to add 95 slice to the second dimension, so my imagedata is a cube > without changing anything to the original slice. > > Someone can help me ? > > Thanks > > Simon Chatelain > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: < > http://public.kitware.com/cgi-bin/vtkfaq> > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This 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 fxd at ipa.fhg.de Wed Oct 2 02:28:04 2002 From: fxd at ipa.fhg.de (Frank Decker) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] change scalar Value in a large DataSet Message-ID: Hi, My Problem is, that I want to change the scalar values of a big dataset, with the Method SetTuple1(const vtkIdType I, float value). After I?ve set several values (not all values, only a few) , I call the function Modified(), so that I can see the results. The Problem is, that the System show me the results after 1-2 seconds. It is quite slowly, although I?ve got a very fast PC System. Here is my Code: CVTKRenderer::CVTKRenderer() { m_pRenderer = vtkRenderer::New(); m_pRenderWindow = vtkWin32OpenGLRenderWindow::New(); m_pRenderWindow->AddRenderer(m_pRenderer); m_pInteractor = vtkWin32RenderWindowInteractor::New(); m_pWerkstueck = vtkPolyData::New(); } void CVTKRenderer::readData() { .... ...... vtkPoints *pPolygonPoints = vtkPoints::New(); vtkCellArray *pCellArray = vtkCellArray::New(); vtkFloatArray *pSkalarValue = vtkFloatArray::New(); for(int i=0;i27000 //read all Points and put it in the vtkStructure pPunkt = &CWrk.pWrkStk[i]; pPolygonPoints->InsertPoint(i,pPunkt->pkt); pSkalarValue->InsertTuple1(i,(float)pPunkt->dh); } for(i=0;i55000 pPunkt = &CWrk.pWrkStk[i]; pts[0]=CWrk.pZord[i].n1; pts[1]=CWrk.pZord[i].n2; pts[2]=CWrk.pZord[i].n3; pts[3]=CWrk.pZord[i].n4; // --------Speichern des Polygons in eine vtk interne Struktur pCellArray->InsertNextCell(CWrk.pZord[0].neck,pts); } m_pWerkstueck->SetPoints(pPolygonPoints); m_pWerkstueck->SetPolys(pCellArray); m_pWerkstueck->GetPointData()->SetScalars(pSkalarValue); m_pWerkstueckMapper->SetInput(m_pWerkstueck); m_pWerkstueckActor->SetMapper(m_pWerkstueckMapper); m_pRenderer->AddActor(m_pWerkstueckActor); } void CVTKRenderer::setSkalarValue(int pointID) { vtkDataArray *pDataArray = m_pWerkstueck->GetPointData()->GetScalars(); pDataArray->SetTuple1(pointID, CWrk.pWrkStk[pointID]); m_pWerkstueck->Modified(); // !!!!!!!!!this Methode returns after 1300 ms } Is there an other way to solve this Problem.^ Many Thanks in advance for your help Frank Decker From bryan.cole at teraview.co.uk Wed Oct 2 05:02:32 2002 From: bryan.cole at teraview.co.uk (bryan cole) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <15769.60612.780206.287900@monster.linux.in> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> <15769.60612.780206.287900@monster.linux.in> Message-ID: <1033549383.8543.10.camel@bryan.teraviewhq.local> Thanks, this clarifies things somewhat. How about the following: Take the case where I want to replace a section of the visualisation pipline. Source->Filter1->Filter2->Mapper If I disconnect the pair of filters (for example) by resetting the inputs and outputs of the mapper and source respectively, to replace them with some other filters, how do I destroy the redundant Filter1 and Filter2? According to my understanding, using del Filter1 del Filter2 will simply remove the label for each filter (hence decreasing their ref-counts by one). However Since the filters are still connected to each other, they still have references >=1 so are not destroyed. Thus I must break the connection between the filters before they are destroyed. How do I do this? Can I set their inputs to NULL? Bryan > > So here is an example demonstrating how it all works: > > >>> import sys > >>> import vtk > >>> cs = vtk.vtkConeSource() > >>> out = cs.GetOutput() > >>> print sys.getrefcount (out) > 2 > >>> print out.GetReferenceCount () > 3 > >>> m = vtk.vtkPolyDataMapper() > >>> m.SetInput(out) > >>> print out.GetReferenceCount() > 4 > >>> print sys.getrefcount (out) > 2 > >>> o = out > >>> sys.getrefcount (out) > 3 > >>> print out.GetReferenceCount () > 4 > # Now how are objects deleted? > >>> print cs.GetReferenceCount() > 3 > >>> print sys.getrefcount(cs) > 2 > # Now turn on debug to see if the object is indeed deleted. > >>> cs.DebugOn() > >>> del cs > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 > vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 2 > > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 230 > vtkConeSource (0x819e468): UnRegistered by NULL, ReferenceCount = 1 > >>> > # this object is not deleted because out still holds a reference > # internally. > >>> del out > # still nothing happens because GetOutput() is still held by the > # mapper. > >>> del m > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 225 > vtkConeSource (0x819d1d0): UnRegistered by vtkPolyData (0x8136640), ReferenceCount = 0 > > Debug: In /skratch/prabhu/vtk/cvs/VTK/Common/vtkObject.cxx, line 126 > vtkObject (0x819d1d0): Destructing! > > I think this explains everything. :) > > prabhu -- Bryan Cole Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge CB4 0WG, United Kingdom. tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382 From PS7278514B at ntu.edu.sg Wed Oct 2 04:54:10 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] About the Solid CAD File Output. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A67D@mail02.student.main.ntu.edu.sg> Dear VTK- Users: I want to export the Solid *.stl Format file for the Rapid Prototyping Technology. But I can only get the IsoSurface *.stl Format outout file using vtkMarchingCubes Class. The source code is: ....... vtkMarchingCubes *iso=vtkMarchingCubes::New(); iso->SetInput(v16->GetOutput()); iso->SetValue(0,1150); iso->ComputeGradientsOn(); iso->ComputeScalarsOff(); .... How can I get the Solid *.STL Format output file? *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From david.netherway at adelaide.edu.au Wed Oct 2 05:24:20 2002 From: david.netherway at adelaide.edu.au (David Netherway) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] About the Solid CAD File Output. References: <0C42D409AF10B1428A0B026FB160A5BE33A67D@mail02.student.main.ntu.edu.sg> Message-ID: <006801c269f5$7d107610$0d8156c0@acfu.wch.sa.gov.au> Hello Yan, I am not sure what you are refering to here. The stl format typically encodes a triangular surface mesh that can be used to make solid models using rapid prototyping technology. If you mean a solid mesh for finite element analysis then that is a different problem. David ----- Original Message ----- From: "#YAN RI AN#" To: "Vtkusers (E-mail)" Sent: Wednesday, 02 October, 2002 6:24 PM Subject: [vtkusers] About the Solid CAD File Output. > Dear VTK- Users: > I want to export the Solid *.stl Format file for the Rapid Prototyping Technology. > But I can only get the IsoSurface *.stl Format outout file using vtkMarchingCubes Class. > > The source code is: > ....... > vtkMarchingCubes *iso=vtkMarchingCubes::New(); > iso->SetInput(v16->GetOutput()); > iso->SetValue(0,1150); > iso->ComputeGradientsOn(); > iso->ComputeScalarsOff(); > .... > > How can I get the Solid *.STL Format output file? > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 karga314 at student.liu.se Wed Oct 2 07:47:31 2002 From: karga314 at student.liu.se (=?windows-1252?Q?Karin_Gardstr=F6m?=) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Vtk pipeline, interaction Message-ID: <720dd76d01.76d01720dd@student.liu.se> Hi, I am trying to build my own interaction technique in my vtk-program. The reason is that I want to use a 6DOF tracker input device instead of the mouse. However I'm having a problem with the vtk pipeline. Now I'm using the AddObserver() function to execute a vtkCommand that updates the input position but then the process never exits the command to continue the pipeline. How should I do to tell the pipeline that the information is continuously updated? As it is now the only frame I can manipulate the position in is the first frame . Anybody knows how to do this? Thanks, Karin From wind at climate.gsfc.nasa.gov Wed Oct 2 09:28:12 2002 From: wind at climate.gsfc.nasa.gov (Gala Wind) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] VTK40+MacOSX1015+TCL In-Reply-To: Message-ID: Man, I had the same problem about a week ago. Download the nightly release of VTK, that builds just fine and does the right thing. -- Gala On Tuesday, October 1, 2002, at 02:44 PM, Shibaji Shome wrote: > Hello, > I am trying to get VTK 4.0 installed on a MacG4 running OSX > 10.1.5, but I am unable to do so. There was a tutorial on > macdevcenter.com but that wasnt of much help and neither was the vtk > mailing list archives. I reached the point where I could install cmake > but things have gown downhill since. If anyone could point me in the > right direction to go about this, I would really appreciate it. > Thanks! > Cheers, > Shibaji > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From maurice at akst.tn.tudelft.nl Wed Oct 2 10:59:45 2002 From: maurice at akst.tn.tudelft.nl (Maurice van de Rijzen) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] vtkDataSetMapper and lookuptable ? Message-ID: <3D9B09E1.80108@akst.tn.tudelft.nl> Dear all, I 've a problem. I'm using tetraeders to generate a velocity model of the earth. Using vtkUnstructuredGridReader reader reader SetFileName "model.vtk" reader SetLookupTableName "my_table" reader SetScalarsName "my_scalar" reader SetVectorsName "my_vector" vtkShrinkFilter shrink shrink SetInput [reader GetOutput] shrink SetShrinkFactor 0.9 vtkDataSetMapper map map SetInput [shrink GetOutput] I know for this example that the scalars are in between 0.2 and 0.3. I can visualize the dataset on screen and I can disrimate the difderence between 0.2 and 0.3. However, when I add the following command: map SetScalarRange 0.2 0.3 I can no longer discrimate the different points and all the point have the same color. In both cases I've not created an instance of vtkLookupTable, I assumed the mapper would take care of it. I'm obviously forgetting something but I don't know what. Maurice From e9625803 at student.tuwien.ac.at Wed Oct 2 11:55:56 2002 From: e9625803 at student.tuwien.ac.at (christoph) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] multiple views (mfc), looking for an example... Message-ID: <001701c26a2c$31a81700$b92d8280@atp.tuwien.ac.at> Dear vtk-users! For my "CAD-like" application I need serveral (4) views (front, top, left, perspective) of the same set of actors. I am new to VTK, so I first modified the "...GUI\Win32\SampleMFC" and added a CSplitterWnd to the childframe. The behavior of this was little strange: in some panes (of the splitterwnd) the actors were not rendered. I read the mailinglist and noticed that each renderwindow needs his own actors and mappers. So I rewrote the mfcsample and added an actor and a mapper to each view sharing the same "vtkPolyData" as input. Now erverything works fine until I maximize the CChildFrame: If I use the Inteactor of the bottom-left pane, the renderd scene is displayed in the top-right pane. (ImmediateModeRenderingOn() had no effect on this) (I am using vtk 4.0 and WIN98) Can anybody tell me what is going wrong, or is there an example of how to use splitterwindows or multiple views with VTK? Thank you in advance, Christoph From lisa.avila at kitware.com Wed Oct 2 11:47:51 2002 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Is this a bug in vtkVolumeTextureMapper2D.cxx? In-Reply-To: <3D975BA8.25850.22FC43B@localhost> Message-ID: <5.0.2.1.0.20021002114703.00a12be0@pop.biz.rr.com> Hello Jianlong, No - this is not a bug. The parameter should be texture, not tptr. The texture pointer refers to the beginning of the texture block while tptr is used while filling it in. Lisa At 07:59 PM 9/29/02 +0200, Jianlong Zhou wrote: >Hi, vtk users, > >I am using vtkVolumeTextureMapper2D.cxx in my application. I found that >this may be >a bug in the file vtkVolumeTextureMapper2D.cxx: > >in line 471, > me->RenderQuads( tile, v, t, texture, textureSize, 0); > >the "texture" should be "tptr". > >Do you think wheather this is a bug? > >Thank you very much. > >Best regards, > >Jianlong > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From krs at cs.uncc.edu Wed Oct 2 11:50:08 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] vtk+fltk.. Message-ID: <3D9B15B0.5F653911@cs.uncc.edu> FLTK + vtk users: The render window and related classes with version 2.0 of fltk? If not, which version should I use? Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From prabhu at aero.iitm.ernet.in Wed Oct 2 11:07:00 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] Destroying objects from Python In-Reply-To: <1033549383.8543.10.camel@bryan.teraviewhq.local> References: <1033443146011395@caramail.com> <1033490098.7258.31.camel@bryan.teraviewhq.local> <15769.60612.780206.287900@monster.linux.in> <1033549383.8543.10.camel@bryan.teraviewhq.local> Message-ID: <15771.2964.802334.240279@monster.linux.in> >>>>> "BC" == bryan cole writes: [snip] Source-> Filter1->Filter2->Mapper BC> If I disconnect the pair of filters (for example) by resetting BC> the inputs and outputs of the mapper and source respectively, BC> to replace them with some other filters, how do I destroy the BC> redundant Filter1 and Filter2? BC> According to my understanding, using del Filter1 del Filter2 BC> will simply remove the label for each filter (hence decreasing BC> their ref-counts by one). However Since the filters are still BC> connected to each other, they still have references >=1 so are BC> not destroyed. Thus I must break the connection between the BC> filters before they are destroyed. How do I do this? Can I BC> set their inputs to NULL? You can set the inputs to None which will be translated to NULL internally. cheers, prabhu From imho at skynet.be Wed Oct 2 12:44:08 2002 From: imho at skynet.be (imho) Date: Mon May 24 19:15:45 2004 Subject: [vtkusers] [JAVA] VTK make menubar invisible Message-ID: <3D9B2258.1000208@skynet.be> Hi, when I have a VTK window, if I scroll down a menubar, I can't see it, because the VTK is on up! WHat can I do? thanks From jeff at cdnorthamerica.com Wed Oct 2 13:04:55 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] [JAVA] VTK make menubar invisible References: <3D9B2258.1000208@skynet.be> Message-ID: <3D9B2737.2050603@cdnorthamerica.com> JPopupMenu.setDefaultLightWeightPopupEnabled( false ); imho wrote: > Hi, > when I have a VTK window, if I scroll down a menubar, I can't see it, > because the VTK is on up! > WHat can I do? > > 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 chandra at strandgenomics.com Wed Oct 2 13:06:59 2002 From: chandra at strandgenomics.com (Chandra Shekhar) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] wxPython and VTk - sample app wanted. References: <15766.54209.811738.710531@monster.linux.in> Message-ID: <001d01c26a36$1efa8cf0$764f3eca@strand18> Hi , I am trying to integrate wxPython and VTK and for some reason ( may be i havent tried hard enough ) the samples dont seem to work . The individual samples provided do work ( albeit only after resizing their window ). Could some one provide a small example in wxPython containing some wxPython widgets on the left and vtk rendering window on the right ( may be some thing like split pane with widgets on left and vtk render window on right . if some one could provided this small app , that would give me some thing to tinker around and build on . Advance thanks . rgds chandra ----- Original Message ----- From: "Prabhu Ramachandran" To: "VTK users list" Sent: Sunday, September 29, 2002 3:49 PM Subject: [vtkusers] FAQ entry - Python - ValueError: method requires a VTK object. > hi, > > I just added a FAQ entry for the Python error that folks get where you > receive a traceback saying: > > ValueError: method requires a VTK object > > You can review it here: > > http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq02.004.htp > > Thanks, > 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 anast.jm at pg.com Wed Oct 2 13:09:52 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] About the Solid CAD File Output. Message-ID: Yan, STL only supports surfaces using triangles (the surface defines the enclosed volume, which is exactly what your MarchingCubes is doing). If you need to create a tetrahedral mesh, try looking at vtkDelauney3D and its examples for some ideas. I've used surface triangles in STL format to generate solid parts with RP and it works fine. If you have a surface that is not closed, try extruding the surface to create an enclosed volume (see vtkLinearExtrusionFilter with capping on) before saving to STL...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "#YAN RI AN#" @public.kitware.com on 10/02/2002 04:54 PM ZE8 "#YAN RI AN#" To: "Vtkusers (E-mail)" @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] About the Solid CAD File Sent by: Output. vtkusers-admin@public.kitware.com 10/02/2002 04:54 AM Dear VTK- Users: I want to export the Solid *.stl Format file for the Rapid Prototyping Technology. But I can only get the IsoSurface *.stl Format outout file using vtkMarchingCubes Class. The source code is: ....... vtkMarchingCubes *iso=vtkMarchingCubes::New(); iso->SetInput(v16->GetOutput()); iso->SetValue(0,1150); iso->ComputeGradientsOn(); iso->ComputeScalarsOff(); .... How can I get the Solid *.STL Format output file? *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** _______________________________________________ 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 canali at ecse.rpi.edu Thu Oct 3 13:20:21 2002 From: canali at ecse.rpi.edu (Ali Can) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] Texture mapping on a sphere. Bugs? Message-ID: <002d01c26b01$278e6d20$35777180@censsis> A beginner needs help: I want to map a texture on a sphere but encountered the following problems: Please see http://www.cs.rpi.edu/~cana/Problems.htm 1) The ascept ratio is lost, although I am using the same scale factor for each dimension xform[1]->SetScale(1.3, 1.3, 1.3); 2) There is a leak in the texture.... Please see the above web site. 3) I couldn't find any documentation about what the units are for the command xform->SetPosition(float, float, float); What are the units of these floats; rad, degree, pixel? More importantly, if you can direct me to web adresses that I can find such information that would be great. I used the following classes. sphere = vtkSphereSource::New(); tmapper = vtkTextureMapToSphere::New(); vtkTransformTextureCoords *xform; vtkDataSetMapper *sphereMapper; texture->SetInput(picReader->GetOutput()); texture->InterpolateOff(); texture->RepeatOff(); sphereActor->SetMapper(sphereMapper); sphereActor->SetTexture(texture); Thanks, Ali Can, Woods Hole Oceanographic Institution, Deep Submergence laboratory, Blake 206, MS #7, Woods Hole, MA, 02543. Tel: (508) 289-3740 Fax: (508) 457-2191 Email: acan@whoi.edu Web: http://www.cs.rpi.edu/~cana/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021003/879388ca/attachment.htm From wind at climate.gsfc.nasa.gov Wed Oct 2 13:21:59 2002 From: wind at climate.gsfc.nasa.gov (Gala Wind) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtk data file format question Message-ID: <75386356-D62B-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov> Hi everybody, I have a set of data in an ASCII text file. It's an airplane's flight track, so I have lat/long and altitude info and also some onboard instrument data. The coords and altitude map nicely into the xyz point coordinates. I would like the instrument data to be the scalars for the polydata line that gets created. But I have two sets of data and the vtk data file format (.vtk) only seems to allow one set of plain scalars, can't have scalars with more than one component. I guess I could add the second set by hand, but I would like to know if there is anything I can do to just put all the data into one vtk datafile, so I can just use vtkPolyDataReader to read it all and assemble it correctly. Thanks for any tips. -- Gala Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From krw at viz-solutions.com Wed Oct 2 13:42:45 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtk data file format question In-Reply-To: <75386356-D62B-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov > Message-ID: <5.1.0.14.0.20021002103737.00aa57c8@mail.viz-solutions.com> At 10:21 AM 10/2/2002 -0700, you wrote: >Hi everybody, > >I have a set of data in an ASCII text file. It's an airplane's flight >track, so I have lat/long and altitude info and also some onboard >instrument data. The coords and altitude map nicely into the xyz point >coordinates. I would like the instrument data to be the scalars for the >polydata line that gets created. But I have two sets of data and the vtk >data file format (.vtk) only seems to allow one set of plain scalars, >can't have scalars with more than one component. I guess I could add the >second set by hand, but I would like to know if there is anything I can do >to just put all the data into one vtk datafile, so I can just use >vtkPolyDataReader to read it all and assemble it correctly. You can enter as many scalar/vector fields as you want using the FIELD tag in the polydata file: FIELD .... for example, a single scalar field of 300 floating point numbers might look like: FIELD extraScalar 1 InstrReading 1 300 float 1.2 1.4 1.2 1.7 ..... From galen at sp1.compbio.washington.edu Wed Oct 2 13:52:37 2002 From: galen at sp1.compbio.washington.edu (Galen Wilkerson) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] pipeline documentation/intro Message-ID: Anyone know the best way to tell which classes belong to which parts of the pipeline? I'm new to this, but it seems like the general info online is: "hey, there's this pipeline thing, you have to learn about it!!", then a black hole of information. Same goes for the graphical model, which is evidently the other thing to understand. -Galen From goodwin.lawlor at ucd.ie Wed Oct 2 07:36:05 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] (no subject) References: <000501c26942$143b16d0$2000a8c0@devlab1xp> Message-ID: <001101c26a07$e6659ed0$0e9701c1@highcross> Have a look at decimate.tcl in vtk3.n ----- Original Message ----- From: Michele Zamponi To: vtkusers@public.kitware.com Sent: Tuesday, October 01, 2002 1:00 PM Subject: [vtkusers] (no subject) Hi All! Does anybody know the best way to implement an Undo/Redo manager under vtk? Thank you in advance for any help. Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021002/9fb119bc/attachment.html From schwabs at mindspring.com Wed Oct 2 15:00:31 2002 From: schwabs at mindspring.com (Hal Schwab) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtkTubeFilter question Message-ID: <000701c26a45$fb948ee0$f0320bb4@porky> Hi All, I have a vtkPolyData that contains a polyline. Each line segment (cell) has scalar data attached. This is the input to a vtkTubeFilter. How can I have the cell scalar data of the input copied to the output cells. I tried CopyScalarsOn(), but it had no effect. Thank you. Hal From prabhu at aero.iitm.ernet.in Wed Oct 2 14:24:50 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] pipeline documentation/intro In-Reply-To: References: Message-ID: <15771.14834.15342.986793@monster.linux.in> >>>>> "GW" == Galen Wilkerson writes: GW> Anyone know the best way to tell which classes belong to which GW> parts of the pipeline? I'm new to this, but it seems like the GW> general info online is: "hey, there's this pipeline thing, you GW> have to learn about it!!", then a black hole of information. GW> Same goes for the graphical model, which is evidently the GW> other thing to understand. This might help: http://www.vtk.org/doc/nightly/html/ You also need to buy the VTK book to understand the whole thing. Look at the doc section in Sebastien's links page. There are a few articles there that you might be able to read. good luck. prabhu From joao.pompei at cenpra.gov.br Wed Oct 2 15:26:55 2002 From: joao.pompei at cenpra.gov.br (=?iso-8859-1?Q?Jo=E3o?= Paulo Simonaio Pompei) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] Measuring References: <20021002104025.10015.27282.Mailman@public.kitware.com> Message-ID: <3D9B487F.3E70D4BF@cenpra.gov.br> Hello, There is a class or function in VTK to measure the distance between two pixels in a 2d image, or to measure two voxels in a volume? I hope somebody knows it ! :) Thanks, JP From jneumann at cfar.umd.edu Wed Oct 2 16:26:32 2002 From: jneumann at cfar.umd.edu (Jan Neumann) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] OpenGl Linking Problems with Cygwin on Win2000 In-Reply-To: <20021002172301.22521.51306.Mailman@public.kitware.com> Message-ID: Hi, I have been using vtk for a while on solaris, but now I need to move to a win2k machine. I tried to compile the nightly release from today using cygwin and gcc-2.95-3, but during the linking stage of the libvtkRendering library I always have the problem that the references to all the open gl functions are undefined : (last line of error messages for static libraries): ... /cygdrive/g/Tools/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)( 3b45):vtkWin32OpenGLTextMapper.cxx: undefined reference to `glPopMatrix' collect2: ld returned 1 exit status make[3]: *** [/cygdrive/g/Tools/VTK/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 A similar problem also occurs if I try compile shared libraries, only then the linker already complains when it tries to build the library libvtkRendering.dll (also with undefined references to open gl calls). I have the cygwin open gl files installed (/usr/lib/include/GL/gl.h , /usr/lib/w32api/opengl32.a) and the opengl32.dll from windows is in the cygwin path. Does anybody have any hints how I can get this to work? Are there any special flags for cygwin/opengl that I need to set in the CMake config files? Thanks for any help, Jan ________________________________________________ \\\/ Jan Neumann @ @ > http://www.cfar.umd.edu/~jneumann \/ http://www.videogeometry.com ## ________________________________________________ From kmorel at sandia.gov Wed Oct 2 17:25:34 2002 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] Volume rendering data that is not vtkImageData Message-ID: I have been tasked with porting some of our unstructured volume rendering code to VTK and am having trouble figuring out how to add classes to the mapper/actor class hierarchies. It seems that the vtkVolume class provides the functionality I need in a prop/actor. However, vtkVolume is constrained to using a vtkVolumeMapper, which is constrained to using a vtkImageData as its input. This is a problem because I want to build a volume rendering mapper that accepts a vtkUnstructuredGrid as its input. Is there a way to use the vtkVolume class with mappers that do not render vtkImageData, or is there a trivial change that could be made that would allow it to? Adding a vtkAbstractVolumeMapper between vtkAbstractMapper3D and vtkVolumeMapper might do the trick. Or is it really necessary to write a separate prop class for volume rendering each of the vtkImageData, vtkRectilinearGrid, vtkStructuredGrid, and vtkUnstructuredGrid data object types? -Ken **** Kenneth Moreland *** Sandia National Laboratories *********** *** *** *** email: kmorel@sandia.gov ** *** ** phone: (505) 844-8919 *** fax: (505) 844-9297 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2455 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021002/eec3ab23/attachment.bin From c.p.botha at its.tudelft.nl Wed Oct 2 18:00:23 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtk+fltk.. In-Reply-To: <3D9B15B0.5F653911@cs.uncc.edu> References: <3D9B15B0.5F653911@cs.uncc.edu> Message-ID: <20021002220023.GA31889@dutidad.twi.tudelft.nl> On Wed, Oct 02, 2002 at 11:50:08AM -0400, K.R.Subramanian wrote: > FLTK + vtk users: The render window and related classes with version 2.0 > of fltk? If not, vtkFlRenderWindowInteractor has been tested to work with fltk1.1.0rc3, so it should work with 1.1. AFAICS, FLTK 2.0 has not been released yet. As soon as that happens, I will make sure that the class works with that. Regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From nundys at neuro.duke.edu Tue Oct 1 20:30:11 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtkPanel.java on OS X Message-ID: <1C48836A-D59E-11D6-BC86-000393B290A0@neuro.duke.edu> Thanks to all who kindly helped with my OS X problems. I have now successfully built vtk on OS X 10.2.1. I am having trouble using vtkPanel.java, though. Programs that use it seem to hang, after starting a few event listeners. Does anyone have any code that uses it successfully (and have they changed it to make it work)? Thanks, Surajit Nunyd From jmanjon at fis.upv.es Thu Oct 3 04:10:12 2002 From: jmanjon at fis.upv.es (jose manjon) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] Freeing memory error!!! References: <20021002172301.22521.51306.Mailman@public.kitware.com> Message-ID: <3D9BFB64.7FE52E90@fis.upv.es> Hi there, I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. I do all the Delete() for all the objects but it has no response. can anyone tell me what I am doing wrong?? thanks jose the code: CRenderView::CRenderView() { opacidad=0; } CRenderView::~CRenderView() { AfxMessageBox("freeing ..."); datos1->Delete(); datos2->Delete(); datos3->Delete(); lut->Delete(); plane1->Delete(); plane2->Delete(); plane3->Delete(); planeMapper1->Delete(); planeMapper2->Delete(); planeMapper3->Delete(); text1->Delete(); text2->Delete(); text3->Delete(); planeActor1->Delete(); planeActor2->Delete(); planeActor3->Delete(); AfxMessageBox("free"); } void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) { // ORTHOGONAL VIEWER unsigned short * p; C3DFrame* frame; CImageView* v1; CImageView* v2; CImageView* v3; CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); frame=((C3DFrame*)GetParentFrame()); v1=frame->GetView(0,1); v2=frame->GetView(1,0); v3=frame->GetView(1,1); int nx=v1->IA; int ny=v2->IA; int nz=v3->IA; lut=vtkLookupTable::New(); lut->SetNumberOfColors(256); double B,G,R; for(int i=0;i<1024;i=i+4) { B=(double)v1->ani->m_pDIB[40+i]/255; G=(double)v1->ani->m_pDIB[40+i+1]/255; R=(double)v1->ani->m_pDIB[40+i+2]/255; if(i/4SetTableValue(i/4,R,G,B,0); else lut->SetTableValue(i/4,R,G,B,1); } lut->SetTableRange(0,255); /////////// PLANO AXIAL ///////////////////////////////////////////////////// datos1=vtkStructuredPoints::New(); datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); datos1->SetScalarType(VTK_UNSIGNED_SHORT); datos1->SetNumberOfScalarComponents(1); datos1->AllocateScalars(); p=(unsigned short *) datos1->GetScalarPointer(); for(int y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; } plane1=vtkPlaneSource::New(); plane1->SetNormal(0,0,1); planeMapper1=vtkPolyDataMapper::New(); planeMapper1->SetInput(plane1->GetOutput()); text1=vtkTexture::New(); text1->SetInput(datos1); text1->SetLookupTable(lut); text1->InterpolateOn(); planeActor1=vtkActor::New(); planeActor1->SetMapper(planeMapper1); planeActor1->SetTexture(text1); /////////// PLANO CORONAL ///////////////////////////////////////////////////// datos2=vtkStructuredPoints::New(); datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); datos2->SetScalarType(VTK_UNSIGNED_SHORT); datos2->SetNumberOfScalarComponents(1); datos2->AllocateScalars(); p=(unsigned short *) datos2->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; } double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; yr=yr*(pDoc->resz/pDoc->resx); plane2=vtkPlaneSource::New(); plane2->SetNormal(0,1,0); plane2->SetOrigin(-0.5,0,-yr); plane2->SetPoint1(0.5,0,-yr); plane2->SetPoint2(-0.5,0,yr); plane2->SetXResolution(1); plane2->SetYResolution(1); planeMapper2=vtkPolyDataMapper::New(); planeMapper2->SetInput(plane2->GetOutput()); text2=vtkTexture::New(); text2->SetInput(datos2); text2->SetLookupTable(lut); text2->InterpolateOn(); planeActor2=vtkActor::New(); planeActor2->SetMapper(planeMapper2); planeActor2->SetTexture(text2); /////////// PLANO SAGITAL ///////////////////////////////////////////////////// datos3=vtkStructuredPoints::New(); datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); datos3->SetScalarType(VTK_UNSIGNED_SHORT); datos3->SetNumberOfScalarComponents(1); datos3->AllocateScalars(); p=(unsigned short *) datos3->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; } plane3=vtkPlaneSource::New(); plane3->SetNormal(1,0,0); plane3->SetOrigin(0,-0.5,-yr); plane3->SetPoint1(0, 0.5,-yr); plane3->SetPoint2(0,-0.5, yr); plane3->SetXResolution(1); plane3->SetYResolution(1); planeMapper3=vtkPolyDataMapper::New(); planeMapper3->SetInput(plane3->GetOutput()); text3=vtkTexture::New(); text3->SetInput(datos3); text3->SetLookupTable(lut); text3->InterpolateOn(); planeActor3=vtkActor::New(); planeActor3->SetMapper(planeMapper3); planeActor3->SetTexture(text3); /////////// CUBO ///////////////////////////////////////////////////// vtkCubeSource * cube=vtkCubeSource::New(); cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); cubeMapper->SetInput(cube->GetOutput()); vtkActor *cubeActor=vtkActor::New(); cubeActor->SetMapper(cubeMapper); cubeActor->GetProperty()->SetRepresentationToWireframe(); /////////// RENDER ///////////////////////////////////////////////////// this->Renderer->SetBackground(0.05,0.15,0.45); this->Renderer->AddActor(planeActor1); this->Renderer->AddActor(planeActor2); this->Renderer->AddActor(planeActor3); this->Renderer->AddActor(cubeActor); vtkCamera * cam=this->Renderer->GetActiveCamera(); cam->Elevation(90); cam->Azimuth(180); vtkLight *light1 = vtkLight::New(); light1->SetPosition(1,0,1); vtkLight *light2 = vtkLight::New(); light2->SetPosition(0,1,1); vtkLight *light3 = vtkLight::New(); light3->SetPosition(-1,0,1); vtkLight *light4 = vtkLight::New(); light4->SetPosition(0,-1,1); this->Renderer->AddLight(light1); this->Renderer->AddLight(light2); this->Renderer->AddLight(light3); this->Renderer->AddLight(light4); cube->Delete(); cubeMapper->Delete(); cubeActor->Delete(); Actualizar(); } void CRenderView::Actualizar() { this->Renderer->RemoveActor(planeActor1); this->Renderer->RemoveActor(planeActor2); this->Renderer->RemoveActor(planeActor3); unsigned short * p; C3DFrame* frame; CImageView* v1; CImageView* v2; CImageView* v3; CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); frame=((C3DFrame*)GetParentFrame()); v1=frame->GetView(0,1); v2=frame->GetView(1,0); v3=frame->GetView(1,1); int nx=v3->IA; int ny=v2->IA; int nz=v1->IA; double B,G,R; for(int i=0;i<1024;i=i+4) { B=(double)v1->ani->m_pDIB[40+i]/255; G=(double)v1->ani->m_pDIB[40+i+1]/255; R=(double)v1->ani->m_pDIB[40+i+2]/255; if(i/4SetTableValue(i/4,R,G,B,0); else lut->SetTableValue(i/4,R,G,B,1); } lut->SetTableRange(0,255); /////////// PLANO AXIAL ///////////////////////////////////////////////////// p=(unsigned short *) datos1->GetScalarPointer(); for(int y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; } double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; yr=yr*(pDoc->resz/pDoc->resx); plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); planeMapper1->SetInput(plane1->GetOutput()); text1->SetInput(datos1); text1->SetLookupTable(lut); text1->InterpolateOn(); planeActor1->SetMapper(planeMapper1); planeActor1->SetTexture(text1); /////////// PLANO CORONAL ///////////////////////////////////////////////////// p=(unsigned short *) datos2->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; } plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); planeMapper2->SetInput(plane2->GetOutput()); text2->SetInput(datos2); text2->SetLookupTable(lut); text2->InterpolateOn(); planeActor2->SetMapper(planeMapper2); planeActor2->SetTexture(text2); /////////// PLANO SAGITAL ///////////////////////////////////////////////////// p=(unsigned short *) datos3->GetScalarPointer(); for(y=0;yani->Rows;y++) for(int x=0;xani->Columns;x++) { *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; } plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); planeMapper3->SetInput(plane3->GetOutput()); text3->SetInput(datos3); text3->SetLookupTable(lut); text3->InterpolateOn(); planeActor3->SetMapper(planeMapper3); planeActor3->SetTexture(text3); this->Renderer->AddActor(planeActor1); this->Renderer->AddActor(planeActor2); this->Renderer->AddActor(planeActor3); this->Renderer->GetRenderWindow()->Render(); } void CRenderView::SetOpacity(double opa) { opacidad=opa*256; Actualizar(); } \\|// (@ @) +--------------------oOO----(_)----OOo-----------------------+ | | | Prof. Jose Vicente Manj?n Herrera | | | | Group of Medical Bioinformatics | | Department of Aplied Physics | | Computer Science High School | | Technical University of Valencia | | Spain | | | | Email:jmanjon@fis.upv.es | | | +------------------------------------------------------------+ |__|__| || || ooO Ooo From vidya.sivakumar at quest-global.com Thu Oct 3 05:04:41 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] vtkPanel Message-ID: Hi Folks, I have java 1.3.1 and I have installed vtk ver4.0 in windows 2000. But I have problems when I use vtkPanel in my java code and I get an error. Could anybody please help. Thanks, Vidya From imho at skynet.be Thu Oct 3 05:50:17 2002 From: imho at skynet.be (imho) Date: Mon May 24 19:15:46 2004 Subject: [vtkusers] thresholding Message-ID: <3D9C12D9.1020006@skynet.be> Hi, how do I make a thresholding filter on a 2d image, to have a 2colors image with the histogram range? In fact I have in input a DICOM file, and I'd like to isolate an area (coloring it in white, and all the rest in black) who is in a specific greyscale range... Thanks a lot :) From vidya.sivakumar at quest-global.com Thu Oct 3 06:42:24 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] cone Message-ID: Hi Folks, I was wondering if there is any inbuilt function in vtk that would generate a frustrum of a cone with specified dimensions, Any help is appreciated. Thanks, Vidya From p.cook at cs.ucl.ac.uk Thu Oct 3 06:46:49 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] vtkPanel In-Reply-To: <20021003104007.9202.50767.Mailman@public.kitware.com> References: <20021003104007.9202.50767.Mailman@public.kitware.com> Message-ID: <1033642012.2392.2.camel@maraca.cs.ucl.ac.uk> On Thu, 2002-10-03 at 11:40, vtkusers-request@public.kitware.com wrote: > > > Message: 1 > From: "vidya sivakumar" > To: > Date: Thu, 3 Oct 2002 05:04:41 -0400 > Subject: [vtkusers] vtkPanel > > Hi Folks, > I have java 1.3.1 and I have installed vtk ver4.0 in windows 2000. > But I have problems when I use vtkPanel in my java code and I get an error. > Could anybody please help. > Thanks, > Vidya > What is the error? Under JDK 1.4.0 the vtkPanel (version 4.0) won't work because it is in an un-named package. I'm not sure if this is the case in JDK 1.3.1. The problem is fixed in the nightly source release; try building that. From benoit.regrain at creatis.insa-lyon.fr Thu Oct 3 05:24:20 2002 From: benoit.regrain at creatis.insa-lyon.fr (Benoit Regrain) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow Message-ID: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> I believe I might have found two bugs in the class wxVTKRenderWindow as encountered in VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working on Windows 2000 with the VTKNightly dated 10/02/2002. - At launch of the script wxVTKRenderWindow.py, a window appears, but nothing is displayed inside. Things become correct when I resize the window. (This was also reported by Chandra Shekhar, see http://public.kitware.com/pipermail/vtkusers/2002-October/013700.html) I could fix this problem, by changing the line 164 by : try: size = parent.GetSize() except: size = wxDefaultSize The try/except is used to protect the call to parent. - When the script wxVTKRenderWindow.py is launched and when killing the window (by clicking on the window close button, the one with a cross at the upper right), I get the following error message in the Python console : runtime error R6025 - Pure virtual function call This odd/bad behavior desapears when I add the line : widget.GetRenderWindow().RemoveRenderer(ren) at the end of test script, just after the line containing the "MainLoop" function. But I think that the problem is in the class wxVTKRenderWindow : Renderers might be refered to after they have allready been deleted/gced. To address this problem one could handle the proper deconnection of the RenderWindow from it's renderer[s] by adding a destructor to the wxVTKRenderWindow class. The following does the job for me: def __del__(self): renderers = self._RenderWindow.GetRenderers() numRenderers = renderers.GetNumberOfItems() self._CurrentRenderer = None renderers.InitTraversal() for i in range(0,numRenderers): self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) Thanks for considering those problems. Greetings Benoit Regrain Ing?nieur d'?tude CNRS (Creatis) email : regrain@creatis.insa-lyon.fr INSA - B?timent Blaise Pascal 7 avenue Jean Capelle 69621 Villeurbanne Cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021003/30bbe46d/attachment.html From winston at cat.rpi.edu Thu Oct 3 08:18:48 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] cone References: Message-ID: <3D9C35A8.B6D497F5@cat.rpi.edu> vidya sivakumar wrote: > > I was wondering if there is any inbuilt function in vtk that would generate > a frustrum of a cone with specified dimensions, Look at vtkCone & vtkConeSource. -Jeremy From james at rogue-research.com Thu Oct 3 09:23:55 2002 From: james at rogue-research.com (James Dessart) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] view as vtkRenderWindow? Message-ID: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> I've been evaluating VTK, looking through the source, to see if I could adapt it for use in our application. One of the requirements is that any rendering context be usable as a view pane within a window, along with other such contexts. Conceptually, it seems to counter to the VTK philosophy. Is there a reason for this? Is it "political", or technical? From my investigations, based on the platform we're using (Mac OS X, using PowerPlant) it should be relatively trivial. Are there any road blocks I might encounter on the VTK end? James From oliveira_mc at yahoo.com.br Thu Oct 3 09:56:52 2002 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] Window Name Message-ID: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Hi users !! I think that is Bug When i try change the name of Window using: renWin->SetWindowName( "FLAMENGO" ); renWin->Render(); anything change but when i use: renWin->Render(); renWin->SetWindowName( "FLAMENGO" ); renWin->Render(); the name change. I?m using Win XP and VTK 4.0 Tanks for your help and advanced me Marcelo _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/ From dineshms at rocketmail.com Thu Oct 3 10:17:57 2002 From: dineshms at rocketmail.com (Dinesh. M.S) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] Normal Info. from STL file Message-ID: <20021003141757.96882.qmail@web12506.mail.yahoo.com> Hi all, I want to know how to extract/compute the normal information from STL files. Any help in this regard is very well appreciated. Best Regards Siddu --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021003/4b40c269/attachment.htm From andy.cedilnik at kitware.com Thu Oct 3 10:49:11 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] Window Name In-Reply-To: <20021003135652.50753.qmail@web20104.mail.yahoo.com> References: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Message-ID: <1033656551.25772.63.camel@xanth.kitwarein.com> Hello Marcelo, This is a known bug and is caused by the window not being there yet when you do SetWindowName. The first render creates window, then you can set the name. Andy On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > I think that is Bug > > When i try change the name of Window using: > > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > anything change > > but when i use: > > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > the name change. > > I?m using Win XP and VTK 4.0 > > Tanks for your help and advanced me From anast.jm at pg.com Thu Oct 3 11:13:51 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] Normal Info. from STL file Message-ID: see vtkPPolyDataNormals ... john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Dinesh. M.S" @public.kitware.com on 10/03/2002 07:17 AM MST "Dinesh. M.S" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Normal Info. from STL file Sent by: vtkusers-admin@public.kitware.com 10/03/2002 10:17 AM Hi all, I want to know how to extract/compute the normal information from STL files. Any help in this regard is very well appreciated. Best Regards Siddu Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! From anast.jm at pg.com Thu Oct 3 11:24:12 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] cone Message-ID: Vidya, To crop the cone to a frustrum see the example VTK\Examples\Modelling\Tcl\iceCream.tcl Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Jeremy Winston @public.kitware.com on 10/03/2002 08:18 AM AST Jeremy Winston To: vidya sivakumar @public.kitware.com Cc: vtkusers@public.kitware.com (bcc: John Anast-JM/PGI) Sent by: Subject: Re: [vtkusers] cone vtkusers-admin@public.kitware.com 10/03/2002 08:18 AM vidya sivakumar wrote: > > I was wondering if there is any inbuilt function in vtk that would generate > a frustrum of a cone with specified dimensions, Look at vtkCone & vtkConeSource. -Jeremy _______________________________________________ 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 lists at carlh.net Thu Oct 3 12:21:45 2002 From: lists at carlh.net (Carl Hetherington) Date: Mon May 24 19:15:47 2004 Subject: [vtkusers] Writing Postscript files from VTK In-Reply-To: <20021001182154.5a27048f.melvin.hadasht@free.fr> Message-ID: On Tue, 1 Oct 2002, Melvin Hadasht wrote: > Hi Carl, > > on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) > Carl Hetherington wrote: > > > Hi, > > > > I'm interested in writing vector Postscript files of VTK renderings. > > Consulting the mailing list archive suggests that gl2ps might be able to > > do this. I've tried the following example: > > > > /* Set up a render window with a wireframe representation of a > > ** vtkPolyData. > > */ > > > > /* ... */ > > > > FILE* fp = fopen("test.eps", "w"); > > int buffsize = 0; > > int state = GL2PS_OVERFLOW; > > > > while (state == GL2PS_OVERFLOW) > > { > > buffsize += 1024*1024; > > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > > buffsize, fp, NULL); > > You should test for the return value of fopen. Maybe the problem was there. > > I don't know the following may help or not, but in an old code I had the > filename also as the last argument of gl2psBeginPage{...char *filename; File *fp > = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember > why I did that. Thanks for the reply. Seems to be working today, so perhaps it was me not checking the file pointer... idiot that I am. Thanks Carl From prabhu at aero.iitm.ernet.in Thu Oct 3 13:33:25 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] view as vtkRenderWindow? In-Reply-To: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> References: <5DADC9AC-D6D3-11D6-94F6-003065B4553E@rogue-research.com> Message-ID: <15772.32613.268194.988468@monster.linux.in> >>>>> "JD" == James Dessart writes: JD> I've been evaluating VTK, looking through the source, to see JD> if I could adapt it for use in our application. One of the JD> requirements is that any rendering context be usable as a view JD> pane within a window, along with other such contexts. JD> Conceptually, it seems to counter to the VTK philosophy. Is JD> there a reason for this? Is it "political", or technical? If you mean embedding a VTK rendering window in an application, it already works well. Many of the examples dont build a GUI and simply illustrate the power of VTK alone. Some of them do build GUI's. For instance look at Examples/VisualizationAlgorithms/Tcl/TransformTextureCoords.tcl This is in the VTK 4.x cvs tree. cheers, prabhu From p.cook at cs.ucl.ac.uk Thu Oct 3 13:38:40 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] libmawt and libvtkRenderingJava on Solaris Message-ID: <1033666721.2420.9.camel@maraca.cs.ucl.ac.uk> I have built VTK (CVS, CMake 1.4 patch 3) semi-successfully on Solaris 2.8 . My C++ VTK code is fine, but when trying to load the Java example (with JDK 1.4.0_01 or JDK 1.4.1), I get the following: Exception in thread "main" java.lang.UnsatisfiedLinkError: /cs/research/medim/common0/green/common/VTK4n/lib/vtk/libvtkRenderingJava.so: ld.so.1: java: fatal: libmawt.so: open failed: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at test.(test.java:13) I initially thought this was a problem with Java, but I can run other code that uses the AWT. I only see this with VTK. Thanks, Phil From Steffen.Oeltze at Student.Uni-Magdeburg.DE Thu Oct 3 13:40:53 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] vtkHedgeHog in 2D? Message-ID: <3D9C8125.1090403@student.uni-magdeburg.de> Dear VTK users, I would like to display an image together with a 2D HedgeHog-plot that shows a vector at each image pixel. Is that possible with VTK ? Regards, Steffen Oeltze From krs at cs.uncc.edu Thu Oct 3 14:23:59 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] vtk book - out of print?? Message-ID: <3D9C8B3F.1C4AB294@cs.uncc.edu> I was wondering if the book is in print now (our bookstore sent me a note saying it was out of print) - I remember seeing a message that this was being resolved several months back. Anyone have a clue? -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From oliveira_mc at yahoo.com.br Thu Oct 3 15:38:56 2002 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] events in Keyboard Message-ID: <20021003193856.16857.qmail@web20106.mail.yahoo.com> Hi user?s I?m try to rotate, scale and translate the objects using keyboard, but i?m not have success. Where i can find examples, What is the class that i have to use. Tanks for you help and advaced me. _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/ From pahsieh at usgs.gov Thu Oct 3 15:52:31 2002 From: pahsieh at usgs.gov (Paul A Hsieh) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Problem with vtkCamera::GetOrientationWXYZ Message-ID: After a relatively long hiatus from this mailing list, I hope to be back on board. I am revising an application from using VTK 3.1 to 4.0 and I ran into an inconsistency in the result returned by vtkCamera::GetOrientationWXYZ. This is illustrated by the following C++ sample code: #include "vtkCamera.h" void main() { vtkCamera *cam = vtkCamera::New(); cam->SetPosition(40.5388, -58.1675, 36.4357); cam->SetFocalPoint(12.5875, 11.3799, 10.3485); cam->SetViewUp(-0.221512, 0.263181, 0.938972); cam->ComputeViewPlaneNormal(); // Needed for VTK 3.1 cam->OrthogonalizeViewUp(); float *wxyz = cam->GetOrientationWXYZ(); cout << wxyz[0] << " " << wxyz[1] << " " << wxyz[2] << " " << wxyz[3]; } When run using VTK 4.0 (nightly release, Oct 1, 2002), I get 284.514 0.937559 0.129517 0.322812 When run using VTK 3.1, I get 75.4863 0.937559 0.129517 0.322812 The first number (angle) differ in the two results. I think the number returned by VTK 4.0 is incorrect for the following reason. The method vtkCamera::GetOrientationXYZ() is used only in 2 classes, one of which is vtkVRMLExporter. In VTK3.1, vtkVRMLExporter generates a correct vrml file. In VTK4.0, vtkVRMLExporter does not generat a correct vrml file (the viewpoint is oriented in the wrong direction). Tracking the computation through the source code of VTK 3.1 versus 4.0, the main difference occurs in the row-column indexing of the matrix in the class vtkTransform. In particular, the method vtkTransform::GetOrientationWXYZ() is void vtkTransform::GetOrientationWXYZ(double wxyz[4]) { int i; this->Update(); // convenient access to matrix double (*matrix)[4] = this->Matrix->Element; double ortho[3][3]; for (i = 0; i < 3; i++) { ortho[0][i] = matrix[0][i]; ortho[1][i] = matrix[1][i]; ortho[2][i] = matrix[2][i]; } //...etc where ortho is subsequently used to compute w,x,y,z. If I transpose the ortho matrix, that is, change the above loop to for (i = 0; i < 3; i++) { ortho[i][0] = matrix[0][i]; ortho[i][1] = matrix[1][i]; ortho[i][2] = matrix[2][i]; } and rebuild VTK 4.0, then the above sample program gives the same result as that of VTK3.1. Also, the vrml file exported by vtkVRMLExporter is correct (viewpoint looks at the correct direction). The above suggests that either (1) the elements in the matrix of vtkTransform are stored in reversed row-column order, or (2) the row-column index is reversed somewhere during the computation of wxyz. Hope the above makes sense. Paul Hsieh From vcravikiran at hotmail.com Thu Oct 3 16:18:06 2002 From: vcravikiran at hotmail.com (ravi kiran) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Hi Message-ID: Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From malcolm at geovision.co.za Thu Oct 3 16:41:56 2002 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Window Name References: <20021003135652.50753.qmail@web20104.mail.yahoo.com> Message-ID: <001701c26b1d$6f67c350$718cfea9@maggie> Hi Marcelo Under Windows, if you call 'Initialize' before setting the window name, it will be created with the name you've given it. Malcolm ----- Original Message ----- From: "marcelo oliveira" To: Sent: Thursday, October 03, 2002 3:56 PM Subject: [vtkusers] Window Name > Hi users !! > > I think that is Bug > > When i try change the name of Window using: > > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > anything change > > but when i use: > > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > the name change. > > I?m using Win XP and VTK 4.0 > > Tanks for your help and advanced me > > Marcelo > > > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. > http://br.geocities.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From oliveira_mc at yahoo.com.br Thu Oct 3 17:04:32 2002 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Window Name is working In-Reply-To: <1033656551.25772.63.camel@xanth.kitwarein.com> Message-ID: <20021003210432.15619.qmail@web20105.mail.yahoo.com> Yes, is working. I just have to set Start(); Tank u Malcom --- Andy Cedilnik escreveu: > Hello Marcelo, > > This is a known bug and is caused by the window not > being there yet when > you do SetWindowName. The first render creates > window, then you can set > the name. > > Andy > > On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > > I think that is Bug > > > > When i try change the name of Window using: > > > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > anything change > > > > but when i use: > > > > renWin->Render(); > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > the name change. > > > > I?m using Win XP and VTK 4.0 > > > > Tanks for your help and advanced me > > _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/ From anast.jm at pg.com Thu Oct 3 17:01:42 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Hi Message-ID: Perhaps vtkUnstructuredGrid::GetCellPoints is what you are looking for ...john "ravi kiran" @public.kitware.com on 10/03/2002 04:18:06 PM Sent by: vtkusers-admin@public.kitware.com To: vtkusers@public.kitware.com cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ 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: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From dreed at capital.edu Thu Oct 3 18:05:05 2002 From: dreed at capital.edu (Dave Reed) Date: Mon May 24 19:15:48 2004 Subject: [vtkusers] Re: vtk book - out of print?? In-Reply-To: <3D9C8B3F.1C4AB294@cs.uncc.edu> (krs@cs.uncc.edu) References: <3D9C8B3F.1C4AB294@cs.uncc.edu> Message-ID: <200210032205.g93M55O01821@localhost.localdomain> > From: "K.R.Subramanian" > Organization: Univ. of N. Carolina at Charlotte > X-Accept-Language: en > Sender: vtkusers-admin@public.kitware.com > Date: Thu, 03 Oct 2002 14:23:59 -0400 > > > I was wondering if the book is in print now (our bookstore sent me a note > saying it was out of print) - I remember seeing a message that this was being > resolved several months back. > > Anyone have a clue? > > -- krs See a message from Will on September 11. I believe they've obtained the rights to it, but it is not yet available. Dave From P.J.H.de_Koning at lumc.nl Fri Oct 4 02:57:17 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Freeing memory error!!! In-Reply-To: <3D9BFB64.7FE52E90@fis.upv.es> Message-ID: 03-10-02 10:10:12, jose manjon wrote: >Hi there, > >I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. > >I do all the Delete() for all the objects but it has no response. > >can anyone tell me what I am doing wrong?? > If you don't remove the actors from the renderer the will be deleted when the renderer is deleted and not sooner. >thanks > >jose > >the code: > > >CRenderView::CRenderView() >{ > opacidad=0; >} > > >CRenderView::~CRenderView() >{ > AfxMessageBox("freeing ..."); > > datos1->Delete(); > datos2->Delete(); > datos3->Delete(); > lut->Delete(); > plane1->Delete(); > plane2->Delete(); > plane3->Delete(); > planeMapper1->Delete(); > planeMapper2->Delete(); > planeMapper3->Delete(); > text1->Delete(); > text2->Delete(); > text3->Delete(); > planeActor1->Delete(); > planeActor2->Delete(); > planeActor3->Delete(); > > AfxMessageBox("free"); >} > >void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) >{ > // ORTHOGONAL VIEWER > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v1->IA; > int ny=v2->IA; > int nz=v3->IA; > > > lut=vtkLookupTable::New(); > lut->SetNumberOfColors(256); > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > datos1=vtkStructuredPoints::New(); > datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); > datos1->SetScalarType(VTK_UNSIGNED_SHORT); > datos1->SetNumberOfScalarComponents(1); > datos1->AllocateScalars(); > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > plane1=vtkPlaneSource::New(); > plane1->SetNormal(0,0,1); > planeMapper1=vtkPolyDataMapper::New(); > planeMapper1->SetInput(plane1->GetOutput()); > text1=vtkTexture::New(); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1=vtkActor::New(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > datos2=vtkStructuredPoints::New(); > datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos2->SetScalarType(VTK_UNSIGNED_SHORT); > datos2->SetNumberOfScalarComponents(1); > datos2->AllocateScalars(); > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane2=vtkPlaneSource::New(); > plane2->SetNormal(0,1,0); > plane2->SetOrigin(-0.5,0,-yr); > plane2->SetPoint1(0.5,0,-yr); > plane2->SetPoint2(-0.5,0,yr); > plane2->SetXResolution(1); > plane2->SetYResolution(1); > planeMapper2=vtkPolyDataMapper::New(); > planeMapper2->SetInput(plane2->GetOutput()); > text2=vtkTexture::New(); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2=vtkActor::New(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > datos3=vtkStructuredPoints::New(); > datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos3->SetScalarType(VTK_UNSIGNED_SHORT); > datos3->SetNumberOfScalarComponents(1); > datos3->AllocateScalars(); > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > plane3=vtkPlaneSource::New(); > plane3->SetNormal(1,0,0); > plane3->SetOrigin(0,-0.5,-yr); > plane3->SetPoint1(0, 0.5,-yr); > plane3->SetPoint2(0,-0.5, yr); > plane3->SetXResolution(1); > plane3->SetYResolution(1); > planeMapper3=vtkPolyDataMapper::New(); > planeMapper3->SetInput(plane3->GetOutput()); > text3=vtkTexture::New(); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3=vtkActor::New(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > /////////// CUBO ///////////////////////////////////////////////////// > > vtkCubeSource * cube=vtkCubeSource::New(); > cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); > vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); > cubeMapper->SetInput(cube->GetOutput()); > vtkActor *cubeActor=vtkActor::New(); > cubeActor->SetMapper(cubeMapper); > cubeActor->GetProperty()->SetRepresentationToWireframe(); > > /////////// RENDER ///////////////////////////////////////////////////// > > this->Renderer->SetBackground(0.05,0.15,0.45); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > this->Renderer->AddActor(cubeActor); > > vtkCamera * cam=this->Renderer->GetActiveCamera(); > cam->Elevation(90); > cam->Azimuth(180); > > vtkLight *light1 = vtkLight::New(); > light1->SetPosition(1,0,1); > > vtkLight *light2 = vtkLight::New(); > light2->SetPosition(0,1,1); > > vtkLight *light3 = vtkLight::New(); > light3->SetPosition(-1,0,1); > > vtkLight *light4 = vtkLight::New(); > light4->SetPosition(0,-1,1); > > this->Renderer->AddLight(light1); > this->Renderer->AddLight(light2); > this->Renderer->AddLight(light3); > this->Renderer->AddLight(light4); > > cube->Delete(); > cubeMapper->Delete(); > cubeActor->Delete(); > > Actualizar(); >} > > >void CRenderView::Actualizar() >{ > this->Renderer->RemoveActor(planeActor1); > this->Renderer->RemoveActor(planeActor2); > this->Renderer->RemoveActor(planeActor3); > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v3->IA; > int ny=v2->IA; > int nz=v1->IA; > > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); > > planeMapper1->SetInput(plane1->GetOutput()); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); > > planeMapper2->SetInput(plane2->GetOutput()); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > > plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); > > planeMapper3->SetInput(plane3->GetOutput()); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > > this->Renderer->GetRenderWindow()->Render(); >} > >void CRenderView::SetOpacity(double opa) >{ > opacidad=opa*256; > Actualizar(); >} > > > > > > > \\|// > (@ @) > +--------------------oOO----(_)----OOo-----------------------+ > | | > | Prof. Jose Vicente Manj?n Herrera | > | | > | Group of Medical Bioinformatics | > | Department of Aplied Physics | > | Computer Science High School | > | Technical University of Valencia | > | Spain | > | | > | Email:jmanjon@fis.upv.es | > | | > +------------------------------------------------------------+ > |__|__| > || || > ooO Ooo > > >_______________________________________________ >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 hanssen at caesar.de Fri Oct 4 04:12:43 2002 From: hanssen at caesar.de (Nils Hanssen) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] vtktextmapper doesn't display text Message-ID: <001101c26b7d$d105fdb0$0607010a@ssn4006> Hi, i am using vtk 4.1.1 and have problems with the vtktextmapper: It doesn't display text at all. I took the code directly from the examples, but nothing is displayed. I read somewhere that the textmappers are kind of "deprecated" and will be replaced by new mappers. What can I do for now to get it work? Thanks in advance! Regards, Nils -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021004/8b5fa56e/attachment.html From Patrick.Brockmann at ipsl.jussieu.fr Fri Oct 4 04:41:24 2002 From: Patrick.Brockmann at ipsl.jussieu.fr (Patrick Brockmann LSCE) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Writing Postscript files from VTK Message-ID: <200210040841.g948fO205360@colomb.ipsl.jussieu.fr> Hi, I have read mails about gl2ps library but is there a way to produce vector postscript directly from tcl or python. Thanks for any information or current work in this area. Patrick From michele.zamponi at menci.com Fri Oct 4 05:47:57 2002 From: michele.zamponi at menci.com (Michele Zamponi) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] vtkExtractPolyDataGeometry - PLEASE HELP ME Message-ID: <000601c26b8b$1ebb4210$2000a8c0@devlab1xp> Hello all. I'm using vtkExtractPolyDataGeometry to extract a polydata subset. The output polydata contains exactly the extracted cells, but contains also ALL the points of the original polydata. How can I purge unused points in the output polydata? I've tried using vtkCleanPolyData, but its output reports 0 points and 0 cells!! Please help me. Thank you in advance for any help. Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021004/116940bd/attachment.htm From imho at skynet.be Fri Oct 4 06:43:54 2002 From: imho at skynet.be (imho) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] image 2d -> vector? Message-ID: <3D9D70EA.4030508@skynet.be> How do I get a coordonate vector (x,y) from an image 2D? thanks :) From srodrigu at gbt.tfo.upm.es Fri Oct 4 07:02:05 2002 From: srodrigu at gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Message-ID: <002e01c26b95$7a20e330$5f0a048a@sisifo> Hello everybody, Could anybody know an algorithm for creating a Volumetric Mesh from a set of points? and if It is implemented in MATLAB?. Thanks in advance, Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021004/b7372720/attachment.html From jmbeotegui at yahoo.es Fri Oct 4 07:10:09 2002 From: jmbeotegui at yahoo.es (=?iso-8859-1?q?jose=20beotegui?=) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Get pixel coordinates of a grid Message-ID: <20021004111009.72439.qmail@web21509.mail.yahoo.com> Hello, I'm working in an Augmented Reality interface (using Tcl/Tk, VTK 4.0) and I want to calibrate the camera. I've captured a BMP image of a grid and then I've used a vtkImageThreshold (I'm working with two cases: a grid of black stripes over a white background and a grid of black circles over a white background too). I'm trying to get the center pixel coords of every element to convert them to vtkPoints. I've used vtkImageSkeleton2D and I've obtained a cross (or a 'X shaped figure' of 1 pixel wide ) in every intersection of the grid and I'd like to know if it's possible to get the coordinates of the intersection of the two lines. Thanks Here is the code: package require vtk vtkBMPReader imagen1 imagen1 SetFileName "gridex.bmp" imagen1 Update vtkImageThreshold thresholdd threshold SetInput [imagen1 GetOutput] threshold ThresholdByUpper 150 threshold SetInValue 250 threshold SetOutValue 50 threshold ReleaseDataFlagOff vtkImageContinuousErode3D erode erode ReleaseDataFlagOff erode SetInput [threshold GetOutput] erode SetKernelSize 6 6 3 erode Update vtkImageContinuousDilate3D dilate dilate ReleaseDataFlagOff dilate SetInput [erode GetOutput] dilate SetKernelSize 11 11 3 dilate Update vtkImageVariance3D var var SetInput [dilate GetOutput] var SetKernelSize 10 10 1 vtkImageSkeleton2D skeleton1 skeleton1 SetInput [var GetOutput] skeleton1 SetPrune 1 skeleton1 SetNumberOfIterations 10 skeleton1 ReleaseDataFlagOff _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From goodwin.lawlor at ucd.ie Fri Oct 4 08:51:35 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Writing Postscript files from VTK References: Message-ID: <003001c26ba4$c814a540$109701c1@highcross> Hi, It seems "GL2PS warning: Empty feedback buffer" crops up unless you call renwin->Render at least once *before* you call gl2psBeginPage(....); Goodwin ----- Original Message ----- From: "Carl Hetherington" To: "Melvin Hadasht" Cc: "VTK Mailing list" Sent: Thursday, October 03, 2002 5:21 PM Subject: Re: [vtkusers] Writing Postscript files from VTK > On Tue, 1 Oct 2002, Melvin Hadasht wrote: > > > Hi Carl, > > > > on Tue, 1 Oct 2002 13:32:39 +0100 (GMT Daylight Time) > > Carl Hetherington wrote: > > > > > Hi, > > > > > > I'm interested in writing vector Postscript files of VTK renderings. > > > Consulting the mailing list archive suggests that gl2ps might be able to > > > do this. I've tried the following example: > > > > > > /* Set up a render window with a wireframe representation of a > > > ** vtkPolyData. > > > */ > > > > > > /* ... */ > > > > > > FILE* fp = fopen("test.eps", "w"); > > > int buffsize = 0; > > > int state = GL2PS_OVERFLOW; > > > > > > while (state == GL2PS_OVERFLOW) > > > { > > > buffsize += 1024*1024; > > > gl2psBeginPage("Title", "Software", GL2PS_EPS, 0, > > > GL2PS_SIMPLE_LINE_OFFSET, GL_RGBA, 0, NULL, > > > buffsize, fp, NULL); > > > > You should test for the return value of fopen. Maybe the problem was there. > > > > I don't know the following may help or not, but in an old code I had the > > filename also as the last argument of gl2psBeginPage{...char *filename; File *fp > > = fopen(filename,"w");...;gl2psBeginPage(...,filename);...}. I can't remember > > why I did that. > > Thanks for the reply. Seems to be working today, so perhaps it was me not > checking the file pointer... idiot that I am. > > Thanks > > Carl > > _______________________________________________ > 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 vidya.sivakumar at quest-global.com Fri Oct 4 09:01:55 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] RE: vtkusers digest, Vol 1 #1311 - 10 msgs In-Reply-To: <20021004081401.1638.22704.Mailman@public.kitware.com> Message-ID: I recently ordered the vtk text book through amazon.com and got an copy of the book. -Vidya -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com]On Behalf Of vtkusers-request@public.kitware.com Sent: Friday, October 04, 2002 4:14 AM To: vtkusers@public.kitware.com Subject: vtkusers digest, Vol 1 #1311 - 10 msgs Send vtkusers mailing list submissions to vtkusers@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@public.kitware.com You can reach the person managing the list at vtkusers-admin@public.kitware.com When replying, please edit your Subject line so it is more specific than "Re: Contents of vtkusers digest..." Today's Topics: 1. vtk book - out of print?? (K.R.Subramanian) 2. events in Keyboard (=?iso-8859-1?q?marcelo=20oliveira?=) 3. Problem with vtkCamera::GetOrientationWXYZ (Paul A Hsieh) 4. Hi (ravi kiran) 5. Re: Window Name (Malcolm Drummond) 6. Re: Window Name is working (=?iso-8859-1?q?marcelo=20oliveira?=) 7. Re: Hi (anast.jm@pg.com) 8. Re: vtk book - out of print?? (Dave Reed) 9. Re: Freeing memory error!!! (Koning, P.J.H. de (LKEB)) 10. vtktextmapper doesn't display text (Nils Hanssen) --__--__-- Message: 1 Date: Thu, 03 Oct 2002 14:23:59 -0400 From: "K.R.Subramanian" Organization: Univ. of N. Carolina at Charlotte To: VTK HELP Subject: [vtkusers] vtk book - out of print?? I was wondering if the book is in print now (our bookstore sent me a note saying it was out of print) - I remember seeing a message that this was being resolved several months back. Anyone have a clue? -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs --__--__-- Message: 2 Date: Thu, 3 Oct 2002 16:38:56 -0300 (ART) From: =?iso-8859-1?q?marcelo=20oliveira?= To: vtkusers@public.kitware.com Subject: [vtkusers] events in Keyboard Hi user?s I?m try to rotate, scale and translate the objects using keyboard, but i?m not have success. Where i can find examples, What is the class that i have to use. Tanks for you help and advaced me. _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/ --__--__-- Message: 3 To: vtkusers@public.kitware.com From: "Paul A Hsieh" Date: Thu, 3 Oct 2002 12:52:31 -0700 Subject: [vtkusers] Problem with vtkCamera::GetOrientationWXYZ After a relatively long hiatus from this mailing list, I hope to be back on board. I am revising an application from using VTK 3.1 to 4.0 and I ran into an inconsistency in the result returned by vtkCamera::GetOrientationWXYZ. This is illustrated by the following C++ sample code: #include "vtkCamera.h" void main() { vtkCamera *cam = vtkCamera::New(); cam->SetPosition(40.5388, -58.1675, 36.4357); cam->SetFocalPoint(12.5875, 11.3799, 10.3485); cam->SetViewUp(-0.221512, 0.263181, 0.938972); cam->ComputeViewPlaneNormal(); // Needed for VTK 3.1 cam->OrthogonalizeViewUp(); float *wxyz = cam->GetOrientationWXYZ(); cout << wxyz[0] << " " << wxyz[1] << " " << wxyz[2] << " " << wxyz[3]; } When run using VTK 4.0 (nightly release, Oct 1, 2002), I get 284.514 0.937559 0.129517 0.322812 When run using VTK 3.1, I get 75.4863 0.937559 0.129517 0.322812 The first number (angle) differ in the two results. I think the number returned by VTK 4.0 is incorrect for the following reason. The method vtkCamera::GetOrientationXYZ() is used only in 2 classes, one of which is vtkVRMLExporter. In VTK3.1, vtkVRMLExporter generates a correct vrml file. In VTK4.0, vtkVRMLExporter does not generat a correct vrml file (the viewpoint is oriented in the wrong direction). Tracking the computation through the source code of VTK 3.1 versus 4.0, the main difference occurs in the row-column indexing of the matrix in the class vtkTransform. In particular, the method vtkTransform::GetOrientationWXYZ() is void vtkTransform::GetOrientationWXYZ(double wxyz[4]) { int i; this->Update(); // convenient access to matrix double (*matrix)[4] = this->Matrix->Element; double ortho[3][3]; for (i = 0; i < 3; i++) { ortho[0][i] = matrix[0][i]; ortho[1][i] = matrix[1][i]; ortho[2][i] = matrix[2][i]; } //...etc where ortho is subsequently used to compute w,x,y,z. If I transpose the ortho matrix, that is, change the above loop to for (i = 0; i < 3; i++) { ortho[i][0] = matrix[0][i]; ortho[i][1] = matrix[1][i]; ortho[i][2] = matrix[2][i]; } and rebuild VTK 4.0, then the above sample program gives the same result as that of VTK3.1. Also, the vrml file exported by vtkVRMLExporter is correct (viewpoint looks at the correct direction). The above suggests that either (1) the elements in the matrix of vtkTransform are stored in reversed row-column order, or (2) the row-column index is reversed somewhere during the computation of wxyz. Hope the above makes sense. Paul Hsieh --__--__-- Message: 4 From: "ravi kiran" To: vtkusers@public.kitware.com Date: Thu, 03 Oct 2002 20:18:06 +0000 Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --__--__-- Message: 5 From: "Malcolm Drummond" To: "vtkusers" Subject: Re: [vtkusers] Window Name Date: Thu, 3 Oct 2002 22:41:56 +0200 Organization: GeoVision Hi Marcelo Under Windows, if you call 'Initialize' before setting the window name, it will be created with the name you've given it. Malcolm ----- Original Message ----- From: "marcelo oliveira" To: Sent: Thursday, October 03, 2002 3:56 PM Subject: [vtkusers] Window Name > Hi users !! > > I think that is Bug > > When i try change the name of Window using: > > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > anything change > > but when i use: > > renWin->Render(); > renWin->SetWindowName( "FLAMENGO" ); > renWin->Render(); > > the name change. > > I?m using Win XP and VTK 4.0 > > Tanks for your help and advanced me > > Marcelo > > > > _______________________________________________________________________ > Yahoo! GeoCities > Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. > http://br.geocities.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > --__--__-- Message: 6 Date: Thu, 3 Oct 2002 18:04:32 -0300 (ART) From: =?iso-8859-1?q?marcelo=20oliveira?= Subject: Re: [vtkusers] Window Name is working To: vtk-users Yes, is working. I just have to set Start(); Tank u Malcom --- Andy Cedilnik escreveu: > Hello Marcelo, > > This is a known bug and is caused by the window not > being there yet when > you do SetWindowName. The first render creates > window, then you can set > the name. > > Andy > > On Thu, 2002-10-03 at 09:56, marcelo oliveira wrote: > > I think that is Bug > > > > When i try change the name of Window using: > > > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > anything change > > > > but when i use: > > > > renWin->Render(); > > renWin->SetWindowName( "FLAMENGO" ); > > renWin->Render(); > > > > the name change. > > > > I?m using Win XP and VTK 4.0 > > > > Tanks for your help and advanced me > > _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f?ceis de usar, espa?o de sobra e acess?rios. http://br.geocities.yahoo.com/ --__--__-- Message: 7 Subject: Re: [vtkusers] Hi To: vtkusers@public.kitware.com From: anast.jm@pg.com Date: Thu, 3 Oct 2002 17:01:42 -0400 Perhaps vtkUnstructuredGrid::GetCellPoints is what you are looking for ...john "ravi kiran" @public.kitware.com on 10/03/2002 04:18:06 PM Sent by: vtkusers-admin@public.kitware.com To: vtkusers@public.kitware.com cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Hi Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube. Now i need to determine the coordinates of the points in each tetrahedral element generated. What do i have to do?Can anyone please help me solve this problem? Thanx Ravi _________________________________________________________________ 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: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers --__--__-- Message: 8 Date: Thu, 3 Oct 2002 18:05:05 -0400 From: Dave Reed To: krs@cs.uncc.edu Cc: vtkusers@public.kitware.com Subject: [vtkusers] Re: vtk book - out of print?? > From: "K.R.Subramanian" > Organization: Univ. of N. Carolina at Charlotte > X-Accept-Language: en > Sender: vtkusers-admin@public.kitware.com > Date: Thu, 03 Oct 2002 14:23:59 -0400 > > > I was wondering if the book is in print now (our bookstore sent me a note > saying it was out of print) - I remember seeing a message that this was being > resolved several months back. > > Anyone have a clue? > > -- krs See a message from Will on September 11. I believe they've obtained the rights to it, but it is not yet available. Dave --__--__-- Message: 9 From: "Koning, P.J.H. de (LKEB)" Reply-To: "Koning, P.J.H. de (LKEB)" To: vtkusers@public.kitware.com, jose manjon Date: Fri, 04 Oct 2002 08:57:17 +0200 Organization: LUMC Subject: Re: [vtkusers] Freeing memory error!!! 03-10-02 10:10:12, jose manjon wrote: >Hi there, > >I have made a class for three orthogonal planes visualization and works ok but I can not free the memory after class destruction. > >I do all the Delete() for all the objects but it has no response. > >can anyone tell me what I am doing wrong?? > If you don't remove the actors from the renderer the will be deleted when the renderer is deleted and not sooner. >thanks > >jose > >the code: > > >CRenderView::CRenderView() >{ > opacidad=0; >} > > >CRenderView::~CRenderView() >{ > AfxMessageBox("freeing ..."); > > datos1->Delete(); > datos2->Delete(); > datos3->Delete(); > lut->Delete(); > plane1->Delete(); > plane2->Delete(); > plane3->Delete(); > planeMapper1->Delete(); > planeMapper2->Delete(); > planeMapper3->Delete(); > text1->Delete(); > text2->Delete(); > text3->Delete(); > planeActor1->Delete(); > planeActor2->Delete(); > planeActor3->Delete(); > > AfxMessageBox("free"); >} > >void CRenderView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) >{ > // ORTHOGONAL VIEWER > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v1->IA; > int ny=v2->IA; > int nz=v3->IA; > > > lut=vtkLookupTable::New(); > lut->SetNumberOfColors(256); > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > datos1=vtkStructuredPoints::New(); > datos1->SetDimensions(v1->ani->Columns,v1->ani->Rows,1); > datos1->SetScalarType(VTK_UNSIGNED_SHORT); > datos1->SetNumberOfScalarComponents(1); > datos1->AllocateScalars(); > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > plane1=vtkPlaneSource::New(); > plane1->SetNormal(0,0,1); > planeMapper1=vtkPolyDataMapper::New(); > planeMapper1->SetInput(plane1->GetOutput()); > text1=vtkTexture::New(); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1=vtkActor::New(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > datos2=vtkStructuredPoints::New(); > datos2->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos2->SetScalarType(VTK_UNSIGNED_SHORT); > datos2->SetNumberOfScalarComponents(1); > datos2->AllocateScalars(); > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane2=vtkPlaneSource::New(); > plane2->SetNormal(0,1,0); > plane2->SetOrigin(-0.5,0,-yr); > plane2->SetPoint1(0.5,0,-yr); > plane2->SetPoint2(-0.5,0,yr); > plane2->SetXResolution(1); > plane2->SetYResolution(1); > planeMapper2=vtkPolyDataMapper::New(); > planeMapper2->SetInput(plane2->GetOutput()); > text2=vtkTexture::New(); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2=vtkActor::New(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > datos3=vtkStructuredPoints::New(); > datos3->SetDimensions(pDoc->m_ani[0].Columns,pDoc->fuentes,1); > datos3->SetScalarType(VTK_UNSIGNED_SHORT); > datos3->SetNumberOfScalarComponents(1); > datos3->AllocateScalars(); > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > plane3=vtkPlaneSource::New(); > plane3->SetNormal(1,0,0); > plane3->SetOrigin(0,-0.5,-yr); > plane3->SetPoint1(0, 0.5,-yr); > plane3->SetPoint2(0,-0.5, yr); > plane3->SetXResolution(1); > plane3->SetYResolution(1); > planeMapper3=vtkPolyDataMapper::New(); > planeMapper3->SetInput(plane3->GetOutput()); > text3=vtkTexture::New(); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3=vtkActor::New(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > /////////// CUBO ///////////////////////////////////////////////////// > > vtkCubeSource * cube=vtkCubeSource::New(); > cube->SetBounds(-0.5,0.5,-0.5,0.5,-yr,yr); > vtkPolyDataMapper *cubeMapper=vtkPolyDataMapper::New(); > cubeMapper->SetInput(cube->GetOutput()); > vtkActor *cubeActor=vtkActor::New(); > cubeActor->SetMapper(cubeMapper); > cubeActor->GetProperty()->SetRepresentationToWireframe(); > > /////////// RENDER ///////////////////////////////////////////////////// > > this->Renderer->SetBackground(0.05,0.15,0.45); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > this->Renderer->AddActor(cubeActor); > > vtkCamera * cam=this->Renderer->GetActiveCamera(); > cam->Elevation(90); > cam->Azimuth(180); > > vtkLight *light1 = vtkLight::New(); > light1->SetPosition(1,0,1); > > vtkLight *light2 = vtkLight::New(); > light2->SetPosition(0,1,1); > > vtkLight *light3 = vtkLight::New(); > light3->SetPosition(-1,0,1); > > vtkLight *light4 = vtkLight::New(); > light4->SetPosition(0,-1,1); > > this->Renderer->AddLight(light1); > this->Renderer->AddLight(light2); > this->Renderer->AddLight(light3); > this->Renderer->AddLight(light4); > > cube->Delete(); > cubeMapper->Delete(); > cubeActor->Delete(); > > Actualizar(); >} > > >void CRenderView::Actualizar() >{ > this->Renderer->RemoveActor(planeActor1); > this->Renderer->RemoveActor(planeActor2); > this->Renderer->RemoveActor(planeActor3); > > unsigned short * p; > C3DFrame* frame; > CImageView* v1; > CImageView* v2; > CImageView* v3; > CACRNEMAViewerDoc *pDoc = (CACRNEMAViewerDoc *) GetDocument(); > frame=((C3DFrame*)GetParentFrame()); > v1=frame->GetView(0,1); > v2=frame->GetView(1,0); > v3=frame->GetView(1,1); > int nx=v3->IA; > int ny=v2->IA; > int nz=v1->IA; > > double B,G,R; > for(int i=0;i<1024;i=i+4) > { > B=(double)v1->ani->m_pDIB[40+i]/255; > G=(double)v1->ani->m_pDIB[40+i+1]/255; > R=(double)v1->ani->m_pDIB[40+i+2]/255; > if(i/4SetTableValue(i/4,R,G,B,0); > else lut->SetTableValue(i/4,R,G,B,1); > } > lut->SetTableRange(0,255); > > > /////////// PLANO AXIAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos1->GetScalarPointer(); > for(int y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v1->ani->Bitmap[y*v1->ani->Columns+x]; > } > > double yr=((double)pDoc->fuentes/(double)pDoc->m_ani[0].Rows)/2.0; > yr=yr*(pDoc->resz/pDoc->resx); > > plane1->SetCenter(0,0,-yr+2*yr*((double)nz/(double)(pDoc->fuentes-1))); > > planeMapper1->SetInput(plane1->GetOutput()); > text1->SetInput(datos1); > text1->SetLookupTable(lut); > text1->InterpolateOn(); > planeActor1->SetMapper(planeMapper1); > planeActor1->SetTexture(text1); > > /////////// PLANO CORONAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos2->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v2->ani->Bitmap[y*v2->ani->Columns+v2->ani->Columns-1-x]; > } > > plane2->SetCenter(0,0.5-((double)ny/(double)v2->alto),0); > > planeMapper2->SetInput(plane2->GetOutput()); > text2->SetInput(datos2); > text2->SetLookupTable(lut); > text2->InterpolateOn(); > planeActor2->SetMapper(planeMapper2); > planeActor2->SetTexture(text2); > > /////////// PLANO SAGITAL ///////////////////////////////////////////////////// > > p=(unsigned short *) datos3->GetScalarPointer(); > for(y=0;yani->Rows;y++) > for(int x=0;xani->Columns;x++) > { > *p++ = v3->ani->Bitmap[y*v3->ani->Columns+v3->ani->Columns-1-x]; > } > > plane3->SetCenter(-0.5+((double)nx/(double)v3->ancho),0,0); > > planeMapper3->SetInput(plane3->GetOutput()); > text3->SetInput(datos3); > text3->SetLookupTable(lut); > text3->InterpolateOn(); > planeActor3->SetMapper(planeMapper3); > planeActor3->SetTexture(text3); > > this->Renderer->AddActor(planeActor1); > this->Renderer->AddActor(planeActor2); > this->Renderer->AddActor(planeActor3); > > this->Renderer->GetRenderWindow()->Render(); >} > >void CRenderView::SetOpacity(double opa) >{ > opacidad=opa*256; > Actualizar(); >} > > > > > > > \\|// > (@ @) > +--------------------oOO----(_)----OOo-----------------------+ > | | > | Prof. Jose Vicente Manj?n Herrera | > | | > | Group of Medical Bioinformatics | > | Department of Aplied Physics | > | Computer Science High School | > | Technical University of Valencia | > | Spain | > | | > | Email:jmanjon@fis.upv.es | > | | > +------------------------------------------------------------+ > |__|__| > || || > ooO Ooo > > >_______________________________________________ >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 > --__--__-- Message: 10 From: "Nils Hanssen" To: Date: Fri, 4 Oct 2002 10:12:43 +0200 Subject: [vtkusers] vtktextmapper doesn't display text This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, i am using vtk 4.1.1 and have problems with the vtktextmapper: It doesn't display text at all. I took the code directly from the examples, but nothing is displayed. I read somewhere that the textmappers are kind of "deprecated" and will be replaced by new mappers. What can I do for now to get it work? Thanks in advance! Regards, Nils ------=_NextPart_000_0012_01C26B8E.94913EB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
i am = using vtk 4.1.1=20 and have problems with the vtktextmapper: It doesn't display text at = all. I took=20 the code directly from the examples, but nothing is=20 displayed.
 
I read = somewhere=20 that the textmappers are kind of "deprecated" and will be replaced by = new=20 mappers.
What = can I do for=20 now to get it work?
 
Thanks = in=20 advance!
 
Regards,
Nils
 
------=_NextPart_000_0012_01C26B8E.94913EB0-- --__--__-- _______________________________________________ vtkusers mailing list vtkusers@public.kitware.com http://public.kitware.com/mailman/listinfo/vtkusers End of vtkusers Digest From wind at climate.gsfc.nasa.gov Fri Oct 4 09:11:34 2002 From: wind at climate.gsfc.nasa.gov (Gala Wind) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] image 2d -> vector? In-Reply-To: <3D9D70EA.4030508@skynet.be> Message-ID: Depends on what kind of image that is, I guess. Can you give me some more details on what exactly you're trying to do? On Friday, October 4, 2002, at 03:43 AM, imho wrote: > How do I get a coordonate vector (x,y) from an image 2D? > > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From dshamoni at science.uva.nl Fri Oct 4 09:33:22 2002 From: dshamoni at science.uva.nl (Denis Shamonin) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] VTK 4.1.1 and Qt 3.*.* - vtkQGL ??? Message-ID: <3D9D98A1.BE3873B1@science.uva.nl> Hi all, Does anybody update vtkQGL for VTK 4.1.1 and Qt 3.*.* I am trying to do it and it almost work, but with some bugs. Maybe who did it before can help me. vtkQGL from http://www.medinf.mu-luebeck.de/~ehrhardt/vtkQGL/vtkQGL.html -Denis Shamonin. Section Computational Science University of Amsterdam Kruislaan 403, 1098 SJ Amsterdam the Netherlands From dan at chalkie.org.uk Fri Oct 4 09:42:43 2002 From: dan at chalkie.org.uk (Dr. Dan White) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] TIFF data set incorrectly displayed -what am I doing wrong!? Message-ID: <28C3497E-D79F-11D6-8580-000393686412@chalkie.org.uk> Dear all, I'm trying to volume render a set of 20 z slices in tiff format in a tk window using a python script modified from one found at atamai.org (tkvolumelod.py) My data seems not to be read properly. The tiff files are from a confocal microscope, and are a series of z slices through a living cell. Data is from PC, but I am doing this on linux, so I have to SetDataByteOrderToLittleEndian() right (see script below)? The data should look like a hollow half sphere, but appears as arrays of little rectangles, no matter how I adjust the opacity and colour transfer functions in the script. My python script is below (modified from atamai.org so it reads tiff files as a dataset) I am using vtkTIFFReader, and believe I am specifying the fileseries as a 102x119x20 data set with 1x1x3 spacing. my command is like python volrendscript.py fileprefix my tiff files are named for instance fileprefix01.tif fileprefix02.tif etc . to fileprefix20.tif In gimp if I look at one of the tiff images in the middle of the stack and do a histogram I can see that there a re pixels of all values from 0 to 255. It seems like data is loaded and something is displayed (no segmentation faults, or other errors at the command prompt, and I can rotate it around and zoom just fine), but it looks nothing like the images the rendered dataset is made from. The bottom of the stack seems to be displayed with high values (in my case green) and the higher slices are orange then red at the top. Seems like the problem might lie here? Hope someone can spot my problem...I'm stumped! Cheers Dan #!/usr/local/bin/python from Tkinter import * # check for correct usage import sys if sys.argv[1:]: filename = sys.argv[1] else: filename = "phantom.mnc" # load the VTK stuff import paths from RenderPane import * from VolumeFactory import * from ConeCursorFactory import * # put together the VTK rendering pipeline # read the files and add them to the othoplanes reader = vtkTIFFReader() reader.SetFilePrefix(filename) reader.SetFilePattern("%s%02i.tif") reader.SetDataExtent(0,101,0,118,1,20) reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToLittleEndian() (minval,maxval) = (0,255) input = reader.GetOutput() cast0 = vtkImageShiftScale() cast0.SetInput(reader.GetOutput()) cast0.SetShift(-minval) cast0.SetScale(255.0/(maxval-minval)) cast0.SetOutputScalarTypeToUnsignedChar() cursor = ConeCursorFactory() opacityTransferFunction0 = vtkPiecewiseFunction() opacityTransferFunction0.AddPoint( 0 , 0.0 ) opacityTransferFunction0.AddPoint( 50 , 0.1 ) opacityTransferFunction0.AddPoint( 100, 0.1 ) opacityTransferFunction0.AddPoint( 150, 0.2 ) opacityTransferFunction0.AddPoint( 255, 0.2 ) colorTransferFunction0 = vtkColorTransferFunction() # colorTransferFunction0.AddHSVPoint( 0, 0.02, 0.8, 0.0 ) # colorTransferFunction0.AddHSVPoint( 100, 0.02, 0.4, 0.6 ) # colorTransferFunction0.AddHSVPoint( 255, 0.03, 0.2, 1.0 ) colorTransferFunction0.AddHSVPoint( 0 , 0.00, 1.0, 1.0 ) colorTransferFunction0.AddHSVPoint( 100, 90.0, 1.0, 1.0 ) colorTransferFunction0.AddHSVPoint( 255, 270.0, 1.0, 1.0 ) colorTransferFunction0.SetColorSpaceToHSV() # set up the volume volume = VolumeFactory() volume.SetInput(cast0.GetOutput()) volume.SetColorTransferFunction(colorTransferFunction0) volume.SetOpacityTransferFunction(opacityTransferFunction0) volume.GetVolumeProperty().ShadeOff() volume.SetPickThreshold(0.99) root = Tk() # create the rendering pane, add the actors pane = RenderPane(root,width=500,height=500) pane.ConnectActorFactory(volume) pane.ConnectCursor(cursor) pane.pack(expand='true',fill='both') volume.Render() root.mainloop() # end of python script dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv?skyl? FIN-40351 Jyv?skyl? Finland +358 (0)14 260 4183 (office) From Steffen.Oeltze at Student.Uni-Magdeburg.DE Fri Oct 4 09:43:07 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] retrieving mouse position in a vtkRenderWindow Message-ID: <3D9D9AEB.6010708@student.uni-magdeburg.de> Hi, I would like to output the mouse position (x,y) in a vtkRenderWindow each time the user presses a mouse button. Can anybody help me ? Steffen Oeltze From anast.jm at pg.com Fri Oct 4 09:50:32 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Message-ID: Sam, vtk can do this using the class vtkDelauney3D. I've not seen any public domain code in MatLab to do this (not to say there isn't any) but have you looked at the commercial package FEMLAB which works with MatLab to do finite element stuff. Maybe they have meshing tools in there. By the way vtk can be called from MatLab through the Java interface...john Samuel Rodr?guez Bescos @public.kitware.com on 10/04/2002 07:02:05 AM Sent by: vtkusers-admin@public.kitware.com To: cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Algorithm for creating a Volumetric Mesh Hello everybody, Could anybody know an algorithm?for creating ?a Volumetric Mesh from a set of points? ?and if It is implemented in MATLAB?. Thanks in advance, Sam From nundys at neuro.duke.edu Fri Oct 4 10:41:00 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:49 2004 Subject: [vtkusers] Java-VTK broken on Mac OS X 10.2.1 Message-ID: <4D0ED46F-D7A7-11D6-8A09-000393B290A0@neuro.duke.edu> Having "successfully" compiled VTK on 10.1.5 and 10.2.1, I find that the tests on 10.2.1 do not work unless I compile telling cmake to use shared libraries. I am stuck, however, in that all the Java-vtk functions that I was using somewhat successfully in 10.1.5 are now broken on 10.2.1. This means that I will have to reformat and return to 10.1.5, not a pleasant prospect. Could someone please help me not have to do this? thanks, Surajit Nundy From wind at climate.gsfc.nasa.gov Fri Oct 4 10:59:01 2002 From: wind at climate.gsfc.nasa.gov (Gala Wind) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] Java-VTK broken on Mac OS X 10.2.1 In-Reply-To: <4D0ED46F-D7A7-11D6-8A09-000393B290A0@neuro.duke.edu> Message-ID: Are you using the nightly release? I had to download the nightly VTK release to make it work with 10.2.1. Also, which compiler versions are you using? -- Gala On Friday, October 4, 2002, at 07:41 AM, Surajit Nundy wrote: > Having "successfully" compiled VTK on 10.1.5 and 10.2.1, I find that > the tests on 10.2.1 do not work unless I compile telling cmake to use > shared libraries. > > I am stuck, however, in that all the Java-vtk functions that I was > using somewhat successfully in 10.1.5 are now broken on 10.2.1. This > means that I will have to reformat and return to 10.1.5, not a > pleasant prospect. Could someone please help me not have to do this? > > thanks, > Surajit Nundy > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From winston at cat.rpi.edu Fri Oct 4 11:42:59 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] retrieving mouse position in a vtkRenderWindow References: <3D9D9AEB.6010708@student.uni-magdeburg.de> Message-ID: <3D9DB703.289E90F2@cat.rpi.edu> Steffen Oeltze wrote: > > Hi, > > I would like to output the mouse position (x,y) in a vtkRenderWindow each > time the user presses a mouse button. Can anybody help me ? See the examples at http://public.kitware.com/VTK/doc/release/4.0/html/c2_vtk_e_2.html#c2_vtk_e_vtkTextMapper annotatePick.tcl does what you want, except it does so when the user presses 'p' instead of mouse-clicking. You should be able to bind your callback to the mouse-click, but how depends on your language (Tcl/Tk, C++, Python). HTH, -Jeremy From Steffen.Oeltze at Student.Uni-Magdeburg.DE Fri Oct 4 12:46:35 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle Message-ID: <3D9DC5EB.30507@student.uni-magdeburg.de> Hi, I would like to define my own interactor style by using a procedure that shall be invoked whenever the user presses a mouse button. I'm using myInteractorStyle->SetLeftButtonPressMethodArgDelete(myMethod). Unfortunately, I seem to have a problem with C-syntax. What does > void SetButtonPressMethodArgDelete (void(*f)(void *)) exactly mean, especially the " (void(*f)(void *)) " - part ? Regards, Steffen From vcravikiran at hotmail.com Fri Oct 4 14:27:55 2002 From: vcravikiran at hotmail.com (ravi kiran) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] Please Help Message-ID: An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021004/63eb51dd/attachment.htm From prabhu at aero.iitm.ernet.in Fri Oct 4 15:08:00 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow In-Reply-To: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> Message-ID: <15773.59152.211461.964350@monster.linux.in> >>>>> "BR" == Benoit Regrain writes: BR> I believe I might have found two bugs in the class BR> wxVTKRenderWindow as encountered in BR> VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working BR> on Windows 2000 with the VTKNightly dated 10/02/2002. BR> I could fix this problem, by changing the line 164 by : try: BR> size = parent.GetSize() except: size = wxDefaultSize The BR> try/except is used to protect the call to parent. 2 points here: 1. I think blanket except clauses are not a good idea (unless unavoidable). I'd prefer something like: try: size = parent.GetSize() except AttributeError: size = wxDefaultSize Or something like that. I dont get an exception under Linux so don't know what exception you are trying to catch here. Could you care to elaborate? BR> - When the script wxVTKRenderWindow.py is launched and when BR> killing the window (by clicking on the window close button, BR> the one with a cross at the upper right), I get the following BR> error message in the Python console : runtime error R6025 - BR> def __del__(self): renderers = BR> self._RenderWindow.GetRenderers() numRenderers = BR> renderers.GetNumberOfItems() self._CurrentRenderer = None BR> renderers.InitTraversal() for i in range(0,numRenderers): BR> self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) This could be added but I have one question here. IIRC __del__ is actually called only after the window is killed and any "bad behaviour" can occur when the window is alive. Ok, there is the case that the window is dead and the actors are still alive. But are we guaranteed that __del__ will be called as soon as the window is destroyed? The order of destruction of the objects also matters here. I dont remember clearly but is there a way to always call a function *before* a widget (I mean any widget) is destroyed and not at object destruction? If the renderers maybe removed in that function. However, its been a while since I used wxPython so I cant remember the exact thing to do. Could any experienced wxPythoners comment on this? cheers, prabhu From fusion at thuule.pair.com Fri Oct 4 16:32:37 2002 From: fusion at thuule.pair.com (Alan McIntyre) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> Message-ID: <3D9DFAE5.7090707@thuule.pair.com> Steffen, The "void(*f)(void *)" parameter is a pointer to a C function that looks like this: void func(void *); How much that helps you out I don't know. If you could post some more code I can try to help, even though I haven't done much with VTK in C++. Hope this helps, Alan Steffen Oeltze wrote: > Hi, > > I would like to define my own interactor style by using a procedure that > shall be invoked whenever the user presses a mouse button. I'm using > myInteractorStyle->SetLeftButtonPressMethodArgDelete(myMethod). > Unfortunately, I seem to have a problem with C-syntax. What does > >> void SetButtonPressMethodArgDelete (void(*f)(void *)) > > > exactly mean, especially the " (void(*f)(void *)) " - part ? > > Regards, > Steffen From brownr at ucalgary.ca Fri Oct 4 18:22:11 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] Polygon from a mask? Message-ID: I have a raw file that contains a mask -- 1 for inside, 0 for outside. I'd like to generate a vtkPolyData from this data. Right now I'm importing the raw file into a vtkImageData and using a contouring filter to convert it to vtkPolyData. The problem is, the volume is not preserved. Using vtkMarchingCubes() the poly's volume is too small and with vtkImageMarchingCubes, it is too big (compared to the volume indicated by the mask). Is there a way to generate polygon data from a mask the preserves the volume? Thanks, Robb -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From Steffen.Oeltze at Student.Uni-Magdeburg.DE Fri Oct 4 18:49:58 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> Message-ID: <3D9E1B16.6050702@student.uni-magdeburg.de> Alan McIntyre wrote: > Steffen, > > The "void(*f)(void *)" parameter is a pointer to a C function that > looks like this: > > void func(void *); > > How much that helps you out I don't know. If you could post some more > code I can try to help, even though I haven't done much with VTK in C++. > The function I use is: void SliceView::get_mousePos(void *) { .................. } The function declaration is: void get_mousePos(void *); The assignment (which doesn't work) of the function: interactorStyle->SetLeftButtonPressMethodArgDelete(get_mousePos()); From fusion at thuule.pair.com Fri Oct 4 19:48:58 2002 From: fusion at thuule.pair.com (Alan McIntyre) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> Message-ID: <3D9E28EA.10002@thuule.pair.com> Steffen, As far as passing function pointers goes, there is a difference between this: obj->SetSomething(my_function()); and this: obj->SetSomething(&my_function); The first one passes the result of a call to function() into the SetSomething method, while the second one passes the address of the 'my_function' function into the SetSomething method. I think the '&' in the second example isn't necessary in the eyes of some (most?) compilers, but having it there doesn't do any harm as far as I know. The second example is the one you want in your particular case. As for passing a C++ class method in as the parameter to SetLeftButtonPressMethodArgDelete, I'm not exactly sure about the 'proper' way to do that, since it appears to be expecting a plain C function. What kind of compiler error are you getting? I don't have the VTK source on my machine here at home right now, so I'm kind of in the dark as to the usage/behavior of SetLeftButtonPressMethodArgDelete, but I'm wondering if the reason the it expects a pointer to a function with a void* parameter is so that class methods can be given to it. If I recall correctly, isn't the pointer to the object pushed onto the stack (kind of like an invisible first parameter) when calling class methods? If that's the case, perhaps the get_mousePos(void*) method in Steffen's example could be passed if it was declared like this: void get_MousePos(); Somebody please let me know if I'm totally clueless here; I don't want to give Steffen any bad info. Thanks, Alan Steffen Oeltze wrote: > > Alan McIntyre wrote: > >> Steffen, >> >> The "void(*f)(void *)" parameter is a pointer to a C function that >> looks like this: >> >> void func(void *); >> >> How much that helps you out I don't know. If you could post some more >> code I can try to help, even though I haven't done much with VTK in C++. >> > The function I use is: > > void SliceView::get_mousePos(void *) > { > .................. > } > > The function declaration is: > > void get_mousePos(void *); > > The assignment (which doesn't work) of the function: > > interactorStyle->SetLeftButtonPressMethodArgDelete(get_mousePos()); > > _______________________________________________ > 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 PS7278514B at ntu.edu.sg Sat Oct 5 01:14:30 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] about the BMP slice Read & 3D Rendering. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE425A7C@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I meet the problem when I read a stack of 512x512x256 BMP file. I used the vtkImageReader class instead of vtkVolume16Reader class because It was not a 16 bit image format. I could not get the correct rendering of each organ such as only the rendering of the bone in the BMP slice. Here is my source code: vtkImageReader *reader=vtkImageReader::New(); reader->SetFilePrefix("g:/00head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,100,0,100,1,12); reader->SetDataSpacing(1,1,0.5); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,1150); vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); vtkActor *isoActor=vtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(1,1,1); vtkRenderer *ren1 = vtkRenderer::New(); ren1->AddActor(isoActor); ren1->SetBackground(0.2,0.3,0.5); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); renWin->SetSize(600,600); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); renWin->Render(); iren->Start(); How could I do? *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From PS7278514B at ntu.edu.sg Sat Oct 5 04:49:50 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] the quarter file format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE425A7D@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format abot Vtk provided quarter file. I meaned is it from *.BMP, *.Tiff........... *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From Steffen.Oeltze at Student.Uni-Magdeburg.DE Sat Oct 5 05:43:42 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] retrieving mouse position Message-ID: <3D9EB44E.3020707@student.uni-magdeburg.de> Hi, I would like to retrieve the mouse position whenever the user clicks into a vtkRenderWindow. Unfortunately, I have problems writing my own vtkInteractorStyle using C++. Does anybody have experience with that ? Steffen From Steffen.Oeltze at Student.Uni-Magdeburg.DE Sat Oct 5 05:46:13 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> Message-ID: <3D9EB4E5.8090804@student.uni-magdeburg.de> Alan McIntyre wrote: > Steffen, > > As far as passing function pointers goes, there is a difference > between this: > > obj->SetSomething(my_function()); > > and this: > > obj->SetSomething(&my_function); I receive an error during compiling saying that this is not a valid call for a member-function. obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); > > > The first one passes the result of a call to function() into the > SetSomething method, while the second one passes the address of the > 'my_function' function into the SetSomething method. I think the '&' > in the second example isn't necessary in the eyes of some (most?) > compilers, but having it there doesn't do any harm as far as I know. > The second example is the one you want in your particular case. > > As for passing a C++ class method in as the parameter to > SetLeftButtonPressMethodArgDelete, I'm not exactly sure about the > 'proper' way to do that, since it appears to be expecting a plain C > function. What kind of compiler error are you getting? > > I don't have the VTK source on my machine here at home right now, so > I'm kind of in the dark as to the usage/behavior of > SetLeftButtonPressMethodArgDelete, but I'm wondering if the reason the > it expects a pointer to a function with a void* parameter is so that > class methods can be given to it. If I recall correctly, isn't the > pointer to the object pushed onto the stack (kind of like an invisible > first parameter) when calling class methods? If that's the case, > perhaps the get_mousePos(void*) method in Steffen's example could be > passed if it was declared like this: > > void get_MousePos(); > > Somebody please let me know if I'm totally clueless here; I don't want > to give Steffen any bad info. > > Thanks, > Alan Thank you very much, Steffen > From winston at cat.rpi.edu Sat Oct 5 09:05:04 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> <3D9EB4E5.8090804@student.uni-magdeburg.de> Message-ID: <3D9EE380.DEDB4F85@cat.rpi.edu> Steffen Oeltze wrote: > > Alan McIntyre wrote: > > > Steffen, > > > > As far as passing function pointers goes, there is a difference > > between this: > > obj->SetSomething(my_function()); > > and this: > > obj->SetSomething(&my_function); > > I receive an error during compiling saying that this is not a valid call > for a member-function. > > obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); Shouldn't it just be "(this->get_mousePos)" ? (Versus "(&this->get_mousePos)" or "(this->get_mousePos())" ). -Jeremy From Steffen.Oeltze at Student.Uni-Magdeburg.DE Sat Oct 5 09:58:30 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] vtkInteractorStyle References: <3D9DC5EB.30507@student.uni-magdeburg.de> <3D9DFAE5.7090707@thuule.pair.com> <3D9E1B16.6050702@student.uni-magdeburg.de> <3D9E28EA.10002@thuule.pair.com> <3D9EB4E5.8090804@student.uni-magdeburg.de> <3D9EE380.DEDB4F85@cat.rpi.edu> Message-ID: <3D9EF006.3040703@student.uni-magdeburg.de> Jeremy Winston wrote: >Steffen Oeltze wrote: > >>Alan McIntyre wrote: >> >>>Steffen, >>> >>>As far as passing function pointers goes, there is a difference >>>between this: >>> obj->SetSomething(my_function()); >>>and this: >>> obj->SetSomething(&my_function); >>> >>I receive an error during compiling saying that this is not a valid call >>for a member-function. >> >>obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); >> > >Shouldn't it just be > > "(this->get_mousePos)" ? > >(Versus "(&this->get_mousePos)" > or "(this->get_mousePos())" ). > You are right but this doesn't work either. I have programed a slice viewer object which has a mapper, a render window and an interactor. Now, I'd like to define my own vtkInteractorStyleUser. My source code is: ... vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); intAct->SetInteractorStyle(style); ... void SliceView::get_mousePos(void *) { ... } The error I get is: coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void *)' is not possible -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021005/f2db1e60/attachment.html From vidya.sivakumar at quest-global.com Sun Oct 6 15:31:22 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] window size Message-ID: Hi All, Is there any method that increases the size of the display window. I am using Java with VTK. Any input in this regard is appreciated. Thanks in advance, Vidya From PS7278514B at ntu.edu.sg Sun Oct 6 21:39:04 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] the quarter file format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB17@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format abot Vtk provided quarter file. I meaned is it from *.BMP, *.Tiff........... *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From Malve.Heman at geind.ge.com Mon Oct 7 00:37:48 2002 From: Malve.Heman at geind.ge.com (Heman, Malve (MED, Contractor)) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] (no subject) Message-ID: <10B96F9B1453D61191B400508B650D9402B3CA6A@ban03xbindge> how to read the medical images & display it. send the sorce code for this one. "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From Steffen.Oeltze at Student.Uni-Magdeburg.DE Mon Oct 7 04:07:28 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: Antw: Re: [vtkusers] vtkInteractorStyle References: Message-ID: <3DA140C0.7020702@student.uni-magdeburg.de> Gregory Bleiker wrote: >Hi Steffen >Are you using VC++? If so, there's a preference to set to make the function definition c-style... tell me if you need a more precise description. > >Greetings >Gregi > Yes, please. From PS7278514B at ntu.edu.sg Mon Oct 7 04:23:41 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] the Quarter files Format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which format about Vtk provided headsq quarter file. It is not the dicom files. It is also not imaging files. It could not read in after I used many image reading software. which software or program can read these slices. Thanks very much! *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From sebaaihb at linux.zrz.TU-Berlin.DE Mon Oct 7 04:25:02 2002 From: sebaaihb at linux.zrz.TU-Berlin.DE (Sebastian Loebbert) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] rendering into buffer Message-ID: Hi all, is there a way to (volume) render into a buffer instead of a vtkRenderWindow? I would like to render a volume into a buffer, then postprocess this buffer (merge it with some other image information) and finally display the postprocessed buffer. Thanks in advance, Sebastian From c.p.botha at its.tudelft.nl Mon Oct 7 04:30:21 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] the Quarter files Format. In-Reply-To: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> References: <0C42D409AF10B1428A0B026FB160A5BEADCB1B@mail02.student.main.ntu.edu.sg> Message-ID: <1033979421.11627.22.camel@dutidad> On Mon, 2002-10-07 at 10:23, #YAN RI AN# wrote: > I did not know which format about Vtk provided headsq quarter file. > It is not the dicom files. > It is also not imaging files. > It could not read in after I used many image reading software. > which software or program can read these slices. Please search the VTK examples as well when you have questions. In this case, e.g. ImagePlaneWidget.tcl shows you how to read this data. The data is raw 16 bits per voxel, little endian, 64x64x93. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From Steffen.Oeltze at Student.Uni-Magdeburg.DE Mon Oct 7 05:17:24 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] mouse interaction Message-ID: <1033982243.3da1512401f61@webmail.uni-magdeburg.de> Dear VTK-users, if ever somebody has programmed a mouse interaction for VTK in C++, I'm interested in it. Steffen From jiang at TI.FhG.DE Mon Oct 7 05:47:41 2002 From: jiang at TI.FhG.DE (Chunyan Jiang) Date: Mon May 24 19:15:50 2004 Subject: [vtkusers] How to visualize a set of image slices by vtk? Message-ID: Hello, dear vtkusers, I work with medical image. Now I get a set of images and store them in the memory as an array. I want to visualize them as a cube. How can I do? Furthermore, I'm not familiar with vtk. Could some one do me a faver and giving me an example? I use MFC as user interface. Thank you very much! Chunyan Jiang *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From jeff at cdnorthamerica.com Mon Oct 7 06:41:25 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] window size References: Message-ID: <3DA164D5.8080703@cdnorthamerica.com> vidya sivakumar wrote: >Hi All, >Is there any method that increases the size of the display window. > see documentation for vtkRenderWindow. SetSize is the method you're looking for. >I am using Java with VTK. >Any input in this regard is appreciated. >Thanks in advance, >Vidya > > >_______________________________________________ >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 walter at lncc.br Mon Oct 7 07:56:28 2002 From: walter at lncc.br (Walter Herrera) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] vtkInteractorStyle In-Reply-To: <20021006103829.29817.59539.Mailman@public.kitware.com> Message-ID: <5.0.2.1.0.20021007083400.00a69680@pop.lncc.br> Jeremy, the problem with your code is that the function : SetLeftButtonPressMethodArgDelete() is waiting for a NON class member function parameter or if it is a class member function it must be STATIC. >static void SliceView::get_mousePos(void *) >{ > ... >} and call the function as: > style->SetLeftButtonPressMethodArgDelete(SliceView::get_mousePos); or > style->SetLeftButtonPressMethodArgDelete(get_mousePos); My code is as follow: class CTransferFunctionEditorDialog : public CDialog { ... public: static CTransferFunctionEditorDialog* CurrentDialog; static void StaticButtonPress (void * p); void ButtonPress (); private: ... vtkInteractorStyleUser * OCFInteractorStyle; ... } CTransferFunctionEditorDialog* CTransferFunctionEditorDialog::CurrentDialog = NULL; CTransferFunctionEditorDialog::CTransferFunctionEditorDialog(CWnd* pParent /*=NULL*/) { ... this->OCFInteractorStyle = vtkInteractorStyleUser::New(); this->OCFInteractorStyle->SetButtonPressMethod(StaticButtonPress,NULL); ... } BOOL CTransferFunctionEditorDialog::OnInitDialog() { ... CurrentDialog = this; ... } void CTransferFunctionEditorDialog::StaticButtonPress (void * p) { if (CurrentDialog == NULL) return; CurrentDialog->ButtonPress(); } void CTransferFunctionEditorDialog::ButtonPress () { ... } Walter. At 06:38 6/10/2002 -0400, you wrote: >Jeremy Winston wrote: > > >Steffen Oeltze wrote: > > > >>Alan McIntyre wrote: > >> > >>>Steffen, > >>> > >>>As far as passing function pointers goes, there is a difference > >>>between this: > >>> obj->SetSomething(my_function()); > >>>and this: > >>> obj->SetSomething(&my_function); > >>> > >>I receive an error during compiling saying that this is not a valid call > >>for a member-function. > >> > >>obj->SetLeftButtonPressMethodArgDelete(&this->get_mousePos); > >> > > > >Shouldn't it just be > > > > "(this->get_mousePos)" ? > > > >(Versus "(&this->get_mousePos)" > > or "(this->get_mousePos())" ). > > >You are right but this doesn't work either. I have programed a slice >viewer object which >has a mapper, a render window and an interactor. Now, I'd like to define >my own >vtkInteractorStyleUser. My source code is: > >... >vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); >vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); > style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); > intAct->SetInteractorStyle(style); >... > >void SliceView::get_mousePos(void *) >{ > ... >} > >The error I get is: > >coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void >*)' is not possible From chelberg at endor.cs.ohiou.edu Mon Oct 7 07:57:09 2002 From: chelberg at endor.cs.ohiou.edu (David Chelberg) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] vtkInteractorStyle In-Reply-To: Your message of "Sat, 05 Oct 2002 15:58:30 +0200." <3D9EF006.3040703@student.uni-magdeburg.de> Message-ID: <200210071157.g97Bv9823012@endor.cs.ohiou.edu> If I recall correctly, there was some discussion of this in the past. You might want to check the archives. I believe that the result was that member functions must be declared static to be able to be passed like this. Otherwise you must use an ordinary function. -- Prof. David Chelberg (chelberg@ohiou.edu) You are right but this doesn't work either. I have programed a slice viewer object which has a mapper, a render window and an interactor. Now, I'd like to define my own vtkInteractorStyleUser. My source code is: .... vtkRenderWindowInteractor *intAct = vtkRenderWindowInteractor::New(); vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); style->SetLeftButtonPressMethodArgDelete(this->get_mousePos); intAct->SetInteractorStyle(style); .... void SliceView::get_mousePos(void *) { ... } The error I get is: coversion of parameter 1 from 'void (void *)' to 'void (__cdecl *) (void *)' is not possible From marcelo at radioimaging.net Mon Oct 7 08:23:21 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] about the BMP slice Read & 3D Rendering. References: <0C42D409AF10B1428A0B026FB160A5BE425A7C@mail02.student.main.ntu.edu.sg> Message-ID: <00a001c26dfc$5371d370$d4323690@System.local> Hi Yan, I never worked with BMP slice just DICOM, Try change iso->SetValue(0,1150) to other values ----- Original Message ----- From: "#YAN RI AN#" To: "Vtkusers (E-mail)" Sent: Saturday, October 05, 2002 2:14 AM Subject: [vtkusers] about the BMP slice Read & 3D Rendering. > > Dear VTK-Users: > I meet the problem when I read a stack of 512x512x256 BMP file. > I used the vtkImageReader class instead of vtkVolume16Reader class because It was not a 16 bit image format. > I could not get the correct rendering of each organ such as only the rendering of the bone in the BMP slice. > > Here is my source code: > > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,100,0,100,1,12); > reader->SetDataSpacing(1,1,0.5); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,1150); > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper(isoMapper); > isoActor->GetProperty()->SetColor(1,1,1); > > vtkRenderer *ren1 = vtkRenderer::New(); > ren1->AddActor(isoActor); > ren1->SetBackground(0.2,0.3,0.5); > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > renWin->SetSize(600,600); > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > > renWin->Render(); > iren->Start(); > > How could I do? > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 williams13 at llnl.gov Mon Oct 7 08:45:54 2002 From: williams13 at llnl.gov (Dean N. Williams) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> Message-ID: <3DA18202.7050709@llnl.gov> Dear VTK users, I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with Python 2.2.1 and tcl/tk 8.3.3. For the most part Python/VTK works, but I am running into the following core dumps in the Wrapping/Python directory: cloud% python vtkGetDataRoot.py cloud% python vtkLoadPythonTkWidgets.py cloud% python vtkpython.py cloud% python vtkpythontk.py cloud% python vtkRenderWidget.py Segmentation fault cloud% python vtkTkImageViewerWidget.py Segmentation fault cloud% python vtkTkImageWindowWidget.py Segmentation fault cloud% python vtkTkRenderWidget.py Segmentation fault cloud% Has anyone else encountered these core dumps and how do I fix this so that I can use VTK and Python? Thanks in advance for your help. Best regards, Dean From PS7278514B at ntu.edu.sg Mon Oct 7 08:54:58 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] About a Stack of *.BMP Slices Rendering! Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A685@mail02.student.main.ntu.edu.sg> Dear VTK-Users: There was no problem when I Read in & 3D Render & Write out *.stl Format the Headsq files which provided by Kitware Co.. But I met the problem when I read a stack of 512x512x256 *.BMP head slice files. The XY boundary size of the files is 220.2mm X 220.2mm. I renamed it into *.01,*.02...... already, It could read but could not rendering. I did not know how to pre-process,process & post process the stack of *.BMP format slices. Could anyone share some experience about it? Here is my program: vtkImageReader *reader=vtkImageReader::New(); reader->SetFilePrefix("g:/00head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,220,0,220,1,33); reader->SetDataSpacing(1,1,3); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,1150); vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); vtkActor *isoActor=vtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(1,1,1); vtkRenderer *ren1 = vtkRenderer::New(); ren1->AddActor(isoActor); ren1->SetBackground(0.2,0.3,0.5); *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From c.p.botha at its.tudelft.nl Mon Oct 7 09:00:12 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA18202.7050709@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> Message-ID: <1033995612.18506.15.camel@dutidad> On Mon, 2002-10-07 at 14:45, Dean N. Williams wrote: > I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with > Python 2.2.1 > and tcl/tk 8.3.3. For the most part Python/VTK works, but I am > running into the following > core dumps in the Wrapping/Python directory: > > cloud% python vtkGetDataRoot.py > cloud% python vtkLoadPythonTkWidgets.py > cloud% python vtkpython.py > cloud% python vtkpythontk.py > cloud% python vtkRenderWidget.py > Segmentation fault > cloud% python vtkTkImageViewerWidget.py > Segmentation fault > cloud% python vtkTkImageWindowWidget.py > Segmentation fault > cloud% python vtkTkRenderWidget.py > Segmentation fault > cloud% I haven't seen these before. Could you try generating a back-trace? I.e. do the following in the Wrapping/Python directory: 1. $ gdb python 2. (gdb) run vtkRenderWidget.py ... wait for the segmentation fault. 3. (gdb) bt Study the output for possibilities and/or send it to this list. Regards, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From winston at cat.rpi.edu Mon Oct 7 09:10:35 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] how to read the medical images & display it. References: <10B96F9B1453D61191B400508B650D9402B3CA6A@ban03xbindge> Message-ID: <3DA187CB.CDDFCC99@cat.rpi.edu> "Heman, Malve (MED, Contractor)" wrote: > > how to read the medical images & display it. > send the sorce code for this one. Malve, Here's a Tcl/Tk example that reads a GE Signa format CT scan and displays it. I don't know about readers for other file formats. HTH, -Jeremy ----- Tcl/Tk script: ----- vtkGESignaReader ctReader ctReader SetFileName (GE Signa file name goes here) ctReader Update vtkImageMapper ctMapper ctMapper SetInput [ctReader GetOutput] vtkActor2D ctActor ctActor SetMapper ctMapper vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin SetSize 512 512 ren1 AddActor2D ctActor renWin Render wm withdraw . From dharmendra at strandgenomics.com Mon Oct 7 09:16:23 2002 From: dharmendra at strandgenomics.com (Dharmendra) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20021007184218.00ac8c00@mail.strandgenomics.com> Hi All, I have to render a molecule which has many atoms.Basically this boils down to drawing spheres. I have to draw some 5000 spheres. My problem is when i render so many spheres rendering is very slow and interaction even slower. Is there a better way of rendering so many spheres and still maintaining the speed and interaction. thanks in advance. dharmendra From winston at cat.rpi.edu Mon Oct 7 09:19:28 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] urgent References: <5.1.1.6.0.20021007184218.00ac8c00@mail.strandgenomics.com> Message-ID: <3DA189E0.842CB65A@cat.rpi.edu> Dharmendra wrote: > > Hi All, > I have to render a molecule which has many atoms.Basically this boils > down to drawing spheres. I have to draw some 5000 spheres. > My problem is when i render so many spheres rendering is very slow and > interaction even slower. > > Is there a better way of rendering so many spheres and still maintaining > the speed and interaction. Dharmendra, Take a look at the vtkLODActor class: http://public.kitware.com/VTK/doc/nightly/html/classvtkLODActor.html It allows different levels of detail for interactive updates versus static display. The lower the level of detail, the faster the rendering. HTH, -Jeremy From P.J.H.de_Koning at lumc.nl Mon Oct 7 09:23:24 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] About a Stack of *.BMP Slices Rendering! In-Reply-To: <0C42D409AF10B1428A0B026FB160A5BE33A685@mail02.student.main.ntu.edu.sg> Message-ID: <3Y86WR65YVC89654KGTNCBEBDAXS844Y.3da18acc@MRI-PATRICK> 07-10-02 14:54:58, "#YAN RI AN#" wrote: I Would suggest using the vtkBMPReader. Furthermore I don't think the imagevalues will go to 1150 in 8-bit BMP images. Try a value between 0 and 255. >Dear VTK-Users: >There was no problem when I Read in & 3D Render & Write out *.stl Format the Headsq files which provided by Kitware Co.. >But I met the problem when I read a stack of 512x512x256 *.BMP head slice files. >The XY boundary size of the files is 220.2mm X 220.2mm. >I renamed it into *.01,*.02...... already, It could read but could not rendering. >I did not know how to pre-process,process & post process the stack of *.BMP format slices. >Could anyone share some experience about it? >Here is my program: > > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,220,0,220,1,33); > reader->SetDataSpacing(1,1,3); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,1150); > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper(isoMapper); > isoActor->GetProperty()->SetColor(1,1,1); > > vtkRenderer *ren1 = vtkRenderer::New(); > ren1->AddActor(isoActor); > ren1->SetBackground(0.2,0.3,0.5); > >*************************************** >* Best Regards >* Yan Rian (Research Student) >* Email : ps7278514b@ntu.edu.sg >* Lab : AMRC Research Centre >* Nanyang Technological University >* Singapore >*************************************** > > >_______________________________________________ >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 williams13 at llnl.gov Mon Oct 7 09:38:17 2002 From: williams13 at llnl.gov (Dean N. Williams) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> Message-ID: <3DA18E49.6020500@llnl.gov> Charl, This is the output I received from running "gdb": cloud% gdb python GNU gdb Red Hat Linux (5.1.90CVS-5) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run vtkRenderWidget.py Starting program: /data/ASD_work/cdat/bin/python vtkRenderWidget.py [New Thread 1024 (LWP 13266)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt #0 0x400360c7 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 0x417db236 in Tcl_Free () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #4 0x41816780 in ResetObjResult () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #5 0x41815fd5 in Tcl_SetResult () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #6 0x4183a590 in Tk_MainWindow () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #7 0x417d41e0 in Vtkrenderingpythontkwidgets_Init () from /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #8 0x4013e3c6 in Tcl_LoadObjCmd () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 0x401286d4 in TclExecuteByteCode () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #10 0x4010e1da in Tcl_EvalObjEx () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #11 0x40111e51 in Tcl_CatchObjCmd () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #12 0x4014450a in EvalObjv () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #13 0x40144c0d in Tcl_EvalEx () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #14 0x40144f0d in Tcl_Eval () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #15 0x4008cbd1 in Tkapp_Eval () from /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #16 0x080b146b in PyCFunction_Call () #17 0x080723ec in eval_frame () #18 0x0807339f in PyEval_EvalCodeEx () #19 0x08074189 in fast_function () #20 0x0807248b in eval_frame () #21 0x0807339f in PyEval_EvalCodeEx () #22 0x080a7865 in function_call () #23 0x0809a7c4 in PyObject_Call () #24 0x0809fc1f in instancemethod_call () #25 0x0809a7c4 in PyObject_Call () #26 0x08073f2d in PyEval_CallObjectWithKeywords () #27 0x0809cb3d in PyInstance_New () #28 0x0809a7c4 in PyObject_Call () #29 0x0807440b in do_call () #30 0x080724a2 in eval_frame () #31 0x0807339f in PyEval_EvalCodeEx () #32 0x08074189 in fast_function () #33 0x0807248b in eval_frame () ---Type to continue, or q to quit--- #34 0x0807339f in PyEval_EvalCodeEx () #35 0x0806fcfa in PyEval_EvalCode () #36 0x08088f8c in run_node () #37 0x08088f4d in run_err_node () #38 0x08088f1a in PyRun_FileExFlags () #39 0x080882bf in PyRun_SimpleFileExFlags () #40 0x08087dc3 in PyRun_AnyFileExFlags () #41 0x08053423 in Py_Main () #42 0x08052d51 in main () #43 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) >On Mon, 2002-10-07 at 14:45, Dean N. Williams wrote: > > >> I am trying to run VTK 4.0 on my PC Linux Red Hat 7.2 platform with >>Python 2.2.1 >> and tcl/tk 8.3.3. For the most part Python/VTK works, but I am >>running into the following >> core dumps in the Wrapping/Python directory: >> >>cloud% python vtkGetDataRoot.py >>cloud% python vtkLoadPythonTkWidgets.py >>cloud% python vtkpython.py >>cloud% python vtkpythontk.py >>cloud% python vtkRenderWidget.py >>Segmentation fault >>cloud% python vtkTkImageViewerWidget.py >>Segmentation fault >>cloud% python vtkTkImageWindowWidget.py >>Segmentation fault >>cloud% python vtkTkRenderWidget.py >>Segmentation fault >>cloud% >> >> > >I haven't seen these before. Could you try generating a back-trace? >I.e. do the following in the Wrapping/Python directory: >1. $ gdb python >2. (gdb) run vtkRenderWidget.py >... wait for the segmentation fault. >3. (gdb) bt > >Study the output for possibilities and/or send it to this list. > >Regards, >Charl > > > From anast.jm at pg.com Mon Oct 7 10:39:11 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] Please Help Message-ID: vtkUnstructuredGrid virtual void GetCellPoints (vtkIdType cellId, vtkIdList *ptIds) Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "ravi kiran" @public.kitware.com on 10/04/2002 06:27 PM GMT "ravi kiran" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Please Help Sent by: vtkusers-admin@public.kitware.com 10/04/2002 02:27 PM Hi, I have a problem determining the coordinates of the points of each element in the tetrahedralized domain. I used vtkDelaunay3D to tetrahedralize a simple cube generated by a matrix of 10 by 10 by 10 points. Now i need to determine the coordinates of the points?of each tetrahedral element generated. I need to determine?the points that form each element.?What do i have to do?Can anyone please help me solve this problem? Thanx Ravi Join the world's largest e-mail service with MSN Hotmail. Click Here From jiang at TI.FhG.DE Mon Oct 7 11:00:32 2002 From: jiang at TI.FhG.DE (Chunyan Jiang) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] VTK examples in VC++ Message-ID: Dear vtk-users, Where can I get the examples of vtk in VC++? The examples offered by kitware website are not enough for me. I'd like to get more source codes of examples from simple to complex. Thank you very much. Chunyan Jiang *********************************************************************** Chunyan Jiang, Dipl.-Inform., Institut for Telematic Bahnhofstrasse 30-32, D-54292 Trier, Germany Phone: (+49) (0)651-97551-34 Fax: (+49) (0)651-97551-12 *********************************************************************** From prabhu at aero.iitm.ernet.in Mon Oct 7 11:18:32 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA18E49.6020500@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> Message-ID: <15777.42440.465218.796738@monster.linux.in> >>>>> "DNW" == Dean N Williams writes: DNW> Charl, This is the output I received from running "gdb": DNW> Program received signal SIGSEGV, Segmentation fault. DNW> [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in DNW> pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt DNW> #0 0x400360c7 in pthread_mutex_lock () from DNW> /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from DNW> /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from DNW> /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 DNW> 0x417db236 in Tcl_Free () from [snip] DNW> /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 This might be a Tcl/Tk version issue. Try these: ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so And make sure they both point to the same version of libtcl*.so and libtk*.so. If they don't then recompile VTK with the libtcl and libtk pointing to the same libtcl/tk that your Python's _tkinter.so points to. This might fix your problem. Good luck! cheers, prabhu From winston at cat.rpi.edu Mon Oct 7 12:33:46 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:51 2004 Subject: [vtkusers] VTK examples in VC++ References: Message-ID: <3DA1B76A.F2145D7D@cat.rpi.edu> Chunyan Jiang wrote: > > Dear vtk-users, > Where can I get the examples of vtk in VC++? The examples offered by kitware > website are not enough for me. I'd like to get more source codes of examples > from simple to complex. Chunyan, Have you looked at the regression test code for each class? See the "Class to Tests" links from http://public.kitware.com/VTK/doc/nightly/html/pages.html Do you have a copy of the "Visualization Toolkit" textbook and users guide? C.f., S?bastien Barr?'s Example page at http://www.barre.nom.fr/vtk/links-examples.html HTH, -Jeremy From williams13 at llnl.gov Mon Oct 7 12:47:51 2002 From: williams13 at llnl.gov (Dean N. Williams) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> Message-ID: <3DA1BAB7.7060600@llnl.gov> Prabhu, I will rebuild the VTK again and hope that this clears things up. Here is the outcome of running ldd on both shared libraries: cloud% ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40144000) libdl.so.2 => /lib/libdl.so.2 (0x40159000) libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x4015c000) libvtkCommon.so => /data/vtk4.0/VTK/bin/libvtkCommon.so (0x401c8000) libvtkFiltering.so => /data/vtk4.0/VTK/bin/libvtkFiltering.so (0x40399000) libvtkImaging.so => /data/vtk4.0/VTK/bin/libvtkImaging.so (0x403fe000) libvtkGraphics.so => /data/vtk4.0/VTK/bin/libvtkGraphics.so (0x406ca000) libvtkRendering.so => /data/vtk4.0/VTK/bin/libvtkRendering.so (0x40964000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40b4e000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40b9a000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40ba2000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40bb9000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40c8e000) libm.so.6 => /lib/i686/libm.so.6 (0x40c9c000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40cbe000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) cloud% ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40145000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libdl.so.2 => /lib/libdl.so.2 (0x4021b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Neither show the use of tcl/tk. -Dean >>>>>>"DNW" == Dean N Williams writes: >>>>>> >>>>>> > > DNW> Charl, This is the output I received from running "gdb": > > DNW> Program received signal SIGSEGV, Segmentation fault. > DNW> [Switching to Thread 1024 (LWP 13266)] 0x400360c7 in > DNW> pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) bt > DNW> #0 0x400360c7 in pthread_mutex_lock () from > DNW> /lib/i686/libpthread.so.0 #1 0x4207ac18 in free () from > DNW> /lib/i686/libc.so.6 #2 0x41831952 in TclpFree () from > DNW> /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so #3 > DNW> 0x417db236 in Tcl_Free () from > >[snip] > > DNW> /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so #9 > > >This might be a Tcl/Tk version issue. Try these: > > ldd /data/vtk4.0/VTK/bin/libvtkRenderingPythonTkWidgets.so > > ldd /data/ASD_work/cdat/lib/python2.2/lib-dynload/_tkinter.so > >And make sure they both point to the same version of libtcl*.so and >libtk*.so. > >If they don't then recompile VTK with the libtcl and libtk pointing to >the same libtcl/tk that your Python's _tkinter.so points to. This >might fix your problem. > >Good luck! > >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 prabhu at aero.iitm.ernet.in Mon Oct 7 13:05:37 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump In-Reply-To: <3DA1BAB7.7060600@llnl.gov> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> <3DA1BAB7.7060600@llnl.gov> Message-ID: <15777.48865.377847.358359@monster.linux.in> >>>>> "DNW" == Dean N Williams writes: DNW> Prabhu, I will rebuild the VTK again and hope that this DNW> clears things up. Here is the outcome of running ldd on both DNW> shared libraries: [snip] DNW> Neither show the use of tcl/tk. Well simply rebuilding it might not fix the problem. It looks like you have built both Python and VTK with the static Tcl/Tk libraries. Maybe you should recompile both Python and VTK to use the shared versions of Tcl/Tk. For VTK make sure CMake is using the shared version. TCL_LIBRARY:FILEPATH=/usr/lib/libtcl8.3.so TK_LIBRARY:FILEPATH=/usr/lib/libtk8.3.so Or whatever appropriate version is on your system. BTW, do the VTK Tcl/Tk examples work ok? Hope this helps. prabhu From dan at chalkie.org.uk Mon Oct 7 13:22:36 2002 From: dan at chalkie.org.uk (Dr. Dan White) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] vtkJPEGReader and vtkTIFFReader Message-ID: <5F5C20A2-DA19-11D6-9890-000393686412@chalkie.org.uk> Hi VTK jpeg and tiff file reader people, I have a stack of images as .jpg or .tif files which I want to volume render (texture map or ray trace) When I use vtkTIFFReader or vtkJPEGReader in a python script as show below no matter how I play with the opacity transfer and colour transfer functions the volume rendered data looks garbled and in little rectangular chunks, and weird layers, instead of the shape of a cell which am expecting. my files are 102x119 pixels and there are 20 slices with files numbered 001-020. I can't find any examples in the mailing list or example scripts of how to use vtkTIFFReader or vtkJPEGReader properly....... What am I doing wrong? cheers Dan # Data reader reader = vtkJPEGReader () reader.SetFilePrefix(filename) reader.SetFilePattern("%s%03i.jpg") reader.SetDataExtent(0,101,0,118,001,020) # 1,20 works too reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToBigEndian # tiff files are from PC, jpeg from linux, but seems to make no difference if big or little endian is set #reader.SetDataMask(0x7fff) # what does this do, gives error, do I need it? dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv?skyl? FIN-40351 Jyv?skyl? Finland +358 (0)14 260 4183 (office) From marcelo at radioimaging.net Mon Oct 7 13:51:20 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] events with keyboard Message-ID: <018801c26e2a$251cc740$d4323690@System.local> Hi users !!! I want to rotate a volume using the keyboard, How can i do and where i can find some examples ??? Tanks for advanced me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021007/037ad36d/attachment.htm From marcelo at radioimaging.net Mon Oct 7 13:52:39 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Re: events with keyboard Message-ID: <019201c26e2a$5405e730$d4323690@System.local> Hi users !!! I want to rotate a volume using the keyboard, How can i do and where i can find some examples ??? Tanks for advanced me ps. I?m using Borland C++ Builder 6 and VTK 4.0 and Windows XP -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021007/04a049b8/attachment.html From bruce_clay at qualia-computing.com Mon Oct 7 13:52:49 2002 From: bruce_clay at qualia-computing.com (Bruce Clay) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Positioning text Message-ID: I am working on a program the allows the user to reconfigure multiple screens (views) using splitter windows. In one configuration a VTK window is used to draw 2D text. When the text is displayed, it is drawn as expected at the lower left corner of the screen. I have tried various methods to set the origin to the top left for user convinience. The only method I can find that works is SetPosition. To make this effective I need to get the height of the text then use the window height to calculate the offset. GetHeight returns 0.0 so that doesn't work. The rest of the text in embedded in the code below. text_ = vtkActor2D::New(); vtk_renderer_->AddActor( text_ ); text_mapper_ = vtkTextMapper::New(); text_->SetMapper(text_mapper_); vtk_renderer_->AddActor(text_); vtk_renderer_->SetBackground(0.0,0.0,0.0); text_mapper_->SetFontSize(12); text_mapper_->BoldOn(); If I use any of the next four lines the text does not show up at all text_mapper_->SetVerticalJustificationToTop(); text_mapper_->SetVerticalJustification(VTK_TEXT_TOP); text_mapper_->SetJustification(VTK_TEXT_CENTERED); text_mapper_->SetJustificationToCentered (); } text_mapper_->SetInput(str_ptr); the line belows always returns 0.0 float height = text_mapper_->GetHeight(this); The line below works but is not flexible enough to handle different string lengths text_->SetPosition(10.0, 80.0); There is another GetHeight that from the description might work but it requires the address of a vtkViewport. How do I get one of these?? Is there a more flexible way to get the text origin to be the top keft corner of the window?? Did I use the set justification methods incorrectly? Thanks for your help in advance Bruce Clay From anast.jm at pg.com Mon Oct 7 14:23:57 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] vtkJPEGReader and vtkTIFFReader Message-ID: I suspect these are color images and you might want to try to extract the luminance (vtkImageLuminance) before rendering....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Dr. Dan White" @public.kitware.com on 10/07/2002 08:22 PM ZE3 "Dr. Dan White" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] vtkJPEGReader and vtkTIFFReader Sent by: vtkusers-admin@public.kitware.com 10/07/2002 01:22 PM Hi VTK jpeg and tiff file reader people, I have a stack of images as .jpg or .tif files which I want to volume render (texture map or ray trace) When I use vtkTIFFReader or vtkJPEGReader in a python script as show below no matter how I play with the opacity transfer and colour transfer functions the volume rendered data looks garbled and in little rectangular chunks, and weird layers, instead of the shape of a cell which am expecting. my files are 102x119 pixels and there are 20 slices with files numbered 001-020. I can't find any examples in the mailing list or example scripts of how to use vtkTIFFReader or vtkJPEGReader properly....... What am I doing wrong? cheers Dan # Data reader reader = vtkJPEGReader () reader.SetFilePrefix(filename) reader.SetFilePattern("%s%03i.jpg") reader.SetDataExtent(0,101,0,118,001,020) # 1,20 works too reader.SetDataSpacing(1,1,3) reader.SetDataByteOrderToBigEndian # tiff files are from PC, jpeg from linux, but seems to make no difference if big or little endian is set #reader.SetDataMask(0x7fff) # what does this do, gives error, do I need it? dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv?skyl? FIN-40351 Jyv?skyl? Finland +358 (0)14 260 4183 (office) _______________________________________________ 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 krw at viz-solutions.com Mon Oct 7 16:19:14 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? Message-ID: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> I just tracked down what looks like an odd bug, and I was wondering if anyone out there had any insight. I'm using a vtkPolyDataReader object to field incoming polydata definitions through a socket. I do this by reading the polydata from the socket into a string, then using the input string in the vtkDataReader. Everything generally worked fine, except in some cases the pipeline would not update when new data came down the socket. Eventually I tracked the problem down to vtkDataReader::SetInputString which, before assigning the string, does a string compare between the old and new string. When the new and old datasets were very similar (usually identical geometry, slightly changed scalar values) the strncmp would return a match. The string length was correct, and once the string compare was removed, everything worked fine. I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try the same thing on IRIX and Linux to see what happens, but I was wondering: 1. Has anyone seen this kind of behavior before? 2. Should the string compare really be there at all, given that these strings could be very long? Regards, Kevin. From jeff at cdnorthamerica.com Mon Oct 7 16:25:14 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> Message-ID: <3DA1EDAA.2060108@cdnorthamerica.com> Are you using vtkSocketController/vtkSocketCommunicator? These objects already do this under the hood. -Jeff Kevin Wright wrote: > I just tracked down what looks like an odd bug, and I was wondering if > anyone out there had any insight. > > I'm using a vtkPolyDataReader object to field incoming polydata > definitions through a socket. I do this by reading the polydata from > the socket into a string, then using the input string in the > vtkDataReader. > > Everything generally worked fine, except in some cases the pipeline > would not update when new data came down the socket. Eventually I > tracked the problem down to vtkDataReader::SetInputString which, > before assigning the string, does a string compare between the old and > new string. > > When the new and old datasets were very similar (usually identical > geometry, slightly changed scalar values) the strncmp would return a > match. The string length was correct, and once the string compare was > removed, everything worked fine. > > I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try > the same thing on IRIX and Linux to see what happens, but I was wondering: > > 1. Has anyone seen this kind of behavior before? > 2. Should the string compare really be there at all, given that these > strings could be very long? > > Regards, > Kevin. > > _______________________________________________ > 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 krw at viz-solutions.com Mon Oct 7 16:58:19 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA1EDAA.2060108@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> At 04:25 PM 10/7/2002 -0400, you wrote: >Are you using vtkSocketController/vtkSocketCommunicator? These objects >already do this under the hood. >-Jeff No, I'm tying it in with some other code here. Are you saying that vtkSocketController/Communicator addresses the bug that I'm talking about, or that it provides the same functionality? Kevin. >Kevin Wright wrote: > >>I just tracked down what looks like an odd bug, and I was wondering if >>anyone out there had any insight. >> >>I'm using a vtkPolyDataReader object to field incoming polydata >>definitions through a socket. I do this by reading the polydata from the >>socket into a string, then using the input string in the vtkDataReader. >> >>Everything generally worked fine, except in some cases the pipeline would >>not update when new data came down the socket. Eventually I tracked the >>problem down to vtkDataReader::SetInputString which, before assigning the >>string, does a string compare between the old and new string. >> >>When the new and old datasets were very similar (usually identical >>geometry, slightly changed scalar values) the strncmp would return a >>match. The string length was correct, and once the string compare was >>removed, everything worked fine. >> >>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>the same thing on IRIX and Linux to see what happens, but I was wondering: >> >>1. Has anyone seen this kind of behavior before? >>2. Should the string compare really be there at all, given that these >>strings could be very long? >> >>Regards, >>Kevin. >> >>_______________________________________________ >>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 clarke at ARL.ARMY.MIL Mon Oct 7 17:10:54 2002 From: clarke at ARL.ARMY.MIL (Jerry Clarke ) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Cygwin Build Message-ID: <3DA1F85E.6FA7754@arl.army.mil> I'm trying to build the nightly release on a Win2000 box under cygwin. I'm getting a huge amount of undefined externals when it tries to build the Imaging .dll. the first is : undefined reference to vtkImageIterator::vtkImageIterator(vtkImageData *, int *) Has anyone built the Nightly release under cygwin,shared,python recently ? -------------------------------------------------------------- Jerry A. Clarke clarke@arl.army.mil (410)278-9279 Fax (410)278-9199 US Army Research Laboratory Blg. 394 Room 201B -------------------------------------------------------------- From cmchilan at yahoo.com Mon Oct 7 17:13:01 2002 From: cmchilan at yahoo.com (Christian Chilan) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Copyright question Message-ID: <20021007211301.43397.qmail@web20204.mail.yahoo.com> Hi there, We've created a shareware application using VTK and Tcl/Tk to visualize 2D and 3D data sets. We may be using patented classes such as vtkMarchingCubes indirectly (we call vtkContourFilter in the app). Do these classes require a copyright handling other than just the inclusion of the notice at http://public.kitware.com/VTK/copyright.php in the application? Thanks, Christian __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From jeff at cdnorthamerica.com Mon Oct 7 17:13:50 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> Message-ID: <3DA1F90E.3000002@cdnorthamerica.com> Kevin Wright wrote: > At 04:25 PM 10/7/2002 -0400, you wrote: > >> Are you using vtkSocketController/vtkSocketCommunicator? These >> objects already do this under the hood. >> -Jeff > > > No, I'm tying it in with some other code here. Are you saying that > vtkSocketController/Communicator addresses the bug that I'm talking > about, or that it provides the same functionality? those classes provide the same functionality, and use a very similar approach. I'm not sure what you are seeing is a bug per-se - does your Irix/Linux build do the same thing? I agree that the string compare could be expensive, but the dataset update could be even more so. I have been told that the data readers/writers are going to change in the near future to xml anyway, but it would be good to know if this is just a windows problem. I have been using the socketcommunicator for quite some time and it doesn't exhibit these symptoms. If you have some sample code, it might be worth putting up on the list so people can test it... -Jeff > > > Kevin. > > >> Kevin Wright wrote: >> >>> I just tracked down what looks like an odd bug, and I was wondering >>> if anyone out there had any insight. >>> >>> I'm using a vtkPolyDataReader object to field incoming polydata >>> definitions through a socket. I do this by reading the polydata >>> from the socket into a string, then using the input string in the >>> vtkDataReader. >>> >>> Everything generally worked fine, except in some cases the pipeline >>> would not update when new data came down the socket. Eventually I >>> tracked the problem down to vtkDataReader::SetInputString which, >>> before assigning the string, does a string compare between the old >>> and new string. >>> >>> When the new and old datasets were very similar (usually identical >>> geometry, slightly changed scalar values) the strncmp would return a >>> match. The string length was correct, and once the string compare >>> was removed, everything worked fine. >>> >>> I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to >>> try the same thing on IRIX and Linux to see what happens, but I was >>> wondering: >>> >>> 1. Has anyone seen this kind of behavior before? >>> 2. Should the string compare really be there at all, given that >>> these strings could be very long? >>> >>> Regards, >>> Kevin. >>> >>> _______________________________________________ >>> 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 krw at viz-solutions.com Mon Oct 7 17:32:27 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA1F90E.3000002@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> At 05:13 PM 10/7/2002 -0400, you wrote: >>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>already do this under the hood. >>>-Jeff >> >> >>No, I'm tying it in with some other code here. Are you saying that >>vtkSocketController/Communicator addresses the bug that I'm talking >>about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? I agree that the string compare could >be expensive, but the dataset update could be even more so. I have been >told that the data readers/writers are going to change in the near future >to xml anyway, but it would be good to know if this is just a windows >problem. I have been using the socketcommunicator for quite some time and >it doesn't exhibit these symptoms. If you have some sample code, it might >be worth putting up on the list so people can test it... >-Jeff I'm going to be doing some testing on IRIX/LINUX and if there are any interesting results I'll post them. I think its entirely possible that the vtk socket code does demonstrate the same symptoms. As I said, for some reason, it only happens when the incoming polydata only changes slightly from the version currently in the reader. It would be difficult to extract the code that I'm seeing this on, but perhaps I'll try to make a small sample that exhibits the same symptoms. As far as the cost of the string compare, it seems to me that by uploading the responsibility of that check to the caller of the reader, you give the programmer the option to either spend the time checking, or not. In my case, I'm performing that check already before sending the data down the socket, so its purely wasted time for me. Its a small point, but perhaps even a "no check" option would be a good addition to the reader. Thanks for the feedback Jeff. Kevin. >>Kevin. >> >> >>>Kevin Wright wrote: >>> >>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>anyone out there had any insight. >>>> >>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>definitions through a socket. I do this by reading the polydata from >>>>the socket into a string, then using the input string in the vtkDataReader. >>>> >>>>Everything generally worked fine, except in some cases the pipeline >>>>would not update when new data came down the socket. Eventually I >>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>assigning the string, does a string compare between the old and new string. >>>> >>>>When the new and old datasets were very similar (usually identical >>>>geometry, slightly changed scalar values) the strncmp would return a >>>>match. The string length was correct, and once the string compare was >>>>removed, everything worked fine. >>>> >>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>> >>>>1. Has anyone seen this kind of behavior before? >>>>2. Should the string compare really be there at all, given that these >>>>strings could be very long? >>>> >>>>Regards, >>>>Kevin. >>>> >>>>_______________________________________________ >>>>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 stevie157 at gmx.net Mon Oct 7 18:06:33 2002 From: stevie157 at gmx.net (Stefan Ulbrich) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Creating .vtk files Message-ID: <3DA20569.4060904@gmx.net> hi, i want to create a .vtk file out of several cubes, spheres etc. objects. dows anyone know how i have to do this? thanks stefan From David.Pont at ForestResearch.co.nz Mon Oct 7 18:41:56 2002 From: David.Pont at ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] string compare bug? Message-ID: Nothing to do with the possible bug, just something <=2c worth, To speed up the case where two very long strings are different can you first compare string lengths? Ie if the lengths are different the strings are different, which should save some time in that case. Where the lengths match then the full compare is needed. Another trick, which is no use as a general approach, but can be used in specific applications: If long strings typically carry a prefix which changes slowly, and a suffix which changes more rapidly, it can be much more efficient to do your own compare (when the lengths are equal) by comparing chars starting from the end and advancing towards the front of the string. regards Dave Pont |--------+---------------------------------> | | Kevin Wright | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 08/10/2002 10:32 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: Re: [vtkusers] string compare bug? | >------------------------------------------------------------------------------------------------------------| At 05:13 PM 10/7/2002 -0400, you wrote: >>>Are you using vtkSocketController/vtkSocketCommunicator? These objects >>>already do this under the hood. >>>-Jeff >> >> >>No, I'm tying it in with some other code here. Are you saying that >>vtkSocketController/Communicator addresses the bug that I'm talking >>about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? I agree that the string compare could >be expensive, but the dataset update could be even more so. I have been >told that the data readers/writers are going to change in the near future >to xml anyway, but it would be good to know if this is just a windows >problem. I have been using the socketcommunicator for quite some time and >it doesn't exhibit these symptoms. If you have some sample code, it might >be worth putting up on the list so people can test it... >-Jeff I'm going to be doing some testing on IRIX/LINUX and if there are any interesting results I'll post them. I think its entirely possible that the vtk socket code does demonstrate the same symptoms. As I said, for some reason, it only happens when the incoming polydata only changes slightly from the version currently in the reader. It would be difficult to extract the code that I'm seeing this on, but perhaps I'll try to make a small sample that exhibits the same symptoms. As far as the cost of the string compare, it seems to me that by uploading the responsibility of that check to the caller of the reader, you give the programmer the option to either spend the time checking, or not. In my case, I'm performing that check already before sending the data down the socket, so its purely wasted time for me. Its a small point, but perhaps even a "no check" option would be a good addition to the reader. Thanks for the feedback Jeff. Kevin. >>Kevin. >> >> >>>Kevin Wright wrote: >>> >>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>anyone out there had any insight. >>>> >>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>definitions through a socket. I do this by reading the polydata from >>>>the socket into a string, then using the input string in the vtkDataReader. >>>> >>>>Everything generally worked fine, except in some cases the pipeline >>>>would not update when new data came down the socket. Eventually I >>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>assigning the string, does a string compare between the old and new string. >>>> >>>>When the new and old datasets were very similar (usually identical >>>>geometry, slightly changed scalar values) the strncmp would return a >>>>match. The string length was correct, and once the string compare was >>>>removed, everything worked fine. >>>> >>>>I'm working on a Windows 2000 machine with VC++ 6.0. I'm about to try >>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>> >>>>1. Has anyone seen this kind of behavior before? >>>>2. Should the string compare really be there at all, given that these >>>>strings could be very long? >>>> >>>>Regards, >>>>Kevin. >>>> >>>>_______________________________________________ >>>>This is the private VTK discussion list. Please keep messages on-topic. >>>>Check the FAQ at: >>>>Follow this link to subscribe/unsubscribe: >>>>http://public.kitware.com/mailman/listinfo/vtkusers >> >> >>_______________________________________________ >>This is the private VTK discussion list. Please keep messages on-topic. >>Check the FAQ at: >>Follow this link to subscribe/unsubscribe: >>http://public.kitware.com/mailman/listinfo/vtkusers >> > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From a.maclean at acfr.usyd.edu.au Mon Oct 7 20:33:40 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] tk8.4 Message-ID: <00a001c26e62$597d9d10$88d24e81@acfr.usyd.edu.au> Has CMake been modified to allow us to use tk8.4? 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: http://public.kitware.com/pipermail/vtkusers/attachments/20021008/f9f1d6a8/attachment.htm From butler at ARL.ARMY.MIL Mon Oct 7 22:19:56 2002 From: butler at ARL.ARMY.MIL (Lee A. Butler) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] Picking Glyphs? Message-ID: Does anyone have example code of picking glyphs? I want to be able to get the point the glyph was constructed from as a result of a pick operation. I gather from the web page on Glyph3D that the "GeneratePointIds" option is desireable. A fragment of the Tcl code I have is: vtkUnstructuredGridReader ugr ugr SetFileName ptdata.vtk vtkConeSource cone vtkGlyph3D glyph glyph SetInput [ugr GetOutput] glyph SetSource [cone GetOutput] glyph GeneratePointIdsOn vtkPolyDataMapper glyphmapper vtkActor glyphActor proc endPick {args} { # What code here? } vtkCellPicker picker picker SetEndPickMethod endPick Two things are wrong here: 1) The bounding box is drawn around the whole collection of points, whereas I want to box just the glyph selected. 2) I can't seem to find a way to identify the original point from the glyph through any accessor methods. Can anyone tell me how to access the original point from within the endPick routine? The cell reported by the picker is one for the polygon of the cone. It seems to have only coincidental relationship to the original point. Can anyone tell me how to change the behavior of picking away from drawing the bounding box? If anybody cares, I've attached the point data file Lee A. Butler E-Mail: butler@arl.army.mil Attn: AMSRL-SL-BE Phone: (410) 278-9200 U.S. Army Research Laboratory DSN: 298-9200 Aberdeen Proving Ground, MD 21005-5068 FAX: (410) 278-5058 As nightfall does not come at once, neither does oppression. In both instances, there is a twilight when everything remains seemingly unchanged. And it is in such twilight that we all must be most aware of change in the air--however slight--lest we become unwitting victims of the darkness. --- Justice William O. Douglas -------------- next part -------------- # vtk DataFile Version 4.0 Points to glyph ASCII DATASET UNSTRUCTURED_GRID POINTS 3 float -700.0000000000 0.0000000000 7080.8653830235 7080.8653830235 400.0000000000 1200.0000000000 4175.2403126471 5765.7029515300 700.0000000000 POINT_DATA 3 SCALARS scalar float 1 LOOKUP_TABLE default 1 2 3 VECTORS direction float 0 0 -1 -1 0 0 -0.5 -0.866025 0 From ChnWaiKit at netscape.net Mon Oct 7 22:42:32 2002 From: ChnWaiKit at netscape.net (ChnWaiKit@netscape.net) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] unsubscribe Message-ID: <5176658A.43A2A1AC.022ADDF6@netscape.net> Help vtkusers-request@public.kitware.com wrote: >Send vtkusers mailing list submissions to > ? ?vtkusers@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@public.kitware.com > >You can reach the person managing the list at > ? ?vtkusers-admin@public.kitware.com > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of vtkusers digest..." > > >Today's Topics: > > ? 1. Re: string compare bug? (Jeff Lee) > ? 2. Re: string compare bug? (Kevin Wright) > ? 3. Cygwin Build (Jerry Clarke ) > ? 4. Copyright question (Christian Chilan) > ? 5. Re: string compare bug? (Jeff Lee) > ? 6. Re: string compare bug? (Kevin Wright) > ? 7. Creating .vtk files (Stefan Ulbrich) > ? 8. Re: string compare bug? (David.Pont@ForestResearch.co.nz) > ? 9. tk8.4 (Andrew J. P. Maclean) > >--__--__-- > >Message: 1 >Date: Mon, 07 Oct 2002 16:25:14 -0400 >From: Jeff Lee >Organization: Computational Dynamics North America >To: Kevin Wright >Cc: vtkusers@public.kitware.com >Subject: Re: [vtkusers] string compare bug? > >Are you using vtkSocketController/vtkSocketCommunicator? ?These objects >already do this under the hood. >-Jeff > >Kevin Wright wrote: > >> I just tracked down what looks like an odd bug, and I was wondering if >> anyone out there had any insight. >> >> I'm using a vtkPolyDataReader object to field incoming polydata >> definitions through a socket. ?I do this by reading the polydata from >> the socket into a string, then using the input string in the >> vtkDataReader. >> >> Everything generally worked fine, except in some cases the pipeline >> would not update when new data came down the socket. ?Eventually I >> tracked the problem down to vtkDataReader::SetInputString which, >> before assigning the string, does a string compare between the old and >> new string. >> >> When the new and old datasets were very similar (usually identical >> geometry, slightly changed scalar values) the strncmp would return a >> match. ?The string length was correct, and once the string compare was >> removed, everything worked fine. >> >> I'm working on a Windows 2000 machine with VC++ 6.0. ?I'm about to try >> the same thing on IRIX and Linux to see what happens, but I was wondering: >> >> 1. Has anyone seen this kind of behavior before? >> 2. Should the string compare really be there at all, given that these >> strings could be very long? >> >> Regards, >> Kevin. >> >> _______________________________________________ >> 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 >> >> > > >--__--__-- > >Message: 2 >Date: Mon, 07 Oct 2002 13:58:19 -0700 >To: vtkusers@public.kitware.com >From: Kevin Wright >Subject: Re: [vtkusers] string compare bug? > >At 04:25 PM 10/7/2002 -0400, you wrote: >>Are you using vtkSocketController/vtkSocketCommunicator? ?These objects >>already do this under the hood. >>-Jeff > >No, I'm tying it in with some other code here. ?Are you saying that >vtkSocketController/Communicator addresses the bug that I'm talking about, >or that it provides the same functionality? > >Kevin. > > >>Kevin Wright wrote: >> >>>I just tracked down what looks like an odd bug, and I was wondering if >>>anyone out there had any insight. >>> >>>I'm using a vtkPolyDataReader object to field incoming polydata >>>definitions through a socket. ?I do this by reading the polydata from the >>>socket into a string, then using the input string in the vtkDataReader. >>> >>>Everything generally worked fine, except in some cases the pipeline would >>>not update when new data came down the socket. ?Eventually I tracked the >>>problem down to vtkDataReader::SetInputString which, before assigning the >>>string, does a string compare between the old and new string. >>> >>>When the new and old datasets were very similar (usually identical >>>geometry, slightly changed scalar values) the strncmp would return a >>>match. ?The string length was correct, and once the string compare was >>>removed, everything worked fine. >>> >>>I'm working on a Windows 2000 machine with VC++ 6.0. ?I'm about to try >>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>> >>>1. Has anyone seen this kind of behavior before? >>>2. Should the string compare really be there at all, given that these >>>strings could be very long? >>> >>>Regards, >>>Kevin. >>> >>>_______________________________________________ >>>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 >>> > > > >--__--__-- > >Message: 3 >Date: Mon, 07 Oct 2002 17:10:54 -0400 >From: "Jerry Clarke " >To: vtk users >Subject: [vtkusers] Cygwin Build > > > >I'm trying to build the nightly release on a >Win2000 box under cygwin. I'm getting a huge >amount of undefined externals when it tries >to build the Imaging .dll. ? > >the first is : >undefined reference to >vtkImageIterator::vtkImageIterator(vtkImageData *, int *) > > >Has anyone built >the Nightly release under cygwin,shared,python >recently ? > > >-------------------------------------------------------------- >Jerry A. Clarke ? ? ? ? ? ? clarke@arl.army.mil > ? ? ? ? ? ? ? ? ? ?(410)278-9279 > ? ? ? ? ? ? ? ? ? Fax ?(410)278-9199 >US Army Research Laboratory >Blg. 394 Room 201B >-------------------------------------------------------------- > >--__--__-- > >Message: 4 >Date: Mon, 7 Oct 2002 14:13:01 -0700 (PDT) >From: Christian Chilan >To: vtkusers@public.kitware.com >Subject: [vtkusers] Copyright question > >Hi there, > >We've created a shareware application using VTK and >Tcl/Tk to visualize 2D and 3D data sets. We may be >using patented classes such as vtkMarchingCubes >indirectly (we call vtkContourFilter in the app). Do >these classes require a copyright handling other than >just the inclusion of the notice at >http://public.kitware.com/VTK/copyright.php in the >application? > >Thanks, > >Christian > > >__________________________________________________ >Do you Yahoo!? >Faith Hill - Exclusive Performances, Videos & More >http://faith.yahoo.com > >--__--__-- > >Message: 5 >Date: Mon, 07 Oct 2002 17:13:50 -0400 >From: Jeff Lee >Organization: Computational Dynamics North America >To: Kevin Wright >Cc: vtkusers@public.kitware.com >Subject: Re: [vtkusers] string compare bug? > > > >Kevin Wright wrote: > >> At 04:25 PM 10/7/2002 -0400, you wrote: >> >>> Are you using vtkSocketController/vtkSocketCommunicator? ?These >>> objects already do this under the hood. >>> -Jeff >> >> >> No, I'm tying it in with some other code here. ?Are you saying that >> vtkSocketController/Communicator addresses the bug that I'm talking >> about, or that it provides the same functionality? > > >those classes provide the same functionality, and use a very similar >approach. ?I'm not sure what you are seeing is a bug per-se - does your >Irix/Linux build do the same thing? ?I agree that the string compare >could be expensive, but the dataset update could be even more so. ?I >have been told that the data readers/writers are going to change in the >near future to xml anyway, but it would be good to know if this is just >a windows problem. ?I have been using the socketcommunicator for quite >some time and it doesn't exhibit these symptoms. ?If you have some >sample code, it might be worth putting up on the list so people can test >it... >-Jeff > >> >> >> Kevin. >> >> >>> Kevin Wright wrote: >>> >>>> I just tracked down what looks like an odd bug, and I was wondering >>>> if anyone out there had any insight. >>>> >>>> I'm using a vtkPolyDataReader object to field incoming polydata >>>> definitions through a socket. ?I do this by reading the polydata >>>> from the socket into a string, then using the input string in the >>>> vtkDataReader. >>>> >>>> Everything generally worked fine, except in some cases the pipeline >>>> would not update when new data came down the socket. ?Eventually I >>>> tracked the problem down to vtkDataReader::SetInputString which, >>>> before assigning the string, does a string compare between the old >>>> and new string. >>>> >>>> When the new and old datasets were very similar (usually identical >>>> geometry, slightly changed scalar values) the strncmp would return a >>>> match. ?The string length was correct, and once the string compare >>>> was removed, everything worked fine. >>>> >>>> I'm working on a Windows 2000 machine with VC++ 6.0. ?I'm about to >>>> try the same thing on IRIX and Linux to see what happens, but I was >>>> wondering: >>>> >>>> 1. Has anyone seen this kind of behavior before? >>>> 2. Should the string compare really be there at all, given that >>>> these strings could be very long? >>>> >>>> Regards, >>>> Kevin. >>>> >>>> _______________________________________________ >>>> 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 >> >> > > > >--__--__-- > >Message: 6 >Date: Mon, 07 Oct 2002 14:32:27 -0700 >To: vtkusers@public.kitware.com >From: Kevin Wright >Subject: Re: [vtkusers] string compare bug? > >At 05:13 PM 10/7/2002 -0400, you wrote: >>>>Are you using vtkSocketController/vtkSocketCommunicator? ?These objects >>>>already do this under the hood. >>>>-Jeff >>> >>> >>>No, I'm tying it in with some other code here. ?Are you saying that >>>vtkSocketController/Communicator addresses the bug that I'm talking >>>about, or that it provides the same functionality? >> >> >>those classes provide the same functionality, and use a very similar >>approach. ?I'm not sure what you are seeing is a bug per-se - does your >>Irix/Linux build do the same thing? ?I agree that the string compare could >>be expensive, but the dataset update could be even more so. ?I have been >>told that the data readers/writers are going to change in the near future >>to xml anyway, but it would be good to know if this is just a windows >>problem. ?I have been using the socketcommunicator for quite some time and >>it doesn't exhibit these symptoms. ?If you have some sample code, it might >>be worth putting up on the list so people can test it... >>-Jeff > >I'm going to be doing some testing on IRIX/LINUX and if there are any >interesting results I'll post them. ?I think its entirely possible that the >vtk socket code does demonstrate the same symptoms. ?As I said, for some >reason, it only happens when the incoming polydata only changes slightly >from the version currently in the reader. ?It would be difficult to extract >the code that I'm seeing this on, but perhaps I'll try to make a small >sample that exhibits the same symptoms. > >As far as the cost of the string compare, it seems to me that by uploading >the responsibility of that check to the caller of the reader, you give the >programmer the option to either spend the time checking, or not. ?In my >case, I'm performing that check already before sending the data down the >socket, so its purely wasted time for me. ?Its a small point, but perhaps >even a "no check" option would be a good addition to the reader. > >Thanks for the feedback Jeff. > >Kevin. > > > > >>>Kevin. >>> >>> >>>>Kevin Wright wrote: >>>> >>>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>>anyone out there had any insight. >>>>> >>>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>>definitions through a socket. ?I do this by reading the polydata from >>>>>the socket into a string, then using the input string in the vtkDataReader. >>>>> >>>>>Everything generally worked fine, except in some cases the pipeline >>>>>would not update when new data came down the socket. ?Eventually I >>>>>tracked the problem down to vtkDataReader::SetInputString which, before >>>>>assigning the string, does a string compare between the old and new string. >>>>> >>>>>When the new and old datasets were very similar (usually identical >>>>>geometry, slightly changed scalar values) the strncmp would return a >>>>>match. ?The string length was correct, and once the string compare was >>>>>removed, everything worked fine. >>>>> >>>>>I'm working on a Windows 2000 machine with VC++ 6.0. ?I'm about to try >>>>>the same thing on IRIX and Linux to see what happens, but I was wondering: >>>>> >>>>>1. Has anyone seen this kind of behavior before? >>>>>2. Should the string compare really be there at all, given that these >>>>>strings could be very long? >>>>> >>>>>Regards, >>>>>Kevin. >>>>> >>>>>_______________________________________________ >>>>>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 >>> >> > > > >--__--__-- > >Message: 7 >Date: Tue, 08 Oct 2002 00:06:33 +0200 >From: Stefan Ulbrich >To: vtkusers@public.kitware.com >Subject: [vtkusers] Creating .vtk files > >hi, i want to create a .vtk file out of several cubes, spheres etc. >objects. >dows anyone know how i have to do this? > >thanks > >stefan > > >--__--__-- > >Message: 8 >Subject: Re: [vtkusers] string compare bug? >To: Kevin Wright >Cc: vtkusers@public.kitware.com >From: David.Pont@ForestResearch.co.nz >Date: Tue, 8 Oct 2002 11:41:56 +1300 > > >Nothing to do with the possible bug, just something <=2c worth, > ?To speed up the case where two very long strings are different can you >first compare string lengths? Ie if the lengths are different the strings >are different, which should save some time in that case. Where the lengths >match then the full compare is needed. >Another trick, which is no use as a general approach, but can be used in >specific applications: ?If long strings typically carry a prefix which >changes slowly, and a suffix which changes more rapidly, it can be much >more efficient to do your own compare (when the lengths are equal) by >comparing chars starting from the end and advancing towards the front of >the string. > > ?regards > ? ? Dave Pont > > > >|--------+---------------------------------> >| ? ? ? ?| ? ? ? ? ?Kevin Wright ? ? ? ? ? | >| ? ? ? ?| ? ? ? ? ?| >| ? ? ? ?| ? ? ? ? ?Sent by: ? ? ? ? ? ? ? | >| ? ? ? ?| ? ? ? ? ?vtkusers-admin@public.k| >| ? ? ? ?| ? ? ? ? ?itware.com ? ? ? ? ? ? | >| ? ? ? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | >| ? ? ? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | >| ? ? ? ?| ? ? ? ? ?08/10/2002 10:32 ? ? ? | >| ? ? ? ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | >|--------+---------------------------------> > ?>------------------------------------------------------------------------------------------------------------| > ?| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| > ?| ? ? ?To: ? ? vtkusers@public.kitware.com ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | > ?| ? ? ?cc: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | > ?| ? ? ?Subject: ? ? Re: [vtkusers] string compare bug? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | > ?>------------------------------------------------------------------------------------------------------------| > > > > >At 05:13 PM 10/7/2002 -0400, you wrote: >>>>Are you using vtkSocketController/vtkSocketCommunicator? ?These objects >>>>already do this under the hood. >>>>-Jeff >>> >>> >>>No, I'm tying it in with some other code here. ?Are you saying that >>>vtkSocketController/Communicator addresses the bug that I'm talking >>>about, or that it provides the same functionality? >> >> >>those classes provide the same functionality, and use a very similar >>approach. ?I'm not sure what you are seeing is a bug per-se - does your >>Irix/Linux build do the same thing? ?I agree that the string compare could > >>be expensive, but the dataset update could be even more so. ?I have been >>told that the data readers/writers are going to change in the near future >>to xml anyway, but it would be good to know if this is just a windows >>problem. ?I have been using the socketcommunicator for quite some time and > >>it doesn't exhibit these symptoms. ?If you have some sample code, it might > >>be worth putting up on the list so people can test it... >>-Jeff > >I'm going to be doing some testing on IRIX/LINUX and if there are any >interesting results I'll post them. ?I think its entirely possible that the > >vtk socket code does demonstrate the same symptoms. ?As I said, for some >reason, it only happens when the incoming polydata only changes slightly >from the version currently in the reader. ?It would be difficult to extract > >the code that I'm seeing this on, but perhaps I'll try to make a small >sample that exhibits the same symptoms. > >As far as the cost of the string compare, it seems to me that by uploading >the responsibility of that check to the caller of the reader, you give the >programmer the option to either spend the time checking, or not. ?In my >case, I'm performing that check already before sending the data down the >socket, so its purely wasted time for me. ?Its a small point, but perhaps >even a "no check" option would be a good addition to the reader. > >Thanks for the feedback Jeff. > >Kevin. > > > > >>>Kevin. >>> >>> >>>>Kevin Wright wrote: >>>> >>>>>I just tracked down what looks like an odd bug, and I was wondering if >>>>>anyone out there had any insight. >>>>> >>>>>I'm using a vtkPolyDataReader object to field incoming polydata >>>>>definitions through a socket. ?I do this by reading the polydata from >>>>>the socket into a string, then using the input string in the >vtkDataReader. >>>>> >>>>>Everything generally worked fine, except in some cases the pipeline >>>>>would not update when new data came down the socket. ?Eventually I >>>>>tracked the problem down to vtkDataReader::SetInputString which, before > >>>>>assigning the string, does a string compare between the old and new >string. >>>>> >>>>>When the new and old datasets were very similar (usually identical >>>>>geometry, slightly changed scalar values) the strncmp would return a >>>>>match. ?The string length was correct, and once the string compare was >>>>>removed, everything worked fine. >>>>> >>>>>I'm working on a Windows 2000 machine with VC++ 6.0. ?I'm about to try >>>>>the same thing on IRIX and Linux to see what happens, but I was >wondering: >>>>> >>>>>1. Has anyone seen this kind of behavior before? >>>>>2. Should the string compare really be there at all, given that these >>>>>strings could be very long? >>>>> >>>>>Regards, >>>>>Kevin. >>>>> >>>>>_______________________________________________ >>>>>This is the private VTK discussion list. Please keep messages on-topic. > >>>>>Check the FAQ at: >>>>>Follow this link to subscribe/unsubscribe: >>>>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>>_______________________________________________ >>>This is the private VTK discussion list. Please keep messages on-topic. >>>Check the FAQ at: >>>Follow this link to subscribe/unsubscribe: >>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >> > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: < >http://public.kitware.com/cgi-bin/vtkfaq> >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > > > > >--__--__-- > >Message: 9 >Reply-To: >From: "Andrew J. P. Maclean" >To: >Date: Tue, 8 Oct 2002 10:33:40 +1000 >Organization: ACFR >Subject: [vtkusers] tk8.4 > >This is a multi-part message in MIME format. > >------=_NextPart_000_00A1_01C26EB6.2B29AD10 >Content-Type: text/plain; > ? ?charset="us-ascii" >Content-Transfer-Encoding: 7bit > >Has CMake been modified to allow us to use tk8.4? > >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/ > > > >___________________________________________ > > > > >------=_NextPart_000_00A1_01C26EB6.2B29AD10 >Content-Type: text/html; > ? ?charset="us-ascii" >Content-Transfer-Encoding: quoted-printable > > > > >charset=3Dus-ascii"> > > > > > > > > > > >
> >

style=3D'font-size:10.0pt; >font-family:Arial'>Has CMake been modified to allow us to use tk8.4? = >

> >

style=3D'font-size:10.0pt; >font-family:Arial'>Thanks

> >

style=3D'font-size:10.0pt; >font-family:Arial'> ? Andrew

> >

style=3D'font-size: >12.0pt'>___________________________________________

> >

style=3D'font-size: >12.0pt'>Andrew J. P. Maclean

> >

style=3D'font-size: >12.0pt'>Postal:

> >

style=3D'font-size: >12.0pt'>Australian Centre for Field Robotics

> >

style=3D'font-size: >12.0pt'>The Rose Street Building J04

> >

style=3D'font-size: >12.0pt'>The University of Sydney ?2006 ?NSW

> >

style=3D'font-size: > ?12.0pt'>AUSTRALIA

> >

style=3D'font-size: >12.0pt'>

> >

style=3D'font-size: >12.0pt'>Room: ?106

> >

style=3D'font-size: >12.0pt'>Phone: +61 2 9351 3283

> >

style=3D'font-size: >12.0pt'>Fax: ? +61 2 9351 7474

> >

style=3D'font-size: >12.0pt'> ? ? ? = >http://www.acfr.usyd.edu.au/

> >

style=3D'font-size: >12.0pt'>

> >

style=3D'font-size: >12.0pt'>___________________________________________

> >

style=3D'font-size: >12.0pt'>

> >
> > > > > >------=_NextPart_000_00A1_01C26EB6.2B29AD10-- > > > >--__--__-- > >_______________________________________________ >vtkusers mailing list >vtkusers@public.kitware.com >http://public.kitware.com/mailman/listinfo/vtkusers > > >End of vtkusers Digest > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From sebastien.barre at kitware.com Mon Oct 7 22:27:52 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] tk8.4 In-Reply-To: <00a001c26e62$597d9d10$88d24e81@acfr.usyd.edu.au> Message-ID: <5.1.1.6.0.20021007222717.01b3fe30@pop.biz.rr.com> At 10/7/2002 08:33 PM, Andrew J. P. Maclean wrote: >Has CMake been modified to allow us to use tk8.4? Yes, both Cmake (CVS) and VTK (CVS) will work with 8.4, I've been working with it for a couple of months now. -- Sebastien Barre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021007/a1134fec/attachment.html From PS7278514B at ntu.edu.sg Tue Oct 8 02:53:31 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:52 2004 Subject: [vtkusers] About The headsq Format. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A686@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I did not know which image format about Vtk provided quarter file. I meaned is it from DICOM, *.BMP or *.Tiff...........image format. I tried different software like ACD See, ezDICOM, Photoshop, Image, AutoCAD, PhotoEdit......but failed. It can only be opened by Vtk program. which commercial Software could open it except VTK ? By the way,I also got a stack of brain slice files from Mimic software package. I did not know which image format about it. And how can I open the slice except Mimic & Magic software provided by Materialize Co. Because I think when we study it. We must know the property of the slices. Not only the 64X64X93 16 bits Color but also where it comes from. Is it the raw data or pre-processed? Could it be opened by another common Software? I just want to know these. Because I am a newer in VTK, did any expert share some idea about the Image process & 3D Reconstruction about the stack of Slices. I am interested in Rapid Prototyping Technique such as SLS & 3D Printing Using in Medical Area. I used VTK in Model Reconstruction field. We can make the friend if Anyone is interested in. I am working at Applied Materials Research Centre, S.M.E, NTU. *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From dan at chalkie.org.uk Tue Oct 8 03:44:29 2002 From: dan at chalkie.org.uk (Dr. Dan White) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] tiff and jpeg readers with volume rendering Message-ID: Hi John, and all, Thanks for replying! Actually the images are grayscale 8 bit, so do I still need the luminescence filter before I can do volume rendering properly? If so can you suggest code? Does it go in just after the reader code? cheers Dan >Message: 11 >Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader >To: vtkusers@public.kitware.com >From: anast.jm@pg.com >Date: Mon, 7 Oct 2002 14:23:57 -0400 >I suspect these are color images and you might want to try to extract the >luminance (vtkImageLuminance) before rendering....john dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv?skyl? FIN-40351 Jyv?skyl? Finland +358 (0)14 260 4183 (office) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 867 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021008/25c67dcd/attachment.bin From benoit.regrain at creatis.insa-lyon.fr Tue Oct 8 03:14:12 2002 From: benoit.regrain at creatis.insa-lyon.fr (Benoit Regrain) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> Message-ID: <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> ----- Original Message ----- From: "Prabhu Ramachandran" To: "Benoit Regrain" Cc: "Mailing VTK Users" Sent: Friday, October 04, 2002 9:08 PM Subject: Re: [vtkusers] [Python + wx] pb with wxVTKRenderWindow > >>>>> "BR" == Benoit Regrain writes: > > BR> I believe I might have found two bugs in the class > BR> wxVTKRenderWindow as encountered in > BR> VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py. I am working > BR> on Windows 2000 with the VTKNightly dated 10/02/2002. > > BR> I could fix this problem, by changing the line 164 by : try: > BR> size = parent.GetSize() except: size = wxDefaultSize The > BR> try/except is used to protect the call to parent. > > 2 points here: > > 1. I think blanket except clauses are not a good idea (unless > unavoidable). I'd prefer something like: > > try: > size = parent.GetSize() > except AttributeError: > size = wxDefaultSize > > Or something like that. I dont get an exception under Linux so don't > know what exception you are trying to catch here. Could you care to > elaborate? The AttributeError exception is the best here. Parent variable is always defined but can be anything other than a wxWindow (like None or other type). No other exception is usefull to foresee bad behaviors concerning this section of code. > > BR> - When the script wxVTKRenderWindow.py is launched and when > BR> killing the window (by clicking on the window close button, > BR> the one with a cross at the upper right), I get the following > BR> error message in the Python console : runtime error R6025 - > > BR> def __del__(self): renderers = > BR> self._RenderWindow.GetRenderers() numRenderers = > BR> renderers.GetNumberOfItems() self._CurrentRenderer = None > BR> renderers.InitTraversal() for i in range(0,numRenderers): > BR> self.GetRenderWindow().RemoveRenderer(renderers.GetNextItem()) > > This could be added but I have one question here. IIRC __del__ is > actually called only after the window is killed and any "bad > behaviour" can occur when the window is alive. Ok, there is the case > that the window is dead and the actors are still alive. But are we > guaranteed that __del__ will be called as soon as the window is > destroyed? The order of destruction of the objects also matters here. > I dont remember clearly but is there a way to always call a function > *before* a widget (I mean any widget) is destroyed and not at object > destruction? If the renderers maybe removed in that function. The runtime error R6025 is a specific Windows error. But it seems that on Linux, we sometimes obtain a core dump. Unfortunately, I can't certify the behaviour of events between the closing and the destruction in memory of the window. But the problem that we have appears after the window's destruction. I have discovered Python recently, and I don't know all mechanisms under this langage. But this destructor realize a clean destruction of the wxVTKRenderWindow instance. So, I think this destructor isn't bad, moreover it solves runtime error problems on windows and core dump problems on linux. But if these errors persist, I'm ready to search a best solution (when I'll know all specifications of garbage collector :) ). Greetings Benoit Regrain From jeff at cdnorthamerica.com Tue Oct 8 06:38:40 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] string compare bug? References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> Message-ID: <3DA2B5B0.80504@cdnorthamerica.com> Kevin Wright wrote: > At 05:13 PM 10/7/2002 -0400, you wrote: > >>>> Are you using vtkSocketController/vtkSocketCommunicator? These >>>> objects already do this under the hood. >>>> -Jeff >>> >>> >>> >>> No, I'm tying it in with some other code here. Are you saying that >>> vtkSocketController/Communicator addresses the bug that I'm talking >>> about, or that it provides the same functionality? >> >> >> >> those classes provide the same functionality, and use a very similar >> approach. I'm not sure what you are seeing is a bug per-se - does >> your Irix/Linux build do the same thing? I agree that the string >> compare could be expensive, but the dataset update could be even more >> so. I have been told that the data readers/writers are going to >> change in the near future to xml anyway, but it would be good to know >> if this is just a windows problem. I have been using the >> socketcommunicator for quite some time and it doesn't exhibit these >> symptoms. If you have some sample code, it might be worth putting up >> on the list so people can test it... >> -Jeff > > > I'm going to be doing some testing on IRIX/LINUX and if there are any > interesting results I'll post them. I think its entirely possible > that the vtk socket code does demonstrate the same symptoms. Possible, but it sounds more like vc++ problem on windows. I actually looked at the code this morning, and I don't see the strncmp in vtkDataReader::SetInputString(). Are you working with an older version of vtk? -Jeff From lehrig at t-online.de Tue Oct 8 06:03:16 2002 From: lehrig at t-online.de (Rainer Lehrig) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Network based VTK applications Message-ID: <200210081203.16890.lehrig@t-online.de> Hi, I have an OpenSource project on http://pvbrowser.sourceforge.net This application is a framework for process visualization. It runs on Linux/Unix Windows and OpenVMS. Within this framework VTK is integrated for 3D visualization. Please have a look. Questions and suggestions welcome. Yours: Rainer Lehrig From PS7278514B at ntu.edu.sg Tue Oct 8 07:31:28 2002 From: PS7278514B at ntu.edu.sg (#YAN RI AN#) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] about the BMP slices Read & 3D Rendering Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A688@mail02.student.main.ntu.edu.sg> Dear VTK-Users: I also met the same problem when I read a stack of 512x512x256 *.BMP head slice files.(33 slices) The XY boundary size of the files is 220.2mm X 220.2mm. Actually the images are grayscale 8 bit CT Head Slices. I wanted to read the stack of slices and 3D Reconstruction. Could you share some vtk source code about the process of tiff and jpeg Slices. I thinked we met the similar problem. there is my source code: vtkImageReader *reader=vtkImageReader::New(); reader->SetFilePrefix("g:/00head/head/h"); reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,63,0,63,1,33);// reader->SetDataSpacing(1,1,1); reader->SetDataMask(0x7ff); vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); iso->SetInput(reader->GetOutput()); iso->SetValue(0,255);//Scalar between 0~255 in 8 Bits. vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); isoMapper->SetInput(iso->GetOutput()); isoMapper->ScalarVisibilityOff(); *************************************** * Best Regards * Yan Rian (Research Student) * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre * Nanyang Technological University * Singapore *************************************** From marcelo at radioimaging.net Tue Oct 8 08:03:38 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] about the BMP slices Read & 3D Rendering References: <0C42D409AF10B1428A0B026FB160A5BE33A688@mail02.student.main.ntu.edu.sg> Message-ID: <001901c26ec2$bcfccc70$d4323690@System.local> Hi Yan, How are u ?? I read a stack of 512 X 512 with 120 slices. The code that i read DICOM isn?t my mine and i have to get permission to send the code for you, sorry. TRy to find the DICOM2 is a open source code to read DICOM. vtkImageReader *v16 = vtkImageReader::New(); v16 -> SetHeaderSize ( 0 ); // 350 v16 -> SetDataExtent( 0, 511, 0, 511, 1, 120 ); v16 -> SetDataSpacing ( 1, 1, 3.5 ); v16 -> SetDataScalarTypeToUnsignedShort (); v16 -> SetDataByteOrderToLittleEndian(); v16 -> SetFileDimensionality( 3 ); v16 -> SetFilePattern( "tumor.vtk" ); v16 -> SetFilePrefix( "tumor.vtk" ); v16 -> SetDataMask(0x7fff); ----- Original Message ----- From: "#YAN RI AN#" To: ; Cc: "Vtkusers (E-mail)" Sent: Tuesday, October 08, 2002 8:31 AM Subject: [vtkusers] about the BMP slices Read & 3D Rendering > Dear VTK-Users: > I also met the same problem when I read a stack of 512x512x256 *.BMP head slice files.(33 slices) > The XY boundary size of the files is 220.2mm X 220.2mm. > Actually the images are grayscale 8 bit CT Head Slices. > I wanted to read the stack of slices and 3D Reconstruction. > Could you share some vtk source code about the process of tiff and jpeg Slices. > I thinked we met the similar problem. > there is my source code: > vtkImageReader *reader=vtkImageReader::New(); > reader->SetFilePrefix("g:/00head/head/h"); > reader->SetDataByteOrderToLittleEndian(); > reader->SetDataExtent(0,63,0,63,1,33);// > reader->SetDataSpacing(1,1,1); > reader->SetDataMask(0x7ff); > > vtkMarchingContourFilter *iso=vtkMarchingContourFilter::New(); > iso->SetInput(reader->GetOutput()); > iso->SetValue(0,255);//Scalar between 0~255 in 8 Bits. > > vtkPolyDataMapper *isoMapper=vtkPolyDataMapper::New(); > isoMapper->SetInput(iso->GetOutput()); > isoMapper->ScalarVisibilityOff(); > *************************************** > * Best Regards > * Yan Rian (Research Student) > * Email : ps7278514b@ntu.edu.sg > * Lab : AMRC Research Centre > * Nanyang Technological University > * Singapore > *************************************** > > > _______________________________________________ > 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 karga314 at student.liu.se Tue Oct 8 08:35:10 2002 From: karga314 at student.liu.se (=?windows-1252?Q?Karin_Gardstr=F6m?=) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] InteractorStyleUser Message-ID: <127c313e32.13e32127c3@student.liu.se> Dear VTK-users, I'm using vtkInteractorStyleUser to specify my own interactor. The interactor takes the indata and modifies the normal of vtkPlane that I use as cutfunction to a vtkCutter. My callback function is supposed to rotate the cutting plane of a dataset but I can't get VTK to render the new cutplane. Anyone knows how to do this? Thankyou in advance, Karin From williams13 at llnl.gov Tue Oct 8 09:01:59 2002 From: williams13 at llnl.gov (Dean N. Williams) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Python + VTK:[vtkRenderWidget.py, vtkTkRenderWidget.py] core dump References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <3DA18202.7050709@llnl.gov> <1033995612.18506.15.camel@dutidad> <3DA18E49.6020500@llnl.gov> <15777.42440.465218.796738@monster.linux.in> <3DA1BAB7.7060600@llnl.gov> <15777.48865.377847.358359@monster.linux.in> Message-ID: <3DA2D747.40100@llnl.gov> Hi Prabhu, By recompiling my Python and VTK with the shared version of tcl/tk 8.3.3 the core dumps stopped! So if anyone runs into the core dumps when running Wrapping/vtkRenderWidget.py, Wrapping/vtkRenderWidget.py, etc., then recompile Python and VTK with the shared version of tcl/tk. I feel that VTK should work with either the static or shared version of tcl/tk. In any case, thank you Prabhu and Charl for your help. Best regards, Dean >>>>>>"DNW" == Dean N Williams writes: >>>>>> >>>>>> > > DNW> Prabhu, I will rebuild the VTK again and hope that this > DNW> clears things up. Here is the outcome of running ldd on both > DNW> shared libraries: > >[snip] > > DNW> Neither show the use of tcl/tk. > >Well simply rebuilding it might not fix the problem. It looks like >you have built both Python and VTK with the static Tcl/Tk libraries. >Maybe you should recompile both Python and VTK to use the shared >versions of Tcl/Tk. > >For VTK make sure CMake is using the shared version. > > TCL_LIBRARY:FILEPATH=/usr/lib/libtcl8.3.so > > TK_LIBRARY:FILEPATH=/usr/lib/libtk8.3.so > >Or whatever appropriate version is on your system. > >BTW, do the VTK Tcl/Tk examples work ok? > >Hope this helps. > >prabhu > > > From andresba at hotmail.com Tue Oct 8 09:10:45 2002 From: andresba at hotmail.com (Andres Barrera) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] mouse interaction Message-ID: Dear Steffen and list, I am implementing one myself. I've alrady sent some code to some vtk users. Anyway, if somebody can tell me how to map the "vkRenderWindowInteractor" to any window that is not the default of vtk(using C++Builder or at least MS Visual C++) I would be very interested on. Andres > >Dear VTK-users, > >if ever somebody has programmed a mouse interaction for VTK in C++, >I'm interested in it. > >Steffen >_______________________________________________ >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 worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com From marcelo at radioimaging.net Tue Oct 8 09:30:38 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] mouse interaction References: Message-ID: <001601c26ece$e440de50$d4323690@System.local> Hi In C++ Builder and VTK 4.0 use renWin = vtkWin32OpenGLRenderWindow::New(); renWin->SetParentId ( Panel1->Handle ); renWin->AddRenderer( ren1 ); iren->SetRenderWindow( renWin ); iren = vtkWin32RenderWindowInteractor::New(); renWin->Render(); I hope this help Marcelo ----- Original Message ----- From: "Andres Barrera" To: ; Sent: Tuesday, October 08, 2002 10:10 AM Subject: Re: [vtkusers] mouse interaction > Dear Steffen and list, > > I am implementing one myself. I've alrady sent some code to some vtk > users. Anyway, if somebody can tell me how to map the > "vkRenderWindowInteractor" to any window that is not the default of > vtk(using C++Builder or at least MS Visual C++) I would be very interested > on. > > Andres > > > > > >Dear VTK-users, > > > >if ever somebody has programmed a mouse interaction for VTK in C++, > >I'm interested in it. > > > >Steffen > >_______________________________________________ > >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 > > _______________________________________________ > 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.garcia at epfl.ch Tue Oct 8 09:33:29 2002 From: martin.garcia at epfl.ch (martin.garcia@epfl.ch) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] How to use vtkPolyData as a vtkImplicitfunction for vtkClipPolyData Message-ID: <1034084009.3da2dea970b42@imapwww.epfl.ch> Hi folks, I'm trying to use vtkPolyData as a vtkImplicitfunction for vtkClipPolyData but I met some trouble with vtkImplicitDataSet. I've seen in the mailingList Archives that there exist a code for a vtkimplicitPolyData that could help me, but it has not been added to vtk 4. Does somebody know how I can find this code? Or has somebody an alternative solution to this problem? Thanks --Martin ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From andresba at hotmail.com Tue Oct 8 10:06:06 2002 From: andresba at hotmail.com (Andres Barrera) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] mouse interaction Message-ID: Thank you Marcelo! I will try that right away. Andres >Hi > >In C++ Builder and VTK 4.0 use > > renWin = vtkWin32OpenGLRenderWindow::New(); > renWin->SetParentId ( Panel1->Handle ); > renWin->AddRenderer( ren1 ); > > iren->SetRenderWindow( renWin ); > iren = vtkWin32RenderWindowInteractor::New(); > > renWin->Render(); > >I hope this help >Marcelo > > >----- Original Message ----- >From: "Andres Barrera" >To: ; > >Sent: Tuesday, October 08, 2002 10:10 AM >Subject: Re: [vtkusers] mouse interaction > > > > Dear Steffen and list, > > > > I am implementing one myself. I've alrady sent some code to some vtk > > users. Anyway, if somebody can tell me how to map the > > "vkRenderWindowInteractor" to any window that is not the default of > > vtk(using C++Builder or at least MS Visual C++) I would be very >interested > > on. > > > > Andres > > > > > > > > > >Dear VTK-users, > > > > > >if ever somebody has programmed a mouse interaction for VTK in C++, > > >I'm interested in it. > > > > > >Steffen > > >_______________________________________________ > > >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 > > > > _______________________________________________ > > 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 Gowri.Gopalakrishnan at inteq.com Tue Oct 8 10:21:05 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] mouse interaction + example Message-ID: C++ mouse interaction: Here is a sample file. Pardon me for lack of order in this file. I did this as test long time ago and I just attach it here to convey the idea.. First of all it is written for non MFC win32 application. In the WinMain there is a call to set up vtk (method : myVTKApp) Here I use directly vtk window. If you don't want this use SetParentId on the renderwindow and pass the window handle. Inside the myVTKApp there is a call to set the winproc (GetWindowLong). (I used two winprocs (1,2) to understand the behaviour , but you need only one winproc). Your mouse, key event arrives at the winproc and it could be either WM_CHAR or any other. So there you have the event and now you can do what you want with it. If you just want to pass it to vtk use vtkHandleMessage2 to pass it to vtk. With this you know exactly what interactions are happening and it is completely in your control. Regards Gowri -------------- next part -------------- A non-text attachment was scrubbed... Name: testwindow.cpp Type: application/octet-stream Size: 6439 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021008/bfd3e490/testwindow.obj From kamucha at hfm.e-technik.uni-kassel.de Tue Oct 8 12:15:51 2002 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> Message-ID: <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> Hi all, I am selecting points on a surface using vtkPointPicker, and then placing small spheres in the selected locations. The problem I am facing is that, when I select the first location, a sphere is not immediately placed there until a second location is selected. That is, I can only see the position of the previously selected location and not the current one. I have checked the archives but have not found anything related to my problem. If anybody has an idea on this issue, please bail me out before I lose all my hair :). Below is the snippet. Best regards George static void pickControl(void *); static vtkRenderer *ren1; void main( int argc, char *argv[] ) { // create pipeline vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); reader->Update(); vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); dataMapper->SetInput(reader->GetOutput()); dataMapper->ScalarVisibilityOff(); vtkActor *dataActor = vtkActor::New(); dataActor->SetMapper(dataMapper); dataActor->GetProperty()->SetColor(0.5, 0.5, 1); dataActor->GetProperty()->SetOpacity(0.5); vtkPointPicker *pointpicker = vtkPointPicker::New(); ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->SetPicker(pointpicker); iren->SetEndPickMethod(pickControl, (void *)iren); ren1->AddActor(dataActor); // render the image ren1->SetBackground(1, 1, 1); renWin->SetSize(500,500); iren->Initialize(); renWin->Render(); iren->Start(); //Clean up ren1->Delete(); renWin->Delete(); iren->Delete(); reader->Delete(); dataMapper->Delete(); dataActor->Delete(); pointpicker->Delete(); } // Define picking method static void pickControl(void *arg) { float *selPt; float *pickpos; vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); selPt = pointpicker->GetSelectionPoint(); cout<<"Screen location:"<GetPointId() >= 0 ) { pickpos = pointpicker->GetPickPosition(); cout<<"Point location:"< InsertNextPoint(pickpos); points-> Modified(); vtkPolyData *profile=vtkPolyData::New(); profile->SetPoints(points); vtkSphereSource *sphere=vtkSphereSource::New(); sphere->SetRadius(2); vtkGlyph3D *glyph=vtkGlyph3D::New(); glyph->SetInput(profile); glyph->SetSource(sphere->GetOutput()); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(glyph->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); glyphActor->GetProperty()->SetColor(0, 0, 1); ren1-> AddActor(glyphActor); points-> Delete(); profile-> Delete(); sphere-> Delete(); glyph-> Delete(); glyphMapper-> Delete(); glyphActor-> Delete(); } else { cout<<"No point picked here!"<<"\n"; } } From ramakrishna.prakash at quest-global.com Tue Oct 8 12:03:06 2002 From: ramakrishna.prakash at quest-global.com (R K Shyam Prakash) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] (no subject) Message-ID: hi, i'm new to VTK and i'm using the Java wrapper of VTK. can I get any JAVA API documentaion for VTK. if so please let me know Thanks Shyam From jeff at cdnorthamerica.com Tue Oct 8 12:17:36 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> Message-ID: <3DA30520.9000500@cdnorthamerica.com> Do you render after the pick? -Jeff George Kamucha wrote: >Hi all, >I am selecting points on a surface using vtkPointPicker, and then placing small >spheres in the selected locations. The problem I am facing is that, when I >select the first location, a sphere is not immediately placed there until a >second location is selected. That is, I can only see the position of the >previously selected location and not the current one. I have checked the >archives but have not found anything related to my problem. If anybody has an >idea on this issue, please bail me out before I lose all my hair :). Below is >the snippet. > >Best regards >George > > > >static void pickControl(void *); > >static vtkRenderer *ren1; > >void main( int argc, char *argv[] ) > >{ > >// create pipeline >vtkPolyDataReader *reader = vtkPolyDataReader::New(); > reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); > reader->Update(); > >vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); > dataMapper->SetInput(reader->GetOutput()); > dataMapper->ScalarVisibilityOff(); > >vtkActor *dataActor = vtkActor::New(); > dataActor->SetMapper(dataMapper); > dataActor->GetProperty()->SetColor(0.5, 0.5, 1); > dataActor->GetProperty()->SetOpacity(0.5); > >vtkPointPicker *pointpicker = vtkPointPicker::New(); > > >ren1 = vtkRenderer::New(); >vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->SetPicker(pointpicker); > iren->SetEndPickMethod(pickControl, (void *)iren); > >ren1->AddActor(dataActor); > >// render the image > ren1->SetBackground(1, 1, 1); > renWin->SetSize(500,500); > iren->Initialize(); > renWin->Render(); > iren->Start(); > >//Clean up > >ren1->Delete(); >renWin->Delete(); >iren->Delete(); >reader->Delete(); >dataMapper->Delete(); >dataActor->Delete(); >pointpicker->Delete(); > > } > > > >// Define picking method > >static void pickControl(void *arg) >{ >float *selPt; >float *pickpos; > >vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; > vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); > > > > selPt = pointpicker->GetSelectionPoint(); > > cout<<"Screen location:"< > if ( pointpicker->GetPointId() >= 0 ) > { > pickpos = pointpicker->GetPickPosition(); > > cout<<"Point location:"< > > > > > >//Define method for placing spheres >vtkPoints *points=vtkPoints::New(); > points-> InsertNextPoint(pickpos); > points-> Modified(); > >vtkPolyData *profile=vtkPolyData::New(); > profile->SetPoints(points); > >vtkSphereSource *sphere=vtkSphereSource::New(); > sphere->SetRadius(2); > >vtkGlyph3D *glyph=vtkGlyph3D::New(); > glyph->SetInput(profile); > glyph->SetSource(sphere->GetOutput()); > >vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(glyph->GetOutput()); > > >vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > glyphActor->GetProperty()->SetColor(0, 0, 1); > >ren1-> AddActor(glyphActor); > > > > >points-> Delete(); >profile-> Delete(); >sphere-> Delete(); >glyph-> Delete(); >glyphMapper-> Delete(); >glyphActor-> Delete(); > } > else > { > cout<<"No point picked here!"<<"\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 krw at viz-solutions.com Tue Oct 8 12:35:36 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] string compare bug? In-Reply-To: <3DA2B5B0.80504@cdnorthamerica.com> References: <5.1.0.14.0.20021007130824.00ab8100@mail.viz-solutions.com> <5.1.0.14.0.20021007135334.02911230@mail.viz-solutions.com> <5.1.0.14.0.20021007141906.0291daa8@mail.viz-solutions.com> Message-ID: <5.1.0.14.0.20021008092946.00a9cce0@mail.viz-solutions.com> >>I'm going to be doing some testing on IRIX/LINUX and if there are any >>interesting results I'll post them. I think its entirely possible that >>the vtk socket code does demonstrate the same symptoms. > >Possible, but it sounds more like vc++ problem on windows. I actually >looked at the code this morning, and I don't see the strncmp in >vtkDataReader::SetInputString(). Are you working with an older version of vtk? If I had to guess, I would say that its a visual C++ bug, I just meant that the vtksocket code may exhibit the same problem when using vc++. I'm actually using the 4.0 release, the strncmp is on line 200 of that version. I just checked the nightlies, and it is on line 178 of that file. There are multiple versions of SetInputString, all of which end up calling the version with the string compare in it. I should have at least the LINUX version of this running today, so I'll know better then. Kevin. From vidya.sivakumar at quest-global.com Tue Oct 8 12:41:08 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] scalar values In-Reply-To: <20021004103834.6099.13410.Mailman@public.kitware.com> Message-ID: Hi All, I am not very clear about associating scalar values to point data. I have an expression to compute the scalar value at each point(x,y,z). HOw do I read the values into a vtkFLoatarray or a double array. I tried using vtkFloatArray but it did not work. Can anybody help? Thanks in advance, Vidya From prabhu at aero.iitm.ernet.in Tue Oct 8 12:54:42 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] [Python + wx] pb with wxVTKRenderWindow In-Reply-To: <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> References: <022c01c26abe$a7462dc0$c16cdcc3@creatis.insalyon.fr> <15773.59152.211461.964350@monster.linux.in> <003e01c26e9a$4ded6e20$c16cdcc3@creatis.insalyon.fr> Message-ID: <15779.3538.826934.470247@monster.linux.in> >>>>> "BR" == Benoit Regrain writes: >> Or something like that. I dont get an exception under Linux so >> don't know what exception you are trying to catch here. Could >> you care to elaborate? BR> The AttributeError exception is the best here. Parent variable BR> is always defined but can be anything other than a wxWindow BR> (like None or other type). No other exception is usefull to BR> foresee bad behaviors concerning this section of code. Ok, thanks. BR> The runtime error R6025 is a specific Windows error. But it BR> seems that on Linux, we sometimes obtain a core BR> dump. Unfortunately, I can't certify the behaviour of events [snip] AFAIK you might be able to prevent this by removing all the actors from the renderwindow before you close it. cheers, prabhu From prabhu at aero.iitm.ernet.in Tue Oct 8 13:01:53 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] scalar values In-Reply-To: References: <20021004103834.6099.13410.Mailman@public.kitware.com> Message-ID: <15779.3969.436588.566026@monster.linux.in> >>>>> "VS" == vidya sivakumar writes: VS> Hi All, I am not very clear about associating scalar values to VS> point data. I have an expression to compute the scalar value VS> at each point(x,y,z). HOw do I read the values into a VS> vtkFLoatarray or a double array. I tried using vtkFloatArray VS> but it did not work. Can anybody help? Thanks in advance, Add a scalar for each point in the FloatArray. Here is some python pseudo code: fa = vtkFloatArray() pnts = vtkPoints() # create your points. for i in range(pnts.GetNumberOfPoints()): pnt = pnts.GetPoint(0) scalar = function(pnt) # your function fa.InsertNextValue(scalar) Now you can use the vtkFloatArray to do what you want. For instance if the points are part of a vtkPolyData object you can do this: pd = vtkPolyData() pd.GetPointData().SetScalars(fa) cheers, prabhu From marcelo at radioimaging.net Tue Oct 8 13:05:50 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] keyboard events Message-ID: <00a601c26eec$f3fc2340$d4323690@System.local> Anybody has a example or know how class i use to rotate my volume using keyboard arrows. I?m using VTK 4.0, C++ Builder 6 and Win XP Tank?s for help me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021008/27b749b2/attachment.htm From anast.jm at pg.com Tue Oct 8 13:08:06 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] scalar values Message-ID: Vidya, See the web documentation for vtkFloatArray at http://www.vtk.org/doc/nightly/html/classvtkFloatArray.html There are a number of examples listed on that page and all the methods you will need to load the array with your data. By the way the documentation is wonderful and I suggest always starting there and browsing through it to get a feel for all the different types of information you can get out of it. The heirarchy browsing is especially nice......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "vidya sivakumar" @public.kitware.com on 10/08/2002 12:41 PM AST "vidya sivakumar" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] scalar values Sent by: vtkusers-admin@public.kitware.com 10/08/2002 12:41 PM Hi All, I am not very clear about associating scalar values to point data. I have an expression to compute the scalar value at each point(x,y,z). HOw do I read the values into a vtkFLoatarray or a double array. I tried using vtkFloatArray but it did not work. Can anybody help? Thanks in advance, Vidya _______________________________________________ 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 clarke at ARL.ARMY.MIL Tue Oct 8 17:17:44 2002 From: clarke at ARL.ARMY.MIL (Jerry Clarke ) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Still No Joy ! Message-ID: <3DA34B78.42CAB51C@arl.army.mil> When building the Nightly release on cygwin ( even older nighly releases ) the vtkImaging .dll will not build due to an enormous amount of undefined external refenences. They are references to templates that are in the vtkCommon .dll. Hasn't anyone build a recent Nightly on cygwin with shared libraries, with Python ? As fun as messing with compiler and linker options is ... I'd just settle for the anwser and dispense with the fun!! -------------------------------------------------------------- Jerry A. Clarke clarke@arl.army.mil (410)278-9279 Fax (410)278-9199 US Army Research Laboratory Blg. 394 Room 201B -------------------------------------------------------------- From vphilou at caramail.com Wed Oct 9 00:02:59 2002 From: vphilou at caramail.com (Philippe Vincent) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] vector field Message-ID: <1034114579026743@caramail.com> Hi everybody, I'm working on the rendering of a vector field and I've big differences in norm between several space areas, I would like to select and display all the vectors with a norm between two values. Does everybody know if it's possible with VTK (I'm using vtkglyph3D for that) Thanks Philippe Vincent _________________________________________________________ Envoyez des messages musicaux sur le portable de vos amis http://mobile.lycos.fr/mobile/local/sms_musicaux/ From pahsieh at usgs.gov Tue Oct 8 19:18:37 2002 From: pahsieh at usgs.gov (Paul A Hsieh) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] vector field Message-ID: Hi Philippe: The following approach may not be the most efficient but should work. Suppose your vectors are in a dataset call ds. 1. Create a vtkFloatArray (one component) consisting of vector norm (scalar value) at each point. Suppose this array is called "norms". 2. Put this array into the data set as scalars. In C++, this would be ds->GetPointData()->SetScalars(norms); 3. Use vtkThresholdPoints to extract only those points having scalar value (vector norm) between the two desired values. Hope this helps. Paul Hsieh Philippe Vincent To: vtkusers@public.kitware.com Sent by: cc: vtkusers-admin@public. Subject: [vtkusers] vector field kitware.com 10/08/2002 05:02 PM Hi everybody, I'm working on the rendering of a vector field and I've big differences in norm between several space areas, I would like to select and display all the vectors with a norm between two values. Does everybody know if it's possible with VTK (I'm using vtkglyph3D for that) Thanks Philippe Vincent _________________________________________________________ Envoyez des messages musicaux sur le portable de vos amis http://mobile.lycos.fr/mobile/local/sms_musicaux/ From tdeschamps at lbl.gov Tue Oct 8 20:56:01 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] A command that executes in Python does not compile in C++ Message-ID: <3DA37EA1.8050207@lbl.gov> Well, I maybe not an expert, but I cannot make the following line compile in C++ vtkStructuredPointsReader* reader = vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = vtkMarchingSquares::New(); ms -> SetInput(reader -> GetOutput()); whereas reader = vtkStructuredPointsReader() iso = vtkMarchingSquares() iso.SetInput( reader.GetOutput() ) works nicely. The compiler says: toto.cxx:40: no matching function for call to `vtkMarchingSquares::SetInput(vtkStructuredPoints *)' /usr/local/include/vtk/vtkMarchingSquares.h:71: candidates are: void vtkMarchingSquares::SetInput(vtkImageData *) Does someone can help? I have a Structured Points in a file and want to use the marching square on it. Thomas (tdeschamps@lbl.gov) From vidya.sivakumar at quest-global.com Tue Oct 8 21:16:37 2002 From: vidya.sivakumar at quest-global.com (vidya sivakumar) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] (no subject) In-Reply-To: <20021005103921.9835.25505.Mailman@public.kitware.com> Message-ID: Hi All, Is there a vtk.jar file that includes vtkCylindricalTransform? I have version 4 that does not seem to have this. I am trying to use this in java and i get the error that it is unable to resolve symbol. Can anybody help? Thanks in advance, Vidya From prabhu at aero.iitm.ernet.in Tue Oct 8 22:33:02 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] A command that executes in Python does not compile in C++ In-Reply-To: <3DA37EA1.8050207@lbl.gov> References: <3DA37EA1.8050207@lbl.gov> Message-ID: <15779.38238.895833.804541@monster.linux.in> >>>>> "TD" == Thomas Deschamps writes: TD> Well, I maybe not an expert, but I cannot make the following TD> line compile in C++ TD> vtkStructuredPointsReader* reader = TD> vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = TD> vtkMarchingSquares::New(); ms -> SetInput(reader -> TD> GetOutput()); Well, something is wrong somewhere. vtkStructuredPoints is a subclass of vtkImageData, so this is definitely legal. Maybe your build is not clean and is an older version? i.e. Maybe yor header files are old but the libraries are new or something? cheers, prabhu From tony.gill at csiro.au Wed Oct 9 02:52:11 2002 From: tony.gill at csiro.au (tony.gill@csiro.au) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Compilation problems on solaris Message-ID: <3295D58CC64C434F978440B967FC18682F3048@ntexchange.cat.csiro.au> Hi all, I've tried to compile vtk on solaris. The compilation generates warnings of the following type: "/VTK/Common/vtkDataArray.cxx", Line 655: Warning (Anachronism): "static" is not allowed and is being ignored. This warning message is a result of running the following compilation command: CC -I/VTK/Common -I/VTK/vtkRendering etc etc -c VTK/Common/vtkDataArray.cxx -o vtkDataArray.o The compilation process does not stop, but the ignored lines cause problems when programs get linked. i.e. the appropriate methods cannot be found. Does anyone know of a fix to or the cause of this problem. Many Thanks Tony ********************************************************************* Tony Gill Applications Programmer - 3D Visualisation CSIRO Division of Exploration and Mining 1 Technology Ct Pullenvale QLD Australia 4069 PO Box 883 Kenmore QLD Australia 4069 email: tony.gill@csiro.au ********************************************************************* From kamucha at hfm.e-technik.uni-kassel.de Wed Oct 9 04:16:22 2002 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: <20021008104110.8575.99980.Mailman@public.kitware.com> <3DA304B7.86254661@hfm.e-technik.uni-kassel.de> <3DA30520.9000500@cdnorthamerica.com> Message-ID: <3DA3E5D6.9EC68610@hfm.e-technik.uni-kassel.de> Hi Jeff, I have tried before to use renWin->Render() after the pick (within the function pickControl, as shown in the snippet below) but the problem still persists. Or am I not doing it in the right way? Regards George static void pickControl(void *); static vtkRenderer *ren1; static vtkRenderWindow *renWin; void main( int argc, char *argv[] ) { // create pipeline vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); reader->Update(); vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); dataMapper->SetInput(reader->GetOutput()); dataMapper->ScalarVisibilityOff(); vtkActor *dataActor = vtkActor::New(); dataActor->SetMapper(dataMapper); dataActor->GetProperty()->SetColor(0.5, 0.5, 1); dataActor->GetProperty()->SetOpacity(0.5); vtkPointPicker *pointpicker = vtkPointPicker::New(); ren1 = vtkRenderer::New(); renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->SetPicker(pointpicker); iren->SetEndPickMethod(pickControl, (void *)iren); ren1->AddActor(dataActor); // render the image ren1->SetBackground(1, 1, 1); renWin->SetSize(500,500); iren->Initialize(); renWin->Render(); iren->Start(); //Clean up ren1->Delete(); renWin->Delete(); iren->Delete(); reader->Delete(); dataMapper->Delete(); dataActor->Delete(); pointpicker->Delete(); } // Define picking method static void pickControl(void *arg) { float *selPt; float *pickpos; vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); selPt = pointpicker->GetSelectionPoint(); cout<<"Screen location:"<GetPointId() >= 0 ) { pickpos = pointpicker->GetPickPosition(); cout<<"Point location:"< InsertNextPoint(pickpos); points-> Modified(); vtkPolyData *profile=vtkPolyData::New(); profile->SetPoints(points); vtkSphereSource *sphere=vtkSphereSource::New(); sphere->SetRadius(2); vtkGlyph3D *glyph=vtkGlyph3D::New(); glyph->SetInput(profile); glyph->SetSource(sphere->GetOutput()); vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); glyphMapper->SetInput(glyph->GetOutput()); vtkActor *glyphActor=vtkActor::New(); glyphActor->SetMapper(glyphMapper); glyphActor->GetProperty()->SetColor(0, 0, 1); ren1-> AddActor(glyphActor); renWin->Render(); points-> Delete(); profile-> Delete(); sphere-> Delete(); glyph-> Delete(); glyphMapper-> Delete(); glyphActor-> Delete(); } else { cout<<"No point picked here!"<<"\n"; } } Jeff Lee wrote: > Do you render after the pick? > -Jeff > > George Kamucha wrote: > > >Hi all, > >I am selecting points on a surface using vtkPointPicker, and then placing small > >spheres in the selected locations. The problem I am facing is that, when I > >select the first location, a sphere is not immediately placed there until a > >second location is selected. That is, I can only see the position of the > >previously selected location and not the current one. I have checked the > >archives but have not found anything related to my problem. If anybody has an > >idea on this issue, please bail me out before I lose all my hair :). Below is > >the snippet. > > > >Best regards > >George From simon.chatelain at epfl.ch Wed Oct 9 05:17:09 2002 From: simon.chatelain at epfl.ch (Simon Chatelain) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] Polaris tracking system Message-ID: Hello, I am looking for a vtk drivers for the passive polaris tracking system. Has someone use this device with vtk and can give me sample code or explain to me how to use it ? It would be really nice. Thanks in advance. Simon Chatelain PS: I am using vtk 4 and Java under windows and linux. From Steffen.Oeltze at Student.Uni-Magdeburg.DE Wed Oct 9 06:00:06 2002 From: Steffen.Oeltze at Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Mon May 24 19:15:53 2004 Subject: [vtkusers] deriving my own class from vtkActor Message-ID: <1034157606.3da3fe26ec960@webmail.uni-magdeburg.de> Dear VTK-users, I have tried to derive my own class from vtkActor using the following code: class FIB_TRACK : public vtkActor { public: FIB_TRACK(double [3], double [3], bool); ~FIB_TRACK(); .... } For creating a new object I use: FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); Then, I construct the rendering pipeline, add the actor to the renderer and render the window but nothing happens. Is there anyone who can help me ? Regards, Steffen From daniele.bianchini at menci.com Wed Oct 9 06:46:06 2002 From: daniele.bianchini at menci.com (Daniele Bianchini) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkRenderWindow Message-ID: Hi all! I use vtk 4.n in MFC4. Is it possible to link a vtkRenderWindow into a tab page of a tab control? Thank you for any help. Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021009/8e174d40/attachment.html From philip at cd.co.uk Wed Oct 9 07:54:11 2002 From: philip at cd.co.uk (Philip Morris Jones) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkProbeFilter misses some data points and adds others Message-ID: <008301c26f8b$5e951100$a0564ed5@romulus> Hi I have results on an unstructured grid and am trying to present them in a uniform manner. To do this I have created a plane source and am trying to map the results on using vtkProbeFilter: vtkPlaneSource *plane = vtkPlaneSource::New(); plane->SetOrigin(0.,-.05,-0.01); plane->SetPoint1(0.,0.05,-0.01); plane->SetPoint2(0.,-.05, 0.11); plane->SetXResolution(10); plane->SetYResolution(10); vtkProbeFilter *probe = vtkProbeFilter::New(); probe->SetInput(plane->GetOutput() ); probe->SetSource(uns ); vtkGlyph3D *glyphu = vtkGlyph3D::New(); glyphu->SetSource(line->GetOutput()); glyphu->SetScaleModeToScaleByVector(); glyphu->SetColorModeToColorByScalar(); glyphu->SetInput(probe->GetOutput()); vtkIdTypeArray *valid = vtkIdTypeArray::New(); valid=probe->GetValidPoints(); vtkPolyDataMapper* regMapper = vtkPolyDataMapper::New(); regMapper->SetInput ( glyphu->GetOutput() ); regMapper->SetScalarRange ( scmin,scmax ); regMapper->SetLookupTable ( lut ); probe->Update(); ofstream file; file.open("c:\\log"); valid->Print(file); for(int index=0;index<=(valid->GetMaxId());index++) file << valid->GetValue(index) << "\n"; file.close(); My plane is bigger than my domain so I expect unused values and am using the GetValidPoints to see what lies in and what is outside. If I look at my log: vtkIdTypeArray (0x07A0A598) Debug: Off Modified Time: 801 vtkIdTypeArray (0x07B067F8) Debug: Off Modified Time: 9202 Reference Count: 1 Registered Events: (none) Name: (none) Number Of Components: 1 Number Of Tuples: 44 Size: 121 MaxId: 43 LookupTable: (none) Array: 0x07A27C40 14 15 17 18 25 26 27 28 29 36 37 38 39 40 47 48 49 50 51 58 59 60 61 62 69 70 71 72 73 80 81 82 83 84 91 92 93 94 95 102 103 104 105 106 I see I have 44 points and the pattern is odd, where is 16? The plot shows a missing vector where I expect one. Does anybody have an idea what is happening? Thanks Philip -------------- next part -------------- A non-text attachment was scrubbed... Name: missingvect.gif Type: image/gif Size: 6111 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021009/6923c419/missingvect.gif From kamucha at hfm.e-technik.uni-kassel.de Wed Oct 9 08:36:50 2002 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: Message-ID: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> Hi Thanks a lot for testing the code. Now that it works in your system and not in mine, I am left even more confused. All my hairs are now gone. I have written the same code in tcl and it works fine and so I think it is not a problem with hardware (I have a Matrox Millenium G400 graphic card). But I need the code in C++ for compatibility with the inferfacing program based on QT. Is it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly appreciated. George "Gopalakrishnan, Gowri" wrote: "Gopalakrishnan, Gowri" wrote: > Hello > > I just tried your code and I do not see the problem you see. > When I click on a point I see the glyph sphere you put (in blue). The sphere > appears when you press the letter p. It appears immediately. Only it appears > little above the mouse position. > (Also I used your code with one of my vtk files. ) > I clicked three different points and I get three blue spheres. So there is > nothing wrong with your code. It could come from hardware (may be , I am not > sure). But I can guarantee that your code is correct and your update is > fine. > > Gowri > > -----Original Message----- > From: George Kamucha [mailto:kamucha@hfm.e-technik.uni-kassel.de] > Sent: 09 October 2002 09:16 > To: Jeff Lee; vtkusers@public.kitware.com > Subject: [vtkusers] Re: vtkPointPicker - position identification problem > > Hi Jeff, > I have tried before to use renWin->Render() after the pick (within the > function pickControl, as > shown in the snippet below) but the problem still persists. Or am I not > doing it in the right > way? > > Regards > George > > static void pickControl(void *); > > static vtkRenderer *ren1; > > static vtkRenderWindow *renWin; > > void main( int argc, char *argv[] ) > > { > > // create pipeline > vtkPolyDataReader *reader = vtkPolyDataReader::New(); > reader->SetFileName ("../../../vtkdata/Bone_CTNewdrR.vtk"); > reader->Update(); > > vtkPolyDataMapper *dataMapper = vtkPolyDataMapper::New(); > dataMapper->SetInput(reader->GetOutput()); > dataMapper->ScalarVisibilityOff(); > > vtkActor *dataActor = vtkActor::New(); > dataActor->SetMapper(dataMapper); > dataActor->GetProperty()->SetColor(0.5, 0.5, 1); > dataActor->GetProperty()->SetOpacity(0.5); > > vtkPointPicker *pointpicker = vtkPointPicker::New(); > > ren1 = vtkRenderer::New(); > renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->SetPicker(pointpicker); > iren->SetEndPickMethod(pickControl, (void *)iren); > > ren1->AddActor(dataActor); > > // render the image > ren1->SetBackground(1, 1, 1); > renWin->SetSize(500,500); > iren->Initialize(); > renWin->Render(); > iren->Start(); > > //Clean up > > ren1->Delete(); > renWin->Delete(); > iren->Delete(); > reader->Delete(); > dataMapper->Delete(); > dataActor->Delete(); > pointpicker->Delete(); > > } > > // Define picking method > > static void pickControl(void *arg) > { > float *selPt; > float *pickpos; > > vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg; > vtkPointPicker *pointpicker = (vtkPointPicker *)iren->GetPicker(); > > selPt = pointpicker->GetSelectionPoint(); > > cout<<"Screen location:"< > if ( pointpicker->GetPointId() >= 0 ) > { > pickpos = pointpicker->GetPickPosition(); > > cout<<"Point location:"< "< > //Define method for placing spheres > vtkPoints *points=vtkPoints::New(); > points-> InsertNextPoint(pickpos); > points-> Modified(); > > vtkPolyData *profile=vtkPolyData::New(); > profile->SetPoints(points); > > vtkSphereSource *sphere=vtkSphereSource::New(); > sphere->SetRadius(2); > > vtkGlyph3D *glyph=vtkGlyph3D::New(); > glyph->SetInput(profile); > glyph->SetSource(sphere->GetOutput()); > > vtkPolyDataMapper *glyphMapper=vtkPolyDataMapper::New(); > glyphMapper->SetInput(glyph->GetOutput()); > > vtkActor *glyphActor=vtkActor::New(); > glyphActor->SetMapper(glyphMapper); > glyphActor->GetProperty()->SetColor(0, 0, 1); > > ren1-> AddActor(glyphActor); > > renWin->Render(); > > points-> Delete(); > profile-> Delete(); > sphere-> Delete(); > glyph-> Delete(); > glyphMapper-> Delete(); > glyphActor-> Delete(); > } > else > { > cout<<"No point picked here!"<<"\n"; > } > > } > > Jeff Lee wrote: > > > Do you render after the pick? > > -Jeff > > > > George Kamucha wrote: > > > > >Hi all, > > >I am selecting points on a surface using vtkPointPicker, and then placing > small > > >spheres in the selected locations. The problem I am facing is that, when > I > > >select the first location, a sphere is not immediately placed there > until a > > >second location is selected. That is, I can only see the position of the > > >previously selected location and not the current one. I have checked the > > >archives but have not found anything related to my problem. If anybody > has an > > >idea on this issue, please bail me out before I lose all my hair :). > Below is > > >the snippet. > > > > > >Best regards > > >George > > _______________________________________________ > 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 -- ======================================= George Kamucha Fachgebiet Hochfrequenztechnik(FB 16), Universitaet Kassel, Wilhelmshoeher Allee 73, 34121 Kassel, Germany. __________________________________________________________________________ Phone : +49 -561-804 6528 (Office); +49 -561-870 5662 (Resi.) Fax : +49 -561-804 6529 (Office) __________________________________________________________________________ From Ron.Jerome at nrc.ca Wed Oct 9 09:29:16 2002 From: Ron.Jerome at nrc.ca (Jerome, Ron) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] deriving my own class from vtkActor Message-ID: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> I ran into the same problem, I derived my class from vtkOpenGLActor instead and it worked fine. Ron Jerome Institute for Chemical Process and Environmental Technology National Research Council Canada 613-993-5346 >-----Original Message----- >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] >Sent: Wednesday, October 09, 2002 6:00 AM >To: Vtkusers (E-mail) >Subject: [vtkusers] deriving my own class from vtkActor > > >Dear VTK-users, > >I have tried to derive my own class from vtkActor using the following >code: > >class FIB_TRACK : public vtkActor >{ >public: > FIB_TRACK(double [3], double [3], bool); > ~FIB_TRACK(); >.... >} > >For creating a new object I use: > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > >Then, I construct the rendering pipeline, add the actor to the >renderer and render the window but nothing happens. Is there >anyone who can help me ? > >Regards, >Steffen >_______________________________________________ >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: http://public.kitware.com/pipermail/vtkusers/attachments/20021009/8182002d/attachment.html From Thomas.Koninckx at esat.kuleuven.ac.be Wed Oct 9 09:20:15 2002 From: Thomas.Koninckx at esat.kuleuven.ac.be (Thomas Koninckx Local) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] X/GL-error? Message-ID: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> Hi, I've got a weird display problem. The first time I try to render, everything works fine. If I close the program and I try it a second time, nothing is displayed anymore. After closing the render-window and redrawing it, the rendering is again ok. The same story goes on and on. The third time I start my program, only the third window will start displaying something... the fourth time, the fourth window will start displaying, .... After restarting X, the problem restarts with the first window. I also loose some memory during each cycle. It's freed with the restart of X. Some colleagues have encountered similar problems. OS is Linux Redhat 7.3 or 8.0 (same problem). Graphical board is a nVidia Gforce4/2 (with dedicated drivers installed). Does anyone recognize this problem? If yes, is there a solution? Any suggestion will be appreciated. Regards Thomas -- ---------------------------------------------------------------------- Thomas Koninckx Katholieke Universiteit Leuven tel.+32-(0)16-32.10.90 Department Electrical Engineering(ESAT) fax. +32-(0)16-32.17.23 PSI-VISICS (VISion for Industry Communications and Services) Kasteelpark Arenberg 10 tkoninck@esat.kuleuven.ac.be B-3001 Leuven Belgium http://www.esat.kuleuven.ac.be/psi ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021009/49819f8e/attachment.htm From c.p.botha at its.tudelft.nl Wed Oct 9 09:48:53 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] deriving my own class from vtkActor In-Reply-To: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> References: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> Message-ID: <1034171333.23071.2.camel@dutidad> On Wed, 2002-10-09 at 15:29, Jerome, Ron wrote: > I ran into the same problem, I derived my class from vtkOpenGLActor instead > and it worked fine. As far is I know, this is not The Right Way(tm) if you want to add functionality in a generic fashion. This would mean that your class can only work on OpenGL targets. A better way would be to derive from vtkActor and also CONTAIN an instance of vtkActor as member that can be used to perform rendering. The contained vtkActor will specialise (due to the object factories) as per usual. > Ron Jerome > Institute for Chemical Process and > Environmental Technology > National Research Council Canada > 613-993-5346 > > > >-----Original Message----- > >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > >Sent: Wednesday, October 09, 2002 6:00 AM > >To: Vtkusers (E-mail) > >Subject: [vtkusers] deriving my own class from vtkActor > > > > > >Dear VTK-users, > > > >I have tried to derive my own class from vtkActor using the following > >code: > > > >class FIB_TRACK : public vtkActor > >{ > >public: > > FIB_TRACK(double [3], double [3], bool); > > ~FIB_TRACK(); > >.... > >} > > > >For creating a new object I use: > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > > > >Then, I construct the rendering pipeline, add the actor to the > >renderer and render the window but nothing happens. Is there > >anyone who can help me ? > > > >Regards, > >Steffen > >_______________________________________________ > >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 > > -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha at its.tudelft.nl Wed Oct 9 09:51:16 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] X/GL-error? In-Reply-To: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> References: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> Message-ID: <1034171476.23071.5.camel@dutidad> On Wed, 2002-10-09 at 15:20, Thomas Koninckx Local wrote: > I've got a weird display problem. The first time I try to render, > everything works fine. If I close the program and I try it a second > time, nothing is displayed anymore. After closing the render-window and > redrawing it, the rendering is again ok. The same story goes on and on. > The third time I start my program, only the third window will start > displaying something... the fourth time, the fourth window will start > displaying, .... After restarting X, the problem restarts with the first FWIW, I haven't seen this on any of the NVidia powered Linux systems I use VTK on. Do you have a simple example (in either Python or TCL) with which we can try and reproduce the behaviour that you are seeing? -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From winston at cat.rpi.edu Wed Oct 9 10:02:40 2002 From: winston at cat.rpi.edu (Jeremy Winston) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Re: vtkPointPicker - position identification problem References: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> Message-ID: <3DA43700.86C9F54D@cat.rpi.edu> George Kamucha wrote: > > Hi > Thanks a lot for testing the code. Now that it works in your system and not in > mine, I am left even more confused. All my hairs are now gone. > I have written the same code in tcl and it works fine and so I think it is not a > problem with hardware (I have a Matrox Millenium G400 graphic card). But I need > the code in C++ for compatibility with the inferfacing program based on QT. Is > it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly > appreciated. George, Are you using the latest driver for your graphics card? (See http://www.matrox.com/mga/support/drivers/latest/home.cfm ) I had a rendering problem a couple of months ago that was solved by updating my graphics driver, as did another reader of this list. HTH, -Jeremy From krs at cs.uncc.edu Wed Oct 9 09:54:56 2002 From: krs at cs.uncc.edu (K.R.Subramanian) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] deriving my own class from vtkActor References: <17C47B340D0BD411B0C70004AC5676BC1D2AF4@nrcmrdex1c.imsb.nrc.ca> Message-ID: <3DA43530.F5D980FD@cs.uncc.edu> I concur.. I used to be able to derive classes from vtkActor (to add an id for instance) in vtk3.2. Sometime back (in response to a similar query), when I tried it again under 4.0, it wouldnt render the actor at all. I had tried to modify the Cone example to test this out... -- krs "Jerome, Ron" wrote: > > > I ran into the same problem, I derived my class from vtkOpenGLActor instead and it > worked fine. > > Ron Jerome > Institute for Chemical Process and > Environmental Technology > National Research Council Canada > 613-993-5346 > > >-----Original Message----- > >From: Steffen Oeltze [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > >Sent: Wednesday, October 09, 2002 6:00 AM > >To: Vtkusers (E-mail) > >Subject: [vtkusers] deriving my own class from vtkActor > > > > > >Dear VTK-users, > > > >I have tried to derive my own class from vtkActor using the following > >code: > > > >class FIB_TRACK : public vtkActor > >{ > >public: > > FIB_TRACK(double [3], double [3], bool); > > ~FIB_TRACK(); > >.... > >} > > > >For creating a new object I use: > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true); > > > >Then, I construct the rendering pipeline, add the actor to the > >renderer and render the window but nothing happens. Is there > >anyone who can help me ? > > > >Regards, > >Steffen > >_______________________________________________ > >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@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From andy.cedilnik at kitware.com Wed Oct 9 10:44:19 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] A command that executes in Python does not compile in C++ In-Reply-To: <15779.38238.895833.804541@monster.linux.in> References: <3DA37EA1.8050207@lbl.gov> <15779.38238.895833.804541@monster.linux.in> Message-ID: <1034174659.24643.30.camel@xanth.kitwarein.com> Or maybe you forgot to include vtkStructuredPoints.h? Andy On Tue, 2002-10-08 at 22:33, Prabhu Ramachandran wrote: > >>>>> "TD" == Thomas Deschamps writes: > > TD> Well, I maybe not an expert, but I cannot make the following > TD> line compile in C++ > > TD> vtkStructuredPointsReader* reader = > TD> vtkStructuredPointsReader::New(); vtkMarchingSquares * ms = > TD> vtkMarchingSquares::New(); ms -> SetInput(reader -> > TD> GetOutput()); > > Well, something is wrong somewhere. vtkStructuredPoints is a subclass > of vtkImageData, so this is definitely legal. Maybe your build is not > clean and is an older version? i.e. Maybe yor header files are old > but the libraries are new or something? From marcelo at radioimaging.net Wed Oct 9 10:50:05 2002 From: marcelo at radioimaging.net (Marcelo Costa Oliveira) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] keyboard events Message-ID: <00c101c26fa3$27a3e500$d4323690@System.local> Anybody has a example or know how class i use to rotate my volume using keyboard arrows. I?m using VTK 4.0, C++ Builder 6 and Win XP Tank?s for help me -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021009/19c2363a/attachment.html From kamucha at hfm.e-technik.uni-kassel.de Wed Oct 9 11:30:10 2002 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Re: vtkPointPicker - position identification problem solved! References: <3DA422E2.6CCC1BB9@hfm.e-technik.uni-kassel.de> <3DA43700.86C9F54D@cat.rpi.edu> Message-ID: <3DA44B81.BEA187F4@hfm.e-technik.uni-kassel.de> Hi all, I would like to thank the vtk users for the responses I have received regarding my problem. But I am very sorry for bothering you because I had made a very silly mistake. The second snippet I sent to the forum was okay, with the rendering update (renWin->Render();) within the function pickControl. This time, I wrote the command correctly in the email but what I had in the actual program was, renWin->Render; and so all the headaches! Jeremy Winston wrote: > George Kamucha wrote: > > > > Hi > > Thanks a lot for testing the code. Now that it works in your system and not in > > mine, I am left even more confused. All my hairs are now gone. > > I have written the same code in tcl and it works fine and so I think it is not a > > problem with hardware (I have a Matrox Millenium G400 graphic card). But I need > > the code in C++ for compatibility with the inferfacing program based on QT. Is > > it my vtk which is not in order (I use vtk 3.1)? Any suggestion would be highly > > appreciated. > > George, > Are you using the latest driver for your graphics card? (See > http://www.matrox.com/mga/support/drivers/latest/home.cfm ) > > I had a rendering problem a couple of months ago that was solved > by updating my graphics driver, as did another reader of this list. > > HTH, > -Jeremy From tdeschamps at lbl.gov Wed Oct 9 11:50:32 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] A command that executes in Python does not compile in C++ References: <3DA37EA1.8050207@lbl.gov> <15779.38238.895833.804541@monster.linux.in> <1034174659.24643.30.camel@xanth.kitwarein.com> Message-ID: <3DA45048.6010405@lbl.gov> Apologies: you were right. But I assumed it was included in vtkStructuredPointsReader.h. Thank you very much. Thomas From dan at chalkie.org.uk Wed Oct 9 11:55:26 2002 From: dan at chalkie.org.uk (Dr. Dan White) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Re: tiff and jpeg readers with volume rendering- use vtkImageLuminance!!! In-Reply-To: Message-ID: <870833AF-DB9F-11D6-8BAF-000393686412@chalkie.org.uk> Dear John, and all those trying to use vtk jpg/tiff/bmp reader for volume rendering The answer to the garbled imaging was indeed vtkImageLuminance Now I can see a cell shaped cell!!!! I used it in my python script as follows # Data reader reader1 = vtkJPEGReader () reader1.SetFilePrefix(filename) reader1.SetFilePattern("%s%03i.jpg") reader1.SetDataExtent(0,101,0,118,001,020) reader1.SetDataSpacing(1,1,2.5) reader1.SetDataByteOrderToBigEndian reader = vtkImageLuminance () reader.SetInput (reader1.GetOutput()) On Tuesday, October 8, 2002, at 04:24 , anast.jm@pg.com wrote: > > > Dan, Even if its gray scale it might still have three component color > (r=g=b=gray) so oyu can try extracting the luminance. I work in tcl > so here's a > fragment if you can use it > > # Simple volume rendering example. > vtkBMPReader reader1 > reader1 SetFilePrefix "P:/VolumeData/2uCT/test/dik" > reader1 SetDataSpacing 0.44 0.44 0.88 > reader1 SetDataExtent 0 1023 0 1023 1 200 > reader1 SetDataVOI 100 925 100 925 1 200 > > vtkImageLuminance reader > reader SetInput [reader1 GetOutput] > > > > > Internet Mail Message > Received from host: posti1.jyu.fi > [130.234.4.32] > > > > From: "Dr. Dan White" on 10/08/2002 10:44 AM ZE3 > > "Dr. Dan White" To: vtkusers@public.kitware.com > Cc: John Anast-JM/PGI@PGI > Subject: tiff and jpeg readers with volume > rendering > 10/08/2002 03:44 AM > > > > > > Hi John, and all, > > Thanks for replying! > Actually the images are grayscale 8 bit, so do I still need the > luminescence > filter before I can do volume rendering properly? > If so can you suggest code? Does it go in just after the reader code? > > cheers > > Dan > >> Message: 11 >> Subject: Re: [vtkusers] vtkJPEGReader and vtkTIFFReader >> To: vtkusers@public.kitware.com >> From: anast.jm@pg.com >> Date: Mon, 7 Oct 2002 14:23:57 -0400 > > >> I suspect these are color images and you might want to try to >> extract the >> luminance (vtkImageLuminance) before rendering....john > > > > dan@chalkie.org.uk > http://www.chalkie.org.uk > > Daniel James White PhD. > Cell Biology > Department of Biological and Environmental Science > University of Jyv?skyl? > FIN-40351 > Jyv?skyl? > Finland > > > +358 (0)14 260 4183 (office) > > > dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv?skyl? FIN-40351 Jyv?skyl? Finland +358 (0)14 260 4183 (office) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2891 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021009/bf1a4d18/attachment.bin From luis_fer at inicia.es Wed Oct 9 12:05:31 2002 From: luis_fer at inicia.es (=?iso-8859-1?Q?Luis=20Ruiz=20?=) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] =?iso-8859-1?Q?setViewport=20lost?= Message-ID: <3D2953A600015693@netmail.tiscalinet.es> Hi We just started development using vtk. Today we wanted to use two renderers in the same window. After reading some doc we found that we should use setViewport() in the renderer to share the rendering window. But when we tried that, the compiler gave an error "no match function to call ..." It's not in any vtk header we have. And even in the man pages though is documented, it is not in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. From tpan at crd.ge.com Wed Oct 9 12:15:35 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] setViewport lost Message-ID: the function is SetViewport (upper case S). Maybe that's the problem? Tony -----Original Message----- From: Luis Ruiz [mailto:luis_fer@inicia.es] Sent: Wednesday, October 09, 2002 12:06 PM To: vtkusers@public.kitware.com Subject: [vtkusers] setViewport lost Hi We just started development using vtk. Today we wanted to use two renderers in the same window. After reading some doc we found that we should use setViewport() in the renderer to share the rendering window. But when we tried that, the compiler gave an error "no match function to call ..." It's not in any vtk header we have. And even in the man pages though is documented, it is not in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. _______________________________________________ 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 tpan at crd.ge.com Wed Oct 9 12:19:14 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] setViewport lost Message-ID: A little more information: Viewport is an instance variable of vtkViewport, and the methods SetViewport and GetViewport are generated via macros, so if you do a grep for SetViewport in the .h file, you won't find it. You will find, instead, vtkSetVector4Macro(Viewport,float) and vtkGetVectorMacro(Viewport,float,4). Most of vtk's instance variables have accessor functions that are generated using macros. Tony -----Original Message----- From: Luis Ruiz [mailto:luis_fer@inicia.es] Sent: Wednesday, October 09, 2002 12:06 PM To: vtkusers@public.kitware.com Subject: [vtkusers] setViewport lost Hi We just started development using vtk. Today we wanted to use two renderers in the same window. After reading some doc we found that we should use setViewport() in the renderer to share the rendering window. But when we tried that, the compiler gave an error "no match function to call ..." It's not in any vtk header we have. And even in the man pages though is documented, it is not in the interface stored by doxygen (vtkViewport.h) in the same page. We have debian woody installed with 3.2-10 vtk. Doing a : grep -i setViewport * in the headers dir doesn't find anything but a meaningless SetViewport in another class. Could anybody help us with this? Was that method removed for any reason? Thanks in advance. Luis. _______________________________________________ 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 luis_fer at inicia.es Wed Oct 9 12:31:22 2002 From: luis_fer at inicia.es (Luis Fernando Ruiz Gago) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] setViewport lost In-Reply-To: References: Message-ID: <20021009183122.31bfec32.luis_fer@inicia.es> On Wed, 9 Oct 2002 12:15:35 -0400 "Pan, Tony C (Research)" wrote: > the function is SetViewport (upper case S). Maybe that's the problem? No, that's another method in vtkcoordinate. I need the setViewport in vtkViewport which takes four floats or a four element array. This is the way I use it: ren = vtkRenderer::New(); ren->setViewport(0.0, 0.0, 0.5, 1.0); The method is documented in the manpages, into the vtkVieport class. vtkRenderer inherits from it, but even in vtkViewport seems to be missing. I found some similar code samples. So what's wrong with it? The documentation is here: http://www.vtk.org/doc/release/3.2/html/classvtkViewport.html#a18 but the refenced method isn't here: http://www.vtk.org/doc/release/3.2/html/vtkViewport_8h-source.html > > Tony > > -----Original Message----- > From: Luis Ruiz [mailto:luis_fer@inicia.es] > Sent: Wednesday, October 09, 2002 12:06 PM > To: vtkusers@public.kitware.com > Subject: [vtkusers] setViewport lost > > > Hi > > We just started development using vtk. Today we wanted to use two renderers > in the same window. After reading some doc we found that we should use setViewport() > in the renderer to share the rendering window. But when we tried that, the > compiler gave an error "no match function to call ..." It's not in any vtk > header we have. And even in the man pages though is documented, it is not > in the interface stored by doxygen (vtkViewport.h) in the same page. > > We have debian woody installed with 3.2-10 vtk. Doing a : > > grep -i setViewport * > > in the headers dir doesn't find anything but a meaningless SetViewport in > another class. > > Could anybody help us with this? Was that method removed for any reason? > > Thanks in advance. > > Luis. > > > > > > > > > > _______________________________________________ > 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 luis_fer at inicia.es Wed Oct 9 12:38:08 2002 From: luis_fer at inicia.es (Luis Fernando Ruiz Gago) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] setViewport lost In-Reply-To: <20021009183122.31bfec32.luis_fer@inicia.es> References: <20021009183122.31bfec32.luis_fer@inicia.es> Message-ID: <20021009183808.20bb4b1e.luis_fer@inicia.es> Sorry, it works with the upper case S. Thanks for all, I was confused by some examples. Luis. On Wed, 09 Oct 2002 18:31:22 +0200 Luis Fernando Ruiz Gago wrote: > On Wed, 9 Oct 2002 12:15:35 -0400 > "Pan, Tony C (Research)" wrote: > > > the function is SetViewport (upper case S). Maybe that's the problem? > > No, that's another method in vtkcoordinate. I need the setViewport in vtkViewport which takes four floats or a four element array. > > This is the way I use it: > > ren = vtkRenderer::New(); > ren->setViewport(0.0, 0.0, 0.5, 1.0); > > The method is documented in the manpages, into the vtkVieport class. vtkRenderer inherits from it, but even in vtkViewport seems to be missing. I found some similar code samples. So what's wrong with it? > > The documentation is here: > http://www.vtk.org/doc/release/3.2/html/classvtkViewport.html#a18 > > but the refenced method isn't here: > http://www.vtk.org/doc/release/3.2/html/vtkViewport_8h-source.html > > > > > > > > Tony > > > > -----Original Message----- > > From: Luis Ruiz [mailto:luis_fer@inicia.es] > > Sent: Wednesday, October 09, 2002 12:06 PM > > To: vtkusers@public.kitware.com > > Subject: [vtkusers] setViewport lost > > > > > > Hi > > > > We just started development using vtk. Today we wanted to use two renderers > > in the same window. After reading some doc we found that we should use setViewport() > > in the renderer to share the rendering window. But when we tried that, the > > compiler gave an error "no match function to call ..." It's not in any vtk > > header we have. And even in the man pages though is documented, it is not > > in the interface stored by doxygen (vtkViewport.h) in the same page. > > > > We have debian woody installed with 3.2-10 vtk. Doing a : > > > > grep -i setViewport * > > > > in the headers dir doesn't find anything but a meaningless SetViewport in > > another class. > > > > Could anybody help us with this? Was that method removed for any reason? > > > > Thanks in advance. > > > > Luis. > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > 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 vtk_replies at yahoo.com Wed Oct 9 13:04:46 2002 From: vtk_replies at yahoo.com (vtk replies) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] problem with BlankPoint(ptId) function in class vtkStructuredGrid Message-ID: <20021009170446.79949.qmail@web21504.mail.yahoo.com> Hello, I have run into the following problem. I need to blank out a portion of my Structured Grid (consisting of Voxels ). I used the following functions in class vtkStructuredGrid ... structGrid->BlankingOn(); for(int i=start; iBlankPoint(i); ... but nothing seems to happen when the image is rendered. (1) The blanked out portions still appear in the image (2) also when I try to find out the neighbours of the cells just on the boundary of the blanked region, they still appear as neighbours even though the some of them happen to be in the blanked region. For example, if in the 2x2 grid below, the points a, b, c, d, e, f are blanked out. Then the neighbours of cell 13 should be 12, 20, 9 and Null. The cell 'd' should not show up as one of its neighbours. When an isosurface is rendered, the blanked out cells should not be considered while checking for isosurface cells, but this does not happen. 18 19 20 21 22 23 24 11 12 13 d e f 17 7 8 9 a b c 10 0 1 2 3 4 5 6 Does anybody know a way of doing this ? What am I missing here ? Has anyone run into this problem before? Any help will be deeply appreciated. Thank you in advance. Regards Joseph. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From nundys at neuro.duke.edu Wed Oct 9 14:00:16 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Memory leaks using VTK on OS X In-Reply-To: <20021009162102.7595.70631.Mailman@public.kitware.com> Message-ID: I thought that this was only a result of using Java-wrapped vtk but it persists with c++-vtk and tcl-vtk. Every time I run a vtk program from the testing tree, the amount of free system memory (as reported by top) reduces by a certain amount (about 1 MB for Mace.cxx or Mace.tcl). This memory is persistently lost and can only be reclaimed by restarting the system. Am I mistaken, or have others experienced the same problems? Thanks, Surajit Nundy From cnavarro at ncsa.uiuc.edu Wed Oct 9 14:04:55 2002 From: cnavarro at ncsa.uiuc.edu (Christopher M. Navarro) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkStructuredPointsWriter Message-ID: I've noticed that if I first read a structured points file with vtkStructuredPointsReader and then immediately write it with vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in the original foo.vtk file is lost and it defaults to the name "scalars". If I explicitly say points.GetPointData().GetScalars().SetName("elevation") it still writes out 'scalars' as the name. Now, if I set the scalar name explicitly with the writer, it writes out 'elevation'. ie out.SetScalarsName("elevation") To further complicate things, if I add more arrays of scalar data with GetPointData().AddArray(myArray) it does not append not merely append the extra arrays when I write the structuredpoints object to file. It mix and matched the arrays. In one instance, with the additional arrays, elevation was written second in the file and the name showed up....so it is there, something is just not allowing it to write the name to the file when it shows up first in the file. To clarify all of this, it would appear that StructuredPointsWriter uses a default name 'scalars' for the first scalar written to file, unless explicitly set within the writer object. With additional arrays, it does not just append them on to the original pointdata, but alters the order (how/why?). Am I doing something incorrectly? This all seems pretty straightforward. As reference I am using java + vtk 4.0. Any thoughts? -chris From cnavarro at ncsa.uiuc.edu Wed Oct 9 14:29:30 2002 From: cnavarro at ncsa.uiuc.edu (Christopher M. Navarro) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Re: vtkStructuredPointsWriter In-Reply-To: Message-ID: The original question remains but I did find a workaround on this. I explicitly set the writer to the scalar original scalar name 'elevation' and then added the additional arrays as FieldData. It's still interesting as to why it defaults to 'scalars' when read then written right away. -chris On Wed, 9 Oct 2002, Christopher M. Navarro wrote: > > I've noticed that if I first read a structured points file with > vtkStructuredPointsReader and then immediately write it with > vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in > the original foo.vtk file is lost and it defaults to the name "scalars". > If I explicitly say > > points.GetPointData().GetScalars().SetName("elevation") > > it still writes out 'scalars' as the name. Now, if I set the scalar name > explicitly with the writer, it writes out 'elevation'. ie > > out.SetScalarsName("elevation") > > To further complicate things, if I add more arrays of scalar data with > GetPointData().AddArray(myArray) it does not append not merely append the > extra arrays when I write the structuredpoints object to file. It mix and > matched the arrays. In one instance, with the additional arrays, > elevation was written second in the file and the name showed up....so it > is there, something is just not allowing it to write the name to the file > when it shows up first in the file. To clarify all of this, it would > appear that StructuredPointsWriter uses a default name 'scalars' for the > first scalar written to file, unless explicitly set within the writer object. > With additional arrays, it does not just append them on to the > original pointdata, but alters the order (how/why?). Am I doing something > incorrectly? This all seems pretty straightforward. As reference I am > using java + vtk 4.0. Any thoughts? > > -chris > > -- Christopher Navarro Research Programmer Automated Learning Group National Center for Supercomputing Applications University of Illinois @ Urbana - Champaign cnavarro@ncsa.uiuc.edu From cwant at ualberta.ca Wed Oct 9 15:29:16 2002 From: cwant at ualberta.ca (Chris Want) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Weigted average of dataset attributes? Message-ID: <3DA4838C.2090809@ualberta.ca> I have two vtkStructuredPoints objects that are defined on the same data domain. I would like to take a weighted average of the scalars defined at each point, and have that as the scalars for a third vtkStructuredPoints object. This isn't too hard to program myself, but I thought I'd check to see if there was some vtk class that did this automagically first. Is there a class that will do this? Cheers, -- Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From berk.geveci at kitware.com Wed Oct 9 15:50:29 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkStructuredPointsWriter In-Reply-To: References: Message-ID: <1034193029.17966.8.camel@caemlyn.kitwarein.com> The short answer is : the readers and writers did not catch up with changes to the attributes/data arrays. The long answer is: In the old days (VTK 3.2 and earlier), the arrays/attributes did not have names. The names were stored in vtkFieldData instead. Furthermore, vtkPointData and vtkCellData were not subclasses of vtkFieldData, instead they each had an associated vtkFieldData. This meant that the only way to associate a name with an array was to store it in field data. This is why the writers had and still have special methods to set the attribute names stored in the file and also why they use a default name for each attribute. The new VTK readers/writers we are developing will not have this problem. They are currently in the development/testing stage and will be part of the next ParaView release (to be announced in a few weeks) and hopefully, the next VTK release. -Berk On Wed, 2002-10-09 at 14:04, Christopher M. Navarro wrote: > > I've noticed that if I first read a structured points file with > vtkStructuredPointsReader and then immediately write it with > vtkStructuredPointsWriter (or anytime thereafter), the scalar name set in > the original foo.vtk file is lost and it defaults to the name "scalars". > If I explicitly say > > points.GetPointData().GetScalars().SetName("elevation") > > it still writes out 'scalars' as the name. Now, if I set the scalar name > explicitly with the writer, it writes out 'elevation'. ie > > out.SetScalarsName("elevation") > > To further complicate things, if I add more arrays of scalar data with > GetPointData().AddArray(myArray) it does not append not merely append the > extra arrays when I write the structuredpoints object to file. It mix and > matched the arrays. In one instance, with the additional arrays, > elevation was written second in the file and the name showed up....so it > is there, something is just not allowing it to write the name to the file > when it shows up first in the file. To clarify all of this, it would > appear that StructuredPointsWriter uses a default name 'scalars' for the > first scalar written to file, unless explicitly set within the writer object. > With additional arrays, it does not just append them on to the > original pointdata, but alters the order (how/why?). Am I doing something > incorrectly? This all seems pretty straightforward. As reference I am > using java + vtk 4.0. Any thoughts? > > -chris > > _______________________________________________ > 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 nundys at neuro.duke.edu Tue Oct 1 00:05:21 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkPolyDataMapper.SetInput java problem Message-ID: <0102CC7A-D4F3-11D6-97B7-000393B290A0@neuro.duke.edu> Hello, Many of the other Java functions appear to be working on OS X 10.2.1, except vtkPolyDataMapper.SetInput which gives a "Bus Error" or a segmentation violation (in addition to vtkPanel not loading). This problem is unique to Java since it appears to work in C++ and Tcl. Have others had this problem and is there a solution? Thanks, Surajit Nundy From nundys at neuro.duke.edu Wed Oct 9 14:00:16 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Memory leaks using VTK on OS X Message-ID: <9F946A00-DC05-11D6-97B7-000393B290A0@neuro.duke.edu> I thought that this was only a result of using Java-wrapped vtk but it persists with c++-vtk and tcl-vtk. Every time I run a vtk program from the testing tree, the amount of free system memory (as reported by top) reduces by a certain amount (about 1 MB for Mace.cxx or Mace.tcl). This memory is persistently lost and can only be reclaimed by restarting the system. Am I mistaken, or have others experienced the same problems? Thanks, Surajit Nundy From nundys at neuro.duke.edu Tue Oct 1 00:05:21 2002 From: nundys at neuro.duke.edu (Surajit Nundy) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkPolyDataMapper.SetInput java problem Message-ID: Hello, Many of the other Java functions appear to be working on OS X 10.2.1, except vtkPolyDataMapper.SetInput which gives a "Bus Error" or a segmentation violation (in addition to vtkPanel not loading). This problem is unique to Java since it appears to work in C++ and Tcl. Have others had this problem and is there a solution? Thanks, Surajit Nundy From PreethishK at geind.ge.com Thu Oct 10 00:45:41 2002 From: PreethishK at geind.ge.com (Kumar, Preethish M (MED)) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] desperately need vtk with java in solaris Message-ID: <10B96F9B1453D61191B400508B650D9402C19F50@ban03xbindge> hi, i need to build a java application with vtk in solaris os.i tried a lot to build with no sucess. has anyone able to run a java program with vtk in solaris. thank u in advance "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021010/1aa13719/attachment.html From simon.chatelain at epfl.ch Thu Oct 10 02:55:52 2002 From: simon.chatelain at epfl.ch (Simon Chatelain) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] transmitting vtkimagedata with rmi Message-ID: hello, i need to transmit a vtkImageData through the network. as i am working with java, i wish use RMI. Does someone know if it is possible ? And if yes how? If no how to make it ? Thanks Simon From robbel at science.uva.nl Thu Oct 10 03:16:22 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] X/GL-error? In-Reply-To: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> References: <3DA42D0F.F4F2AA7E@esat.kuleuven.ac.be> Message-ID: <20021010071622.GA25292@carol.science.uva.nl> Hi Thomas, Although the symptoms you describe are not completely the same as what I have seen on some systems with the same configuration you are using, it's not that different. Here's what you should check; Take a look at /usr/include/GL/gl.h on your systems. If it mentions "Mesa" at the top, you are using the wrong include files. To fix that, run the following commands: ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h /usr/include/GL ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/glx.h /usr/include/GL ln -sf /usr/share/doc/NVIDIA_GLX-1.0/include/GL/glxtokens.h /usr/include/GL Then rebuild Vtk (or at least recompile and rebuild all Vtk libraries that depend on OpenGL). The problem is that the nVidia RPMs don't install the correct header files by default. -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] On Wed, Oct 09, 2002 at 03:20:15PM +0200, Thomas Koninckx Local wrote: > Hi, > > I've got a weird display problem. The first time I try to render, > everything works fine. If I close the program and I try it a second > time, nothing is displayed anymore. After closing the render-window and > redrawing it, the rendering is again ok. The same story goes on and on. > The third time I start my program, only the third window will start > displaying something... the fourth time, the fourth window will start > displaying, .... After restarting X, the problem restarts with the first > > window. > I also loose some memory during each cycle. It's freed with the restart > of X. > > Some colleagues have encountered similar problems. OS is Linux Redhat > 7.3 or 8.0 (same problem). Graphical board is a nVidia Gforce4/2 (with > dedicated drivers installed). > > Does anyone recognize this problem? If yes, is there a solution? Any > suggestion will be appreciated. > > Regards > Thomas > > -- > > ---------------------------------------------------------------------- > Thomas Koninckx > Katholieke Universiteit Leuven tel.+32-(0)16-32.10.90 > Department Electrical Engineering(ESAT) fax. +32-(0)16-32.17.23 > PSI-VISICS (VISion for Industry Communications and Services) > Kasteelpark Arenberg 10 tkoninck@esat.kuleuven.ac.be > B-3001 Leuven Belgium http://www.esat.kuleuven.ac.be/psi > ---------------------------------------------------------------------- From piotr.kozaczewski at power.alstom.com Thu Oct 10 03:19:37 2002 From: piotr.kozaczewski at power.alstom.com (piotr.kozaczewski@power.alstom.com) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] Problems compiling VTK4.0 on cygwin Message-ID: Dear all. I tried to compile VTK on my PC runnning CYGWIN under WinNT 4.0. After creating necessary libraries, make starts building vtk, I suppose a tcl interpreter. It uses the following command: c++ -mwin32 tkAppInit.o -L/cygdrive/c/VTK/bin -lgdi32 -lm -lvtkpng -lvtkzlib - lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkComm onTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -ltcl80 -lop engl32 -ltk80 -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -lvtkpng -lvtkzlib -lvtkjpeg -lvtkImagingTCL -lvtkGraphicsTCL -l vtkFilteringTCL -lvtkCommonTCL -ltk80 -ltcl80 -lvtkImaging -lvtkGraphics -lvtkFi ltering -lvtkCommon -lopengl32 -lm -lgdi32 -lXt -lSM -lICE -L/usr/X11R6/lib -l X11 -lXext -o /cygdrive/c/VTK/bin/vtk and aborts , informing about some missing Win32/OpenGL routines: /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x38b0 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x38c2 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x3a4f ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x4f97 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x6985 ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLRenderWindow.o)(.text+0x6baf ):vtkWin32OpenGLRenderWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1958) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1967) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglDeleteContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x1f3e) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x32a4) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x32bc) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x420d) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglCreateContext@4' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x4225) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLImageWindow.o)(.text+0x436a) :vtkWin32OpenGLImageWindow.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x1652): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x16a9): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglMakeCurrent@8' /cygdrive/c/VTK/bin/libvtkRendering.a(vtkWin32OpenGLTextMapper.o)(.text+0x195f): vtkWin32OpenGLTextMapper.cxx: undefined reference to `wglUseFontBitmapsA@16' collect2: ld returned 1 exit status make[3]: *** [/cygdrive/c/VTK/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 My Makefile has been automatically generated by CMake: (See attached file: Makefile) Beyond standard CMake settings for VTK, I required: *) Build of examples. *) Build of the Tcl embedding. I also manually modified CMakeCache.txt to enable finding Tcl/Tk include files, downloaded from www.cygwin.com . (See attached file: CMakeCache.txt)(See attached file: CCMakeSystemConfig.cmake) I would like to use (native?) OpenGL and not XFree85_for_cygwin. I use WinNT4.0, cygwin with gcc/g++ v.2.95.3-5, VTK4.0 Would you mind giving me some help/hints etc? Thank you very much in advance. Best regards, Piotr Kozaczewski -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile Type: application/octet-stream Size: 25173 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021010/82dab5f4/Makefile.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: CMakeCache.txt Type: application/octet-stream Size: 24990 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021010/82dab5f4/CMakeCache.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: CCMakeSystemConfig.cmake Type: application/octet-stream Size: 5150 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021010/82dab5f4/CCMakeSystemConfig.obj From lehrig at t-online.de Thu Oct 10 07:15:22 2002 From: lehrig at t-online.de (Rainer Lehrig) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 Message-ID: <200210101315.22410.lehrig@t-online.de> Hi, when compiling VTK40 on SuSE Linux 8.1 i get an error. On SuSE Linux 8.0 it did work. The error message is: /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx: In function `int Vtkcommontcl_Init(Tcl_Interp*)': /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx:370: invalid conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const char**)' make[3]: *** [vtkCommonTCLInit.o] Fehler 1 make[2]: *** [default_target] Fehler 2 make[1]: *** [default_target_Common] Fehler 2 make: *** [default_target] Fehler 2 The code looks like: int VTK_EXPORT Vtkcommontcl_Init(Tcl_Interp *interp) { vtkTclInterpStruct *info = new vtkTclInterpStruct; info->Number = 0; info->InDelete = 0; info->DebugOn = 0; Tcl_InitHashTable(&info->InstanceLookup, TCL_STRING_KEYS); Tcl_InitHashTable(&info->PointerLookup, TCL_STRING_KEYS); Tcl_InitHashTable(&info->CommandLookup, TCL_STRING_KEYS); Tcl_SetAssocData(interp,(char *) "vtk",NULL,(ClientData *)info); Tcl_CreateExitHandler(vtkCommonDeleteAssocData,(ClientData *)info); Tcl_CreateCommand(interp,(char *) "vtkCommand",vtkCommand, (ClientData *)NULL, NULL); // The error is caused by the last parameter vtkTclCreateNew(interp,(char *) "vtkFunctionParser", vtkFunctionParserNewCommand, vtkFunctionParserCommand); vtkTclCreateNew(interp,(char *) "vtkObjectFactoryCollection", vtkObjectFactoryCollectionNewCommand, vtkObjectFactoryCollectionCommand); vtkTclCreateNew(interp,(char *) "vtkPlanes", vtkPlanesNewCommand, vtkPlanesCommand); ... Yours: Rainer Lehrig From broicher at techinfo.rwth-aachen.de Thu Oct 10 07:26:23 2002 From: broicher at techinfo.rwth-aachen.de (Frank Broicher) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 References: <200210101315.22410.lehrig@t-online.de> Message-ID: <3DA563DF.6000700@techinfo.rwth-aachen.de> Hi, this is exactly why we haven't upgraded yet. The standard compiler on a SuSE 8.1 system is gcc 3.2 (AFAIK). This compiler is stricter that the "old" gcc 2.9.xy and compiler closer to the standards, as you can see in your mail. Your problem can be solved by type-casting the pointer (static_cast) char** to const char**. With Best Regards Frank Rainer Lehrig schrieb: > Hi, > > when compiling VTK40 on SuSE Linux 8.1 i get an error. > On SuSE Linux 8.0 it did work. > > The error message is: > > /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx: In function > `int > Vtkcommontcl_Init(Tcl_Interp*)': > /home/lehrig/cc/priv/vtk-src-unix/Common/vtkCommonTCLInit.cxx:370: invalid > conversion from `int (*)(void*, Tcl_Interp*, int, char**)' to `int > (*)(void*, Tcl_Interp*, int, const char**)' > make[3]: *** [vtkCommonTCLInit.o] Fehler 1 > make[2]: *** [default_target] Fehler 2 > make[1]: *** [default_target_Common] Fehler 2 > make: *** [default_target] Fehler 2 > > The code looks like: > > int VTK_EXPORT Vtkcommontcl_Init(Tcl_Interp *interp) > { > vtkTclInterpStruct *info = new vtkTclInterpStruct; > info->Number = 0; info->InDelete = 0; info->DebugOn = 0; > > > Tcl_InitHashTable(&info->InstanceLookup, TCL_STRING_KEYS); > Tcl_InitHashTable(&info->PointerLookup, TCL_STRING_KEYS); > Tcl_InitHashTable(&info->CommandLookup, TCL_STRING_KEYS); > Tcl_SetAssocData(interp,(char *) "vtk",NULL,(ClientData *)info); > Tcl_CreateExitHandler(vtkCommonDeleteAssocData,(ClientData *)info); > Tcl_CreateCommand(interp,(char *) "vtkCommand",vtkCommand, > (ClientData *)NULL, NULL); // The error is caused by the last parameter > > > vtkTclCreateNew(interp,(char *) "vtkFunctionParser", > vtkFunctionParserNewCommand, > vtkFunctionParserCommand); > vtkTclCreateNew(interp,(char *) "vtkObjectFactoryCollection", > vtkObjectFactoryCollectionNewCommand, > vtkObjectFactoryCollectionCommand); > vtkTclCreateNew(interp,(char *) "vtkPlanes", vtkPlanesNewCommand, > vtkPlanesCommand); > > ... > > Yours: > Rainer Lehrig > _______________________________________________ > 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 > -- Dipl.-Inform. F. H. Broicher Chair of Technical Computer Science Lehrstuhl f. Technische Informatik RWTH Aachen University RWTH-Aachen Ahornstra?e 55, Room 2226 D-52074 Aachen ------------------------------------------------------------------------ Tel.: +49 (241) 80 23636 mailto:broicher@techinfo.rwth-aachen.de Fax.: +49 (241) 80 22308 mailto:frank.broicher@ieee.org ------------------------------------------------------------------------ Fate, it seems, is not without a sense of irony. (Morpheus, The Matrix) From sebastien.barre at kitware.com Thu Oct 10 08:41:45 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 In-Reply-To: <200210101315.22410.lehrig@t-online.de> Message-ID: <5.1.1.6.0.20021010084056.01b4acc0@pop.biz.rr.com> At 10/10/2002 07:15 AM, Rainer Lehrig wrote: >Hi, > >when compiling VTK40 on SuSE Linux 8.1 i get an error. Hi Rainer Which version of CMake are you using (including patch level). Which version of Tcl/Tk is provided by Suse 8.1 ? -- Sebastien Barre From sebastien.barre at kitware.com Thu Oct 10 08:45:12 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 Message-ID: <5.1.1.6.0.20021010084321.018a10b0@pop.biz.rr.com> At 10/10/2002 07:15 AM, Rainer Lehrig wrote: >Hi, > >when compiling VTK40 on SuSE Linux 8.1 i get an error. > Hi Rainer > Which version of CMake are you using (including patch level). > Which version of Tcl/Tk is provided by Suse 8.1 ? I will answer to my own question :) I checked Suse web site, this Linux distrib comes with Tcl/Tk 8.4. CMake won't support it until you use the CVS version. As a matter of fact, you will have to use VTK CVS too. -- Sebastien Barre From james at rogue-research.com Thu Oct 10 08:58:36 2002 From: james at rogue-research.com (James Dessart) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] building debug? Message-ID: Is there a way to build VTK with debugging symbols? I seem to be getting into an infinite loop, and I'm not sure what specific in VTK is causing it, so I'd like to examine it in more detail. Should I just add -g to the CFLAGS, or is there already a mechanism to build a debug version? James From siddumd at yahoo.co.in Thu Oct 10 09:17:53 2002 From: siddumd at yahoo.co.in (=?iso-8859-1?q?Mysore=20Siddu?=) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] vtkPointLocator & Collision avoidance Message-ID: <20021010131753.80686.qmail@web8203.mail.in.yahoo.com> Hi vtk Users, I have two questions: 1. From cellLocator->IntersectWithLine I compute the intersection point and its cellID on the STL file. Now I want to find all the points within a radius around the intersection point. I tried using vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) But I was not successful with the following code: float p1[] = {2.0, 1.0, 3.0}; float rad = 2.0; vtkIdList *res; // Build a locator vtkPointLocator *pointLocator = vtkPointLocator::New(); pointLocator->SetDataSet(STLReader->GetOutput()); pointLocator->FindPointsWithinRadius(rad,p1,res); pointLocator->BuildLocator(); I don?t know where I am goofing up the code. As soon as Execute I am getting error as ?Memory can?t be assigned error? I debugged the code it is stopping at vtkIdList.h // Description: // Reset to an empty state. void Reset() {this->NumberOfIds = 0;}; */ 2. Is there any vtk class, which I can use for collision avoidance? Basically I have two STL files and I want to check the collision around a particular point. Any Help in this regard is very well appreciated. Best Regards Siddu. Yahoo! Properties Special Buy, sell, rent...your flat, or even post an ad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021010/9f761d07/attachment.html From affable at hd2.dot.net.in Thu Oct 10 09:41:58 2002 From: affable at hd2.dot.net.in (cspl) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] How to convert volueme data into buffer data References: <20021010072101.18747.10227.Mailman@public.kitware.com> Message-ID: <001b01c27062$cf828aa0$01000001@macinfo.net> Dear friends, how to convert volume data into buffer data. I am using raycast technique.After that I want to export the output into a buffer.please give me suggestion. thanking you, regards, ramakrishna From james at rogue-research.com Thu Oct 10 09:41:16 2002 From: james at rogue-research.com (James Dessart) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] problems with VTK on Mac OS X - ignore last email Message-ID: I seem to be having some problems with VTK on Mac OS X 10.2.1, using gcc3, I believe, whatever the default is. In any case, in my first call to anything in VTK, the simple program I wrote (based on an example in the book) freezes. This program worked under 10.1.5, and simply loads the data file Data/42400-IDGH.stl and displays it. Here is the gdb stack trace, if it helps: #0 0x90034f28 in semaphore_wait_trap () #1 0x9000a418 in pthread_mutex_lock () #2 0x0089e230 in std::locale::classic() () #3 0x0089da8c in std::locale::locale() () #4 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #5 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #6 0x00899470 in std::ios_base::Init::Init() () #7 0x00961fd8 in __static_initialization_and_destruction_0(int, int) () #8 0x0096203c in _GLOBAL__I__ZN12vtkBYUReader16CollectRevisionsERSo () #9 0x8fe16350 in __dyld_call_module_initializers_for_library () #10 0x8fe160e4 in __dyld_call_module_initializers () #11 0x8fe106f0 in __dyld_link_in_need_modules () #12 0x8fe1016c in __dyld_bind_lazy_symbol_reference () #13 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #14 0x0089e288 in std::locale::classic() () #15 0x0089da8c in std::locale::locale() () #16 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #17 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #18 0x00899470 in std::ios_base::Init::Init() () #19 0x00961ed8 in __static_initialization_and_destruction_0(int, int) () #20 0x00961f3c in _GLOBAL__I__ZN12vtkBMPWriter16CollectRevisionsERSo () #21 0x8fe16350 in __dyld_call_module_initializers_for_library () #22 0x8fe160e4 in __dyld_call_module_initializers () #23 0x8fe106f0 in __dyld_link_in_need_modules () #24 0x8fe1016c in __dyld_bind_lazy_symbol_reference () #25 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #26 0x0088f2e0 in std::basic_filebuf >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () #27 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () #28 0x00899470 in std::ios_base::Init::Init() () #29 0x00961dd8 in __static_initialization_and_destruction_0(int, int) () #30 0x00961e3c in _GLOBAL__I__ZN12vtkBMPReader16CollectRevisionsERSo () #31 0x8fe16350 in __dyld_call_module_initializers_for_library () #32 0x8fe160e4 in __dyld_call_module_initializers () #33 0x8fe106f0 in __dyld_link_in_need_modules () #34 0x8fe102d0 in __dyld_bind_lazy_symbol_reference () #35 0x8fe00ec0 in __dyld_stub_binding_helper_interface () #36 0x000027b8 in main (argc=1, argv=0xbffffd64) at ReaderSourceObject/Reader.cxx:15 #37 0x0000253c in _start (argc=1, argv=0xbffffd64, envp=0xbffffd6c) at /SourceCache/Csu/Csu-45/crt.c:267 #38 0x000023bc in start () Now, what I'm guessing here is that the static initializer for that last object for some reason deadlocks. This code is a nightly from a few days ago, but it built find for me in 10.1.5. Any clues? Thanks, James From wind at climate.gsfc.nasa.gov Thu Oct 10 10:04:51 2002 From: wind at climate.gsfc.nasa.gov (Gala Wind) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] problems with VTK on Mac OS X - ignore last email In-Reply-To: Message-ID: <3ED24A11-DC59-11D6-80F0-00039366FD8C@climate.gsfc.nasa.gov> Ah, you've got same one I've hit, or along those lines anyways. GCC3 is crap. You need to execute this command: sudo gcc_select 2 Yeah, you need to rebuild VTK from scratch. But that should make the pesky error go away once and for all. 10.2.1 updated your compilers, but thank goodness didn't uninstall the gcc 2.95.whatever. Try it, should fix all your problems -- Gala On Thursday, October 10, 2002, at 06:41 AM, James Dessart wrote: > I seem to be having some problems with VTK on Mac OS X 10.2.1, using > gcc3, > I believe, whatever the default is. In any case, in my first call to > anything in VTK, the simple program I wrote (based on an example in the > book) freezes. This program worked under 10.1.5, and simply loads the > data file Data/42400-IDGH.stl and displays it. > > Here is the gdb stack trace, if it helps: > > #0 0x90034f28 in semaphore_wait_trap () > #1 0x9000a418 in pthread_mutex_lock () > #2 0x0089e230 in std::locale::classic() () > #3 0x0089da8c in std::locale::locale() () > #4 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #5 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #6 0x00899470 in std::ios_base::Init::Init() () > #7 0x00961fd8 in __static_initialization_and_destruction_0(int, int) > () > #8 0x0096203c in _GLOBAL__I__ZN12vtkBYUReader16CollectRevisionsERSo () > #9 0x8fe16350 in __dyld_call_module_initializers_for_library () > #10 0x8fe160e4 in __dyld_call_module_initializers () > #11 0x8fe106f0 in __dyld_link_in_need_modules () > #12 0x8fe1016c in __dyld_bind_lazy_symbol_reference () > #13 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #14 0x0089e288 in std::locale::classic() () > #15 0x0089da8c in std::locale::locale() () > #16 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #17 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #18 0x00899470 in std::ios_base::Init::Init() () > #19 0x00961ed8 in __static_initialization_and_destruction_0(int, int) > () > #20 0x00961f3c in _GLOBAL__I__ZN12vtkBMPWriter16CollectRevisionsERSo () > #21 0x8fe16350 in __dyld_call_module_initializers_for_library () > #22 0x8fe160e4 in __dyld_call_module_initializers () > #23 0x8fe106f0 in __dyld_link_in_need_modules () > #24 0x8fe1016c in __dyld_bind_lazy_symbol_reference () > #25 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #26 0x0088f2e0 in std::basic_filebuf >> ::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) () > #27 0x008990ec in std::ios_base::Init::_S_ios_create(bool) () > #28 0x00899470 in std::ios_base::Init::Init() () > #29 0x00961dd8 in __static_initialization_and_destruction_0(int, int) > () > #30 0x00961e3c in _GLOBAL__I__ZN12vtkBMPReader16CollectRevisionsERSo () > #31 0x8fe16350 in __dyld_call_module_initializers_for_library () > #32 0x8fe160e4 in __dyld_call_module_initializers () > #33 0x8fe106f0 in __dyld_link_in_need_modules () > #34 0x8fe102d0 in __dyld_bind_lazy_symbol_reference () > #35 0x8fe00ec0 in __dyld_stub_binding_helper_interface () > #36 0x000027b8 in main (argc=1, argv=0xbffffd64) at > ReaderSourceObject/Reader.cxx:15 > #37 0x0000253c in _start (argc=1, argv=0xbffffd64, envp=0xbffffd6c) at > /SourceCache/Csu/Csu-45/crt.c:267 > #38 0x000023bc in start () > > Now, what I'm guessing here is that the static initializer for that > last > object for some reason deadlocks. This code is a nightly from a few > days > ago, but it built find for me in 10.1.5. Any clues? > > Thanks, > James > > _______________________________________________ > 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 > > Gala Wind (301) 614-6221 wind@climate.gsfc.nasa.gov Code 913, Climate and Radiation L-3 Comm/ Emergent East NASA/GSFC Greenbelt, MD 20771 /*-------------------------------------------------------------------- -- There's always a way, you just have to find it. ( B. Hambly "Children of the Jedi" ) ----------------------------------------------------------------------*/ From dahuang at skltr2.mech.pku.edu.cn Thu Oct 10 10:28:04 2002 From: dahuang at skltr2.mech.pku.edu.cn (dahuang) Date: Mon May 24 19:15:54 2004 Subject: [vtkusers] (no subject) Message-ID: <0042f1933140aa2MAIL@smtp.mech.pku.edu.cn> Hi, I am comparing various algorithms to reconstruct my MRI slices.I have used the vtkMarchingCubes algorithm and it worked well, only that the speed is a bit slow.Now I am trying the vtkDividingCubes algorithm, but either it consumes too much memory, or I can not get the 3d image in the render window. I think it is maybe caused by the inappropriate parameters I chose.I need your suggestions. My data: Pixel Spacing: 0.666016,0.666016;Slice Thickness: 2.500000; My Parameter(showing no image) Distance(0.5);Increment(10); ? ?Default Parameter(Value = 0.0;Distance = 0.1;Increment = 1;) ->Memory collapse ???? ????????dahuang ????????dahuang@skltr2.mech.pku.edu.cn ??????????2002-10-10 From sebastien.barre at kitware.com Thu Oct 10 10:43:27 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] error compiling VTK40 on SuSE Linux 8.1 In-Reply-To: <200210101315.22410.lehrig@t-online.de> Message-ID: <5.1.1.6.0.20021010094849.03129440@pop.biz.rr.com> > > Hi Rainer > > > Which version of CMake are you using (including patch level). > > Which version of Tcl/Tk is provided by Suse 8.1 ? > >I will answer to my own question :) >I checked Suse web site, this Linux distrib comes with Tcl/Tk 8.4. >CMake won't support it until you use the CVS version. >As a matter of fact, you will have to use VTK CVS too. Rainer, if you are willing to experiment, we can try the following. Keep using VTK 4.0, and your current CMake (is it a release ?) and try any of those: a) edit the top VTK/CMakeList.txt file and add *at the top*: ADD_DEFINITIONS( -DUSE_NON_CONST -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK ) or the less intrusive b) Run your favorite CMake cache editor (i.e. CMakeSetup, or ccmake), show the advanced values, and add the above flags to any of those (if they exist): CMAKE_CXX_FLAGS CMAKE_C_FLAGS Thus, your CMAKE_CXX_FLAGS will probably look like: -g -O2 -DUSE_NON_CONST -DUSE_COMPOSITELESS_PHOTO_PUT_BLOCK Keep me posted if any of those work -- Sebastien Barre From eric at ece.gatech.edu Thu Oct 10 10:52:27 2002 From: eric at ece.gatech.edu (Eric Pichon) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] small objects are not rendered Message-ID: Hi All, When trying to render many objects, VTK will discard those that are too small and too far (even though they are still much bigger than one pixel). I understand that this makes sense in many cases but it is a problem for what I want to do (basically rendering hundreds of small spheres) and I did not manage to get VTK to render all the actors regardless of any optimization consideration. I set manually the clipping planes of the camera and I am not using vtkLODactors but regular vtkActors. Your help would be greatly appreciated ! Eric Pichon --- I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) It was compiled using gcc version 2.95.2. At startup VTK says : Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 From berk.geveci at kitware.com Thu Oct 10 11:21:26 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] small objects are not rendered In-Reply-To: References: Message-ID: <1034263286.14159.11.camel@caemlyn.kitwarein.com> I don't think VTK discriminates objects depending on their size/position (unless they are outside the clipping range). I have run into a similar problem with older versions of Mesa in the past. It is possible that the OpenGL library distributed with Sun drops small objects when rendering. I would recommend compiling Mesa 3.5 and using it instead of OpenGL to test whether this is the case. -Berk On Thu, 2002-10-10 at 10:52, Eric Pichon wrote: > Hi All, > > When trying to render many objects, VTK will discard those that are too > small and too far (even though they are still much bigger than one pixel). > > I understand that this makes sense in many cases but it is a problem for > what I want to do (basically rendering hundreds of small spheres) and I > did not manage to get VTK to render all the actors regardless of any > optimization consideration. > > I set manually the clipping planes of the camera and I am not using > vtkLODactors but regular vtkActors. > > Your help would be greatly appreciated ! > > Eric Pichon > > --- > > I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) > > It was compiled using gcc version 2.95.2. > > At startup VTK says : > Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 > Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 > > _______________________________________________ > 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 haase at msg.ucsf.edu Thu Oct 10 12:59:44 2002 From: haase at msg.ucsf.edu (Sebastian Haase) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] MayaVi - more modules !? volume rendering References: <009601c26426$f4b25d20$3b45da80@rodan> Message-ID: <077701c2707e$6eaa7410$3b45da80@rodan> Hi all, Hi Prabhu ! I'm working here in the Macromolecular Structure Group at UCSF (San Francisco) and I recently discovered MayaVI - Very nice program !! Since our data sets (optical and electronical microscopy data stacks) are rather "fuzzy" we would prefer volume rendering over surface rendering. 1) Are there new modules being implemented for mayavi ? Maybe "Volume Rendering" ;-) I read the documentation for mayavi and thought it shouldn't be that hard to convert e.g. the iso-surface module into a volume rendering module, since VTK supports both equally well, right? 2) I'm just curious how the "scalar cut plane" is implemented? Doesn't it convert the viewed data into a 2D-texture and is therefore an "identical" view of what a "standard" z-section view looks like (if the cut-plane is perpendicular to the z-axis, of course) ? 3) How do I change the used look-up table? I realized that a vtk-file contains a line that reads "LOOKUP_TABLE default" - what else is there besides "default" ? Also the mayavi example directory contains a ".lut" file - how do I use that? Thanks again for the nice work? Sebastian Haase From haase at msg.ucsf.edu Thu Oct 10 13:25:05 2002 From: haase at msg.ucsf.edu (Sebastian Haase) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux References: <009601c26426$f4b25d20$3b45da80@rodan> Message-ID: <078b01c27081$f9433aa0$3b45da80@rodan> Hi VolumePro board users ! I got VTK 4.0 now compiled (with volumePro 1000 support). The trick was that I inserted a "#inlcude" line in ./Rendering/vtkVolumeProMapper.h : #include Which as I thing resolved a "namespace' issue that got introduced with a recent change in the VolumePro source. BUT: now, how do I get e.g. the "volProt" sample program to use my board ? Is there environment variable to be set ? Or does it maybe not work because of perspective projection while the board only supports orthogonal !? Thanks, Sebastian ----- Original Message ----- From: "Sebastian Haase" To: Sent: Tuesday, September 24, 2002 5:03 PM Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > Hi Folks, > I'm trying to get started with VTK ! > We have a VolPro1000 board - so I got the VTK source , ccmake and turned the > VolPro1000 option on. > I had to create a directory named 'vli3' and under that a directory > 'include' > to put the header file 'vtk3.h' into that . So finally I told ccmake that > my header file is in > '/jws18/lehuaStuff/vli3/include/' > When I do a make I get ( maybe after 30 min. or so) > these compiler errors complaining about e.g. VLIContext defined both in a > VTK-header file and in the vli3.h file which came with the VolumePro1000 > board. : > From anast.jm at pg.com Thu Oct 10 14:24:30 2002 From: anast.jm at pg.com (anast.jm@pg.com) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux Message-ID: Sebastien, You just need to switch to the vtkVolumeProMapper from the vtkVolumeRayCastMapper. If you built tcl wrapping I can send you a short volProt script....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Sebastian Haase" @public.kitware.com on 10/10/2002 10:25 AM MST "Sebastian Haase" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux Sent by: vtkusers-admin@public.kitware.com 10/10/2002 01:25 PM Hi VolumePro board users ! I got VTK 4.0 now compiled (with volumePro 1000 support). The trick was that I inserted a "#inlcude" line in ./Rendering/vtkVolumeProMapper.h : #include Which as I thing resolved a "namespace' issue that got introduced with a recent change in the VolumePro source. BUT: now, how do I get e.g. the "volProt" sample program to use my board ? Is there environment variable to be set ? Or does it maybe not work because of perspective projection while the board only supports orthogonal !? Thanks, Sebastian ----- Original Message ----- From: "Sebastian Haase" To: Sent: Tuesday, September 24, 2002 5:03 PM Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > Hi Folks, > I'm trying to get started with VTK ! > We have a VolPro1000 board - so I got the VTK source , ccmake and turned the > VolPro1000 option on. > I had to create a directory named 'vli3' and under that a directory > 'include' > to put the header file 'vtk3.h' into that . So finally I told ccmake that > my header file is in > '/jws18/lehuaStuff/vli3/include/' > When I do a make I get ( maybe after 30 min. or so) > these compiler errors complaining about e.g. VLIContext defined both in a > VTK-header file and in the vli3.h file which came with the VolumePro1000 > board. : > _______________________________________________ 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 will.schroeder at kitware.com Thu Oct 10 15:02:44 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] VTK Course at IEEE Visualization 2002 in Boston Message-ID: <5.1.1.6.0.20021010150108.02f0f448@pop.biz.rr.com> Hi Folks- This is an announcement for a VTK Course at the IEEE Visualization Conference in Boston on October 27 at special conference rates. See http://www.kitware.com/products/ieeevis2002vtkcourse.html for the announcement. Will ------------------------------ Kitware is offering a special 1-day VTK course at the IEEE Visualization 2002 Conference (http://vis.computer.org/vis2002/) on Sunday October 27, 2002. The course will cover the fundamentals of VTK 4.0 including system organization; the visualization pipeline; key filters and how to use them; surface, image, and volume rendering; and methods to interface your data to VTK. The course will be taught hands-on, students are encouraged to bring a laptop computer and work through the exercises during class. Attendees will receive course notes and a VTK User's Guide. This course is offered at a special conference price of $350 for the day ($250 for students). To register for this course, please contact Kitware at kitware@kitware.com, or via phone at 518-371-3971. The attached registration form (http://www.kitware.com/products/IeeeRegistrationForm.pdf) may also be completed and faxed to 518-371-3971. Payment may be via credit card (MasterCard, Visa, or American Express) or check. Contact Kitware for information regarding payment via purchase order. Please register early, seating is limited. Come to the course and then enjoy the conference! IEEE Visualization is the premier visualization conference in the world today. This year the conference will be held in Boston, MA, USA from October 27 through November 1. At the conference you can meet many of the developers and companies creating visualization technology. A special 3-day exhibition (Kitware is a Gold Supporter) offers the chance to see and try the latest in visualization technology. Two special mini-conferences on volume visualization (VolVis 2002 http://www.cs.sunysb.edu/~volvis02/) and information visualization (InfoVis 2002 http://www.infovis.org/infovis2002/) are also offered that same week. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/20021010/54b509fa/attachment.htm From vtk_replies at yahoo.com Thu Oct 10 17:27:29 2002 From: vtk_replies at yahoo.com (vtk replies) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] RE: deriving my own class from vtkActor In-Reply-To: <20021009162102.7595.70631.Mailman@public.kitware.com> Message-ID: <20021010212729.26224.qmail@web21510.mail.yahoo.com> Hi, I ran into a similar problems with deriving my own classes from vtk classes - it turned out that when I created my child class instance, the parent class variables were not intialized. These variables were used in some of the functions in the parent class that I wanted to use. Since I use vtk3.2, I dont know what are the variables in vtkActor class that need initialization in vtk4.0 [The following is an overkill, but it is just another way of doing things - (the disadvantages of doing it are having to re-run config , making changes to lib, and possible memory leaks - not sure - there are probably better ways- if at all nothing, someone will point to simpler way to you after seeing my elaborate mail :)) ). (1) put the additional function, eg., fun1() , that you wish to have in your derived class as a Virtual function in the vtkActor class. (2) then, define the fun1() in the derived class to do what you want it to do. (3) define the New() function in your derived class. (4) in your derived class constructor call the vtkActor() contstructor with appropriate values for intializing any variables in the class - this will properly instantiate any vtkActor class variables. (5) you probably already have a destructor for your derived class in place. (5) for destroying instances of your derived class, call the Delete() method ( since u created the derived class using the New() method in vtk). It should ( probably not cause any mem leaks :) ) call delete() of vtkActor class and then finally delete your class instance too. (6) in the Makefile.in of the appropriate directory, add vtkActor to the list of Abstract classes (7) add your derived class to the list of Concrete classes (8) SAVE all other files that you have changed and your own files to a different dir. (9) re-run config with your own options and make to integrate your class into the library. ] good luck ! cheers, Joseph. --- vtkusers-request@public.kitware.com wrote: > Send vtkusers mailing list submissions to > vtkusers@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@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of vtkusers digest..." > > > Subject: RE: [vtkusers] deriving my own class from > vtkActor > From: "Charl P. Botha" > To: vtkusers@public.kitware.com > Date: 09 Oct 2002 15:48:53 +0200 > > On Wed, 2002-10-09 at 15:29, Jerome, Ron wrote: > > I ran into the same problem, I derived my class > from vtkOpenGLActor instead > > and it worked fine. > > As far is I know, this is not The Right Way(tm) if > you want to add > functionality in a generic fashion. This would mean > that your class can > only work on OpenGL targets. A better way would be > to derive from > vtkActor and also CONTAIN an instance of vtkActor as > member that can be > used to perform rendering. The contained vtkActor > will specialise (due > to the object factories) as per usual. > > > Ron Jerome > > Institute for Chemical Process and > > Environmental Technology > > National Research Council Canada > > 613-993-5346 > > > > > > >-----Original Message----- > > >From: Steffen Oeltze > [mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE] > > >Sent: Wednesday, October 09, 2002 6:00 AM > > >To: Vtkusers (E-mail) > > >Subject: [vtkusers] deriving my own class from > vtkActor > > > > > > > > >Dear VTK-users, > > > > > >I have tried to derive my own class from vtkActor > using the following > > >code: > > > > > >class FIB_TRACK : public vtkActor > > >{ > > >public: > > > FIB_TRACK(double [3], double [3], bool); > > > ~FIB_TRACK(); > > >.... > > >} > > > > > >For creating a new object I use: > > > > > >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, > dims, true); > > > > > >Then, I construct the rendering pipeline, add the > actor to the > > >renderer and render the window but nothing > happens. Is there > > >anyone who can help me ? > > > > > >Regards, > > >Steffen > > >_______________________________________________ > > >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 > > > > -- > charl p. botha http://cpbotha.net/ > http://visualisation.tudelft.nl/ > __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From haase at msg.ucsf.edu Thu Oct 10 19:53:28 2002 From: haase at msg.ucsf.edu (Sebastian Haase) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux References: Message-ID: <08b501c270b8$3bc16a60$3b45da80@rodan> Thanks a lot - now I know at least that it works. Even though I have the feeling that on a different computer where we have a NVidia GForce4 Ti video card installed the corresponding sample (with 2D texture, I think) runs maybe faster !? The computer with the volumepro board has no hardware OpenGL support (yet). Would that help ? My understanding was that the VolumePro board works with a "different scheme" anyway. Thanks again, Sebastian ----- Original Message ----- From: To: "Sebastian Haase" Sent: Thursday, October 10, 2002 12:55 PM Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux > > Seb, yes, but you can create a VolumeProMapper and query to see if the board > exists, if not you can load a raycastmapper instead. I am not sure what happens > if you create a VolumeProMapper and no board exists if it will default into a > RaycastMapper or?? Interesting experiment. Attached is a simple script with > some comments....john > > (See attached file: SimpleRC_VolPro or RC wStereo.tcl) > > > > Internet Mail Message > Received from host: msg.ucsf.edu > [128.218.69.41] > > > > From: "Sebastian Haase" on 10/10/2002 12:04 PM MST > > "Sebastian Haase" To: John Anast-JM/PGI@PGI > Cc: > Subject: Re: [vtkusers] VTK 4.0 with > VolumePro support on Linux > 10/10/2002 03:04 PM > > > > > > > Thanks, > if you could send me a running sample that would be perfect. (I am building > tcl wrapper) > > Does that mean the user-program (like _my_ code) has to know if there is a > VolumePro board > installed and then use different classes than what I would use normally? > > - Sebastian > > > ----- Original Message ----- > From: > To: > Sent: Thursday, October 10, 2002 11:24 AM > Subject: Re: [vtkusers] VTK 4.0 with VolumePro support on Linux > > > > > > Sebastien, > > > > You just need to switch to the vtkVolumeProMapper from the > > vtkVolumeRayCastMapper. If you built tcl wrapping I can send you a short > volProt > > script....john > > > > > > > > Internet Mail Message > > Received from host: public.kitware.com > > [24.97.130.19] > > > > > > > > From: "Sebastian Haase" @public.kitware.com on > 10/10/2002 > > 10:25 AM MST > > > > "Sebastian Haase" To: > > > @public.kitware.com Cc: (bcc: John > Anast-JM/PGI) > > Subject: Re: [vtkusers] > VTK 4.0 with > > VolumePro support on Linux > > Sent by: > > vtkusers-admin@public.kitware.com > > 10/10/2002 01:25 PM > > > > > > > > > > > > > > Hi VolumePro board users ! > > I got VTK 4.0 now compiled (with volumePro 1000 support). > > The trick was that I inserted a "#inlcude" line in > > ./Rendering/vtkVolumeProMapper.h : > > #include > > Which as I thing resolved a "namespace' issue that got introduced with a > > recent change > > in the VolumePro source. > > > > BUT: now, how do I get e.g. the "volProt" sample program to use my board ? > > Is there environment variable to be set ? Or does it maybe not work > because > > of > > perspective projection while the board only supports orthogonal !? > > > > Thanks, > > Sebastian > > > > > > > > > > > > > > ----- Original Message ----- > > From: "Sebastian Haase" > > To: > > Sent: Tuesday, September 24, 2002 5:03 PM > > Subject: [vtkusers] VTK 4.0 with VolumePro support on Linux > > > > > > > Hi Folks, > > > I'm trying to get started with VTK ! > > > We have a VolPro1000 board - so I got the VTK source , ccmake and turned > > the > > > VolPro1000 option on. > > > I had to create a directory named 'vli3' and under that a directory > > > 'include' > > > to put the header file 'vtk3.h' into that . So finally I told ccmake > that > > > my header file is in > > > '/jws18/lehuaStuff/vli3/include/' > > > When I do a make I get ( maybe after 30 min. or so) > > > these compiler errors complaining about e.g. VLIContext defined both in > a > > > VTK-header file and in the vli3.h file which came with the VolumePro1000 > > > board. : > > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: < > > http://public.kitware.com/cgi-bin/vtkfaq> > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > _______________________________________________ > > This 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 nsmith5 at gl.umbc.edu Thu Oct 10 20:48:36 2002 From: nsmith5 at gl.umbc.edu (Nathan Smith) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] Problem with updating Message-ID: I've been toying with this problem endlessly, and it seems I'm nowhere nearer to the solution than when I began. Basically, the rendering program has an input which changes over time, and that input is plugged into a vtkProgrammableGlyphFilter which is then plugged into a renderer. When I initialize the source, everything is fine and dandy, but when I add elements onto the source (with the same 'old' elements in the source), they don't get displayed. I suspect that this is something to do with an UpdateExtent not being right, although I lack experience in this area. Anyone have any ideas? Thanks in advance Nate From nsmith5 at gl.umbc.edu Thu Oct 10 20:58:09 2002 From: nsmith5 at gl.umbc.edu (Nathan Smith) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] Problem with updating In-Reply-To: Message-ID: Lemme rephrase this because I narrowed down the problem: I do: set vtk(glypher) [vtkProgrammableGlyphFilter renderer] $vtk(glypher) SetGlyphMethod glypherProc After the data is updated, I checked vtk(glypher) right before any implicit calls to glypherProc, and it contained the right number of source points (7). But glypherProc is only called 4 times (the previous number of source points). So something between the renderwindow and renderer and glypherProc is not noticing that there is an updated source. Anyone know where this could lie? Thanks Nate On Thu, 10 Oct 2002, Nathan Smith wrote: > I've been toying with this problem endlessly, and it seems I'm nowhere > nearer to the solution than when I began. Basically, the rendering program > has an input which changes over time, and that input is plugged into a > vtkProgrammableGlyphFilter which is then plugged into a renderer. > > When I initialize the source, everything is fine and dandy, but when I add > elements onto the source (with the same 'old' elements in the source), > they don't get displayed. I suspect that this is something to do with an > UpdateExtent not being right, although I lack experience in this area. > Anyone have any ideas? Thanks in advance > > Nate > > > _______________________________________________ > 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.J.H.de_Koning at lumc.nl Fri Oct 11 02:49:21 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] small objects are not rendered In-Reply-To: Message-ID: 10-10-02 16:52:27, Eric Pichon wrote: Try removing the default culler from the renderer. It worked for me. See also mails from aug. 2002 regarding this subject >Hi All, > >When trying to render many objects, VTK will discard those that are too >small and too far (even though they are still much bigger than one pixel). > >I understand that this makes sense in many cases but it is a problem for >what I want to do (basically rendering hundreds of small spheres) and I >did not manage to get VTK to render all the actors regardless of any >optimization consideration. > >I set manually the clipping planes of the camera and I am not using >vtkLODactors but regular vtkActors. > >Your help would be greatly appreciated ! > >Eric Pichon > >--- > >I am using VTK 4.0 on a Sun Ultra 80 (SunOS 5.7 sun4u sparc SUNW) > >It was compiled using gcc version 2.95.2. > >At startup VTK says : >Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/oglSUNWcore.so.4 >Using: /usr/openwin/platform/SUNW,Ultra-80/lib/GL/libvis.so.1 > >_______________________________________________ >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 T.Hutton at eastman.ucl.ac.uk Fri Oct 11 05:42:01 2002 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] vtkPointLocator & Collision avoidance In-Reply-To: <20021010131753.80686.qmail@web8203.mail.in.yahoo.com> Message-ID: <5.1.0.14.0.20021011103629.033ec3e0@144.82.123.1> Hi Siddu, Try putting BuildLocator before the call to FindClosestPointsWithinRadius. (You may also need to do a STLReader->Update() before the call to BuildLocator.) For collision detection a thorough approach would be to tetrahedralize if necessary all your objects so they are represented as solids (not just as surface meshes) and then use vtkCellLocator::FindClosestPoint to detect if each point is inside a cell. Good luck, Tim. At 14:17 10/10/2002 +0100, Mysore Siddu wrote: > Hi vtk Users, > > I have two questions: > > > >1. From cellLocator->IntersectWithLine I compute the intersection >point and its cellID on the STL file. Now I want to find all the points >within a radius around the intersection point. I tried using >vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) >But I was not successful with the following code: > > float p1[] = {2.0, 1.0, 3.0}; > >float rad = 2.0; > >vtkIdList *res; > >// Build a locator > >vtkPointLocator *pointLocator = vtkPointLocator::New(); > >pointLocator->SetDataSet(STLReader->GetOutput()); > >pointLocator->FindPointsWithinRadius(rad,p1,res); > >pointLocator->BuildLocator(); > > I dont know where I am goofing up the code. As soon as Execute I am > getting error as Memory cant be assigned error I debugged the code it is > stopping at vtkIdList.h // Description: > >// Reset to an empty state. > >void Reset() {this->NumberOfIds = 0;}; > >*/ > > > > > >2. Is there any vtk class, which I can use for collision avoidance? >Basically I have two STL files and I want to check the collision around a >particular point. > > > >Any Help in this regard is very well appreciated. > > Best Regards > >Siddu. --------------------------------------------------------------------------- Tim Hutton, http://www.eastman.ucl.ac.uk/~dmi/MINORI Research Fellow & PhD student, T.Hutton@eastman.ucl.ac.uk MINORI Project, Biomedical Informatics Unit, Tel: [+44] (0)20 7915 2344 Eastman Dental Institute, UCL, Fax: [+44] (0)20 7915 2303 256 Gray's Inn Road, London WC1X 8LD, UK Mobile: [+44] (0)7748 678 832 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. From simon.chatelain at epfl.ch Fri Oct 11 06:06:22 2002 From: simon.chatelain at epfl.ch (Simon Chatelain) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] one again unexpected signal in libX11 Message-ID: Hello, i am sorry to insist, but i really need help. my problem is that i need to add a vtkRenderer in the vtkRenderWindow of the class vtkPanel after the window containing the vtkPanel is showed. With windows there is no problem, but with linux there is an error in the libX11.so. in attachement there is a sample application who reproduce this problem, in the class MySimpleVTk, there is this code //here works //panel.addView(v); frame.pack(); frame.setVisible(true); //here doesn't work panel.addView(v); if i change the order of these instructions, the application work or not. if someone can try this and at least say me if he has the same behaviour. it can help me. Thanks Simon Chatelain -------------- next part -------------- A non-text attachment was scrubbed... Name: MySimpleVTK.java Type: application/octet-stream Size: 1007 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021011/e0d7660a/MySimpleVTK.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: SimplePanel.java Type: application/octet-stream Size: 940 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021011/e0d7660a/SimplePanel.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: View.java Type: application/octet-stream Size: 662 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021011/e0d7660a/View.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkPanel.java Type: application/octet-stream Size: 9571 bytes Desc: not available Url : http://public.kitware.com/pipermail/vtkusers/attachments/20021011/e0d7660a/vtkPanel.obj From dahuang at skltr2.mech.pku.edu.cn Fri Oct 11 06:48:27 2002 From: dahuang at skltr2.mech.pku.edu.cn (dahuang) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] DividingCubes or MarchingCubes? Message-ID: <004dc4153100ba2MAIL@smtp.mech.pku.edu.cn> Hi, I am comparing various algorithms to reconstruct my MRI slices.I have used the vtkMarchingCubes algorithm and it worked well, only that the speed is a bit slow.Now I am trying the vtkDividingCubes algorithm, but either it consumes too much memory, or I can not get the 3d image in the render window. I think it is maybe caused by the inappropriate parameters I chose.I need your suggestions. My data: Pixel Spacing: 0.666016,0.666016;Slice Thickness: 2.500000; My Parameter(showing no image) Distance(0.5);Increment(10); ? ?Default Parameter(Value = 0.0;Distance = 0.1;Increment = 1;) ->Memory collapse ???? ????????dahuang ????????dahuang@skltr2.mech.pku.edu.cn ??????????2002-10-11 From moitinho at civil.ist.utl.pt Fri Oct 11 07:56:54 2002 From: moitinho at civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Mon May 24 19:15:55 2004 Subject: [vtkusers] Oriented Tensor Glyphs Message-ID: <200210111256.54810.moitinho@civil.ist.utl.pt> Hello I extended the vtkTensorGlyph class, so that the glyph is repeated and oriented at each point, for each eigenvector. I hope that the result is explained by the examples that are available at http://www.civil.ist.utl.pt/~moitinho/vtk The behaviour of the object is controlled by two new Boolean variables ThreeGlyphs and Symmetric. When they are false the object behaves as vtkTensorGlyph. If ThreeGlyphs is true three glyphs, which are scaled according to the eigenvalue along the main axis (the one that after rotation corresponds to the eigenvector), are drawn. If Symmetric is true then the glyph (or the glyphs) is/are mirrored, i.e. 2 or 6 glyphs are produced. In the examples both variables are true. This behaviour is usefull in solid mechan