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("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); }
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); }