本文整理汇总了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;
}
示例2: TileData
public TileData(bool isTileImportant, Color colour, MarkerType hasMarker = MarkerType.Unknown)
{
this.isImportant = isTileImportant;
this.colour = colour;
this.drawMarker = false;
this.markerType = hasMarker;
}
示例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;
}
示例4: TokenMarker
public TokenMarker(int id, Vector2 postion, TouchState state, MarkerType type)
{
this._id = id;
this._position = postion;
this._state = state;
this._type = type;
}
示例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;
}
示例6: Thrust
public Vector3 Thrust(MarkerType reference)
{
Vector3 thrust, torque;
GameObject marker = RCSBuildAid.GetMarker(reference);
calcMarkerForces (marker.transform, out thrust, out torque);
return thrust;
}
示例7: TileData
public TileData()
{
this.isImportant = false;
this.color = Color.Magenta;
this.officialColor = Color.Magenta;
this.transparent = false;
this.markerType = MarkerType.Unknown;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}