Package edu.cmu.cs.stage3.alice.core

Examples of edu.cmu.cs.stage3.alice.core.Element.search()


                } else {
                  openingSceneStructure.addElement( new StringObjectPair( (String)child.name.getValue(), factory.createItem( child ) ) );
                }
              }
            } else {
              if( (child.search( criterion ).length > 0) || criterion.accept( child ) ) {
                // if it's the current scene group its kids need to go in the main pop-up
                if (child.equals(currentGroup)) {
                  groupKids = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
                 
                  /*groupKids.add(0, structure.remove(0));
View Full Code Here


                }
              }
            } else {
              if (child.equals(currentGroup)) {
                groupKids = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
              } else if( (child.search( criterion ).length > 0) || criterion.accept( child ) ) {
                delayedBindingPopupItem = new DelayedBindingPopupItem() {
                  public Object createItem() {
                    java.util.Vector subStructure = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
                    if( (subStructure.size() == 1) && criterion.accept( child ) ) {
                      if( child.equals( currentValue ) ) {
View Full Code Here

                  otherModels.addElement( new StringObjectPair( (String)child.name.getValue(), factory.createItem( child ) ) );
                }
              }
            }
          } else {
            if( (child.search( criterion ).length > 0) || criterion.accept( child ) ) {
              delayedBindingPopupItem = new DelayedBindingPopupItem() {
                public Object createItem() {
                  //edu.cmu.cs.stage3.alice.core.Group cGroup = edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool.getSceneManager().getCurrentGroup();
                  java.util.Vector subStructure = makeSceneElementStructure( child, criterion, factory, context, currentValue,currentGroup );
                  //java.util.Vector subStructure = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
View Full Code Here

              }
             
            }
          }
        } else {
          if( (child.search( criterion ).length > 0) || criterion.accept( child ) ) {
            delayedBindingPopupItem = new DelayedBindingPopupItem() {
              public Object createItem() {
                java.util.Vector subStructure = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
                if( (subStructure.size() == 1) && criterion.accept( child ) ) {
                  if( child.equals( currentValue ) ) {
View Full Code Here

    protected javax.vecmath.Vector3d getPositionEnd() {
      javax.vecmath.Vector3d v = new javax.vecmath.Vector3d(0,0,0);
     
      if (asSeenBy.get() instanceof Model) {
        Model character = (Model) asSeenBy.get();
        edu.cmu.cs.stage3.alice.core.Element[] heads = character.search(new edu.cmu.cs.stage3.alice.core.criterion.ElementNamedCriterion("head", true) );
        if ((heads.length > 0) && (heads[0] instanceof Model)) {
          m_characterHead = (Model) heads[0];
          v = m_characterHead.getBoundingBox().getCenterOfFrontFace();
          return m_characterHead.getPosition(v, edu.cmu.cs.stage3.alice.core.ReferenceFrame.ABSOLUTE);
        } else {
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.