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 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 196
    • Merge requests 196
  • 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
  • Issues
  • #589
Closed
Open
Created Feb 12, 2004 by Kitware Robot@kwrobotOwner

No need of class vtkDICOMImageReaderVector

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


class vtkDICOMImageReaderVector is defined (in vtkDICOMImageReader.cxx) as class vtkDICOMImageReaderVector : public vtkstd::vector<vtkstd::string> { }; If one wants to derive a class from vtkDICOMImageReader and access vtkDICOMImageReaderVector, he has to cast DICOMFileNames from vtkDICOMImageReaderVector* to vtkstd::vector<vtkstd::string>* in order to avoid to include vtkDICOMImageReader.cxx, which is not a good solution. Solution:

  • remove the definition of vtkDICOMImageReaderVector in vtkDICOMImageReader.cxx and the forward to vtkDICOMImageReaderVector in vtkDICOMImageReader.h
  • add typedef vtkDICOMImageReaderVector vtkstd::vector<vtkstd::string> in vtkDICOMImageReader.h
  • add #include <vtkstd/vector> #include <vtkstd/string> in vtkDICOMImageReader.h I understand that this will imply a compile-time penalty, but it's the price to pay to make a derived class access the list of file names.
Assignee
Assign to
Time tracking