本文整理汇总了C#中EdgeType类的典型用法代码示例。如果您正苦于以下问题:C# EdgeType类的具体用法?C# EdgeType怎么用?C# EdgeType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EdgeType类属于命名空间,在下文中一共展示了EdgeType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NavGraphEdge
public NavGraphEdge( int fromIdx, int toIdx, float cost, EdgeType edgeType=EdgeType.normal )
{
fromIdx_ = fromIdx;
toIdx_ = toIdx;
cost_ = cost;
edgeType_ = edgeType;
}
示例2: add
public void add(String name, String seriesName, int issueYear, int width, int height, EdgeType type, int faceValue, double multiplier)
{
if (this.index < StampCatalog.MAX_NUMBER_OF_STAMPS)
{
this.stamps[this.index++] = new Stamp(name, seriesName, issueYear, width, height, type, faceValue, multiplier);
}
}
示例3: Edge
public Edge()
{
type = EdgeType.Normal;
name = "Edge";
id = 0;
behaviors = new List<Behavior>();
}
示例4: EdgeTemplate
public EdgeTemplate(EdgeType type, int width, int height)
{
Type = type;
Width = width;
Height = height;
Points = GetPoints(type, width, height);
}
示例5: Edge
public Edge()
{
type = EdgeType.Normal;
id = 0;
_name = "Edge_" + id;
behaviors = new List<Behavior>();
}
示例6: EdgeDescription
public EdgeDescription(Vector3 pos, Direction direction,
EdgeType type)
{
position = pos;
dir = direction;
this.type = type;
}
示例7: Edge
/// <summary>
/// Creates a new edge between source and target. The edge is not registered with the source and
/// target vertices unless it is added to the graph!
/// </summary>
/// <param name="a">The A vertex</param>
/// <param name="b">The B vertex</param>
/// <param name="graph">The graph to which this edge belongs</param>
/// <param name="type">Whether to create an undirected or a directed edge</param>
public Edge(Vertex a, Vertex b, Network graph, EdgeType type)
{
ID = Guid.NewGuid();
A = a;
B = b;
Network = graph;
EdgeType = type;
}
示例8: SweepEvent
public SweepEvent(Point p, bool isLeft, PolygonType polygonType, SweepEvent otherSweepEvent, EdgeType edgeType)
{
this.p = p;
this.isLeft = isLeft;
this.polygonType = polygonType;
this.otherSE = otherSweepEvent;
this.edgeType = edgeType;
}
示例9: Square
public Square(Point point, int size, Color surfaceColor, Color borderColor, EdgeType edgeType) : this()
{
this.Location = point;
this.Size = size;
this.SurfaceColor = surfaceColor;
this.BorderColor = borderColor;
this.EdgeType = edgeType;
}
示例10: EnsureEdgeInfo
internal void EnsureEdgeInfo(uint edgeId, uint startSlotId, uint endSlotId, EdgeType edgeType)
{
VisualEdge edge = controller.GetVisualEdge(edgeId);
Assert.AreNotEqual(null, edge); // Make sure the edge exists.
Assert.AreEqual(startSlotId, edge.StartSlotId); // Connecting from...
Assert.AreEqual(endSlotId, edge.EndSlotId); // Connecting to...
Assert.AreEqual(edgeType, edge.EdgeType); // Explicit or implicit?
}
示例11: AbstractEdge
public AbstractEdge(string name, long unid, bool showAnnotation, int weight, Position position, Transition transition, EdgeType edgeType)
: base(name, unid, showAnnotation)
{
this.weight = weight;
this.position = position;
this.transition = transition;
this.edgeType = edgeType;
}
示例12: Edges
/// <summary>
/// Returns the edges in the graph of the type given, as set
/// </summary>
public static Dictionary<IEdge, SetValueType> Edges(IGraph graph, EdgeType edgeType, int threadId)
{
Dictionary<IEdge, SetValueType> edgesSet = new Dictionary<IEdge, SetValueType>();
foreach(IEdge edge in graph.GetCompatibleEdges(edgeType))
{
edgesSet[edge] = null;
}
return edgesSet;
}
示例13: PlanarGraphEdge
public PlanarGraphEdge(GeometryTutorLib.ConcreteAST.Point targ, EdgeType type, double c, int initDegree)
{
this.target = targ;
edgeType = type;
cost = c;
degree = initDegree;
isCycle = false;
}
示例14: Stamp
public Stamp(String name, String seriesName, int issueYear, int width, int height, EdgeType type, int faceValue, double multiplier)
{
this.name = name;
this.seriesName = seriesName;
this.issueYear = issueYear;
this.data = new StampData(width, height, type);
this.faceValue = faceValue;
this.multiplier = multiplier;
}
示例15: Edge
public Edge(Vertex start, Vertex end, EdgeType type)
{
Start = start;
End = end;
Type = type;
Start.Add(this);
End.Add(this);
}