<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Internally, VTK renders text using vtkTextRenderer, which automatically supports equation rendering when vtkRenderingMatplotlib is enabled. Any code using vtkTextRenderer to generate a texture/path from a string gets this capability, including vtkTextActor, vtkTextActor3D, vtkTextMapper, and vtkBillboardTextActor3D.</div><br>If you have your own image data that you've been rendering yourself and want to display it as text, you can built a rectangular polydata and apply the image data as a texture. Take a look at the implementation of vtkBillboardTextActor3D for a good example of this:<br><br><a href="https://github.com/Kitware/VTK/blob/master/Rendering/Core/vtkBillboardTextActor3D.cxx">https://github.com/Kitware/VTK/blob/master/Rendering/Core/vtkBillboardTextActor3D.cxx</a><br><br>HTH,<br>Allie<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 19, 2019 at 8:48 AM Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com">dan.lipsa@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Not that I am aware of. I would look at how TestMathTextActor.cxx is implemented.<div><br></div><div> <a class="gmail_plusreply" id="gmail-m_-3169169060315655220plusReplyChip-2" href="mailto:allison.vacanti@kitware.com" target="_blank">@Allison Vacanti</a> might give you better pointers.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 19, 2019 at 5:52 AM akaszynski <<a href="mailto:akascap@gmail.com" target="_blank">akascap@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">While I could rebuild vtk locally, I’m building a python module that assumes<br>
the user only has access to the python wheel built for vtk on PyPi, which<br>
hasn’t included support for equation rendering.<br>
<br>
Regardless, I can still generate rendered equations and even feed it into a<br>
vtkImageData object.  Is there an example of how I can connect this object<br>
to an existing text label or text property?  This appears to be the approach<br>
that’s used internally by vtk to take externally rendered images and place<br>
them where plain text would normally be.<br>
<br>
Examples in Python or C++ (really any language) would be great.<br>
<br>
Thanks in advance for your help!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>
</blockquote></div></div></div></div>