MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / TclFeViewer_setViewWindow

Function TclFeViewer_setViewWindow

SRC/tcl/TclFeViewer.cpp:672–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672int
673TclFeViewer_setViewWindow(ClientData clientData, Tcl_Interp *interp, int argc,
674 TCL_Char **argv)
675{
676#ifdef _NOGRAPHICS
677 // if no graphics .. just return 0
678 return TCL_OK;
679#else
680 // check destructor has not been called
681 if (theTclFeViewer == 0)
682 return TCL_OK;
683
684 // check num args
685 if (argc < 5) {
686 opserr << "WARNING args incorrect - prp uMin uMax vMin vMax \n";
687 return TCL_ERROR;
688 }
689
690 double uMin, uMax, vMin, vMax;
691 if (Tcl_GetDouble(interp, argv[1], &uMin) != TCL_OK) {
692 opserr << "WARNING invalid uMin - vup uMin uMax vMin vMax\n";
693 return TCL_ERROR;
694 }
695 if (Tcl_GetDouble(interp, argv[2], &uMax) != TCL_OK) {
696 opserr << "WARNING invalid uMax - vup uMin uMax vMin vMax\n";
697 return TCL_ERROR;
698 }
699 if (Tcl_GetDouble(interp, argv[3], &vMin) != TCL_OK) {
700 opserr << "WARNING invalid vMin - vup uMin uMax vMin vMax\n";
701 return TCL_ERROR;
702 }
703 if (Tcl_GetDouble(interp, argv[4], &vMax) != TCL_OK) {
704 opserr << "WARNING invalid vMin - vup uMin uMax vMin vMax\n";
705 return TCL_ERROR;
706 }
707
708 theTclFeViewer->setViewWindow(float(uMin),float(uMax),float(vMin),float(vMax));
709 return TCL_OK;
710#endif
711}
712int
713TclFeViewer_setPlaneDist(ClientData clientData, Tcl_Interp *interp, int argc,
714 TCL_Char **argv)

Callers

nothing calls this directly

Calls 1

setViewWindowMethod · 0.45

Tested by

no test coverage detected