예제 #1
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("GridMap");
            Listener         = p.AddListener();
            Frame            = p.AddFrame();
            Description      = p.AddDataLabel("Min/Max").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);;
            IntensityChannel = p.AddDropdown("Intensity Channel");
            Colormap         = p.AddDropdown("Colormap")
                               .SetOptions(Resource.Colormaps.Names)
                               .SetIndex((int)ColormapId.hsv);

            ForceMinMax  = p.AddToggle("Colormap Force Min/Max");
            MinIntensity = p.AddNumberInputField("Colormap Min");
            MaxIntensity = p.AddNumberInputField("Colormap Max");
            FlipMinMax   = p.AddToggle("Flip Min/Max");

            Alpha = p.AddSlider("Alpha").SetMinValue(0).SetMaxValue(1).SetNumberOfSteps(256);

            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();

            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #2
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("Robot");
            Frame             = p.AddFrame();
            HelpText          = p.AddDataLabel("<b>No Robot Loaded</b>").SetAlignment(TextAnchor.MiddleCenter).SetHasRichText(true);
            SourceParameter   = p.AddInputFieldWithHints("Load From Source Parameter").SetPlaceholder("<none>");
            SavedRobotName    = p.AddDropdown("Load From Saved");
            AttachToTf        = p.AddToggle("Attach to TF Frames");
            Tint              = p.AddColorPicker("Tint");
            Alpha             = p.AddSlider("Alpha").SetMinValue(0).SetMaxValue(1).SetNumberOfSteps(256);
            Metallic          = p.AddSlider("Metallic").SetMinValue(0).SetMaxValue(1).SetNumberOfSteps(256);
            Smoothness        = p.AddSlider("Smoothness").SetMinValue(0).SetMaxValue(1).SetNumberOfSteps(256);
            OcclusionOnlyMode = p.AddToggle("AR Occlusion Only Mode");
            Save              = p.AddToggle("Save this Robot Locally");

            Material = p.AddCollapsibleWidget("Visuals")
                       .Attach(OcclusionOnlyMode)
                       .Attach(Tint)
                       .Attach(Alpha)
                       .Attach(Metallic)
                       .Attach(Smoothness)
                       .UpdateSize();

            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #3
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("Image");
            Listener    = p.AddListener();
            Frame       = p.AddFrame();
            Description = p.AddDataLabel("").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);;
            Colormap    = p.AddDropdown("Colormap")
                          .SetOptions(Resource.Colormaps.Names)
                          .SetIndex((int)ColormapId.gray);
            Min        = p.AddSlider("Colormap Min").SetMinValue(0).SetMaxValue(1);
            Max        = p.AddSlider("Colormap Max").SetMinValue(0).SetMaxValue(1);
            FlipMinMax = p.AddToggle("Flip Min/Max");

            PreviewWidget = p.AddImagePreviewWidget("Preview");

            ShowBillboard          = p.AddToggle("Show As Billboard");
            BillboardSize          = p.AddSlider("Billboard Size").SetMinValue(0.1f).SetMaxValue(10);
            BillboardFollowsCamera = p.AddToggle("Billboard Points To You");
            BillboardOffset        = p.AddVector3Slider("Billboard Offset");

            billboard = p.AddCollapsibleWidget("Billboard")
                        .Attach(ShowBillboard)
                        .Attach(BillboardSize)
                        .Attach(BillboardFollowsCamera)
                        .Attach(BillboardOffset)
                        .UpdateSize();

            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #4
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("Occupancy\nGrid");
            Listener    = p.AddListener();
            Frame       = p.AddFrame();
            Description = p.AddDataLabel("").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);
            Colormap    = p.AddDropdown("Colormap")
                          .SetOptions(Resource.Colormaps.Names)
                          .SetIndex((int)ColormapId.gray);
            FlipColors  = p.AddToggle("Colormap Flip Min/Max");
            ShowTexture = p.AddToggle("Show As Textured Plane");

            Tint = p.AddColorPicker("Tint");
            //Alpha = p.AddSlider("Alpha").SetMinValue(0).SetMaxValue(1).SetNumberOfSteps(256);
            ShowCubes         = p.AddToggle("Show As Bars");
            ScaleZ            = p.AddSlider("Height").SetMinValue(0.01f).SetMaxValue(5.0f).SetNumberOfSteps(49);
            OcclusionOnlyMode = p.AddToggle("AR Occlusion Only Mode");

            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();

            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #5
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("LaserScan");
            Listener  = p.AddListener();
            Frame     = p.AddFrame();
            NumPoints = p.AddDataLabel("Number of Points").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);
            PointSize = p.AddSlider("Point Size").SetMinValue(0.01f).SetMaxValue(0.1f);
            Colormap  = p.AddDropdown("Colormap")
                        .SetOptions(Resource.Colormaps.Names)
                        .SetIndex((int)ColormapId.hsv);
            UseIntensity = p.AddToggle("Use Intensity instead of Range");

            ForceMinMax  = p.AddToggle("Colormap Override Min/Max");
            MinIntensity = p.AddNumberInputField("Colormap Min");
            MaxIntensity = p.AddNumberInputField("Colormap Max");
            FlipMinMax   = p.AddToggle("Flip Min/Max");

            UseLines = p.AddToggle("Use Lines");

            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #6
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("PointCloud");
            Listener       = p.AddListener();
            Frame          = p.AddFrame();
            NumPoints      = p.AddDataLabel("Number of Points").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);
            PointSize      = p.AddSlider("Point Size").SetMinValue(0.05f).SetMaxValue(1f);
            SizeMultiplier = p.AddSlider("Multiply Point Size by Power of 10").SetMinValue(-4).SetMaxValue(4)
                             .SetIntegerOnly(true);
            IntensityChannel = p.AddInputFieldWithHints("Intensity Channel")
                               .SetOptions(DefaultChannels);
            Colormap = p.AddDropdown("Colormap")
                       .SetOptions(Resource.Colormaps.Names)
                       .SetIndex((int)ColormapId.hsv);

            ForceMinMax    = p.AddToggle("Colormap Override Min/Max");
            MinIntensity   = p.AddNumberInputField("Colormap Min");
            MaxIntensity   = p.AddNumberInputField("Colormap Max");
            FlipMinMax     = p.AddToggle("Flip Min/Max");
            PointCloudType = p.AddDropdown("Show as").SetOptions(new[] { "Points", "Cubes", "Spheres" });


            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();
            //p.AddToggle("Override Color");
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #7
0
        //public ToggleWidget PublishHead { get; private set; }
        //public ToggleWidget PublishPlanes { get; private set; }

        //public SenderWidget HeadSender { get; private set; }
        //public SenderWidget MarkersSender { get; private set; }

        void Awake()
        {
            DataPanelWidgets p = GetComponent<DataPanelWidgets>();
            p.AddHeadTitleWidget("GUI Dialogs");
            CloseButton = p.AddTrashButton();
            HideButton = p.AddHideButton();
            Listener = p.AddListener();
            Frame = p.AddFrame();
            FeedbackSender = p.AddSender();

            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #8
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("AR");
            CloseButton = p.AddTrashButton();
            HideButton  = p.AddHideButton();
            ResetButton = p.AddResetButton();
            Frame       = p.AddFrame();
            Description = p.AddDataLabel("").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);
            WorldScale  = p.AddSlider("World Scale").SetMinValue(0.01f).SetMaxValue(1f);

            AutoFocus = p.AddToggle("Enable AutoFocus");

            PublishFrequency         = p.AddDropdown("Publish AR camera images");
            PublishFrequency.Options = new[]
            {
                "Off",
                "5 FPS",
                "10 FPS",
                "15 FPS",
                "20 FPS",
                "30 FPS"
            };

            OcclusionQuality         = p.AddDropdown("Occlusion Quality");
            OcclusionQuality.Options = new[]
            {
                "Off",
                "Fastest",
                "Medium",
                "Best",
            };

            ARMarkers             = p.AddARMarker();
            MarkerSender          = p.AddSender();
            ColorSender           = p.AddSender();
            DepthSender           = p.AddSender();
            DepthConfidenceSender = p.AddSender();

            p.AddCollapsibleWidget("Publishers")
            .Attach(MarkerSender)
            .Attach(ColorSender)
            .Attach(DepthSender)
            .Attach(DepthConfidenceSender)
            .UpdateSize();

            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #9
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("Octomap");
            CloseButton       = p.AddTrashButton();
            HideButton        = p.AddHideButton();
            Listener          = p.AddListener();
            Frame             = p.AddFrame();
            Tint              = p.AddColorPicker("Tint");
            MaxDepth          = p.AddSlider("Max Depth").SetMinValue(8).SetMaxValue(16).SetIntegerOnly(true);
            OcclusionOnlyMode = p.AddToggle("AR Occlusion Only Mode");
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #10
0
        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("DepthCloud");
            DepthTopic = p.AddListener();
            //DepthInfoTopic = p.AddListener();
            ColorTopic   = p.AddListener();
            Frame        = p.AddFrame();
            Description  = p.AddDataLabel("").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter);;
            Depth        = p.AddInputFieldWithHints("Depth Topic");
            Color        = p.AddInputFieldWithHints("Color Topic");
            DepthPreview = p.AddImagePreviewWidget("Depth Preview");
            ColorPreview = p.AddImagePreviewWidget("Color Preview");
            CloseButton  = p.AddTrashButton();
            HideButton   = p.AddHideButton();
            p.UpdateSize();
            gameObject.SetActive(false);
        }
예제 #11
0
        //public ToggleWidget PublishLongTapPosition { get; private set; }
        //public InputFieldWithHintsWidget TapTopic { get; private set; }
        //public SenderWidget Sender { get; private set; }
        //public DataLabelWidget LastTapPosition { get; private set; }

        void Awake()
        {
            DataPanelWidgets p = GetComponent <DataPanelWidgets>();

            p.AddHeadTitleWidget("Grid");
            CloseButton  = p.AddTrashButton();
            HideButton   = p.AddHideButton();
            ShowInterior = p.AddToggle("Show Interior").SetValue(true);
            FollowCamera = p.AddToggle("Follow Camera").SetValue(true);
            HideInARMode = p.AddToggle("Hide in AR Mode").SetValue(true);
            Offset       = p.AddVector3Slider("Offset");
            ColorPicker  = p.AddColorPicker("Grid Color").SetValue(Color.gray);

            /*
             * PublishLongTapPosition = p.AddToggle("Publish Long Tap Position").SetValue(true);
             * TapTopic = p.AddInputFieldWithHints("Tap Topic");
             * Sender = p.AddSender();
             * LastTapPosition = p.AddDataLabel("").SetAlignment(TextAnchor.MiddleCenter).SetHasRichText(true);
             */
            p.UpdateSize();
            gameObject.SetActive(false);
        }