1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: vtkGenericStaticEnSightReader.cxx
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
14 =========================================================================*/
15 #include "vtkGenericStaticEnSightReader.h"
16 #include "vtkObjectFactory.h"
18 #include "vtkStaticEnSight6BinaryReader.h"
19 #include "vtkStaticEnSight6Reader.h"
20 #include "vtkStaticEnSightGoldBinaryReader.h"
21 #include "vtkStaticEnSightGoldReader.h"
23 vtkStandardNewMacro(vtkGenericStaticEnSightReader);
25 //------------------------------------------------------------------------------
26 int vtkGenericStaticEnSightReader::RequestInformation(
27 vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
29 int ri = this->Superclass::RequestInformation(request, inputVector, outputVector);
32 vtkStaticEnSight6BinaryReader* es6binary =
33 vtkStaticEnSight6BinaryReader::SafeDownCast(this->Reader);
36 es6binary->SetUseStaticMesh(this->UseStaticMesh);
41 vtkStaticEnSight6Reader* es6 = vtkStaticEnSight6Reader::SafeDownCast(this->Reader);
44 es6->SetUseStaticMesh(this->UseStaticMesh);
49 vtkStaticEnSightGoldBinaryReader* goldBinary =
50 vtkStaticEnSightGoldBinaryReader::SafeDownCast(this->Reader);
53 goldBinary->SetUseStaticMesh(this->UseStaticMesh);
58 vtkStaticEnSightGoldReader* gold = vtkStaticEnSightGoldReader::SafeDownCast(this->Reader);
61 gold->SetUseStaticMesh(this->UseStaticMesh);
65 vtkErrorMacro("Failed to determine static mesh version of the EnSight reader.");
69 //------------------------------------------------------------------------------
70 void vtkGenericStaticEnSightReader::PrintSelf(ostream& os, vtkIndent indent)
72 this->Superclass::PrintSelf(os, indent);
73 os << "UseStaticMesh: " << this->UseStaticMesh << std::endl;