Hi, Seitel Mathias schrieb: > Hi Steffen, > > The colors used for rendering PointSets are currently hard-coded in the > mitk::PointSetVtkMapper3D and mitk::PointSetMapper2D classes, > respectively. The mappers currently differentiate between unselected, > selected, and contour points, and color the accordingly. > > An option to customize these color schemes would surely be helpful... > The best way to do this would be via Properties (i.e. specifying the > information how a PointSet should be colored as a mitk::Property of its > DataTreeNode). I assume that you want to specify for each point of a > PointSet a user-defined color.
This is exactly what I have in mind. To achieve this, you could create a color > lookup table and store it in a property (see mitk::LookupTableProperty). > The above mapper classes could then be adopted so that this lookup table > is retrieved and (if present) is used to color the points. Each point in > the PointSet can be assigned an ID, which could then be used as a point > into this lookup table. Ok. I can easily setup such a LUT. I know as well how to assign it as a property to the rendering node. What would be interesting to me is, how to tell the mapper, which would be the "mitk::PointSetVtkMapper3D" in my case, that it should use point IDs as indices to the LUT. Cheers, Steffen > > Please let us know if this is what you want to do, so we could discuss > this in more detail! > > Regards, > Mathias > > > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:mitk-users- >> [EMAIL PROTECTED] On Behalf Of Steffen Oeltze >> Sent: Friday, February 29, 2008 9:49 AM >> To: [email protected] >> Subject: [mitk-users] mitkPointSet >> >> Hi, >> >> first of all, thanks to the MITK guys for the useful hints in the > past, >> especially concerning the event handling. >> >> My new question is, whether I can manipulate the color of the points >> (spheres) in a mitkPointSet individually? >> >> Cheers, >> Steffen >> >> >> >> >> >> > ----------------------------------------------------------------------- >> -- >> 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 > > > ------------------------------------------------------------------------- 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
