Radium Engine  1.5.0
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>

Inherits Ra::Core::Asset::FileLoaderInterface.

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

Public Member Functions

std::vector< std::string > getFileExtensions () 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.


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