Viskores  1.0
Public Member Functions | Private Attributes | List of all members
viskores::io::VTKDataSetWriter Class Reference

Reads a legacy VTK file. More...

#include <VTKDataSetWriter.h>

Public Member Functions

 VTKDataSetWriter (const char *fileName)
 
 VTKDataSetWriter (const std::string &fileName)
 Construct a writer to save data to the given file. More...
 
void WriteDataSet (const viskores::cont::DataSet &dataSet) const
 Write data from the given DataSet object to the file specified in the constructor. More...
 
viskores::io::FileType GetFileType () const
 Get whether the file will be written in ASCII or binary format. More...
 
void SetFileType (viskores::io::FileType type)
 Set whether the file will be written in ASCII or binary format. More...
 
void SetFileTypeToAscii ()
 Set whether the file will be written in ASCII or binary format. More...
 
void SetFileTypeToBinary ()
 Set whether the file will be written in ASCII or binary format. More...
 

Private Attributes

std::string FileName
 
viskores::io::FileType FileType = viskores::io::FileType::ASCII
 

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

◆ VTKDataSetWriter() [1/2]

viskores::io::VTKDataSetWriter::VTKDataSetWriter ( const char *  fileName)

◆ VTKDataSetWriter() [2/2]

viskores::io::VTKDataSetWriter::VTKDataSetWriter ( const std::string &  fileName)

Construct a writer to save data to the given file.

Member Function Documentation

◆ GetFileType()

viskores::io::FileType viskores::io::VTKDataSetWriter::GetFileType ( ) const

Get whether the file will be written in ASCII or binary format.

◆ SetFileType()

void viskores::io::VTKDataSetWriter::SetFileType ( viskores::io::FileType  type)

Set whether the file will be written in ASCII or binary format.

◆ SetFileTypeToAscii()

void viskores::io::VTKDataSetWriter::SetFileTypeToAscii ( )
inline

Set whether the file will be written in ASCII or binary format.

◆ SetFileTypeToBinary()

void viskores::io::VTKDataSetWriter::SetFileTypeToBinary ( )
inline

Set whether the file will be written in ASCII or binary format.

◆ WriteDataSet()

void viskores::io::VTKDataSetWriter::WriteDataSet ( const viskores::cont::DataSet dataSet) const

Write data from the given DataSet object to the file specified in the constructor.

Member Data Documentation

◆ FileName

std::string viskores::io::VTKDataSetWriter::FileName
private

◆ FileType

viskores::io::FileType viskores::io::VTKDataSetWriter::FileType = viskores::io::FileType::ASCII
private

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