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. 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. 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
