Exemplo n.º 1
0
 public FusionTestDataContainer(TestDataFunction function,
                                bool baseIsSigned, Vector3D baseSpacing, Vector3D baseOrientationX, Vector3D baseOrientationY, Vector3D baseOrientationZ,
                                bool overlayIsSigned, Vector3D overlaySpacing, Vector3D overlayOrientationX, Vector3D overlayOrientationY, Vector3D overlayOrientationZ)
 {
     _baseSops                = function.CreateSops(baseIsSigned, Modality.CT, baseSpacing, baseOrientationX, baseOrientationY, baseOrientationZ);
     _overlaySops             = function.CreateSops(overlayIsSigned, Modality.PT, overlaySpacing, overlayOrientationX, overlayOrientationY, overlayOrientationZ);
     _testDisplaySetGenerator = new TestDisplaySetGenerator(_baseSops, _overlaySops);
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (_testDisplaySetGenerator != null)
     {
         _testDisplaySetGenerator.Dispose();
         _testDisplaySetGenerator = null;
     }
     if (_overlaySops != null)
     {
         Dispose(_overlaySops);
         _overlaySops = null;
     }
     if (_baseSops != null)
     {
         Dispose(_baseSops);
         _baseSops = null;
     }
 }
Exemplo n.º 3
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_testDisplaySetGenerator != null)
                {
                    _testDisplaySetGenerator.Dispose();
                    _testDisplaySetGenerator = null;
                }

                if (_baseSopDataSources != null)
                {
                    DisposeAll(_baseSopDataSources);
                    _baseSopDataSources = null;
                }

                if (_overlaySopDataSources != null)
                {
                    DisposeAll(_overlaySopDataSources);
                    _overlaySopDataSources = null;
                }
            }
            base.Dispose(disposing);
        }
Exemplo n.º 4
0
 public FusionTestDataContainer(CreateSopsDelegate baseSopCreatorDelegate, CreateSopsDelegate overlaySopCreatorDelegate)
 {
     _baseSops                = baseSopCreatorDelegate.Invoke();
     _overlaySops             = overlaySopCreatorDelegate.Invoke();
     _testDisplaySetGenerator = new TestDisplaySetGenerator(_baseSops, _overlaySops);
 }