<div dir="ltr">Guy,<div>I would advise to use vtk fields inside your Qt classes instead of using subclassing. You would need to subclass a vtk class only if you do vtk development.</div><div>If you want o see how it is done the best place to look at is the vtk source code. For instance vtkCylinderSource is derived from vtkPolyDataAlgorithm.</div><div><br></div><div>There are Qt examples you can take a look at here<br></div><div><br></div><div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/#qt">https://lorensen.github.io/VTKExamples/site/Cxx/#qt</a><br></div><div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 8:52 PM, Walter Rhoden via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div></div>
            <div><br></div></div><div id="m_6464309577680457684ydpf6f7fcbyahoo_quoted_9997898921" class="m_6464309577680457684ydpf6f7fcbyahoo_quoted"><div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a"><div><div id="m_6464309577680457684ydpf6f7fcbyiv9946861662"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div class="m_6464309577680457684ydpf6f7fcbyiv9946861662yqt1600928755" id="m_6464309577680457684ydpf6f7fcbyiv9946861662yqt05773"><div class="m_6464309577680457684ydpf6f7fcbyiv9946861662ydp47c51bd2yahoo_quoted" id="m_6464309577680457684ydpf6f7fcbyiv9946861662ydp47c51bd2yahoo_quoted_0142963158"><div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
                    <div><div id="m_6464309577680457684ydpf6f7fcbyiv9946861662ydp47c51bd2yiv0470619330"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div>I am looking for guidance on how to correctly subclass a vtk class.  I have seen a number of older examples (vtk 5 or earlier) that all seem to fail now for various reasons.  I attempted to debug a number of them but this was an endeavor in frustration and I gave up in disgust.</div><div><br clear="none"></div><div>Does anyone know of a good up to date guide document and/or simple example that illustrates the basics?</div><div><br clear="none"></div><div>I am working in C++ and with QT.  I have the basics down pretty good.  I am looking to subclass some of the basic geometry classes such as vtkcylindersource and similar with the idea of added some additional methods specific to the overall function of my QT program/project.  Obviously this is not as simple as calling out the vtk class as the inherited class.  </div><div><br clear="none"></div><div>Any help/guidance would be greatly appreciated.</div><div><br clear="none"></div><div>Thanks,</div><div><br clear="none"></div><div>Guy</div></div></div></div></div>
                </div>
            </div></div></div></div></div></div>
                </div>
            </div></div></div><br>______________________________<wbr>_________________<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/<wbr>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_<wbr>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=<wbr>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/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>