/// <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();
 }
Ejemplo n.º 2
0
 public virtual void TouchEdge(NETGen.Core.Edge e)
 {
 }
Ejemplo n.º 3
0
 public virtual void TouchVertex(NETGen.Core.Vertex v)
 {
 }
Ejemplo n.º 4
0
 public virtual void Init(double width, double height, NETGen.Core.Network network)
 {
     Width = width;
     Height = height;
     Network = network;
 }
Ejemplo n.º 5
0
 /// <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);
Ejemplo n.º 6
0
        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();
            });
        }
Ejemplo n.º 7
0
 public Vertices(NETGen.Core.Vertex v)
 {
     ID = v.ID;
         Label = v.Label;
 }
Ejemplo n.º 8
0
 /// <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];
 }