Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What do you mean by a 'fairly complex water piping system'? Are you planning to implement a <a href="http://en.wikipedia.org/wiki/Pipe_network_analysis" rel="nofollow noreferrer">pipeline network</a> simulator? If so, you should not tackle this problem as a graphics problem, but rather as a simulation problem: first you need to write a simulator that calculates the dynamics of your model, <em>then</em> you can worry about showing the model behavior to the user. </p> <p>Anyway, this can be tricky as well -- first you should decide which data from the running simulator you actually require for the visualization (I presume you want to do an online visualization, i.e. visualize the data at runtime, with the simulator running in an extra thread?). Then you need to record this data, e.g. by using the <a href="http://en.wikipedia.org/wiki/Observer_pattern" rel="nofollow noreferrer">Observer pattern</a>. Actually displaying the pipeline network and its current state might be easy when you use a tool for graph layout, such as <a href="http://jung.sourceforge.net/" rel="nofollow noreferrer">JUNG</a> (though you might already have spatial information on every node, in which case you might still be able to leverage a graph library's components for graph display and animation). I used <a href="http://xmlgraphics.apache.org/" rel="nofollow noreferrer">Batik</a> for <a href="http://www.adobe.com/svg/dynamic/declarative.html" rel="nofollow noreferrer">declarative SVG animation</a> a couple of years ago, and was quite pleased with its simplicity -- but of course you might want to have more control over the actual animation, especially if you are interested in the computer graphics aspects of the problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload