<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Florian,<br>
<br>
The usual advice, which I have found to be good, is to use cmake
to create the VS project files. It seems to know what files are
needed.<br>
<br>
Gib<br>
<br>
On 19/09/2013 3:57 a.m., Florian Schiffers wrote:<br>
</div>
<blockquote cite="mid:5239CD76.1090708@physik.uni-erlangen.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello,<br>
<br>
I want to read an .xyz File with normals into vtkPolyData.<br>
<br>
I found this tutorial in the examples: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile</a><br>
<br>
So I tried to implement the DelimitedTextReader. But it doesn't
work.<br>
I included all header files, like it was requested:<br>
<blockquote>
<pre class="de1"><i><span class="co2">#include <vtkSmartPointer.h></span></i><i>
</i><i><span class="co2">#include <vtkProperty.h></span></i><i>
</i><i><span class="co2">#include <vtkPolyDataMapper.h></span></i><i>
</i><i><span class="co2">#include <vtkActor.h></span></i><i>
</i><i><span class="co2">#include <vtkDelimitedTextReader.h></span></i><i>
</i><i><span class="co2">#include <vtkDoubleArray.h></span></i><i>
</i><i><span class="co2">#include <vtkTable.h></span></i><i>
</i><i><span class="co2">#include <vtkPointData.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderWindow.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderWindowInteractor.h></span></i><i>
</i><i><span class="co2">#include <vtkRenderer.h></span></i><i>
</i><i><span class="co2">#include <vtkVertexGlyphFilter.h></span></i></pre>
</blockquote>
<br>
After that I tried to initialize the <vtkDelimtedTextReader>
with this line:<br>
<blockquote><i> vtkSmartPointer<vtkDelimitedTextReader>
reader =</i><br>
<i> vtkSmartPointer<vtkDelimitedTextReader>::New();</i><br>
<br>
</blockquote>
Unfortunately I get an error message, during the compilation
(Using Visual Studio 2008):<br>
<i><br>
</i><i>">Linking...</i><i><br>
</i><i>1>ElectrodeDetectorPlugin.obj : error LNK2019:
unresolved external symbol "__declspec(dllimport) <br>
public: static class vtkDelimitedTextReader * __cdecl
vtkDelimitedTextReader::New(void)"
(__imp_?New@vtkDelimitedTextReader@@SAPAV1@XZ) <br>
referenced in function "public: static class
vtkSmartPointer<class vtkDelimitedTextReader> __cdecl
vtkSmartPointer<class vtkDelimitedTextReader>::New(void)"
(?New@?$vtkSmartPointer@VvtkDelimitedTextReader@@@@SA?AV1@XZ)</i><i><br>
</i><i>1>C:\Users\fschiffers\Documents\Visual Studio
2008\Projects\EEGElectrodeDetector\Win32\Release\EEGElectrodeDetector.exe
:<br>
fatal error LNK1120: 1 unresolved externals"</i><br>
<br>
So I thought I included everything I need, but I don't know what
to do anymore. By the way, I'm using vtk-5.10<br>
<br>
Do I need to link a special library? I link these:<br>
<blockquote><i>QVTK.lib</i><br>
<i>vtksys.lib</i><br>
<i>vtkzlib.lib</i><br>
<i>vtkVolumeRendering.lib</i><br>
<i>vtkalglib.lib</i><br>
<i>vtkCommon.lib</i><br>
<i>vtkDICOMParser.lib</i><br>
<i>vtktiff.lib</i><br>
<i>vtkexpat.lib</i><br>
<i>vtkFiltering.lib</i><br>
<i>vtkftgl.lib</i><br>
<i>vtkGenericFiltering.lib</i><br>
<i>vtkGeovis.lib</i><br>
<i>vtkGraphics.lib</i><br>
<i>vtkhdf5.lib</i><br>
<i>vtkhdf5_hl.lib</i><br>
<i>vtkImaging.lib</i><br>
<i>vtkIO.lib</i><br>
<i>vtkjpeg.lib</i><br>
<i>vtkmetaio.lib</i><br>
<i>vtkNetCDF.lib</i><br>
<i>vtkNetCDF_cxx.lib</i><br>
<i>vtkpng.lib</i><br>
<i>vtkproj4.lib</i><br>
<i>vtkRendering.lib</i><br>
<i>vtksqlite.lib</i><br>
<i>vtkverdict.lib</i><br>
</blockquote>
<br>
Thank you for your help!<br>
<br>
Best regards,<br>
Florian <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="80">--
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand
<a class="moz-txt-link-freetext" href="http://www.bioeng.auckland.ac.nz">http://www.bioeng.auckland.ac.nz</a>
<a class="moz-txt-link-abbreviated" href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>
(64-9) 373-7599 Ext. 87030
</pre>
</body>
</html>