当前位置: 首页>>代码示例>>C#>>正文


C# MarkerType类代码示例

本文整理汇总了C#中MarkerType的典型用法代码示例。如果您正苦于以下问题:C# MarkerType类的具体用法?C# MarkerType怎么用?C# MarkerType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MarkerType类属于命名空间,在下文中一共展示了MarkerType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Marker

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="markertype">The marker type.</param>
 /// <param name="size">The marker size.</param>
 /// <param name="pen">The marker Pen.</param>
 public Marker( MarkerType markertype, int size, Pen pen )
 {
     markerType_ = markertype;
     Size = size;
     Pen = pen;
     filled_ = false;
 }
开发者ID:helloyou2012,项目名称:ChartProject,代码行数:13,代码来源:Marker.cs

示例2: TileData

 public TileData(bool isTileImportant, Color colour, MarkerType hasMarker = MarkerType.Unknown)
 {
     this.isImportant = isTileImportant;
     this.colour = colour;
     this.drawMarker = false;
     this.markerType = hasMarker;
 }
开发者ID:jordsti,项目名称:TPulse,代码行数:7,代码来源:TileProperties.cs

示例3: CreateRandomScatterSeries

        private static ScatterSeries CreateRandomScatterSeries(int n, MarkerType markerType, bool setSize, bool setValue, LinearColorAxis colorAxis)
        {
            var s1 = new ScatterSeries
            {
                MarkerType = markerType,
                MarkerSize = 6,
                ColorAxisKey = colorAxis != null ? colorAxis.Key : "nix"
            };
            var random = new Random(13);
            for (int i = 0; i < n; i++)
            {
                var p = new ScatterPoint((random.NextDouble() * 2.2) - 1.1, random.NextDouble());
                if (setSize)
                {
                    p.Size = (random.NextDouble() * 5) + 5;
                }

                if (setValue)
                {
                    p.Value = (random.NextDouble() * 2.2) - 1.1;
                }

                s1.Points.Add(p);
            }

            return s1;
        }
开发者ID:Cheesebaron,项目名称:oxyplot,代码行数:27,代码来源:ScatterSeriesExamples.cs

示例4: TokenMarker

 public TokenMarker(int id, Vector2 postion, TouchState state, MarkerType type)
 {
     this._id = id;
     this._position = postion;
     this._state = state;
     this._type = type;
 }
开发者ID:alyssonds,项目名称:Touchable,代码行数:7,代码来源:TokenMarker.cs

示例5: GetMarkerImage

        protected string GetMarkerImage(MarkerType markerType)
        {
            var rawUri = WebConfigurationManager.AppSettings["RawUri"];
            string imagePath;

            switch (markerType)
            {
                case MarkerType.Bus:
                    imagePath = WebConfigurationManager.AppSettings["BusMarkerImagePath"];
                    break;
                case MarkerType.RideOffer:
                    imagePath = WebConfigurationManager.AppSettings["RideOfferMarkerImagePath"];
                    break;
                case MarkerType.RideRequest:
                    imagePath = WebConfigurationManager.AppSettings["RideRequestMarkerImagePath"];
                    break;
                case MarkerType.Help:
                    imagePath = WebConfigurationManager.AppSettings["HelpMarkerImagePath"];
                    break;
                default:
                    imagePath = string.Empty;
                    break;
            }

            var uri = string.Format("{0}{1}", rawUri, imagePath);
            return new Uri(uri).AbsoluteUri;
        }
开发者ID:dcollioni,项目名称:BrMobi,代码行数:27,代码来源:BaseController.cs

示例6: Thrust

 public Vector3 Thrust(MarkerType reference)
 {
     Vector3 thrust, torque;
     GameObject marker = RCSBuildAid.GetMarker(reference);
     calcMarkerForces (marker.transform, out thrust, out torque);
     return thrust;
 }
开发者ID:FormalRiceFarmer,项目名称:KerbalMods,代码行数:7,代码来源:MarkerForces.cs

示例7: TileData

		public TileData()
		{
			this.isImportant = false;
			this.color = Color.Magenta;
            this.officialColor = Color.Magenta;
            this.transparent = false;
			this.markerType = MarkerType.Unknown;
		}
开发者ID:Terminologies,项目名称:MoreTerra,代码行数:8,代码来源:TileProperties.cs

示例8: Waypoint

 // Constructor for new Waypoint Generation
 public Waypoint(Point p, MarkerType marker, IslandType island)
 {
     this.Location = Coordinates.FromPoint(p);
     this.Island = island;
     this.Marker = marker;
     this.Name = string.Empty;
     this.Notes = String.Empty;
 }
开发者ID:Alshain01,项目名称:SaltMaps,代码行数:9,代码来源:Waypoint.cs

示例9: CloseMarker

 private void CloseMarker(MarkerType type, int position)
 {
     if (!IsMarkerOpened(type))
         throw new Exception("Trying to close closed marker");
     var marker = openedMarkers[type];
     markers.Add(new Marker(marker.LInclusive, position, marker.Type));
     openedMarkers.Remove(type);
 }
开发者ID:mpivko,项目名称:01-quality,代码行数:8,代码来源:Parser.cs

示例10: CreateRandomScatterSeriesWithColorAxisPlotModel

 private static PlotModel CreateRandomScatterSeriesWithColorAxisPlotModel(int n, OxyPalette palette, MarkerType markerType, AxisPosition colorAxisPosition, OxyColor highColor, OxyColor lowColor)
 {
     var model = new PlotModel { Title = string.Format("ScatterSeries (n={0})", n), Background = OxyColors.LightGray };
     var colorAxis = new LinearColorAxis { Position = colorAxisPosition, Palette = palette, Minimum = -1, Maximum = 1, HighColor = highColor, LowColor = lowColor };
     model.Axes.Add(colorAxis);
     model.Series.Add(CreateRandomScatterSeries(n, markerType, false, true, colorAxis));
     return model;
 }
开发者ID:benjaminrupp,项目名称:oxyplot,代码行数:8,代码来源:ScatterSeriesExamples.cs

示例11: AddStamp

        public Stamp AddStamp(MarkerType m, int size, Point p)
        {
            if (m == MarkerType.None || HasStamp(p))
                return null;

            Stamp stamp = new Stamp(p, size, m);
            stamps.Add(stamp);
            return stamp;
        }
开发者ID:Alshain01,项目名称:SaltMaps,代码行数:9,代码来源:Map.cs

示例12: EntityMarker

 public EntityMarker(BankEntity entity, IconType iconType)
 {
     this.Entity = entity;
     this.MarkerOptions = new MarkerOptions ();
     this.MarkerOptions.SetTitle (entity.Description());
     this.MarkerOptions.SetPosition (new LatLng(entity.Latitude, entity.Longitude));
     this.Type = MarkerType.Regular;
     IconType = iconType;
 }
开发者ID:priyaaank,项目名称:XamarinMapsPoc,代码行数:9,代码来源:EntityMarker.cs

示例13: AddWaypoint

        public Waypoint AddWaypoint(IslandType i, MarkerType m, Point p)
        {
            if (i == IslandType.None && m == MarkerType.None || waypoints.Exists(x => x.GetLocation() == p))
                return null;

            Waypoint wp = new Waypoint(p, m, i);
            waypoints.Add(wp);
            return wp;
        }
开发者ID:Alshain01,项目名称:SaltMaps,代码行数:9,代码来源:Map.cs

示例14: Marker

 public Marker(MarkerType markertype, Vector3 position, Color color, AnimationType type)
 {
     this.markertype = markertype;
     this.position = position;
     this.color = color;
     this.type = type;
     this.scale = Default_Scale;
     _time = 0;
 }
开发者ID:TylerEspo,项目名称:AnimationV,代码行数:9,代码来源:Marker.cs

示例15: Marker

        /// <summary>
        /// Initializes a new instance of the <see cref="Marker"/> class.
        /// </summary>
        /// <param name="offset">The offset of the marked region.</param>
        /// <param name="length">The length of the marked region.</param>
        /// <param name="markerType">Type of the text marker.</param>
        /// <param name="color">The color of the text marker.</param>
        public Marker(int offset, int length, MarkerType markerType, Color color)
        {
            if (length < 1)
            length = 1;

              _offset = offset;
              _length = length;
              _markerType = markerType;
              _color = color;
        }
开发者ID:cavaliercoder,项目名称:expression-lab,代码行数:17,代码来源:Marker.cs


注:本文中的MarkerType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。