[vtk-developers] initial properties in widget representations

Karthik Krishnan karthik.krishnan at kitware.com
Thu Mar 20 09:55:23 EDT 2008


Amy,
I agree. Please commit the additional lines in the constructor. Looks like
the properties are being set at the time the very first time the widget is
being interacted with.

Thanks
--
karthik

On 3/20/08, Amy Squillacote <ahs at cfdrc.com> wrote:
>
> Hi all,
>
> In an application I'm working on, I'm using some of the widgets that use
> the widget/representation framework. I want to change some of the values
> in the non-selected vtkProperty's (e.g., change the color in the
> OutlineProperty of vtkImplicitPlaneRepresentation) and have these values
> take effect when the widget is enabled. At the moment, this doesn't work
> because the OutlineProperty (or SelectedOutlineProperty) is only set on
> the OutlineActor when the state of the widget changes. (You can call
> SetRepresentationState to some non-0 value and then back to 0 to force
> the behavior I'm looking for, but this seems very hackish.) Does anyone
> know why the non-selected properties are not set on their associated
> actors in the constructor?
>
> In the constructor, after the call to CreateDefaultProperties, I would
> like to add code to set the non-selected properties (NormalProperty,
> PlaneProperty, and OutlineProperty) on the corresponding actors. Does
> anyone see a problem with this?
>
> - Amy
>
> --
> Amy Squillacote                    Phone: (256) 726-4839
> Computer Scientist                 Fax: (256) 726-4806
> CFD Research Corporation           Web: http://www.cfdrc.com
> 215 Wynn Drive, Suite 501
> Huntsville, AL  35805
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20080320/59a1a96a/attachment.html>


More information about the vtk-developers mailing list