Exemple #1
0
 // -------------------------------------------------
 public AreaOnScreen (MSPlot plot, int [] iFunc, MSPlotAuxi [] auxi, FunctionAccess [] acs)  
 {
     area = plot;
     ifunc = iFunc;
     auxidraw = auxi;
     acsfuncs = acs;
     Rectangle rc = area .MainArea .Area;
 }
 // -------------------------------------------------
 public FuncInputInfo (string strShow, FunctionAccess access, double xL, double xR, double yT, double yB)
 {
     strNameOnScreen = strShow;
     funaccess = access;
     fX_L = xL;
     fX_R = xR;
     fY_T = yT;
     fY_B = yB;
 }
 // -------------------------------------------------        CreateAreaOnScreen
 private AreaOnScreen CreateAreaOnScreen (MSPlot plot, int [] nFuncs)
 {
     MSPlotAuxi [] auxi = new MSPlotAuxi [nFuncs .Length];
     FunctionAccess [] acs = new FunctionAccess [nFuncs .Length];
     for (int i = 0; i < nFuncs .Length; i++)
     {
         acs [i] = funcInputInfo [nFuncs [i]] .FunctionAccess;
         auxi [i] = new MSPlotAuxi (i, SegmentLocation .Partly_Inside);
         if (acs [i] .Source == DataSource .ParametricFunction ||
             acs [i] .Source == DataSource .InterpreterParametric)
         {
             auxi [i] .ParamTrio (acs [i] .ParamFrom, acs [i] .ParamTo, acs [i] .ParamStep);
         }
     }
     return (new AreaOnScreen (plot, nFuncs, auxi, acs));   
 }