// python wrapper for vtkConeSource // #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 "vtkConeSource.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkConeSource(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkConeSource_ClassNew(); } #ifndef DECLARED_PyvtkPolyDataAlgorithm_ClassNew extern "C" { PyObject *PyvtkPolyDataAlgorithm_ClassNew(); } #define DECLARED_PyvtkPolyDataAlgorithm_ClassNew #endif static const char *PyvtkConeSource_Doc = "vtkConeSource - generate polygonal cone\n\n" "Superclass: vtkPolyDataAlgorithm\n\n" "vtkConeSource creates a cone centered at a specified point and\n" "pointing in a specified direction. (By default, the center is the\n" "origin and the direction is the x-axis.) Depending upon the\n" "resolution of this object, different representations are created. If\n" "resolution=0 a line is created; if resolution=1, a single triangle is\n" "created; if resolution=2, two crossed triangles are created. For\n" "resolution > 2, a 3D cone (with resolution number of sides) is\n" "created. It also is possible to control whether the bottom of the\n" "cone is capped with a (resolution-sided) polygon, and to specify the\n" "height and radius of the cone.\n\n"; static PyObject * PyvtkConeSource_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkConeSource::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *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->vtkConeSource::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkConeSource *tempr = vtkConeSource::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkConeSource_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkConeSource *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkConeSource::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 * PyvtkConeSource_SetHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetHeight(temp0); } else { op->vtkConeSource::SetHeight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetHeightMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHeightMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetHeightMinValue() : op->vtkConeSource::GetHeightMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetHeightMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHeightMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetHeightMaxValue() : op->vtkConeSource::GetHeightMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetHeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetHeight() : op->vtkConeSource::GetHeight()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_SetRadius(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRadius"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetRadius(temp0); } else { op->vtkConeSource::SetRadius(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetRadiusMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRadiusMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetRadiusMinValue() : op->vtkConeSource::GetRadiusMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetRadiusMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRadiusMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetRadiusMaxValue() : op->vtkConeSource::GetRadiusMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetRadius(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRadius"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetRadius() : op->vtkConeSource::GetRadius()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_SetResolution(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetResolution"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetResolution(temp0); } else { op->vtkConeSource::SetResolution(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetResolutionMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResolutionMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetResolutionMinValue() : op->vtkConeSource::GetResolutionMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetResolutionMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResolutionMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetResolutionMaxValue() : op->vtkConeSource::GetResolutionMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_GetResolution(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetResolution"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetResolution() : op->vtkConeSource::GetResolution()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_SetCenter_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCenter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetCenter(temp0, temp1, temp2); } else { op->vtkConeSource::SetCenter(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_SetCenter_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCenter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetCenter(temp0); } else { op->vtkConeSource::SetCenter(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_SetCenter(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkConeSource_SetCenter_s1(self, args); case 1: return PyvtkConeSource_SetCenter_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetCenter"); return nullptr; } static PyObject * PyvtkConeSource_GetCenter(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCenter"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetCenter() : op->vtkConeSource::GetCenter()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkConeSource_SetDirection_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDirection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); double temp0; double temp1; double temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { if (ap.IsBound()) { op->SetDirection(temp0, temp1, temp2); } else { op->vtkConeSource::SetDirection(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_SetDirection_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDirection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); const int size0 = 3; double temp0[3]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { if (ap.IsBound()) { op->SetDirection(temp0); } else { op->vtkConeSource::SetDirection(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_SetDirection(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 3: return PyvtkConeSource_SetDirection_s1(self, args); case 1: return PyvtkConeSource_SetDirection_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetDirection"); return nullptr; } static PyObject * PyvtkConeSource_GetDirection(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDirection"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); int sizer = 3; PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double *tempr = (ap.IsBound() ? op->GetDirection() : op->vtkConeSource::GetDirection()); if (!ap.ErrorOccurred()) { result = ap.BuildTuple(tempr, sizer); } } return result; } static PyObject * PyvtkConeSource_SetAngle(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetAngle"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetAngle(temp0); } else { op->vtkConeSource::SetAngle(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetAngle(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetAngle"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetAngle() : op->vtkConeSource::GetAngle()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_SetCapping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCapping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetCapping(temp0); } else { op->vtkConeSource::SetCapping(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetCapping(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCapping"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetCapping() : op->vtkConeSource::GetCapping()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkConeSource_CappingOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CappingOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->CappingOn(); } else { op->vtkConeSource::CappingOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_CappingOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CappingOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->CappingOff(); } else { op->vtkConeSource::CappingOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_SetOutputPointsPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetOutputPointsPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetOutputPointsPrecision(temp0); } else { op->vtkConeSource::SetOutputPointsPrecision(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkConeSource_GetOutputPointsPrecision(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetOutputPointsPrecision"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkConeSource *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetOutputPointsPrecision() : op->vtkConeSource::GetOutputPointsPrecision()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkConeSource_Methods[] = { {"IsTypeOf", PyvtkConeSource_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", PyvtkConeSource_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", PyvtkConeSource_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkConeSource\nC++: static vtkConeSource *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkConeSource_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkConeSource\nC++: vtkConeSource *NewInstance()\n\n"}, {"SetHeight", PyvtkConeSource_SetHeight, METH_VARARGS, "V.SetHeight(float)\nC++: virtual void SetHeight(double _arg)\n\nSet the height of the cone. This is the height along the cone in\nits specified direction.\n"}, {"GetHeightMinValue", PyvtkConeSource_GetHeightMinValue, METH_VARARGS, "V.GetHeightMinValue() -> float\nC++: virtual double GetHeightMinValue()\n\nSet the height of the cone. This is the height along the cone in\nits specified direction.\n"}, {"GetHeightMaxValue", PyvtkConeSource_GetHeightMaxValue, METH_VARARGS, "V.GetHeightMaxValue() -> float\nC++: virtual double GetHeightMaxValue()\n\nSet the height of the cone. This is the height along the cone in\nits specified direction.\n"}, {"GetHeight", PyvtkConeSource_GetHeight, METH_VARARGS, "V.GetHeight() -> float\nC++: virtual double GetHeight()\n\nSet the height of the cone. This is the height along the cone in\nits specified direction.\n"}, {"SetRadius", PyvtkConeSource_SetRadius, METH_VARARGS, "V.SetRadius(float)\nC++: virtual void SetRadius(double _arg)\n\nSet the base radius of the cone.\n"}, {"GetRadiusMinValue", PyvtkConeSource_GetRadiusMinValue, METH_VARARGS, "V.GetRadiusMinValue() -> float\nC++: virtual double GetRadiusMinValue()\n\nSet the base radius of the cone.\n"}, {"GetRadiusMaxValue", PyvtkConeSource_GetRadiusMaxValue, METH_VARARGS, "V.GetRadiusMaxValue() -> float\nC++: virtual double GetRadiusMaxValue()\n\nSet the base radius of the cone.\n"}, {"GetRadius", PyvtkConeSource_GetRadius, METH_VARARGS, "V.GetRadius() -> float\nC++: virtual double GetRadius()\n\nSet the base radius of the cone.\n"}, {"SetResolution", PyvtkConeSource_SetResolution, METH_VARARGS, "V.SetResolution(int)\nC++: virtual void SetResolution(int _arg)\n\nSet the number of facets used to represent the cone.\n"}, {"GetResolutionMinValue", PyvtkConeSource_GetResolutionMinValue, METH_VARARGS, "V.GetResolutionMinValue() -> int\nC++: virtual int GetResolutionMinValue()\n\nSet the number of facets used to represent the cone.\n"}, {"GetResolutionMaxValue", PyvtkConeSource_GetResolutionMaxValue, METH_VARARGS, "V.GetResolutionMaxValue() -> int\nC++: virtual int GetResolutionMaxValue()\n\nSet the number of facets used to represent the cone.\n"}, {"GetResolution", PyvtkConeSource_GetResolution, METH_VARARGS, "V.GetResolution() -> int\nC++: virtual int GetResolution()\n\nSet the number of facets used to represent the cone.\n"}, {"SetCenter", PyvtkConeSource_SetCenter, METH_VARARGS, "V.SetCenter(float, float, float)\nC++: void SetCenter(double, double, double)\nV.SetCenter((float, float, float))\nC++: void SetCenter(double a[3])\n\n"}, {"GetCenter", PyvtkConeSource_GetCenter, METH_VARARGS, "V.GetCenter() -> (float, float, float)\nC++: double *GetCenter()\n\nSet the center of the cone. It is located at the middle of the\naxis of the cone. Warning: this is not the center of the base of\nthe cone! The default is 0,0,0.\n"}, {"SetDirection", PyvtkConeSource_SetDirection, METH_VARARGS, "V.SetDirection(float, float, float)\nC++: void SetDirection(double, double, double)\nV.SetDirection((float, float, float))\nC++: void SetDirection(double a[3])\n\n"}, {"GetDirection", PyvtkConeSource_GetDirection, METH_VARARGS, "V.GetDirection() -> (float, float, float)\nC++: double *GetDirection()\n\nSet the orientation vector of the cone. The vector does not have\nto be normalized. The direction goes from the center of the base\ntoward the apex. The default is (1,0,0).\n"}, {"SetAngle", PyvtkConeSource_SetAngle, METH_VARARGS, "V.SetAngle(float)\nC++: void SetAngle(double angle)\n\nSet the angle of the cone. This is the angle between the axis of\nthe cone and a generatrix. Warning: this is not the aperture! The\naperture is twice this angle. As a side effect, the angle plus\nheight sets the base radius of the cone. Angle is expressed in\ndegrees.\n"}, {"GetAngle", PyvtkConeSource_GetAngle, METH_VARARGS, "V.GetAngle() -> float\nC++: double GetAngle()\n\nSet the angle of the cone. This is the angle between the axis of\nthe cone and a generatrix. Warning: this is not the aperture! The\naperture is twice this angle. As a side effect, the angle plus\nheight sets the base radius of the cone. Angle is expressed in\ndegrees.\n"}, {"SetCapping", PyvtkConeSource_SetCapping, METH_VARARGS, "V.SetCapping(int)\nC++: virtual void SetCapping(int _arg)\n\nTurn on/off whether to cap the base of the cone with a polygon.\n"}, {"GetCapping", PyvtkConeSource_GetCapping, METH_VARARGS, "V.GetCapping() -> int\nC++: virtual int GetCapping()\n\nTurn on/off whether to cap the base of the cone with a polygon.\n"}, {"CappingOn", PyvtkConeSource_CappingOn, METH_VARARGS, "V.CappingOn()\nC++: virtual void CappingOn()\n\nTurn on/off whether to cap the base of the cone with a polygon.\n"}, {"CappingOff", PyvtkConeSource_CappingOff, METH_VARARGS, "V.CappingOff()\nC++: virtual void CappingOff()\n\nTurn on/off whether to cap the base of the cone with a polygon.\n"}, {"SetOutputPointsPrecision", PyvtkConeSource_SetOutputPointsPrecision, METH_VARARGS, "V.SetOutputPointsPrecision(int)\nC++: virtual void SetOutputPointsPrecision(int _arg)\n\nSet/get the desired precision for the output points.\nvtkAlgorithm::SINGLE_PRECISION - Output single-precision floating\npoint. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision\nfloating point.\n"}, {"GetOutputPointsPrecision", PyvtkConeSource_GetOutputPointsPrecision, METH_VARARGS, "V.GetOutputPointsPrecision() -> int\nC++: virtual int GetOutputPointsPrecision()\n\nSet/get the desired precision for the output points.\nvtkAlgorithm::SINGLE_PRECISION - Output single-precision floating\npoint. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision\nfloating point.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkConeSource_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkFiltersSourcesPython.vtkConeSource", // 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 PyvtkConeSource_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 *PyvtkConeSource_StaticNew() { return vtkConeSource::New(); } PyObject *PyvtkConeSource_ClassNew() { PyVTKClass_Add( &PyvtkConeSource_Type, PyvtkConeSource_Methods, "vtkConeSource", &PyvtkConeSource_StaticNew); PyTypeObject *pytype = &PyvtkConeSource_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 *)PyvtkPolyDataAlgorithm_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkConeSource( PyObject *dict) { PyObject *o; o = PyvtkConeSource_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkConeSource", o) != 0) { Py_DECREF(o); } }