コード例 #1
0
    public string AddUpdate(RenderListener.RenderEvent fun)
    {
        string         id = this.CreateId();
        RenderListener r  = new RenderListener();

        r.onTime    += fun;
        updates [id] = r;
        return(id);
    }
コード例 #2
0
        private void _RenderPage(int pageNumber, float pageUnits)
        {
            PdfReaderContentParser parser         = new PdfReaderContentParser(_reader);
            RenderListener         renderListener = new RenderListener(_reader, pageNumber, pageUnits);

            parser.ProcessContent(pageNumber, renderListener);

            ImagesInfo = renderListener.ImagesInfo;
            TextsInfo  = renderListener.TextsInfo;
        }
コード例 #3
0
    public string AddTimeOver(RenderListener.RenderEvent fun, float over = 1f)
    {
        string         id = this.CreateId();
        RenderListener r  = new RenderListener();

        r.onTime  += fun;
        r.curtime  = 0;
        r.maxTime  = over;
        overs [id] = r;
        return(id);
    }
コード例 #4
0
    public string AddTimeUpdate(RenderListener.RenderEvent fun, float time = 1f)
    {
        string         id = this.CreateId();
        RenderListener r  = new RenderListener();

        r.onTime  += fun;
        r.curtime  = 0;
        r.maxTime  = time;
        times [id] = r;
        return(id);
    }
コード例 #5
0
 public MainLoop(IInternalMainLoop mainLoop)
 {
     FMainLoop             = mainLoop;
     FPrepareGraphListener = new PrepareGraphListener(this);
     FUpdateViewListener   = new UpdateViewListener(this);
     FRenderListener       = new RenderListener(this);
     FPresentListener      = new PresentListener(this);
     FDebugListener        = new DebugListener(this);
     FNetworkSyncListener  = new NetworkSyncListener(this);
     FResetCacheListener   = new ResetCacheListener(this);
 }
コード例 #6
0
        public void Check(ICheckSettings settings, IDebugResourceWriter debugResourceWriter, FrameData frameData,
                          IList <VisualGridSelector[]> regionSelectors, IEyesConnector connector, UserAgent userAgent,
                          List <VisualGridTask> taskList, List <VisualGridTask> openTasks, RenderListener listener)
        {
            debugResourceWriter = debugResourceWriter ?? DebugResourceWriter ?? NullDebugResourceWriter.Instance;

            RenderingTask renderingTask = new RenderingTask(connector, frameData, regionSelectors, settings,
                                                            taskList, openTasks, this, userAgent, debugResourceWriter,
                                                            new RenderingTask.RenderTaskListener(
                                                                () =>
            {
                listener.OnRenderSuccess();
                NotifyAllServices();
            },
                                                                (e) =>
            {
                NotifyAllServices();
                listener.OnRenderFailed(e);
            })
                                                            );

            Logger.Verbose("locking renderingTaskList");
            lock (renderingTaskList_)
            {
                renderingTaskList_.Add(renderingTask);
            }
            Logger.Verbose("releasing renderingTaskList");
            NotifyAllServices();
            //Logger.Verbose("exit");
        }