3#include <cgv/math/fmat.h>
4#include <cgv/utils/token.h>
7#include "../lib_begin.h"
23 size_t get_data_size()
const;
28 extern CGV_API
bool read_volume(
const std::string& file_name,
volume& V,
volume_info* info_ptr = 0);
30 extern CGV_API
bool write_volume(
const std::string& file_name,
const volume& V,
const std::string& options =
"");
32 extern CGV_API
bool read_vox_header(
const std::string& file_name,
volume_info& info,
bool(*unknown_line_callback)(
const std::string& line,
const std::vector<cgv::utils::token>&,
volume_info& info) = 0);
34 extern CGV_API
bool read_header(
const std::string& file_name,
volume_info& info,
bool(*unknown_line_callback)(
const std::string& line,
const std::vector<cgv::utils::token>&,
volume_info& info) = 0);
36 extern CGV_API
bool write_vox_header(
const std::string& file_name,
const volume_info& info);
38 extern CGV_API
bool write_header(
const std::string& file_name,
const volume& V);
40 extern CGV_API
bool read_volume_binary(
const std::string& file_name,
const volume_info& info,
volume& V,
size_t offset = 0);
42 extern CGV_API
void toggle_volume_endian(
volume& V);
44 extern CGV_API
bool write_volume_binary(
const std::string& file_name,
const volume& V,
size_t offset = 0);
47 enum FileOrganisation {
63 std::string file_name_pattern;
64 int first_file_index, file_index_step, last_file_index;
65 int first_channel_file_index, file_channel_index_step, last_channel_file_index;
80 std::string child_directory_names[8];
99 std::string* file_name_ptr;
105 FileFormat file_format;
115#include <cgv/config/lib_end.h>
matrix of fixed size dimensions
ComponentFormat
define standard formats, which should be used to avoid wrong assignment of component names
TypeId
ids for the different types and type constructs