VTK-m  2.0
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

VTKM_CONT VTKDataSetReaderBase (const char *fileName)
 
VTKM_CONT VTKDataSetReaderBase (const std::string &fileName)
 
virtual VTKM_CONT ~VTKDataSetReaderBase ()
 
 VTKDataSetReaderBase (const VTKDataSetReaderBase &)=delete
 
void operator= (const VTKDataSetReaderBase &)=delete
 
const VTKM_CONT vtkm::cont::DataSetReadDataSet ()
 
const vtkm::cont::DataSetGetDataSet () const
 
virtual VTKM_CONT void PrintSummary (std::ostream &out) const
 

Protected Member Functions

VTKM_CONT void ReadPoints ()
 
VTKM_CONT void ReadCells (vtkm::cont::ArrayHandle< vtkm::Id > &connectivity, vtkm::cont::ArrayHandle< vtkm::IdComponent > &numIndices)
 
VTKM_CONT void ReadShapes (vtkm::cont::ArrayHandle< vtkm::UInt8 > &shapes)
 
VTKM_CONT void ReadAttributes ()
 
void SetCellsPermutation (const vtkm::cont::ArrayHandle< vtkm::Id > &permutation)
 
VTKM_CONT vtkm::cont::ArrayHandle< vtkm::IdGetCellsPermutation () const
 
VTKM_CONT void TransferDataFile (VTKDataSetReaderBase &reader)
 
virtual VTKM_CONT void CloseFile ()
 
virtual VTKM_CONT void Read ()=0
 
VTKM_CONT void ReadGlobalFields (std::vector< vtkm::Float32 > *visitBounds=nullptr)
 
VTKM_CONT void DoSkipArrayVariant (std::string dataType, std::size_t numElements, vtkm::IdComponent numComponents)
 
VTKM_CONT vtkm::cont::UnknownArrayHandle DoReadArrayVariant (vtkm::cont::Field::Association association, std::string dataType, std::size_t numElements, vtkm::IdComponent numComponents)
 
template<typename T >
VTKM_CONT void ReadArray (std::vector< T > &buffer)
 
template<vtkm::IdComponent NumComponents>
VTKM_CONT void ReadArray (std::vector< vtkm::Vec< vtkm::io::internal::DummyBitType, NumComponents >> &buffer)
 
VTKM_CONT 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 >)
 
VTKM_CONT void SkipArray (std::size_t numElements, vtkm::io::internal::DummyBitType, vtkm::IdComponent numComponents=1)
 
VTKM_CONT void SkipStringArray (std::size_t numStrings)
 
VTKM_CONT void SkipArrayMetaData (vtkm::IdComponent numComponents)
 

Protected Attributes

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

Private Member Functions

VTKM_CONT void OpenFile ()
 
VTKM_CONT void ReadHeader ()
 
VTKM_CONT void AddField (const std::string &name, vtkm::cont::Field::Association association, vtkm::cont::UnknownArrayHandle &data)
 
VTKM_CONT void ReadScalars (vtkm::cont::Field::Association association, std::size_t numElements)
 
VTKM_CONT void ReadColorScalars (vtkm::cont::Field::Association association, std::size_t numElements)
 
VTKM_CONT void ReadLookupTable ()
 
VTKM_CONT void ReadTextureCoordinates (vtkm::cont::Field::Association association, std::size_t numElements)
 
VTKM_CONT void ReadVectors (vtkm::cont::Field::Association association, std::size_t numElements)
 
VTKM_CONT void ReadTensors (vtkm::cont::Field::Association association, std::size_t numElements)
 
VTKM_CONT void ReadFields (vtkm::cont::Field::Association association, std::size_t expectedNumElements)
 
VTKM_CONT 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_CONT vtkm::io::VTKDataSetReaderBase::VTKDataSetReaderBase ( const char *  fileName)
explicit

◆ VTKDataSetReaderBase() [2/3]

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

◆ ~VTKDataSetReaderBase()

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

◆ VTKDataSetReaderBase() [3/3]

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

Member Function Documentation

◆ AddField()

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

◆ CloseFile()

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

Reimplemented in vtkm::io::VTKDataSetReader.

◆ DoReadArrayVariant()

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

◆ DoSkipArrayVariant()

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

◆ GetCellsPermutation()

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

◆ GetDataSet()

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

◆ OpenFile()

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

◆ operator=()

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

◆ PrintSummary()

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

Reimplemented in vtkm::io::VTKDataSetReader.

◆ Read()

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

◆ ReadArray() [1/3]

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

◆ ReadArray() [2/3]

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

◆ ReadArray() [3/3]

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

◆ ReadAttributes()

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

◆ ReadCells()

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

◆ ReadColorScalars()

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

◆ ReadDataSet()

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

◆ ReadFields()

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

◆ ReadGlobalFields()

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

◆ ReadGlobalOrPedigreeIds()

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

◆ ReadHeader()

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

◆ ReadLookupTable()

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

◆ ReadPoints()

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

◆ ReadScalars()

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

◆ ReadShapes()

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

◆ ReadTensors()

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

◆ ReadTextureCoordinates()

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

◆ ReadVectors()

VTKM_CONT 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]

VTKM_CONT 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()

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

◆ SkipStringArray()

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

◆ TransferDataFile()

VTKM_CONT 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: