public void OnChange(AETV observable)
        {
            int layer = 0;

            // Check if visible
            if (observable.gameObject.activeSelf)
            {
                layer = LayerMask.NameToLayer("Default");
                foreach (var p in paths.Values)
                {
                    p.Show();
                }
            }
            else
            {
                layer = LayerMask.NameToLayer("Invisible");
                foreach (var p in paths.Values)
                {
                    p.Hide();
                }
            }

            gameObject.layer = layer;

            foreach (var t in transform.GetComponentsInChildren <Transform>())
            {
                t.gameObject.layer = layer;
            }
        }
Example #2
0
    // ........................................................................ Explicit Methods

    public void Init(AETV etv, AxisPair axes, int dsID)
    {
        metaVisualization = etv;
        spanningAxes      = axes;
        dataSetID         = dsID;
        initialized       = true;

        FindShadowAxes();
        Observe(axes.A);
        Observe(axes.B);
    }
 public void Assign(VisBridge visBridge, AETV ID)
 {
     root    = visBridge;
     this.ID = ID;
     Observe(ID);
 }
 public void OnDispose(AETV observable)
 {
     // Nothing
 }
 public void Ignore(AETV observable)
 {
     // Nothing
 }
        // .................................................................... IObserver<AETV>

        public void Observe(AETV observable)
        {
            observable.Subscribe(this);
        }
Example #7
0
 public void Assign(AETV etv)
 {
     this.etv = etv;
 }
Example #8
0
 public ETVPair(AETV a, AETV b)
 {
     A = a;
     B = b;
 }
Example #9
0
 public AttributeETVCombination(string attribute, AETV etv)
 {
     this.attribute = attribute;
     this.etv       = etv;
 }
 public void RotateAndScaleCorrectly(AETV mVis, AAxis[] axes)
 {
     mVis.transform.localScale = new Vector3(.5f, .5f, .5f);
 }