public override void OnGUI(string searchContext)
        {
            base.OnGUI(searchContext);
            EditorGUIUtility.labelWidth = MarsEditorGUI.SettingsLabelWidth;

            EditorGUILayout.LabelField("Simulation Data Visuals", EditorStyles.boldLabel);
            m_DataVisualsModuleOptionsDrawer.InspectorGUI(m_DataVisualsModuleOptionsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Simulated Data Discovery", EditorStyles.boldLabel);
            m_DebugVisualsSettingsDrawer.InspectorGUI(m_DebugSettingsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Proxy Forces Solver", EditorStyles.boldLabel);
            m_ProxyForcesFieldSolverModuleDrawer.InspectorGUI(m_ProxyForcesFieldSolverModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Composite Render", EditorStyles.boldLabel);
            m_CompositeRenderModuleOptionsDrawer.InspectorGUI(m_CompositeRenderModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("X-Ray Module", EditorStyles.boldLabel);
            m_XRayOptionsDrawer.InspectorGUI(m_XRayOptionsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
Ejemplo n.º 2
0
        void DrawDataOwnership(MARSDatabase db)
        {
            using (var scope = new EditorGUILayout.ScrollViewScope(m_DataOwnershipScrollPosition))
            {
                EditorGUILayout.Space();
                EditorGUIUtils.DrawDictionaryWithHeader(db.DataUsedByQueries, "Used By Proxies",
                                                        "Query ID", "Data IDs", m_OwnershipKeyColumnWidth, m_OwnershipValueColumnWidth,
                                                        CollectionExtensions.Stringify);

                EditorGUILayout.Space();
                EditorGUIUtils.DrawBoxSplitter();
                EditorGUIUtils.DrawDictionaryWithHeader(db.DataUsedByQueryMatches, "Used By Each Proxy Match",
                                                        "Query Match ID", "Data ID", m_OwnershipKeyColumnWidth, m_OwnershipValueColumnWidth);

                EditorGUILayout.Space();
                EditorGUIUtils.DrawDictionaryWithHeader(db.SetDataUsedByQueryMatches, "Used By Each ProxyGroup Match",
                                                        "Query Match ID", "Data IDs", m_OwnershipKeyColumnWidth, m_OwnershipValueColumnWidth,
                                                        CollectionExtensions.Stringify);

                EditorGUILayout.Space();
                EditorGUIUtils.DrawBoxSplitter();
                EditorGUIUtils.DrawDictionaryWithHeader(db.ReservedData, "Reserved Data",
                                                        "Data ID", "Reserved By Query", m_OwnershipKeyColumnWidth, m_OwnershipValueColumnWidth);

                EditorGUILayout.Space();
                EditorGUIUtils.DrawBoxSplitter();
                EditorGUIUtils.DrawDictionaryWithHeader(db.SharedDataUsersCounter, "Shared Data",
                                                        "Data ID", "# of Users", m_OwnershipKeyColumnWidth, m_OwnershipValueColumnWidth);

                EditorGUILayout.Space();
                EditorGUIUtils.DrawBoxSplitter();
                m_DataOwnershipScrollPosition = scope.scrollPosition;
            }
        }
 public override void OnGUI(string searchContext)
 {
     base.OnGUI(searchContext);
     EditorGUILayout.LabelField("Enable Logging", EditorStyles.boldLabel);
     m_MarsDebugLoggingSettingsDrawer.InspectorGUI(m_DebugSettingsObject);
     EditorGUIUtils.DrawBoxSplitter();
     EditorGUILayout.Space();
 }
        public override void OnGUI(string searchContext)
        {
            base.OnGUI(searchContext);
            EditorGUIUtility.labelWidth = MarsEditorGUI.SettingsLabelWidth;

            EditorGUILayout.LabelField("Simulation Settings", EditorStyles.boldLabel);
            m_SimulationSettingsDrawer.InspectorGUI(m_SimulationSettingsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Query Simulation Module", EditorStyles.boldLabel);
            m_QuerySimulationModuleDrawer.InspectorGUI(m_QuerySimulationModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Environment Manager", EditorStyles.boldLabel);
            m_EnvironmentManagerDrawer.InspectorGUI(m_EnvironmentManagerObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Environment Settings", EditorStyles.boldLabel);
            m_SimulationEnvironmentSettingsDrawer.InspectorGUI(m_SimulationEnvironmentSettingsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Recording Playback Module", EditorStyles.boldLabel);
            m_RecordingPlaybackModule.InspectorGUI(m_RecordingPlaybackModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Time Module", EditorStyles.boldLabel);
            m_TimeModuleDrawer.InspectorGUI(m_TimeModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Session Recording", EditorStyles.boldLabel);
            m_SessionRecordingSettingsDrawer.InspectorGUI(m_SessionRecordingSettingsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Scene Module", EditorStyles.boldLabel);
            m_SceneModuleSimulationSettingsDrawer.InspectorGUI(m_SceneModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Video Context", EditorStyles.boldLabel);
            m_VideoContextSettingsDrawer.InspectorGUI(m_SimulationVideoContextSettingsObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Simulated Geolocation", EditorStyles.boldLabel);
            m_GeoLocationModuleSimulationDrawer.InspectorGUI(m_GeoLocationModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
        public override void OnInspectorGUI()
        {
            EditorGUILayout.LabelField("Scene Tracking", EditorStyles.boldLabel);
            m_SceneModuleSceneTrackingDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Simulation Settings", EditorStyles.boldLabel);
            m_SceneModuleSimulationSettingsDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
Ejemplo n.º 6
0
        public override void OnInspectorGUI()
        {
            EditorGUILayout.LabelField("Enable Logging", EditorStyles.boldLabel);
            m_MarsDebugLoggingSettingsDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Simulated Data Discovery", EditorStyles.boldLabel);
            m_MarsDebugVisualsSettingsDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
        public override void OnInspectorGUI()
        {
            EditorGUILayout.LabelField("Runtime Options", EditorStyles.boldLabel);
            m_GeoLocationModuleRuntimeDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Simulated Options", EditorStyles.boldLabel);
            m_GeoLocationModuleSimulationDrawer.InspectorGUI(serializedObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
Ejemplo n.º 8
0
        internal void InspectorGUI(SerializedObject serializedObject)
        {
            serializedObject.Update();
            EditorGUIUtility.labelWidth = MarsEditorGUI.SettingsLabelWidth;
            using (var changeCheckScope = new EditorGUI.ChangeCheckScope())
            {
                using (new EditorGUI.IndentLevelScope())
                {
                    EditorGUILayout.HelpBox(k_SimDiscoveryHelpText, MessageType.Info);

                    EditorGUILayout.LabelField("Point Cloud Drawing", EditorStyles.boldLabel);
                    using (new EditorGUI.IndentLevelScope())
                    {
                        m_SimDiscoveryPointCloudDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft("Raycasts", m_SimDiscoveryPointCloudDebugProperty.boolValue);
                        EditorGUILayout.PropertyField(m_SimDiscoveryPointCloudRayGizmoTimeProperty, new GUIContent("Raycast Draw Time"));
                    }

                    EditorGUILayout.LabelField("Plane Drawing", EditorStyles.boldLabel);
                    using (new EditorGUI.IndentLevelScope())
                    {
                        m_SimDiscoveryPlaneVerticesDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft("Vertices", m_SimDiscoveryPlaneVerticesDebugProperty.boolValue);
                        m_SimDiscoveryPlaneExtentsDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft("2D Bounding boxes", m_SimDiscoveryPlaneExtentsDebugProperty.boolValue);
                        m_SimDiscoveryPlaneCenterDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft("Center Points", m_SimDiscoveryPlaneCenterDebugProperty.boolValue);
                        m_SimDiscoveryVoxelsDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft(m_DebugVoxelsContent, m_SimDiscoveryVoxelsDebugProperty.boolValue);
                    }

                    EditorGUILayout.LabelField("Image Marker Drawing", EditorStyles.boldLabel);
                    using (new EditorGUI.IndentLevelScope())
                    {
                        m_SimDiscoveryImageMarkerDebugProperty.boolValue =
                            EditorGUILayout.ToggleLeft("Camera Tracking", m_SimDiscoveryImageMarkerDebugProperty.boolValue);
                    }
                }

                EditorGUIUtils.DrawBoxSplitter();

                EditorGUILayout.LabelField("Scene View", EditorStyles.boldLabel);
                EditorGUILayout.PropertyField(
                    m_InteractionTargetSelectionProperty, new GUIContent("Allow interaction target selection"));

                if (changeCheckScope.changed)
                {
                    serializedObject.ApplyModifiedProperties();
                }
            }
        }
Ejemplo n.º 9
0
        public override void OnGUI(string searchContext)
        {
            base.OnGUI(searchContext);
            EditorGUIUtility.labelWidth = MarsEditorGUI.SettingsLabelWidth;

            EditorGUILayout.LabelField("Scene Module", EditorStyles.boldLabel);
            m_SceneModuleSceneTrackingDrawer.InspectorGUI(m_SceneModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Scene Watchdog", EditorStyles.boldLabel);
            m_SceneWatchdogModuleDrawer.InspectorGUI(m_SceneWatchdogObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }
        public override void OnGUI(string searchContext)
        {
            base.OnGUI(searchContext);
            EditorGUIUtility.labelWidth = MarsEditorGUI.SettingsLabelWidth;

            EditorGUILayout.LabelField("Query Evaluation", EditorStyles.boldLabel);
            m_EvaluationSchedulerModuleDrawer.InspectorGUI(m_EvaluationScheduleModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Reasoning APIs", EditorStyles.boldLabel);
            m_ReasoningModuleDrawer.InspectorGUI(m_ReasoningModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Geolocation", EditorStyles.boldLabel);
            m_GeoLocationModuleRuntimeDrawer.InspectorGUI(m_GeoLocationModuleObject);
            EditorGUIUtils.DrawBoxSplitter();
            EditorGUILayout.Space();
        }