[Insight-users] callback mechanism
Luis Ibanez
luis . ibanez at kitware . com
Tue, 30 Sep 2003 18:38:46 -0400
Hi Soumen,
The callback mechanism used by the DICOMAppHelper is *not*
representative of the ITK architecture.
The official mechanism for passing messages in ITK and
VTK is the use of Commad/Observers and Events.
The DICOMAppHelper was assimilated from a pre-existing
software (that's why it is in the "Utilities" subdirectory)
and uses a more traditional callback approach.
You will find the definition/declaration of DICOM callbacks
in the file
Insight/Utilities/DICOMParser/DICOMParser.h
It basically passes pointers to member methods in order to
be used as callbacks.
You don't really need to deal with the callbacks if you
use the DICOMSeriesFileNames in
Insight/Code/IO
Please look at the code for the ISIS application posted
in the previous message.
http://www . itk . org/pipermail/insight-users/2003-September/005090 . html
Regards,
Luis
------------------
Soumen Dey wrote:
> Hi all,
> In trying to reading a dicom series I am facing problem regarding
> seriesuid callback. So I want to know about the callback mechanism of itk
> in detail i.e how call back functions get invoked,registration of callback
> function etc.
> thnx.
> soumen
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>