mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 02:54:36 +00:00
rename FilterExampleGPU to snapshot for pymeshlab
This commit is contained in:
parent
58ef783a05
commit
b0dbea851b
@ -49,11 +49,18 @@ QString ExtraSampleGPUPlugin::pluginName() const
|
||||
// (this string is used also to define the menu entry)
|
||||
QString ExtraSampleGPUPlugin::filterName(ActionIDType filterId) const
|
||||
{
|
||||
switch(filterId) {
|
||||
case FP_GPU_EXAMPLE : return QString("GPU Filter Example ");
|
||||
default : assert(0);
|
||||
}
|
||||
return QString();
|
||||
if (filterId == FP_GPU_EXAMPLE)
|
||||
return "GPU Filter Example";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
QString ExtraSampleGPUPlugin::pythonFilterName(ActionIDType filterId) const
|
||||
{
|
||||
if (filterId == FP_GPU_EXAMPLE)
|
||||
return "snapshot";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
// Info() must return the longer string describing each filtering action
|
||||
|
||||
@ -54,6 +54,7 @@ public:
|
||||
void initParameterList(const QAction* action, MeshModel &m, RichParameterList & parlst);
|
||||
|
||||
QString filterName(ActionIDType filter) const;
|
||||
QString pythonFilterName(ActionIDType filterId) const;
|
||||
QString filterInfo(ActionIDType filter) const;
|
||||
bool requiresGLContext(const QAction* action) const;
|
||||
std::map<std::string, QVariant> applyFilter(const QAction* action, const RichParameterList & /*parent*/, MeshDocument &md, unsigned int& postConditionMask, vcg::CallBackPos * cb);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user