Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.RenderableOp


                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(DFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            }
View Full Code Here


                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                DFTDataNature dataNature =
                    (DFTDataNature)pb.getObjectParameter(1);
                return dataNature.equals(IDFTDescriptor.COMPLEX_TO_REAL) ?
                    Boolean.FALSE : Boolean.TRUE;
            }
View Full Code Here

  // XXX Since RMIServerProxy does not do a checkClientParameters, this
  // side obviously does not do the corresponding
  // checkServerParameters. Look at RMIServerProxy's renderable
  // constructor for reasoning. aastha, 09/26/01

  RenderableOp node = new RenderableOp(opName, pb);
  nodes.put(id, node);
    }
View Full Code Here

     * Calls for rendering of a RenderableOp with the given SerializableState
     */
    public synchronized Long getRendering(Long id, SerializableState rcs)
  throws RemoteException {

  RenderableOp op = (RenderableOp)nodes.get(id);
  PlanarImage pi = PlanarImage.wrapRenderedImage(op.createRendering(
               (RenderContext)rcs.getObject()));

  Long renderingID = getRemoteID();
  nodes.put(renderingID, pi);

View Full Code Here

    public synchronized void setRenderableSource(Long id,
             Long sourceId,
             int index)
  throws RemoteException {

  RenderableOp node = (RenderableOp)nodes.get(id);
  Object obj = nodes.get(sourceId);
  if (obj instanceof RenderableOp){
      node.setSource((RenderableOp)obj, index);
  } else if (obj instanceof RenderedImage) {
      node.setSource(PlanarImage.wrapRenderedImage((RenderedImage)obj),
         index);
  }
    }
View Full Code Here

             String serverName,
             String opName,
             int index)
  throws RemoteException {

  RenderableOp node = (RenderableOp)nodes.get(id);
  node.setSource(new RMIServerProxy((serverName+"::"+sourceId),
            opName,
            null),
           index);

    }
View Full Code Here

                  String serverName,
                  String opName,
                  int index)
  throws RemoteException {

  RenderableOp node = (RenderableOp)nodes.get(id);
  node.setSource(new RenderableRMIServerProxy(serverName, opName, null,
                sourceId), index);
    }
View Full Code Here

     *
     */
    public synchronized void setRenderableSource(Long id, RenderableOp source,
             int index)
  throws RemoteException {
  RenderableOp op = (RenderableOp)nodes.get(id);
  op.setSource(source, index);
    }
View Full Code Here

     */
    public synchronized void setRenderableSource(Long id,
             SerializableRenderableImage s,
             int index)
  throws RemoteException {
  RenderableOp op = (RenderableOp)nodes.get(id);
  op.setSource(s, index);
    }
View Full Code Here

             RenderedImage source,
             int index)
  throws RemoteException {

  PlanarImage pi = PlanarImage.wrapRenderedImage(source);
  RenderableOp op = (RenderableOp)nodes.get(id);
  op.setSource(pi, index);
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.RenderableOp

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.