InventorObject.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "PreCompiled.h"
00025
00026 #ifndef _PreComp_
00027 #endif
00028
00029 #include "InventorObject.h"
00030 #include "DocumentObjectPy.h"
00031
00032 using namespace App;
00033
00034 PROPERTY_SOURCE(App::InventorObject, App::GeoFeature)
00035
00036
00037 InventorObject::InventorObject()
00038 {
00039 ADD_PROPERTY_TYPE(Buffer,(""),"",Prop_None,"String buffer with a scene graph");
00040 ADD_PROPERTY_TYPE(FileName,(""),"",Prop_None,"Path to an Inventor file");
00041 }
00042
00043 InventorObject::~InventorObject()
00044 {
00045 }
00046
00047 short InventorObject::mustExecute(void) const
00048 {
00049 return 0;
00050 }
00051
00052 PyObject *InventorObject::getPyObject()
00053 {
00054 if (PythonObject.is(Py::_None())){
00055
00056 PythonObject = Py::Object(new DocumentObjectPy(this),true);
00057 }
00058 return Py::new_reference_to(PythonObject);
00059 }