Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::IO::VolumeLoader Class Reference

Loads density grid for volume data. This loader support 2 file formats for density grid data. More...

#include <IO/VolumesLoader/VolumeLoader.hpp>

+ Collaboration diagram for Ra::IO::VolumeLoader:

Public Member Functions

std::vector< std::stringgetFileExtensions () const override
 
bool handleFileExtension (const std::string &extension) const override
 
Ra::Core::Asset::FileData * loadFile (const std::string &filename) override
 
std::string name () const override
 

Detailed Description

Loads density grid for volume data. This loader support 2 file formats for density grid data.

  • PVM file format (extension .pvm) from The Volume Library at http://schorsch.efi.fh-nuernberg.de/data/volume/
  • Custom file format (extension .vol, derived from pbrt heterogeneous media definition) with the following properties sigma_a [ RGB values of the absorption coefficient ] units are mm-1 sigma_s [ RGB values of the scattering coefficient ] units are mm-1 size [ w h d : 3 ints that gives the size of the grid ] density [ w*h*d white space separated floating point values defining the density ]

Definition at line 19 of file VolumeLoader.hpp.

Member Function Documentation

◆ getFileExtensions()

std::vector< std::string > Ra::IO::VolumeLoader::getFileExtensions ( ) const
override

Definition at line 25 of file VolumeLoader.cpp.

◆ handleFileExtension()

bool Ra::IO::VolumeLoader::handleFileExtension ( const std::string & extension) const
override

Definition at line 29 of file VolumeLoader.cpp.

◆ loadFile()

Ra::Core::Asset::FileData * Ra::IO::VolumeLoader::loadFile ( const std::string & filename)
override

Definition at line 195 of file VolumeLoader.cpp.

◆ name()

std::string Ra::IO::VolumeLoader::name ( ) const
override

Definition at line 203 of file VolumeLoader.cpp.


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