move addDisplayMode from ViewProviderPythonFeaturePy to ViewProviderPy

This commit is contained in:
wmayer
2016-11-08 16:41:36 +01:00
parent ff2a361928
commit 5c19fe2e74
4 changed files with 33 additions and 34 deletions

View File

@@ -22,7 +22,6 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Inventor/nodes/SoNode.h>
#endif
#include "Gui/ViewProviderPythonFeature.h"
@@ -40,29 +39,6 @@ std::string ViewProviderPythonFeaturePy::representation(void) const
return "<ViewProviderPythonFeature object>";
}
PyObject* ViewProviderPythonFeaturePy::addDisplayMode(PyObject * args)
{
char* mode;
PyObject* obj;
if (!PyArg_ParseTuple(args, "Os", &obj, &mode))
return NULL;
void* ptr = 0;
try {
Base::Interpreter().convertSWIGPointerObj("pivy.coin","SoNode *", obj, &ptr, 0);
}
catch (const Base::Exception& e) {
PyErr_SetString(PyExc_RuntimeError, e.what());
return 0;
}
PY_TRY {
SoNode* node = reinterpret_cast<SoNode*>(ptr);
getViewProviderPythonFeaturePtr()->addDisplayMaskMode(node,mode);
Py_Return;
} PY_CATCH;
}
PyObject* ViewProviderPythonFeaturePy::addProperty(PyObject *args)
{
char *sType,*sName=0,*sGroup=0,*sDoc=0;