VTK-m
2.2
|
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 vtkm::cont::DataSet &dataSet) const |
Write data from the given DataSet object to the file specified in the constructor. More... | |
vtkm::io::FileType | GetFileType () const |
Get whether the file will be written in ASCII or binary format. More... | |
void | SetFileType (vtkm::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 |
vtkm::io::FileType | FileType = vtkm::io::FileType::ASCII |
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::VTKDataSetWriter::VTKDataSetWriter | ( | const char * | fileName | ) |
vtkm::io::VTKDataSetWriter::VTKDataSetWriter | ( | const std::string & | fileName | ) |
Construct a writer to save data to the given file.
vtkm::io::FileType vtkm::io::VTKDataSetWriter::GetFileType | ( | ) | const |
Get whether the file will be written in ASCII or binary format.
void vtkm::io::VTKDataSetWriter::SetFileType | ( | vtkm::io::FileType | type | ) |
Set whether the file will be written in ASCII or binary format.
|
inline |
Set whether the file will be written in ASCII or binary format.
|
inline |
Set whether the file will be written in ASCII or binary format.
void vtkm::io::VTKDataSetWriter::WriteDataSet | ( | const vtkm::cont::DataSet & | dataSet | ) | const |
Write data from the given DataSet
object to the file specified in the constructor.
|
private |
|
private |