// python wrapper for vtkPolygonalSurfacePointPlacer // #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include "vtkPythonArgs.h" #include "vtkPythonOverload.h" #include "vtkConfigure.h" #include #include #include "vtkVariant.h" #include "vtkIndent.h" #include "vtkPolygonalSurfacePointPlacer.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkPolygonalSurfacePointPlacer(PyObject *); } static const char *PyvtkPolygonalSurfacePointPlacerNode_Doc = "vtkPolygonalSurfacePointPlacerNode - no description provided.\n\n" "vtkPolygonalSurfacePointPlacerNode()\n" "vtkPolygonalSurfacePointPlacerNode(\n const &vtkPolygonalSurfacePointPlacerNode)\n"; static PyMethodDef PyvtkPolygonalSurfacePointPlacerNode_Methods[] = { {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_s1(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkPolygonalSurfacePointPlacerNode"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { vtkPolygonalSurfacePointPlacerNode *op = new vtkPolygonalSurfacePointPlacerNode(); result = PyVTKSpecialObject_New("vtkPolygonalSurfacePointPlacerNode", op); } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "vtkPolygonalSurfacePointPlacerNode"); vtkPolygonalSurfacePointPlacerNode *temp0 = nullptr; PyObject *pobj0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetSpecialObject(temp0, pobj0, "vtkPolygonalSurfacePointPlacerNode")) { vtkPolygonalSurfacePointPlacerNode *op = new vtkPolygonalSurfacePointPlacerNode(*temp0); result = PyVTKSpecialObject_New("vtkPolygonalSurfacePointPlacerNode", op); } Py_XDECREF(pobj0); return result; } static PyMethodDef PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_Methods[] = { {nullptr, PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_s2, METH_VARARGS, "@W vtkPolygonalSurfacePointPlacerNode"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 0: return PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_s1(self, args); case 1: return PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "vtkPolygonalSurfacePointPlacerNode"); return nullptr; } static PyObject * PyvtkPolygonalSurfacePointPlacerNode_New(PyTypeObject *, PyObject *args, PyObject *kwds) { if (kwds && PyDict_Size(kwds)) { PyErr_SetString(PyExc_TypeError, "this function takes no keyword arguments"); return nullptr; } return PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode(nullptr, args); } static void PyvtkPolygonalSurfacePointPlacerNode_Delete(PyObject *self) { PyVTKSpecialObject *obj = (PyVTKSpecialObject *)self; delete static_cast(obj->vtk_ptr); PyObject_Del(self); } static Py_hash_t PyvtkPolygonalSurfacePointPlacerNode_Hash(PyObject *self) { #if PY_VERSION_HEX >= 0x020600B2 return PyObject_HashNotImplemented(self); #else char text[256]; sprintf(text, "unhashable type: '%s'", Py_TYPE(self)->tp_name); PyErr_SetString(PyExc_TypeError, text); return -1; #endif } static PyTypeObject PyvtkPolygonalSurfacePointPlacerNode_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInteractionWidgetsPython.vtkPolygonalSurfacePointPlacerNode", // tp_name sizeof(PyVTKSpecialObject), // tp_basicsize 0, // tp_itemsize PyvtkPolygonalSurfacePointPlacerNode_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKSpecialObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping PyvtkPolygonalSurfacePointPlacerNode_Hash, // tp_hash nullptr, // tp_call nullptr, // tp_str PyObject_GenericGetAttr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags PyvtkPolygonalSurfacePointPlacerNode_Doc, // tp_doc nullptr, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare 0, // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members nullptr, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyvtkPolygonalSurfacePointPlacerNode_New, // tp_new PyObject_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static void *PyvtkPolygonalSurfacePointPlacerNode_CCopy(const void *obj) { if (obj) { return new vtkPolygonalSurfacePointPlacerNode(*static_cast(obj)); } return 0; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPolygonalSurfacePointPlacerNode_TypeNew(); } PyObject *PyvtkPolygonalSurfacePointPlacerNode_TypeNew() { PyVTKSpecialType_Add( &PyvtkPolygonalSurfacePointPlacerNode_Type, PyvtkPolygonalSurfacePointPlacerNode_Methods, PyvtkPolygonalSurfacePointPlacerNode_vtkPolygonalSurfacePointPlacerNode_Methods, &PyvtkPolygonalSurfacePointPlacerNode_CCopy); PyTypeObject *pytype = &PyvtkPolygonalSurfacePointPlacerNode_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } PyType_Ready(pytype); return (PyObject *)pytype; } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkPolygonalSurfacePointPlacer_ClassNew(); } #ifndef DECLARED_PyvtkPolyDataPointPlacer_ClassNew extern "C" { PyObject *PyvtkPolyDataPointPlacer_ClassNew(); } #define DECLARED_PyvtkPolyDataPointPlacer_ClassNew #endif static const char *PyvtkPolygonalSurfacePointPlacer_Doc = "vtkPolygonalSurfacePointPlacer - Place points on the surface of\npolygonal data.\n\n" "Superclass: vtkPolyDataPointPlacer\n\n" "vtkPolygonalSurfacePointPlacer places points on polygonal data and is\n" "meant to be used in conjunction with\n" "vtkPolygonalSurfaceContourLineInterpolator.\n\n" "@warning\n" "You should have computed cell normals for the input polydata if you\n" "are specifying a distance offset.\n\n" "@sa\n" "vtkPointPlacer vtkPolyDataNormals\n\n"; static PyObject * PyvtkPolygonalSurfacePointPlacer_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkPolygonalSurfacePointPlacer::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->IsA(temp0) : op->vtkPolygonalSurfacePointPlacer::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkPolygonalSurfacePointPlacer *tempr = vtkPolygonalSurfacePointPlacer::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPolygonalSurfacePointPlacer *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkPolygonalSurfacePointPlacer::NewInstance()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); if (result && PyVTKObject_Check(result)) { PyVTKObject_GetObject(result)->UnRegister(0); PyVTKObject_SetFlag(result, VTK_PYTHON_IGNORE_UNREGISTER, 1); } } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_AddProp(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddProp"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); vtkProp *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkProp")) { if (ap.IsBound()) { op->AddProp(temp0); } else { op->vtkPolygonalSurfacePointPlacer::AddProp(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_RemoveViewProp(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveViewProp"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); vtkProp *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkProp")) { if (ap.IsBound()) { op->RemoveViewProp(temp0); } else { op->vtkPolygonalSurfacePointPlacer::RemoveViewProp(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_RemoveAllProps(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveAllProps"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->RemoveAllProps(); } else { op->vtkPolygonalSurfacePointPlacer::RemoveAllProps(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeWorldPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); vtkRenderer *temp0 = nullptr; const int size1 = 2; double temp1[2]; double save1[2]; const int size2 = 3; double temp2[3]; double save2[3]; const int size3 = 9; double temp3[9]; double save3[9]; PyObject *result = nullptr; if (op && ap.CheckArgCount(4) && ap.GetVTKObject(temp0, "vtkRenderer") && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2) && ap.GetArray(temp3, size3)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); ap.SaveArray(temp3, save3, size3); int tempr = (ap.IsBound() ? op->ComputeWorldPosition(temp0, temp1, temp2, temp3) : op->vtkPolygonalSurfacePointPlacer::ComputeWorldPosition(temp0, temp1, temp2, temp3)); if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (ap.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeWorldPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); vtkRenderer *temp0 = nullptr; const int size1 = 2; double temp1[2]; double save1[2]; const int size2 = 3; double temp2[3]; double save2[3]; const int size3 = 3; double temp3[3]; double save3[3]; const int size4 = 9; double temp4[9]; double save4[9]; PyObject *result = nullptr; if (op && ap.CheckArgCount(5) && ap.GetVTKObject(temp0, "vtkRenderer") && ap.GetArray(temp1, size1) && ap.GetArray(temp2, size2) && ap.GetArray(temp3, size3) && ap.GetArray(temp4, size4)) { ap.SaveArray(temp1, save1, size1); ap.SaveArray(temp2, save2, size2); ap.SaveArray(temp3, save3, size3); ap.SaveArray(temp4, save4, size4); int tempr = (ap.IsBound() ? op->ComputeWorldPosition(temp0, temp1, temp2, temp3, temp4) : op->vtkPolygonalSurfacePointPlacer::ComputeWorldPosition(temp0, temp1, temp2, temp3, temp4)); if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (ap.ArrayHasChanged(temp2, save2, size2) && !ap.ErrorOccurred()) { ap.SetArray(2, temp2, size2); } if (ap.ArrayHasChanged(temp3, save3, size3) && !ap.ErrorOccurred()) { ap.SetArray(3, temp3, size3); } if (ap.ArrayHasChanged(temp4, save4, size4) && !ap.ErrorOccurred()) { ap.SetArray(4, temp4, size4); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 4: return PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition_s1(self, args); case 5: return PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "ComputeWorldPosition"); return nullptr; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ValidateWorldPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); int tempr = (ap.IsBound() ? op->ValidateWorldPosition(temp0) : op->vtkPolygonalSurfacePointPlacer::ValidateWorldPosition(temp0)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ValidateWorldPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; const int size1 = 9; double temp1[9]; double save1[9]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetArray(temp1, size1)) { ap.SaveArray(temp0, save0, size0); ap.SaveArray(temp1, save1, size1); int tempr = (ap.IsBound() ? op->ValidateWorldPosition(temp0, temp1) : op->vtkPolygonalSurfacePointPlacer::ValidateWorldPosition(temp0, temp1)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition_s1(self, args); case 2: return PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "ValidateWorldPosition"); return nullptr; } static PyObject * PyvtkPolygonalSurfacePointPlacer_UpdateNodeWorldPosition(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UpdateNodeWorldPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); const int size0 = 3; double temp0[3]; double save0[3]; vtkIdType temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); int tempr = (ap.IsBound() ? op->UpdateNodeWorldPosition(temp0, temp1) : op->vtkPolygonalSurfacePointPlacer::UpdateNodeWorldPosition(temp0, temp1)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_ValidateDisplayPosition(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ValidateDisplayPosition"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); vtkRenderer *temp0 = nullptr; const int size1 = 2; double temp1[2]; double save1[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetVTKObject(temp0, "vtkRenderer") && ap.GetArray(temp1, size1)) { ap.SaveArray(temp1, save1, size1); int tempr = (ap.IsBound() ? op->ValidateDisplayPosition(temp0, temp1) : op->vtkPolygonalSurfacePointPlacer::ValidateDisplayPosition(temp0, temp1)); if (ap.ArrayHasChanged(temp1, save1, size1) && !ap.ErrorOccurred()) { ap.SetArray(1, temp1, size1); } if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_GetCellPicker(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCellPicker"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCellPicker *tempr = (ap.IsBound() ? op->GetCellPicker() : op->vtkPolygonalSurfacePointPlacer::GetCellPicker()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_GetPolys(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPolys"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPolyDataCollection *tempr = (ap.IsBound() ? op->GetPolys() : op->vtkPolygonalSurfacePointPlacer::GetPolys()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_SetDistanceOffset(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDistanceOffset"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDistanceOffset(temp0); } else { op->vtkPolygonalSurfacePointPlacer::SetDistanceOffset(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_GetDistanceOffset(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDistanceOffset"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetDistanceOffset() : op->vtkPolygonalSurfacePointPlacer::GetDistanceOffset()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_SetSnapToClosestPoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSnapToClosestPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSnapToClosestPoint(temp0); } else { op->vtkPolygonalSurfacePointPlacer::SetSnapToClosestPoint(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_GetSnapToClosestPoint(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSnapToClosestPoint"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetSnapToClosestPoint() : op->vtkPolygonalSurfacePointPlacer::GetSnapToClosestPoint()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_SnapToClosestPointOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SnapToClosestPointOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SnapToClosestPointOn(); } else { op->vtkPolygonalSurfacePointPlacer::SnapToClosestPointOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkPolygonalSurfacePointPlacer_SnapToClosestPointOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SnapToClosestPointOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkPolygonalSurfacePointPlacer *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SnapToClosestPointOff(); } else { op->vtkPolygonalSurfacePointPlacer::SnapToClosestPointOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkPolygonalSurfacePointPlacer_Methods[] = { {"IsTypeOf", PyvtkPolygonalSurfacePointPlacer_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard methods for instances of this class.\n"}, {"IsA", PyvtkPolygonalSurfacePointPlacer_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard methods for instances of this class.\n"}, {"SafeDownCast", PyvtkPolygonalSurfacePointPlacer_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkPolygonalSurfacePointPlacer\nC++: static vtkPolygonalSurfacePointPlacer *SafeDownCast(\n vtkObjectBase *o)\n\nStandard methods for instances of this class.\n"}, {"NewInstance", PyvtkPolygonalSurfacePointPlacer_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkPolygonalSurfacePointPlacer\nC++: vtkPolygonalSurfacePointPlacer *NewInstance()\n\nStandard methods for instances of this class.\n"}, {"AddProp", PyvtkPolygonalSurfacePointPlacer_AddProp, METH_VARARGS, "V.AddProp(vtkProp)\nC++: void AddProp(vtkProp *) override;\n\n"}, {"RemoveViewProp", PyvtkPolygonalSurfacePointPlacer_RemoveViewProp, METH_VARARGS, "V.RemoveViewProp(vtkProp)\nC++: void RemoveViewProp(vtkProp *prop) override;\n\n"}, {"RemoveAllProps", PyvtkPolygonalSurfacePointPlacer_RemoveAllProps, METH_VARARGS, "V.RemoveAllProps()\nC++: void RemoveAllProps() override;\n\n"}, {"ComputeWorldPosition", PyvtkPolygonalSurfacePointPlacer_ComputeWorldPosition, METH_VARARGS, "V.ComputeWorldPosition(vtkRenderer, [float, float], [float, float,\n float], [float, float, float, float, float, float, float,\n float, float]) -> int\nC++: int ComputeWorldPosition(vtkRenderer *ren,\n double displayPos[2], double worldPos[3],\n double worldOrient[9]) override;\nV.ComputeWorldPosition(vtkRenderer, [float, float], [float, float,\n float], [float, float, float], [float, float, float, float,\n float, float, float, float, float]) -> int\nC++: int ComputeWorldPosition(vtkRenderer *ren,\n double displayPos[2], double refWorldPos[3],\n double worldPos[3], double worldOrient[9]) override;\n\nGiven a renderer and a display position in pixel coordinates,\ncompute the world position and orientation where this point will\nbe placed. This method is typically used by the representation to\nplace the point initially. For the Terrain point placer this\ncomputes world points that lie at the specified height above the\nterrain.\n"}, {"ValidateWorldPosition", PyvtkPolygonalSurfacePointPlacer_ValidateWorldPosition, METH_VARARGS, "V.ValidateWorldPosition([float, float, float]) -> int\nC++: int ValidateWorldPosition(double worldPos[3]) override;\nV.ValidateWorldPosition([float, float, float], [float, float,\n float, float, float, float, float, float, float]) -> int\nC++: int ValidateWorldPosition(double worldPos[3],\n double worldOrient[9]) override;\n\nGiven a world position check the validity of this position\naccording to the constraints of the placer\n"}, {"UpdateNodeWorldPosition", PyvtkPolygonalSurfacePointPlacer_UpdateNodeWorldPosition, METH_VARARGS, "V.UpdateNodeWorldPosition([float, float, float], int) -> int\nC++: int UpdateNodeWorldPosition(double worldPos[3],\n vtkIdType nodePointId) override;\n\nGive the node a chance to update its auxiliary point id.\n"}, {"ValidateDisplayPosition", PyvtkPolygonalSurfacePointPlacer_ValidateDisplayPosition, METH_VARARGS, "V.ValidateDisplayPosition(vtkRenderer, [float, float]) -> int\nC++: int ValidateDisplayPosition(vtkRenderer *,\n double displayPos[2]) override;\n\nGiven a display position, check the validity of this position.\n"}, {"GetCellPicker", PyvtkPolygonalSurfacePointPlacer_GetCellPicker, METH_VARARGS, "V.GetCellPicker() -> vtkCellPicker\nC++: virtual vtkCellPicker *GetCellPicker()\n\nGet the Prop picker.\n"}, {"GetPolys", PyvtkPolygonalSurfacePointPlacer_GetPolys, METH_VARARGS, "V.GetPolys() -> vtkPolyDataCollection\nC++: virtual vtkPolyDataCollection *GetPolys()\n\nBe sure to add polydata on which you wish to place points to this\nlist or they will not be considered for placement.\n"}, {"SetDistanceOffset", PyvtkPolygonalSurfacePointPlacer_SetDistanceOffset, METH_VARARGS, "V.SetDistanceOffset(float)\nC++: virtual void SetDistanceOffset(double _arg)\n\nHeight offset at which points may be placed on the polygonal\nsurface. If you specify a non-zero value here, be sure to compute\ncell normals on your input polygonal data (easily done with\nvtkPolyDataNormals).\n"}, {"GetDistanceOffset", PyvtkPolygonalSurfacePointPlacer_GetDistanceOffset, METH_VARARGS, "V.GetDistanceOffset() -> float\nC++: virtual double GetDistanceOffset()\n\nHeight offset at which points may be placed on the polygonal\nsurface. If you specify a non-zero value here, be sure to compute\ncell normals on your input polygonal data (easily done with\nvtkPolyDataNormals).\n"}, {"SetSnapToClosestPoint", PyvtkPolygonalSurfacePointPlacer_SetSnapToClosestPoint, METH_VARARGS, "V.SetSnapToClosestPoint(int)\nC++: virtual void SetSnapToClosestPoint(int _arg)\n\nSnap to the closest point on the surface ? This is useful for the\nvtkPolygonalSurfaceContourLineInterpolator, when drawing contours\nalong the edges of a surface mesh. OFF by default.\n"}, {"GetSnapToClosestPoint", PyvtkPolygonalSurfacePointPlacer_GetSnapToClosestPoint, METH_VARARGS, "V.GetSnapToClosestPoint() -> int\nC++: virtual int GetSnapToClosestPoint()\n\nSnap to the closest point on the surface ? This is useful for the\nvtkPolygonalSurfaceContourLineInterpolator, when drawing contours\nalong the edges of a surface mesh. OFF by default.\n"}, {"SnapToClosestPointOn", PyvtkPolygonalSurfacePointPlacer_SnapToClosestPointOn, METH_VARARGS, "V.SnapToClosestPointOn()\nC++: virtual void SnapToClosestPointOn()\n\nSnap to the closest point on the surface ? This is useful for the\nvtkPolygonalSurfaceContourLineInterpolator, when drawing contours\nalong the edges of a surface mesh. OFF by default.\n"}, {"SnapToClosestPointOff", PyvtkPolygonalSurfacePointPlacer_SnapToClosestPointOff, METH_VARARGS, "V.SnapToClosestPointOff()\nC++: virtual void SnapToClosestPointOff()\n\nSnap to the closest point on the surface ? This is useful for the\nvtkPolygonalSurfaceContourLineInterpolator, when drawing contours\nalong the edges of a surface mesh. OFF by default.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkPolygonalSurfacePointPlacer_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInteractionWidgetsPython.vtkPolygonalSurfacePointPlacer", // tp_name sizeof(PyVTKObject), // tp_basicsize 0, // tp_itemsize PyVTKObject_Delete, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare PyVTKObject_Repr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call PyVTKObject_String, // tp_str PyObject_GenericGetAttr, // tp_getattro PyObject_GenericSetAttr, // tp_setattro &PyVTKObject_AsBuffer, // tp_as_buffer Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags PyvtkPolygonalSurfacePointPlacer_Doc, // tp_doc PyVTKObject_Traverse, // tp_traverse nullptr, // tp_clear nullptr, // tp_richcompare offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset nullptr, // tp_iter nullptr, // tp_iternext nullptr, // tp_methods nullptr, // tp_members PyVTKObject_GetSet, // tp_getset nullptr, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set offsetof(PyVTKObject, vtk_dict), // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc PyVTKObject_New, // tp_new PyObject_GC_Del, // tp_free nullptr, // tp_is_gc nullptr, // tp_bases nullptr, // tp_mro nullptr, // tp_cache nullptr, // tp_subclasses nullptr, // tp_weaklist VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED }; static vtkObjectBase *PyvtkPolygonalSurfacePointPlacer_StaticNew() { return vtkPolygonalSurfacePointPlacer::New(); } PyObject *PyvtkPolygonalSurfacePointPlacer_ClassNew() { PyVTKClass_Add( &PyvtkPolygonalSurfacePointPlacer_Type, PyvtkPolygonalSurfacePointPlacer_Methods, "vtkPolygonalSurfacePointPlacer", &PyvtkPolygonalSurfacePointPlacer_StaticNew); PyTypeObject *pytype = &PyvtkPolygonalSurfacePointPlacer_Type; if ((pytype->tp_flags & Py_TPFLAGS_READY) != 0) { return (PyObject *)pytype; } #if !defined(VTK_PY3K) && PY_VERSION_HEX >= 0x02060000 pytype->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER; #endif pytype->tp_base = (PyTypeObject *)PyvtkPolyDataPointPlacer_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkPolygonalSurfacePointPlacer( PyObject *dict) { PyObject *o; o = PyvtkPolygonalSurfacePointPlacerNode_TypeNew(); if (o && PyDict_SetItemString(dict, "vtkPolygonalSurfacePointPlacerNode", o) != 0) { Py_DECREF(o); } o = PyvtkPolygonalSurfacePointPlacer_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkPolygonalSurfacePointPlacer", o) != 0) { Py_DECREF(o); } }