Package edu.cmu.cs.stage3.util

Examples of edu.cmu.cs.stage3.util.Criterion


    }
    }

  private void onItemChanging( Object item, int changeType, int oldIndex, int newIndex ) {
    if( !m_objectArrayPropertyListeners.isEmpty() ) {
      ObjectArrayPropertyEvent objectArrayPropertyEvent = new ObjectArrayPropertyEvent( this, item, changeType, oldIndex, newIndex );
      ObjectArrayPropertyListener[] objectArrayPropertyListeners = getObjectArrayPropertyListeners();
            for( int i=0; i<objectArrayPropertyListeners.length; i++ ) {
                objectArrayPropertyListeners[ i ].objectArrayPropertyChanging( objectArrayPropertyEvent );
            }
            /*
 
View Full Code Here


            */
    }
  }
  private void onItemChanged( Object item, int changeType, int oldIndex, int newIndex ) {
    if( !m_objectArrayPropertyListeners.isEmpty() ) {
      ObjectArrayPropertyEvent objectArrayPropertyEvent = new ObjectArrayPropertyEvent( this, item, changeType, oldIndex, newIndex );
      ObjectArrayPropertyListener[] objectArrayPropertyListeners = getObjectArrayPropertyListeners();
            for( int i=0; i<objectArrayPropertyListeners.length; i++ ) {
                objectArrayPropertyListeners[ i ].objectArrayPropertyChanged( objectArrayPropertyEvent );
            }
            /*
 
View Full Code Here

      //pass
    }
  }
  protected void onSet( Object value ) {
    Class valueClass = getValueClass();
    PropertyEvent propertyEvent = new PropertyEvent( this, value );
    onChanging( propertyEvent );
    m_value = value;
    onChanged( propertyEvent );
        m_associatedFileKey = null;
  }
View Full Code Here

                    if (cameras.length>0)
                        subject.set(cameras[0]);
                }
            }
            if (keyMap.get()==null)
                keyMap.set(new KeyMapping());
            ((KeyMapping)keyMap.get()).cleanState();


            enable();
View Full Code Here

            disable();
    }
  }

  public void internalSchedule( double time, double dt ) {
    KeyMapping keyMapping = (KeyMapping)keyMap.getElementValue();
    int actions;
    if( keyMapping != null ) {
      actions = keyMapping.getActions();
    } else {
      actions = 0;
    }
        // accelerate if keys are pressed
        // decelerate otherwise
View Full Code Here

  public long m_clickTimeThreshold = 300;
  public int m_clickDistanceThresholdSquared = 100;

  public void manufactureAnyNecessaryDetails() {
    if( details.size()==2 ) {
      Question what = new PickQuestion();
      what.name.set( "what" );
      what.setParent( this );
      details.add( what );
    }
    for( int i=0; i<details.size(); i++ ) {
      Object o = details.get( i );
      if( o instanceof PickQuestion ) {
View Full Code Here

                        } else if( criterionType.isAssignableFrom( edu.cmu.cs.stage3.alice.core.criterion.ExternalReferenceKeyedCriterion.class ) ) {
                            criterion = new edu.cmu.cs.stage3.alice.core.criterion.ExternalReferenceKeyedCriterion( text );
                        } else {
                            criterion = (edu.cmu.cs.stage3.util.Criterion)getValueOf( criterionType, text );
                        }
                        referencesToBeResolved.addElement( new ObjectArrayPropertyReference( this, criterion, i, precedingReferenceTotal++ ) );
                    } catch( ClassNotFoundException cnfe ) {
                        throw new RuntimeException( criterionTypeName );
                    }
                } else {
                    String itemTypeName = itemNode.getAttribute( "class" );
View Full Code Here

            //if( indexText.length()>0 ) {
            //    referencesToBeResolved.addElement( new ObjectArrayPropertyReference( (edu.cmu.cs.stage3.alice.core.property.ObjectArrayProperty)this, criterion, Integer.parseInt( indexText ), 0 ) );
            //} else {
            //    referencesToBeResolved.addElement( new PropertyReference( this, criterion ) );
            //}
            referencesToBeResolved.addElement( new PropertyReference( this, criterion ) );
        } catch( ClassNotFoundException cnfe ) {
            throw new RuntimeException( typeName );
        }
    }
View Full Code Here

    private java.awt.Font m_font = null;
    private int m_curvature = 0;

    public Text3D() {
        super( new IndexedTriangleArray() );
        //charCache = new java.util.Hastable();
        updateGeometry();
    }
View Full Code Here

        if (pg.getVertices()!=null) {
            Vertex3d[] verts = new Vertex3d[pg.getVertices().length];
            double height = getSceneGraphGeometry().getBoundingBox().getHeight()/(double)lineCount;
            for (int i=0; i<verts.length; i++) {
                    verts[i] = new Vertex3d((Point3d)pg.getVertices()[i].position.clone(), pg.getVertices()[i].normal, null, null, new TexCoord2f());
                    verts[i].scale(1.0/height,1.0/height,1);
            }
            ((IndexedTriangleArray)this.getSceneGraphGeometry()).setVertices(verts);
        }
    }
View Full Code Here

TOP

Related Classes of edu.cmu.cs.stage3.util.Criterion

Copyright © 2018 www.massapicom. 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.