[vtkusers] RE: How to Read a VTK file format?

Dennis Jen dsjen at cs.unc.edu
Thu Jan 1 19:50:09 EST 2004


Hi Steven,
 
Try using SetFileName instead of setFileName.
 
- Dennis
 
-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of Steven Chen
Sent: Thursday, January 01, 2004 7:34 PM
To: vtkusers at vtk.org
Subject: [vtkusers] RE: How to Read a VTK file format?
 
HI, All
 
I met a problem in reading a VTK file format from a file.
 
I use Windows XP + VS7
 
The code is as follows:
 
#include "vtkPolyDataReader.h"
int main(){
vtkPolyDataReader *reader = vtkPolyDataReader::New();
reader->setFileName("C:\image.vtk");
return 0;
}
There is always an error message saying" SetFileName is not a member of
vtkPolyDataReader. 
I try to change setFileName to FileName, but the following error
messages occurs:
 error C2248: 'vtkDataReader::FileName' : cannot access protected member
declared in class 'vtkDataReader'
 
So please help!
 
thanks alot
Steven Chen
 
 
  _____  

Do you Yahoo!?
Find out what made the Top Yahoo! <http://search.yahoo.com/top2003>
Searches of 2003 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040101/c617ff50/attachment.htm>


More information about the vtkusers mailing list