Dear Michael,
Have a look at the Mapper docu, i.e. mitk::EnhancedPointSetVtkMapper3D
(http://mbits/doxygen/classmitk_1_1EnhancedPointSetVtkMapper3D.html#_details)
“This class renders mitk::PointSet objects in 3D views. It resembles the
standard mitk::PointSetVtkMapper3D, but is designed to enable single points to
be rendered with individual appearances.”
Regards
Von: Michael Kirches [mailto:[email protected]]
Gesendet: Donnerstag, 30. September 2010 12:16
An: [email protected]
Betreff: [mitk-users] Changing colors for a single point within a pointset
Dear list,
I'm trying to setup a mitk::PointSet and I would like to highlight a single
point in a different color than the rest of the points within the PointSet.
Let's say my grid 40 points (8 rows of 5 points) and basic grid color is red.
Now I would like to display the third point in the second row in cyan (or any
other color but red).
Using the following code
pointSetNode->SetColor( r,g,b );
mitk::PointSet::PointType pt;
pt[0] = x; pt[1] = y; pt[2] = 0;
pointSet->InsertPoint(pointID, pt);
- where r,g,b specify red, green and blue values of a point's color, x and y
grid coordinates - does not seem to have a effect. It looks like the entire
grid is being displayed in the color I defined most recently.
Is there a way to set colord for single points without using a second pointset?
Best,
Michael Kirches
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users