Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/geo/geoFormat.h
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/geo/geoFormat.h
r4758 r13041 9 9 ------------------------------------------------------------------------- 10 10 11 PROPRIETARY RIGHTS NOTICE: 12 13 This software contains proprietary information and trade secrets of Carbon 14 Graphics LLC. No part or all of this software may be reproduced in any form, 11 PROPRIETARY RIGHTS NOTICE: 12 13 This software contains proprietary information and trade secrets of Carbon 14 Graphics LLC. No part or all of this software may be reproduced in any form, 15 15 without the written permission of Carbon Graphics LLC. 16 16 17 17 Exception: 18 18 This Software file can be used by third-party software developers (without 19 using the Geo SDK libraries) for any purpose OTHER THAN loading Geo format 20 files into an application or executable (such as, though not limited to, 19 using the Geo SDK libraries) for any purpose OTHER THAN loading Geo format 20 files into an application or executable (such as, though not limited to, 21 21 geometry Modelers & animation systems) which is primarily intended to allow for 22 the CREATION or MODIFICATION of geometric or animation data. 23 24 Specifically,using this software (either all or part thereof) to aid in the 25 creation of a Geo format loader for a run-time system, game engine, toolkit 22 the CREATION or MODIFICATION of geometric or animation data. 23 24 Specifically,using this software (either all or part thereof) to aid in the 25 creation of a Geo format loader for a run-time system, game engine, toolkit 26 26 IG (Image Generation) System or any software where the PRIMARY purpose is 27 27 real-time image playback and interactivity and not Model Creation and/or 28 28 modification is permitted. 29 29 30 COPYRIGHT NOTICE: 31 30 COPYRIGHT NOTICE: 31 32 32 Copyright © 1998-2001 Carbon Graphics Llc, ALL RIGHTS RESERVED 33 33 … … 43 43 #define GEO_1_0_RC2 1132 44 44 #define GEO_1_0_RC3 1133 45 #define GEO_1_0_RC4 1134 45 #define GEO_1_0_RC4 1134 46 46 #define GEO_1_0 1141 47 47 … … 83 83 84 84 //---------------------------------------------------------------- 85 // 85 // 86 86 //---------------------------------------------------------------- 87 87 … … 108 108 const unsigned int DB_DSK_BASE_SURFACE = 123; 109 109 const unsigned int DB_DSK_BEHAVIOR = 124; 110 const unsigned int DB_DSK_CLAMP_ACTION = 125; 111 const unsigned int DB_DSK_RANGE_ACTION = 126; 112 const unsigned int DB_DSK_ROTATE_ACTION = 127; 113 const unsigned int DB_DSK_TRANSLATE_ACTION = 128; 114 const unsigned int DB_DSK_SCALE_ACTION = 129; 115 const unsigned int DB_DSK_ARITHMETIC_ACTION = 130; 116 const unsigned int DB_DSK_LOGIC_ACTION = 131; 117 const unsigned int DB_DSK_CONDITIONAL_ACTION = 132; 118 const unsigned int DB_DSK_LOOPING_ACTION = 133; 119 const unsigned int DB_DSK_COMPARE_ACTION = 134; 120 const unsigned int DB_DSK_VISIBILITY_ACTION = 135; 121 const unsigned int DB_DSK_STRING_CONTENT_ACTION = 136; 122 const unsigned int DB_DSK_INTERNAL_VARS = 137; 123 const unsigned int DB_DSK_LOCAL_VARS = 138; 124 const unsigned int DB_DSK_EXTERNAL_VARS = 139; 125 const unsigned int DB_DSK_FLOAT_VAR = 140; 126 const unsigned int DB_DSK_INT_VAR = 141; 127 const unsigned int DB_DSK_LONG_VAR = 142; 128 const unsigned int DB_DSK_DOUBLE_VAR = 143; 110 const unsigned int DB_DSK_CLAMP_ACTION = 125; 111 const unsigned int DB_DSK_RANGE_ACTION = 126; 112 const unsigned int DB_DSK_ROTATE_ACTION = 127; 113 const unsigned int DB_DSK_TRANSLATE_ACTION = 128; 114 const unsigned int DB_DSK_SCALE_ACTION = 129; 115 const unsigned int DB_DSK_ARITHMETIC_ACTION = 130; 116 const unsigned int DB_DSK_LOGIC_ACTION = 131; 117 const unsigned int DB_DSK_CONDITIONAL_ACTION = 132; 118 const unsigned int DB_DSK_LOOPING_ACTION = 133; 119 const unsigned int DB_DSK_COMPARE_ACTION = 134; 120 const unsigned int DB_DSK_VISIBILITY_ACTION = 135; 121 const unsigned int DB_DSK_STRING_CONTENT_ACTION = 136; 122 const unsigned int DB_DSK_INTERNAL_VARS = 137; 123 const unsigned int DB_DSK_LOCAL_VARS = 138; 124 const unsigned int DB_DSK_EXTERNAL_VARS = 139; 125 const unsigned int DB_DSK_FLOAT_VAR = 140; 126 const unsigned int DB_DSK_INT_VAR = 141; 127 const unsigned int DB_DSK_LONG_VAR = 142; 128 const unsigned int DB_DSK_DOUBLE_VAR = 143; 129 129 const unsigned int DB_DSK_BOOL_VAR = 144; 130 130 // unsigned int DEPRICATED = 145; … … 134 134 const unsigned int DB_DSK_COLOR_PALETTE = 149; 135 135 const unsigned int DB_DSK_COLOR_RAMP_ACTION = 150; 136 const unsigned int DB_DSK_FLOAT2_VAR = 151; 137 const unsigned int DB_DSK_FLOAT3_VAR = 152; 138 const unsigned int DB_DSK_FLOAT4_VAR = 153; 139 const unsigned int DB_DSK_LINEAR_ACTION = 154; 140 const unsigned int DB_DSK_TASK_ACTION = 155; 141 const unsigned int DB_DSK_PERIODIC_ACTION = 156; 136 const unsigned int DB_DSK_FLOAT2_VAR = 151; 137 const unsigned int DB_DSK_FLOAT3_VAR = 152; 138 const unsigned int DB_DSK_FLOAT4_VAR = 153; 139 const unsigned int DB_DSK_LINEAR_ACTION = 154; 140 const unsigned int DB_DSK_TASK_ACTION = 155; 141 const unsigned int DB_DSK_PERIODIC_ACTION = 156; 142 142 // unsigned int DEPRICATED = 157; 143 const unsigned int DB_DSK_TRIG_ACTION = 158; 144 const unsigned int DB_DSK_INVERSE_ACTION = 159; 143 const unsigned int DB_DSK_TRIG_ACTION = 158; 144 const unsigned int DB_DSK_INVERSE_ACTION = 159; 145 145 const unsigned int DB_DSK_TRUNCATE_ACTION = 160; 146 const unsigned int DB_DSK_ABS_ACTION = 161; 146 const unsigned int DB_DSK_ABS_ACTION = 161; 147 147 const unsigned int DB_DSK_IF_THEN_ELSE_ACTION = 162; // simple variable value check 148 const unsigned int DB_DSK_DCS_ACTION = 163; 148 const unsigned int DB_DSK_DCS_ACTION = 163; 149 149 const unsigned int DB_DSK_INSTANCE = 164; 150 150 const unsigned int DB_DSK_COORD_POOL = 165; … … 153 153 const unsigned int DB_DSK_NORMAL_POOL = 168; 154 154 const unsigned int DB_DSK_DISCRETE_ACTION = 169; 155 const unsigned int DB_DSK_STRING_VAR = 170; 155 const unsigned int DB_DSK_STRING_VAR = 170; 156 156 const unsigned int DB_DSK_STRING_COPY_ACTION = 171; 157 157 const unsigned int DB_DSK_PAGE = 172; 158 const unsigned int DB_DSK_SQRT_ACTION = 173; 159 const unsigned int DB_DSK_LOG_ACTION = 174; 158 const unsigned int DB_DSK_SQRT_ACTION = 173; 159 const unsigned int DB_DSK_LOG_ACTION = 174; 160 160 const unsigned int DB_DSK_PLANE_TEXTURE_MAPPING_INFO = 175; 161 161 const unsigned int DB_DSK_CYLINDER_TEXTURE_MAPPING_INFO = 176; // not implemented in 1.0 … … 184 184 const unsigned int DB_DSK_POP_ACTION = 199; // End of child action list 185 185 const unsigned int DB_DSK_LIGHT_GROUP = 200; 186 const unsigned int DB_DSK_CONTINUOUS_ACTION = 201; 187 const unsigned int DB_DSK_MOMENTARY_ACTION = 202; 188 const unsigned int DB_DSK_NSTATE_ACTION = 203; 189 const unsigned int DB_DSK_ROTARY_DRAG_ACTION = 204; 186 const unsigned int DB_DSK_CONTINUOUS_ACTION = 201; 187 const unsigned int DB_DSK_MOMENTARY_ACTION = 202; 188 const unsigned int DB_DSK_NSTATE_ACTION = 203; 189 const unsigned int DB_DSK_ROTARY_DRAG_ACTION = 204; 190 190 const unsigned int DB_DSK_DCS = 205; 191 191 const unsigned int DB_DSK_FAT_VERTEX = 206; … … 195 195 const unsigned int DB_DSK_GLSL_SHADER = 210; 196 196 197 198 197 198 199 199 200 200 … … 313 313 { 314 314 /** The Field ID for the data about to be read from disk. This Field 315 * token record in effect describes the data which is going to 315 * token record in effect describes the data which is going to 316 316 * follow this geoFieldToken struct. This description is sufficient to 317 317 * allow parsing code to step over and ignore either fields or whole … … 333 333 334 334 /** The Field ID for the data about to be read from disk. This Field 335 * token record in effect describes the data which is going to 335 * token record in effect describes the data which is going to 336 336 * follow this geoExtendedFieldHeader struct. This description is sufficient to 337 337 * allow parsing code to step over and ignore either fields or whole … … 344 344 * 345 345 * on disk: 346 * 346 * 347 347 * geoFieldHeader 348 348 * { 349 349 * DB_UCHAR id GEO_DB_VRTX_COORDS 350 * DB_UCHAR type DB_EXTENDED_FIELD_STRUCT 350 * DB_UCHAR type DB_EXTENDED_FIELD_STRUCT 351 351 * DB_USHORT num 1 352 352 * } 353 353 * 354 * parse code now knows there is 1 record of an extended field struct 354 * parse code now knows there is 1 record of an extended field struct 355 355 * following the header. It just so happens that the following "data item" 356 356 * is itself a header (this time of the extended variety) … … 370 370 * parse code only needs to look for geoRecordHeader & geoFieldHeader records. 371 371 * It also means that there is enough info grouped together, so that an 372 * ignoreField function can work - given a geoFieldHeader to ignore. 372 * ignoreField function can work - given a geoFieldHeader to ignore. 373 373 * 374 374 * The id field is also an unsigned short in this header - meaning that records … … 377 377 * records have more than 255 fields then their ids will be unsigned shorts and 378 378 * on disk they will be represented by... 379 * 379 * 380 380 * geoFieldHeader 381 381 * { 382 382 * DB_UCHAR id GEO_DB_NODE_EXTENDED 383 * DB_UCHAR type DB_EXTENDED_FIELD_STRUCT 383 * DB_UCHAR type DB_EXTENDED_FIELD_STRUCT 384 384 * DB_USHORT num 1 385 385 * } … … 444 444 // Field ID Address Ranges... 445 445 // 446 //NODE 1 through 19 447 // DERIVED_A : public NODE 20 through 79 448 // DERIVED_B : public DERIVED_A 80 through 139 446 //NODE 1 through 19 447 // DERIVED_A : public NODE 20 through 79 448 // DERIVED_B : public DERIVED_A 80 through 139 449 449 // DERIVED_C : public DERIVED_B 140 through 199 450 450 // DERIVED_D : public DERIVED_C 200 through 255 … … 453 453 // 454 454 //GEO_DSK_MULTI_TEX_SHADER: 455 // Node Property IDs 1 through 19 455 // Node Property IDs 1 through 19 456 456 // Group Property IDs 20 through 79 457 457 // RenderGroup property IDs 80 through 139 … … 460 460 // 461 461 //DB_DSK_LIGHTPT: 462 // Node Property IDs 1 through 19 462 // Node Property IDs 1 through 19 463 463 // Polygon Property IDs 20 through 79 464 464 // LightPt property IDs 80 through 139 … … 483 483 const unsigned char GEO_DB_HDR_NAME = 6; // From Node 484 484 const unsigned char GEO_DB_HDR_NODE_ID = 7; // From Node 485 485 486 486 const unsigned char GEO_DB_HDR_UNITS = 20; // Header Additions 487 487 const unsigned char GEO_DB_HDR_BBOX = 21; … … 495 495 const unsigned char GEO_DB_HDR_SOUTHERN_HEMISPHERE = 29; 496 496 const unsigned char GEO_DB_HDR_ELLIPSOID = 30; 497 const unsigned char GEO_DB_HDR_ORIGIN_LAT = 31; 497 const unsigned char GEO_DB_HDR_ORIGIN_LAT = 31; 498 498 const unsigned char GEO_DB_HDR_ORIGIN_LON = 32; 499 const unsigned char GEO_DB_HDR_SW_CORNER_LAT = 33; 500 const unsigned char GEO_DB_HDR_SW_CORNER_LON = 34; 501 const unsigned char GEO_DB_HDR_NE_CORNER_LAT = 35; 499 const unsigned char GEO_DB_HDR_SW_CORNER_LAT = 33; 500 const unsigned char GEO_DB_HDR_SW_CORNER_LON = 34; 501 const unsigned char GEO_DB_HDR_NE_CORNER_LAT = 35; 502 502 const unsigned char GEO_DB_HDR_NE_CORNER_LON = 36; 503 503 const unsigned char GEO_DB_HDR_SW_CORNER_X = 37; 504 504 const unsigned char GEO_DB_HDR_SW_CORNER_Y = 38; 505 505 const unsigned char GEO_DB_HDR_OFFSET_X = 39; 506 const unsigned char GEO_DB_HDR_OFFSET_Y = 40; 507 const unsigned char GEO_DB_HDR_OFFSET_Z = 41; 508 const unsigned char GEO_DB_HDR_MAJOR_AXIS = 42; 509 const unsigned char GEO_DB_HDR_MINOR_AXIS = 43; 506 const unsigned char GEO_DB_HDR_OFFSET_Y = 40; 507 const unsigned char GEO_DB_HDR_OFFSET_Z = 41; 508 const unsigned char GEO_DB_HDR_MAJOR_AXIS = 42; 509 const unsigned char GEO_DB_HDR_MINOR_AXIS = 43; 510 510 511 511 … … 685 685 /////////////////////////////////////////////////////////////////////////////// 686 686 // 687 // DB_DSK_PERSPECTIVE_GRID_INFO Record 688 // 689 // DB_DSK_XY_GRID_INFO Record 690 // DB_DSK_XZ_GRID_INFO Record 687 // DB_DSK_PERSPECTIVE_GRID_INFO Record 688 // 689 // DB_DSK_XY_GRID_INFO Record 690 // DB_DSK_XZ_GRID_INFO Record 691 691 // DB_DSK_YZ_GRID_INFO Record - Field Ids 692 692 // … … 714 714 715 715 // All Node Fields + 716 716 717 717 const unsigned char GEO_DB_GRP_BBOX = 20; // Group Additions 718 718 const unsigned char GEO_DB_GRP_INSTANCE_DEF = 21; 719 719 const unsigned char GEO_DB_GRP_FLAG_SHOW_BBOX = 22; 720 720 const unsigned char GEO_DB_GRP_ZBUFFER = 23; 721 const unsigned char GEO_DB_GRP_MATRIX_TRANSFORM = 24; 722 const unsigned char GEO_DB_GRP_TRANSLATE_TRANSFORM = 25; 723 const unsigned char GEO_DB_GRP_ROTATE_TRANSFORM = 26; 724 const unsigned char GEO_DB_GRP_SCALE_TRANSFORM = 27; 721 const unsigned char GEO_DB_GRP_MATRIX_TRANSFORM = 24; 722 const unsigned char GEO_DB_GRP_TRANSLATE_TRANSFORM = 25; 723 const unsigned char GEO_DB_GRP_ROTATE_TRANSFORM = 26; 724 const unsigned char GEO_DB_GRP_SCALE_TRANSFORM = 27; 725 725 const unsigned char GEO_DB_GRP_TOD_DISPLAY = 28; 726 726 const unsigned char GEO_DB_GRP_NOISECT = 29; … … 831 831 // All Node Fields + 832 832 // All Group Fields + 833 834 const unsigned char GEO_DB_CULL_GRP_RADIUS = 80; // CullGroup Additions 833 834 const unsigned char GEO_DB_CULL_GRP_RADIUS = 80; // CullGroup Additions 835 835 836 836 … … 846 846 // All Node Fields + 847 847 // All Group Fields + 848 848 849 849 const unsigned char GEO_DB_Z_GRP_DEPTH_OFFSET = 80; // ZOffsetGroup Additions 850 const unsigned char GEO_DB_Z_GRP_DEPTH_OFFSET_CONSTANT = 81; 851 const unsigned char GEO_DB_Z_GRP_TYPE = 82; 850 const unsigned char GEO_DB_Z_GRP_DEPTH_OFFSET_CONSTANT = 81; 851 const unsigned char GEO_DB_Z_GRP_TYPE = 82; 852 852 853 853 … … 863 863 // All Node Fields + 864 864 // All Group Fields + 865 865 866 866 const unsigned char GEO_DB_MULTI_SAMPLE_AA_GRP_NUM_SAMPLES = 80; // MultiSampleAAGroup Additions 867 867 const unsigned char GEO_DB_MULTI_SAMPLE_AA_GRP_JITTER_RADIUS= 81; … … 881 881 // All Node Fields + 882 882 // All Group Fields + 883 884 const unsigned char GEO_DB_LINE_AA_GRP_RANGE = 80; // LineAAGroup Additions 883 884 const unsigned char GEO_DB_LINE_AA_GRP_RANGE = 80; // LineAAGroup Additions 885 885 const unsigned char GEO_DB_LINE_AA_GRP_ALPHA_FACTOR = 81; 886 886 … … 899 899 // All Node Fields + 900 900 // All Group Fields + 901 901 902 902 const unsigned char GEO_DB_FADE_GRP_NEAR_RANGE = 80; // FadeGroup Additions 903 903 const unsigned char GEO_DB_FADE_GRP_NEAR_TRANSITION = 81; … … 969 969 const unsigned char GEO_DB_LOD_OUT = 81; 970 970 const unsigned char GEO_DB_LOD_CENTER = 82; 971 const unsigned char GEO_DB_LOD_CALC = 83; 971 const unsigned char GEO_DB_LOD_CALC = 83; 972 972 const unsigned char GEO_DB_LOD_FREEZE_CENTER = 84; 973 973 … … 1022 1022 // All Node Fields + 1023 1023 // All Group Fields + 1024 1024 1025 1025 const unsigned char GEO_DB_SWITCH_CURRENT_MASK = 80; // switch Additions 1026 const unsigned char GEO_DB_SWITCH_MASK_WIDTH = 81; 1027 const unsigned char GEO_DB_SWITCH_NUM_MASKS = 82; 1026 const unsigned char GEO_DB_SWITCH_MASK_WIDTH = 81; 1027 const unsigned char GEO_DB_SWITCH_NUM_MASKS = 82; 1028 1028 const unsigned char GEO_DB_SWITCH_MASKS = 83; 1029 1029 … … 1043 1043 // All Node Fields + 1044 1044 // All Group Fields + 1045 1045 1046 1046 const unsigned char GEO_DB_PAGE_ACTIVE_CHILD = 80; // page Additions 1047 1047 … … 1059 1059 1060 1060 // It is important to note that user extended Group fields begin with a field 1061 // ID of 140 (GEO_DB_BASE_GROUP_START_EXTERNAL). This allows Geo to add 1062 // additional fields to the BaseGroup class 1061 // ID of 140 (GEO_DB_BASE_GROUP_START_EXTERNAL). This allows Geo to add 1062 // additional fields to the BaseGroup class 1063 1063 1064 1064 // All Node Fields + 1065 1065 // All Group Fields + 1066 1066 1067 1067 const unsigned char GEO_DB_BASE_GROUP_CLASSNAME = 80; // BaseGroup Additions 1068 1068 const unsigned char GEO_DB_BASE_GROUP_EXTENDED_TYPE = 81; 1069 1069 const unsigned char GEO_DB_BASE_GROUP_PLUGIN_REQUIRED = 82; 1070 1071 const unsigned char GEO_DB_BASE_GROUP_START_EXTERNAL = 140; // User Derived Node Additions 1070 1071 const unsigned char GEO_DB_BASE_GROUP_START_EXTERNAL = 140; // User Derived Node Additions 1072 1072 1073 1073 … … 1082 1082 // 1083 1083 // It is important to note that user extended Surface fields begin with a field 1084 // ID of 80 (GEO_DB_BASE_SURFACE_START_EXTERNAL). This allows Geo to add 1084 // ID of 80 (GEO_DB_BASE_SURFACE_START_EXTERNAL). This allows Geo to add 1085 1085 // additional fields which will be common to all derived groups up to this 1086 1086 // number … … 1092 1092 1093 1093 // All Node Fields + 1094 1094 1095 1095 const unsigned char GEO_DB_BASE_SURFACE_CLASSNAME = 20; // BaseSurface Additions 1096 1096 const unsigned char GEO_DB_BASE_SURFACE_EXTENDED_TYPE = 21; 1097 1097 const unsigned char GEO_DB_BASE_SURFACE_PLUGIN_REQUIRED = 22; 1098 1099 const unsigned char GEO_DB_BASE_SURFACE_START_EXTERNAL = 80; // User Derived Node Additions 1098 1099 const unsigned char GEO_DB_BASE_SURFACE_START_EXTERNAL = 80; // User Derived Node Additions 1100 1100 1101 1101 … … 1114 1114 1115 1115 const unsigned char GEO_DB_RENDERGROUP_MAT = 80; // RenderGroup Additions 1116 const unsigned char GEO_DB_RENDERGROUP_TERRAIN = 81; 1117 const unsigned char GEO_DB_RENDERGROUP_BILLBOARD = 82; 1118 const unsigned char GEO_DB_RENDERGROUP_LIGHTING = 83; 1119 const unsigned char GEO_DB_RENDERGROUP_FOG = 84; 1120 const unsigned char GEO_DB_RENDERGROUP_GAIN = 85; 1121 const unsigned char GEO_DB_RENDERGROUP_TRANSPARENCY = 86; 1122 const unsigned char GEO_DB_RENDERGROUP_CULLING = 87; 1123 const unsigned char GEO_DB_RENDERGROUP_BLENDING = 88; 1124 const unsigned char GEO_DB_RENDERGROUP_ALPHA_REF = 89; 1125 const unsigned char GEO_DB_RENDERGROUP_LIGHTPTS = 90; 1116 const unsigned char GEO_DB_RENDERGROUP_TERRAIN = 81; 1117 const unsigned char GEO_DB_RENDERGROUP_BILLBOARD = 82; 1118 const unsigned char GEO_DB_RENDERGROUP_LIGHTING = 83; 1119 const unsigned char GEO_DB_RENDERGROUP_FOG = 84; 1120 const unsigned char GEO_DB_RENDERGROUP_GAIN = 85; 1121 const unsigned char GEO_DB_RENDERGROUP_TRANSPARENCY = 86; 1122 const unsigned char GEO_DB_RENDERGROUP_CULLING = 87; 1123 const unsigned char GEO_DB_RENDERGROUP_BLENDING = 88; 1124 const unsigned char GEO_DB_RENDERGROUP_ALPHA_REF = 89; 1125 const unsigned char GEO_DB_RENDERGROUP_LIGHTPTS = 90; 1126 1126 1127 1127 … … 1180 1180 // All Node Fields + 1181 1181 1182 const unsigned char GEO_DB_POLY_NORMAL = 20; // Polygon Additions 1182 const unsigned char GEO_DB_POLY_NORMAL = 20; // Polygon Additions 1183 1183 const unsigned char GEO_DB_POLY_CENTER = 21; 1184 1184 const unsigned char GEO_DB_POLY_PACKED_COLOR = 22; … … 1252 1252 // Many of the possible LightPt fields do not make sense in the context of a 1253 1253 // Light point - namely most of the Polygon rendering & texturing properties. 1254 // These will likely not be present in a Geo file - if they are they can be 1254 // These will likely not be present in a Geo file - if they are they can be 1255 1255 // ignored. 1256 1256 /////////////////////////////////////////////////////////////////////////////// … … 1310 1310 /////////////////////////////////////////////////////////////////////////////// 1311 1311 // 1312 // GEO_DB_MESH Record - Field Ids 1312 // GEO_DB_MESH Record - Field Ids 1313 1313 // 1314 1314 /////////////////////////////////////////////////////////////////////////////// … … 1344 1344 const unsigned char GEO_DB_VRTX_COORD_INDEX = 20; // Vertex Additions 1345 1345 const unsigned char GEO_DB_VRTX_UV_SET_0 = 21; 1346 const unsigned char GEO_DB_VRTX_UV_SET_1 = 22; 1347 const unsigned char GEO_DB_VRTX_UV_SET_2 = 23; 1348 const unsigned char GEO_DB_VRTX_UV_SET_3 = 24; 1349 const unsigned char GEO_DB_VRTX_UV_SET_4 = 25; 1350 const unsigned char GEO_DB_VRTX_UV_SET_5 = 26; 1351 const unsigned char GEO_DB_VRTX_UV_SET_6 = 27; 1352 const unsigned char GEO_DB_VRTX_UV_SET_7 = 28; 1346 const unsigned char GEO_DB_VRTX_UV_SET_1 = 22; 1347 const unsigned char GEO_DB_VRTX_UV_SET_2 = 23; 1348 const unsigned char GEO_DB_VRTX_UV_SET_3 = 24; 1349 const unsigned char GEO_DB_VRTX_UV_SET_4 = 25; 1350 const unsigned char GEO_DB_VRTX_UV_SET_5 = 26; 1351 const unsigned char GEO_DB_VRTX_UV_SET_6 = 27; 1352 const unsigned char GEO_DB_VRTX_UV_SET_7 = 28; 1353 1353 const unsigned char GEO_DB_VRTX_NORMAL = 29; 1354 1354 const unsigned char GEO_DB_VRTX_PACKED_COLOR = 30; … … 1588 1588 // DB_DSK_POP_ACTION 1589 1589 // 1590 // if the first state had an optional set of actions to perform when 1590 // if the first state had an optional set of actions to perform when 1591 1591 // active it would have the following construct... 1592 1592 // DB_DSK_STATE_MACHINE_ACTION … … 1652 1652 // 1653 1653 const unsigned char GEO_DB_CLAMP_ACTION_INPUT_VAR = 1; 1654 const unsigned char GEO_DB_CLAMP_ACTION_OUTPUT_VAR = 2; 1654 const unsigned char GEO_DB_CLAMP_ACTION_OUTPUT_VAR = 2; 1655 1655 const unsigned char GEO_DB_CLAMP_ACTION_MIN_VAL = 3; 1656 1656 const unsigned char GEO_DB_CLAMP_ACTION_MAX_VAL = 4; … … 1662 1662 // 1663 1663 const unsigned char GEO_DB_RANGE_ACTION_INPUT_VAR = 1; 1664 const unsigned char GEO_DB_RANGE_ACTION_OUTPUT_VAR = 2; 1664 const unsigned char GEO_DB_RANGE_ACTION_OUTPUT_VAR = 2; 1665 1665 const unsigned char GEO_DB_RANGE_ACTION_IN_MIN_VAL = 3; 1666 1666 const unsigned char GEO_DB_RANGE_ACTION_IN_MAX_VAL = 4; … … 1674 1674 // 1675 1675 const unsigned char GEO_DB_ARITHMETIC_ACTION_INPUT_VAR = 1; 1676 const unsigned char GEO_DB_ARITHMETIC_ACTION_OUTPUT_VAR = 2; 1676 const unsigned char GEO_DB_ARITHMETIC_ACTION_OUTPUT_VAR = 2; 1677 1677 const unsigned char GEO_DB_ARITHMETIC_ACTION_OP_TYPE = 3; 1678 1678 const unsigned char GEO_DB_ARITHMETIC_ACTION_OPERAND_VALUE = 4; … … 1685 1685 // 1686 1686 const unsigned char GEO_DB_EQUATION_ACTION_INPUT_VAR = 1; 1687 const unsigned char GEO_DB_EQUATION_ACTION_OUTPUT_VAR = 2; 1687 const unsigned char GEO_DB_EQUATION_ACTION_OUTPUT_VAR = 2; 1688 1688 const unsigned char GEO_DB_EQUATION_ACTION_A_VAL = 3; 1689 1689 const unsigned char GEO_DB_EQUATION_ACTION_C_VAL = 4; … … 1712 1712 // 1713 1713 const unsigned char GEO_DB_CONTINUOUS_ACTION_INPUT_VAR = 1; // Not used 1714 const unsigned char GEO_DB_CONTINUOUS_ACTION_OUTPUT_VAR = 2; 1714 const unsigned char GEO_DB_CONTINUOUS_ACTION_OUTPUT_VAR = 2; 1715 1715 const unsigned char GEO_DB_CONTINUOUS_ACTION_UPDATE_TYPE = 4; 1716 1716 const unsigned char GEO_DB_CONTINUOUS_ACTION_UPDATE_VAL = 5; … … 1728 1728 // 1729 1729 const unsigned char GEO_DB_MOMENTARY_ACTION_INPUT_VAR = 1; // Not used 1730 const unsigned char GEO_DB_MOMENTARY_ACTION_OUTPUT_VAR = 2; 1730 const unsigned char GEO_DB_MOMENTARY_ACTION_OUTPUT_VAR = 2; 1731 1731 const unsigned char GEO_DB_MOMENTARY_ACTION_DEFAULT_VAL = 3; 1732 1732 const unsigned char GEO_DB_MOMENTARY_ACTION_VAL = 4; … … 1737 1737 // 1738 1738 const unsigned char GEO_DB_NSTATE_ACTION_INPUT_VAR = 1; // Not used 1739 const unsigned char GEO_DB_NSTATE_ACTION_OUTPUT_VAR = 2; 1739 const unsigned char GEO_DB_NSTATE_ACTION_OUTPUT_VAR = 2; 1740 1740 const unsigned char GEO_DB_NSTATE_ACTION_DIRECTION = 3; 1741 1741 const unsigned char GEO_DB_NSTATE_ACTION_BEHAVIOR = 4; … … 1749 1749 // 1750 1750 const unsigned char GEO_DB_ROTARY_DRAG_ACTION_INPUT_VAR = 1; // Not used 1751 const unsigned char GEO_DB_ROTARY_DRAG_ACTION_OUTPUT_VAR = 2; 1751 const unsigned char GEO_DB_ROTARY_DRAG_ACTION_OUTPUT_VAR = 2; 1752 1752 const unsigned char GEO_DB_ROTARY_DRAG_ACTION_BEHAVIOR = 3; 1753 1753 const unsigned char GEO_DB_ROTARY_DRAG_ACTION_ORIGIN = 4; … … 1758 1758 // 1759 1759 const unsigned char GEO_DB_TASK_ACTION_INPUT_VAR = 1; 1760 const unsigned char GEO_DB_TASK_ACTION_OUTPUT_VAR = 2; 1760 const unsigned char GEO_DB_TASK_ACTION_OUTPUT_VAR = 2; 1761 1761 1762 1762 … … 1788 1788 // 1789 1789 const unsigned char GEO_DB_COMPARE_ACTION_INPUT_VAR = 1; 1790 const unsigned char GEO_DB_COMPARE_ACTION_OUTPUT_VAR = 2; 1790 const unsigned char GEO_DB_COMPARE_ACTION_OUTPUT_VAR = 2; 1791 1791 const unsigned char GEO_DB_COMPARE_ACTION_OP_TYPE = 3; 1792 1792 const unsigned char GEO_DB_COMPARE_ACTION_OPERAND_VALUE = 4; … … 1891 1891 // 1892 1892 const unsigned char GEO_DB_DISCRETE_ACTION_INPUT_VAR = 1; 1893 const unsigned char GEO_DB_DISCRETE_ACTION_OUTPUT_VAR = 2; 1893 const unsigned char GEO_DB_DISCRETE_ACTION_OUTPUT_VAR = 2; 1894 1894 const unsigned char GEO_DB_DISCRETE_ACTION_NUM_ITEMS = 3; 1895 1895 const unsigned char GEO_DB_DISCRETE_ACTION_OUTPUT_VAR_TYPE = 4; … … 1912 1912 1913 1913 /** The Node type for which this extension exists */ 1914 unsigned int nodetype; // 4 bytes 1914 unsigned int nodetype; // 4 bytes 1915 1915 1916 1916 /** The data type of the extension - defined in terms of GEO_DB_DATATYPE_INT … … 1924 1924 * of many in an option menu 1925 1925 */ 1926 unsigned char subdatatype; // 1 bytes 1927 1928 /** The User ID (uid) is the optional value provided (in code) by the user 1929 * to identify this particular extension. Users can search & retrieve 1926 unsigned char subdatatype; // 1 bytes 1927 1928 /** The User ID (uid) is the optional value provided (in code) by the user 1929 * to identify this particular extension. Users can search & retrieve 1930 1930 * extension values based on this user ID number. 1931 1931 */ … … 1943 1943 * this particular option menu's label and 1 char for the terminator 1944 1944 * 2. When the extension is a text field or boolean toggle value - it is 1945 * recommended that only the 15 chars for the field label be used - 1946 * setting a 23 char-length label for a text input field will be a 1945 * recommended that only the 15 chars for the field label be used - 1946 * setting a 23 char-length label for a text input field will be a 1947 1947 * waste of time, as it will get truncated on display anyway. 1948 1948 */
