From 62fbf351a70cdd31ecb45d2f00eb94d0003b27a2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 10 Apr 2013 14:19:28 +0000 Subject: [PATCH] * ./hurricane/sr/isobar: - New: In PyContact, added methods for setX, setY, setDx, setDy. --- hurricane/src/isobar/PyContact.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hurricane/src/isobar/PyContact.cpp b/hurricane/src/isobar/PyContact.cpp index 915ff92d..83ed4693 100644 --- a/hurricane/src/isobar/PyContact.cpp +++ b/hurricane/src/isobar/PyContact.cpp @@ -58,7 +58,12 @@ extern "C" { DirectGetLongAttribute(PyContact_getDx, getDx, PyContact,Contact) DirectGetLongAttribute(PyContact_getDy, getDy, PyContact,Contact) - + + DirectSetLongAttribute(PyContact_setX ,setX ,"Contact.setX" ,PyContact,Contact) + DirectSetLongAttribute(PyContact_setY ,setY ,"Contact.setY" ,PyContact,Contact) + DirectSetLongAttribute(PyContact_setDx,setDx,"Contact.setDx",PyContact,Contact) + DirectSetLongAttribute(PyContact_setDy,setDy,"Contact.setDy",PyContact,Contact) + // Standart destroy (Attribute). DBoDestroyAttribute(PyContact_destroy, PyContact) @@ -98,6 +103,10 @@ extern "C" { , { "getDx" , (PyCFunction)PyContact_getDx , METH_NOARGS , "Return the contact dx value." } , { "getDy" , (PyCFunction)PyContact_getDy , METH_NOARGS , "Return the contact dy value." } , { "translate" , (PyCFunction)PyContact_translate , METH_VARARGS, "Translates the Contact of dx and dy." } + , { "setX" , (PyCFunction)PyContact_setX , METH_VARARGS, "Sets the contact X value." } + , { "setY" , (PyCFunction)PyContact_setY , METH_VARARGS, "Sets the contact Y value." } + , { "setDx" , (PyCFunction)PyContact_setDx , METH_VARARGS, "Sets the contact dx value." } + , { "setDy" , (PyCFunction)PyContact_setDy , METH_VARARGS, "Sets the contact dy value." } , {NULL, NULL, 0, NULL} /* sentinel */ };