Hi list,

I just found, that I had a problem with using the std::map. So the 
underlying problem is solved, but the question for IDs still remains.

Cheers, Marcel


Marcel Schenderlein schrieb:
> Hi list,
> 
> is there anything like an unique ID for the data tree nodes? Or do I 
> have to setup a property for that?
> 
> I wanted to write a method which switches a QmitkPointListWidget for 
> different data (one pointset for each data). So I stored everything 
> (interactor,label,color,etc. in a struct) as the value in a std::map. 
> Then I learned by hard that using pointers as keys for a std::map is a 
> bad bad thing. So now I am wondering which way to go. Use a std::map 
> with IDs for the nodes or use something else appropriate? Maybe even 
> MITK provides some structure for that?
> 
> What would you suggest?
> 
> Cheers, Marcel
> 
> 
> 
> 

-- 
---------------------------------------------
Dipl.-Ing. Marcel Schenderlein
Institute of Measurement, Control and Microtechnology
Ulm University
Albert Einstein Allee 41
89081 Ulm, Germany

Phone:  +49 (0) 731 50 26338
FAX:    +49 (0) 731 50 26301
Mobile: +49 (0) 176 217 33668

Email: [EMAIL PROTECTED]
web:   http://www.uni-ulm.de/in/mrm

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to