-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing circular dependency with XmlLutReader #1302
Conversation
int setColorLookupTable(const std::string &filename) | ||
{ return GeoLib::readColorLookupTable(_colorLookupTable, filename); } | ||
// int setColorLookupTable(const std::string &filename) | ||
// { return GeoLib::readColorLookupTable(_colorLookupTable, filename); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to remove from 44-46?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather keep this for now as this is another part of the DE where lookup-tables are used but it would need a complete rewrite. I don't want to make this PR larger than it already is.
Apart from small questions: 👍 |
#include <QFileDialog> | ||
#include <QSettings> | ||
|
||
#include "Applications/DataHolderLib/Color.h" | ||
#include "DetailWindow.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include this at top
Changes in this PR are lots compared to just moving XmlLutReader to somewhere under DE (#1284). What is a reason you have to keep it in FileIO? XmlLutReader is used only in DE, isn't it? |
One reason is to keep IO functionality local. Another is that it is now possible to use it in other utils without introducing new circular dependencies. External tools like Gocad store specifc color tables which could be reused by paraview or DE. |
Thanks for the two points. However
|
|
I don't agree with the first point (because they are not local from a viewpoint of modularity), but the second point gives some reason to keep it in FileIO. thanks |
…vtk and removed circular dependency
OpenGeoSys development has been moved to GitLab. |
Moves Color to DataHolderLib, introduces a new data holder for lookup-tables and removes the circular dependency.