예제 #1
0
 public Head(Joint parent, Point p, Human human)
 {
     Center = new Joint(p);
     parent.AddChild(Center);
     Ellipse = new Ellipse()
     {
         Width  = Radius * 2,
         Height = Radius * 2
     };
     box = new ControlBox(Center, this, human);
 }
예제 #2
0
 public Arm(Joint parent, Point root, Point joint, Point head, Human human)
 {
     this.human = human;
     Root       = new Joint(root);
     Joint      = new Joint(joint);
     Head       = new Joint(head);
     Root.AddChild(Joint);
     Joint.AddChild(Head);
     parent.AddChild(Root);
     Line     = new Polyline();
     jointBox = new ControlBox(Joint, this, human);
     headBox  = new ControlBox(Head, this, human);
     UpdateShape();
     Joint.ConstrainLength = true;
     Head.ConstrainLength  = true;
 }