3#include <cgv/math/fvec.h>
4#include <cgv/media/axis_aligned_box.h>
5#include <cgv/data/data_view.h>
6#include <cgv/type/info/type_id.h>
8#include "../lib_begin.h"
17 typedef float coord_type;
69 size_t get_size()
const {
return get_voxel_size() * get_nr_voxels(); }
75 virtual dimension_type get_dimensions()
const;
77 size_t get_nr_voxels()
const;
79 virtual void resize(
const dimension_type& S);
85 box_type get_box()
const;
91 extent_type get_spacing()
const;
101 template <
typename T>
104 template <
typename T>
107 template <
typename T>
110 template <
typename T>
113 template <
typename T>
116 template <
typename T>
119 template <
typename T>
122 template <
typename T>
125 template <
typename T>
141#include <cgv/config/lib_end.h>
S get(unsigned ci) const
constant access to the ci-th component
cgv::type::func::transfer_const< P, S * >::type get_ptr() const
return a data pointer to type S
the data view gives access to a data array of one, two, three or four dimensions.
A vector with zero based index.
ComponentFormat
define standard formats, which should be used to avoid wrong assignment of component names
unsigned int get_type_size(TypeId tid)
function that returns the size of a type specified through TypeId
TypeId
ids for the different types and type constructs