Changeset 4224 for branches/1.3


Ignore:
Timestamp:
Mar 11, 2014, 9:25:44 AM (11 years ago)
Author:
ldelgass
Message:

merge r3926:3929 from trunk

Location:
branches/1.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/packages/vizservers/vtkvis/RendererCmd.cpp

    r3877 r4224  
    13171317{
    13181318    const char *title = Tcl_GetString(objv[3]);
    1319     if (strlen(title) > 30) {
     1319    if (strlen(title) > 60) {
    13201320        Tcl_AppendResult(interp, "axis name \"", title,
    13211321                         "\" is too long", (char*)NULL);
     
    16011601{
    16021602    const char *units = Tcl_GetString(objv[3]);
    1603     if (strlen(units) > 10) {
     1603    if (strlen(units) > 20) {
    16041604        Tcl_AppendResult(interp, "axis units name \"", units,
    16051605                         "\" is too long", (char*)NULL);
  • branches/1.3/src/core/RpUnits.cc

    r4223 r4224  
    26982698    // RpUnits* cubic_meter  = RpUnits::define("m3", NULL, RP_TYPE_VOLUME);
    26992699    // 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);
    27052705
    27062706    /*
     
    27832783RpUnitsPreset::addPresetMass () {
    27842784
    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);
    27882786
    27892787    return 0;
     
    28852883RpUnitsPreset::addPresetForce () {
    28862884
    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);
    28902886
    28912887    return 0;
     
    29352931/**
    29362932 * Defines the following units:
     2933 *   volt  (V)
    29372934 *   mole  (mol)
    2938  *
     2935 *   hertz (Hz)
     2936 *   becquerel (Bq)
     2937 *   amu
     2938 *   bel (B)
     2939 *   amp
     2940 *   ohm
    29392941 * Return codes: 0 success, anything else is error
    29402942 */
     
    29432945RpUnitsPreset::addPresetMisc () {
    29442946
    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);
    29622955
    29632956    // RpUnits* percent   = RpUnits::define("%",  NULL, RP_TYPE_MISC);
     
    29792972RpUnitsPreset::addPresetPower () {
    29802973
    2981     RpUnits* watt      = NULL;
    2982 
    29832974    // 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);
    29852976
    29862977    return 0;
  • branches/1.3/video/RpVideo.c

    r4223 r4224  
    123123static int VideoAllocImgBuffer (VideoObj *vidPtr, int width, int height);
    124124static int VideoFreeImgBuffer (VideoObj *vidPtr);
     125
     126#ifdef notdef
    125127static double VideoTransformFrames2Duration (VideoObj *vidPtr, int frame);
    126128static int VideoTransformDuration2Frames (VideoObj *vidPtr, double duration);
     129#endif
    127130
    128131/*
     
    15211524}
    15221525
     1526#ifdef notdef
    15231527/*
    15241528 * ------------------------------------------------------------------------
     
    15971601    return frames;
    15981602}
     1603#endif
    15991604
    16001605/*
Note: See TracChangeset for help on using the changeset viewer.