On Mon, May 9, 2011 at 12:23 PM, Nicolas Rannou <span dir="ltr"><<a href="mailto:Nicolas_Rannou@hms.harvard.edu">Nicolas_Rannou@hms.harvard.edu</a>></span> wrote:<br><div class="gmail_quote"><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 class="im"><div>On May 9, 2011, at 1:50 PM, David Gobbi wrote:</div></div><div><div><br><blockquote type="cite">Hi Nicolas,<div><br></div><div class="im"><div>If you provide the new text that you would like to see in the documentation, I can modify the file and commit the change.</div>

<div><br></div><div> - David</div><div> <br><br><div class="gmail_quote">

On Mon, May 9, 2011 at 11:29 AM, Nicolas Rannou <span dir="ltr"><<a href="mailto:Nicolas_Rannou@hms.harvard.edu" target="_blank">Nicolas_Rannou@hms.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">



<div style="word-wrap:break-word">Thanks David, <div><br></div><div>yes such a feature to get the scalar range over all the components would be nice.</div><div>Maybe we should also update the documentation (<a href="http://www.vtk.org/doc/nightly/html/classvtkDataSet.html#a9c8f06877f41b3e1944f2d10281083a6" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkDataSet.html#a9c8f06877f41b3e1944f2d10281083a6</a>).</div>

</div></blockquote></div></div></div></blockquote><div><br></div><div>What about:</div><div><br></div><blockquote type="cite"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word">

<div><br></div><div><span style="font-family:'Lucida Grande', Verdana, Geneva, Arial, sans-serif;font-size:12px"><div class="im"><div style="font-family:'Lucida Grande', Verdana, Geneva, Arial, sans-serif;font-size:12px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(168, 184, 217);border-left-width:1px;border-left-style:solid;border-left-color:rgb(168, 184, 217);border-right-width:1px;border-right-style:solid;border-right-color:rgb(168, 184, 217);padding-top:6px;padding-right:0px;padding-bottom:6px;padding-left:0px;color:rgb(37, 53, 85);font-weight:bold;background-color:rgb(226, 232, 242);background-repeat:repeat no-repeat">



<table style="font-family:'Lucida Grande', Verdana, Geneva, Arial, sans-serif;font-size:12px;white-space:nowrap;font-weight:bold;margin-left:6px"><tbody><tr><td style="white-space:nowrap;font-weight:bold;margin-left:6px">



virtual void vtkDataSet::GetScalarRange</td><td>(</td><td style="white-space:nowrap">double </td><td style="color:rgb(96, 32, 32);white-space:nowrap"><em style="font-style:normal">range</em>[2]</td><td>)</td><td><code>[virtual]</code></td>



</tr></tbody></table></div></div><div style="font-family:'Lucida Grande', Verdana, Geneva, Arial, sans-serif;font-size:12px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(168, 184, 217);border-left-width:1px;border-left-style:solid;border-left-color:rgb(168, 184, 217);border-right-width:1px;border-right-style:solid;border-right-color:rgb(168, 184, 217);padding-top:2px;padding-right:5px;padding-bottom:2px;padding-left:5px;background-color:rgb(251, 252, 253);border-top-width:0px">

<p style="font-family:'Lucida Grande', Verdana, Geneva, Arial, sans-serif;font-size:12px">Convenience method to get the range of the scalar data (if there is any scalar data). Returns the (min/max) range of combined point and cell data <font color="#FF1924">first component (if the dataset attributes have multiple components)</font>. If there are no point or cell scalars the method will return (0,1). Note: Update needs to be called to create the scalars. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED</p>



<div><br></div></div></span></div></div></blockquote></div></div></blockquote></div></div></div></blockquote><div><br></div><div>I don't know if people read that far when the read documentation...  I'd put it closer to the front:</div>

<div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; ">Convenience method to get the range of the first component (and only the first component) of any scalars in the data set.  If the data has both point data and cell data, it returns the (min/max) range of combined point and cell data.  If there are no point or cell scalars the method will return (0,1).  Note: It might be necessary to call Update to create or refresh the scalars.  THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED</span></div>

<div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; "> - David</span></div>

<div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; "><br>

</span></div><meta charset="utf-8"></div>