Exemplo n.º 1
0
 public PWGraphCommand(string fromNodeName, string fromAnchorFieldName, string toNodeName, string toAnchorFieldName)
 {
     this.type                = PWGraphCommandType.LinkAnchorName;
     this.fromNodeName        = fromNodeName;
     this.fromAnchorFieldName = fromAnchorFieldName;
     this.toNodeName          = toNodeName;
     this.toAnchorFieldName   = toAnchorFieldName;
 }
Exemplo n.º 2
0
 //new link with anchor index constructor
 public PWGraphCommand(string fromNodeName, int fromAnchorIndex, string toNodeName, int toAnchorIndex)
 {
     this.type            = PWGraphCommandType.LinkAnchor;
     this.fromNodeName    = fromNodeName;
     this.fromAnchorIndex = fromAnchorIndex;
     this.toNodeName      = toNodeName;
     this.toAnchorIndex   = toAnchorIndex;
 }
Exemplo n.º 3
0
 //New node constructor
 public PWGraphCommand(Type nodeType, string name, string attributes = null)
 {
     this.type         = PWGraphCommandType.NewNode;
     this.nodeType     = nodeType;
     this.name         = name;
     this.forcePositon = false;
     this.attributes   = attributes;
 }
Exemplo n.º 4
0
 //New node with position constructor
 public PWGraphCommand(Type nodeType, string name, Vector2 position, string attributes = null)
 {
     this.type         = PWGraphCommandType.NewNodePosition;
     this.nodeType     = nodeType;
     this.name         = name;
     this.position     = position;
     this.forcePositon = true;
     this.attributes   = attributes;
 }
Exemplo n.º 5
0
 //new link constructor
 public PWGraphCommand(string fromNodeName, string toNodeName)
 {
     this.type         = PWGraphCommandType.Link;
     this.fromNodeName = fromNodeName;
     this.toNodeName   = toNodeName;
 }