https://public.kitware.com/Wiki/index.php?title=VTK/VTK_6_Migration/Change_to_AllocateOutputData&feed=atom&action=history
VTK/VTK 6 Migration/Change to AllocateOutputData - Revision history
2024-03-29T08:08:54Z
Revision history for this page on the wiki
MediaWiki 1.38.6
https://public.kitware.com/Wiki/index.php?title=VTK/VTK_6_Migration/Change_to_AllocateOutputData&diff=47669&oldid=prev
DaveDemarle: /* Change to AllocateOutputData() in vtkImageAlgorithm */
2012-06-11T16:57:54Z
<p><span dir="auto"><span class="autocomment">Change to AllocateOutputData() in vtkImageAlgorithm</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:57, 11 June 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>to</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>to</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* AllocateOutputData(vtkImageData *out, vtkInformation* outInfo, int *uExtent);</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins style="font-weight: bold; text-decoration: none;">void </ins>AllocateOutputData(vtkImageData *out, vtkInformation* outInfo, int *uExtent);</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* vtkImageData *AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo);</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* vtkImageData *AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo);</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
DaveDemarle
https://public.kitware.com/Wiki/index.php?title=VTK/VTK_6_Migration/Change_to_AllocateOutputData&diff=46488&oldid=prev
Berk: Created page with "= Change to AllocateOutputData() in vtkImageAlgorithm = In VTK 6, we changed the signature of vtkImageAlgorithm’s two AllocateOutputData() methods from * void AllocateOutputD..."
2012-04-06T19:35:43Z
<p>Created page with "= Change to AllocateOutputData() in vtkImageAlgorithm = In VTK 6, we changed the signature of vtkImageAlgorithm’s two AllocateOutputData() methods from * void AllocateOutputD..."</p>
<p><b>New page</b></p><div>= Change to AllocateOutputData() in vtkImageAlgorithm =<br />
<br />
In VTK 6, we changed the signature of vtkImageAlgorithm’s two AllocateOutputData() methods from<br />
<br />
* void AllocateOutputData(vtkImageData *out, int *uExtent);<br />
* vtkImageData *AllocateOutputData(vtkDataObject *out);<br />
<br />
to<br />
<br />
* AllocateOutputData(vtkImageData *out, vtkInformation* outInfo, int *uExtent);<br />
* vtkImageData *AllocateOutputData(vtkDataObject *out, vtkInformation *outInfo);<br />
<br />
This change was made to ensure that AllocateOutputData() has direct access to the output pipeline information from which it extracts meta-data about update extent, scalar type and number of scalar components. Even though the algorithm can directly access its pipeline information through the executive, this is discouraged because the executives are free to pass other information vectors to RequestData(). Note that if you overwrote Execute() or ExecuteData(vtkDataObject *output), you don’t have access to the output information. In order to make this easier, we added a new virtual function that takes output information as an argument:<br />
<br />
* ExecuteData(vtkDataObject *output, vtkInformation* outInfo);<br />
<br />
== Example 1 ==<br />
<br />
Replace<br />
<br />
<source lang="cpp"><br />
void vtkImageGridSource::ExecuteData(vtkDataObject *output)<br />
{<br />
vtkImageData *data = this->AllocateOutputData(output);<br />
</source><br />
<br />
with<br />
<br />
<source lang="cpp"><br />
void vtkImageGridSource::ExecuteData(vtkDataObject *output,<br />
vtkInformation* outInfo)<br />
{<br />
vtkImageData *data = this->AllocateOutputData(output, outInfo);<br />
</source></div>
Berk