/// <summary> /// Returns the layout position of a node v /// </summary> /// <param name="v">The node to return the position for</param> /// <returns></returns> public override Vector3 GetPositionOfNode(NETGen.Core.Vertex v) { if (_vertexPositions.ContainsKey(v)) return _vertexPositions[v]; else return new Vector3(); }
public virtual void TouchEdge(NETGen.Core.Edge e) { }
public virtual void TouchVertex(NETGen.Core.Vertex v) { }
public virtual void Init(double width, double height, NETGen.Core.Network network) { Width = width; Height = height; Network = network; }
/// <summary> /// Returns the position of a vertex in the network /// </summary> /// <returns> /// The position of vertex v /// </returns> /// <param name='v'> /// The vertex for which the position shall be returned /// </param> public abstract Vector3 GetPositionOfNode(NETGen.Core.Vertex v);
public override void Init(double width, double height, NETGen.Core.Network network) { base.Init (width, height, network); Network.OnVertexAdded+= new Network.VertexUpdateHandler( delegate(Vertex v) { DoLayout(); }); }
public Vertices(NETGen.Core.Vertex v) { ID = v.ID; Label = v.Label; }
/// <summary> /// Returns the layout position of a node v /// </summary> /// <param name="v">The node to return the position for</param> /// <returns></returns> public Vector3 GetPositionOfNode(NETGen.Core.Vertex v) { return _vertexPositions[v]; }