10#ifndef MVE_VOLUME_HEADER
11#define MVE_VOLUME_HEADER
22template <
typename T>
class Volume;
32 typedef std::shared_ptr<Volume<T> >
Ptr;
33 typedef std::shared_ptr<Volume<T>
const>
ConstPtr;
38 static Ptr create (
int width,
int height,
int depth);
41 void allocate (
int width,
int height,
int depth);
46 Voxels const& get_data (
void)
const;
49 int width (
void)
const;
51 int height (
void)
const;
53 int depth (
void)
const;
79 bool has_colors (
void)
const;
90 std::size_t cube_vids[8];
101 void load_new_cube (
void);
129 this->data.resize(width * height * depth);
Vector class for arbitrary dimensions and types.
A volume with regular grid layout.
int depth(void) const
Returns depth of the image.
void allocate(int width, int height, int depth)
Allocates new volume space, clearing previous contents.
Voxels & get_data(void)
Returns data vector for the volume.
std::shared_ptr< Volume< T > > Ptr
static Ptr create(int width, int height, int depth)
int height(void) const
Returns height of the image.
int width(void) const
Returns width of the image.
std::shared_ptr< Volume< T > const > ConstPtr
mve::FloatVolume::Ptr vol
mve::FloatVolume::Ptr vol
#define MVE_NAMESPACE_BEGIN
#define MVE_NAMESPACE_END