←Select platform

DicomCopyCallback Delegate

Summary
Called for each Data Element of the Data Set.
Syntax
C#
C++/CLI
Java
public delegate bool DicomCopyCallback( 
   DicomElement element, 
   DicomCopyFlags flags 
) 
public interface DicomCopyCallback  
{ 
  public boolean onDicomCopyCallback(DicomElement element, DicomCopyFlags flags); 
} 
public delegate bool DicomCopyCallback(  
   DicomElement^ element, 
   DicomCopyFlags flags 
) 

Parameters

element
The DicomElement tested.

flags
Flags used to indicate additional information.

Return Value

Return true to include element in the copy, false exclude element from the copy.

Remarks

The Copy method calls your DicomCopyCallback for each DicomElement in the DicomDataSet.

Example
C#
using Leadtools; 
using Leadtools.Dicom; 
 
 
public void TestCommandSet() 
{ 
   //Make sure to initialize the DICOM engine, this needs to be done only once  
   //In the whole application 
   DicomEngine.Startup(); 
   using (DicomDataSet ds = new DicomDataSet()) 
   { 
      ds.InitializeCommandSet(DicomCommandType.CFind, true); 
      Debug.Assert(ds.InformationCommand == DicomCommandType.CFind); 
      Debug.Assert(ds.IsRequestCommand == true); 
      using (DicomDataSet ds1 = new DicomDataSet()) 
      { 
         ds1.Copy(ds, null, null); 
      } 
   } 
   DicomEngine.Shutdown(); 
} 
Requirements

Target Platforms

See Also

Reference

DicomCopyCallback Members

Leadtools.Dicom Namespace

Help Version 23.0.2024.8.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.