00001 /*00002 * Copyright (c) 2005 Institute for Visualization and Interactive00003 * Systems, University of Stuttgart, Germany00004 *00005 * This source code is distributed as part of the single-pass volume00006 * rendering project. Details about this project can be found on the00007 * project web page at http://www.vis.uni-stuttgart.de/eng/research/00008 * fields/current/spvolren. This file may be distributed, modified,00009 * and used free of charge as long as this copyright notice is00010 * included in its original form. Commercial use is strictly00011 * prohibited.00012 *00013 * Filename: reader.h00014 * 00015 */00016
00017 #ifndef _READER_H00018 #define _READER_H00019
00020typedefenum {DATRAW_UCHAR, DATRAW_FLOAT, DATRAW_USHORT} DataType;
00021
00022 voidreadData(char *filename, int *sizes, float *dists, void **data,
00023 DataType *type, int *numComponents);
00024
00025 intgetDataTypeSize(DataType t);
00026
00027 #endif