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