コード例 #1
0
ファイル: PrefabSingleLogic.cs プロジェクト: nunb/code
        public void UpdateLogic()
        {
            AnnotationUpdateUtility.UpdateInvalidatedLayers(_layers);
            Storage = RuntimeStorage.FromCouchDb("prefab_single_layer");
            var args = new ProcessAnnotationArgs(Storage, GetPtypes());

            if (File.Exists(_singleLayerName))
            {
                _interpreter = LoadSingleLayer(_singleLayerName);
                _interpreter.ProcessAnnotations(args);
            }
        }
コード例 #2
0
 public void ProcessAnnotations(ProcessAnnotationArgs args)
 {
     if (_processAnnotationsFunc != null)
     {
         try
         {
             var runtime_storage = new PythonRuntimeStorageWrapper(args.RuntimeStorage);
             _processAnnotationsFunc(runtime_storage);
         }
         catch (Exception e)
         {
             throw PythonScriptHost.Instance.GetFormattedException(e, Name);
         }
     }
 }
コード例 #3
0
ファイル: PythonSingleLayer.cs プロジェクト: prefab/code
 public void ProcessAnnotations(ProcessAnnotationArgs args)
 {
     if (_processAnnotationsFunc != null)
     {
         try
         {
             var runtime_storage = new PythonRuntimeStorageWrapper(args.RuntimeStorage);
             _processAnnotationsFunc(runtime_storage);
         }
         catch (Exception e)
         {
             throw PythonScriptHost.Instance.GetFormattedException(e, Name);
         }
     }
 }
コード例 #4
0
ファイル: PrefabSingleLogic.cs プロジェクト: prefab/code
        public void UpdateLogic()
        {
            AnnotationUpdateUtility.UpdateInvalidatedLayers(_layers);
            Storage = RuntimeStorage.FromCouchDb("prefab_single_layer");
            var args = new ProcessAnnotationArgs(Storage, GetPtypes());

            if (File.Exists(_singleLayerName))
            {
                _interpreter = LoadSingleLayer(_singleLayerName);
                _interpreter.ProcessAnnotations(args);
            }
        }