Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Defines.h

00001 
00002 #if !defined DEFINES_H__
00003 #define DEFINES_H__ 
00004 
00005 // Pi.
00006 #define PI                                                       3.14159265f
00007 
00008 // binary values used for indexing in triliear interpolators.
00009 #define B_000                                            0
00010 #define B_001                                            1
00011 #define B_010                                            2
00012 #define B_011                                            3
00013 #define B_100                                            4
00014 #define B_101                                            5
00015 #define B_110                                            6
00016 #define B_111                                            7
00017 
00018 // Default parameters for sampling equitations.
00019 #define DEF_PARAM1                                       5.0f
00020 #define DEF_PARAM2                                       5.0f
00021 #define DEF_PARAM3                                       0.2f
00022 
00023 // Default field dimensions.
00024 #define DEF_XDIM                                     100
00025 #define DEF_YDIM                                         100
00026 #define DEF_ZDIM                                         100
00027 
00028 // Default parameters for main-algorithm(= ESS)
00029 
00030 // Default number of seedpoint-candidates computed for every samplepoint.
00031 #define DEF_CA_PER_SP                            7
00032 
00033 // Default step size of integrator
00034 #define DEF_DT                                           0.002f
00035 
00036 // Default separating distance in percent of x-width of vectorfield.
00037 #define DEF_DSEP_PERC                            5.0f
00038 
00039 // Default absolute dsep.
00040 #define DEF_DSEP                                         7.0f
00041 
00042 // Default max-value for streamline integration.
00043 #define DEF_MAXITERATIONS                        2000
00044 
00045 // Default value for test distance.
00046 #define DEF_DTEST                                        0.5f
00047 
00048 // Default index values for radio button.
00049 #define DEF_EULER_INDEX                          0
00050 #define DEF_RK2_INDEX                            1
00051 #define DEF_RK4_INDEX                            2
00052 
00053 // Default index values for radio button.
00054 #define DEF_NN_INDEX                             0
00055 #define DEF_TRILINEAR_INDEX                      1
00056 #define DEF_TRILINEARVL_INDEX            2
00057 
00058 // FocusContext recalc-parameter radio values.
00059 #define DEF_NEWBOUND_INDEX                      0
00060 #define DEF_SEEDREG_INDEX                       1
00061 
00062 // Default diffuse correction value.
00063 #define DEF_DIFFUSE_CORRECTION           2.0f
00064 
00065 // Default glossiness of streamlines.
00066 #define DEF_GLOSSINESS                           70.0f
00067 
00068 // Default material values.
00069 #define DEF_MAT_AMB_R                            30
00070 #define DEF_MAT_AMB_G                            50
00071 #define DEF_MAT_AMB_B                            30
00072 
00073 #define DEF_MAT_DIF_R                            50
00074 #define DEF_MAT_DIF_G                            200
00075 #define DEF_MAT_DIF_B                            50
00076 
00077 #define DEF_MAT_SPEC_R                           200
00078 #define DEF_MAT_SPEC_G                           255
00079 #define DEF_MAT_SPEC_B                           200
00080 
00081 // Default size of texture map.
00082 #define DEF_TEXTURE_SIZE                         256
00083 
00084 // Hints for UpdateAllViews call.
00085 #define DEF_HINT_DRAW_NEW_STREAMLINE 1
00086 #define DEF_HINT_INIT_SCENE                      2
00087 #define DEF_HINT_REDRAW_SCENE            4
00088 
00089 // minimal values for sliders.
00090 #define DEF_DSEPSLIDER_MIN                       10
00091 #define DEF_DTESTSLIDER_MIN                      100
00092 #define DEF_DTSLIDER_MIN                         1
00093 #define DEF_MAXITERATIONSLIDER_MIN       10
00094 #define DEF_MAXSTREAMLINESLIDER_MIN      0
00095 #define DEF_CAPERSPSLIDER_MIN            1
00096 
00097 #define DEF_LINEWIDTHSLIDER_MIN          10
00098 #define DEF_INTERPOSSLIDER_MIN           0
00099 #define DEF_REGIONSLIDER_MIN             0
00100 #define DEF_HIGHLIGHTSLIDER_MIN          1
00101 #define DEF_DIFFUSECORRSLIDER_MIN        100
00102 #define DEF_RESNUMSLIDER_MIN             1
00103 #define DEF_ENDTAP_WIDTHSLIDER_MIN       1
00104 
00105 #define DEF_P1SLIDER_MIN                         -200                    
00106 #define DEF_P2SLIDER_MIN                         -200
00107 #define DEF_P3SLIDER_MIN                         -200
00108 
00109 #define DEF_XDIMSLIDER_MIN                       1
00110 #define DEF_YDIMSLIDER_MIN                       1
00111 #define DEF_ZDIMSLIDER_MIN                       1
00112 
00113 #define DEF_PERIODLENGTHSLIDER_MIN       2
00114 #define DEF_ABSORPTIONSLIDER_MIN         0
00115 
00116 #define DEF_GAPSLIDER_MIN                        0
00117 #define DEF_OPACITYSLIDER_MIN            0
00118 #define DEF_MINDISTANCESLIDER_MIN        0
00119 #define DEF_PERCENTSLIDER_MIN            0
00120 
00121 #define DEF_SPEEDSLIDER_MIN                      1
00122 #define DEF_INTENSITYSLIDER_MIN          0
00123 #define DEF_ARROWLENGTHSLIDER_MIN        10
00124 #define DEF_ARROWWIDTHSLIDER_MIN         10
00125 #define DEF_BLOCK_ZOFFSSLIDER_MIN        0
00126 
00127 #define DEF_AR_PERIODSLIDER_MIN          0
00128 
00129 // Maximum values for sliders.
00130 #define DEF_ARROWWIDTHSLIDER_MAX         50
00131 #define DEF_ARROWLENGTHSLIDER_MAX        100
00132 #define DEF_SPEEDSLIDER_MAX                      200
00133 #define DEF_DSEPSLIDER_MAX                       1000
00134 #define DEF_DTESTSLIDER_MAX                      1000
00135 #define DEF_DTSLIDER_MAX                         1000
00136 #define DEF_GAPSLIDER_MAX                        500
00137 #define DEF_PERCENTSLIDER_MAX            100
00138 #define DEF_RESNUMSLIDER_MAX             100
00139  
00140 #define DEF_MAXITERATIONSLIDER_MAX       10000
00141 #define DEF_MAXSTREAMLINESLIDER_MAX      10000
00142 #define DEF_CAPERSPSLIDER_MAX            100
00143 
00144 #define DEF_LINEWIDTHSLIDER_MAX          100
00145 #define DEF_INTERPOSSLIDER_MAX           1000
00146 #define DEF_REGIONSLIDER_MAX             1000
00147 #define DEF_HIGHLIGHTSLIDER_MAX          200
00148 #define DEF_DIFFUSECORRSLIDER_MAX        1000
00149 #define DEF_ENDTAP_WIDTHSLIDER_MAX       30
00150 
00151 #define DEF_P1SLIDER_MAX                         200
00152 #define DEF_P2SLIDER_MAX                         200
00153 #define DEF_P3SLIDER_MAX                         200
00154 
00155 #define DEF_XDIMSLIDER_MAX                       300
00156 #define DEF_YDIMSLIDER_MAX                       300    
00157 #define DEF_ZDIMSLIDER_MAX                       300
00158 
00159 #define DEF_PERIODLENGTHSLIDER_MAX       500
00160 #define DEF_ABSORPTIONSLIDER_MAX         255
00161 #define DEF_OPACITYSLIDER_MAX            255
00162 #define DEF_MINDISTANCESLIDER_MAX        3000
00163 #define DEF_INTENSITYSLIDER_MAX          255
00164 #define DEF_BLOCK_ZOFFSSLIDER_MAX        500
00165 
00166 #define DEF_AR_PERIODSLIDER_MAX          100
00167 
00168 // Factors used to map slider values to corresponding variables.
00169 #define DEF_DSEPSLIDER_FACTOR            20.0f
00170 #define DEF_DTESTSLIDER_FACTOR           1000.0f
00171 #define DEF_DTSLIDER_FACTOR                      10000.0f
00172 #define DEF_LINEWIDTHSLIDER_FACTOR       10.0f
00173 #define DEF_DIFFUSECORRSLIDER_FACTOR 100.0f
00174 #define DEF_HIGHLIGHTSLIDER_FACTOR   1.0f
00175 #define DEF_MINDISTANCESLIDER_FACTOR 1000
00176 #define DEF_P1SLIDER_FACTOR                      10.0f                   
00177 #define DEF_P2SLIDER_FACTOR                      10.0f
00178 #define DEF_P3SLIDER_FACTOR                      10.0f
00179 
00180 #define DEF_GAPSLIDER_FACTOR             100.0f
00181 #define DEF_ARROWWIDTHSLIDER_FACTOR  10.0f
00182 #define DEF_ARROWLENGTHSLIDER_FACTOR 10.0f
00183 
00184 #define DEF_BLOCK_ZOFFSSLIDER_FACTOR 100.0f
00185 
00186 // Multiplicative factor used to set up texture matrix
00187 #define DEF_TEXMATRIX_FACTOR             0.5f
00188 
00189 // Multiplicative factor used to regulate z-offset of vectorfield.
00190 #define DEF_Z_OFFS_FACTOR                        2.0f
00191 
00192 // Multiplicative factor used to regulate rotation speed
00193 // during r-mouse button rotation.
00194 #define DEF_ONTIMER_ANGLEINCR_FACTOR 0.005f
00195 
00196 // Multiplicative factor used to regulate rotation speed during l- button
00197 // vectorfield rotation.
00198 #define DEF_MOUSEMV_ANGLEINCR_FACTOR 0.1f  
00199 
00200 // Multiplicative factor used to regulate rotation speed of vectorfield during
00201 // streamline calculation
00202 #define DEF_ONUPD_ANGLEINCR_FACTOR   1.0f
00203 
00204 // Multiplicative factor used to regulate position increment during seedpoint-
00205 // placement mode.
00206 #define DEF_MOUSEMOV_POSINCR_FACTOR  0.3f
00207 
00208 // Multiplicative factor used to regulate speed during movement along z-axis.
00209 #define DEF_DISTINCR_FACTOR                      0.3f
00210 
00211 // Multiplicative factor used to regulate zoffs of block(only block-dataset).
00212 #define DEF_BLOCK_ZOFFS_FACTOR           0.01f;
00213 
00214 // Number of material regions which can be defined in additional info dialog.
00215 #define DEF_REGIONS_NUM                          5
00216 
00217 // Minimal position where region can start.
00218 #define DEF_REGIONPOS_MIN                        0.0f
00219 
00220 // Index values mostly for various controls:
00221 
00222 // Light type radio button values.
00223 #define DEF_HEADLIGHT_INDEX                      0
00224 #define DEF_POINTLIGHT_INDEX             1
00225 
00226 // Additional info radio button values.
00227 #define DEF_CONTTRANSF_INDEX             0
00228 #define DEF_REGIONS_INDEX                        1
00229 
00230 // Depth coding type radio button values.
00231 #define DEF_DEPTHCUEING_INDEX            0
00232 #define DEF_DEPTHCOLOR_INDEX             1
00233 
00234 // Sampling equations radio button values.
00235 #define DEF_ROESSLERSAMPLER_INDEX        0
00236 #define DEF_LORENZSAMPLER_INDEX          1
00237 #define DEF_TESTSAMPLER_INDEX            2
00238 
00239 // Arrow type radio button values.
00240 #define DEF_AR_LEND_INDEX                        0
00241 #define DEF_AR_PERIOD_INDEX                      1
00242 
00243 // Index values for combo box in additional info dialog.
00244 #define DEF_VELOCITY_INDEX                       0
00245 #define DEF_ORIENT_X_INDEX                       1
00246 #define DEF_ORIENT_Y_INDEX                       2
00247 #define DEF_ORIENT_Z_INDEX                       3
00248 #define DEF_POS_X_INDEX                          4
00249 #define DEF_POS_Y_INDEX                          5
00250 #define DEF_POS_Z_INDEX                          6
00251 #define DEF_DIF_ORIENT_INDEX             7
00252 #define DEF_DIF_VLEN_INDEX                       8
00253 
00254 #define DEF_SCALAR_NUM                           9
00255 #define DEF_SCALAR_OVERALL                       DEF_SCALAR_NUM + CSamplePoint::GetAdditionalSize()
00256 
00257 
00258 // Index values for transparency function radio buttons.
00259 #define DEF_HAZE_LIN_INDEX                        0
00260 #define DEF_HAZE_EXP_INDEX                        1
00261 #define DEF_SIN_INDEX                             2
00262 
00263 // Index values for magic volume type radio buttons.
00264 #define DEF_MCUBE_INDEX                           0
00265 #define DEF_MSPHERE_INDEX                         1
00266 #define DEF_MRECT_INDEX                           2
00267 
00268 // Default magic volume index value.
00269 #define DEF_MAGICVOL_INDEX                        2
00270 
00271 // Index values for light type radio buttons.
00272 #define DEF_HEADLIGHT_INDEX                       0
00273 #define DEF_POINTLIGHT_INDEX              1
00274 
00275 // Index values for timers.
00276 #define DEF_ROTATIONTIMER_INDEX           1
00277 #define DEF_ANIMATIONTIMER_INDEX          2
00278 
00279 // Index values used to choose list most closely resembling view direction.
00280 #define DEF_XLIST_INDEX                           0
00281 #define DEF_YLIST_INDEX                           1
00282 #define DEF_ZLIST_INDEX                           2
00283 #define DEF_XLIST_REVERSE_INDEX           3
00284 #define DEF_YLIST_REVERSE_INDEX           4
00285 #define DEF_ZLIST_REVERSE_INDEX           5
00286 
00287 // Number of different main view directions.
00288 #define DEF_DIRECTIONS_NUM                        6
00289 
00290 // Strings displayed in additional info combo box.
00291 #define DEF_VELOCITY_STR                          "Velocity(= vector length)"
00292 #define DEF_ORIENT_X_STR                          "Arccos X-comp. [0..PI]"
00293 #define DEF_ORIENT_Y_STR                          "Arccos Y-comp. [0..PI]"
00294 #define DEF_ORIENT_Z_STR                          "Arccos Z-comp. [0..PI]"
00295 #define DEF_POS_X_STR                             "Position X"
00296 #define DEF_POS_Y_STR                             "Position Y"
00297 #define DEF_POS_Z_STR                             "Position Z"
00298 #define DEF_ADDINFO_STR                           "VField scalar"
00299 #define DEF_DIF_ORIENT_STR                        "Dif. orientation"
00300 #define DEF_DIF_VLEN_STR                          "Dif. velocity"
00301 #define DEF_DEPTH_STR                             "Depth"
00302 
00303 // Defines for color code transfer function:
00304 
00305 // Default position of intermediate point in continuous transfer function.
00306 #define DEF_INTERPOS                              0.5f
00307 
00308 // Default minimal rgba value in color code-transfer function.
00309 #define DEF_MINRGBA                                       {0,0,255,255}
00310 
00311 // Default intermediate color values in continuous transfer function.
00312 #define DEF_INTERRGBA                             {0,255,0,255}
00313 
00314 // Default maximum color values in color code-transfer function.
00315 #define DEF_MAXRGBA                                       {255,0,0,255}
00316 
00317 // Minimal and maximal color values
00318 #define DEF_COLOR_MIN                             0
00319 #define DEF_COLOR_MAX                             255
00320 
00321 // Gl-initialisation values.
00322 #define DEF_NEARPLANE                             0.1f
00323 #define DEF_FARPLANE                              500.0f
00324 #define DEF_VIEWANGLE                             45.0f
00325 
00326 // Defines used in line style dialog:
00327 
00328 // Default arrow period length
00329 #define DEF_AR_PERIOD_LENGHT              10
00330 
00331 // Default period length of transparency function(haze lin, sin).
00332 #define DEF_PERIOD_LENGTH                         80
00333 
00334 // Default absorption of exponential particle haze transparency function.
00335 #define DEF_ABSORPTION                            10
00336 
00337 // Default line width.
00338 #define DEF_LINEWIDTH                             5.0f
00339 
00340 // Default gap size between streamlines.
00341 #define DEF_GAP_SIZE                              2.0f
00342 
00343 // 0-degree angle.
00344 #define DEF_ANGLE_0F                              0.0f
00345 
00346 // 90-degree angle
00347 #define DEF_ANGLE_90F                             90.0f
00348 
00349 // 180-degree angle
00350 #define DEF_ANGLE_180F                            180.0f
00351 
00352 // 270-degree angle
00353 #define DEF_ANGLE_270F                            270.0f
00354 // 360 degree angle.
00355 #define DEF_ANGLE_360F                            360.0f
00356 
00357 // 360 degree angle.
00358 #define DEF_ANGLE_360                             360
00359 
00360 #define DEF_SINTABLE_WIDTH                        360
00361 #define DEF_COSTABLE_WIDTH                        360
00362 
00363 // Min and max values for opaciy.
00364 #define DEF_OPACITY_MIN                           0
00365 #define DEF_OPACITY_MAX                           255
00366 
00367 // Default opacity-value used for streamlines.
00368 #define DEF_OPACITY                                       255
00369 
00370 // Time between two timer ticks(in milliseconds).
00371 #define DEF_ROTATIONTIMER_ELAPSE          20
00372 #define DEF_ANIMATIONTIMER_ELAPSE         20    
00373 
00374 // Minimal difference value when 2 float values are considered to be different.
00375 #define DEF_FLT_CHANGE_MIN                        0.0001f
00376 
00377 // Max values for progress control.
00378 #define DEF_UPDATEDLISTSPROGRESS_MAX  60
00379 #define DEF_UPDATEPLISTSPROGRESS_MAX  1000
00380 #define DEF_REPLTEXTURESPROGRESS_MAX  60
00381 #define DEF_RECALCPROGRESS_MAX            200
00382 #define DEF_CREATEFIELDPROGRESS_MAX   m_XDim*10
00383 #define DEF_SAVELOADDATA_MAX              m_XDim*2
00384 
00385 // Title string for progress dialog.
00386 #define DEF_UPDATEPLISTSPROGRESS_STR  "Updating data"
00387 #define DEF_UPDATEDLISTSPROGRESS_STR  "Updating display lists"
00388 #define DEF_REPLTEXTURESPROGRESS_STR  "Updating texture maps"
00389 #define DEF_CREATEFIELDPROGRESS_STR       "Calculating sample field"
00390 #define DEF_RECALCPROGRESS_STR            "Calculating streamlines"
00391 #define DEF_LOADDATA_STR                          "Loading data"
00392 #define DEF_SAVEDATA_STR                          "Saveing data"
00393 
00394 // Default view direction vector, light direction vector.
00395 #define DEF_VIEW                                          CVector3D(0.0f,0.0f,-1.0f)
00396 #define DEF_LIGHT                                         DEF_VIEW
00397 
00398 // Default axis.
00399 #define DEF_AXIS_X                                        CVector3D(1.0f,0.0f,0.0f)
00400 #define DEF_AXIS_Y                                        CVector3D(0.0f,1.0f,0.0f)
00401 #define DEF_AXIS_Z                                        CVector3D(0.0f,0.0f,1.0f)
00402 
00403 // Default flag values.
00404 #define DEF_ISKEYPRESSED                          false
00405 #define DEF_ISINCREMENTIAL                        true
00406 #define DEF_ISDRAWBOUNDARIES              true
00407 #define DEF_ISDEPTHCUEING                         true
00408 #define DEF_ISROTATING                            false
00409 #define DEF_ISPLACESEEDPOINT              false
00410 #define DEF_ISENDTAP                              true
00411 
00412 #define DEF_ISLBUTTONDOWN                         false
00413 #define DEF_ISRBUTTONDOWN                         false
00414 
00415 #define DEF_ISBUSY                                        false
00416 #define DEF_ISANTIALIASING                        false
00417 #define DEF_ISSHOWAXIS                            false
00418 #define DEF_ISTRANSPFUNC                          false
00419 #define DEF_ISMODIFIED                            true
00420 #define DEF_ISANIMATION                           false
00421 #define DEF_ISGAP                                         true
00422 
00423 #define DEF_ISMAGICVOLUME                         true
00424 #define DEF_USEDISPLAYLISTS                       false
00425 #define DEF_ISCORRECTORDER                        true
00426 #define DEF_ISSAMPLEADDINFO                       false
00427 #define DEF_ISTAPERING                            false
00428 #define DEF_ISADDINFO                             false
00429 #define DEF_ISFOCUSCONTEXT                        false
00430 #define DEF_ISSHOWLEGEND                          true
00431 #define DEF_ISARROWS                              false
00432 
00433 #define DEF_ISSHOWBLOCK                           false
00434 #define DEF_ISTEX                                         true
00435 
00436 // Default flag which indicates if context streamlines should
00437 // be cut in focus.
00438 #define DEF_ISCUT_LINES                           true
00439 
00440 // Default resolution flags.
00441 #define DEF_ISRES_0                                       true
00442 #define DEF_ISRES_1                                       true
00443 #define DEF_ISRES_2                                       true
00444 #define DEF_ISRES_3                                       true
00445 #define DEF_ISRES_4                                       true
00446 
00447 // 100%.
00448 #define DEF_PERC_100                              100.0f
00449 
00450 // Default title of error message box.
00451 #define DEF_ERROR_STR                             "Error"
00452 
00453 // Default status bar string.
00454 #define DEF_READY_STR                             "Ready"
00455 
00456 // Default minimal distance between streamline samplepoints
00457 // in % of field x-range
00458 #define DEF_MINDIST_PERC                          0.80f
00459         
00460 // X,y,z-dimension field range.
00461 
00462 #define DEF_XRANGE                                        GetDocument()->GetXRange()
00463 #define DEF_YRANGE                                        GetDocument()->GetYRange()
00464 #define DEF_ZRANGE                                        GetDocument()->GetZRange()
00465 
00466 // half field range.
00467 #define DEF_XRANGEDIV2                            DEF_XRANGE * 0.5f
00468 #define DEF_YRANGEDIV2                            DEF_YRANGE * 0.5f
00469 #define DEF_ZRANGEDIV2                            DEF_ZRANGE * 0.5f
00470 
00471 // Offset values
00472 #define DEF_XOFFS                                         (DEF_XRANGEDIV2 + GetDocument()->GetMinXPos())
00473 #define DEF_YOFFS                                         (DEF_YRANGEDIV2 + GetDocument()->GetMinYPos())
00474 #define DEF_ZOFFS                                         (DEF_ZRANGEDIV2 + GetDocument()->GetMinZPos())
00475 
00476 // Dimension with minimal range between specified dimensions.
00477 #define DEF_MINRANGE_DIM_XY                       min(DEF_XRANGE,DEF_YRANGE)
00478 #define DEF_MINRANGE_DIM_XZ                       min(DEF_XRANGE,DEF_ZRANGE)
00479 #define DEF_MINRANGE_DIM_YZ                       min(DEF_YRANGE,DEF_ZRANGE)
00480 
00481 #define DEF_MINRANGE_DIM_XYZ              min(DEF_MINRANGE_DIM_XY,DEF_MINRANGE_DIM_XZ)
00482 
00483 // Default magic volumes size.
00484 #define DEF_MAGICCUBE_SIZE                        DEF_MINRANGE_DIM_XYZ / 3.0f
00485 #define DEF_MAGICSPHERE_RADIUS            DEF_MINRANGE_DIM_XYZ / 6.0f
00486 #define DEF_MAGICRECT_LENGTH              DEF_XRANGE / 3.0f
00487 #define DEF_MAGICRECT_WIDTH                       DEF_YRANGE / 3.0f
00488 #define DEF_MAGICRECT_HEIGHT              DEF_ZRANGE / 3.0f
00489 
00490 // Boundaries line width.
00491 #define DEF_BOUNDARIES_LINEWIDTH         2.0f
00492 // Magic volume line width.
00493 #define DEF_MAGICVOL_LINEWIDTH           2.0f
00494 // Axis line-widths.
00495 #define DEF_AXIS_LINEWIDTH                       2.0f
00496 // Linewidth when key is pressed.
00497 #define DEF_KEYPR_LINEWIDTH                      3.5f
00498 
00499 // Boundaries rgba-values.
00500 #define DEF_BOUNDARIES_RGBA                      {255,0,0,255}
00501 // Magic volume rgba-values.
00502 #define DEF_MAGICVOL_RGBA                        {0,255,0,255}
00503 
00504 // Axis rgba-values.
00505 #define DEF_AXIS_X_RGBA                          {255,255,0,255}
00506 #define DEF_AXIS_Y_RGBA                          {255,0,255,255}
00507 #define DEF_AXIS_Z_RGBA                          {0,255,255,255}
00508 
00509 // Rgba-value when key is pressed.
00510 #define DEF_KEYPR_RGBA                   {255,255,255,255}
00511 
00512 // Offset values.
00513 #define DEF_AXIS_OFFS                            20.0f
00514 #define DEF_SEEDPCROSS_OFFS                      0.0f
00515 #define DEF_MAGICVOL_AXIS_OFFS           0.0f
00516 
00517 // DSepGrid-Validation types:
00518 
00519 // Startpoint of new streamline: Test with dSep.
00520 #define DEF_TYPE_START                           0
00521 // Normal streamline samplepoint: Test with dSep * dTest.
00522 #define DEF_TYPE_LINE                            1
00523 
00524 // Default context streamline resolution in %.
00525 #define DEF_CONTEXT_RES                          70
00526 // Default context opacity
00527 #define DEF_CONTEXT_OPACITY                      100
00528 // Default context lineWidth
00529 // Default context opacity
00530 #define DEF_CONTEXT_LWIDTH                       100
00531 
00532 // Highest and lowest resolutions.
00533 #define DEF_RES_MIN                                      0
00534 #define DEF_RES_MAX                                      100
00535 
00536 // Default number of different streamline resolutions.
00537 #define DEF_RESOLUTION_NUM                       10
00538 
00539 // Bitmap fonts height and width.
00540 #define DEF_CHAR_HEIGHT                          12
00541 #define DEF_CHAR_WIDTH                           10
00542 
00543 // Legend lines length.
00544 #define DEF_LINES_LENGTH                         50
00545 
00546 // Default legend xy-pos
00547 #define DEF_LEGEND_XPOS                          10
00548 #define DEF_LEGEND_YPOS                          220
00549 
00550 // Default legend text rgba-value.
00551 #define DEF_TEXT_RGBA                            {200,200,255,255}
00552 
00553 // Default background color.
00554 #define DEF_BK_COLOR_R                           0
00555 #define DEF_BK_COLOR_G                           0
00556 #define DEF_BK_COLOR_B                           0.2
00557 
00559 #define DEF_ADDITIONAL_SIZE                      0
00560 
00562 #define DEF_REGION1_AMB                          {0,0,50}
00563 #define DEF_REGION1_DIF                          {0,0,255}
00564 #define DEF_REGION1_SPEC                         {255,255,255}
00565 
00566 #define DEF_REGION2_AMB                          {0,50,0}
00567 #define DEF_REGION2_DIF                          {0,255,0}
00568 #define DEF_REGION2_SPEC                         {255,255,255}
00569 
00570 #define DEF_REGION3_AMB                          {50,0,0}
00571 #define DEF_REGION3_DIF                          {255,0,0}
00572 #define DEF_REGION3_SPEC                         {255,255,255}
00573 
00574 // Default material for block(block dataset only).
00575 #define DEF_BLOCK_AMB                            {100,100,100}
00576 #define DEF_BLOCK_DIF                            {255,255,255}
00577 #define DEF_BLOCK_SPEC                           {255,255,255}
00578 
00579 // Default positions for regions.
00580 #define DEF_REGION1_POS                          0.33
00581 #define DEF_REGION2_POS                          0.66
00582 #define DEF_REGION3_POS                          1.0
00583 
00584 // Default end tapering width.
00585 #define DEF_ENDTAPWIDTH                          5
00586 
00587 // Default background color and bar color for histograms.
00588 #define DEF_HISTO_BKCOLOR                        {100,100,150}
00589 #define DEF_HISTO_BARCOLOR                       {100,200,100}
00590 
00591 // Number of intervals for histograms
00592 #define DEF_INTERV_NUM                           100
00593 
00594 // CHistoDataStream define, stands for 
00595 // "take scalars for all regions".
00596 #define DEF_ALL_REGIONS                          -1
00597 
00598 // Index of focus in CHistoDataStream.
00599 #define DEF_FOCUS_INDEX                         DEF_REGIONS_NUM
00600 // Index of context in CHistoDataStream.
00601 #define DEF_CONTEXT_INDEX                       DEF_REGIONS_NUM + 1
00602 
00603 // Colors for histogram bar colors in "Edit Regions Dialog".
00604 #define DEF_BARCOL_REG1                         {255, 0, 0}
00605 #define DEF_BARCOL_REG2                         {0,255,0}
00606 #define DEF_BARCOL_REG3                         {0,0,255}
00607 #define DEF_BARCOL_REG4                         {255,255,0}
00608 #define DEF_BARCOL_REG5                         {0,255,255}
00609 
00610 // Number of histogram images.
00611 #define DEF_HISTOIMG_NUM                        DEF_REGIONS_NUM + 3
00612 
00613 // Number of values defining the continous transfer function.
00614 #define DEF_CONTTRANSFVALUES_NUM        3
00615 
00616 // Indeces for min-max-positions in 
00617 // "Continous Transfer Function Dialog".
00618 #define DEF_MINPOS_INDEX                        0
00619 #define DEF_INTERPOS_INDEX                      1
00620 #define DEF_MAXPOS_INDEX                        2
00621 
00622 // Default values for continuous transfer function 
00623 // streamline resolution.
00624 #define DEF_CONTTRANSF_RES                      100
00625 
00626 // Number of keys.
00627 #define DEF_KEYS_NUM                            255
00628 
00629 // Maximal and minimal linewidth.
00630 #define DEF_LINEWIDTH_MAX                       10.0f
00631 #define DEF_LINEWIDTH_MIN                       1.0f
00632 
00633 // Type of animation.
00634 #define DEF_GROWING_INDEX                       0
00635 #define DEF_TRANSP_INDEX                        1
00636 
00637 #define DEF_ALPHATBL_MAXSIZE            1000
00638 
00639 #define DEF_DEINTENSITY_FACTOR          0.025f
00640 #define DEF_INTENSITY_INCR_FACTOR       1.0f
00641 #define DEF_DEPTH_INTENSITY                     155
00642 #define DEF_INTENSITY_MIN                       DEF_INTENSITYSLIDER_MIN 
00643 #define DEF_INTENSITY_MAX                       DEF_INTENSITYSLIDER_MAX
00644 
00645 #define DEF_DATA_SIZE                           4
00646 #define DEF_HEADER_SIZE                         80
00647 #define DEF_BUF_SIZE                            40
00648 
00649 #define DEF_CONE_SLICES_NUM                     20
00650 #define DEF_CONE_STACKS_NUM                     1
00651 
00652 #define DEF_ARROW_LENGTH                        4.0f
00653 #define DEF_ARROW_WIDTH                         2.0f
00654 
00655 #define DEF_PERIODLENGTH_FACTOR         2.0f
00656 #define DEF_ABSORPTION_FACTOR           1.0f
00657 
00658 // Context changing factor.
00659 #define DEF_CONTEXTCHANGE_FACTOR        1.0f
00660 
00661 // Number of region properties
00662 #define DEF_REGPROP_NUM                         DEF_REGIONS_NUM + 1
00663 
00664 // Offset for dsep-grid to assure that new samplepoint falls into valid range.
00665 #define DEF_DSEPGRID_OFFS                       1
00666 
00667 // Maximal range in xyz-dimension.
00668 #define DEF_MAXRANGE                            max(DEF_ZRANGE,max(DEF_XRANGE,DEF_YRANGE))
00669 
00670 // Default string size.
00671 #define DEF_STR_SIZE                            255
00672 
00673 // Block texture height and width.
00674 #define DEF_BLTEX_HEIGHT                        128
00675 #define DEF_BLTEX_WIDTH                         128
00676 
00677 // Texture name.
00678 #define DEF_BLTEX_NAME                          "tex/block.bmp"
00679 
00680 // Bitmap header size
00681 #define DEF_BMP_HEADER_SIZE                             54
00682 
00683 #endif /* !DEFINES_H__ */

Generated on Fri Aug 9 10:12:39 2002 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002