Skip to content

Commit

Permalink
Interaction/Image: use VTK_SIZEHINT
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Dec 14, 2017
1 parent 07caabb commit f982c87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Interaction/Image/vtkImageViewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class VTKINTERACTIONIMAGE_EXPORT vtkImageViewer : public vtkObject
/**
* Set/Get the position in screen coordinates of the rendering window.
*/
int *GetPosition() {return this->RenderWindow->GetPosition();};
int *GetPosition() VTK_SIZEHINT(2) {return this->RenderWindow->GetPosition();};
void SetPosition(int a,int b) {this->RenderWindow->SetPosition(a,b);};
virtual void SetPosition(int a[2]);
//@}
Expand All @@ -113,7 +113,7 @@ class VTKINTERACTIONIMAGE_EXPORT vtkImageViewer : public vtkObject
/**
* Set/Get the size of the window in screen coordinates in pixels.
*/
int *GetSize() {return this->RenderWindow->GetSize();};
int *GetSize() VTK_SIZEHINT(2) {return this->RenderWindow->GetSize();};
void SetSize(int a,int b) {this->RenderWindow->SetSize(a,b);};
virtual void SetSize(int a[2]);
//@}
Expand Down
4 changes: 2 additions & 2 deletions Interaction/Image/vtkImageViewer2.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class VTKINTERACTIONIMAGE_EXPORT vtkImageViewer2 : public vtkObject
/**
* Set/Get the position in screen coordinates of the rendering window.
*/
virtual int* GetPosition();
virtual int* GetPosition() VTK_SIZEHINT(2);
virtual void SetPosition(int a,int b);
virtual void SetPosition(int a[2]) { this->SetPosition(a[0],a[1]); }
//@}
Expand All @@ -186,7 +186,7 @@ class VTKINTERACTIONIMAGE_EXPORT vtkImageViewer2 : public vtkObject
/**
* Set/Get the size of the window in screen coordinates in pixels.
*/
virtual int* GetSize();
virtual int* GetSize() VTK_SIZEHINT(2);
virtual void SetSize(int a, int b);
virtual void SetSize(int a[2]) { this->SetSize(a[0],a[1]); }
//@}
Expand Down
2 changes: 0 additions & 2 deletions Wrapping/Tools/hints
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ vtkImageSpatialAlgorithm GetKernelSize 304 3
vtkImageSpatialFilter GetKernelMiddle 304 3
vtkImageSpatialFilter GetKernelSize 304 3
vtkImageVectorConvolve GetKernel 301 3
vtkImageViewer GetPosition 304 2
vtkImageViewer GetSize 304 2
vtkPainterPolyDataMapper GetBounds 307 6
vtkPolyData GetUpdateExtent 304 6
vtkPolygon ConvertEllipseToImplicit 307 5
Expand Down

0 comments on commit f982c87

Please sign in to comment.