This sounds like very interesting work.  Please keep this list updated as to your progress/problems/design direction and we will do our best to assist you.  Can you tell me a bit more about the Annotation functionality if it isn't too much trouble.  Will you be visualizing slices or 3D volumes?  What kind of annotations will you be adding (points, lines, planes, region of interest, etc) ?  Has this application already be written/deployed?<div>
<br></div><div><br><div><br></div><div>My first Midas question is about the HTML5/canvas application.  Where do you see this being displayed?  Is it something you would like to run in a separate tab/browser window that you'd link to via the annotate action, something you'd like to run within Midas but using the Midas default layout (so it would run in the central content pane within the Midas layout, the SubMainContent div, which is where the message was displayed in my example module), or within Midas but using a custom layout?</div>


<div><br></div><div>Also, in case you weren't aware of this, we have a Python client library called Pydas for communicating with a Midas server instance.  You can see the source code here:</div><div><br></div><div><a href="https://github.com/midasplatform/pydas" target="_blank">https://github.com/midasplatform/pydas</a></div>

<div><br></div><div>and install this via <b>pip</b> or <b>easy_install</b>.</div><div><br></div><div>Here is some documentation, but feel free to ping the list about it as well.</div><div><br></div><div><a href="http://pydas.readthedocs.org/en/latest/index.html" target="_blank">http://pydas.readthedocs.org/en/latest/index.html</a></div>

<div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Mike</div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 8:04 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</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><br></div>Hi Michael:<div><br></div><div><span style="white-space:pre-wrap">   </span>Thank you very much for the example code!</div><div><br></div><div><span style="white-space:pre-wrap">       </span>I'm trying to write a module, launchable by the user, which will run a python script on the server to do some processing and then start a HTML5/canvas application, also on the server.</div>


<div><br></div><div><span style="white-space:pre-wrap"> </span>We are thinking that the user will login, navigate to their DICOM files, then click on an "Annotate" action item (perhaps right below the "View" link) on the right side which will launch our module:</div>


<div><br></div><div><img height="204" width="212" src="https://mail.google.com/mail/u/0/?ui=2&ik=dd7ba72b89&view=att&th=1380fa2e59720ec5&attid=0.1&disp=emb&realattid=678d192d6f96459d_0.1.1&zw&atsh=1"></div>

<div><br></div><div><span style="white-space:pre-wrap"> </span>This is my first Midas module although I am familiar with PHP, have worked with CakePHP and Drupal.</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>Your pointers/help are greatly appreciated.</div><div><br></div><div>thanks,</div><div>Mona</div><div><br></div><div><br></div><div>On Jun 20, 2012, at 3:55 PM, Michael Grauer wrote:</div>


<div><div><br><blockquote type="cite">Hi Mona,<div><br></div><div>It is probably best to create a module by starting a bit simpler than the Helloworld example, as that includes some models which can be confusing, and also the models are called Hello, so you end up with lines like</div>



<div><br></div><div>Helloworld_HelloModelBase extends Helloworld_AppModel</div><div><br></div><div>which is even more confusing to me and would probably be troublesome for global search and replaces.  </div><div><br></div>



<div>I have whipped up a very simple example module that I'm attaching here.  If you gunzip and untar it in your modules directory, you can add it to your Midas instance.  The module doesn't do much, but you can turn it on from the Administrative menu and then go to</div>



<div><br></div><div><a href="http://localhost/midas3/example/index" target="_blank">http://localhost/midas3/example/index</a></div><div><br></div><div>(assuming you are working on your localhost) and see a message.</div>


<div><br></div><div>
This way you have a bit clearer of a starting point for your own module.  If you want to add in a web api, you can see the dicomextractor module as an example, which is a module that doesn't include any models.  If you want to see some example models, try looking at the communityagreement module, which has a simple model.</div>



<div><br></div><div><br></div><div>I hope this gets you on your way.</div><div><br></div><div>-Mike</div></blockquote></div><br><div>
<div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">


<div>*********************************************</div><div>    Mona Wong</div><div>    Web & iPad Application Developer</div><div>    San Diego Supercomputer Center</div><div><br></div><div>    Believing we are in control is an</div>


<div>    illusion that brings suffering.</div><div><div><div>*********************************************</div><div><span style="font-size:medium"><br></span></div></div></div></div></span></div></span></div></span></div>


</span></div></span></div></span></div></span></div></span><br></div><br><br>
</div>
<br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Michael Grauer<br>R & D Engineer<br>Kitware, Inc.<br><a href="tel:919%20969%206990%20x322" value="+19199696990" target="_blank">919 969 6990 x322</a><br>

<br><br><br>
</div>
</div>