Skip to content
Snippets Groups Projects
Commit 8cbdf854 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

cleanup

parent 8ec98b94
Branches
Tags
No related merge requests found
...@@ -19,14 +19,14 @@ PView *GMSH_PostPlugin::getView(int index, PView *view) ...@@ -19,14 +19,14 @@ PView *GMSH_PostPlugin::getView(int index, PView *view)
} }
} }
PViewDataList *GMSH_PostPlugin::getDataList(PView *view, bool error) PViewDataList *GMSH_PostPlugin::getDataList(PView *view, bool showError)
{ {
if(!view) return 0; if(!view) return 0;
PViewDataList *data = dynamic_cast<PViewDataList*>(view->getData()); PViewDataList *data = dynamic_cast<PViewDataList*>(view->getData());
if(data) if(data)
return data; return data;
else if(error) else if(showError)
Msg::Error("This plugin can only be run on list-based views (`.pos' files)"); Msg::Error("This plugin can only be run on list-based views (`.pos' files)");
return 0; return 0;
} }
...@@ -81,7 +81,7 @@ class GMSH_PostPlugin : public GMSH_Plugin ...@@ -81,7 +81,7 @@ class GMSH_PostPlugin : public GMSH_Plugin
// get the view given an index and a default value // get the view given an index and a default value
virtual PView *getView(int index, PView *view); virtual PView *getView(int index, PView *view);
// get the data in list format // get the data in list format
virtual PViewDataList *getDataList(PView *view, bool error=1); virtual PViewDataList *getDataList(PView *view, bool showError=true);
virtual void assignSpecificVisibility() const {} virtual void assignSpecificVisibility() const {}
virtual bool geometricalFilter(gmshMatrix<double> *) const { return true; } virtual bool geometricalFilter(gmshMatrix<double> *) const { return true; }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment