<p dir="ltr">Thanks for that. I am looking at a couple of other classes too. I hope to have something in a day or two.</p>
<p dir="ltr">Regards<br>
   Andrew</p>
<div class="gmail_quote">On 14/05/2013 1:13 AM, "David Thompson" <<a href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Does anyone know why these methods are not virtual?<br>
<br>
Nope.<br>
<br>
> If there is no reason, can anyone see a problem with making these methods virtual?<br>
<br>
I'll be happy to review a patch to make SetColor virtual. Most Get methods are not virtual because they return state held directly by the instance and should not be overridden. They are also typically called in tight loops while Set methods are not.<br>

<br>
> The reason I am looking at this is that I am considering making the methods in vtkNamedColors virtual so that that this class can be subclassed. It would also be easy to so the same change to Get/SetColor in vtkProperty.<br>

> I am thinking it would be nice to do things in a subclass of vtkProperty such as SetColor("Red") etc.<br>
<br>
<br>
That sounds neat.<br>
<br>
        David<br>
<br>
</blockquote></div>