// python wrapper for vtkCameraActor // #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 "vtkCameraActor.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkCameraActor(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkCameraActor_ClassNew(); } #ifndef DECLARED_PyvtkProp3D_ClassNew extern "C" { PyObject *PyvtkProp3D_ClassNew(); } #define DECLARED_PyvtkProp3D_ClassNew #endif static const char *PyvtkCameraActor_Doc = "vtkCameraActor - a frustum to represent a camera.\n\n" "Superclass: vtkProp3D\n\n" "vtkCameraActor is an actor used to represent a camera by its\n" "wireframe frustum.\n\n" "@sa\n" "vtkLight vtkConeSource vtkFrustumSource vtkCameraActor\n\n"; static PyObject * PyvtkCameraActor_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkCameraActor::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *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->vtkCameraActor::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkCameraActor *tempr = vtkCameraActor::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCameraActor_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCameraActor *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkCameraActor::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 * PyvtkCameraActor_SetCamera(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCamera"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); vtkCamera *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkCamera")) { if (ap.IsBound()) { op->SetCamera(temp0); } else { op->vtkCameraActor::SetCamera(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCameraActor_GetCamera(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCamera"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCamera *tempr = (ap.IsBound() ? op->GetCamera() : op->vtkCameraActor::GetCamera()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCameraActor_SetWidthByHeightRatio(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetWidthByHeightRatio"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetWidthByHeightRatio(temp0); } else { op->vtkCameraActor::SetWidthByHeightRatio(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCameraActor_GetWidthByHeightRatio(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetWidthByHeightRatio"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetWidthByHeightRatio() : op->vtkCameraActor::GetWidthByHeightRatio()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_RenderOpaqueGeometry(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderOpaqueGeometry"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { int tempr = (ap.IsBound() ? op->RenderOpaqueGeometry(temp0) : op->vtkCameraActor::RenderOpaqueGeometry(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_HasTranslucentPolygonalGeometry(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "HasTranslucentPolygonalGeometry"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->HasTranslucentPolygonalGeometry() : op->vtkCameraActor::HasTranslucentPolygonalGeometry()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_ReleaseGraphicsResources(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ReleaseGraphicsResources"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); vtkWindow *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkWindow")) { if (ap.IsBound()) { op->ReleaseGraphicsResources(temp0); } else { op->vtkCameraActor::ReleaseGraphicsResources(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCameraActor_GetBounds(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetBounds"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetBounds() : op->vtkCameraActor::GetBounds()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkCameraActor::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCameraActor_GetProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty *tempr = (ap.IsBound() ? op->GetProperty() : op->vtkCameraActor::GetProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCameraActor_SetProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCameraActor *op = static_cast(vp); vtkProperty *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkProperty")) { if (ap.IsBound()) { op->SetProperty(temp0); } else { op->vtkCameraActor::SetProperty(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkCameraActor_Methods[] = { {"IsTypeOf", PyvtkCameraActor_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nReturn 1 if this class type is the same type of (or a subclass\nof) the named class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"IsA", PyvtkCameraActor_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nReturn 1 if this class is the same type of (or a subclass of) the\nnamed class. Returns 0 otherwise. This method works in\ncombination with vtkTypeMacro found in vtkSetGet.h.\n"}, {"SafeDownCast", PyvtkCameraActor_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkCameraActor\nC++: static vtkCameraActor *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkCameraActor_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkCameraActor\nC++: vtkCameraActor *NewInstance()\n\n"}, {"SetCamera", PyvtkCameraActor_SetCamera, METH_VARARGS, "V.SetCamera(vtkCamera)\nC++: void SetCamera(vtkCamera *camera)\n\nThe camera to represent. Initial value is NULL.\n"}, {"GetCamera", PyvtkCameraActor_GetCamera, METH_VARARGS, "V.GetCamera() -> vtkCamera\nC++: virtual vtkCamera *GetCamera()\n\nThe camera to represent. Initial value is NULL.\n"}, {"SetWidthByHeightRatio", PyvtkCameraActor_SetWidthByHeightRatio, METH_VARARGS, "V.SetWidthByHeightRatio(float)\nC++: virtual void SetWidthByHeightRatio(double _arg)\n\nRatio between the width and the height of the frustum. Initial\nvalue is 1.0 (square)\n"}, {"GetWidthByHeightRatio", PyvtkCameraActor_GetWidthByHeightRatio, METH_VARARGS, "V.GetWidthByHeightRatio() -> float\nC++: virtual double GetWidthByHeightRatio()\n\nRatio between the width and the height of the frustum. Initial\nvalue is 1.0 (square)\n"}, {"RenderOpaqueGeometry", PyvtkCameraActor_RenderOpaqueGeometry, METH_VARARGS, "V.RenderOpaqueGeometry(vtkViewport) -> int\nC++: int RenderOpaqueGeometry(vtkViewport *viewport) override;\n\nSupport the standard render methods.\n"}, {"HasTranslucentPolygonalGeometry", PyvtkCameraActor_HasTranslucentPolygonalGeometry, METH_VARARGS, "V.HasTranslucentPolygonalGeometry() -> int\nC++: int HasTranslucentPolygonalGeometry() override;\n\nDoes this prop have some translucent polygonal geometry? No.\n"}, {"ReleaseGraphicsResources", PyvtkCameraActor_ReleaseGraphicsResources, METH_VARARGS, "V.ReleaseGraphicsResources(vtkWindow)\nC++: void ReleaseGraphicsResources(vtkWindow *) override;\n\nRelease any graphics resources that are being consumed by this\nactor. The parameter window could be used to determine which\ngraphic resources to release.\n"}, {"GetBounds", PyvtkCameraActor_GetBounds, METH_VARARGS, "V.GetBounds() -> (float, ...)\nC++: double *GetBounds() override;\n\nGet the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).\n"}, {"GetMTime", PyvtkCameraActor_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nGet the actors mtime plus consider its properties and texture if\nset.\n"}, {"GetProperty", PyvtkCameraActor_GetProperty, METH_VARARGS, "V.GetProperty() -> vtkProperty\nC++: vtkProperty *GetProperty()\n\nGet property of the internal actor.\n"}, {"SetProperty", PyvtkCameraActor_SetProperty, METH_VARARGS, "V.SetProperty(vtkProperty)\nC++: void SetProperty(vtkProperty *p)\n\nSet property of the internal actor.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkCameraActor_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkRenderingCorePython.vtkCameraActor", // 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 PyvtkCameraActor_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 *PyvtkCameraActor_StaticNew() { return vtkCameraActor::New(); } PyObject *PyvtkCameraActor_ClassNew() { PyVTKClass_Add( &PyvtkCameraActor_Type, PyvtkCameraActor_Methods, "vtkCameraActor", &PyvtkCameraActor_StaticNew); PyTypeObject *pytype = &PyvtkCameraActor_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 *)PyvtkProp3D_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkCameraActor( PyObject *dict) { PyObject *o; o = PyvtkCameraActor_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkCameraActor", o) != 0) { Py_DECREF(o); } }