Commit 7a1fc573 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot

Merge topic 'vtk-image-reader-obj-factory'

83594a6d vtkPVImageReader: replace with vtkImageReader
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !2899
parents 57b7cbba 83594a6d
Pipeline #125215 failed with stage
in 0 seconds
<ServerManagerConfiguration>
<ProxyGroup name="internal_sources">
<Proxy label="Image Reader Core" name="ImageReaderCore" class="vtkPVImageReader">
<Proxy label="Image Reader Core" name="ImageReaderCore" class="vtkImageReader">
<Documentation long_help="Reads raw regular rectilinear grid data from a file. The dimensions and type of the data must be specified."
short_help="Read raw regular rectilinear grid data from a file.">
The Image reader reads raw, regular, rectilinear grid
......
......@@ -110,7 +110,6 @@ set(Module_SRCS
vtkPVGlyphFilter.cxx
vtkPVGlyphFilterLegacy.cxx
vtkPVGridAxes3DActor.cxx
vtkPVImageReader.cxx
vtkPVLinearExtrusionFilter.cxx
vtkPVMetaClipDataSet.cxx
vtkPVMetaSliceDataSet.cxx
......
/*=========================================================================
Program: ParaView
Module: vtkPVImageReader.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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.
=========================================================================*/
#include "vtkPVImageReader.h"
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkPVImageReader);
//-----------------------------------------------------------------------------
vtkPVImageReader::vtkPVImageReader()
{
}
//-----------------------------------------------------------------------------
vtkPVImageReader::~vtkPVImageReader()
{
}
//-----------------------------------------------------------------------------
void vtkPVImageReader::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
}
/*=========================================================================
Program: ParaView
Module: vtkPVImageReader.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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.
=========================================================================*/
/**
* @class vtkPVImageReader
* @brief ImageReader that automatically switch between
* vtkMPIImageReader or vtkImageReader based on the build setup.
*/
#ifndef vtkPVImageReader_h
#define vtkPVImageReader_h
#include "vtkPVConfig.h" // for PARAVIEW_USE_MPI
#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#ifdef PARAVIEW_USE_MPI
#include "vtkMPIImageReader.h" // For MPI-enabled builds
#else
#include "vtkImageReader.h" // For non-MPI builds
#endif
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVImageReader : public
#ifdef PARAVIEW_USE_MPI
vtkMPIImageReader
#else
vtkImageReader
#endif
{
public:
static vtkPVImageReader* New();
#ifdef PARAVIEW_USE_MPI
vtkTypeMacro(vtkPVImageReader, vtkMPIImageReader);
#else
vtkTypeMacro(vtkPVImageReader, vtkImageReader);
#endif
int CanReadFile(const char*) VTK_OVERRIDE { return 1; }
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
protected:
vtkPVImageReader();
~vtkPVImageReader() override;
private:
vtkPVImageReader(const vtkPVImageReader&) = delete;
void operator=(const vtkPVImageReader&) = delete;
};
#endif
// VTK-HeaderTest-Exclude: vtkPVImageReader.h
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