[vtkusers] Ynt: vtkusers digest, Vol 1 #653 - 12 msgs
Sedat DOGAN2
d_sedat at hotmail.com
Wed Nov 8 17:24:47 EST 2000
Hi
I advise you to buy all the VTK documentation. I bought both of two books. I
paid 102$ for VTK User's Guide including shipping. And I think that it
worths spending money. Because, thus you can learn VTK in 2 weeks. And I am
in Turkey now. I paid 42$ for shipping. But the book reached me by FedEX in
two days.
So I advise you to buy both of the books.
Sedat DOGAN
Ph.D Candidate
TURKEY
----- Original Message -----
From: <vtkusers-request at public.kitware.com>
To: <vtkusers at public.kitware.com>
Sent: Thursday, November 08, 2001 5:06 PM
Subject: vtkusers digest, Vol 1 #653 - 12 msgs
> Send vtkusers mailing list submissions to
> vtkusers at public.kitware.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://public.kitware.com/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> vtkusers-request at public.kitware.com
>
> You can reach the person managing the list at
> vtkusers-admin at public.kitware.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
> 1. interactive adjustment of volume rendering transfer function
(anast.jm at pg.com)
> 2. Re: "VTK Users guide" - worth it? (Morten H Pedersen)
> 3. Argh ~~ FindCell (Terence Lim)
> 4. Profiling VTK pipelines in Java (Oliver Vidovic)
> 5. For people at kitware : ReleaseDataFlagOn question (Naveen Kumar
Polapally)
> 6. Re: For people at kitware : ReleaseDataFlagOn question (Berk Geveci)
> 7. vtkTKRenderWidget clipping volume render (VTK) (anast.jm at pg.com)
> 8. Re: Argh ~~ FindCell (John Biddiscombe)
> 9. Directory Local in VTK4.0 ? (Sylvain Jaume)
> 10. Re: For people at kitware : ReleaseDataFlagOn question (Naveen Kumar
Polapally)
> 11. SetFilePrefix crashes application (Rene Tschirley)
> 12. RE: SetFilePrefix crashes application (Ken Martin)
>
> --__--__--
>
> Message: 1
> To: "Vtkusers at Public. Kitware. Com" <vtkusers at public.kitware.com>
> From: anast.jm at pg.com
> Date: Wed, 7 Nov 2001 13:32:37 -0500
> Subject: [vtkusers] interactive adjustment of volume rendering transfer
function
>
>
> I'm looking for a snippet of tcl code to interactively adjust the color
and
> opacity of a volume rendering....anything out there?? thanks, john
>
> John Anast
> Procter & Gamble Co
> Cincinnati, OH - USA
>
>
> --__--__--
>
> Message: 2
> Reply-To: "Morten H Pedersen" <mhp at dadlnet.dk>
> From: "Morten H Pedersen" <mhp at dadlnet.dk>
> To: <vtkusers at public.kitware.com>
> Date: Wed, 7 Nov 2001 20:18:11 +0100
> Subject: [vtkusers] Re: "VTK Users guide" - worth it?
>
> Yes,
>
> I found both the VTK Users Guide and the VTK - an object oriented =
> approach to 3D graphics necessary to get a grip of VTK. The users guide =
> uses mostly TCL and the VTK book uses C++ (like I do). The users guide =
> (almost) is up to date with regards to the class hierarchy (for instance =
> the object factory model is not implemented in the OOP book - I think), =
> whereas the OOP book makes a far better introduction to the principles =
> of 3D graphics AND VTK's way of handling that.
>
> So my advice - buy both. If you look at what you get for free (VTK) it =
> is definitely worth spending some money on the documentation.
>
> Sincerely,
>
> Morten H Pedersen, M.D.
>
> Department of Ultrasound
> Herlev Hospital
> University of Copenhagen
> Herlev Ringvej 75
> DK-2730 Herlev, DENMARK
>
> Phone: (+45) 44 88 32 40
> Direct : (+45) 44 88 47 03
> Fax: (+45) 44 94 80 09
> Mobile: (+45) 28 58 06 70
> DTU: (+45) 45 25 37 03 (wednesdays)
> E-mail: mhp at dadlnet.dk
> ----- Original Message -----=20
> From: "Stephane M." <sequence004 at yahoo.com>
> Newsgroups: vtk.mailinglist
> To: <vtkusers at public.kitware.com>
> Sent: Tuesday, April 18, 2000 3:15 PM
> Subject: "VTK Users guide" - worth it?
>
>
> > Hi
> >=20
> > I'm wondering about the VTK users guide. I have
> > already the Visualization book, this is maybe a good
> > book about visualization but absolutely not a complete
> > VTK users guide.
> >=20
> > So... the official VTK guide is 60$. It is a little
> > expensive for 300 pages. And more, the shipping for
> > Canada is 35$!!! Amazon.com charges 6$ for the
> > shipping of a book!
> >=20
> > With thoses high prices, i'll defer my purchase until
> > someone convince me that it is worth the trouble.
> >=20
> > -Is this book a good reference?
> > -If i want to "hack" a little in VTK (to use some
> > openGL primitives unavailable via the VTK API), is
> > there some information about that?
> >=20
> > If not... is there any good web based documentation
> > and examples?
> >=20
> > __________________________________________________
> > Do You Yahoo!?
> > Send online invitations with Yahoo! Invites.
> > http://invites.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>
> > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> > <majordomo at public.kitware.com>. For help, send message body containing
> > "info vtkusers" to the same address.
> > --------------------------------------------------------------------
> >=20
>
>
> --__--__--
>
> Message: 3
> Reply-To: <tlim at mda.ca>
> From: "Terence Lim" <tlim at mda.ca>
> To: <vtkusers at public.kitware.com>
> Date: Wed, 7 Nov 2001 12:42:28 -0800
> Subject: [vtkusers] Argh ~~ FindCell
>
> Hi vtkusers,
>
> Thank you to Berk and Amy for your helpful advice. I am currently using
the
> findcell and it seems that this function does not always work on my mesh.
> Is there a method that locates a cell based on the shortest distance
between
> a point and the plane created by the vertices of that cell?
>
> Thanks again,
>
> Terence Lim
>
>
> --__--__--
>
> Message: 4
> From: "Oliver Vidovic" <ovidovic at medipattern.com>
> To: <vtkusers at public.kitware.com>
> Date: Wed, 7 Nov 2001 16:53:48 -0500
> Subject: [vtkusers] Profiling VTK pipelines in Java
>
>
> Hi,
>
> I have some vtk code written in Java, and I need to profile it.
> I know that I can use some profiling tool (java -prof, JProbe, etc.), but
> is there a way to hook some custom written code into the pipeline and find
> out how long does it take to execute each element in the pipeline?
> I think the SetStartMethod, SetEndMethod could be used, but I don't know
> what should the parameters be set to. Java documentation is somewhat
scarce
> on the subject. 8-D
>
>
> thanks
> oliver
>
>
> --__--__--
>
> Message: 5
> From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> To: vtkusers at public.kitware.com
> Date: Wed, 07 Nov 2001 22:34:27
> Subject: [vtkusers] For people at kitware : ReleaseDataFlagOn question
>
> hi all,
> For some time now i have been trying to use ReleaseData feature in my
> parallel program but couldn't do so. Now i found out that the problem is
not
> with VTK but it is with MPI. It seems we cannot release the memory
allocated
> after MPI::Init. I have a simple program here you can check the memory
> consumption on your machine .
>
> I think some thing should be done about it because the release data
feature
> is most useful in case of large datasets and parallel programs.
>
>
> #include <iostream.h>
> #include "mpi++.h"
> #include <unistd.h>
> #include <stdlib.h>
>
> int
> main(int argc, char *argv[])
> {
> MPI::Init(argc, argv);
>
> int rank = MPI::COMM_WORLD.Get_rank();
> int size = MPI::COMM_WORLD.Get_size();
>
> int *Ptr=new int[10000000];
>
> for(int i=0;i<10000000;i++) Ptr[i]=0;
> cout<<" allocated "<<endl;
> sleep(15);
>
> delete Ptr;
> cout<<" just deleted "<<endl;
> sleep(15);
>
> cout << "Hello World! I am " << rank << " of " << size << endl;
>
> MPI::Finalize();
> }
>
>
> Thanks,
> naveen.
>
>
>
>
> >From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> >To: vtkusers at public.kitware.com
> >Subject: Re: [vtkusers] ReleaseDataFlagOn question
> >Date: Tue, 06 Nov 2001 22:37:59
> >
> >
> >hi,
> >
> >For some days now i have been complaining that ReleaseData feature is not
> >working for graphical pipeline while it is working for imaging pipeline.
No
> >wonder no one answered, because i was wrong.
> >
> >
> >I am rephrasing my question,for a pipeline shown below the release data
> >machanism is working. But when i parallelize it it does not work.
> >
> >vtkImageReader *reader = vtkImageReader::New();
> >reader->SetDataByteOrderToBigEndian();
> >reader->SetDataExtent(0, 511, 0,511,Mainzmin,Mainzmax);
> >reader->SetFilePrefix("/home/devel/vtk/vtkdata/vfem/slice");
> >reader->ReleaseDataFlagOn();
> >reader->SetDataSpacing(1, 1, 1);
> >
> >
> >vtkSynchronizedTemplates3D *iso = vtkSynchronizedTemplates3D::New()
> >iso->SetInput(reader->GetOutput());
> >iso->SetValue(0,600);
> >iso->Update();
> >
> >I narrowed my problem to the method shown below.
> >
> >vtkShortArray::~vtkShortArray()
> >{
> > if ((this->Array) && (!this->SaveUserArray))
> > {
> > delete [] this->Array;
> > }
> > delete [] this->Tuple;
> >}
> >
> >Both the parallel and sequential executions call this method and both of
> >them delete the this->Array. This is the array which holds all the data
of
> >the output of vtkImageReader. But only in case of sequential program i
see
> >a reduction of memory usage, while in case of parallel program i don't
see
> >any change in memory usage. I am unable to explain this as the memory
gets
> >allocated in vtkShortArray::Allocate method into Array when you delete
it,
> >it has to free the memory.
> >
> >
> >Any help is appreciated.
> >
> >
> >
> >thanks,
> >naveen.
> >
> >_________________________________________________________________
> >Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --__--__--
>
> Message: 6
> From: "Berk Geveci" <berkgeveci at hotmail.com>
> To: naveenpkumar at hotmail.com, vtkusers at public.kitware.com
> Subject: Re: [vtkusers] For people at kitware : ReleaseDataFlagOn question
> Date: Wed, 07 Nov 2001 17:49:15 -0500
>
>
> Which MPI implementation is this ? On which platform ?
>
> -Berk
>
>
> >From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> >To: vtkusers at public.kitware.com
> >Subject: [vtkusers] For people at kitware : ReleaseDataFlagOn question
> >Date: Wed, 07 Nov 2001 22:34:27
> >
> >hi all,
> >For some time now i have been trying to use ReleaseData feature in my
> >parallel program but couldn't do so. Now i found out that the problem is
> >not
> >with VTK but it is with MPI. It seems we cannot release the memory
> >allocated
> >after MPI::Init. I have a simple program here you can check the memory
> >consumption on your machine .
> >
> >I think some thing should be done about it because the release data
feature
> >is most useful in case of large datasets and parallel programs.
> >
> >
> >#include <iostream.h>
> >#include "mpi++.h"
> >#include <unistd.h>
> >#include <stdlib.h>
> >
> >int
> >main(int argc, char *argv[])
> >{
> > MPI::Init(argc, argv);
> >
> > int rank = MPI::COMM_WORLD.Get_rank();
> > int size = MPI::COMM_WORLD.Get_size();
> >
> > int *Ptr=new int[10000000];
> >
> > for(int i=0;i<10000000;i++) Ptr[i]=0;
> > cout<<" allocated "<<endl;
> > sleep(15);
> >
> > delete Ptr;
> > cout<<" just deleted "<<endl;
> > sleep(15);
> >
> > cout << "Hello World! I am " << rank << " of " << size << endl;
> >
> > MPI::Finalize();
> >}
> >
> >
> >Thanks,
> >naveen.
> >
> >
> >
> >
> >>From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> >>To: vtkusers at public.kitware.com
> >>Subject: Re: [vtkusers] ReleaseDataFlagOn question
> >>Date: Tue, 06 Nov 2001 22:37:59
> >>
> >>
> >>hi,
> >>
> >>For some days now i have been complaining that ReleaseData feature is
not
> >>working for graphical pipeline while it is working for imaging pipeline.
> >>No
> >>wonder no one answered, because i was wrong.
> >>
> >>
> >>I am rephrasing my question,for a pipeline shown below the release data
> >>machanism is working. But when i parallelize it it does not work.
> >>
> >>vtkImageReader *reader = vtkImageReader::New();
> >>reader->SetDataByteOrderToBigEndian();
> >>reader->SetDataExtent(0, 511, 0,511,Mainzmin,Mainzmax);
> >>reader->SetFilePrefix("/home/devel/vtk/vtkdata/vfem/slice");
> >>reader->ReleaseDataFlagOn();
> >>reader->SetDataSpacing(1, 1, 1);
> >>
> >>
> >>vtkSynchronizedTemplates3D *iso = vtkSynchronizedTemplates3D::New()
> >>iso->SetInput(reader->GetOutput());
> >>iso->SetValue(0,600);
> >>iso->Update();
> >>
> >>I narrowed my problem to the method shown below.
> >>
> >>vtkShortArray::~vtkShortArray()
> >>{
> >> if ((this->Array) && (!this->SaveUserArray))
> >> {
> >> delete [] this->Array;
> >> }
> >> delete [] this->Tuple;
> >>}
> >>
> >>Both the parallel and sequential executions call this method and both of
> >>them delete the this->Array. This is the array which holds all the data
of
> >>the output of vtkImageReader. But only in case of sequential program i
> >>see
> >>a reduction of memory usage, while in case of parallel program i don't
see
> >>any change in memory usage. I am unable to explain this as the memory
gets
> >>allocated in vtkShortArray::Allocate method into Array when you delete
it,
> >>it has to free the memory.
> >>
> >>
> >>Any help is appreciated.
> >>
> >>
> >>
> >>thanks,
> >>naveen.
> >>
> >>_________________________________________________________________
> >>Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
> >>
> >>_______________________________________________
> >>This is the private VTK discussion list.
> >>Please keep messages on-topic. Check the FAQ at:
> >><http://public.kitware.com/cgi-bin/vtkfaq>
> >>Follow this link to subscribe/unsubscribe:
> >>http://public.kitware.com/mailman/listinfo/vtkusers
> >
> >
> >_________________________________________________________________
> >Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --__--__--
>
> Message: 7
> To: vtkusers at public.kitware.com
> From: anast.jm at pg.com
> Date: Wed, 7 Nov 2001 18:49:04 -0500
> Subject: [vtkusers] vtkTKRenderWidget clipping volume render (VTK)
>
>
> I'm new to using vtkTKRenderWidget. If I drop my vtkRenderWindow into the
> widget, what was a good volume rendering now has what appears to be near
and far
> clipping planes active. I've snooped around the man pages but haven't
found
> anything yet. Any tips about getting rid of the clipping. It does it for a
> raycaster and the VolPro renders, thanks in advance...john
>
>
> --__--__--
>
> Message: 8
> Date: Thu, 08 Nov 2001 00:37:31 +0000
> To: <tlim at mda.ca>, <vtkusers at public.kitware.com>
> From: John Biddiscombe <jbiddiscombe at skippingmouse.co.uk>
> Subject: Re: [vtkusers] Argh ~~ FindCell
>
>
> >Thank you to Berk and Amy for your helpful advice. I am currently using
the
> >findcell and it seems that this function does not always work on my mesh.
> >Is there a method that locates a cell based on the shortest distance
between
> >a point and the plane created by the vertices of that cell?
>
> If you create cell normals for the mesh and then did a dot product between
> a test point and the normals, you ought to get the distance. You could
then
> search for the minimum resulting scalar...the Id would correspond to the
> cell...
>
> thinking aloud...
>
> JB
>
>
> --__--__--
>
> Message: 9
> Date: Thu, 8 Nov 2001 05:13:09 +0100 (MET)
> From: Sylvain Jaume <jaume at tele.ucl.ac.be>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] Directory Local in VTK4.0 ?
>
> Hello,
>
> There is no directory Local in VTK4.0 such as in VTK3.2.
> How to add and compile our own classes to VTK4.0?
>
> Thanks in advance.
> Sylvain
>
>
>
> --__--__--
>
> Message: 10
> From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> To: berkgeveci at hotmail.com, vtkusers at public.kitware.com
> Subject: Re: [vtkusers] For people at kitware : ReleaseDataFlagOn question
> Date: Thu, 08 Nov 2001 06:23:50
>
> I am using mpich-1.2.0 over clan on cluster running Redhat7.1.
>
>
> >From: "Berk Geveci" <berkgeveci at hotmail.com>
> >To: naveenpkumar at hotmail.com, vtkusers at public.kitware.com
> >Subject: Re: [vtkusers] For people at kitware : ReleaseDataFlagOn
question
> >Date: Wed, 07 Nov 2001 17:49:15 -0500
> >
> >
> >Which MPI implementation is this ? On which platform ?
> >
> >-Berk
> >
> >
> >>From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> >>To: vtkusers at public.kitware.com
> >>Subject: [vtkusers] For people at kitware : ReleaseDataFlagOn question
> >>Date: Wed, 07 Nov 2001 22:34:27
> >>
> >>hi all,
> >>For some time now i have been trying to use ReleaseData feature in my
> >>parallel program but couldn't do so. Now i found out that the problem is
> >>not
> >>with VTK but it is with MPI. It seems we cannot release the memory
> >>allocated
> >>after MPI::Init. I have a simple program here you can check the memory
> >>consumption on your machine .
> >>
> >>I think some thing should be done about it because the release data
> >>feature
> >>is most useful in case of large datasets and parallel programs.
> >>
> >>
> >>#include <iostream.h>
> >>#include "mpi++.h"
> >>#include <unistd.h>
> >>#include <stdlib.h>
> >>
> >>int
> >>main(int argc, char *argv[])
> >>{
> >> MPI::Init(argc, argv);
> >>
> >> int rank = MPI::COMM_WORLD.Get_rank();
> >> int size = MPI::COMM_WORLD.Get_size();
> >>
> >> int *Ptr=new int[10000000];
> >>
> >> for(int i=0;i<10000000;i++) Ptr[i]=0;
> >> cout<<" allocated "<<endl;
> >> sleep(15);
> >>
> >> delete Ptr;
> >> cout<<" just deleted "<<endl;
> >> sleep(15);
> >>
> >> cout << "Hello World! I am " << rank << " of " << size << endl;
> >>
> >> MPI::Finalize();
> >>}
> >>
> >>
> >>Thanks,
> >>naveen.
> >>
> >>
> >>
> >>
> >>>From: "Naveen Kumar Polapally" <naveenpkumar at hotmail.com>
> >>>To: vtkusers at public.kitware.com
> >>>Subject: Re: [vtkusers] ReleaseDataFlagOn question
> >>>Date: Tue, 06 Nov 2001 22:37:59
> >>>
> >>>
> >>>hi,
> >>>
> >>>For some days now i have been complaining that ReleaseData feature is
not
> >>>working for graphical pipeline while it is working for imaging
pipeline.
> >>>No
> >>>wonder no one answered, because i was wrong.
> >>>
> >>>
> >>>I am rephrasing my question,for a pipeline shown below the release data
> >>>machanism is working. But when i parallelize it it does not work.
> >>>
> >>>vtkImageReader *reader = vtkImageReader::New();
> >>>reader->SetDataByteOrderToBigEndian();
> >>>reader->SetDataExtent(0, 511, 0,511,Mainzmin,Mainzmax);
> >>>reader->SetFilePrefix("/home/devel/vtk/vtkdata/vfem/slice");
> >>>reader->ReleaseDataFlagOn();
> >>>reader->SetDataSpacing(1, 1, 1);
> >>>
> >>>
> >>>vtkSynchronizedTemplates3D *iso = vtkSynchronizedTemplates3D::New()
> >>>iso->SetInput(reader->GetOutput());
> >>>iso->SetValue(0,600);
> >>>iso->Update();
> >>>
> >>>I narrowed my problem to the method shown below.
> >>>
> >>>vtkShortArray::~vtkShortArray()
> >>>{
> >>> if ((this->Array) && (!this->SaveUserArray))
> >>> {
> >>> delete [] this->Array;
> >>> }
> >>> delete [] this->Tuple;
> >>>}
> >>>
> >>>Both the parallel and sequential executions call this method and both
of
> >>>them delete the this->Array. This is the array which holds all the data
> >>>of
> >>>the output of vtkImageReader. But only in case of sequential program i
> >>>see
> >>>a reduction of memory usage, while in case of parallel program i don't
> >>>see
> >>>any change in memory usage. I am unable to explain this as the memory
> >>>gets
> >>>allocated in vtkShortArray::Allocate method into Array when you delete
> >>>it,
> >>>it has to free the memory.
> >>>
> >>>
> >>>Any help is appreciated.
> >>>
> >>>
> >>>
> >>>thanks,
> >>>naveen.
> >>>
> >>>_________________________________________________________________
> >>>Get your FREE download of MSN Explorer at
> >>>http://explorer.msn.com/intl.asp
> >>>
> >>>_______________________________________________
> >>>This is the private VTK discussion list.
> >>>Please keep messages on-topic. Check the FAQ at:
> >>><http://public.kitware.com/cgi-bin/vtkfaq>
> >>>Follow this link to subscribe/unsubscribe:
> >>>http://public.kitware.com/mailman/listinfo/vtkusers
> >>
> >>
> >>_________________________________________________________________
> >>Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
> >>
> >>_______________________________________________
> >>This is the private VTK discussion list.
> >>Please keep messages on-topic. Check the FAQ at:
> >><http://public.kitware.com/cgi-bin/vtkfaq>
> >>Follow this link to subscribe/unsubscribe:
> >>http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --__--__--
>
> Message: 11
> From: Rene Tschirley <pooh at lava.cs.tu-berlin.de>
> Date: Thu, 8 Nov 2001 14:20:31 +0100
> To: VTK-List <vtkusers at public.kitware.com>
> Organization: Technical University of Berlin, Germany
> Subject: [vtkusers] SetFilePrefix crashes application
>
> Dear all,
>
>
> Now I decided that it is time to go on visualising with vtk3.2 and tried
> to upgrade some applications from 2.3 to 3.2. I'm quite worried about a
> problem with vtkVolume16Reader. My application uses:
>
> if (!reader)
> {
> reader = vtkVolume16Reader::New();
> reader->SetDataDimensions(size_x,size_y);
> reader->SetDataByteOrderToLittleEndian();
> reader->SetFilePrefix(inputfilename);
> reader->SetImageRange(from, to);
> reader->SetDataSpacing (spacing_x, spacing_y, spacing_z);
> reader->Update();
> }
>
> and runs perfectly with vtk2.3. Using vtk3.2 it crashes with a segv in
> either SetFilePrefix or SetImageRange. The gdb stack trace shows
>
> #0 0x403ca586 in
vtkPointSetToPointSetFilter::~vtkPointSetToPointSetFilter (
> this=0x8058970, __in_chrg=0) at vtkPointSetToPointSetFilter.cxx:63
> #1 0x40525e71 in vtkWarpLens::~vtkWarpLens (this=0x8058970,
__in_chrg=0)
> at vtkWarpLens.cxx:112
> #2 0x804cd1b in ReadVolume () at vol_analyse.cxx:1131
> #3 0x804aaa5 in main () at vol_analyse.cxx:232
> #4 0x40c196ef in __libc_start_main () from /lib/libc.so.6
>
> when SetImageRange crashes the application and
>
> #0 0x0 in ?? ()
> #1 0x804cd0a in ReadVolume () at vol_analyse.cxx:1130
> #2 0x804aaa5 in main () at vol_analyse.cxx:232
> #3 0x40c196ef in __libc_start_main () from /lib/libc.so.6
>
> if SetFilePrefix crashes it.
>
> I'm unsure if I missed something obvious or if I should patch the
> destructor in vtkPointSetToPointSetFilter.cxx.
>
>
> Thanks in advance,
> René
>
> --
> Dipl.-Inform. René Tschirley http://www.cs.tu-berlin.de/~pooh
> TU Berlin, Computer Graphics and Computer Assisted Medicine research group
>
> --__--__--
>
> Message: 12
> From: "Ken Martin" <ken.martin at kitware.com>
> To: "Rene Tschirley" <pooh at lava.cs.tu-berlin.de>,
> "VTK-List" <vtkusers at public.kitware.com>
> Subject: RE: [vtkusers] SetFilePrefix crashes application
> Date: Thu, 8 Nov 2001 10:01:52 -0500
>
> Hello Rene,
>
> From a quick look your code seems fine. My first guess would be that
> somehow some old object files, headers or libraries are getting mixed
> into the VTK 3.2 build (or execution in the case of shared libs) of
> your application. Volume16Reader was pretty much unchanged between 2.3
> and 3.2.
>
> Ken
>
>
> > -----Original Message-----
> > From: vtkusers-admin at public.kitware.com
> > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Rene
> > Tschirley
> > Sent: Thursday, November 08, 2001 8:21 AM
> > To: VTK-List
> > Subject: [vtkusers] SetFilePrefix crashes application
> >
> >
> > Dear all,
> >
> >
> > Now I decided that it is time to go on visualising with
> > vtk3.2 and tried
> > to upgrade some applications from 2.3 to 3.2. I'm quite
> > worried about a
> > problem with vtkVolume16Reader. My application uses:
> >
> > if (!reader)
> > {
> > reader = vtkVolume16Reader::New();
> > reader->SetDataDimensions(size_x,size_y);
> > reader->SetDataByteOrderToLittleEndian();
> > reader->SetFilePrefix(inputfilename);
> > reader->SetImageRange(from, to);
> > reader->SetDataSpacing (spacing_x, spacing_y, spacing_z);
> > reader->Update();
> > }
> >
> > and runs perfectly with vtk2.3. Using vtk3.2 it crashes
> > with a segv in
> > either SetFilePrefix or SetImageRange. The gdb stack trace shows
> >
> > #0 0x403ca586 in
> > vtkPointSetToPointSetFilter::~vtkPointSetToPointSetFilter (
> > this=0x8058970, __in_chrg=0) at
> > vtkPointSetToPointSetFilter.cxx:63
> > #1 0x40525e71 in vtkWarpLens::~vtkWarpLens
> > (this=0x8058970, __in_chrg=0)
> > at vtkWarpLens.cxx:112
> > #2 0x804cd1b in ReadVolume () at vol_analyse.cxx:1131
> > #3 0x804aaa5 in main () at vol_analyse.cxx:232
> > #4 0x40c196ef in __libc_start_main () from /lib/libc.so.6
> >
> > when SetImageRange crashes the application and
> >
> > #0 0x0 in ?? ()
> > #1 0x804cd0a in ReadVolume () at vol_analyse.cxx:1130
> > #2 0x804aaa5 in main () at vol_analyse.cxx:232
> > #3 0x40c196ef in __libc_start_main () from /lib/libc.so.6
> >
> > if SetFilePrefix crashes it.
> >
> > I'm unsure if I missed something obvious or if I should patch the
> > destructor in vtkPointSetToPointSetFilter.cxx.
> >
> >
> > Thanks in advance,
> > René
> >
> > --
> > Dipl.-Inform. René Tschirley
> > http://www.cs.tu-berlin.de/~pooh
> > TU Berlin, Computer Graphics and Computer Assisted Medicine
> > research group
> > _______________________________________________
> > 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
>
>
>
> --__--__--
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest
>
More information about the vtkusers
mailing list