[vtkusers] NEW to VTK-HELP

Femi Ayinde femi_folorunso at yahoo.com
Thu Jan 29 23:45:26 EST 2009


Dear all,
When I try to run some C++ examples in VTK, I am always requested to specify the name of the executable file to be used for the debug session. What does this mean and how may I proceed. The available options in the dialog box are :  1. Internet explorer, 2. ActiveXControl Test Container and 3. regsvr32.

Any help would be appreciated thanks

Femi


--- On Thu, 1/29/09, vtkusers-request at vtk.org <vtkusers-request at vtk.org> wrote:

> From: vtkusers-request at vtk.org <vtkusers-request at vtk.org>
> Subject: vtkusers Digest, Vol 57, Issue 29
> To: vtkusers at vtk.org
> Date: Thursday, January 29, 2009, 9:00 AM
> Send vtkusers mailing list submissions to
> 	vtkusers at vtk.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body
> 'help' to
> 	vtkusers-request at vtk.org
> 
> You can reach the person managing the list at
> 	vtkusers-owner at vtk.org
> 
> When replying, please edit your Subject line so it is more
> specific
> than "Re: Contents of vtkusers digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: How to generate a historgramme of Datasets ?
> (Eric E. Monson)
>    2. Re: Conversion from VRML into VTK format (Nour
> Mestiri)
>    3. Re: Conversion from VRML into VTK format (Fabian
> Wanner)
>    4. Re: vtkQtChart - vtkQtLineChart and XY axis? (Paul
> Harris)
>    5. Pixel Value (Sercani)
>    6. Compile with Visual Studio 2008 (Alon Mozes)
>    7. Re: How to generate a historgramme of Datasets ?
>       (wassim_belhadj at topnet.tn)
>    8. Re: Pixel Value (Mathieu Malaterre)
>    9. Re: vtkQtChart - vtkQtLineChart and XY axis?
> (shekharc)
>   10. Difference between vtkFixedPointVolumeRayCastMapper
> and
>       vtkVolumeRayCastMapper (wassim_belhadj at topnet.tn)
>   11. Re: How to generate a historgramme of Datasets ?
> (Shashwath T.R.)
>   12. Re: Pixel Value (Sercani)
>   13. Re: Conversion from VRML into VTK format (Nour
> Mestiri)
>   14. vtkProbFilter examples please (Greg Fokum)
>   15. Re: Pixel Value (Mathieu Malaterre)
>   16. use vtkDiscreteMarchingCubes with C# (Phillip)
>   17. Re: Conversion from VRML into VTK format (Amy
> Squillacote)
>   18. [vtk-users] Getting the pixel size of a text actor
> (Oliver Kania)
>   19. Re: use vtkDiscreteMarchingCubes with C# (David Cole)
>   20. Re: Compile with Visual Studio 2008 (Jim)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 28 Jan 2009 13:37:26 -0500
> From: "Eric E. Monson"
> <emonson at cs.duke.edu>
> Subject: Re: [vtkusers] How to generate a historgramme of
> Datasets ?
> To: "<wassim_belhadj at topnet.tn>"
> <wassim_belhadj at topnet.tn>
> Cc: vtkusers at vtk.org
> Message-ID:
> <153AACA4-4775-40FC-A650-6E22D5001B5A at cs.duke.edu>
> Content-Type: text/plain; charset=US-ASCII; format=flowed;
> delsp=yes
> 
> Hello,
> 
> This isn't a specific answer to your question, and you
> may know this  
> already, but just in case you haven't seen it -- there
> is one  
> histogram example that comes with VTK that you can run if
> you've  
> compiled with Tcl wrapping.
> 
> /VTK/Examples/ImageProcessing/Tcl/Histogram.tcl
> (and accompanying HistogramWidget.tcl).
> 
> -Eric
> 
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
> 
> 
> On Jan 28, 2009, at 11:48 AM,
> <wassim_belhadj at topnet.tn>
> <wassim_belhadj at topnet.tn 
>  > wrote:
> 
> >
> > Dear list,
> >
> > I'am using Qt4 and VTK_CVS
> >
> > How can i generate/paint a historgramme of Datasets
> using VTK ?
> >
> > I would really appreciate if some one can tell me how
> to do this  
> > kind of
> > linkage ?
> >
> > I will be greatfull if someone can provide me an
> example.
> >
> > Thank you.
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 28 Jan 2009 19:43:17 +0000 (GMT)
> From: Nour Mestiri <nourmestiri at yahoo.fr>
> Subject: Re: [vtkusers] Conversion from VRML into VTK
> format
> To: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> Cc: vtk <vtkusers at vtk.org>
> Message-ID:
> <465124.70275.qm at web28207.mail.ukl.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Thank you Fabian forr your help.
> Can you please, help me more and tell me what should i use
> as extensions for the files "OutputFile" and
> "vtkFile"? 
> I have this problem when i write this :
> writer->WriteHeader("C:/vtkFile.vtk");
> ?
> And i don't know the type?of "OutputFile" in
> this line:
> writer->SetFileName("C:/OutputFile");
> ?
> I have to know what type of files should
> "OutputFile" and "vtkFile" be!!!
> Thank you sooo much
> 
> 
> --- En date de?: Jeu 22.1.09, Fabian Wanner
> <fpw05 at doc.ic.ac.uk> a ?crit?:
> 
> De: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> Objet: Re: [vtkusers] Conversion from VRML into VTK format
> ?: nourmestiri at yahoo.fr
> Cc: "vtk" <vtkusers at vtk.org>
> Date: Jeudi 22 Janvier 2009, 20h50
> 
> Hello Nour,
> 
> the main part of your code is exactly the same as mine, but
> there are a few
> differences.
> 
> 1. I had problems with the vtkGeometryFilter, so instead of
> doing that I used
> the static SafeDownCast method of the vtkPolyData and
> passed in the vtkDataSet.
> 
> 2. You are writing the PointData, which is only the texture
> information. If you
> want to write the actual coordinates, you should do
> something like this:
> writer->WritePoints(vtkFile, polyData1->GetPoints());
> 
> For writing the polygon or line information use something
> similar to this:
> writer->WriteCells(vtkFile, polyData1->GetPolys(),
> "POLYGONS");
> The label has to be the one mentioned on this website
> http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html
> <http://www.cacr.caltech.edu/%7Eslombey/asci/vtk/vtk_formats.simple.html>
> under DataSet Format -> Polygonal Data
> 
> 3. Unfortunately the line "DATASET POLYDATA" is
> not written by the
> vtkPolyDataWriter. After writing the header you should add
> the line (this took
> me a long time to find out):
> *vtkFile << "DATASET POLYDATA\n";
> This is necessary for the vtkReader to understand what type
> of data can be
> found in the file.
> 
> I didn't test anything I mentioned here, but this is
> how it works for me,
> so I hope it does for you as well. Please let me know if
> there are any problems.
> Fabian
> 
> 
> Nour Mestiri wrote:
> > Hi all vtk users,
> > I have a VRML file and i want  to convert it into VTK
> files. I found a
> code but i have some problems with it :
> >  vtkVRMLImporter *imp1 = vtkVRMLImporter::New();
> > imp1->SetFileName("C:/vrmlFile");
> > imp1->Read();
> > imp1->Update();
> >  vtkDataSet *pDataset1;
> > vtkActorCollection *actors1 =
> imp1->GetRenderer()->GetActors();
> > actors1->InitTraversal();
> > pDataset1 =
> actors1->GetNextActor()->GetMapper()->GetInput();
> >    vtkGeometryFilter *geometryFilter1 =
> vtkGeometryFilter::New();
> > geometryFilter1->SetInput(pDataset1);
> >    vtkPolyData *polyData1 = vtkPolyData::New();
> > polyData1 = geometryFilter1->GetOutput();
> > polyData1->Update();
> >  vtkDataSetWriter *writer1 = vtkDataSetWriter::New();
> > writer1->SetInput(polyData1);
> > writer1->SetFileName(OutputFile);
> > writer1->SetFileTypeToASCII();
> >    ostream *vtkFile1 = writer1->OpenVTKFile();
> > writer1->WriteHeader(vtkFile);
> > writer1->WritePointData(vtkFile, pDataset1);
> > writer1->CloseVTKFile(vtkFile);
> >  Can you tell me if that code makes the conversion
> from VRML to VTK
> format?
> > If yes, can you specify me the extensions to add for
> "OutputFile" and "vtkFile"?
> >  Thank you sooooo much for your help.
> > 
> > 
> >
> ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >   
> 
> 
> 
> 
>       
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090128/3f5e1065/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 3
> Date: Wed, 28 Jan 2009 20:52:16 +0000
> From: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> Subject: Re: [vtkusers] Conversion from VRML into VTK
> format
> To: nourmestiri at yahoo.fr
> Cc: vtk <vtkusers at vtk.org>
> Message-ID: <4980C580.7050407 at doc.ic.ac.uk>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Hey,
> 
> the extension of OutputFile should be '.vtk', which
> I store in a char*.
> The vtkFile is actually not a file, but is an output stream
> created 
> through the vtkPolyDataWriter using the OpenVTKFile()
> function. If you 
> set the FileName, FileType and Header before you create
> that vtkFile 
> this should work.
> The Header I put in there is the default header, so the
> SetHeader line 
> is actually unnecessary unless you change it. It works for
> me with the 
> default.
> 
> Here is an example:
> 
>     vtkPolyDataWriter* writer = vtkPolyDataWriter::New();
> 
>     writer->SetFileName(outputFile);
>     writer->SetFileTypeToASCII();
>     writer->SetHeader("vtk output");
>     ostream* vtkFile = writer->OpenVTKFile();
> 
> After this you can then do your calls like
> writer->WriteHeader(vtkFile);
> 
> Regards
> Fabian
> 
> 
> 
> Nour Mestiri wrote:
> > Thank you Fabian forr your help.
> > Can you please, help me more and tell me what should i
> use as 
> > extensions for the files "OutputFile" and
> "vtkFile"?
> > I have this problem when i write this :
> > writer->WriteHeader("C:/vtkFile.vtk");
> >  
> > And i don't know the type of
> "OutputFile" in this line:
> > writer->SetFileName("C:/OutputFile");
> >  
> > I have to know what type of files should
> "OutputFile" and "vtkFile" be!!!
> > Thank you sooo much
> >
> >
> > --- En date de : *Jeu 22.1.09, Fabian Wanner
> /<fpw05 at doc.ic.ac.uk>/* a 
> > ?crit :
> >
> >     De: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> >     Objet: Re: [vtkusers] Conversion from VRML into
> VTK format
> >     ?: nourmestiri at yahoo.fr
> >     Cc: "vtk" <vtkusers at vtk.org>
> >     Date: Jeudi 22 Janvier 2009, 20h50
> >
> >     Hello Nour,
> >
> >     the main part of your code is exactly the same as
> mine, but there are a few
> >     differences.
> >
> >     1. I had problems with the vtkGeometryFilter, so
> instead of doing that I used
> >     the static SafeDownCast method of the vtkPolyData
> and passed in the vtkDataSet.
> >
> >     2. You are writing the PointData, which is only
> the texture information. If you
> >     want to write the actual coordinates, you should
> do something like this:
> >     writer->WritePoints(vtkFile,
> polyData1->GetPoints());
> >
> >     For writing the polygon or line information use
> something similar to this:
> >     writer->WriteCells(vtkFile,
> polyData1->GetPolys(), "POLYGONS");
> >     The label has to be the one mentioned on this
> website
> >    
> http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html
> >    
> <http://www.cacr.caltech.edu/%7Eslombey/asci/vtk/vtk_formats.simple.html>
> >     under DataSet Format -> Polygonal Data
> >
> >     3. Unfortunately the line "DATASET
> POLYDATA" is not written by the
> >     vtkPolyDataWriter. After writing the header you
> should add the line (this took
> >     me a long time to find out):
> >     *vtkFile << "DATASET
> POLYDATA\n";
> >     This is necessary for the vtkReader to understand
> what type of data can be
> >     found in the file.
> >
> >     I didn't test anything I mentioned here, but
> this is how it works for me,
> >     so I hope it does for you as well. Please let me
> know if there are any problems.
> >     Fabian
> >
> >
> >     Nour Mestiri wrote:
> >     > Hi all vtk users,
> >     > I have a VRML file and i want  to convert it
> into VTK files. I found a
> >     code but i have some problems with it :
> >     >  vtkVRMLImporter *imp1 =
> vtkVRMLImporter::New();
> >     >
> imp1->SetFileName("C:/vrmlFile");
> >     > imp1->Read();
> >     > imp1->Update();
> >     >  vtkDataSet *pDataset1;
> >     > vtkActorCollection *actors1 =
> imp1->GetRenderer()->GetActors();
> >     > actors1->InitTraversal();
> >     > pDataset1 =
> actors1->GetNextActor()->GetMapper()->GetInput();
> >     >    vtkGeometryFilter *geometryFilter1 =
> vtkGeometryFilter::New();
> >     > geometryFilter1->SetInput(pDataset1);
> >     >    vtkPolyData *polyData1 =
> vtkPolyData::New();
> >     > polyData1 = geometryFilter1->GetOutput();
> >     > polyData1->Update();
> >     >  vtkDataSetWriter *writer1 =
> vtkDataSetWriter::New();
> >     > writer1->SetInput(polyData1);
> >     > writer1->SetFileName(OutputFile);
> >     > writer1->SetFileTypeToASCII();
> >     >    ostream *vtkFile1 =
> writer1->OpenVTKFile();
> >     > writer1->WriteHeader(vtkFile);
> >     > writer1->WritePointData(vtkFile,
> pDataset1);
> >     > writer1->CloseVTKFile(vtkFile);
> >     >  Can you tell me if that code makes the
> conversion from VRML to VTK
> >     format?
> >     > If yes, can you specify me the extensions to
> add for
> >     "OutputFile" and "vtkFile"?
> >     >  Thank you sooooo much for your help.
> >     > 
> >     > 
> >     >
> ------------------------------------------------------------------------
> >     > 
> >     >
> _______________________________________________
> >     > This is the private VTK discussion list.
> >     > Please keep messages on-topic. Check the FAQ
> at:
> >     http://www.vtk.org/Wiki/VTK_FAQ
> >     > Follow this link to subscribe/unsubscribe:
> >     > http://www.vtk.org/mailman/listinfo/vtkusers
> >     >   
> >
> >               
> >
> >
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 29 Jan 2009 10:35:40 +0900
> From: Paul Harris <harris.pc at gmail.com>
> Subject: Re: [vtkusers] vtkQtChart - vtkQtLineChart and XY
> axis?
> To: shekharc <Shekhar.Chandra at sci.monash.edu.au>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID:
> 	<3fa3884f0901281735w7ab9f304j3a5bee1831557569 at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Can I ask, how is the performance?
> 
> I will be plotting lines with a million points. And a
> million point-markers
> (spites).   And maybe 2 million in a year or two...
> 
> cheers,
> Paul
> 
> 2009/1/28 shekharc
> <Shekhar.Chandra at sci.monash.edu.au>
> 
> > Hi Paul,
> >
> > I use Qwt library <http://qwt.sourceforge.net/>
> and its QwtPlot class. It
> > should do what u want.
> >
> > Cheers
> > Shakes
> >
> > Paul Harris wrote:
> >
> >> Hi,
> >>
> >> I am trying to figure out how to draw a chart
> where the data for a line is
> >> made up of x,y coordinates.
> >>
> >> It seems that vtkQtLineChart can only draw a line
> series where each value
> >> is at a sequential X coordinate.  My data is not
> at sequential x coordinates
> >> (it may skip a bunch).
> >>
> >> thanks,
> >> Paul
> >>
> >>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/454ccbb5/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 29 Jan 2009 05:26:12 +0200
> From: "Sercani"
> <sercanimailgroups at gmail.com>
> Subject: [vtkusers] Pixel Value
> To: <markww at gmail.com>,	<vtkusers at vtk.org>
> Message-ID: <00f001c981c1$574af050$05e0d0f0$@com>
> Content-Type: text/plain; charset="iso-8859-9"
> 
> Hi Everyone;
> 
> I'm developing a DICOM viewer using Java and VTK and i
> need to show the
> pixel and hounsfield unit value of a clicked point. I'
> ve done the exactly
> same thing that Mark Wyszomierski   described here:
> http://devsample.org/index.php?option=com_content
> <http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
> > &task=view&id=48&Itemid=27 and i get the
> correct pixel value(at least i
> hope so) but i couldn't convert it to hounsfield unit
> using this formula:
> hu= pixel*slope+intercept . Bone value must be over +400
> hu, but i get
> negative values. Actually i have implemented the MPR with
> vtkImagePlaneWidget(s) too and it shows the real hounsfield
> unit value of
> the clicked point and for example the bone value changes
> while dragging the
> mouse on a bone but at my implemantation it always show the
> same value
> (pixel value is 255 and hu is -700 or something like this).
> How can i
> convert the pixel value to hounsfield unit or how can i get
> the real scalar
> values of a clicked point of CT data set? 
> 
>  
> 
> Yours sincerely;
> 
> Sercani.
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/a6160d60/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 28 Jan 2009 20:33:36 -0800 (PST)
> From: Alon Mozes <amozes77 at yahoo.com>
> Subject: [vtkusers] Compile with Visual Studio 2008
> To: vtkusers at vtk.org
> Message-ID:
> <588636.52344.qm at web51305.mail.re2.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi All,
> I have a great project using VTK/ITK in an older version of
> Visual Studio.? I need to upgrade to the latest version of
> VS (Visual Studio 2008 Professional Edition).? I've
> found that I must recompile VTK/ITK to properly do so.?
> I've started from scratch and installed the latest CMake
> 2.6?which offers an option to use the Visual Studio 2008
> compiler and VTK 5.2.1.? For the configuration, I turn on
> VTK_USE_MFC (via VTK_USE_GUISUPPORT) and VTK_RENDERING.?
> Then I compile the ALL_BUILD in Visual Studio and I get
> several errors.? I reconfigured CMake to turn off the
> VTK_USE_VIDEO_FOR_WINDOWS and all but one error goes away.?
> I'm still stuck with the following failure (which seems
> to be in the vtkMFC package which I think?is critical for
> me):
> ?
> C:\Program Files\Microsoft
> SDKs\Windows\v6.0A\include\sdkddkver.h(217)
> : fatal error C1189: #error : _WIN32_WINNT settings
> conflicts with _WIN32_IE setting
> ?
> When I dig a little, I'm taken to the following lines
> of code:
> ?
> #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) &&
> (_WIN32_IE > _WIN32_IE_IE60SP1))
> #error _WIN32_WINNT settings conflicts with _WIN32_IE
> setting
> #endif
> ?
> Its clearly passing this conditional and triggering this
> error.? The weird thing is that the first part of the
> conditional should be 0 (the values seem to be 0x0600 <
> 0x0500) so the whole thing should not pass.? What's
> going on here?? Any help would be greatly appreciated.
> ?
> Thanks for the help.
> 
> 
>       
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090128/f1d0912c/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 7
> Date: Thu, 29 Jan 2009 08:49:57 +0100
> From: <wassim_belhadj at topnet.tn>
> Subject: Re: [vtkusers] How to generate a historgramme of
> Datasets ?
> To: Eric E. Monson <emonson at cs.duke.edu>
> Cc: vtkusers at vtk.org
> Message-ID:
> <0ca21680f272e9672755d15e22ebba72 at pop.topnet.tn>
> Content-Type: text/plain; charset="UTF-8"
> 
> 
> Hi,
> 
> Thank you for your help.
> 
> I did not found a C++ example.
> 
> Can you tell me how to do this ( VTK and  C++ ) ?
> 
> I am not familiar with the use of VTK so please if you can
> send me an
> example or outline to do this  I will be greatfull. 
> 
> Thank you in advance.
> 
> 
> 
>  
> On Wed, 28 Jan 2009 13:37:26 -0500, "Eric E.
> Monson" <emonson at cs.duke.edu>
> wrote:
> > Hello,
> > 
> > This isn't a specific answer to your question, and
> you may know this
> > already, but just in case you haven't seen it --
> there is one
> > histogram example that comes with VTK that you can run
> if you've
> > compiled with Tcl wrapping.
> > 
> > /VTK/Examples/ImageProcessing/Tcl/Histogram.tcl
> > (and accompanying HistogramWidget.tcl).
> > 
> > -Eric
> > 
> > ------------------------------------------------------
> > Eric E Monson
> > Duke Visualization Technology Group
> > 
> > 
> > On Jan 28, 2009, at 11:48 AM,
> <wassim_belhadj at topnet.tn>
> > <wassim_belhadj at topnet.tn
> >  > wrote:
> > 
> >>
> >> Dear list,
> >>
> >> I'am using Qt4 and VTK_CVS
> >>
> >> How can i generate/paint a historgramme of
> Datasets using VTK ?
> >>
> >> I would really appreciate if some one can tell me
> how to do this
> >> kind of
> >> linkage ?
> >>
> >> I will be greatfull if someone can provide me an
> example.
> >>
> >> Thank you.
> >>
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> This is the private VTK discussion list.
> >> Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Thu, 29 Jan 2009 10:26:35 +0100
> From: Mathieu Malaterre <mathieu.malaterre at gmail.com>
> Subject: Re: [vtkusers] Pixel Value
> To: Sercani <sercanimailgroups at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<bf0c3b3f0901290126t3938027ei59772653cfd388c5 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> 2009/1/29 Sercani <sercanimailgroups at gmail.com>:
> > Hi Everyone;
> >
> > I'm developing a DICOM viewer using Java and VTK
> and i need to show the
> > pixel and hounsfield unit value of a clicked point.
> I' ve done the exactly
> > same thing that Mark Wyszomierski   described here:
> >
> http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
> > and i get the correct pixel value(at least i hope so)
> but i couldn't convert
> > it to hounsfield unit using this formula: hu=
> pixel*slope+intercept . Bone
> > value must be over +400 hu, but i get negative values.
> Actually i have
> > implemented the MPR with vtkImagePlaneWidget(s) too
> and it shows the real
> > hounsfield unit value of the clicked point and for
> example the bone value
> > changes while dragging the mouse on a bone but at my
> implemantation it
> > always show the same value (pixel value is 255 and hu
> is -700 or something
> > like this). How can i convert the pixel value to
> hounsfield unit or how can
> > i get the real scalar values of a clicked point of CT
> data set?
> 
> Simply use vtkGDCMImageReader, it will apply the linear
> transformation
> (Rescale Slope & Rescale Intercept ) automatically.
> 
> ->
> http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html
> 
> and
> 
> ->
> http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=GDCM_Release_2.0
> 
> HTH
> -- 
> Mathieu
> 
> 
> ------------------------------
> 
> Message: 9
> Date: Thu, 29 Jan 2009 20:38:17 +1100
> From: shekharc <Shekhar.Chandra at sci.monash.edu.au>
> Subject: Re: [vtkusers] vtkQtChart - vtkQtLineChart and XY
> axis?
> To: Paul Harris <harris.pc at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID: <49817909.3000300 at sci.monash.edu.au>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Hi Paul,
> 
> I haven't tried a million points so I don't know.
> Performance that I do 
> know is that it does do several 500+ double points plot
> (single plot 
> multiple lines) instantly.
> 
> You can also use VTK in house plotter - vtkXYPlotActor
> class.
> 
> All the best.
> Cheers
> Shakes
> 
> Paul Harris wrote:
> > Can I ask, how is the performance?
> > 
> > I will be plotting lines with a million points. And a
> million 
> > point-markers (spites).   And maybe 2 million in a
> year or two...
> > 
> > cheers,
> > Paul
> > 
> > 2009/1/28 shekharc
> <Shekhar.Chandra at sci.monash.edu.au 
> > <mailto:Shekhar.Chandra at sci.monash.edu.au>>
> > 
> >     Hi Paul,
> > 
> >     I use Qwt library
> <http://qwt.sourceforge.net/> and its QwtPlot
> >     class. It should do what u want.
> > 
> >     Cheers
> >     Shakes
> > 
> >     Paul Harris wrote:
> > 
> >         Hi,
> > 
> >         I am trying to figure out how to draw a chart
> where the data for
> >         a line is made up of x,y coordinates.
> > 
> >         It seems that vtkQtLineChart can only draw a
> line series where
> >         each value is at a sequential X coordinate. 
> My data is not at
> >         sequential x coordinates (it may skip a
> bunch).
> > 
> >         thanks,
> >         Paul
> > 
> > 
> 
> 
> ------------------------------
> 
> Message: 10
> Date: Thu, 29 Jan 2009 11:13:53 +0100
> From: <wassim_belhadj at topnet.tn>
> Subject: [vtkusers] Difference between
> 	vtkFixedPointVolumeRayCastMapper and
> vtkVolumeRayCastMapper
> To: vtkusers at vtk.org
> Message-ID:
> <1dc3134365b202e7b2ce8b136f5e8d6a at pop.topnet.tn>
> Content-Type: text/plain; charset="UTF-8"
> 
> 
> 
> Hi,
> 
> Can you explain the difference between
> vtkFixedPointVolumeRayCastMapper and
>  vtkVolumeRayCastMapper ?
> 
> Is there a difference in performance ?
> 
> I found that vtkVolumeRayCastMapper does not support short
> type instead of
> vtkFixedPointVolumeRayCastMapper.
> 
> 
> Waiting for your Feedback  and Thank you in advance.
> 
> 
> 
> 
> ------------------------------
> 
> Message: 11
> Date: Thu, 29 Jan 2009 16:19:50 +0530
> From: "Shashwath T.R." <trshash at gmail.com>
> Subject: Re: [vtkusers] How to generate a historgramme of
> Datasets ?
> To: vtkusers at vtk.org
> Message-ID:
> 	<2a2a16740901290249l7028518bqe464eec5ccf49c29 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
> 
> Try reading up on vtkImageAccumulate...
> HTH
> Shash
> 
> On Thu, Jan 29, 2009 at 1:19 PM,
> <wassim_belhadj at topnet.tn> wrote:
> 
> >
> > Hi,
> >
> > Thank you for your help.
> >
> > I did not found a C++ example.
> >
> > Can you tell me how to do this ( VTK and  C++ ) ?
> >
> > I am not familiar with the use of VTK so please if you
> can send me an
> > example or outline to do this  I will be greatfull.
> >
> > Thank you in advance.
> >
> >
> >
> >
> > On Wed, 28 Jan 2009 13:37:26 -0500, "Eric E.
> Monson" <emonson at cs.duke.edu>
> > wrote:
> > > Hello,
> > >
> > > This isn't a specific answer to your
> question, and you may know this
> > > already, but just in case you haven't seen it
> -- there is one
> > > histogram example that comes with VTK that you
> can run if you've
> > > compiled with Tcl wrapping.
> > >
> > > /VTK/Examples/ImageProcessing/Tcl/Histogram.tcl
> > > (and accompanying HistogramWidget.tcl).
> > >
> > > -Eric
> > >
> > >
> ------------------------------------------------------
> > > Eric E Monson
> > > Duke Visualization Technology Group
> > >
> > >
> > > On Jan 28, 2009, at 11:48 AM,
> <wassim_belhadj at topnet.tn>
> > > <wassim_belhadj at topnet.tn
> > >  > wrote:
> > >
> > >>
> > >> Dear list,
> > >>
> > >> I'am using Qt4 and VTK_CVS
> > >>
> > >> How can i generate/paint a historgramme of
> Datasets using VTK ?
> > >>
> > >> I would really appreciate if some one can
> tell me how to do this
> > >> kind of
> > >> linkage ?
> > >>
> > >> I will be greatfull if someone can provide me
> an example.
> > >>
> > >> Thank you.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> _______________________________________________
> > >> This is the private VTK discussion list.
> > >> Please keep messages on-topic. Check the FAQ
> at:
> > > http://www.vtk.org/Wiki/VTK_FAQ
> > >> Follow this link to subscribe/unsubscribe:
> > >> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/1399fce5/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 12
> Date: Thu, 29 Jan 2009 12:55:46 +0200
> From: "Sercani"
> <sercanimailgroups at gmail.com>
> Subject: Re: [vtkusers] Pixel Value
> To: "'Mathieu Malaterre'"
> <mathieu.malaterre at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID: <011601c98200$25160220$6f420660$@com>
> Content-Type: text/plain;	charset="iso-8859-9"
> 
> Hi Mathieu;
> I am using VTK with Java and GDCM's java wrapping is
> unstable... I think
> there must be a solution with pure VTK because
> vtkImagePlaneWidget can do
> that...
> 
> -----Original Message-----
> From: Mathieu Malaterre
> [mailto:mathieu.malaterre at gmail.com] 
> Sent: Thursday, January 29, 2009 11:27 AM
> To: Sercani
> Cc: markww at gmail.com; vtkusers at vtk.org
> Subject: Re: [vtkusers] Pixel Value
> 
> 2009/1/29 Sercani <sercanimailgroups at gmail.com>:
> > Hi Everyone;
> >
> > I'm developing a DICOM viewer using Java and VTK
> and i need to show the
> > pixel and hounsfield unit value of a clicked point.
> I' ve done the exactly
> > same thing that Mark Wyszomierski   described here:
> >
> http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
> > and i get the correct pixel value(at least i hope so)
> but i couldn't
> convert
> > it to hounsfield unit using this formula: hu=
> pixel*slope+intercept . Bone
> > value must be over +400 hu, but i get negative values.
> Actually i have
> > implemented the MPR with vtkImagePlaneWidget(s) too
> and it shows the real
> > hounsfield unit value of the clicked point and for
> example the bone value
> > changes while dragging the mouse on a bone but at my
> implemantation it
> > always show the same value (pixel value is 255 and hu
> is -700 or something
> > like this). How can i convert the pixel value to
> hounsfield unit or how
> can
> > i get the real scalar values of a clicked point of CT
> data set?
> 
> Simply use vtkGDCMImageReader, it will apply the linear
> transformation
> (Rescale Slope & Rescale Intercept ) automatically.
> 
> ->
> http://gdcm.sourceforge.net/html/classvtkGDCMImageReader.html
> 
> and
> 
> ->
> http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=GDCM_Release_2.0
> 
> HTH
> -- 
> Mathieu
> 
> 
> 
> ------------------------------
> 
> Message: 13
> Date: Thu, 29 Jan 2009 11:32:58 +0000 (GMT)
> From: Nour Mestiri <nourmestiri at yahoo.fr>
> Subject: Re: [vtkusers] Conversion from VRML into VTK
> format
> To: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> Cc: vtk <vtkusers at vtk.org>
> Message-ID:
> <786021.66055.qm at web28210.mail.ukl.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hey Fabian,
> Thank you one more time for your helpful answer.
> I did what you told me, but i always have problems. I post
> you my new code and please try to tell me what is wrong on
> it.
> Can you also telle me how to use the
> "SafeDownCast" method for the
> "GeometryFilter"?
> ?
> vtkVRMLImporter *imp = vtkVRMLImporter::New();
> imp->SetFileName(Fichier);
> imp->Read();
> imp->Update();
> 
> vtkDataSet *pDataset;
> vtkActorCollection *actors =
> imp->GetRenderer()->GetActors();
> actors->InitTraversal();
> pDataset =
> actors->GetNextActor()->GetMapper()->GetInput();
> ?
> vtkGeometryFilter *geometryFilter =
> vtkGeometryFilter::New();
> geometryFilter->SetInput(pDataset);
> ??? 
> vtkPolyData *polyData = vtkPolyData::New();
> polyData = geometryFilter->GetOutput();
> polyData->Update();
> ?
> vtkPolyDataWriter *writer = vtkPolyDataWriter::New();
> strcat(vrmlFileName,".vtk");
> writer->SetFileName(vrmlFileName);
> writer->SetFileTypeToASCII();
> ?
> ostream *vtkFile = writer->OpenVTKFile();
> *vtkFile << "DATASET POLYDATA\n";
> writer->SetHeader("vtkFile");
> writer->WriteCells(vtkFile, polyData->GetPolys(),
> "POLYGONS");
> writer->CloseVTKFile(vtkFile);
> ?
> Thank you sooo much
> 
> --- En date de?: Jeu 22.1.09, Fabian Wanner
> <fpw05 at doc.ic.ac.uk> a ?crit?:
> 
> De: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> Objet: Re: [vtkusers] Conversion from VRML into VTK format
> ?: nourmestiri at yahoo.fr
> Cc: "vtk" <vtkusers at vtk.org>
> Date: Jeudi 22 Janvier 2009, 20h50
> 
> Hello Nour,
> 
> the main part of your code is exactly the same as mine, but
> there are a few
> differences.
> 
> 1. I had problems with the vtkGeometryFilter, so instead of
> doing that I used
> the static SafeDownCast method of the vtkPolyData and
> passed in the vtkDataSet.
> 
> 2. You are writing the PointData, which is only the texture
> information. If you
> want to write the actual coordinates, you should do
> something like this:
> writer->WritePoints(vtkFile, polyData1->GetPoints());
> 
> For writing the polygon or line information use something
> similar to this:
> writer->WriteCells(vtkFile, polyData1->GetPolys(),
> "POLYGONS");
> The label has to be the one mentioned on this website
> http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html
> <http://www.cacr.caltech.edu/%7Eslombey/asci/vtk/vtk_formats.simple.html>
> under DataSet Format -> Polygonal Data
> 
> 3. Unfortunately the line "DATASET POLYDATA" is
> not written by the
> vtkPolyDataWriter. After writing the header you should add
> the line (this took
> me a long time to find out):
> *vtkFile << "DATASET POLYDATA\n";
> This is necessary for the vtkReader to understand what type
> of data can be
> found in the file.
> 
> I didn't test anything I mentioned here, but this is
> how it works for me,
> so I hope it does for you as well. Please let me know if
> there are any problems.
> Fabian
> 
> 
> Nour Mestiri wrote:
> > Hi all vtk users,
> > I have a VRML file and i want  to convert it into VTK
> files. I found a
> code but i have some problems with it :
> >  vtkVRMLImporter *imp1 = vtkVRMLImporter::New();
> > imp1->SetFileName("C:/vrmlFile");
> > imp1->Read();
> > imp1->Update();
> >  vtkDataSet *pDataset1;
> > vtkActorCollection *actors1 =
> imp1->GetRenderer()->GetActors();
> > actors1->InitTraversal();
> > pDataset1 =
> actors1->GetNextActor()->GetMapper()->GetInput();
> >    vtkGeometryFilter *geometryFilter1 =
> vtkGeometryFilter::New();
> > geometryFilter1->SetInput(pDataset1);
> >    vtkPolyData *polyData1 = vtkPolyData::New();
> > polyData1 = geometryFilter1->GetOutput();
> > polyData1->Update();
> >  vtkDataSetWriter *writer1 = vtkDataSetWriter::New();
> > writer1->SetInput(polyData1);
> > writer1->SetFileName(OutputFile);
> > writer1->SetFileTypeToASCII();
> >    ostream *vtkFile1 = writer1->OpenVTKFile();
> > writer1->WriteHeader(vtkFile);
> > writer1->WritePointData(vtkFile, pDataset1);
> > writer1->CloseVTKFile(vtkFile);
> >  Can you tell me if that code makes the conversion
> from VRML to VTK
> format?
> > If yes, can you specify me the extensions to add for
> "OutputFile" and "vtkFile"?
> >  Thank you sooooo much for your help.
> > 
> > 
> >
> ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >   
> 
> 
> 
> 
>       
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/16158d30/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 14
> Date: Thu, 29 Jan 2009 05:06:23 -0800 (PST)
> From: Greg Fokum <gregthom99 at yahoo.com>
> Subject: [vtkusers] vtkProbFilter examples please
> To: vtkusers at vtk.org
> Message-ID:
> <685711.69723.qm at web54106.mail.re2.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Greetings
> 
> I have been reading the documentation for vtkProbeFilter
> and it seems it is exactly what I need but I am missing some
> concrete ideas as to how to use it.
> 
> I have some 3D vtkImageDatas with scalar (unsigned short
> and floats) attributes. I have the dimensions and spacings
> of my vtkImageDatas.
> 
> Question1: 
> 
> Can someone with experience give me an idea as to how I can
> obtain the scalar values at a particular (x,y,z) coordinate
> ? with x,y,z not necessarily at grid position in
> vtkImageData ?
> This is somehow interpolation, (am I correct?). if so are
> there choices to be made to influence the "interpolated
> value" ie trilinear, nearest etc
> 
> Question 2: 
> Can someone explain how I can convert the vtkImageData into
> a grid of vtkHexahedron (cell type 12) with the condition
> that 
> ?1) each hexahedron is centered on the center of voxels
> from the vtkImageData 
> ?2) grid points are the 8 coner points of the voxels in the
> vtkImageData ?
> 
> >From the documentation of vtkProbeFilter it seems it
> can achieve all of this but I need to start from some basic
> examples.
> 
> Hope someone can answer me
> 
> user
> 
> 
> 
>       
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/fd815b2a/attachment.htm>
> 
> ------------------------------
> 
> Message: 15
> Date: Thu, 29 Jan 2009 14:09:37 +0100
> From: Mathieu Malaterre <mathieu.malaterre at gmail.com>
> Subject: Re: [vtkusers] Pixel Value
> To: Sercani <sercanimailgroups at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<bf0c3b3f0901290509x305eb588w50ce4bdd2d3aa579 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Thu, Jan 29, 2009 at 11:55 AM, Sercani
> <sercanimailgroups at gmail.com> wrote:
> > Hi Mathieu;
> > I am using VTK with Java and GDCM's java wrapping
> is unstable...
> 
> Yeah well you are confusing two things:
> 1. swig wrapping of the entire gdcm (low level classes) is
> unstable
> because not tested. But IMHO it should work for most people
> out of the
> box,
> 2. wrapping of the vtkGDCMImageReader is straightforward as
> I
> respected the VTK-style for wrapping (one class per file,
> use of
> BTX/ETX, ...)
> 
> So clearly this is a non-issue to use vtkGDCMImageReader
> from java.
> 
> > I think
> > there must be a solution with pure VTK because
> vtkImagePlaneWidget can do
> > that...
> 
> indeed you could plug a linear function in
> vtkImagePlaneWidget to
> report the Real World Value of the Pixel, but be warned
> that this is a
> non-trivial task as Rescale Slope/Rescale Intercept are
> changing from
> one slice to the other ... which means for a oblique plane,
> you'll
> have some pretty cool math equations to write to compute
> mid-values :)
> 
> Good luck,
> -- 
> Mathieu
> 
> 
> ------------------------------
> 
> Message: 16
> Date: Thu, 29 Jan 2009 15:03:54 +0100
> From: Phillip <fibbes82 at gmx.net>
> Subject: [vtkusers] use vtkDiscreteMarchingCubes with C#
> To: vtkusers at vtk.org
> Message-ID: <4981B74A.2010609 at gmx.net>
> Content-Type: text/plain; charset=ISO-8859-15;
> format=flowed
> 
> Hallo all vtk users,
> 
> I use the vtkDiscreteMarchingCubes algorithm zo extract an
> isosurface 
> from segmented volume data (tiff images).
> 
> To install and setup VTK 5.0 on Visual Studio 2005 (.NET
> 2.0) I follow 
> the steps of this page
> http://www.evl.uic.edu/aej/526/vtk.html
> 
> If I debug my C# project my pipeline doesn't work and I
> get the 
> following errors:
> 
> ERROR: In
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkDecimatePro.cxx,
> 
> line 161
> vtkDecimatePro (04042A88): No data to decimate!
> ERROR: In 
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkSmoothPolyDataFilter.cxx,
> 
> line 212
> vtkSmoothPolyDataFilter (04053210): No data to smooth!
> ERROR: In 
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkPolyDataNormals.cxx,
> line 94
> vtkPolyDataNormals (040540D0): No data to generate normals
> for!
> 
> If I translate my C# code into C++ and create  the C++
> projekt with 
> Cmake it works fine and I can visualize my isosurface. So I
> think my 
> pipeline is correct and it is because of use
> vtkMarchingCubes and C#.
> 
> Is it possible that I can't use
> vtkDiscreteMarchingCubes  with C#? Or is 
> my installation not correct?
> What do I wrong with the installation and setup to use C#?
> 
> Best regards,
>         Phillip
> 
> 
> ------------------------------
> 
> Message: 17
> Date: Thu, 29 Jan 2009 08:41:08 -0600
> From: Amy Squillacote <ahs at cfdrc.com>
> Subject: Re: [vtkusers] Conversion from VRML into VTK
> format
> To: nourmestiri at yahoo.fr
> Cc: vtk <vtkusers at vtk.org>
> Message-ID: <4981C004.2010407 at cfdrc.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Hi Nour,
> 
> Perhaps I'm missing something, but why not just call
> Write() on the 
> vtkPolyDataWriter() after the line
> "writer->SetFileTypeToASCII();"? What 
> happens if you do that (call writer->Write();) instead
> of your last 
> section of code (i.e., from "ostream *vtkFile =
> writer->OpenVTKFile();" 
> to the end of the code you posted?
> 
> - Amy
> 
> Nour Mestiri wrote:
> > Hey Fabian,
> > Thank you one more time for your helpful answer.
> > I did what you told me, but i always have problems. I
> post you my new 
> > code and please try to tell me what is wrong on it.
> > Can you also telle me how to use the
> "SafeDownCast" method for the 
> > "GeometryFilter"?
> >  
> > vtkVRMLImporter *imp = vtkVRMLImporter::New();
> > imp->SetFileName(Fichier);
> > imp->Read();
> > imp->Update();
> > vtkDataSet *pDataset;
> > vtkActorCollection *actors =
> imp->GetRenderer()->GetActors();
> > actors->InitTraversal();
> > pDataset =
> actors->GetNextActor()->GetMapper()->GetInput();
> >  
> > vtkGeometryFilter *geometryFilter =
> vtkGeometryFilter::New();
> > geometryFilter->SetInput(pDataset);
> >    
> > vtkPolyData *polyData = vtkPolyData::New();
> > polyData = geometryFilter->GetOutput();
> > polyData->Update();
> >  
> > vtkPolyDataWriter *writer = vtkPolyDataWriter::New();
> > strcat(vrmlFileName,".vtk");
> > writer->SetFileName(vrmlFileName);
> > writer->SetFileTypeToASCII();
> >  
> > ostream *vtkFile = writer->OpenVTKFile();
> > *vtkFile << "DATASET POLYDATA\n";
> > writer->SetHeader("vtkFile");
> > writer->WriteCells(vtkFile,
> polyData->GetPolys(), "POLYGONS");
> > writer->CloseVTKFile(vtkFile);
> >  
> > Thank you sooo much
> >
> > --- En date de : *Jeu 22.1.09, Fabian Wanner
> /<fpw05 at doc.ic.ac.uk>/* a 
> > ?crit :
> >
> >     De: Fabian Wanner <fpw05 at doc.ic.ac.uk>
> >     Objet: Re: [vtkusers] Conversion from VRML into
> VTK format
> >     ?: nourmestiri at yahoo.fr
> >     Cc: "vtk" <vtkusers at vtk.org>
> >     Date: Jeudi 22 Janvier 2009, 20h50
> >
> >     Hello Nour,
> >
> >     the main part of your code is exactly the same as
> mine, but there are a few
> >     differences.
> >
> >     1. I had problems with the vtkGeometryFilter, so
> instead of doing that I used
> >     the static SafeDownCast method of the vtkPolyData
> and passed in the vtkDataSet.
> >
> >     2. You are writing the PointData, which is only
> the texture information. If you
> >     want to write the actual coordinates, you should
> do something like this:
> >     writer->WritePoints(vtkFile,
> polyData1->GetPoints());
> >
> >     For writing the polygon or line information use
> something similar to this:
> >     writer->WriteCells(vtkFile,
> polyData1->GetPolys(), "POLYGONS");
> >     The label has to be the one mentioned on this
> website
> >    
> http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html
> >    
> <http://www.cacr.caltech.edu/%7Eslombey/asci/vtk/vtk_formats.simple.html>
> >     under DataSet Format -> Polygonal Data
> >
> >     3. Unfortunately the line "DATASET
> POLYDATA" is not written by the
> >     vtkPolyDataWriter. After writing the header you
> should add the line (this took
> >     me a long time to find out):
> >     *vtkFile << "DATASET
> POLYDATA\n";
> >     This is necessary for the vtkReader to understand
> what type of data can be
> >     found in the file.
> >
> >     I didn't test anything I mentioned here, but
> this is how it works for me,
> >     so I hope it does for you as well. Please let me
> know if there are any problems.
> >     Fabian
> >
> >
> >     Nour Mestiri wrote:
> >     > Hi all vtk users,
> >     > I have a VRML file and i want  to convert it
> into VTK files. I found a
> >     code but i have some problems with it :
> >     >  vtkVRMLImporter *imp1 =
> vtkVRMLImporter::New();
> >     >
> imp1->SetFileName("C:/vrmlFile");
> >     > imp1->Read();
> >     > imp1->Update();
> >     >  vtkDataSet *pDataset1;
> >     > vtkActorCollection *actors1 =
> imp1->GetRenderer()->GetActors();
> >     > actors1->InitTraversal();
> >     > pDataset1 =
> actors1->GetNextActor()->GetMapper()->GetInput();
> >     >    vtkGeometryFilter *geometryFilter1 =
> vtkGeometryFilter::New();
> >     > geometryFilter1->SetInput(pDataset1);
> >     >    vtkPolyData *polyData1 =
> vtkPolyData::New();
> >     > polyData1 = geometryFilter1->GetOutput();
> >     > polyData1->Update();
> >     >  vtkDataSetWriter *writer1 =
> vtkDataSetWriter::New();
> >     > writer1->SetInput(polyData1);
> >     > writer1->SetFileName(OutputFile);
> >     > writer1->SetFileTypeToASCII();
> >     >    ostream *vtkFile1 =
> writer1->OpenVTKFile();
> >     > writer1->WriteHeader(vtkFile);
> >     > writer1->WritePointData(vtkFile,
> pDataset1);
> >     > writer1->CloseVTKFile(vtkFile);
> >     >  Can you tell me if that code makes the
> conversion from VRML to VTK
> >     format?
> >     > If yes, can you specify me the extensions to
> add for
> >     "OutputFile" and "vtkFile"?
> >     >  Thank you sooooo much for your help.
> >     > 
> >     > 
> >     >
> ------------------------------------------------------------------------
> >     > 
> >     >
> _______________________________________________
> >     > This is the private VTK discussion list.
> >     > Please keep messages on-topic. Check the FAQ
> at:
> >     http://www.vtk.org/Wiki/VTK_FAQ
> >     > Follow this link to subscribe/unsubscribe:
> >     > http://www.vtk.org/mailman/listinfo/vtkusers
> >     >   
> >
> >               
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >   
> 
> -- 
> Amy Squillacote                    Phone: (256) 726-4839
> Sr. Computer Scientist             Fax: (256) 726-4806
> CFD Research Corporation           Web:
> http://www.cfdrc.com
> 215 Wynn Drive, Suite 501
> Huntsville, AL  35805
> 
> 
> 
> 
> ------------------------------
> 
> Message: 18
> Date: Thu, 29 Jan 2009 16:44:23 +0100
> From: Oliver Kania <ptw.freiburg at googlemail.com>
> Subject: [vtkusers] [vtk-users] Getting the pixel size of a
> text actor
> To: vtkusers at vtk.org
> Message-ID:
> 	<e22fb1100901290744r7faebc52p22c29d28cb0bea46 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi all,
> given a vtkTextActor, is it somehow
> possible to determine its height and width in pixels ?
> I tried GetPosition and GetPosition2 but the returned
> values
> dont seem ok ( I think the vtk documentation says that
> GetPosition2 is
> not always used)
> 
> thanks in advance
> Oliver
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/34802a68/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 19
> Date: Thu, 29 Jan 2009 10:52:22 -0500
> From: David Cole <david.cole at kitware.com>
> Subject: Re: [vtkusers] use vtkDiscreteMarchingCubes with
> C#
> To: Phillip <fibbes82 at gmx.net>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<f435c2c50901290752r1c107172wbdabbd2e0452fb7e at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Have you tried using the Personal Edition of ActiViz .NET
> from
> http://www.kitware.com/ActiViz ?
> 
> If your C++ code and C# code are truly equivalent, they
> should both work the
> same...
> 
> If you are still having problems after trying ActiViz .NET,
> then send along
> some sample C# code. Maybe somebody can recommend something
> to try if they
> see the code you are trying to use.
> 
> 
> HTH,
> David
> 
> 
> On Thu, Jan 29, 2009 at 9:03 AM, Phillip
> <fibbes82 at gmx.net> wrote:
> 
> > Hallo all vtk users,
> >
> > I use the vtkDiscreteMarchingCubes algorithm zo
> extract an isosurface from
> > segmented volume data (tiff images).
> >
> > To install and setup VTK 5.0 on Visual Studio 2005
> (.NET 2.0) I follow the
> > steps of this page
> http://www.evl.uic.edu/aej/526/vtk.html
> >
> > If I debug my C# project my pipeline doesn't work
> and I get the following
> > errors:
> >
> > ERROR: In
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkDecimatePro.cxx,
> line
> > 161
> > vtkDecimatePro (04042A88): No data to decimate!
> > ERROR: In
> >
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkSmoothPolyDataFilter.cxx,
> line
> > 212
> > vtkSmoothPolyDataFilter (04053210): No data to smooth!
> > ERROR: In
> m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkPolyDataNormals.cxx,
> > line 94
> > vtkPolyDataNormals (040540D0): No data to generate
> normals for!
> >
> > If I translate my C# code into C++ and create  the C++
> projekt with Cmake
> > it works fine and I can visualize my isosurface. So I
> think my pipeline is
> > correct and it is because of use vtkMarchingCubes and
> C#.
> >
> > Is it possible that I can't use
> vtkDiscreteMarchingCubes  with C#? Or is my
> > installation not correct?
> > What do I wrong with the installation and setup to use
> C#?
> >
> > Best regards,
> >       Phillip
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/e6cda380/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 20
> Date: Thu, 29 Jan 2009 08:14:47 -0800 (PST)
> From: Jim <jiksed at yahoo.com>
> Subject: Re: [vtkusers] Compile with Visual Studio 2008
> To: Alon Mozes <amozes77 at yahoo.com>, vtkusers at vtk.org
> Message-ID:
> <951585.62280.qm at web31901.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I am doing the same thing and got a bunch of errors. I
> wonder why you have to turn off VTK_USE_VIDEO_FOR_WINDOWS?
> Thank you.
>    
>   
> Alon Mozes <amozes77 at yahoo.com> wrote:
>             Hi All,
>   I have a great project using VTK/ITK in an older version
> of Visual Studio.  I need to upgrade to the latest version
> of VS (Visual Studio 2008 Professional Edition).  I've
> found that I must recompile VTK/ITK to properly do so. 
> I've started from scratch and installed the latest CMake
> 2.6 which offers an option to use the Visual Studio 2008
> compiler and VTK 5.2.1.  For the configuration, I turn on
> VTK_USE_MFC (via VTK_USE_GUISUPPORT) and VTK_RENDERING. 
> Then I compile the ALL_BUILD in Visual Studio and I get
> several errors.  I reconfigured CMake to turn off the
> VTK_USE_VIDEO_FOR_WINDOWS and all but one error goes away. 
> I'm still stuck with the following failure (which seems
> to be in the vtkMFC package which I think is critical for
> me):
>    
>   C:\Program Files\Microsoft
> SDKs\Windows\v6.0A\include\sdkddkver.h(217)
> : fatal error C1189: #error : _WIN32_WINNT settings
> conflicts with _WIN32_IE setting
>    
>   When I dig a little, I'm taken to the following lines
> of code:
>    
>   #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) &&
> (_WIN32_IE > _WIN32_IE_IE60SP1))
>   #error _WIN32_WINNT settings conflicts with _WIN32_IE
> setting
>   #endif
>    
>   Its clearly passing this conditional and triggering this
> error.  The weird thing is that the first part of the
> conditional should be 0 (the values seem to be 0x0600 <
> 0x0500) so the whole thing should not pass.  What's
> going on here?  Any help would be greatly appreciated.
>    
>   Thanks for the help.
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
>        
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20090129/5befcf4e/attachment-0001.htm>
> 
> ------------------------------
> 
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> End of vtkusers Digest, Vol 57, Issue 29
> ****************************************


      



More information about the vtkusers mailing list