Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.RenderableOp


                SerializableState rcs)
  throws RemoteException {

  // Retrieve the RenderableOp for the rendering of which
  // the mapRenderContext call is being made.
  RenderableOp rop = (RenderableOp)nodes.get(nodeId);

  //Find the CRIF for the respective operation
  ContextualRenderedImageFactory crif =
      CRIFRegistry.get(rop.getRegistry(), operationName);

  if (crif == null) {
      throw new RuntimeException(
            JaiI18N.getString("JAIRMIImageServer3"));
  }

  RenderContext rc =
      crif.mapRenderContext(id,
          (RenderContext)rcs.getObject(),
          (ParameterBlock)rop.getParameterBlock(),
          rop);
  return SerializerFactory.getState(rc, null);
    }
View Full Code Here


    public SerializableState getBounds2D(Long nodeId, String operationName)
  throws RemoteException {

  // Retrieve the RenderableOp for whose RIF
  // the mapRenderContext call is being made.
  RenderableOp rop = (RenderableOp)nodes.get(nodeId);

  //Find the CRIF for the respective operation
  ContextualRenderedImageFactory crif =
      CRIFRegistry.get(rop.getRegistry(), operationName);

  if (crif == null) {
      throw new RuntimeException(
            JaiI18N.getString("JAIRMIImageServer3"));
  }

  Rectangle2D r2D =
      crif.getBounds2D((ParameterBlock)rop.getParameterBlock());

  return SerializerFactory.getState(r2D, null);
    }
View Full Code Here

                RenderedOp op = (RenderedOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
                return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
            } else if(opNode instanceof RenderableOp) {
                RenderableOp op = (RenderableOp)opNode;
                ParameterBlock pb = op.getParameterBlock();
                ImageFunction imFunc = (ImageFunction)pb.getObjectParameter(0);
                return imFunc.isComplex() ? Boolean.TRUE : Boolean.FALSE;
            }
        }
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.