public string AddUpdate(RenderListener.RenderEvent fun) { string id = this.CreateId(); RenderListener r = new RenderListener(); r.onTime += fun; updates [id] = r; return(id); }
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; }
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); }
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); }
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); }
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"); }