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; } }
// ........................................................................ 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); }
public void Assign(AETV etv) { this.etv = etv; }
public ETVPair(AETV a, AETV b) { A = a; B = b; }
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); }