Examples of ElementNameContainsCriterion


Examples of edu.cmu.cs.stage3.alice.core.criterion.ElementNameContainsCriterion

      if (leftLowerArm != null) leftLowerArmInitialOrient = leftLowerArm.getOrientationAsAxes((ReferenceFrame)leftLowerArm.getParent());
 
    }
   
    public void findArms() {
      edu.cmu.cs.stage3.alice.core.Element[] arms = m_subject.search(new ElementNameContainsCriterion("UpperArm"));
      for (int i = 0; i < arms.length; i++) {
        if ((arms[i].getKey().indexOf("left") != -1) && (arms[i] instanceof edu.cmu.cs.stage3.alice.core.Transformable) ){
          leftUpperArm = (edu.cmu.cs.stage3.alice.core.Transformable)arms[i];
          leftLowerArm = getTransformableChild(leftUpperArm);
          if ((leftLowerArm != null) && (leftLowerArm.name.getStringValue().indexOf("Hand") != -1)){
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.criterion.ElementNameContainsCriterion

      quat.setMatrix33(orient);
      return quat;
    }
   
    public void findHead() {
      edu.cmu.cs.stage3.alice.core.Element[] heads = m_subject.search(new ElementNameContainsCriterion("head"));
     
      if (heads.length > 0) {
        head = (edu.cmu.cs.stage3.alice.core.Transformable)heads[0];
      }
    }
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.criterion.ElementNameContainsCriterion

  }
   
   
    // search model to find the legs
    public void findLegs() {
      edu.cmu.cs.stage3.alice.core.Element[] legs = subject.search(new ElementNameContainsCriterion("UpperLeg"));
      for (int i = 0; i < legs.length; i++) {
        if ((legs[i].getKey().indexOf("leftU") != -1) && (legs[i] instanceof edu.cmu.cs.stage3.alice.core.Transformable) ){
          leftUpper = (edu.cmu.cs.stage3.alice.core.Transformable)legs[i];
          leftLower = getTransformableChild(leftUpper);
          if (leftLower.name.getStringValue().indexOf("Foot") != -1){
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.criterion.ElementNameContainsCriterion

        }
      }
    }
   
    public void findArms() {
      edu.cmu.cs.stage3.alice.core.Element[] arms = subject.search(new ElementNameContainsCriterion("UpperArm"));
      for (int i = 0; i < arms.length; i++) {
        if ((arms[i].getKey().indexOf("left") != -1) && (arms[i] instanceof edu.cmu.cs.stage3.alice.core.Transformable) ){
          leftUpperArm = (edu.cmu.cs.stage3.alice.core.Transformable)arms[i];
          leftLowerArm = getTransformableChild(leftUpperArm);
          if ((leftLowerArm != null) && (leftLowerArm.name.getStringValue().indexOf("Hand") != -1)){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.