Density.C File Reference

Convert an xyz point set into a volume density Uses a voxel representation. More...

#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <term.h>
#include <sys/select.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <vector>
#include "VolHeader.H"
#include "Density.H"
#include "debug.H"

Functions

char * ReadDataUnsigned (char *data, const size_t bitsPerVoxel, size_t &val, bool &ok)
 Read unsigned data from memory give a bitsPerVoxel.

Variables

static const UNUSED char * RCSid = "@(#) $Id: Density.C,v 1.26 2006/03/01 13:23:09 schwehr Exp $"
 Let the debugger find out which version is being used.


Detailed Description

Convert an xyz point set into a volume density Uses a voxel representation.


Function Documentation

char* ReadDataUnsigned char *  data,
const size_t  bitsPerVoxel,
size_t &  val,
bool &  ok
 

Read unsigned data from memory give a bitsPerVoxel.

Parameters:
data Pointer to the current data item
bitsPerVoxel yada yada... NOT bytes
val Returns value read here
ok bool set to false if trouble
Returns:
Pointer to the next data item or 0 if an error
Bug:
Would be nice to handle 1, 2, and 4 bit voxels for huge grids Just need to add a new arg of the bit index


Variable Documentation

const UNUSED char* RCSid = "@(#) $Id: Density.C,v 1.26 2006/03/01 13:23:09 schwehr Exp $" [static]
 

Let the debugger find out which version is being used.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6