Ignore:
Timestamp:
May 11, 2009, 4:39:13 PM (15 years ago)
Author:
gah
Message:

Initial commit of new flow visualization command structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.cpp

    r1382 r1429  
    141141static Tcl_ObjCmdProc CameraCmd;
    142142static Tcl_ObjCmdProc CutplaneCmd;
    143 static Tcl_ObjCmdProc FlowCmd;
     143extern Tcl_AppInitProc FlowCmdInitProc;
    144144static Tcl_ObjCmdProc GridCmd;
    145145static Tcl_ObjCmdProc LegendCmd;
     
    17251725// ========================= VOLUME END ==================================
    17261726
     1727#ifdef notdef
    17271728// ============================= FLOW ==================================
    17281729
     
    19571958        return TCL_ERROR;
    19581959    }
    1959     NanoVis::lic_on = state;
     1960    /* NanoVis::lic_on = state; */
    19601961    return TCL_OK;
    19611962}
     
    19731974        return TCL_ERROR;
    19741975    }
     1976#ifdef notdef
    19751977    switch (axis) {
    19761978    case 0 :
     
    19841986        break;
    19851987    }
     1988#endif
    19861989    return TCL_OK;
    19871990}
     
    20532056    }
    20542057
    2055     NanoVis::particle_on = state;
     2058    /* NanoVis::particle_on = state; */
    20562059    return TCL_OK;
    20572060}
     
    21992202
    22002203// ============================ FLOW END ==================================
     2204#endif
    22012205
    22022206static int
     
    28322836    Tcl_Interp *interp;
    28332837    interp = Tcl_CreateInterp();
     2838    /*
    28342839    Tcl_MakeSafe(interp);
    2835 
     2840    */
    28362841    Tcl_CreateObjCommand(interp, "axis",        AxisCmd,        NULL, NULL);
    28372842    Tcl_CreateObjCommand(interp, "camera",      CameraCmd,      NULL, NULL);
    28382843    Tcl_CreateObjCommand(interp, "cutplane",    CutplaneCmd,    NULL, NULL);
    2839     Tcl_CreateObjCommand(interp, "flow",        FlowCmd,        NULL, NULL);
     2844    if (FlowCmdInitProc(interp) != TCL_OK) {
     2845        return NULL;
     2846    }
    28402847    Tcl_CreateObjCommand(interp, "grid",        GridCmd,        NULL, NULL);
    28412848    Tcl_CreateObjCommand(interp, "heightmap",   HeightMapCmd,   NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.