Commit 3f59a6ce authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot

Merge topic 'setupdateextent-change'

c65105cc Remove the default from vtkAlgorithm::UpdateExtent().
840d2f59 Fixed incorrect method signatures in 7.1 change notes
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Sean McBride's avatarSean McBride <sean@rogue-research.com>
Merge-request: !1297
parents 6d9a6b32 c65105cc
...@@ -40,13 +40,6 @@ class TestDefaultArgs(Testing.vtkTest): ...@@ -40,13 +40,6 @@ class TestDefaultArgs(Testing.vtkTest):
ipi.Initialize(image, (0,9,0,9,0,9)) ipi.Initialize(image, (0,9,0,9,0,9))
# call this method without extent parameter # call this method without extent parameter
ipi.Initialize(image) ipi.Initialize(image)
# do another method for good measure
source = vtk.vtkImageGridSource()
source.SetDataExtent((0,99,0,99,0,0))
# set the parameter
source.UpdateExtent((0,50,0,50,0,0))
# use default parameter value
source.UpdateExtent()
def testDefaultPointer(self): def testDefaultPointer(self):
"""Test a POD pointer arg with default value of 0.""" """Test a POD pointer arg with default value of 0."""
......
...@@ -500,7 +500,7 @@ public: ...@@ -500,7 +500,7 @@ public:
// Convenience method to update an algorithm after passing requests // Convenience method to update an algorithm after passing requests
// to its first output port. // to its first output port.
// Supports extent request. // Supports extent request.
virtual int UpdateExtent(const int extents[6]=0); virtual int UpdateExtent(const int extents[6]);
// Description: // Description:
// Convenience method to update an algorithm after passing requests // Convenience method to update an algorithm after passing requests
......
Changes in VTK 7.1 {#VTK-7-1-Changes} Changes in VTK 7.1 {#VTK-7-1-Changes}
================== ==================
This pages documents API and behavior changes between VTK 7.0 and This page documents API and behavior changes between VTK 7.0 and
VTK 7.1 VTK 7.1
Pipeline Update Methods Pipeline Update Methods
...@@ -43,10 +43,10 @@ The following new methods were added: ...@@ -43,10 +43,10 @@ The following new methods were added:
int Update(int port, vtkInformationVector* requests); int Update(int port, vtkInformationVector* requests);
int Update(vtkInformation* requests); int Update(vtkInformation* requests);
int UpdatePiece(int piece, int numPieces, int ghostLevels, int* extents=0); int UpdatePiece(int piece, int numPieces, int ghostLevels, const int extents[6]=0);
int UpdateExtent(int piece, int numPieces, int ghostLevels, int* extents=0); int UpdateExtent(const int extents[6]);
int UpdateTimeStep(double time, int UpdateTimeStep(double time,
int piece=-1, int numPieces=1, int ghostLevels=0, int* extents=0); int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0);
### vtkStreamingDemandDrivenPipeline: ### vtkStreamingDemandDrivenPipeline:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment