3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Enumerations | Functions | Variables
voxels.h File Reference
#include "common/basics.h"
#include <stack>
#include <numeric>
#include <typeinfo>
#include <vigra/multi_array.hxx>
#include <vigra/multi_convolution.hxx>
#include <vigra/accumulator.hxx>
Include dependency graph for voxels.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Voxels< T >
 Template class that stores 3D voxel data. More...
 

Macros

#define M_PI   3.14159265358979323846
 

Enumerations

enum  {
  BOUND_CLIP =1, BOUND_HOLD, BOUND_DERIV_HOLD, BOUND_MIRROR,
  BOUND_ZERO, BOUND_ENUM_END
}
 Boundary clipping mode. More...
 
enum  { VOX_INTERP_NONE, VOX_INTERP_LINEAR, VOX_INTERP_ENUM_END }
 
enum  { ADJ_ALL, ADJ_PLUS }
 
enum  { VOXELS_BAD_FILE_READ =1, VOXELS_BAD_FILE_OPEN, VOXELS_BAD_FILE_SIZE, VOXELS_OUT_OF_MEMORY }
 
enum  { CLIP_NONE =0, CLIP_LOWER_SOUTH_WEST, CLIP_UPPER_NORTH_EAST }
 Clipping direction constants. More...
 
enum  { VOXEL_ABORT_ERR, VOXEL_MEMORY_ERR, VOXEL_BOUNDS_INVALID_ERR }
 

Functions

template<class T , class U >
void castVoxels (const Voxels< T > &src, Voxels< U > &dest)
 Convert one type of voxel into another by assignment operator. More...
 
template<class T , class U >
void sumVoxels (const Voxels< T > &src, U &counter)
 Use one counting type to sum counts in a voxel of given type. More...
 

Variables

const unsigned int MAX_CALLBACK =500
 
const unsigned int ITEM_BUFFER_SIZE =65536
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Boundary clipping mode.

These constants defines the behaviour of the routines when presented with a boundary value problem, such as in convolution.

Enumerator
BOUND_CLIP 
BOUND_HOLD 
BOUND_DERIV_HOLD 
BOUND_MIRROR 
BOUND_ZERO 
BOUND_ENUM_END 

◆ anonymous enum

anonymous enum
Enumerator
VOX_INTERP_NONE 
VOX_INTERP_LINEAR 
VOX_INTERP_ENUM_END 

◆ anonymous enum

anonymous enum
Enumerator
ADJ_ALL 
ADJ_PLUS 

◆ anonymous enum

anonymous enum
Enumerator
VOXELS_BAD_FILE_READ 
VOXELS_BAD_FILE_OPEN 
VOXELS_BAD_FILE_SIZE 
VOXELS_OUT_OF_MEMORY 

◆ anonymous enum

anonymous enum

Clipping direction constants.

Controls the clipping direction when performing clipping operations

Enumerator
CLIP_NONE 
CLIP_LOWER_SOUTH_WEST 
CLIP_UPPER_NORTH_EAST 

◆ anonymous enum

anonymous enum
Enumerator
VOXEL_ABORT_ERR 
VOXEL_MEMORY_ERR 
VOXEL_BOUNDS_INVALID_ERR 

Function Documentation

◆ castVoxels()

template<class T , class U >
void castVoxels ( const Voxels< T > &  src,
Voxels< U > &  dest 
)

Convert one type of voxel into another by assignment operator.

◆ sumVoxels()

template<class T , class U >
void sumVoxels ( const Voxels< T > &  src,
U &  counter 
)

Use one counting type to sum counts in a voxel of given type.

References Voxels< T >::getData(), Voxels< T >::getSize(), and Voxels< T >::size().

Referenced by VoxeliseFilter::getRefreshUseMask().

Here is the caller graph for this function:

Variable Documentation

◆ ITEM_BUFFER_SIZE

const unsigned int ITEM_BUFFER_SIZE =65536

◆ MAX_CALLBACK

const unsigned int MAX_CALLBACK =500

Referenced by countPoints().