// python wrapper for vtkVolumeProperty // #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 "vtkTimeStamp.h" #include "vtkVolumeProperty.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkVolumeProperty(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkVolumeProperty_ClassNew(); } #ifndef DECLARED_PyvtkObject_ClassNew extern "C" { PyObject *PyvtkObject_ClassNew(); } #define DECLARED_PyvtkObject_ClassNew #endif static const char *PyvtkVolumeProperty_Doc = "vtkVolumeProperty - represents the common properties for rendering a\nvolume.\n\n" "Superclass: vtkObject\n\n" "vtkVolumeProperty is used to represent common properties associated\n" "with volume rendering. This includes properties for determining the\n" "type of interpolation to use when sampling a volume, the color of a\n" "volume, the scalar opacity of a volume, the gradient opacity of a\n" "volume, and the shading parameters of a volume.\n\n" "Color, scalar opacity and gradient magnitude opacity transfer\n" "functions can be set as either 3 separate 1D functions or as a\n" "single 2D transfer function.\n\n" "- 1D Transfer functions (vtkVolumeProperty::TF_1D) Color, scalar\n" " opacity and gradient magnitude opacity are defined by 1\n" " vtkColorTransferFunction and 2 vtkPiecewiseFunctions respectively.\n" " When the scalar opacity or the gradient opacity of a volume is not\n" " set, then the function is defined to be a constant value of 1.0.\n" " When a scalar and gradient opacity are both set simultaneously,\n" " then the opacity is defined to be the product of the scalar opacity\n" "and gradient opacity transfer functions. 1D transfer functions is the\n" "legacy and default behavior.\n\n" "- 2D Transfer functions (vtkVolumeProperty::TF_2D) Color and\n" " scalar/gradient magnitude opacity are defined by a 4-component\n" " vtkImageData instance mapping scalar value vs. gradient magnitude\n" " on its x and y axis respectively. This mode is only available if a\n" " 2D TF has been explicitly set (see SetTransferFunction2D).\n\n" "Most properties can be set per \"component\" for volume mappers that\n" "support multiple independent components. If you are using 2 component\n" "data as LV or 4 component data as RGBV (as specified in the mapper)\n" "only the first scalar opacity and gradient opacity transfer functions\n" "will be used (and all color functions will be ignored). Omitting the\n" "index parameter on the Set/Get methods will access index = 0.\n\n" "@sa vtkPiecewiseFunction vtkColorTransferFunction\n\n"; static PyTypeObject PyvtkVolumeProperty_TransferMode_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkRenderingCorePython.vtkVolumeProperty.TransferMode", // tp_name sizeof(PyIntObject), // tp_basicsize 0, // tp_itemsize nullptr, // tp_dealloc 0, // tp_print nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare nullptr, // tp_repr nullptr, // tp_as_number nullptr, // tp_as_sequence nullptr, // tp_as_mapping nullptr, // tp_hash nullptr, // tp_call nullptr, // tp_str nullptr, // tp_getattro nullptr, // tp_setattro nullptr, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags nullptr, // 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 &PyInt_Type, // tp_base nullptr, // tp_dict nullptr, // tp_descr_get nullptr, // tp_descr_set 0, // tp_dictoffset nullptr, // tp_init nullptr, // tp_alloc nullptr, // 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 }; PyObject *PyvtkVolumeProperty_TransferMode_FromEnum(int val) { #ifdef VTK_PY3K PyObject *args = Py_BuildValue("(i)", val); PyObject *obj = PyLong_Type.tp_new(&PyvtkVolumeProperty_TransferMode_Type, args, nullptr); Py_DECREF(args); return obj; #else PyIntObject *self = PyObject_New(PyIntObject, &PyvtkVolumeProperty_TransferMode_Type); self->ob_ival = val; return (PyObject *)self; #endif } static PyObject * PyvtkVolumeProperty_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkVolumeProperty::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *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->vtkVolumeProperty::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkVolumeProperty *tempr = vtkVolumeProperty::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkVolumeProperty *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkVolumeProperty::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 * PyvtkVolumeProperty_DeepCopy(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DeepCopy"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkVolumeProperty *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkVolumeProperty")) { if (ap.IsBound()) { op->DeepCopy(temp0); } else { op->vtkVolumeProperty::DeepCopy(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetMTime(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned long tempr = (ap.IsBound() ? op->GetMTime() : op->vtkVolumeProperty::GetMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SetIndependentComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetIndependentComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetIndependentComponents(temp0); } else { op->vtkVolumeProperty::SetIndependentComponents(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetIndependentComponentsMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIndependentComponentsMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIndependentComponentsMinValue() : op->vtkVolumeProperty::GetIndependentComponentsMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetIndependentComponentsMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIndependentComponentsMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIndependentComponentsMaxValue() : op->vtkVolumeProperty::GetIndependentComponentsMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetIndependentComponents(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIndependentComponents"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIndependentComponents() : op->vtkVolumeProperty::GetIndependentComponents()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_IndependentComponentsOn(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IndependentComponentsOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->IndependentComponentsOn(); } else { op->vtkVolumeProperty::IndependentComponentsOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_IndependentComponentsOff(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IndependentComponentsOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->IndependentComponentsOff(); } else { op->vtkVolumeProperty::IndependentComponentsOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetInterpolationType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInterpolationType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetInterpolationType(temp0); } else { op->vtkVolumeProperty::SetInterpolationType(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetInterpolationTypeMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInterpolationTypeMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetInterpolationTypeMinValue() : op->vtkVolumeProperty::GetInterpolationTypeMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetInterpolationTypeMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInterpolationTypeMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetInterpolationTypeMaxValue() : op->vtkVolumeProperty::GetInterpolationTypeMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetInterpolationType(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInterpolationType"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetInterpolationType() : op->vtkVolumeProperty::GetInterpolationType()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SetInterpolationTypeToNearest(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInterpolationTypeToNearest"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetInterpolationTypeToNearest(); } else { op->vtkVolumeProperty::SetInterpolationTypeToNearest(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetInterpolationTypeToLinear(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInterpolationTypeToLinear"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SetInterpolationTypeToLinear(); } else { op->vtkVolumeProperty::SetInterpolationTypeToLinear(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetInterpolationTypeAsString(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInterpolationTypeAsString"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { const char *tempr = (ap.IsBound() ? op->GetInterpolationTypeAsString() : op->vtkVolumeProperty::GetInterpolationTypeAsString()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SetComponentWeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetComponentWeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetComponentWeight(temp0, temp1); } else { op->vtkVolumeProperty::SetComponentWeight(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetComponentWeight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetComponentWeight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetComponentWeight(temp0) : op->vtkVolumeProperty::GetComponentWeight(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SetColor_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; vtkPiecewiseFunction *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetColor(temp0, temp1); } else { op->vtkVolumeProperty::SetColor(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetColor_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkPiecewiseFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetColor(temp0); } else { op->vtkVolumeProperty::SetColor(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetColor_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; vtkColorTransferFunction *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkColorTransferFunction")) { if (ap.IsBound()) { op->SetColor(temp0, temp1); } else { op->vtkVolumeProperty::SetColor(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetColor_s4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetColor"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkColorTransferFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkColorTransferFunction")) { if (ap.IsBound()) { op->SetColor(temp0); } else { op->vtkVolumeProperty::SetColor(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkVolumeProperty_SetColor_Methods[] = { {nullptr, PyvtkVolumeProperty_SetColor_s1, METH_VARARGS, "@iV *vtkPiecewiseFunction"}, {nullptr, PyvtkVolumeProperty_SetColor_s2, METH_VARARGS, "@V *vtkPiecewiseFunction"}, {nullptr, PyvtkVolumeProperty_SetColor_s3, METH_VARARGS, "@iV *vtkColorTransferFunction"}, {nullptr, PyvtkVolumeProperty_SetColor_s4, METH_VARARGS, "@V *vtkColorTransferFunction"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkVolumeProperty_SetColor(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkVolumeProperty_SetColor_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: case 2: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "SetColor"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetColorChannels_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetColorChannels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->GetColorChannels(temp0) : op->vtkVolumeProperty::GetColorChannels(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetColorChannels_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetColorChannels"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetColorChannels() : op->vtkVolumeProperty::GetColorChannels()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetColorChannels(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetColorChannels_s1(self, args); case 0: return PyvtkVolumeProperty_GetColorChannels_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetColorChannels"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunction_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGrayTransferFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetGrayTransferFunction(temp0) : op->vtkVolumeProperty::GetGrayTransferFunction(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunction_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGrayTransferFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetGrayTransferFunction() : op->vtkVolumeProperty::GetGrayTransferFunction()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunction(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetGrayTransferFunction_s1(self, args); case 0: return PyvtkVolumeProperty_GetGrayTransferFunction_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetGrayTransferFunction"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunction_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRGBTransferFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkColorTransferFunction *tempr = (ap.IsBound() ? op->GetRGBTransferFunction(temp0) : op->vtkVolumeProperty::GetRGBTransferFunction(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunction_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRGBTransferFunction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkColorTransferFunction *tempr = (ap.IsBound() ? op->GetRGBTransferFunction() : op->vtkVolumeProperty::GetRGBTransferFunction()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunction(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetRGBTransferFunction_s1(self, args); case 0: return PyvtkVolumeProperty_GetRGBTransferFunction_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetRGBTransferFunction"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetScalarOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; vtkPiecewiseFunction *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetScalarOpacity(temp0, temp1); } else { op->vtkVolumeProperty::SetScalarOpacity(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetScalarOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkPiecewiseFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetScalarOpacity(temp0); } else { op->vtkVolumeProperty::SetScalarOpacity(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetScalarOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetScalarOpacity_s1(self, args); case 1: return PyvtkVolumeProperty_SetScalarOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetScalarOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetScalarOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetScalarOpacity(temp0) : op->vtkVolumeProperty::GetScalarOpacity(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetScalarOpacity() : op->vtkVolumeProperty::GetScalarOpacity()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetScalarOpacity_s1(self, args); case 0: return PyvtkVolumeProperty_GetScalarOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetScalarOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetScalarOpacityUnitDistance_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarOpacityUnitDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetScalarOpacityUnitDistance(temp0, temp1); } else { op->vtkVolumeProperty::SetScalarOpacityUnitDistance(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetScalarOpacityUnitDistance_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetScalarOpacityUnitDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetScalarOpacityUnitDistance(temp0); } else { op->vtkVolumeProperty::SetScalarOpacityUnitDistance(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetScalarOpacityUnitDistance(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetScalarOpacityUnitDistance_s1(self, args); case 1: return PyvtkVolumeProperty_SetScalarOpacityUnitDistance_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetScalarOpacityUnitDistance"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityUnitDistance_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacityUnitDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetScalarOpacityUnitDistance(temp0) : op->vtkVolumeProperty::GetScalarOpacityUnitDistance(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityUnitDistance_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacityUnitDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetScalarOpacityUnitDistance() : op->vtkVolumeProperty::GetScalarOpacityUnitDistance()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityUnitDistance(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetScalarOpacityUnitDistance_s1(self, args); case 0: return PyvtkVolumeProperty_GetScalarOpacityUnitDistance_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetScalarOpacityUnitDistance"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetGradientOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; vtkPiecewiseFunction *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetGradientOpacity(temp0, temp1); } else { op->vtkVolumeProperty::SetGradientOpacity(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetGradientOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkPiecewiseFunction *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPiecewiseFunction")) { if (ap.IsBound()) { op->SetGradientOpacity(temp0); } else { op->vtkVolumeProperty::SetGradientOpacity(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetGradientOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetGradientOpacity_s1(self, args); case 1: return PyvtkVolumeProperty_SetGradientOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetGradientOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetTransferFunction2D_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTransferFunction2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; vtkImageData *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkImageData")) { if (ap.IsBound()) { op->SetTransferFunction2D(temp0, temp1); } else { op->vtkVolumeProperty::SetTransferFunction2D(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetTransferFunction2D_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTransferFunction2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); vtkImageData *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkImageData")) { if (ap.IsBound()) { op->SetTransferFunction2D(temp0); } else { op->vtkVolumeProperty::SetTransferFunction2D(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetTransferFunction2D(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetTransferFunction2D_s1(self, args); case 1: return PyvtkVolumeProperty_SetTransferFunction2D_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetTransferFunction2D"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetTransferFunction2D_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTransferFunction2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkImageData *tempr = (ap.IsBound() ? op->GetTransferFunction2D(temp0) : op->vtkVolumeProperty::GetTransferFunction2D(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetTransferFunction2D_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTransferFunction2D"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkImageData *tempr = (ap.IsBound() ? op->GetTransferFunction2D() : op->vtkVolumeProperty::GetTransferFunction2D()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetTransferFunction2D(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetTransferFunction2D_s1(self, args); case 0: return PyvtkVolumeProperty_GetTransferFunction2D_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetTransferFunction2D"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetTransferFunctionMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTransferFunctionMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTransferFunctionMode(temp0); } else { op->vtkVolumeProperty::SetTransferFunctionMode(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetTransferFunctionModeMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTransferFunctionModeMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetTransferFunctionModeMinValue() : op->vtkVolumeProperty::GetTransferFunctionModeMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetTransferFunctionModeMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTransferFunctionModeMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetTransferFunctionModeMaxValue() : op->vtkVolumeProperty::GetTransferFunctionModeMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetTransferFunctionMode(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTransferFunctionMode"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetTransferFunctionMode() : op->vtkVolumeProperty::GetTransferFunctionMode()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetGradientOpacity(temp0) : op->vtkVolumeProperty::GetGradientOpacity(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetGradientOpacity() : op->vtkVolumeProperty::GetGradientOpacity()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetGradientOpacity_s1(self, args); case 0: return PyvtkVolumeProperty_GetGradientOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetGradientOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetDisableGradientOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDisableGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetDisableGradientOpacity(temp0, temp1); } else { op->vtkVolumeProperty::SetDisableGradientOpacity(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetDisableGradientOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDisableGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDisableGradientOpacity(temp0); } else { op->vtkVolumeProperty::SetDisableGradientOpacity(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetDisableGradientOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetDisableGradientOpacity_s1(self, args); case 1: return PyvtkVolumeProperty_SetDisableGradientOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetDisableGradientOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOn_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DisableGradientOpacityOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->DisableGradientOpacityOn(temp0); } else { op->vtkVolumeProperty::DisableGradientOpacityOn(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOn_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DisableGradientOpacityOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->DisableGradientOpacityOn(); } else { op->vtkVolumeProperty::DisableGradientOpacityOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOn(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_DisableGradientOpacityOn_s1(self, args); case 0: return PyvtkVolumeProperty_DisableGradientOpacityOn_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "DisableGradientOpacityOn"); return nullptr; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOff_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DisableGradientOpacityOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->DisableGradientOpacityOff(temp0); } else { op->vtkVolumeProperty::DisableGradientOpacityOff(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOff_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DisableGradientOpacityOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->DisableGradientOpacityOff(); } else { op->vtkVolumeProperty::DisableGradientOpacityOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_DisableGradientOpacityOff(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_DisableGradientOpacityOff_s1(self, args); case 0: return PyvtkVolumeProperty_DisableGradientOpacityOff_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "DisableGradientOpacityOff"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetDisableGradientOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDisableGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->GetDisableGradientOpacity(temp0) : op->vtkVolumeProperty::GetDisableGradientOpacity(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetDisableGradientOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDisableGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetDisableGradientOpacity() : op->vtkVolumeProperty::GetDisableGradientOpacity()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetDisableGradientOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetDisableGradientOpacity_s1(self, args); case 0: return PyvtkVolumeProperty_GetDisableGradientOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetDisableGradientOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetStoredGradientOpacity_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetStoredGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetStoredGradientOpacity(temp0) : op->vtkVolumeProperty::GetStoredGradientOpacity(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetStoredGradientOpacity_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetStoredGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkPiecewiseFunction *tempr = (ap.IsBound() ? op->GetStoredGradientOpacity() : op->vtkVolumeProperty::GetStoredGradientOpacity()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetStoredGradientOpacity(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetStoredGradientOpacity_s1(self, args); case 0: return PyvtkVolumeProperty_GetStoredGradientOpacity_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetStoredGradientOpacity"); return nullptr; } static PyObject * PyvtkVolumeProperty_HasGradientOpacity(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "HasGradientOpacity"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(0, 1) && (ap.NoArgsLeft() || ap.GetValue(temp0))) { bool tempr = (ap.IsBound() ? op->HasGradientOpacity(temp0) : op->vtkVolumeProperty::HasGradientOpacity(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_SetShade_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetShade"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetShade(temp0, temp1); } else { op->vtkVolumeProperty::SetShade(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetShade_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetShade"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetShade(temp0); } else { op->vtkVolumeProperty::SetShade(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetShade(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetShade_s1(self, args); case 1: return PyvtkVolumeProperty_SetShade_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetShade"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetShade_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetShade"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->GetShade(temp0) : op->vtkVolumeProperty::GetShade(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetShade_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetShade"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetShade() : op->vtkVolumeProperty::GetShade()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetShade(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetShade_s1(self, args); case 0: return PyvtkVolumeProperty_GetShade_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetShade"); return nullptr; } static PyObject * PyvtkVolumeProperty_ShadeOn_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShadeOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ShadeOn(temp0); } else { op->vtkVolumeProperty::ShadeOn(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_ShadeOn_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShadeOn"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ShadeOn(); } else { op->vtkVolumeProperty::ShadeOn(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_ShadeOn(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_ShadeOn_s1(self, args); case 0: return PyvtkVolumeProperty_ShadeOn_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "ShadeOn"); return nullptr; } static PyObject * PyvtkVolumeProperty_ShadeOff_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShadeOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ShadeOff(temp0); } else { op->vtkVolumeProperty::ShadeOff(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_ShadeOff_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ShadeOff"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->ShadeOff(); } else { op->vtkVolumeProperty::ShadeOff(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_ShadeOff(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_ShadeOff_s1(self, args); case 0: return PyvtkVolumeProperty_ShadeOff_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "ShadeOff"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetAmbient_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetAmbient"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetAmbient(temp0, temp1); } else { op->vtkVolumeProperty::SetAmbient(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetAmbient_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetAmbient"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetAmbient(temp0); } else { op->vtkVolumeProperty::SetAmbient(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetAmbient(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetAmbient_s1(self, args); case 1: return PyvtkVolumeProperty_SetAmbient_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetAmbient"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetAmbient_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetAmbient"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetAmbient(temp0) : op->vtkVolumeProperty::GetAmbient(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetAmbient_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetAmbient"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetAmbient() : op->vtkVolumeProperty::GetAmbient()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetAmbient(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetAmbient_s1(self, args); case 0: return PyvtkVolumeProperty_GetAmbient_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetAmbient"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetDiffuse_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDiffuse"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetDiffuse(temp0, temp1); } else { op->vtkVolumeProperty::SetDiffuse(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetDiffuse_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDiffuse"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDiffuse(temp0); } else { op->vtkVolumeProperty::SetDiffuse(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetDiffuse(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetDiffuse_s1(self, args); case 1: return PyvtkVolumeProperty_SetDiffuse_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetDiffuse"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetDiffuse_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDiffuse"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetDiffuse(temp0) : op->vtkVolumeProperty::GetDiffuse(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetDiffuse_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDiffuse"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetDiffuse() : op->vtkVolumeProperty::GetDiffuse()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetDiffuse(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetDiffuse_s1(self, args); case 0: return PyvtkVolumeProperty_GetDiffuse_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetDiffuse"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetSpecular_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSpecular"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetSpecular(temp0, temp1); } else { op->vtkVolumeProperty::SetSpecular(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetSpecular_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSpecular"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSpecular(temp0); } else { op->vtkVolumeProperty::SetSpecular(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetSpecular(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetSpecular_s1(self, args); case 1: return PyvtkVolumeProperty_SetSpecular_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetSpecular"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetSpecular_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSpecular"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetSpecular(temp0) : op->vtkVolumeProperty::GetSpecular(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetSpecular_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSpecular"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetSpecular() : op->vtkVolumeProperty::GetSpecular()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetSpecular(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetSpecular_s1(self, args); case 0: return PyvtkVolumeProperty_GetSpecular_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetSpecular"); return nullptr; } static PyObject * PyvtkVolumeProperty_SetSpecularPower_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSpecularPower"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; double temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->SetSpecularPower(temp0, temp1); } else { op->vtkVolumeProperty::SetSpecularPower(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetSpecularPower_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetSpecularPower"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetSpecularPower(temp0); } else { op->vtkVolumeProperty::SetSpecularPower(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_SetSpecularPower(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkVolumeProperty_SetSpecularPower_s1(self, args); case 1: return PyvtkVolumeProperty_SetSpecularPower_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SetSpecularPower"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetSpecularPower_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSpecularPower"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { double tempr = (ap.IsBound() ? op->GetSpecularPower(temp0) : op->vtkVolumeProperty::GetSpecularPower(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetSpecularPower_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSpecularPower"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetSpecularPower() : op->vtkVolumeProperty::GetSpecularPower()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkVolumeProperty_GetSpecularPower(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetSpecularPower_s1(self, args); case 0: return PyvtkVolumeProperty_GetSpecularPower_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetSpecularPower"); return nullptr; } static PyObject * PyvtkVolumeProperty_UpdateMTimes(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UpdateMTimes"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UpdateMTimes(); } else { op->vtkVolumeProperty::UpdateMTimes(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacityMTime_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGradientOpacityMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetGradientOpacityMTime(temp0) : op->vtkVolumeProperty::GetGradientOpacityMTime(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacityMTime_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGradientOpacityMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetGradientOpacityMTime() : op->vtkVolumeProperty::GetGradientOpacityMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetGradientOpacityMTime(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetGradientOpacityMTime_s1(self, args); case 0: return PyvtkVolumeProperty_GetGradientOpacityMTime_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetGradientOpacityMTime"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityMTime_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacityMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetScalarOpacityMTime(temp0) : op->vtkVolumeProperty::GetScalarOpacityMTime(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityMTime_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetScalarOpacityMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetScalarOpacityMTime() : op->vtkVolumeProperty::GetScalarOpacityMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetScalarOpacityMTime(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetScalarOpacityMTime_s1(self, args); case 0: return PyvtkVolumeProperty_GetScalarOpacityMTime_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetScalarOpacityMTime"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunctionMTime_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRGBTransferFunctionMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetRGBTransferFunctionMTime(temp0) : op->vtkVolumeProperty::GetRGBTransferFunctionMTime(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunctionMTime_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRGBTransferFunctionMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetRGBTransferFunctionMTime() : op->vtkVolumeProperty::GetRGBTransferFunctionMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetRGBTransferFunctionMTime(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetRGBTransferFunctionMTime_s1(self, args); case 0: return PyvtkVolumeProperty_GetRGBTransferFunctionMTime_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetRGBTransferFunctionMTime"); return nullptr; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunctionMTime_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGrayTransferFunctionMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetGrayTransferFunctionMTime(temp0) : op->vtkVolumeProperty::GetGrayTransferFunctionMTime(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunctionMTime_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetGrayTransferFunctionMTime"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkVolumeProperty *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTimeStamp tempr = (ap.IsBound() ? op->GetGrayTransferFunctionMTime() : op->vtkVolumeProperty::GetGrayTransferFunctionMTime()); if (!ap.ErrorOccurred()) { result = ap.BuildSpecialObject(&tempr, "vtkTimeStamp"); } } return result; } static PyObject * PyvtkVolumeProperty_GetGrayTransferFunctionMTime(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkVolumeProperty_GetGrayTransferFunctionMTime_s1(self, args); case 0: return PyvtkVolumeProperty_GetGrayTransferFunctionMTime_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetGrayTransferFunctionMTime"); return nullptr; } static PyMethodDef PyvtkVolumeProperty_Methods[] = { {"IsTypeOf", PyvtkVolumeProperty_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", PyvtkVolumeProperty_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", PyvtkVolumeProperty_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkVolumeProperty\nC++: static vtkVolumeProperty *SafeDownCast(vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkVolumeProperty_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkVolumeProperty\nC++: vtkVolumeProperty *NewInstance()\n\n"}, {"DeepCopy", PyvtkVolumeProperty_DeepCopy, METH_VARARGS, "V.DeepCopy(vtkVolumeProperty)\nC++: void DeepCopy(vtkVolumeProperty *p)\n\n"}, {"GetMTime", PyvtkVolumeProperty_GetMTime, METH_VARARGS, "V.GetMTime() -> int\nC++: vtkMTimeType GetMTime() override;\n\nGet the modified time for this object (or the properties\nregistered with this object).\n"}, {"SetIndependentComponents", PyvtkVolumeProperty_SetIndependentComponents, METH_VARARGS, "V.SetIndependentComponents(int)\nC++: virtual void SetIndependentComponents(int _arg)\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"GetIndependentComponentsMinValue", PyvtkVolumeProperty_GetIndependentComponentsMinValue, METH_VARARGS, "V.GetIndependentComponentsMinValue() -> int\nC++: virtual int GetIndependentComponentsMinValue()\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"GetIndependentComponentsMaxValue", PyvtkVolumeProperty_GetIndependentComponentsMaxValue, METH_VARARGS, "V.GetIndependentComponentsMaxValue() -> int\nC++: virtual int GetIndependentComponentsMaxValue()\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"GetIndependentComponents", PyvtkVolumeProperty_GetIndependentComponents, METH_VARARGS, "V.GetIndependentComponents() -> int\nC++: virtual int GetIndependentComponents()\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"IndependentComponentsOn", PyvtkVolumeProperty_IndependentComponentsOn, METH_VARARGS, "V.IndependentComponentsOn()\nC++: virtual void IndependentComponentsOn()\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"IndependentComponentsOff", PyvtkVolumeProperty_IndependentComponentsOff, METH_VARARGS, "V.IndependentComponentsOff()\nC++: virtual void IndependentComponentsOff()\n\nDoes the data have independent components, or do some define\ncolor only? If IndependentComponents is On (the default) then\neach component will be independently passed through a lookup\ntable to determine RGBA, shaded. Some volume Mappers can handle 1\nto 4 component unsigned char or unsigned short data (see each\nmapper header file to determine functionality). If\nIndependentComponents is Off, then you must have either 2 or 4\ncomponent data. For 2 component data, the first is passed through\nthe first color transfer function and the second component is\npassed through the first scalar opacity (and gradient opacity)\ntransfer function. Normals will be generated off of the second\ncomponent. When using gradient based opacity modulation, the\ngradients are computed off of the second component. For 4\ncomponent data, the first three will directly represent RGB (no\nlookup table). The fourth component will be passed through the\nfirst scalar opacity transfer function for opacity and first\ngradient opacity transfer function for gradient based opacity\nmodulation. Normals will be generated from the fourth component.\nWhen using gradient based opacity modulation, the gradients are\ncomputed off of the fourth component.\n"}, {"SetInterpolationType", PyvtkVolumeProperty_SetInterpolationType, METH_VARARGS, "V.SetInterpolationType(int)\nC++: virtual void SetInterpolationType(int _arg)\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"GetInterpolationTypeMinValue", PyvtkVolumeProperty_GetInterpolationTypeMinValue, METH_VARARGS, "V.GetInterpolationTypeMinValue() -> int\nC++: virtual int GetInterpolationTypeMinValue()\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"GetInterpolationTypeMaxValue", PyvtkVolumeProperty_GetInterpolationTypeMaxValue, METH_VARARGS, "V.GetInterpolationTypeMaxValue() -> int\nC++: virtual int GetInterpolationTypeMaxValue()\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"GetInterpolationType", PyvtkVolumeProperty_GetInterpolationType, METH_VARARGS, "V.GetInterpolationType() -> int\nC++: virtual int GetInterpolationType()\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"SetInterpolationTypeToNearest", PyvtkVolumeProperty_SetInterpolationTypeToNearest, METH_VARARGS, "V.SetInterpolationTypeToNearest()\nC++: void SetInterpolationTypeToNearest()\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"SetInterpolationTypeToLinear", PyvtkVolumeProperty_SetInterpolationTypeToLinear, METH_VARARGS, "V.SetInterpolationTypeToLinear()\nC++: void SetInterpolationTypeToLinear()\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"GetInterpolationTypeAsString", PyvtkVolumeProperty_GetInterpolationTypeAsString, METH_VARARGS, "V.GetInterpolationTypeAsString() -> string\nC++: const char *GetInterpolationTypeAsString(void)\n\nSet the interpolation type for sampling a volume. Initial value\nis VTK_NEAREST_INTERPOLATION.\n"}, {"SetComponentWeight", PyvtkVolumeProperty_SetComponentWeight, METH_VARARGS, "V.SetComponentWeight(int, float)\nC++: virtual void SetComponentWeight(int index, double value)\n\nSet/Get the scalar component weights. Clamped between the range\nof (0.0, 1.0)\n"}, {"GetComponentWeight", PyvtkVolumeProperty_GetComponentWeight, METH_VARARGS, "V.GetComponentWeight(int) -> float\nC++: virtual double GetComponentWeight(int index)\n\nSet/Get the scalar component weights. Clamped between the range\nof (0.0, 1.0)\n"}, {"SetColor", PyvtkVolumeProperty_SetColor, METH_VARARGS, "V.SetColor(int, vtkPiecewiseFunction)\nC++: void SetColor(int index, vtkPiecewiseFunction *function)\nV.SetColor(vtkPiecewiseFunction)\nC++: void SetColor(vtkPiecewiseFunction *function)\nV.SetColor(int, vtkColorTransferFunction)\nC++: void SetColor(int index, vtkColorTransferFunction *function)\nV.SetColor(vtkColorTransferFunction)\nC++: void SetColor(vtkColorTransferFunction *function)\n\nSet the color of a volume to a gray level transfer function for\nthe component indicated by index. This will set the color\nchannels for this component to 1.\n"}, {"GetColorChannels", PyvtkVolumeProperty_GetColorChannels, METH_VARARGS, "V.GetColorChannels(int) -> int\nC++: int GetColorChannels(int index)\nV.GetColorChannels() -> int\nC++: int GetColorChannels()\n\nGet the number of color channels in the transfer function for the\ngiven component.\n"}, {"GetGrayTransferFunction", PyvtkVolumeProperty_GetGrayTransferFunction, METH_VARARGS, "V.GetGrayTransferFunction(int) -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetGrayTransferFunction(int index)\nV.GetGrayTransferFunction() -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetGrayTransferFunction()\n\nGet the gray transfer function. If no transfer function has been\nset for this component, a default one is created and returned.\n"}, {"GetRGBTransferFunction", PyvtkVolumeProperty_GetRGBTransferFunction, METH_VARARGS, "V.GetRGBTransferFunction(int) -> vtkColorTransferFunction\nC++: vtkColorTransferFunction *GetRGBTransferFunction(int index)\nV.GetRGBTransferFunction() -> vtkColorTransferFunction\nC++: vtkColorTransferFunction *GetRGBTransferFunction()\n\nGet the RGB transfer function for the given component. If no\ntransfer function has been set for this component, a default one\nis created and returned.\n"}, {"SetScalarOpacity", PyvtkVolumeProperty_SetScalarOpacity, METH_VARARGS, "V.SetScalarOpacity(int, vtkPiecewiseFunction)\nC++: void SetScalarOpacity(int index,\n vtkPiecewiseFunction *function)\nV.SetScalarOpacity(vtkPiecewiseFunction)\nC++: void SetScalarOpacity(vtkPiecewiseFunction *function)\n\nSet the opacity of a volume to an opacity transfer function based\non scalar value for the component indicated by index.\n"}, {"GetScalarOpacity", PyvtkVolumeProperty_GetScalarOpacity, METH_VARARGS, "V.GetScalarOpacity(int) -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetScalarOpacity(int index)\nV.GetScalarOpacity() -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetScalarOpacity()\n\nGet the scalar opacity transfer function for the given component.\nIf no transfer function has been set for this component, a\ndefault one is created and returned.\n"}, {"SetScalarOpacityUnitDistance", PyvtkVolumeProperty_SetScalarOpacityUnitDistance, METH_VARARGS, "V.SetScalarOpacityUnitDistance(int, float)\nC++: void SetScalarOpacityUnitDistance(int index, double distance)\nV.SetScalarOpacityUnitDistance(float)\nC++: void SetScalarOpacityUnitDistance(double distance)\n\nSet/Get the unit distance on which the scalar opacity transfer\nfunction is defined. By default this is 1.0, meaning that over a\ndistance of 1.0 units, a given opacity (from the transfer\nfunction) is accumulated. This is adjusted for the actual\nsampling distance during rendering.\n"}, {"GetScalarOpacityUnitDistance", PyvtkVolumeProperty_GetScalarOpacityUnitDistance, METH_VARARGS, "V.GetScalarOpacityUnitDistance(int) -> float\nC++: double GetScalarOpacityUnitDistance(int index)\nV.GetScalarOpacityUnitDistance() -> float\nC++: double GetScalarOpacityUnitDistance()\n\nSet/Get the unit distance on which the scalar opacity transfer\nfunction is defined. By default this is 1.0, meaning that over a\ndistance of 1.0 units, a given opacity (from the transfer\nfunction) is accumulated. This is adjusted for the actual\nsampling distance during rendering.\n"}, {"SetGradientOpacity", PyvtkVolumeProperty_SetGradientOpacity, METH_VARARGS, "V.SetGradientOpacity(int, vtkPiecewiseFunction)\nC++: void SetGradientOpacity(int index,\n vtkPiecewiseFunction *function)\nV.SetGradientOpacity(vtkPiecewiseFunction)\nC++: void SetGradientOpacity(vtkPiecewiseFunction *function)\n\nSet the opacity of a volume to an opacity transfer function based\non gradient magnitude for the given component.\n"}, {"SetTransferFunction2D", PyvtkVolumeProperty_SetTransferFunction2D, METH_VARARGS, "V.SetTransferFunction2D(int, vtkImageData)\nC++: void SetTransferFunction2D(int index, vtkImageData *function)\nV.SetTransferFunction2D(vtkImageData)\nC++: void SetTransferFunction2D(vtkImageData *function)\n\nSet/Get a 2D transfer function. Volume mappers interpret the\nx-axis of of this transfer function as scalar value and the\ny-axis as gradient magnitude. The value at (X, Y) corresponds to\nthe color and opacity for a salar value of X and a gradient\nmagnitude of Y.\n"}, {"GetTransferFunction2D", PyvtkVolumeProperty_GetTransferFunction2D, METH_VARARGS, "V.GetTransferFunction2D(int) -> vtkImageData\nC++: vtkImageData *GetTransferFunction2D(int index)\nV.GetTransferFunction2D() -> vtkImageData\nC++: vtkImageData *GetTransferFunction2D()\n\nSet/Get a 2D transfer function. Volume mappers interpret the\nx-axis of of this transfer function as scalar value and the\ny-axis as gradient magnitude. The value at (X, Y) corresponds to\nthe color and opacity for a salar value of X and a gradient\nmagnitude of Y.\n"}, {"SetTransferFunctionMode", PyvtkVolumeProperty_SetTransferFunctionMode, METH_VARARGS, "V.SetTransferFunctionMode(int)\nC++: virtual void SetTransferFunctionMode(int _arg)\n\nColor-opacity transfer function mode. TF_1D is its default value.\n- TF_1D Mappers will use 3 separate 1D functions for color,\n scalar opacity and gradient mag. opacity.\n- TF_2D Mappers will use a single 2D function for color and\n scalar/gradient mag. opacity.\n"}, {"GetTransferFunctionModeMinValue", PyvtkVolumeProperty_GetTransferFunctionModeMinValue, METH_VARARGS, "V.GetTransferFunctionModeMinValue() -> int\nC++: virtual int GetTransferFunctionModeMinValue()\n\nColor-opacity transfer function mode. TF_1D is its default value.\n- TF_1D Mappers will use 3 separate 1D functions for color,\n scalar opacity and gradient mag. opacity.\n- TF_2D Mappers will use a single 2D function for color and\n scalar/gradient mag. opacity.\n"}, {"GetTransferFunctionModeMaxValue", PyvtkVolumeProperty_GetTransferFunctionModeMaxValue, METH_VARARGS, "V.GetTransferFunctionModeMaxValue() -> int\nC++: virtual int GetTransferFunctionModeMaxValue()\n\nColor-opacity transfer function mode. TF_1D is its default value.\n- TF_1D Mappers will use 3 separate 1D functions for color,\n scalar opacity and gradient mag. opacity.\n- TF_2D Mappers will use a single 2D function for color and\n scalar/gradient mag. opacity.\n"}, {"GetTransferFunctionMode", PyvtkVolumeProperty_GetTransferFunctionMode, METH_VARARGS, "V.GetTransferFunctionMode() -> int\nC++: virtual int GetTransferFunctionMode()\n\nColor-opacity transfer function mode. TF_1D is its default value.\n- TF_1D Mappers will use 3 separate 1D functions for color,\n scalar opacity and gradient mag. opacity.\n- TF_2D Mappers will use a single 2D function for color and\n scalar/gradient mag. opacity.\n"}, {"GetGradientOpacity", PyvtkVolumeProperty_GetGradientOpacity, METH_VARARGS, "V.GetGradientOpacity(int) -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetGradientOpacity(int index)\nV.GetGradientOpacity() -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetGradientOpacity()\n\nGet the gradient magnitude opacity transfer function for the\ngiven component. If no transfer function has been set for this\ncomponent, a default one is created and returned. This default\nfunction is always returned if DisableGradientOpacity is On for\nthat component.\n"}, {"SetDisableGradientOpacity", PyvtkVolumeProperty_SetDisableGradientOpacity, METH_VARARGS, "V.SetDisableGradientOpacity(int, int)\nC++: virtual void SetDisableGradientOpacity(int index, int value)\nV.SetDisableGradientOpacity(int)\nC++: virtual void SetDisableGradientOpacity(int value)\n\nEnable/Disable the gradient opacity function for the given\ncomponent. If set to true, any call to GetGradientOpacity() will\nreturn a default function for this component. Note that the\ngradient opacity function is still stored, it is not set or reset\nand can be retrieved using GetStoredGradientOpacity().\n"}, {"DisableGradientOpacityOn", PyvtkVolumeProperty_DisableGradientOpacityOn, METH_VARARGS, "V.DisableGradientOpacityOn(int)\nC++: virtual void DisableGradientOpacityOn(int index)\nV.DisableGradientOpacityOn()\nC++: virtual void DisableGradientOpacityOn()\n\nEnable/Disable the gradient opacity function for the given\ncomponent. If set to true, any call to GetGradientOpacity() will\nreturn a default function for this component. Note that the\ngradient opacity function is still stored, it is not set or reset\nand can be retrieved using GetStoredGradientOpacity().\n"}, {"DisableGradientOpacityOff", PyvtkVolumeProperty_DisableGradientOpacityOff, METH_VARARGS, "V.DisableGradientOpacityOff(int)\nC++: virtual void DisableGradientOpacityOff(int index)\nV.DisableGradientOpacityOff()\nC++: virtual void DisableGradientOpacityOff()\n\nEnable/Disable the gradient opacity function for the given\ncomponent. If set to true, any call to GetGradientOpacity() will\nreturn a default function for this component. Note that the\ngradient opacity function is still stored, it is not set or reset\nand can be retrieved using GetStoredGradientOpacity().\n"}, {"GetDisableGradientOpacity", PyvtkVolumeProperty_GetDisableGradientOpacity, METH_VARARGS, "V.GetDisableGradientOpacity(int) -> int\nC++: virtual int GetDisableGradientOpacity(int index)\nV.GetDisableGradientOpacity() -> int\nC++: virtual int GetDisableGradientOpacity()\n\nEnable/Disable the gradient opacity function for the given\ncomponent. If set to true, any call to GetGradientOpacity() will\nreturn a default function for this component. Note that the\ngradient opacity function is still stored, it is not set or reset\nand can be retrieved using GetStoredGradientOpacity().\n"}, {"GetStoredGradientOpacity", PyvtkVolumeProperty_GetStoredGradientOpacity, METH_VARARGS, "V.GetStoredGradientOpacity(int) -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetStoredGradientOpacity(int index)\nV.GetStoredGradientOpacity() -> vtkPiecewiseFunction\nC++: vtkPiecewiseFunction *GetStoredGradientOpacity()\n\nEnable/Disable the gradient opacity function for the given\ncomponent. If set to true, any call to GetGradientOpacity() will\nreturn a default function for this component. Note that the\ngradient opacity function is still stored, it is not set or reset\nand can be retrieved using GetStoredGradientOpacity().\n"}, {"HasGradientOpacity", PyvtkVolumeProperty_HasGradientOpacity, METH_VARARGS, "V.HasGradientOpacity(int) -> bool\nC++: bool HasGradientOpacity(int index=0)\n\nCheck whether or not we have the gradient opacity. Checking\ngradient opacity via GetDisableGradientOpacity or\nGetGradientOpacity will not work as in the former case, \nGetDisableGradientOpacity returns false by default and in the\nlater case, a default gradient opacity will be created.\n"}, {"SetShade", PyvtkVolumeProperty_SetShade, METH_VARARGS, "V.SetShade(int, int)\nC++: void SetShade(int index, int value)\nV.SetShade(int)\nC++: void SetShade(int value)\n\nSet/Get the shading of a volume. If shading is turned off, then\nthe mapper for the volume will not perform shading calculations.\nIf shading is turned on, the mapper may perform shading\ncalculations - in some cases shading does not apply (for example,\nin a maximum intensity projection) and therefore shading will not\nbe performed even if this flag is on. For a compositing type of\nmapper, turning shading off is generally the same as setting\nambient=1, diffuse=0, specular=0. Shading can be independently\nturned on/off per component.\n\note Shading is only supported for\nvtkVolumeMapper::COMPOSITE_BLEND. For minimum and maximum\nintensity blend modes, there is not necessarily one unique\nlocation along the ray through the volume where that minimum or\nmaximum occurs. For average and additive blend modes, the value\nbeing visualized does not represent a location in the volume but\nrather a statistical measurement along the ray traversing through\nthe volume, and hence shading is not applicable.\n\\sa vtkVolumeMapper::BlendModes\n"}, {"GetShade", PyvtkVolumeProperty_GetShade, METH_VARARGS, "V.GetShade(int) -> int\nC++: int GetShade(int index)\nV.GetShade() -> int\nC++: int GetShade()\n\nSet/Get the shading of a volume. If shading is turned off, then\nthe mapper for the volume will not perform shading calculations.\nIf shading is turned on, the mapper may perform shading\ncalculations - in some cases shading does not apply (for example,\nin a maximum intensity projection) and therefore shading will not\nbe performed even if this flag is on. For a compositing type of\nmapper, turning shading off is generally the same as setting\nambient=1, diffuse=0, specular=0. Shading can be independently\nturned on/off per component.\n\note Shading is only supported for\nvtkVolumeMapper::COMPOSITE_BLEND. For minimum and maximum\nintensity blend modes, there is not necessarily one unique\nlocation along the ray through the volume where that minimum or\nmaximum occurs. For average and additive blend modes, the value\nbeing visualized does not represent a location in the volume but\nrather a statistical measurement along the ray traversing through\nthe volume, and hence shading is not applicable.\n\\sa vtkVolumeMapper::BlendModes\n"}, {"ShadeOn", PyvtkVolumeProperty_ShadeOn, METH_VARARGS, "V.ShadeOn(int)\nC++: void ShadeOn(int index)\nV.ShadeOn()\nC++: void ShadeOn()\n\nSet/Get the shading of a volume. If shading is turned off, then\nthe mapper for the volume will not perform shading calculations.\nIf shading is turned on, the mapper may perform shading\ncalculations - in some cases shading does not apply (for example,\nin a maximum intensity projection) and therefore shading will not\nbe performed even if this flag is on. For a compositing type of\nmapper, turning shading off is generally the same as setting\nambient=1, diffuse=0, specular=0. Shading can be independently\nturned on/off per component.\n\note Shading is only supported for\nvtkVolumeMapper::COMPOSITE_BLEND. For minimum and maximum\nintensity blend modes, there is not necessarily one unique\nlocation along the ray through the volume where that minimum or\nmaximum occurs. For average and additive blend modes, the value\nbeing visualized does not represent a location in the volume but\nrather a statistical measurement along the ray traversing through\nthe volume, and hence shading is not applicable.\n\\sa vtkVolumeMapper::BlendModes\n"}, {"ShadeOff", PyvtkVolumeProperty_ShadeOff, METH_VARARGS, "V.ShadeOff(int)\nC++: void ShadeOff(int index)\nV.ShadeOff()\nC++: void ShadeOff()\n\nSet/Get the shading of a volume. If shading is turned off, then\nthe mapper for the volume will not perform shading calculations.\nIf shading is turned on, the mapper may perform shading\ncalculations - in some cases shading does not apply (for example,\nin a maximum intensity projection) and therefore shading will not\nbe performed even if this flag is on. For a compositing type of\nmapper, turning shading off is generally the same as setting\nambient=1, diffuse=0, specular=0. Shading can be independently\nturned on/off per component.\n\note Shading is only supported for\nvtkVolumeMapper::COMPOSITE_BLEND. For minimum and maximum\nintensity blend modes, there is not necessarily one unique\nlocation along the ray through the volume where that minimum or\nmaximum occurs. For average and additive blend modes, the value\nbeing visualized does not represent a location in the volume but\nrather a statistical measurement along the ray traversing through\nthe volume, and hence shading is not applicable.\n\\sa vtkVolumeMapper::BlendModes\n"}, {"SetAmbient", PyvtkVolumeProperty_SetAmbient, METH_VARARGS, "V.SetAmbient(int, float)\nC++: void SetAmbient(int index, double value)\nV.SetAmbient(float)\nC++: void SetAmbient(double value)\n\nSet/Get the ambient lighting coefficient.\n"}, {"GetAmbient", PyvtkVolumeProperty_GetAmbient, METH_VARARGS, "V.GetAmbient(int) -> float\nC++: double GetAmbient(int index)\nV.GetAmbient() -> float\nC++: double GetAmbient()\n\nSet/Get the ambient lighting coefficient.\n"}, {"SetDiffuse", PyvtkVolumeProperty_SetDiffuse, METH_VARARGS, "V.SetDiffuse(int, float)\nC++: void SetDiffuse(int index, double value)\nV.SetDiffuse(float)\nC++: void SetDiffuse(double value)\n\nSet/Get the diffuse lighting coefficient.\n"}, {"GetDiffuse", PyvtkVolumeProperty_GetDiffuse, METH_VARARGS, "V.GetDiffuse(int) -> float\nC++: double GetDiffuse(int index)\nV.GetDiffuse() -> float\nC++: double GetDiffuse()\n\nSet/Get the diffuse lighting coefficient.\n"}, {"SetSpecular", PyvtkVolumeProperty_SetSpecular, METH_VARARGS, "V.SetSpecular(int, float)\nC++: void SetSpecular(int index, double value)\nV.SetSpecular(float)\nC++: void SetSpecular(double value)\n\nSet/Get the specular lighting coefficient.\n"}, {"GetSpecular", PyvtkVolumeProperty_GetSpecular, METH_VARARGS, "V.GetSpecular(int) -> float\nC++: double GetSpecular(int index)\nV.GetSpecular() -> float\nC++: double GetSpecular()\n\nSet/Get the specular lighting coefficient.\n"}, {"SetSpecularPower", PyvtkVolumeProperty_SetSpecularPower, METH_VARARGS, "V.SetSpecularPower(int, float)\nC++: void SetSpecularPower(int index, double value)\nV.SetSpecularPower(float)\nC++: void SetSpecularPower(double value)\n\nSet/Get the specular power.\n"}, {"GetSpecularPower", PyvtkVolumeProperty_GetSpecularPower, METH_VARARGS, "V.GetSpecularPower(int) -> float\nC++: double GetSpecularPower(int index)\nV.GetSpecularPower() -> float\nC++: double GetSpecularPower()\n\nSet/Get the specular power.\n"}, {"UpdateMTimes", PyvtkVolumeProperty_UpdateMTimes, METH_VARARGS, "V.UpdateMTimes()\nC++: void UpdateMTimes()\n\nWARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE\nUpdateMTimes performs a Modified() on all TimeStamps. This is\nused by vtkVolume when the property is set, so that any other\nobject that might have been caching information for the property\nwill rebuild.\n"}, {"GetGradientOpacityMTime", PyvtkVolumeProperty_GetGradientOpacityMTime, METH_VARARGS, "V.GetGradientOpacityMTime(int) -> vtkTimeStamp\nC++: vtkTimeStamp GetGradientOpacityMTime(int index)\nV.GetGradientOpacityMTime() -> vtkTimeStamp\nC++: vtkTimeStamp GetGradientOpacityMTime()\n\nWARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the\ntime that the gradient opacity transfer function was set\n"}, {"GetScalarOpacityMTime", PyvtkVolumeProperty_GetScalarOpacityMTime, METH_VARARGS, "V.GetScalarOpacityMTime(int) -> vtkTimeStamp\nC++: vtkTimeStamp GetScalarOpacityMTime(int index)\nV.GetScalarOpacityMTime() -> vtkTimeStamp\nC++: vtkTimeStamp GetScalarOpacityMTime()\n\nWARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the\ntime that the scalar opacity transfer function was set.\n"}, {"GetRGBTransferFunctionMTime", PyvtkVolumeProperty_GetRGBTransferFunctionMTime, METH_VARARGS, "V.GetRGBTransferFunctionMTime(int) -> vtkTimeStamp\nC++: vtkTimeStamp GetRGBTransferFunctionMTime(int index)\nV.GetRGBTransferFunctionMTime() -> vtkTimeStamp\nC++: vtkTimeStamp GetRGBTransferFunctionMTime()\n\nWARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the\ntime that the RGBTransferFunction was set\n"}, {"GetGrayTransferFunctionMTime", PyvtkVolumeProperty_GetGrayTransferFunctionMTime, METH_VARARGS, "V.GetGrayTransferFunctionMTime(int) -> vtkTimeStamp\nC++: vtkTimeStamp GetGrayTransferFunctionMTime(int index)\nV.GetGrayTransferFunctionMTime() -> vtkTimeStamp\nC++: vtkTimeStamp GetGrayTransferFunctionMTime()\n\nWARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Get the\ntime that the GrayTransferFunction was set\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkVolumeProperty_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkRenderingCorePython.vtkVolumeProperty", // 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 PyvtkVolumeProperty_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 *PyvtkVolumeProperty_StaticNew() { return vtkVolumeProperty::New(); } PyObject *PyvtkVolumeProperty_ClassNew() { PyVTKClass_Add( &PyvtkVolumeProperty_Type, PyvtkVolumeProperty_Methods, "vtkVolumeProperty", &PyvtkVolumeProperty_StaticNew); PyTypeObject *pytype = &PyvtkVolumeProperty_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 *)PyvtkObject_ClassNew(); PyObject *d = pytype->tp_dict; PyObject *o; PyType_Ready(&PyvtkVolumeProperty_TransferMode_Type); PyvtkVolumeProperty_TransferMode_Type.tp_new = nullptr; vtkPythonUtil::AddEnumToMap(&PyvtkVolumeProperty_TransferMode_Type); o = (PyObject *)&PyvtkVolumeProperty_TransferMode_Type; if (PyDict_SetItemString(d, "TransferMode", o) != 0) { Py_DECREF(o); } for (int c = 0; c < 2; c++) { typedef vtkVolumeProperty::TransferMode cxx_enum_type; static const struct { const char *name; cxx_enum_type value; } constants[2] = { { "TF_1D", vtkVolumeProperty::TF_1D }, { "TF_2D", vtkVolumeProperty::TF_2D }, }; o = PyvtkVolumeProperty_TransferMode_FromEnum(constants[c].value); if (o) { PyDict_SetItemString(d, constants[c].name, o); Py_DECREF(o); } } PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkVolumeProperty( PyObject *dict) { PyObject *o; o = PyvtkVolumeProperty_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkVolumeProperty", o) != 0) { Py_DECREF(o); } }