Changeset 3835 for trunk/packages/vizservers
- Timestamp:
- Jul 24, 2013 2:00:22 PM (11 years ago)
- Location:
- trunk/packages/vizservers/vtkvis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r3818 r3835 8890 8890 8891 8891 static int 8892 PolyDataPreInterpOp(ClientData clientData, Tcl_Interp *interp, int objc, 8893 Tcl_Obj *const *objv) 8894 { 8895 bool state; 8896 if (GetBooleanFromObj(interp, objv[2], &state) != TCL_OK) { 8897 return TCL_ERROR; 8898 } 8899 if (objc == 4) { 8900 const char *name = Tcl_GetString(objv[3]); 8901 g_renderer->setGraphicsObjectInterpolateBeforeMapping<PolyData>(name, state); 8902 } else { 8903 g_renderer->setGraphicsObjectInterpolateBeforeMapping<PolyData>("all", state); 8904 } 8905 return TCL_OK; 8906 } 8907 8908 static int 8892 8909 PolyDataScaleOp(ClientData clientData, Tcl_Interp *interp, int objc, 8893 8910 Tcl_Obj *const *objv) … … 8984 9001 {"origin", 4, PolyDataOriginOp, 5, 6, "x y z ?name?"}, 8985 9002 {"pos", 2, PolyDataPositionOp, 5, 6, "x y z ?dataSetName?"}, 9003 {"preinterp", 2, PolyDataPreInterpOp, 3, 4, "bool ?dataSetName?"}, 8986 9004 {"ptsize", 2, PolyDataPointSizeOp, 3, 4, "size ?dataSetName?"}, 8987 9005 {"scale", 2, PolyDataScaleOp, 5, 6, "sx sy sz ?dataSetName?"}, -
trunk/packages/vizservers/vtkvis/protocol.txt
r3834 r3835 708 708 polydata origin <x> <y> <z> <?name?> 709 709 polydata pos <x> <y> <z> <?dataSetName?> 710 polydata preinterp <bool> <?dataSetName?> 711 Controls if VTK's InterpolateScalarsBeforeMapping option is set. 712 Setting this on will give more correct colors, as the interpolation 713 is done on texture coordinates that lookup into a 1D texture instead 714 of using color interpolation from triangle vertices. 710 715 polydata ptsize <size> <?dataSetName?> 711 716 polydata scale <sx> <sy> <sz> <?dataSetName?>
Note: See TracChangeset
for help on using the changeset viewer.