Example #1
0
        private void RenderPoints(Options options)
        {
            var arguments = DeserializeArguments <PointRenderingArguments>(options.ConfigurationFilepath);
            var renderer  = new PointRenderer(arguments.InputDirectory, arguments.InputFilePattern, arguments.Resolution.Width, arguments.Resolution.Height);

            renderer.Render(arguments.OutputDirectory, arguments.OutputFilename);
        }
    void Start()
    {
        GameObject tempObject = GameObject.Find("Canvas");

        if (tempObject != null)
        {
            canvas = tempObject.GetComponent <Canvas>();
        }
        foreach (Transform child in canvas.transform)
        {
            textInfoObjects.Add(child.gameObject);
        }

        animHostScript = GameObject.Find("Animal").GetComponent <AnimalHost>();

        pointRenderer = GameObject.Find("LineRenderer").GetComponent <PointRenderer>();

        zoonoseScript = GameObject.Find("Zoonose2").GetComponent <Zoonose2>();
        zoonoses      = zoonoseScript._viruses;

        mat01 = Resources.Load("mat01", typeof(Material)) as Material;
        mat02 = Resources.Load("mat02", typeof(Material)) as Material;

        textObject.SetActive(true);
        //meshRend = animHostScript.animalList
    }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     if (!CheckReady())
     {
         return;
     }
     PointRenderer.Update();
 }
Example #4
0
 // Update is called once per frame
 void Update()
 {
     if (!CheckReady())
     {
         return;
     }
     PointRenderer.Update();
     DrawDebugInfo();
 }
Example #5
0
 // Update is called once per frame
 void Update()
 {
     if (!CheckReady())
     {
         return;
     }
     PointRenderer.Update();
     this.pointCount = this.GetPointCount();
 }
Example #6
0
 public void Restart()
 {
     Debug.Log("Restarting");
     if (PointRenderer != null)
     {
         // if(((V2Renderer)PointRenderer).shuttingDown){
         //     Debug.Log("Calling restart");
         // }
         PointRenderer.ShutDown();
         ((V2Renderer)PointRenderer).Restart();
     }
 }
Example #7
0
    public override void OnInspectorGUI()
    {
        PointRenderer target = (PointRenderer)this.target;

        DrawDefaultInspector();

        if (GUILayout.Button("Add"))
        {
            target.Add();
            UnityEditor.SceneView.RepaintAll();
        }

        if (GUILayout.Button("Clear"))
        {
            target.Clear();
            UnityEditor.SceneView.RepaintAll();
        }
    }
Example #8
0
 public void Shutdown()
 {
     Debug.Log("Shutting down");
     PointRenderer.ShutDown();
 }