Examples of duplicate()


Examples of artofillusion.object.TriangleMesh.duplicate()

    ComponentsDialog dlg = new ComponentsDialog(this, Translate.text("simplifyMeshTitle"),
            new Widget[] {errorField}, new String[] {Translate.text("maxSurfaceError")});
    if (!dlg.clickedOk())
      return;
    setUndoRecord(new UndoRecord(this, false, UndoRecord.COPY_OBJECT, new Object [] {theMesh, theMesh.duplicate()}));

    // If we are not in Edge selection mode, convert the selection to edges.

    if (selectMode == POINT_MODE)
    {
View Full Code Here

Examples of ca.odell.glazedlists.impl.io.Bufferlo.duplicate()

        try {
            ListEvent<E> listChangesCopy = listChanges.copy();
            Bufferlo listChangesBytes = ListEventToBytes.toBytes(listChangesCopy, byteCoder);
            for(int r = 0; r < resourceListeners.size(); r++) {
                ResourceListener listener = resourceListeners.get(r);
                listener.resourceUpdated(privateInterfaces, listChangesBytes.duplicate());
            }
        } catch(IOException e) {
            throw new IllegalStateException(e.getMessage());
        }
       
View Full Code Here

Examples of cc.mallet.grmm.types.Factor.duplicate()

      int k1 = keys1[i];
      ToMsgsIterator msgIt = new ToMsgsIterator (msgs, k1);
      while (msgIt.hasNext ()) {
        Factor msg = msgIt.next ();
        int from = msgIt.currentFromIdx ();
        copy.put (k1, from, msg.duplicate ());
      }
    }
    return copy;
  }
View Full Code Here

Examples of cc.mallet.grmm.types.Factor.duplicate()

    /* make a copy of potentials */
    HashSet allPhi = new HashSet();
    for (Iterator i = model.factorsIterator (); i.hasNext(); ){
      Factor factor = (Factor) i.next ();
      allPhi.add(factor.duplicate());
    }

    Set nodes = model.variablesSet ();

    /* Eliminate each node in turn */
 
View Full Code Here

Examples of com.esri.gpt.server.assertion.components.AsnAuthPolicy.duplicate()

      // query a comment by assertion id
      op = new AsnOperation(asnSet);
      op.setHandlerClass("com.esri.gpt.server.assertion.handler.AsnCommentHandler");
      op.setSubject(new AsnSubject(asnSet.getAssertionIdPrefix()));
      op.setPredicate(new AsnPredicate(actionPfx+":query"));
      op.setAuthPolicy(authForRead.duplicate());
      ops.add(op);
     
      // query comments associated with a resource
      op = new AsnOperation(asnSet);
      op.setHandlerClass("com.esri.gpt.server.assertion.handler.AsnCommentHandler");
View Full Code Here

Examples of com.esri.gpt.server.assertion.components.AsnValue.duplicate()

      op = new AsnOperation(asnSet);
      op.setHandlerClass("com.esri.gpt.server.assertion.handler.AsnCreateHandler");
      op.setSubject(new AsnSubject(AsnConstants.SUBJECT_PREFIX_RESOURCEID));
      op.setPredicate(new AsnPredicate(actionPfx+":create"));
      op.getAuthPolicy().setMultiplePerUserSubjectPredicate(true);
      op.setValue(asnValue.duplicate());
      ops.add(op);

      // update
      op = new AsnOperation(asnSet);
      op.setHandlerClass("com.esri.gpt.server.assertion.handler.AsnUpdateHandler");
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.duplicate()

        Map<Integer, ChannelFuture> futures =
            new LinkedHashMap<Integer, ChannelFuture>(size());
        if (message instanceof ChannelBuffer) {
            ChannelBuffer buf = (ChannelBuffer) message;
            for (Channel c: nonServerChannels.values()) {
                futures.put(c.getId(), c.write(buf.duplicate()));
            }
        } else {
            for (Channel c: nonServerChannels.values()) {
                futures.put(c.getId(), c.write(message));
            }
View Full Code Here

Examples of com.facebook.presto.spi.block.BlockCursor.duplicate()

    public BlockCursor[] duplicateCursors()
    {
        BlockCursor[] duplicates = new BlockCursor[cursors.size()];
        for (int i = 0; i < cursors.size(); i++) {
            BlockCursor cursor = cursors.get(i);
            duplicates[i] = cursor.duplicate();
        }
        return duplicates;
    }

    public void finished()
View Full Code Here

Examples of com.nexirius.jnex.example.datamodel.PersonModel.duplicate()

    //it could be mapped into should take place.
    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        PersonModel actualPerson = (PersonModel) sessionVariable.getActModel();

        if (actualPerson.isValid()) {
            DataModel item = actualPerson.duplicate(null, null);
            ((MainModel) sessionVariable.getApplicationModel()) .getPersonArray().sortInsert(item);

            actualPerson.clear();

            return true;
View Full Code Here

Examples of com.nexirius.ulc.example1.datamodel.ItemModel.duplicate()

            if (model instanceof ItemModel) {
                ItemModel item = (ItemModel) model;

                ItemListModel homeModel = (ItemListModel) sessionVariable.getApplicationModel();
                homeModel.getArray().sortInsert(item.duplicate(null, null));
                PersistenceManager.save(homeModel.getArray());
            }

            return true;
        }
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.