[TD]Add uuid tags for cosmetics

This commit is contained in:
wandererfan
2019-07-22 11:48:40 -04:00
committed by WandererFan
parent 0f714e00f1
commit b5464ccf4d
11 changed files with 236 additions and 35 deletions

View File

@@ -23,37 +23,14 @@
#include "PreCompiled.h"
#ifndef _PreComp_
//# include <gp_Ax1.hxx>
//# include <gp_Dir.hxx>
//# include <gp_Pnt.hxx>
//# include <gp_Vec.hxx>
//# include <gp_Trsf.hxx>
//# include <Geom_GeometryFormat.hxx>
//# include <Geom_Curve.hxx>
//# include <Geom_Surface.hxx>
//# include <Precision.hxx>
//# include <Standard_Failure.hxx>
# include <boost/uuid/uuid_io.hpp>
#endif
//#include <Base/GeomFormatPyCXX.h>
//#include <Base/Matrix.h>
//#include <Base/MatrixPy.h>
//#include <Base/Vector3D.h>
//#include <Base/VectorPy.h>
//#include <Base/Rotation.h>
//#include <Base/Placement.h>
//#include <Base/PlacementPy.h>
//#include "OCCError.h"
#include "Cosmetic.h"
#include "GeomFormatPy.h"
#include "GeomFormatPy.cpp"
//#include "TopoShape.h"
//#include "TopoShapePy.h"
using namespace TechDraw;
// returns a string which represents the object e.g. when printed in python
@@ -130,6 +107,12 @@ PyObject* GeomFormatPy::copy(PyObject *args)
return cpy;
}
Py::String GeomFormatPy::getTag(void) const
{
std::string tmp = boost::uuids::to_string(getGeomFormatPtr()->getTag());
return Py::String(tmp);
}
PyObject *GeomFormatPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;