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;
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>
114 const T*
get_row_ptr(
unsigned j,
unsigned k)
const {
return dv.get_ptr<T>(k, j); }
116 template <
typename T>
119 template <
typename T>
120 const T*
get_voxel_ptr(
unsigned i,
unsigned j,
unsigned k)
const {
return dv.get_ptr<T>(k, j, i); }
122 template <
typename T>
123 T*
get_voxel_ptr(
unsigned i,
unsigned j,
unsigned k) {
return dv.get_ptr<T>(k, j, i); }
125 template <
typename T>
141#include <cgv/config/lib_end.h>
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
this header is dependency free