VTK-m  2.2
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
vtkm::io::VTKDataSetReaderBase Class Referenceabstract

#include <VTKDataSetReaderBase.h>

Inheritance diagram for vtkm::io::VTKDataSetReaderBase:
vtkm::io::VTKDataSetReader vtkm::io::VTKPolyDataReader vtkm::io::VTKRectilinearGridReader vtkm::io::VTKStructuredGridReader vtkm::io::VTKStructuredPointsReader vtkm::io::VTKUnstructuredGridReader

Public Member Functions

 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
 
virtual void PrintSummary (std::ostream &out) const
 

Protected Member Functions

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)
 
virtual void CloseFile ()
 
virtual void Read ()=0
 
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

std::unique_ptr< internal::VTKDataSetFile > DataFile
 
vtkm::cont::DataSet DataSet
 

Private Member Functions

void OpenFile ()
 
void ReadHeader ()
 
void AddField (const std::string &name, vtkm::cont::Field::Association association, vtkm::cont::UnknownArrayHandle &data)
 
void ReadScalars (vtkm::cont::Field::Association association, std::size_t numElements)
 
void ReadColorScalars (vtkm::cont::Field::Association association, std::size_t numElements)
 
void ReadLookupTable ()
 
void ReadTextureCoordinates (vtkm::cont::Field::Association association, std::size_t numElements)
 
void ReadVectors (vtkm::cont::Field::Association association, std::size_t numElements)
 
void ReadTensors (vtkm::cont::Field::Association association, std::size_t numElements)
 
void ReadFields (vtkm::cont::Field::Association association, std::size_t expectedNumElements)
 
void ReadGlobalOrPedigreeIds (vtkm::cont::Field::Association association, std::size_t numElements)
 

Private Attributes

bool Loaded
 
vtkm::cont::ArrayHandle< vtkm::IdCellsPermutation
 

Friends

class VTKDataSetReader
 

Constructor & Destructor Documentation

◆ VTKDataSetReaderBase() [1/3]

vtkm::io::VTKDataSetReaderBase::VTKDataSetReaderBase ( const char *  fileName)
explicit

◆ VTKDataSetReaderBase() [2/3]

vtkm::io::VTKDataSetReaderBase::VTKDataSetReaderBase ( const std::string &  fileName)
explicit

◆ ~VTKDataSetReaderBase()

virtual vtkm::io::VTKDataSetReaderBase::~VTKDataSetReaderBase ( )
virtual

◆ VTKDataSetReaderBase() [3/3]

vtkm::io::VTKDataSetReaderBase::VTKDataSetReaderBase ( const VTKDataSetReaderBase )
delete

Member Function Documentation

◆ AddField()

void vtkm::io::VTKDataSetReaderBase::AddField ( const std::string &  name,
vtkm::cont::Field::Association  association,
vtkm::cont::UnknownArrayHandle data 
)
private

◆ CloseFile()

virtual void vtkm::io::VTKDataSetReaderBase::CloseFile ( )
protectedvirtual

Reimplemented in vtkm::io::VTKDataSetReader.

◆ DoReadArrayVariant()

vtkm::cont::UnknownArrayHandle vtkm::io::VTKDataSetReaderBase::DoReadArrayVariant ( vtkm::cont::Field::Association  association,
std::string  dataType,
std::size_t  numElements,
vtkm::IdComponent  numComponents 
)
protected

◆ DoSkipArrayVariant()

void vtkm::io::VTKDataSetReaderBase::DoSkipArrayVariant ( std::string  dataType,
std::size_t  numElements,
vtkm::IdComponent  numComponents 
)
protected

◆ GetCellsPermutation()

vtkm::cont::ArrayHandle<vtkm::Id> vtkm::io::VTKDataSetReaderBase::GetCellsPermutation ( ) const
inlineprotected

◆ GetDataSet()

const vtkm::cont::DataSet& vtkm::io::VTKDataSetReaderBase::GetDataSet ( ) const
inline

◆ OpenFile()

void vtkm::io::VTKDataSetReaderBase::OpenFile ( )
private

◆ operator=()

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

◆ PrintSummary()

virtual void vtkm::io::VTKDataSetReaderBase::PrintSummary ( std::ostream &  out) const
virtual

Reimplemented in vtkm::io::VTKDataSetReader.

◆ Read()

virtual void vtkm::io::VTKDataSetReaderBase::Read ( )
protectedpure virtual

◆ ReadArray() [1/3]

template<typename T >
void vtkm::io::VTKDataSetReaderBase::ReadArray ( std::vector< T > &  buffer)
inlineprotected

◆ ReadArray() [2/3]

void vtkm::io::VTKDataSetReaderBase::ReadArray ( std::vector< vtkm::io::internal::DummyBitType > &  buffer)
protected

◆ ReadArray() [3/3]

template<vtkm::IdComponent NumComponents>
void vtkm::io::VTKDataSetReaderBase::ReadArray ( std::vector< vtkm::Vec< vtkm::io::internal::DummyBitType, NumComponents >> &  buffer)
inlineprotected

◆ ReadAttributes()

void vtkm::io::VTKDataSetReaderBase::ReadAttributes ( )
protected

◆ ReadCells()

void vtkm::io::VTKDataSetReaderBase::ReadCells ( vtkm::cont::ArrayHandle< vtkm::Id > &  connectivity,
vtkm::cont::ArrayHandle< vtkm::IdComponent > &  numIndices 
)
protected

◆ ReadColorScalars()

void vtkm::io::VTKDataSetReaderBase::ReadColorScalars ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ ReadDataSet()

const vtkm::cont::DataSet& vtkm::io::VTKDataSetReaderBase::ReadDataSet ( )

Load data from the file and return it in a DataSet object.

◆ ReadFields()

void vtkm::io::VTKDataSetReaderBase::ReadFields ( vtkm::cont::Field::Association  association,
std::size_t  expectedNumElements 
)
private

◆ ReadGlobalFields()

void vtkm::io::VTKDataSetReaderBase::ReadGlobalFields ( std::vector< vtkm::Float32 > *  visitBounds = nullptr)
protected

◆ ReadGlobalOrPedigreeIds()

void vtkm::io::VTKDataSetReaderBase::ReadGlobalOrPedigreeIds ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ ReadHeader()

void vtkm::io::VTKDataSetReaderBase::ReadHeader ( )
private

◆ ReadLookupTable()

void vtkm::io::VTKDataSetReaderBase::ReadLookupTable ( )
private

◆ ReadPoints()

void vtkm::io::VTKDataSetReaderBase::ReadPoints ( )
protected

◆ ReadScalars()

void vtkm::io::VTKDataSetReaderBase::ReadScalars ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ ReadShapes()

void vtkm::io::VTKDataSetReaderBase::ReadShapes ( vtkm::cont::ArrayHandle< vtkm::UInt8 > &  shapes)
protected

◆ ReadTensors()

void vtkm::io::VTKDataSetReaderBase::ReadTensors ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ ReadTextureCoordinates()

void vtkm::io::VTKDataSetReaderBase::ReadTextureCoordinates ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ ReadVectors()

void vtkm::io::VTKDataSetReaderBase::ReadVectors ( vtkm::cont::Field::Association  association,
std::size_t  numElements 
)
private

◆ SetCellsPermutation()

void vtkm::io::VTKDataSetReaderBase::SetCellsPermutation ( const vtkm::cont::ArrayHandle< vtkm::Id > &  permutation)
inlineprotected

◆ SkipArray() [1/3]

template<typename T >
void vtkm::io::VTKDataSetReaderBase::SkipArray ( std::size_t  numElements,
 
)
inlineprotected

◆ SkipArray() [2/3]

void vtkm::io::VTKDataSetReaderBase::SkipArray ( std::size_t  numElements,
vtkm::io::internal::DummyBitType  ,
vtkm::IdComponent  numComponents = 1 
)
protected

◆ SkipArray() [3/3]

template<vtkm::IdComponent NumComponents>
void vtkm::io::VTKDataSetReaderBase::SkipArray ( std::size_t  numElements,
vtkm::Vec< vtkm::io::internal::DummyBitType, NumComponents >   
)
inlineprotected

◆ SkipArrayMetaData()

void vtkm::io::VTKDataSetReaderBase::SkipArrayMetaData ( vtkm::IdComponent  numComponents)
protected

◆ SkipStringArray()

void vtkm::io::VTKDataSetReaderBase::SkipStringArray ( std::size_t  numStrings)
protected

◆ TransferDataFile()

void vtkm::io::VTKDataSetReaderBase::TransferDataFile ( VTKDataSetReaderBase reader)
inlineprotected

Friends And Related Function Documentation

◆ VTKDataSetReader

friend class VTKDataSetReader
friend

Member Data Documentation

◆ CellsPermutation

vtkm::cont::ArrayHandle<vtkm::Id> vtkm::io::VTKDataSetReaderBase::CellsPermutation
private

◆ DataFile

std::unique_ptr<internal::VTKDataSetFile> vtkm::io::VTKDataSetReaderBase::DataFile
protected

◆ DataSet

vtkm::cont::DataSet vtkm::io::VTKDataSetReaderBase::DataSet
protected

◆ Loaded

bool vtkm::io::VTKDataSetReaderBase::Loaded
private

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