Commit ba45df80 authored by Bill Lorensen's avatar Bill Lorensen

BUG: Remove broken vtkSESAMEReader

vtkSESAMEReader is not tested in VTK. Furthermore there is no data in
VTK to test it. There is data in the paraview data git repo. A small
test program that reads the paraview file fails with this error:

ERROR: VTK/Common/ExecutionModel/vtkExecutive.cxx,
line 754
vtkCompositeDataPipeline (0x7fc312002af0): Algorithm
vtkSESAMEReader(0x7fc3120022a0) returned failure for request:
vtkInformation (0x7fc31060da20)
  Debug: Off
  Modified Time: 1244
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
  FROM_OUTPUT_PORT: 0

There is vtkPrismSESAMEReader in the paraview repo that does work.

Rather than duplicate the working code in paraview, this patch remove
the untested, non-working vtkSESAMEReader from VTK/IO/Geometry.

Change-Id: I194824b28c951b2d85f26ee85d8004fda44f19d8
parent 0ae9a6d7
......@@ -21,7 +21,6 @@ SET(Module_SRCS
vtkPDBReader.cxx
vtkPlot3DMetaReader.cxx
vtkProStarReader.cxx
vtkSESAMEReader.cxx
vtkSTLReader.cxx
vtkSTLWriter.cxx
vtkTecplotReader.cxx
......
This diff is collapsed.
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSESAMEReader.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkSESAMEReader - read SESAME files
// .SECTION Description
// vtkSESAMEReader is a source object that reads SESAME files.
// Currently supported tables include 301, 304, 502, 503, 504, 505, 602
//
// SESAMEReader creates rectilinear grid datasets. The dimension of the
// dataset depends upon the number of densities and temperatures in the table.
// Values at certain temperatures and densities are stored as scalars.
//
#ifndef __vtkSESAMEReader_h
#define __vtkSESAMEReader_h
#include "vtkIOGeometryModule.h" // For export macro
#include <vtkRectilinearGridAlgorithm.h>
class vtkIntArray;
class VTKIOGEOMETRY_EXPORT vtkSESAMEReader : public vtkRectilinearGridAlgorithm
{
public:
static vtkSESAMEReader *New();
vtkTypeMacro(vtkSESAMEReader, vtkRectilinearGridAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the filename to read
void SetFileName(const char* file);
// Description:
// Get the filename to read
const char* GetFileName();
// Description:
// Return whether this is a valid file
int IsValidFile();
// Description:
// Get the number of tables in this file
int GetNumberOfTableIds();
// Description:
// Get the ids of the tables in this file
int* GetTableIds();
// Description:
// Returns the table ids in a data array.
vtkIntArray* GetTableIdsAsArray();
// Description:
// Set the table to read in
void SetTable(int tableId);
// Description:
// Get the table to read in
int GetTable();
// Description:
// Get the number of arrays for the table to read
int GetNumberOfTableArrayNames();
// Description:
// Get the number of arrays for the table to read
int GetNumberOfTableArrays()
{ return this->GetNumberOfTableArrayNames(); }
// Description:
// Get the names of arrays for the table to read
const char* GetTableArrayName(int index);
// Description:
// Set whether to read a table array
void SetTableArrayStatus(const char* name, int flag);
int GetTableArrayStatus(const char* name);
protected:
vtkSESAMEReader();
virtual ~vtkSESAMEReader();
//BTX
class MyInternal;
MyInternal* Internal;
//ETX
int OpenFile();
void CloseFile();
virtual int RequestData(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
virtual int RequestInformation(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
int ReadTableValueLine ( float *v1, float *v2, float *v3,
float *v4, float *v5);
int JumpToTable( int tableID );
void ReadTable(vtkRectilinearGrid* output);
private:
vtkSESAMEReader(const vtkSESAMEReader&); // Not implemented.
void operator=(const vtkSESAMEReader&); // Not implemented.
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment