<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
> Date: Mon, 30 Nov 2009 13:01:24 -0500<br>> Subject: Re: [Paraview] Python VTK readers<br>> From: utkarsh.ayachit@kitware.com<br>> To: stan1313@hotmail.fr<br>> CC: paraview@paraview.org<br>> <br>> > - reading legacy VTK files?<br>> It's called "LegacyVTKReader"<br><br>Ok it works but there is a mistake in this page: http://paraview.org/OnlineHelpCurrent/LegacyVTKFileReader.html<br>since the name of the class is mentionned as "<span class="ProxyHeadingSmallText">LegacyVTKFileReader</span>"<br><br>> > - reading any VTK file? I mean a general VTK file reader able to call the<br>> > appropriate reader, such as vtkDataSetReader in Tcl<br>> <br>> The equivalent of vtkDataSetReader is indeed the "LegacyVTKReader".<br><br>Right<br><br>> > - some way to just read the header of a file and get the dataset type, in<br>> > order to check if the file type is appropriate for a given processing task?<br>> <br>> How to plan on checking if the file type is appropriate? Not sure what<br>> you are trying to do here.<br><br>Suppose I have a filter that can process only a limited set of file types: I would like to test the actual type of a file before applying the filter, so I try this:<br><br> data = reader.GetDataInformation()<br> data.IsA("vtkImageData")<br><br>which actually returns always 0, so I probably did not use the right method.<br><br>> Utkarsh<br>                                            <br /><hr />PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! <a href='http://www.hotmailmagicmoment.com' target='_new'>C'est ici !</a></body>
</html>