VTK-m  2.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::io::VTKDataSetReader Class Reference

Reads a legacy VTK file. More...

#include <VTKDataSetReader.h>

Inheritance diagram for vtkm::io::VTKDataSetReader:
vtkm::io::VTKDataSetReaderBase

Public Member Functions

 VTKDataSetReader (const char *fileName)
 
 VTKDataSetReader (const std::string &fileName)
 Construct a reader to load data from the given file. More...
 
 ~VTKDataSetReader () override
 
 VTKDataSetReader (const VTKDataSetReader &)=delete
 
void operator= (const VTKDataSetReader &)=delete
 
void PrintSummary (std::ostream &out) const override
 
- Public Member Functions inherited from vtkm::io::VTKDataSetReaderBase
 VTKDataSetReaderBase (const char *fileName)
 
 VTKDataSetReaderBase (const std::string &fileName)
 
virtual ~VTKDataSetReaderBase ()
 
 VTKDataSetReaderBase (const VTKDataSetReaderBase &)=delete
 
void operator= (const VTKDataSetReaderBase &)=delete
 
const vtkm::cont::DataSetReadDataSet ()
 Load data from the file and return it in a DataSet object. More...
 
const vtkm::cont::DataSetGetDataSet () const
 

Private Member Functions

void CloseFile () override
 
void Read () override
 

Private Attributes

std::unique_ptr< VTKDataSetReaderBaseReader
 

Additional Inherited Members

- Protected Member Functions inherited from vtkm::io::VTKDataSetReaderBase
void ReadPoints ()
 
void ReadCells (vtkm::cont::ArrayHandle< vtkm::Id > &connectivity, vtkm::cont::ArrayHandle< vtkm::IdComponent > &numIndices)
 
void ReadShapes (vtkm::cont::ArrayHandle< vtkm::UInt8 > &shapes)
 
void ReadAttributes ()
 
void SetCellsPermutation (const vtkm::cont::ArrayHandle< vtkm::Id > &permutation)
 
vtkm::cont::ArrayHandle< vtkm::IdGetCellsPermutation () const
 
void TransferDataFile (VTKDataSetReaderBase &reader)
 
void ReadGlobalFields (std::vector< vtkm::Float32 > *visitBounds=nullptr)
 
void DoSkipArrayVariant (std::string dataType, std::size_t numElements, vtkm::IdComponent numComponents)
 
vtkm::cont::UnknownArrayHandle DoReadArrayVariant (vtkm::cont::Field::Association association, std::string dataType, std::size_t numElements, vtkm::IdComponent numComponents)
 
template<typename T >
void ReadArray (std::vector< T > &buffer)
 
template<vtkm::IdComponent NumComponents>
void ReadArray (std::vector< vtkm::Vec< vtkm::io::internal::DummyBitType, NumComponents >> &buffer)
 
void ReadArray (std::vector< vtkm::io::internal::DummyBitType > &buffer)
 
template<typename T >
void SkipArray (std::size_t numElements, T)
 
template<vtkm::IdComponent NumComponents>
void SkipArray (std::size_t numElements, vtkm::Vec< vtkm::io::internal::DummyBitType, NumComponents >)
 
void SkipArray (std::size_t numElements, vtkm::io::internal::DummyBitType, vtkm::IdComponent numComponents=1)
 
void SkipStringArray (std::size_t numStrings)
 
void SkipArrayMetaData (vtkm::IdComponent numComponents)
 
- Protected Attributes inherited from vtkm::io::VTKDataSetReaderBase
std::unique_ptr< internal::VTKDataSetFile > DataFile
 
vtkm::cont::DataSet DataSet
 

Detailed Description

Reads a legacy VTK file.

By convention, legacy VTK files have a .vtk extension. This class should be constructed with a filename, and the data read with ReadDataSet.

Constructor & Destructor Documentation

◆ VTKDataSetReader() [1/3]

vtkm::io::VTKDataSetReader::VTKDataSetReader ( const char *  fileName)

◆ VTKDataSetReader() [2/3]

vtkm::io::VTKDataSetReader::VTKDataSetReader ( const std::string &  fileName)

Construct a reader to load data from the given file.

◆ ~VTKDataSetReader()

vtkm::io::VTKDataSetReader::~VTKDataSetReader ( )
override

◆ VTKDataSetReader() [3/3]

vtkm::io::VTKDataSetReader::VTKDataSetReader ( const VTKDataSetReader )
delete

Member Function Documentation

◆ CloseFile()

void vtkm::io::VTKDataSetReader::CloseFile ( )
overrideprivatevirtual

Reimplemented from vtkm::io::VTKDataSetReaderBase.

◆ operator=()

void vtkm::io::VTKDataSetReader::operator= ( const VTKDataSetReader )
delete

◆ PrintSummary()

void vtkm::io::VTKDataSetReader::PrintSummary ( std::ostream &  out) const
overridevirtual

Reimplemented from vtkm::io::VTKDataSetReaderBase.

◆ Read()

void vtkm::io::VTKDataSetReader::Read ( )
overrideprivatevirtual

Member Data Documentation

◆ Reader

std::unique_ptr<VTKDataSetReaderBase> vtkm::io::VTKDataSetReader::Reader
private

The documentation for this class was generated from the following file: