Commit c65105cc authored by David Gobbi's avatar David Gobbi

Remove the default from vtkAlgorithm::UpdateExtent().

The default NULL value for UpdateExtent(const int extent[6]) was a typo.
parent 840d2f59
Pipeline #8664 passed with stage
...@@ -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
...@@ -44,7 +44,7 @@ The following new methods were added: ...@@ -44,7 +44,7 @@ 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, const int extents[6]=0); int UpdatePiece(int piece, int numPieces, int ghostLevels, const int extents[6]=0);
int UpdateExtent(const int extents[6]=0); int UpdateExtent(const int extents[6]);
int UpdateTimeStep(double time, int UpdateTimeStep(double time,
int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0); int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0);
......
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