コード例 #1
0
ファイル: MISPreGoldenTicket.cs プロジェクト: cip4/JDFLibNet
        ///
        ///	 <summary> *  </summary>
        ///
        private void initGBContentCreation()
        {
            theNode.setTypes(new VString(EnumType.LayoutElementProduction.getName(), null));
            JDFRunList      ruli = initDocumentRunList();
            JDFResourceLink rl   = theNode.getLink(ruli, EnumUsage.Input);

            rl.setProcessUsage((EnumProcessUsage)null);
            initLayoutElementProductionParams();
            initConduitRunListOut();
        }
コード例 #2
0
        ///
        ///     <summary> *  </summary>
        ///
        protected internal virtual JDFRunList initDocumentRunList()
        {
            JDFRunList      rl  = (JDFRunList)theNode.getCreateResource(ElementName.RUNLIST, EnumUsage.Input, 0);
            JDFResourceLink rll = theNode.getLink(rl, null);

            if ("Marks".Equals(rll.getProcessUsage()))
            {
                rl  = (JDFRunList)theNode.getCreateResource(ElementName.RUNLIST, EnumUsage.Input, 1);
                rll = theNode.getLink(rl, null);
            }
            rll.setProcessUsage(EnumProcessUsage.Document);
            rl.addPDF(m_pdfFile, 0, -1);
            rl.setNPage(4);
            rl.setDescriptiveName("Description of this RunList");
            return(rl);
        }
コード例 #3
0
        ///
        ///	 * <param name="icsLevel"> </param>
        ///
        protected internal virtual void initPlateXM(EnumUsage usage)
        {
            JDFResourceLink rl = null;

            if (thePreviousNode != null) // either input (for cp, or output for
            // plateset)
            {
                rl = theNode.linkResource(thePreviousNode.getResource(ElementName.EXPOSEDMEDIA, null, 0), usage, null);
            }

            if (rl == null && theParentNode != null)
            {
                rl = theNode.ensureLink(theParentNode.getResource(ElementName.EXPOSEDMEDIA, null, 0), usage, null);
            }

            JDFExposedMedia xm = (JDFExposedMedia)theNode.getCreateResource(ElementName.EXPOSEDMEDIA, usage, 0);

            xm.setPartUsage(EnumPartUsage.Explicit);
            rl = theNode.getLink(xm, null);

            JDFMedia m = ((JDFExposedMedia)xm.getLeaves(false)[0]).getMedia();

            if (m == null)
            {
                m = initPlateMedia();
            }
            else
            {
                m = (JDFMedia)m.getResourceRoot();
                if (theParentNode != null)
                {
                    theNode.ensureLink(theParentNode.getResource("Media", EnumUsage.Input, 0), EnumUsage.Input, null);
                }
            }
            xm.setResStatus(EnumResStatus.Unavailable, false);
            if (!bPartitionedPlateMedia && xm.getMedia() == null)
            {
                xm.refElement(m);
            }
            if (EnumUsage.Input.Equals(usage))
            {
                rl.setProcessUsage(EnumProcessUsage.Plate);
                JDFResourceLink link = theNode.getLink(m, null);
                if (link != null)
                {
                    link.deleteNode();
                }
            }

            if (vParts != null)
            {
                for (int i = 0; i < vParts.Count; i++)
                {
                    JDFAttributeMap part  = new JDFAttributeMap(vParts[i]);
                    JDFResource     xmp   = xm.getCreatePartition(part, partIDKeys);
                    int             ncols = "Front".Equals(part.get("Side")) ? nCols[0] : nCols[1];

                    for (int j = 0; j < ncols; j++)
                    {
                        part.put(EnumPartIDKey.Separation, cols.stringAt(j));
                        xmp.getCreatePartition(part, partIDKeys);
                    }
                }
                if (bPartitionedPlateMedia)
                {
                    VJDFAttributeMap vSheets = getReducedMap(new VString("Side Separation PartVersion", null));
                    for (int i = 0; i < vSheets.Count; i++)
                    {
                        JDFAttributeMap part = new JDFAttributeMap(vSheets[i]);
                        JDFExposedMedia xmp  = (JDFExposedMedia)xm.getCreatePartition(part, partIDKeys);
                        if (xmp.getMedia() == null)
                        {
                            xmp.refMedia((JDFMedia)m.getCreatePartition(part, null));
                        }
                    }
                }
            }
        }