Hello everybody,
we figured out that the mitkBaseData class misses a method to produce a deep
copy. We have added now such a method (Clone()) for the mitkBaseData class and
some of its subclasses (mitkImage, mitkSurface, mitkPointSet,
mitkUnstructuredGrid and mitkContour). Although we enhanced the unit tests as
well, we urge you all to report any bugs resulting from this feature.
For all that need a clone method in own subclasses of mitkBaseData, the
implementation is pretty easy:
1. Include mitkCommon.h, if it is not included anyway
2. Add mitkCloneMacro(Classname) in your header file
3. Enhance the class by a copy constructor (cf. mitkSurface...)
Hope you all will enjoy this new feature!
Best regards
Sven
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users