[vtkusers] vtkLineWidget2 / vtkLineRepresentation - How to colorize both end points differently

Martin Raabe Martin.Raabe at BaSystem.de
Mon Sep 12 10:44:48 EDT 2011


Hello folks,
I try to mark two points and one orientation (line) on top of an XRay image.

I've choosen the use vtkLineWidget2 to implement that.

Since the image might not be clear enough to mark both end points and
the orientation, I want to offer the user to select via checkmark,
wether the line and/or one or two endpoints are valid markers.

As a feedback for the user I wanted to switch the color of the endpoints
individually.

Unfortunately the method GetEndPointProperty()->SetColor() switches the
color of both end points.

My question is:
How can I switch the color of only one end point?

Any help is appreciated.

Best regards,

Martin Raabe



More information about the vtkusers mailing list