/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="sizeList">List with three elements(x,y,z)</param>
        public ClipingObject(IList <double> sizeList)
        {
            _planeCollection = vtkPlaneCollection.New();

            InitVolumeSizesFromVizulaisation3D(sizeList);

            InitPlaneCollection(_planeCollection);
        }
        public ClipingModule(IList<double> sizeList)
        {
            _planeCollection = vtkPlaneCollection.New();

            InitVolumeSizesFromVizulaisation3D(sizeList);

               InitPlaneCollection(_planeCollection);
        }
        /// <summary>
        /// Sets initial planes' positions.
        /// </summary>
        /// <param name="planeCollection"></param>
        private void InitPlaneCollection(vtkPlaneCollection planeCollection)
        {
            var planeX1 = new vtkPlane();

            planeX1.SetNormal(1, 0, 0);
            planeX1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeX1);

            var planeX2 = new vtkPlane();

            planeX2.SetNormal(-1, 0, 0);
            planeX2.SetOrigin(_xSize, 0, 0);
            planeCollection.AddItem(planeX2);

            var planeY1 = new vtkPlane();

            planeY1.SetNormal(0, 1, 0);
            planeY1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeY1);

            var planeY2 = new vtkPlane();

            planeY2.SetNormal(0, -1, 0);
            planeY2.SetOrigin(0, _ySize, 0);
            planeCollection.AddItem(planeY2);

            var planeZ1 = new vtkPlane();

            planeZ1.SetNormal(0, 0, 1);
            planeZ1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeZ1);

            var planeZ2 = new vtkPlane();

            planeZ2.SetNormal(0, 0, -1);
            planeZ2.SetOrigin(0, 0, _zSize);
            planeCollection.AddItem(planeZ2);
        }
        private void InitPlaneCollection(vtkPlaneCollection planeCollection)
        {
            var planeX1 = new vtkPlane();
            planeX1.SetNormal(1, 0, 0);
            planeX1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeX1);

            var planeX2 = new vtkPlane();
            planeX2.SetNormal(-1, 0, 0);
            planeX2.SetOrigin(_xSize, 0, 0);
            planeCollection.AddItem(planeX2);

            var planeY1 = new vtkPlane();
            planeY1.SetNormal(0, 1, 0);
            planeY1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeY1);

            var planeY2 = new vtkPlane();
            planeY2.SetNormal(0, -1, 0);
            planeY2.SetOrigin(0, _ySize, 0);
            planeCollection.AddItem(planeY2);

            var planeZ1 = new vtkPlane();
            planeZ1.SetNormal(0, 0, 1);
            planeZ1.SetOrigin(0, 0, 0);
            planeCollection.AddItem(planeZ1);

            var planeZ2 = new vtkPlane();
            planeZ2.SetNormal(0, 0, -1);
            planeZ2.SetOrigin(0, 0, _zSize);
            planeCollection.AddItem(planeZ2);
        }