Changeset 4224 for branches/1.3
- Timestamp:
- Mar 11, 2014, 9:25:44 AM (11 years ago)
- Location:
- branches/1.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/packages/vizservers/vtkvis/RendererCmd.cpp
r3877 r4224 1317 1317 { 1318 1318 const char *title = Tcl_GetString(objv[3]); 1319 if (strlen(title) > 30) {1319 if (strlen(title) > 60) { 1320 1320 Tcl_AppendResult(interp, "axis name \"", title, 1321 1321 "\" is too long", (char*)NULL); … … 1601 1601 { 1602 1602 const char *units = Tcl_GetString(objv[3]); 1603 if (strlen(units) > 10) {1603 if (strlen(units) > 20) { 1604 1604 Tcl_AppendResult(interp, "axis units name \"", units, 1605 1605 "\" is too long", (char*)NULL); -
branches/1.3/src/core/RpUnits.cc
r4223 r4224 2698 2698 // RpUnits* cubic_meter = RpUnits::define("m3", NULL, RP_TYPE_VOLUME); 2699 2699 // RpUnits* cubic_feet = RpUnits::define("ft3", NULL, RP_TYPE_VOLUME); 2700 RpUnits* us_gallon = NULL;2701 RpUnits* liter = NULL;2702 2703 us_gallon =RpUnits::define("gal", NULL, RP_TYPE_VOLUME);2704 liter =RpUnits::define("L", NULL, RP_TYPE_VOLUME, RPUNITS_METRIC);2700 // RpUnits* us_gallon = NULL; 2701 // RpUnits* liter = NULL; 2702 2703 RpUnits::define("gal", NULL, RP_TYPE_VOLUME); 2704 RpUnits::define("L", NULL, RP_TYPE_VOLUME, RPUNITS_METRIC); 2705 2705 2706 2706 /* … … 2783 2783 RpUnitsPreset::addPresetMass () { 2784 2784 2785 RpUnits* gram = NULL; 2786 2787 gram = RpUnits::define("g", NULL, RP_TYPE_MASS, RPUNITS_METRIC,!RPUNITS_CASE_INSENSITIVE); 2785 RpUnits::define("g", NULL, RP_TYPE_MASS, RPUNITS_METRIC,!RPUNITS_CASE_INSENSITIVE); 2788 2786 2789 2787 return 0; … … 2885 2883 RpUnitsPreset::addPresetForce () { 2886 2884 2887 RpUnits* newton = NULL; 2888 2889 newton = RpUnits::define("N", NULL, RP_TYPE_FORCE, RPUNITS_METRIC); 2885 RpUnits::define("N", NULL, RP_TYPE_FORCE, RPUNITS_METRIC); 2890 2886 2891 2887 return 0; … … 2935 2931 /** 2936 2932 * Defines the following units: 2933 * volt (V) 2937 2934 * mole (mol) 2938 * 2935 * hertz (Hz) 2936 * becquerel (Bq) 2937 * amu 2938 * bel (B) 2939 * amp 2940 * ohm 2939 2941 * Return codes: 0 success, anything else is error 2940 2942 */ … … 2943 2945 RpUnitsPreset::addPresetMisc () { 2944 2946 2945 RpUnits* volt = NULL; 2946 RpUnits* mole = NULL; 2947 RpUnits* hertz = NULL; 2948 RpUnits* becquerel = NULL; 2949 RpUnits* amu = NULL; 2950 RpUnits* bel = NULL; 2951 RpUnits* amp = NULL; 2952 RpUnits* ohm = NULL; 2953 2954 volt = RpUnits::define("V", NULL, RP_TYPE_EPOT, RPUNITS_METRIC); 2955 mole = RpUnits::define("mol",NULL, "quantity", RPUNITS_METRIC); 2956 hertz = RpUnits::define("Hz", NULL, "frequency", RPUNITS_METRIC); 2957 becquerel = RpUnits::define("Bq", NULL, "radioactivity", RPUNITS_METRIC); 2958 amu = RpUnits::define("amu", NULL, "mass_unit", !RPUNITS_METRIC); 2959 bel = RpUnits::define("B", NULL, "audio_transmission", RPUNITS_METRIC); 2960 amp = RpUnits::define("amp", NULL, "electric_current", RPUNITS_METRIC); 2961 ohm = RpUnits::define("ohm", NULL, "electric_resistance", RPUNITS_METRIC); 2947 RpUnits::define("V", NULL, RP_TYPE_EPOT, RPUNITS_METRIC); 2948 RpUnits::define("mol",NULL, "quantity", RPUNITS_METRIC); 2949 RpUnits::define("Hz", NULL, "frequency", RPUNITS_METRIC); 2950 RpUnits::define("Bq", NULL, "radioactivity", RPUNITS_METRIC); 2951 RpUnits::define("amu", NULL, "mass_unit", !RPUNITS_METRIC); 2952 RpUnits::define("B", NULL, "audio_transmission", RPUNITS_METRIC); 2953 RpUnits::define("amp", NULL, "electric_current", RPUNITS_METRIC); 2954 RpUnits::define("ohm", NULL, "electric_resistance", RPUNITS_METRIC); 2962 2955 2963 2956 // RpUnits* percent = RpUnits::define("%", NULL, RP_TYPE_MISC); … … 2979 2972 RpUnitsPreset::addPresetPower () { 2980 2973 2981 RpUnits* watt = NULL;2982 2983 2974 // watts are derived units = J/s = kg*m2/s3 = Newton*m/s and Amps*Volt 2984 watt =RpUnits::define("W", NULL, RP_TYPE_POWER, RPUNITS_METRIC);2975 RpUnits::define("W", NULL, RP_TYPE_POWER, RPUNITS_METRIC); 2985 2976 2986 2977 return 0; -
branches/1.3/video/RpVideo.c
r4223 r4224 123 123 static int VideoAllocImgBuffer (VideoObj *vidPtr, int width, int height); 124 124 static int VideoFreeImgBuffer (VideoObj *vidPtr); 125 126 #ifdef notdef 125 127 static double VideoTransformFrames2Duration (VideoObj *vidPtr, int frame); 126 128 static int VideoTransformDuration2Frames (VideoObj *vidPtr, double duration); 129 #endif 127 130 128 131 /* … … 1521 1524 } 1522 1525 1526 #ifdef notdef 1523 1527 /* 1524 1528 * ------------------------------------------------------------------------ … … 1597 1601 return frames; 1598 1602 } 1603 #endif 1599 1604 1600 1605 /*
Note: See TracChangeset
for help on using the changeset viewer.