Inviwo  0.9.10.1
Inviwo documentation
inviwo::DatVolumeSequenceReader Class Reference

Reader for *.dat files. More...

#include <datvolumesequencereader.h>

+ Inheritance diagram for inviwo::DatVolumeSequenceReader:

Public Types

using VolumeSequence = std::vector< std::shared_ptr< Volume > >
 

Public Member Functions

 DatVolumeSequenceReader (const DatVolumeSequenceReader &rhs)
 
DatVolumeSequenceReaderoperator= (const DatVolumeSequenceReader &that)
 
virtual DatVolumeSequenceReaderclone () const override
 
virtual std::shared_ptr< VolumeSequence > readData (const std::string &filePath) override
 
- Public Member Functions inherited from inviwo::DataReaderType< std::vector< std::shared_ptr< Volume > > >
 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderTypeoperator= (const DataReaderType &that)=default
 
DataReaderTypeoperator= (DataReaderType &&that) noexcept=default
 
virtual std::shared_ptr< std::vector< std::shared_ptr< Volume > > > readData (const std::string &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
void addExtension (FileExtension ext)
 

Detailed Description

Reader for *.dat files.

The following tags are supported:

  • Rawfile The name of the raw data file, should be in the same directory (Mandatory).
  • ByteOrder the byte order in the raw data file. (Optional, LittleEndian|BigEndian, default: LittleEndian).
  • DataOffset offset in byte to where the data starts
  • Resolution | Dimension The size of the data grid: nx,ny,nz (Mandatory).
  • Format The type of values in the raw file. (Mandatory)
  • Spacing | SliceThickness The size of the voxels in the data. (Optional)
  • BasisVector(1|2|3) Defines a coordinate system for the data. (Optional, overides spacing, default: 2*IdentityMatrix);
  • Offset Offsets the basis vectors in space. (Optional, defaults to center the data at the origin)
  • WorldVector(1|2|3|4) Defines a world transformation matrix that is applied last to orient the data in world space. (Optional, default: IdentityMatrix)
  • DatFile Relative path to other file to create a VolumeSequence from The tag names are case insensitive and should always be followed by a ":" Anything after a '#' will be considered a comment.

Supports reading VolumeSequence (for example time-varying volume data) by specifying multiple .dat files.

Example:

  • Datfile: sequence0.dat
  • Datfile: sequence1.dat
  • Datfile: sequence2.dat

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