Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         lock (this.lockObj)
         {
             BodyPlugin.DisposeData(this.monitorData, true);
             BodyPlugin.DisposeData(this.inspectionData, true);
         }
     }
 }
Example #2
0
        public void UninitializeRender(EventType eventType)
        {
            switch (eventType)
            {
            case EventType.Monitor:
                BodyPlugin.DisposeData(this.monitorData, false);
                break;

            case EventType.Inspection:
                BodyPlugin.DisposeData(this.inspectionData, false);
                break;
            }
        }
Example #3
0
        public void Render3D(EventType eventType, IPluginViewSettings pluginViewSettings, viz.Context context, viz.Texture texture)
        {
            lock (this.lockObj)
            {
                nui.Registration registration = null;

                if (this.pluginService != null)
                {
                    registration = this.pluginService.GetRegistration(eventType);
                }

                switch (eventType)
                {
                case EventType.Monitor:
                    BodyPlugin.Render3D(pluginViewSettings, this.monitorData, registration);
                    break;

                case EventType.Inspection:
                    BodyPlugin.Render3D(pluginViewSettings, this.inspectionData, registration);
                    break;
                }
            }
        }