Python functionality for ViewPart and ViewClip

This commit is contained in:
WandererFan
2016-01-23 16:05:34 -05:00
committed by wmayer
parent 5bf42856fd
commit 6d07fec219
8 changed files with 50 additions and 11 deletions

View File

@@ -66,6 +66,8 @@
#include "DrawHatch.h"
//#include "DrawViewDimension.h"
#include "DrawViewPartPy.h" // generated from DrawViewPartPy.xml
using namespace TechDraw;
using namespace std;
@@ -456,6 +458,15 @@ void DrawViewPart::dumpVertexRefs(char* text) const
}
}
PyObject *DrawViewPart::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawViewPartPy(this),true);
}
return Py::new_reference_to(PythonObject);
}
// Python Drawing feature ---------------------------------------------------------
namespace App {