Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::NrrdVolumeReader Class Reference

Reader for NRRD (Nearly Raw Raster Data) files as 3D volumes. More...

#include <modules/base/io/nrrdreader.h>

+ Inheritance diagram for inviwo::NrrdVolumeReader:

Public Member Functions

virtual NrrdVolumeReaderclone () const override
 
 NrrdVolumeReader (const NrrdVolumeReader &)=default
 
 NrrdVolumeReader (NrrdVolumeReader &&) noexcept=default
 
NrrdVolumeReaderoperator= (const NrrdVolumeReader &)=default
 
NrrdVolumeReaderoperator= (NrrdVolumeReader &&) noexcept=default
 
virtual std::shared_ptr< VolumereadData (const std::filesystem::path &filePath) override
 
- Public Member Functions inherited from inviwo::DataReaderType< 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< VolumereadData (const std::filesystem::path &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
void addExtension (FileExtension ext)
 
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
virtual std::any getOption (std::string_view key)
 Query the value of an reader specific option.
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
template<typename T >
bool readsType () const
 
virtual bool setOption (std::string_view key, std::any value)
 Set reader specific options See the documentation of the specific reader for the available options.
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataReaderType< Volume >
virtual bool canRead (const std::type_index &index) const override
 
- Static Protected Member Functions inherited from inviwo::DataReader
static void checkExists (const std::filesystem::path &path)
 
static std::filesystem::path downloadAndCacheIfUrl (const std::filesystem::path &url)
 
static std::ifstream open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in)
 
static std::ifstream openAndCacheIfUrl (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in)
 
static std::string readFileContents (const std::filesystem::path &path)
 
- Protected Attributes inherited from inviwo::DataReader
std::vector< FileExtensionextensions_
 

Detailed Description

Reader for NRRD (Nearly Raw Raster Data) files as 3D volumes.

Reads 3D NRRD files (.nrrd with inline data, .nhdr with detached data). Supports raw, gzip, and bzip2 encodings. Multi-component data is supported via the NRRD "kinds" field.

Spatial metadata is derived from "spacings", "space directions", and "space origin" NRRD header fields.

See also
https://teem.sourceforge.net/nrrd/format.html

Member Function Documentation

◆ clone()

virtual NrrdVolumeReader * inviwo::NrrdVolumeReader::clone ( ) const
overridevirtual

◆ readData()

virtual std::shared_ptr< Volume > inviwo::NrrdVolumeReader::readData ( const std::filesystem::path & filePath)
overridevirtual

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