/// <summary> /// Method to keep track of a reference to the 3D Radar Chart's Frequency Polygon Manager instance. /// </summary> /// <param name="tdrcFreqPolyManagerRef">Reference to the ThreeDimRadarChartInterface's Frequency Polygon Manager instance.</param> public void setTDRCFreqPolyManager(TDRCFrequencyPolygonManager tdrcFreqPolyManagerRef) { tdrcFreqPolyManager = tdrcFreqPolyManagerRef; }
public string VRLMGameObjectName; // name of the GameObject in the Scene Hierarchy that has the VirtualRealityLeapMotionInterface component attached (default: VRLM_Player) #region UNITY_EVENT_FUNCTIONS /// <summary> /// Instantiation and dynamic reference set up. /// </summary> public void Awake() { // set up (and attach) required references dataLoader = this.gameObject.AddComponent <TDRCDataLoader>(); if (dataLoader == null) { Debug.LogError("[ThreeDimRadarChartInterface] TDRCDataLoader could not be added as component."); } dataLoader.setTDRCInterface(this); freqPolyManager = this.gameObject.AddComponent <TDRCFrequencyPolygonManager>(); if (freqPolyManager == null) { Debug.LogError("[ThreeDimRadarChartInterface] TDRCFrequencyPolygonManager could not be added as component."); } freqPolyManager.setTDRCInterface(this); // check if required references have been set if (frequencyPolygonParent == null) { Debug.LogError("[ThreeDimRadarChartInterface] frequencyPolygonParent in Scene Hierarchy References has not been assigned (using Inspector)."); } if (guidanceAxis == null) { Debug.LogError("[ThreeDimRadarChartInterface] guidanceAxis in Scene Hierarchy References has not been assigned (using Inspector)."); } else { guidanceAxis.setTDRCInterface(this); } if (interact_activationToggle == null) { Debug.LogError("[ThreeDimRadarChartInterface] interact_activationToggle in Scene Hierarchy References has not been assigned (using Inspector)."); } else { interact_activationToggle.setTDRCInterface(this); } if (interact_rotationHandle == null) { Debug.LogError("[ThreeDimRadarChartInterface] interact_rotationHandle in Scene Hierarchy References has not been assigned (using Inspector)."); } else { interact_rotationHandle.setTDRCInterface(this); } if (interact_timeSliceGO == null) { Debug.LogError("[ThreeDimRadarChartInterface] interact_timeSliceGO in Scene Hierarchy References has not been assigned (using Inspector)."); } if (timeSliceRenderer == null) { Debug.LogError("[ThreeDimRadarChartInterface] timeSliceRenderer in Scene Hierarchy References has not been assigned (using Inspector)."); } else { timeSliceRenderer.setTDRCInterface(this); timeSliceRenderer.setTDRCFreqPolyManager(freqPolyManager); } if (timeSliceRadarUI == null) { Debug.LogError("[ThreeDimRadarChartInterface] timeSliceRadarUI in Scene Hierarchy References has not been assigned (using Inspector)."); } else { timeSliceRadarUI.setTDRCInterface(this); } if (timeRangeSelector == null) { Debug.LogError("[ThreeDimRadarChartInterface] timeRangeSelector in Scene Hierarchy References has not been assigned (using Inspector)."); } else { timeRangeSelector.setTDRCInterface(this); } }