本文整理汇总了C#中MarkerType类的典型用法代码示例。如果您正苦于以下问题:C# MarkerType类的具体用法?C# MarkerType怎么用?C# MarkerType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MarkerType类属于命名空间,在下文中一共展示了MarkerType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: ActivateMarkerOnMouse
public static void ActivateMarkerOnMouse(MarkerType markerType)
{
if (CachedDidHit) {
PlayerManager.OrderMarker.PlayOneShot (CachedHit.point, CachedHit.normal, markerType);
return;
}
Vector3 hitPoint = CachedRay.origin - CachedRay.direction * (CachedRay.origin.y / CachedRay .direction.y);
if (PlayerManager.OrderMarker != null)
PlayerManager.OrderMarker.PlayOneShot (hitPoint, Vector3.up, markerType);
}
开发者ID:simutronics,项目名称:Lockstep-Framework,代码行数:10,代码来源:Interfacing.cs
示例17: Marker
public Marker(PointLatLng pos, MarkerType type, MarkerColor color)
{
this.Position = pos;
this.Type = type;
this.Color = color;
this.Text = string.Empty;
this.TooltipMode = MarkerTooltipMode.OnMouseOver;
this.Visible = true;
this.CustomMarkerAlign = CustomMarkerAlign.MiddleMiddle;
this.CustomMarkerCenter = Point.Empty;
this.IsMouseOver = false;
this.ToolTipOffset = new Point(14, -44);
}
开发者ID:gipasoft,项目名称:Sfera,代码行数:14,代码来源:Marker.cs
示例18: LoadConfig
public static void LoadConfig ()
{
configAbsolutePath = Path.Combine (KSPUtil.ApplicationRootPath, configPath);
settings = ConfigNode.Load (configAbsolutePath) ?? new ConfigNode ();
com_reference = (MarkerType)GetValue ("com_reference", (int)MarkerType.CoM);
plugin_mode = (PluginMode)GetValue ("plugin_mode", (int)PluginMode.RCS);
direction = (Direction)GetValue ("direction", (int)Direction.right);
menu_vessel_mass = GetValue ("menu_vessel_mass", false);
menu_res_mass = GetValue ("menu_res_mass" , false);
marker_scale = GetValue ("marker_scale" , 1f );
include_rcs = GetValue ("include_rcs" , true );
include_wheels = GetValue ("include_wheels" , false);
eng_include_rcs = GetValue ("eng_include_rcs" , false);
resource_amount = GetValue ("resource_amount" , false);
use_dry_mass = GetValue ("use_dry_mass" , true );
show_marker_com = GetValue ("show_marker_com" , true );
show_marker_dcom = GetValue ("show_marker_dcom", true );
show_marker_acom = GetValue ("show_marker_acom", false);
marker_autoscale = GetValue ("marker_autoscale", true );
menu_minimized = GetValue ("menu_minimized" , false);
applauncher = GetValue ("applauncher" , true );
action_screen = GetValue ("action_screen" , false);
toolbar_plugin = GetValue ("toolbar_plugin" , true );
window_x = GetValue ("window_x" , 280 );
window_y = GetValue ("window_y" , 114 );
/* for these resources, set some defaults */
resource_cfg ["LiquidFuel"] = GetValue (resourceKey ("LiquidFuel"), false);
resource_cfg ["Oxidizer"] = GetValue (resourceKey ("Oxidizer") , false);
resource_cfg ["SolidFuel"] = GetValue (resourceKey ("SolidFuel") , false);
resource_cfg ["XenonGas"] = GetValue (resourceKey ("XenonGas") , true );
resource_cfg ["IntakeAir"] = GetValue (resourceKey ("IntakeAir") , true );
resource_cfg ["Ablator"] = GetValue (resourceKey ("Ablator") , true );
resource_cfg ["Ore"] = GetValue (resourceKey ("Ore") , false );
resource_cfg ["MonoPropellant"] = GetValue (resourceKey ("MonoPropellant"), true);
string bodyname = GetValue ("selected_body", "Kerbin");
selected_body = PSystemManager.Instance.localBodies.Find (b => b.name == bodyname);
if (selected_body == null) {
/* can happen in a corrupted settings.cfg */
selected_body = Planetarium.fetch.Home;
}
Events.ConfigSaving += SaveConfig;
}
开发者ID:ZiwKerman,项目名称:RCSBuildAid,代码行数:47,代码来源:Settings.cs
示例19: ReadDataSetTrackerName
private static string[] ReadDataSetTrackerName(MarkerType markerType)
{
string[] result = new string[2];
string datasetPath;
if (markerType == MarkerType.IMAGE)
{
datasetPath = IMAGE_DATASET_PATH;
}
else
{
datasetPath = OBJECT_DATASET_PATH;
}
//Get DataSet name
string[] tempArray = Directory.GetDirectories(Application.dataPath + datasetPath );
if (tempArray.Length == 0)
{
EditorApplication.Exit(INVALID_PACKAGE_ERROR_CODE);
}
result[0] = Path.GetFileName(tempArray[0]);
string temp = tempArray[0];
//Get target Name
tempArray = Directory.GetFiles(temp);
if (tempArray.Length == 0)
{
EditorApplication.Exit(INVALID_PACKAGE_ERROR_CODE);
}
temp = Path.GetFileNameWithoutExtension(tempArray[0]);
if (temp.Substring(temp.Length - 7, 7).Equals("_scaled"))
{
temp = temp.Substring(0, temp.Length-7);
}
result[1] = temp;
return result;
}
开发者ID:nus-mtp,项目名称:ar-design-tool,代码行数:43,代码来源:BuildProject.cs
示例20: CreateRandomScatterSeriesWithColorAxisPlotModel
public static PlotModel CreateRandomScatterSeriesWithColorAxisPlotModel(int n, OxyPalette palette, MarkerType markerType = MarkerType.Square, AxisPosition colorAxisPosition = AxisPosition.Right, OxyColor highColor = null, OxyColor lowColor = null)
{
var model = new PlotModel(string.Format("ScatterSeries (n={0})", n)) { Background = OxyColors.LightGray };
model.Axes.Add(new ColorAxis { Position = colorAxisPosition, Palette = palette, Minimum = -1, Maximum = 1, HighColor = highColor, LowColor = lowColor });
var s1 = new ScatterSeries
{
MarkerType = markerType,
MarkerSize = 6,
};
var random = new Random();
for (int i = 0; i < n; i++)
{
double x = random.NextDouble() * 2.2 - 1.1;
s1.Points.Add(new ScatterPoint(x, random.NextDouble()) { Value = x });
}
model.Series.Add(s1);
return model;
}
开发者ID:aleksanderkobylak,项目名称:oxyplot,代码行数:20,代码来源:ScatterSeriesExamples.cs
注:本文中的MarkerType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论