VTK-m
2.2
|
Reads a legacy VTK file. More...
#include <VTKDataSetReader.h>
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::DataSet & | ReadDataSet () |
Load data from the file and return it in a DataSet object. More... | |
const vtkm::cont::DataSet & | GetDataSet () const |
Private Member Functions | |
void | CloseFile () override |
void | Read () override |
Private Attributes | |
std::unique_ptr< VTKDataSetReaderBase > | Reader |
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::Id > | GetCellsPermutation () 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 |
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
.
vtkm::io::VTKDataSetReader::VTKDataSetReader | ( | const char * | fileName | ) |
vtkm::io::VTKDataSetReader::VTKDataSetReader | ( | const std::string & | fileName | ) |
Construct a reader to load data from the given file.
|
override |
|
delete |
|
overrideprivatevirtual |
Reimplemented from vtkm::io::VTKDataSetReaderBase.
|
delete |
|
overridevirtual |
Reimplemented from vtkm::io::VTKDataSetReaderBase.
|
overrideprivatevirtual |
Implements vtkm::io::VTKDataSetReaderBase.
|
private |