private void DisposeSecondRenderWindow()
        {
            if (this.SecondRenderer != null)
              {
            this.SecondRenderer.SetRenderWindow(null);
              }

              if (this.SecondRenderWindowInteractor != null)
              {
            this.SecondRenderWindowInteractor.Dispose();
            this.SecondRenderWindowInteractor = null;
              }

              if (this.SecondRenderWindow != null)
              {
            this.SecondRenderWindow.Dispose();
            this.SecondRenderWindow = null;
              }

              if (this.SecondRenderer != null)
              {
            this.SecondRenderer.Dispose();
            this.SecondRenderer = null;
              }
        }
        private Kitware.VTK.vtkRenderWindow AddConeSourceToSecondRenderWindow()
        {
            this.SecondRenderer = Kitware.VTK.vtkRenderer.New();
              this.SecondRenderWindow = Kitware.VTK.vtkRenderWindow.New();
              this.SecondRenderWindowInteractor = Kitware.VTK.vtkRenderWindowInteractor.New();

              this.SecondRenderWindow.AddRenderer(this.SecondRenderer);
              this.SecondRenderWindow.SetSize(400, 300);
              this.SecondRenderWindow.SetInteractor(this.SecondRenderWindowInteractor);

              AddConeSourceToRenderWindow(this.SecondRenderWindow);

              this.SecondRenderWindow.Render();

              return this.SecondRenderWindow;
        }