<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 17, 2015 at 7:37 AM, Xabi Riobe <span dir="ltr"><<a href="mailto:xabivtk@gmail.com" target="_blank">xabivtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>There is an issue when combining vtkTextMapper->GetTextProperty()->SetColor and vtkActor2D->GetProperty()->SetColor</div><div><br></div><div>Before digging into what causes the issue, i would like to know what is the expected result?</div><div><br></div><div>here are different behaviours when setting a vtkTextMapper to a vtkActor2D:</div><div><br></div><div>with VTK 5.10 :</div><div><br></div><div>TextProperty RED + ActorProperty WHITE => Text RED<br></div><div>TextProperty WHITE + ActorProperty GREEN => Text WHITE <br></div><div>TextProperty RED + ActorProperty GREEN => Text RED</div><div><br></div><div>with VTK 6.3 and master, OpenGL 1&2:<br></div><div><br></div><div>TextProperty RED + ActorProperty WHITE => Text RED<br></div><div>TextProperty WHITE + ActorProperty GREEN => Text GREEN <br></div><div>TextProperty RED + ActorProperty GREEN => Text BLACK</div><div><br></div><div>with vtk 5.10, the vtkTextProperty has always priority, whereas with newer versions if only one color is set it is taken into acount, with an obvious issue when both of them are set.</div></div></blockquote><div><br></div><div>I'm not sure this was ever well defined behavior, but someone can correct me if I'm wrong. I've typically followed the rule of always setting the color on the text property and leaving the actor color untouched. This should always yield the intended result of rendering the text property's color.</div><div><br></div><div>I can't think of a usecase off the top of my head where setting both would have any meaningful utility. If there are any such usages, we should use those to determine what the "correct" behavior would be.</div><div><br></div><div>Dave</div></div></div></div>