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); }
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); }
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); }
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); }
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); }
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); }
//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); }
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); }