00001 #ifndef _FV_CONFIG_H_
00002 #define _FV_CONFIG_H_
00003
00004 #ifndef __OPENCL_VERSION__
00005 #include <CL/cl.h>
00006 #include <CL/cl_platform.h>
00007 typedef cl_float3 float3;
00008 typedef cl_float2 float2;
00009 typedef cl_int3 int3;
00010 typedef cl_int2 int2;
00011
00012 #endif
00013 #include "types.h"
00014
00015 #ifndef NDEBUG
00016 #elif defined(_DEBUG) || defined(DEBUG) || defined(__WXDEBUG__)
00017 # ifndef FV_DEBUG
00018 # define FV_DEBUG 1
00019 # endif
00020
00021 #endif
00022
00023
00024 #ifdef MOD_FEM_VIEWER
00025 # ifndef _USE_FV_LIB
00026 # define _USE_FV_LIB 1
00027 # endif
00028 #endif
00029
00030
00031 #ifndef _USE_FV_LIB
00032 # ifndef _USE_FV_IO_MGR
00033 # define _USE_FV_IO_MGR 1
00034 # endif
00035 #endif
00036
00037
00038 #ifndef _USE_FV_LIB
00039 # ifndef _USE_FV_EXT_MOD
00040 # define _USE_FV_EXT_MOD 1
00041 # endif
00042 #endif
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef _USE_FV_LIB
00056 extern const char* dgDllName;
00057 extern const char* stdDllName;
00058 extern const char* stdDll2dName;
00059 extern const char* stdhDllName;
00060 #endif
00061
00062
00063
00064 const int imageWidth = 512;
00065 #define DFLT_IMAGE_WIDTH 512
00066 const int imageHeight = 512;
00067 #define DFLT_IMAGE_HEIGHT 512
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #define MOD_FEM_VIEWER_NAME "FINITE ELEMENT MODEL VIEWER"
00083
00084 #define MAX_LEVEL_LOG LogDEBUG
00085
00086
00087 #define NUM_ELEM_THRESHOLD 2
00088 #define MAX_NUM_DOFS 128
00089
00090 #define IMG_WIDTH_CONSTRAINT 4
00091 #define IMG_HEIGHT_CONSTRAINT 1
00092
00093 extern size_t tilesize[2];
00094
00095 extern frameconfig_s * frames_p;
00096 extern frameconfig_s * current_frame_p;
00097 extern frameconfig_s last_frame_s;
00098 extern int framecount;
00099 extern cl_int lightcount;
00100 extern cl_int2 tiles;
00101 extern struct light_s * lightlist;
00102 extern float density;
00103 extern char * outname;
00104 extern char * scenefile;
00105 extern int accelstruct;
00106 extern int interactive;
00107
00108 extern const int nr_frames;
00109 extern const bool initgl;
00110 extern int img_width;
00111 extern int img_height;
00112 extern int gridcount;
00113 extern int cellcount;
00114
00115 extern float cut_planes[3][4];
00116 extern int current_plane_idx;
00117 extern float dg_density;
00118 extern int test_plane_cut;
00119 extern float fixed_light_pos[3];
00120
00121 extern float bkg_color[3];
00122 extern float node_id_color[3];
00123 extern float elem_id_color[3];
00124
00125
00126
00127
00128 #endif
00129
00130
00131