<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 24, 2016 at 10:00 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>GetValue is not defined at the vtkDataArray level, and nor should it be (IMO).</div><div><br></div><div>My reasoning: vtkDataArray no longer assumes AOS ordering. The decision was that, ideally, vtkDataArray API would operate on tuples and components, while subclasses (e.g. AOS or SOA) would provide these more implementation-dependent lookups. In the context of SOA ordering, the value indices don't make a whole lot of sense and are inefficient to use, while GetComponentValue is efficient in either case.</div></div></div></div></blockquote><div><br></div><div>That makes sense, thanks for the explanation.  It's obvious to me now that you cannot provide a "flat" view of the data until the ordering is known.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">I would really like GetNumberOfValues() to make a comeback.<br></div></div></blockquote><div><br></div></span><div>I agree -- so much so that I already added it! ;) It's not gone, it's just moved out of the implementation class to vtkAbstractArray.</div></div></div></div></blockquote><div><br></div><div>Nice!</div><div><br></div><div> - David</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div><br></div></div>