Exemple #1
0
 public ColorLayer(LayerType type,
 DataUsed dataused,
 Interp interp,
 ProcessLayer calcdata,
 IGradientMap gr,
 double param1 = 0,
 double param2 = 0,
 double cycle = 1,
 double alpha = 1,
 double saturation = 1,
 double value = 1,
 LayerExtra alphaextr = LayerExtra.LAYER_EXTRA_NORMAL,
 LayerExtra saturationextr = LayerExtra.LAYER_EXTRA_NORMAL,
 LayerExtra valueextr = LayerExtra.LAYER_EXTRA_NORMAL)
 {
     c_type = type;
       c_dataused = dataused;
       c_interp = interp;
       c_valueextr = valueextr;
       c_saturationextr = saturationextr;
       c_alphaextr = alphaextr;
       c_param1 = param1;
       c_param2 = param2;
       c_value = value;
       c_saturation = saturation;
       c_alpha = alpha;
       c_cycle = cycle;
       c_calcdata = calcdata;
       c_gr = gr;
 }
Exemple #2
0
 public bool Similar(ProcessLayer p)
 {
     return (p.c_bailout == c_bailout) &&
      (p.c_convchktype == c_convchktype) &&
      (p.c_nlimit == c_nlimit) &&
      (p.c_seqtype == c_seqtype) &&
      (p.c_checktype == c_checktype) &&
      (p.c_checkseqtype == c_checkseqtype) &&
      (p.c_orbittraptype == c_orbittraptype) &&
      (p.c_pointA == c_pointA) &&
      (p.c_pointB == c_pointB);
 }
Exemple #3
0
 public void LoadFrom(ProcessLayer pl)
 {
     if (pl == this) return;
       this.c_active = pl.c_active;
       this.c_bailout = pl.c_bailout;
       this.c_calc = pl.c_calc;
       this.c_checkseqtype = pl.c_checkseqtype;
       this.c_checktype = pl.c_checktype;
       this.c_cmean = pl.c_cmean;
       this.c_convchktype = pl.c_convchktype;
       this.c_cvariance = pl.c_cvariance;
       this.c_cvarsx = pl.c_cvarsx;
       this.c_default = pl.c_default;
       this.c_isin = pl.c_isin;
       this.c_n = pl.c_n;
       this.c_nlimit = pl.c_nlimit;
       this.c_old2x = pl.c_old2x;
       this.c_oldx = pl.c_oldx;
       this.c_orbittraptype = pl.c_orbittraptype;
       this.c_pointA = pl.c_pointA;
       this.c_pointB = pl.c_pointB;
       this.c_resn = pl.c_resn;
       this.c_resx = pl.c_resx;
       this.c_seqtype = pl.c_seqtype;
       this.c_x = pl.c_x;
 }
Exemple #4
0
 public virtual void ChangeLayer(int a, ProcessLayer process, ColorLayer layer)
 {
 }
Exemple #5
0
 public virtual void AddLayer(ProcessLayer process, ColorLayer layer)
 {
     c_haschanged = true;
       ProcessLayer p = null;
       foreach (var it in c_layers)
       {
     if (process.Similar(it.c_calcdata)) p = it.c_calcdata;
       }
       if (p != null)
       {
     layer.c_calcdata = p;
     c_layers.Add(layer);
       }
       else
       {
     p = process.Clone();
     c_LayerData.Add(p);
     var xx = layer;
     xx.c_calcdata = p;
     c_layers.Add(xx);
       }
 }