<div dir="ltr"><div class="gmail_extra">Hi TJ,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I think it's a really cool idea, it would greatly reduce the learning curve of understanding how SMTK read inputs(attribute system)and processes operation result(mesh_expunged, modified...etc).</div><div class="gmail_extra"><div class="gmail_quote">On Sun, Jul 16, 2017 at 9:17 PM, TJ Corona <span dir="ltr"><<a href="mailto:tj.corona@kitware.com" target="_blank">tj.corona@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi all,</div><div><br></div><div>I’ve been <span style="font-size:9pt">thinking about ways to make smtk/cmb more accessible to a novice user (one of the things that may help to grow a larger community of non-Kitware developers). Teeing off of Alvaro</span>’<span style="font-size:9pt">s GUI .sbt creator, I was thinking that we could create a GUI creator for making operators. It would essentially be the .sbt creator, but it would also generate a skeleton .py (or .cxx) file that would have generated code for accessing the inputs and populating the outputs that were chosen by the user in the .sbt file. We could pair this with a means of loading .py operators in ModelBuilder at runtime (</span>which<span style="font-size:9pt"> would basically a) load the .py module and b) copy the input .py file to a users directory that is loaded at startup). This would lower the bar for creating operators to just understanding how to fill in the </span>“<span style="font-size:9pt">guts</span>”<span style="font-size:9pt"> of an operator.</span></div></div></blockquote><div> </div><div>From my experience, a serious gap for creating opeator is to understand how to get the input from specification and add entities to the result. Once user has the head and tail of the operator, all user needs to do is to create the body. I would like to generate these infos for them in the skeleton .py(or .cxx).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span style="font-size:9pt"> I know Amanda at ERDC has begun learning how to write operators, and something like this could really simplify that process. All the pieces seem to be already in place, so the only thing we would need is the motivation to put it together.</span></div></div></blockquote><div>+ 1. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span style="font-size:9pt"> Do you guys think something like this could be useful enough to invest some development time?</span></div><div><span style="font-size:9pt"><br></span></div><div><span style="font-size:9pt">Sincerely,</span></div><div><span style="font-size:9pt">T.J.</span></div>
<br></div></blockquote><div>Operator creator might should contain these four parts:</div><div><ul><li>session (I know discrete session and polygon session have their own logic of transcribing data. So we should warning the developer before they shoot their foot)</li><li>input for the operator</li><li>output for the operator</li><li>.cxx /.py</li></ul></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>
<div style="word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thomas J. Corona, Ph.D.<br>Kitware, Inc.<br>Senior R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:(518)%20881-4443" value="+15188814443" target="_blank">518-881-4443</a></div></div>
</div>
<br></div><br>______________________________<wbr>_________________<br>
Smtk-developers mailing list<br>
<a href="mailto:Smtk-developers@smtk.org" target="_blank">Smtk-developers@smtk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/smtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/smtk-developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-710099042916369668gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards<div>Haocheng</div><div><br></div><div>Haocheng LIU</div><div><span style="color:rgb(0,0,0);font-size:12.8px">Kitware, Inc.</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">R&D Engineer</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">21 Corporate Drive</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Clifton Park, NY 12065-8662</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Phone: </span><a href="tel:(518)%20881-4421" value="+15188814443" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">518-881-4421</a><br></div></div></div></div></div>
</div></div>