예제 #1
0
static int pySpaceTreeNode_setBounds(pySpaceTreeNode* self, PyObject* value, void*) {
    if (value == NULL || !pyBounds3Ext_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "bounds should be an hsBounds3Ext");
        return -1;
    }
    self->fThis->setBounds(*((pyBounds3Ext*)value)->fThis);
    return 0;
}
예제 #2
0
static int pyViewFaceModifier_setMaxBounds(pyViewFaceModifier* self, PyObject* value, void*) {
    if (value == NULL || !pyBounds3Ext_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "maxBounds should be an hsBounds3Ext");
        return -1;
    }
    self->fThis->setMaxBounds(*((pyBounds3Ext*)value)->fThis);
    return 0;
}
예제 #3
0
static int pyDrawableSpans_setMaxBounds(pyDrawableSpans* self, PyObject* value, void*) {
    if (value == NULL || !pyBounds3Ext_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "maxWorldBounds should be an hsBounds3Ext");
        return -1;
    }
    self->fThis->setMaxWorldBounds(*((pyBounds3Ext*)value)->fThis);
    return 0;
}
예제 #4
0
static int pyGeometrySpan_setWorldBounds(pyGeometrySpan* self, PyObject* value, void*) {
    if (value == NULL || !pyBounds3Ext_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "worldBounds should be an hsBounds3Ext");
        return -1;
    }
    self->fThis->setWorldBounds(*((pyBounds3Ext*)value)->fThis);
    return 0;
}
예제 #5
0
static int pyMobileOccluder_setLocalBounds(pyMobileOccluder* self, PyObject* value, void*) {
    if (value == NULL || value == Py_None) {
        self->fThis->setLocalBounds(hsBounds3Ext());
        return 0;
    }
    if (!pyBounds3Ext_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "localBounds should be an hsBounds3Ext");
        return -1;
    }
    self->fThis->setLocalBounds(*((pyBounds3Ext*)value)->fThis);
    return 0;
}