Ignore:
Timestamp:
Apr 19, 2012 11:09:40 AM (10 years ago)
Author:
ldelgass
Message:

Remove unused volume axis/bbox labeling from VolumeRenderer?. This feature is
now provided by the Grid. Also remove unused volume/slice mode flags in
VolumeRenderer? since it now uses cutplane information from each Volume object
instead.

File:
1 edited

Legend:

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

    r2953 r2974  
    14901490
    14911491static int
    1492 VolumeAxisOp(ClientData clientData, Tcl_Interp *interp, int objc,
    1493              Tcl_Obj *const *objv)
    1494 {
    1495     const char *string = Tcl_GetString(objv[2]);
    1496     char c;
    1497     c = string[0];
    1498     if ((c == 'l') && (strcmp(string, "label") == 0)) {
    1499         int axis;
    1500         if (GetAxisFromObj(interp, objv[3], &axis) != TCL_OK) {
    1501             return TCL_ERROR;
    1502         }
    1503         std::vector<Volume *> ivol;
    1504         if (GetVolumes(interp, objc - 5, objv + 5, &ivol) != TCL_OK) {
    1505             return TCL_ERROR;
    1506         }
    1507         std::vector<Volume *>::iterator iter;
    1508         const char *label;
    1509         label = Tcl_GetString(objv[4]);
    1510         for (iter = ivol.begin(); iter != ivol.end(); iter++) {
    1511             (*iter)->setLabel(axis, label);
    1512         }
    1513     } else {
    1514         Tcl_AppendResult(interp, "bad option \"", string,
    1515                          "\": should be label", (char*)NULL);
    1516         return TCL_ERROR;
    1517     }
    1518     return TCL_OK;
    1519 }
    1520 
    1521 static int
    15221492VolumeStateOp(ClientData clientData, Tcl_Interp *interp, int objc,
    15231493              Tcl_Obj *const *objv)
     
    15571527static Rappture::CmdSpec volumeOps[] = {
    15581528    {"animation", 2, VolumeAnimationOp,   3, 0, "oper ?args?",},
    1559     {"axis",      2, VolumeAxisOp,        4, 0, "label axis value ?indices?",},
    15601529    {"data",      2, VolumeDataOp,        3, 0, "oper ?args?",},
    15611530    {"delete",    2, VolumeDeleteOp,      3, 0, "?name...?",},
     
    15721541 * ----------------------------------------------------------------------
    15731542 * CLIENT COMMAND:
    1574  *   volume axis label x|y|z <value> ?<volumeId> ...?
    15751543 *   volume data state on|off ?<volumeId> ...?
    15761544 *   volume outline state on|off ?<volumeId> ...?
Note: See TracChangeset for help on using the changeset viewer.