<p dir="ltr">Den 29 nov. 2016 9:58 em skrev "Cory Quammen" <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>>:<br>
><br>
> > I don't know if there's a full list somewhere (would be really nice if the<br>
> > Doxygen output could be augmented somehow to include this..),<br>
><br>
> At the bottom of each class's Doxygen page is the location of the file<br>
> from which the Doxygen was generated. You can use this to identify the<br>
> module to which a class belongs. E.g., for vtkCoordinate, the location<br>
> listed is<br>
><br>
> dox/Rendering/Core/vtkCoordinate.h<br>
><br>
> Convert the "dox" to "vtk", remove the forward slashes, remove the<br>
> header file name, and you'll get the module:<br>
><br>
> vtkRenderingCore</p>
<p dir="ltr">Ah yes, I know the information is there, if you care to do some pusseling :)</p>
<p dir="ltr">I just meant it would be nice if it was visible in a more prominent way, kind of like how the Qt docs has a list of modules [1], a page for each module (e.g QtNetwork [2]), a list of classes in each module [3], and where the module a class resides in is visible at the top of the class docs (e.g. QNetworkReply [4], see the breadcrumb at the top).</p>
<p dir="ltr">I think it would help make the VTK docs less flat and hard to navigate.</p>
<p dir="ltr">Not sure it's easily doable with just Doxygen though. Qt has its own tooling.</p>
<p dir="ltr">BTW the heuristic you used above, will it work for all classes? I mean, are all modules laid out in the file system like this, and all module names correspond to directory names like that?</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">[1] <a href="https://doc.qt.io/qt-5/qtmodules.html">https://doc.qt.io/qt-5/qtmodules.html</a><br>
[2] <a href="https://doc.qt.io/qt-5/qtnetwork-index.html">https://doc.qt.io/qt-5/qtnetwork-index.html</a><br>
[3] <a href="https://doc.qt.io/qt-5/qtnetwork-module.html">https://doc.qt.io/qt-5/qtnetwork-module.html</a><br>
[4] <a href="https://doc.qt.io/qt-5/qnetworkreply.html">https://doc.qt.io/qt-5/qnetworkreply.html</a></p>
<p dir="ltr">><br>
> - Cory<br>
><br>
> > but you can<br>
> > run the Utilities/Maintenance/WhatModules.py script from VTK against your<br>
> > sources, to find out the list of modules you need to link against based on<br>
> > what headers you are including.<br>
> ><br>
> > E.g:<br>
> ><br>
> > estan@newton:~/orexplore/VTK$ ./Utilities/Maintenance/WhatModulesVTK.py .<br>
> > Filters/Modeling/Testing/Cxx/TestRotationalExtrusion.cxx<br>
> > Modules and their dependencies:<br>
> > find_package(VTK COMPONENTS<br>
> > vtkCommonCore<br>
> > vtkCommonDataModel<br>
> > vtkCommonExecutionModel<br>
> > vtkCommonMath<br>
> > vtkCommonMisc<br>
> > vtkCommonTransforms<br>
> > vtkFiltersCore<br>
> > vtkFiltersGeneral<br>
> > vtkFiltersModeling<br>
> > vtkFiltersSources<br>
> > vtkInteractionStyle<br>
> > vtkRenderingCore<br>
> > vtkRenderingOpenGL<br>
> > vtkTestingCore<br>
> > vtkTestingRendering<br>
> > vtkkwiml<br>
> > )<br>
> > Your application code includes 16 of 189 vtk modules.<br>
> ><br>
> > All modules referenced in the files:<br>
> > find_package(VTK COMPONENTS<br>
> > vtkCommonCore<br>
> > vtkFiltersCore<br>
> > vtkFiltersModeling<br>
> > vtkFiltersSources<br>
> > vtkInteractionStyle<br>
> > vtkRenderingCore<br>
> > vtkRenderingOpenGL<br>
> > vtkTestingCore<br>
> > vtkTestingRendering<br>
> > )<br>
> > Your application code includes 9 of 189 vtk modules.<br>
> ><br>
> > Minimal set of modules:<br>
> > find_package(VTK COMPONENTS<br>
> > vtkFiltersModeling<br>
> > vtkFiltersSources<br>
> > vtkInteractionStyle<br>
> > vtkRenderingOpenGL<br>
> > vtkTestingRendering<br>
> > )<br>
> > Your application code includes 5 of 189 vtk modules.<br>
> ><br>
> ><br>
> > estan@newton:~/orexplore/VTK$<br>
> ><br>
> > It's the middle one of these three sets of modules that you probably wants<br>
> > to use (the one listed under "All modules referenced in the files:").<br>
> ><br>
> > The script is not perfect, but has been a great help to me.<br>
> ><br>
> > Elvis<br>
> ><br>
> >><br>
> >> How can I report a bug? Sent to <a href="mailto:vtkdevelopers@vtk.org">vtkdevelopers@vtk.org</a> but with no success.<br>
> >><br>
> >> Best<br>
> >> CP<br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
> >><br>
> >> Visit other Kitware open-source projects at<br>
> >> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
> >><br>
> >> Please keep messages on-topic and check the VTK FAQ at:<br>
> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> >><br>
> >> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
> >><br>
> >> Follow this link to subscribe/unsubscribe:<br>
> >> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> >><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the VTK FAQ at:<br>
> > <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Cory Quammen<br>
> Staff R&D Engineer<br>
> Kitware, Inc.<br></p>