Ignore:
Timestamp:
Dec 2, 2014, 9:03:53 PM (5 years ago)
Author:
ldelgass
Message:

merge r4814 from trunk

Location:
vtkvis/branches/1.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/branches/1.8

  • vtkvis/branches/1.8/RendererCmd.cpp

    r4792 r4815  
    71817181
    71827182static int
     7183ImageSliceInterpOp(ClientData clientData, Tcl_Interp *interp, int objc,
     7184                   Tcl_Obj *const *objv)
     7185{
     7186    bool state;
     7187    if (GetBooleanFromObj(interp, objv[2], &state) != TCL_OK) {
     7188        return TCL_ERROR;
     7189    }
     7190    if (objc == 4) {
     7191        const char *name = Tcl_GetString(objv[3]);
     7192        g_renderer->setImageSliceInterp(name, state);
     7193    } else {
     7194        g_renderer->setImageSliceInterp("all", state);
     7195    }
     7196    return TCL_OK;
     7197}
     7198
     7199static int
    71837200ImageSlicePlaneOp(ClientData clientData, Tcl_Interp *interp, int objc,
    71847201                  Tcl_Obj *const *objv)
     
    72687285    {"pos",          1, ImagePositionOp, 5, 6, "x y z ?dataSetName?"},
    72697286    {"scale",        2, ImageScaleOp, 5, 6, "sx sy sz ?dataSetName?"},
     7287    {"sinterp",      2, ImageSliceInterpOp, 3, 4, "bool ?dataSetName?"},
    72707288    {"slice",        2, ImageSlicePlaneOp, 8, 9, "nx ny nz ox oy oz ?dataSetName?"},
    72717289    {"visible",      1, ImageVisibleOp, 3, 4, "bool ?dataSetName?"},
Note: See TracChangeset for help on using the changeset viewer.