Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 778
    • Issues 778
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 211
    • Merge requests 211
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Merge requests
  • !2409

Fix duplicated members in vtkImageResample, vtkPlanesIntersection

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged David Gobbi requested to merge dgobbi/vtk:cppcheck-dupmembers into master Jan 20, 2017
  • Overview 25
  • Commits 2
  • Pipelines 3
  • Changes 4

The class vtkImageResample declared a member called OutputSpacing, even though that member was already present in the superclass vtkImageReslice. In both classes, OutputSpacing is only used by RequestInformation(), and each class has its own RequestInformation() method.

Since vtkImageResample uses "0" as a special value for the OutputSpacing, and because of the interaction between OutputSpacing and MagnificationFactors, it was necessary to define a custom SetOutputSpacing() method for vtkImageResample. A matching SetMagnificationFactors() method was also added.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: cppcheck-dupmembers