[vtkusers] ensight Reader

Benjamin Schindler bschindler at student.ethz.ch
Tue Oct 21 08:11:23 EDT 2008


Hi

I'm trying to read simulation data in ensigh format and I did the following code: 

	filereader = vtkGenericEnSightReader::New();
	filereader->SetCaseFileName(filename->text().toAscii().data());
	if(filereader->DetermineEnSightVersion() < 0)
	{
		LOG4CXX_WARN(logger, "Unknown/invalid case file format. Aborting");
		return;
	}
	filereader->PrintSelf(std::cout, vtkIndent(2));

PrintSelf gives me very obvious wrong information like: 

  NumberOfComplexVariables: 0
  NumberOfVariables: 0
  NumberOfComplexScalarsPerNode: 0
  NumberOfVectorsPerElement :0
  NumberOfTensorsSymmPerElement: 0
  NumberOfComplexVectorsPerNode: 0
  NumberOfScalarsPerElement: 0
  NumberOfComplexVectorsPerElement: 0
  NumberOfComplexScalarsPerElement: 0
  NumberOfTensorsSymmPerNode: 0
  NumberOfScalarsPerMeasuredNode: 0
  NumberOfVectorsPerMeasuredNode: 0
  NumberOfScalarsPerNode: 0
  NumberOfVectorsPerNode: 0
  TimeValue: 0
  MinimumTimeValue: 0
  MaximumTimeValue: 0

I figured, that these values are filled by RequestData, but I don't know what's the proper way to call RequestData... 

Since the documentation is extremely sparse, does anybody have a hint how I properly extract the number of variables, their names and then in the end the data?

Thanks
Benjamin Schindler



More information about the vtkusers mailing list