00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Dale Ducharme 00008 * Side Effects 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: SOP_Error.h (C++) 00015 * 00016 * COMMENTS: 00017 * This class is used to store SOP errors or warnings. 00018 * 00019 */ 00020 00021 #ifndef __SOP_Error__ 00022 #define __SOP_Error__ 00023 00024 enum SOP_ErrorCodes 00025 { 00026 // 00027 // Cooking errors 00028 00029 SOP_ERR_INVALID_SRC = 0, // No source or source has error 00030 00031 // 00032 // File errors 00033 SOP_ERR_FILEGEO, // File error on load/save geometry 00034 00035 // 00036 // Some common cooking errors 00037 00038 SOP_ERR_BADGROUP, // Invalid group specification 00039 SOP_ERR_BAD_POINTGROUP, 00040 SOP_MESSAGE, 00041 SOP_GROUP_DUPLICATE_NAME, // SOP_Group error 00042 00043 // Some messages for the Lsystem sop 00044 SOP_LSYSTEM_STR_FIRST, // first line 00045 SOP_LSYSTEM_STR_OTHERS, // other lines 00046 SOP_LSYSTEM_PIC_FILE, // invalid raster file 00047 00048 SOP_ERR_ADD_BAD_FACE, 00049 SOP_ERR_ADD_BAD_POINT, 00050 SOP_ERR_GRP_NONAME, 00051 00052 SOP_LOAD_UNKNOWN_ASCII_FLAG, //Skipping unknown flag (%s) 00053 SOP_LOAD_UNKNOWN_BINARY_FLAG, //Skipping unknown flag 00054 00055 SOP_BAD_FLAG_FORMAT, //expecting sopflags = ... 00056 00057 SOP_NO_NORMALS, //cannot compute normals 00058 00059 SOP_BAD_DIVS, //invalid division/segment size 00060 00061 SOP_BAD_OBJECT_MERGED, //Bad object in object_merge 00062 SOP_BAD_SOP_MERGED, //Bad sop in object_merge 00063 00064 SOP_SKELETON_VOLUMES, // Number of volumes. 00065 SOP_SKELETON_POINTS, // Number of points found. 00066 SOP_SKELETON_POINTS_INVALID, // Deformation point count changed 00067 SOP_SKELETON_VOLUMES_INVALID, // Skeleton circle count changed 00068 SOP_SKELETON_HIERARCHY_INVALID, // Ellipse hierarchy changed 00069 00070 SOP_DEL_DEGENERATE, // Deletion causes degenerate prims 00071 00072 SOP_UNMATCH_SOURCE, // two source have unmatch geometry 00073 00074 SOP_BASIS_INVALID, // non-spline type #26 00075 SOP_BASIS_SELECTION, // select one of U or V 00076 SOP_BASIS_INDEX, // index exceeds primitives 00077 SOP_BASIS_BASIS, // invalid basis 00078 SOP_BASIS_INCOMPATIBLE, // incompatible bases, can't copy 00079 00080 SOP_SWEEP_REF_NPTS, // reference path and backbone 00081 // does not have same # of points 00082 SOP_SWEEP_REF_NPRIMS, // reference path and backbone 00083 // does not have same # of primitives 00084 00085 SOP_ATTRIBUTE_INVALID, // Invalid attribute name 00086 00087 SOP_DEFORM_NO_CAPT_ATR, // no capture attrib. for deformation 00088 SOP_DEFORM_INVALID_REGION, // can't find a captured region 00089 SOP_DEFORM_NUM_REGIONS, // number of regions found 00090 SOP_DEFORM_MAX_REGIONS_PERPOINT, // max regions assigned per point 00091 00092 SOP_CURVECLAY_NO_PROFILE, // no profiles on the surface 00093 00094 SOP_TRIMGRAPH_NO_LOOP, // no loop can be formed from graph. 00095 SOP_TRIMGRAPH_TWO_SIDES, // need exactly two xrsections on side 00096 00097 SOP_CAPTURE_INVALID_PARENT, // invalid hierarchy 00098 SOP_CAPTURE_INVALID_REGION, // invalid region bone hierarchy 00099 SOP_CAPTURE_NO_REGIONS, // no capture regions found in hiearchy 00100 SOP_CAPTURE_NO_COLOR, // capture region missing color attrib 00101 SOP_CAPTURE_SURF_ERR, // error in weight from surface calc. 00102 SOP_CAPTURE_NUMPTS_CHANGE, // num pts changed since capture frame 00103 SOP_CAPTURE_CAPTFRAME_ERR, // couldn't cook geo at capt frame 00104 SOP_CAPTURE_LOAD_ERR, // override file reading error 00105 SOP_CAPTURE_FILE_ERR, // override file not found 00106 SOP_CAPTURE_NPTS_MSG, // number of points captured message 00107 00108 SOP_CHANNEL_INVALID_INPUT_CHOP, // couldn't cook chop 00109 SOP_CHANNEL_MISSING_RBRACKET, // missing ) 00110 SOP_CHANNEL_INVALID_ATTRIBUTE, // couldnt find geo attribute 00111 SOP_CHANNEL_INVALID_INDEX, // index out of range for attribute 00112 SOP_CHANNEL_MISMATCHED_SCOPE, // num chans and num attrs differ 00113 SOP_CHANNEL_INVALID_CHANNEL, // couldnt find channel 00114 00115 SOP_SOFTLOCK_PTNUM_CHANGE, // num of points changed since softlock 00116 SOP_SOFTLOCK_PROMOTED, // softlock promoted to a hardlock 00117 00118 SOP_STAMP_TOKEN_IN_USE, // stamp parameter already used 00119 00120 SOP_POLYPATCH_TOO_FEW_ROWCOL, // need more rows, columns or clamping 00121 00122 SOP_CARVE_INVALID_RANGE, // need full ranges 00123 00124 SOP_VEX_ERROR, // sop vex error 00125 00126 SOP_SYNTAX_ERROR, // error parsing points list 00127 SOP_CURVE_ERROR, // curve couldn't be drawn 00128 SOP_POINT_DNE, // referenced point doesn't exist 00129 SOP_NEED_MORE_POINTS, // not enough points specified 00130 00131 SOP_CAPTURE_NO_CAPTFRAME, // missing pCaptFrame attribute 00132 00133 SOP_ERR_BADNODE, // Node not found or wrong type. 00134 00135 SOP_ERR_SELFMERGE, // Cannot use oneself as the source 00136 // of an object merge. 00137 00138 SOP_ERR_SURFACEGROUPRANGE, // Refernce to a non-existent surface 00139 // group. 00140 00141 SOP_ERR_CENTERMISMATCH, // Mismatch on center points. 00142 00143 SOP_ERR_CENTERGROUPMISSING, // Missing center groups. 00144 00145 SOP_ERR_MISMATCHBACKQUOTE, // Mismatch backquote in rule %s. 00146 00147 // SOP_WireDeform errors 00148 SOP_ERR_MISSING_RADIUS, // Missing radiusf primitive attribute 00149 SOP_ERR_RESTDEFORM_MISMATCH, // Rest and deform geometry mismatch 00150 SOP_WARN_MISSING_WCAPT_PRIMU, // Missing pCaptWirePrimU attribute 00151 SOP_ERR_MISSING_WCAPT, // Missing pCaptWirePrimU attribute 00152 SOP_ERR_MISSING_WCAPT_U, // Missing pCaptWireU attribute 00153 SOP_ERR_MISSING_WCAPT_V, // Missing pCaptWireV attribute 00154 SOP_ERR_MISMATCH_WCAPT_U, // Mismatched pCaptWireU attribute 00155 SOP_ERR_MISMATCH_WCAPT_V, // Mismatched pCaptWireU attribute 00156 SOP_ERR_MISSING_PRIMITIVE, // Missing primitive reference %s 00157 SOP_ERR_NO_DEFORM_EFFECT, // No deformation. 00158 00159 // SOP_WireCapture errors 00160 SOP_WARN_NO_PTS_CAPTURED, // Warning: No points captured. 00161 00162 SOP_ERR_INVALID_CREGION, // Error: Invalid cregion %s 00163 00164 SOP_ERR_MISMATCH_VERTEX, // Primitives have mismatching vertex counts 00165 SOP_ERR_MISMATCH_POINT, // Reference and Target have different point 00166 SOP_ERR_MISMATCH_PRIMITIVE, // Reference and Target have different prim 00167 SOP_ERR_MISMATCH_POINTLIST, // Target and Ref point lists must be same len 00168 SOP_ERR_MISMATCH_CONNECT, // Connected piece mismatch 00169 SOP_ERR_CONNECT_FAIL, // A connected piece didn't match. 00170 SOP_ERR_MATCH_DUPLICATE, // Ambiguous matching. 00171 00172 SOP_ERR_INVALID_ATTRIBUTE_NAME, // Invalid attribute name %s. 00173 SOP_ERR_MISSING_UV, // Missing uv vertext attribute. 00174 00175 SOP_UVPELT_PRIMITIVE_INDEX, // index exceeds primitives 00176 SOP_UVPELT_BOUNDARY_POINTS, // no boundary points found 00177 00178 // SOP_Facet errors 00179 SOP_WARN_PLANAR_INCOMPLETE, // Unable to make primitive planar 00180 00181 SOP_ERR_NOT_METABALL, // Input %s does not contain metaballs 00182 SOP_ERR_MISSING_MCAPT, // Input %s is missing metaCapt point attribute 00183 SOP_ERR_MISSING_MCAPTFRAME, // Input %s is missing metaCaptFrame attribute 00184 SOP_ERR_MISSING_MCAPTGROUPS,// Input %s is missing metaCaptGroups attribute 00185 SOP_WARN_MISSING_COLOR, // Input %s is missing pt/primitive Cd attribute 00186 SOP_WARN_CAPTOBJ_INVALID, // Capture Object %s is invalid or won't cook 00187 00188 SOP_ERR_MISSING_MCAPTDATA, // Input %s is missing metaCaptData attribute 00189 SOP_ERR_MISSING_MCAPTPATHS, // Input %s is missing metaCaptPaths attribute 00190 SOP_ERR_MISSING_MCAPTGROUPMAP, // Input %s misisng metaCaptGroupMap attr 00191 00192 SOP_ERR_PRIM_NUMS_DIFFERENT, // Inputs contain different numbers of primitives. 00193 SOP_ERR_NOT_OPEN_CURVE, // Primitives must be open curves. 00194 00195 // Muscle sliding errors for Capture/Deform meta 00196 SOP_ERR_MISSING_ANCHORXFORMS, 00197 SOP_ERR_INVALID_ANCHORPATH, 00198 00199 SOP_ERR_RENAME, // Cannot rename group '%s' 00200 SOP_ERR_RENAME_DUPLICATE, // Name conflict renaming '%s' to '%s' 00201 00202 // DeformMuscle errors 00203 SOP_ERR_MISSING_INFLATENORMALS, 00204 SOP_ERR_MISSING_CENTERINPUT, 00205 SOP_ERR_METABALL_COUNT_CHANGED, // DeformMuscle and DeformMeta 00206 SOP_ERR_METABALLS_NO_GROUPS, // Capture Meta - metaballs aren't in groups. 00207 SOP_ERR_BAD_MUSCLE_NAME, // Invalid muscle name specification. 00208 SOP_ERR_CANNOT_REMOVE_REGION, // Error removing capture region %s. 00209 00210 // Attribute transfer errors 00211 SOP_ERR_MISSMATCH_GROUP_TYPE, // Specified input group is not a %s. 00212 00213 // PointCloudIso error 00214 SOP_ERR_MISSING_POINT_NORMALS, // Input SOP missing point normals 00215 00216 // SOPZ_DopImport error 00217 SOP_ERR_OBJECT_NAME_CONFLICT, // Duplicate source DOP object names. 00218 SOP_ERR_NO_DOP_OBJECTS, // No DOP object names specified. 00219 00220 SOP_ERR_MDD_MISMATCH_POINT, // MDD file and input have different # points 00221 SOP_ERR_FILEMDD, // Please specify an MDD file 00222 SOP_ERR_MDDCORRUPT, // MDD file "%s" may be corrupt 00223 00224 SOP_ERR_CAPT_MISMATCH_POINT, // Input and painted geometry don't have 00225 // matching point counts. 00226 00227 SOP_ERR_METABALL_THRESHOLDMODE_BAD_WEIGHT, // Bad weight for threshold mode 00228 SOP_ERR_MANIFOLD_GEOMETRY, // Invalid Geometry 00229 00230 SOP_NUM_ERROR_TYPES // sentinel 00231 }; 00232 00233 #endif
1.5.9