Radium Engine  1.5.0
VolumeLoader.hpp
1 #pragma once
2 
3 #include <Core/Asset/FileLoaderInterface.hpp>
4 #include <IO/RaIO.hpp>
5 
6 namespace Ra {
7 namespace IO {
19 class RA_IO_API VolumeLoader : public Ra::Core::Asset::FileLoaderInterface
20 {
21  public:
22  VolumeLoader();
23 
24  ~VolumeLoader() override;
25 
26  std::vector<std::string> getFileExtensions() const override;
27  bool handleFileExtension( const std::string& extension ) const override;
28  Ra::Core::Asset::FileData* loadFile( const std::string& filename ) override;
29  std::string name() const override;
30 
31  private:
37  Ra::Core::Asset::FileData* loadVolFile( const std::string& filename );
38 
44  Ra::Core::Asset::FileData* loadPvmFile( const std::string& filename );
45 };
46 
47 } // namespace IO
48 } // namespace Ra
Loads density grid for volume data. This loader support 2 file formats for density grid data.
Definition: Cage.cpp:3