Main Page | Modules | Data Structures | File List | Data Fields | Globals

massspec/mesh2D.h

00001 #ifndef _MESH2D_H_ 00002 #define _MESH2D_H_ 00003 00004 /* MESH2D.H */ 00005 /* Date 2003-12-17 */ 00006 00007 /* ************** DEFINE THE MESH2D DATA STRUCTURE ************* */ 00008 00009 struct Mesh2D 00010 { 00011 int x_size; 00012 int y_size; 00013 float* x_sampling_array; 00014 float* y_sampling_array; 00015 00016 // NOTE!! Sampling arrays start with index 1 00017 00018 // Raw Data 00019 float** z_value_matrix; 00020 } ; 00021 00022 typedef struct Mesh2D Mesh2D; 00023 00024 enum {MESH2D_POSITION_ABSL, MESH2D_POSITION_SMPL}; 00025 00026 int Mesh2D_isPointInside(Mesh2D* mesh, int x, int y); 00027 void Mesh2D_setSamplingArraySizes(Mesh2D* mesh, int x_size, int y_size); 00028 void Mesh2D_setXSamplingArray(Mesh2D* mesh, float* x_sampling_array); 00029 void Mesh2D_setYSamplingArray(Mesh2D* mesh, float* y_sampling_array); 00030 void Mesh2D_mallocRowsArray(Mesh2D* mesh, int x_size); 00031 void Mesh2D_malloc(Mesh2D* mesh, int x_size, int y_size); 00032 00033 #endif 00034 00035

Generated on Sun Feb 13 01:05:58 2005 for MapQuant by doxygen 1.3.7