// python wrapper for vtkCommunity2DLayoutStrategy // #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 "vtkCommunity2DLayoutStrategy.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkCommunity2DLayoutStrategy(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkCommunity2DLayoutStrategy_ClassNew(); } #ifndef DECLARED_PyvtkGraphLayoutStrategy_ClassNew extern "C" { PyObject *PyvtkGraphLayoutStrategy_ClassNew(); } #define DECLARED_PyvtkGraphLayoutStrategy_ClassNew #endif static const char *PyvtkCommunity2DLayoutStrategy_Doc = "vtkCommunity2DLayoutStrategy - a simple fast 2D graph layout that\nlooks for a community array on it's input and strengthens edges\nwithin a community and weakens edges not within the community.\n\n" "Superclass: vtkGraphLayoutStrategy\n\n" "This class is a density grid based force directed layout strategy.\n" "Also please note that 'fast' is relative to quite slow. :) The layout\n" "running time is O(V+E) with an extremely high constant.@par Thanks:\n" "Thanks to Godzilla for not eating my computer so that this class\n" "could be written.\n\n"; static PyObject * PyvtkCommunity2DLayoutStrategy_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkCommunity2DLayoutStrategy::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *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->vtkCommunity2DLayoutStrategy::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkCommunity2DLayoutStrategy *tempr = vtkCommunity2DLayoutStrategy::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCommunity2DLayoutStrategy *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkCommunity2DLayoutStrategy::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 * PyvtkCommunity2DLayoutStrategy_SetRandomSeed(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRandomSeed"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetRandomSeed(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetRandomSeed(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetRandomSeedMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeedMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeedMinValue() : op->vtkCommunity2DLayoutStrategy::GetRandomSeedMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetRandomSeedMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeedMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeedMaxValue() : op->vtkCommunity2DLayoutStrategy::GetRandomSeedMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetRandomSeed(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRandomSeed"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetRandomSeed() : op->vtkCommunity2DLayoutStrategy::GetRandomSeed()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetMaxNumberOfIterations(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetMaxNumberOfIterations"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetMaxNumberOfIterations(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetMaxNumberOfIterations(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterationsMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaxNumberOfIterationsMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetMaxNumberOfIterationsMinValue() : op->vtkCommunity2DLayoutStrategy::GetMaxNumberOfIterationsMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterationsMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaxNumberOfIterationsMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetMaxNumberOfIterationsMaxValue() : op->vtkCommunity2DLayoutStrategy::GetMaxNumberOfIterationsMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterations(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaxNumberOfIterations"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetMaxNumberOfIterations() : op->vtkCommunity2DLayoutStrategy::GetMaxNumberOfIterations()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetIterationsPerLayout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetIterationsPerLayout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetIterationsPerLayout(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetIterationsPerLayout(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayoutMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIterationsPerLayoutMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIterationsPerLayoutMinValue() : op->vtkCommunity2DLayoutStrategy::GetIterationsPerLayoutMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayoutMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIterationsPerLayoutMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIterationsPerLayoutMaxValue() : op->vtkCommunity2DLayoutStrategy::GetIterationsPerLayoutMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetIterationsPerLayout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->GetIterationsPerLayout() : op->vtkCommunity2DLayoutStrategy::GetIterationsPerLayout()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetInitialTemperature(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetInitialTemperature"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetInitialTemperature(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetInitialTemperature(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetInitialTemperatureMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInitialTemperatureMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetInitialTemperatureMinValue() : op->vtkCommunity2DLayoutStrategy::GetInitialTemperatureMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetInitialTemperatureMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInitialTemperatureMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetInitialTemperatureMaxValue() : op->vtkCommunity2DLayoutStrategy::GetInitialTemperatureMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetInitialTemperature(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetInitialTemperature"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetInitialTemperature() : op->vtkCommunity2DLayoutStrategy::GetInitialTemperature()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetCoolDownRate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCoolDownRate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetCoolDownRate(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetCoolDownRate(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCoolDownRateMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCoolDownRateMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetCoolDownRateMinValue() : op->vtkCommunity2DLayoutStrategy::GetCoolDownRateMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCoolDownRateMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCoolDownRateMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetCoolDownRateMaxValue() : op->vtkCommunity2DLayoutStrategy::GetCoolDownRateMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCoolDownRate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCoolDownRate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetCoolDownRate() : op->vtkCommunity2DLayoutStrategy::GetCoolDownRate()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetRestDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRestDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetRestDistance(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetRestDistance(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetRestDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRestDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetRestDistance() : op->vtkCommunity2DLayoutStrategy::GetRestDistance()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_Initialize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Initialize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Initialize(); } else { op->vtkCommunity2DLayoutStrategy::Initialize(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_Layout(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Layout"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Layout(); } else { op->vtkCommunity2DLayoutStrategy::Layout(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_IsLayoutComplete(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsLayoutComplete"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int tempr = (ap.IsBound() ? op->IsLayoutComplete() : op->vtkCommunity2DLayoutStrategy::IsLayoutComplete()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCommunityArrayName(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCommunityArrayName"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { char *tempr = (ap.IsBound() ? op->GetCommunityArrayName() : op->vtkCommunity2DLayoutStrategy::GetCommunityArrayName()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetCommunityArrayName(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCommunityArrayName"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); char *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetCommunityArrayName(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetCommunityArrayName(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_SetCommunityStrength(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetCommunityStrength"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); float temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetCommunityStrength(temp0); } else { op->vtkCommunity2DLayoutStrategy::SetCommunityStrength(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCommunityStrengthMinValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCommunityStrengthMinValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetCommunityStrengthMinValue() : op->vtkCommunity2DLayoutStrategy::GetCommunityStrengthMinValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCommunityStrengthMaxValue(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCommunityStrengthMaxValue"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetCommunityStrengthMaxValue() : op->vtkCommunity2DLayoutStrategy::GetCommunityStrengthMaxValue()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCommunity2DLayoutStrategy_GetCommunityStrength(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetCommunityStrength"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCommunity2DLayoutStrategy *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { float tempr = (ap.IsBound() ? op->GetCommunityStrength() : op->vtkCommunity2DLayoutStrategy::GetCommunityStrength()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyMethodDef PyvtkCommunity2DLayoutStrategy_Methods[] = { {"IsTypeOf", PyvtkCommunity2DLayoutStrategy_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", PyvtkCommunity2DLayoutStrategy_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", PyvtkCommunity2DLayoutStrategy_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkCommunity2DLayoutStrategy\nC++: static vtkCommunity2DLayoutStrategy *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkCommunity2DLayoutStrategy_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkCommunity2DLayoutStrategy\nC++: vtkCommunity2DLayoutStrategy *NewInstance()\n\n"}, {"SetRandomSeed", PyvtkCommunity2DLayoutStrategy_SetRandomSeed, METH_VARARGS, "V.SetRandomSeed(int)\nC++: virtual void SetRandomSeed(int _arg)\n\nSeed the random number generator used to jitter point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeedMinValue", PyvtkCommunity2DLayoutStrategy_GetRandomSeedMinValue, METH_VARARGS, "V.GetRandomSeedMinValue() -> int\nC++: virtual int GetRandomSeedMinValue()\n\nSeed the random number generator used to jitter point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeedMaxValue", PyvtkCommunity2DLayoutStrategy_GetRandomSeedMaxValue, METH_VARARGS, "V.GetRandomSeedMaxValue() -> int\nC++: virtual int GetRandomSeedMaxValue()\n\nSeed the random number generator used to jitter point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"GetRandomSeed", PyvtkCommunity2DLayoutStrategy_GetRandomSeed, METH_VARARGS, "V.GetRandomSeed() -> int\nC++: virtual int GetRandomSeed()\n\nSeed the random number generator used to jitter point positions.\nThis has a significant effect on their final positions when the\nlayout is complete.\n"}, {"SetMaxNumberOfIterations", PyvtkCommunity2DLayoutStrategy_SetMaxNumberOfIterations, METH_VARARGS, "V.SetMaxNumberOfIterations(int)\nC++: virtual void SetMaxNumberOfIterations(int _arg)\n\nSet/Get the maximum number of iterations to be used. The higher\nthis number, the more iterations through the algorithm is\npossible, and thus, the more the graph gets modified. The default\nis '100' for no particular reason Note: The strong recommendation\nis that you do not change this parameter. :)\n"}, {"GetMaxNumberOfIterationsMinValue", PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterationsMinValue, METH_VARARGS, "V.GetMaxNumberOfIterationsMinValue() -> int\nC++: virtual int GetMaxNumberOfIterationsMinValue()\n\nSet/Get the maximum number of iterations to be used. The higher\nthis number, the more iterations through the algorithm is\npossible, and thus, the more the graph gets modified. The default\nis '100' for no particular reason Note: The strong recommendation\nis that you do not change this parameter. :)\n"}, {"GetMaxNumberOfIterationsMaxValue", PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterationsMaxValue, METH_VARARGS, "V.GetMaxNumberOfIterationsMaxValue() -> int\nC++: virtual int GetMaxNumberOfIterationsMaxValue()\n\nSet/Get the maximum number of iterations to be used. The higher\nthis number, the more iterations through the algorithm is\npossible, and thus, the more the graph gets modified. The default\nis '100' for no particular reason Note: The strong recommendation\nis that you do not change this parameter. :)\n"}, {"GetMaxNumberOfIterations", PyvtkCommunity2DLayoutStrategy_GetMaxNumberOfIterations, METH_VARARGS, "V.GetMaxNumberOfIterations() -> int\nC++: virtual int GetMaxNumberOfIterations()\n\nSet/Get the maximum number of iterations to be used. The higher\nthis number, the more iterations through the algorithm is\npossible, and thus, the more the graph gets modified. The default\nis '100' for no particular reason Note: The strong recommendation\nis that you do not change this parameter. :)\n"}, {"SetIterationsPerLayout", PyvtkCommunity2DLayoutStrategy_SetIterationsPerLayout, METH_VARARGS, "V.SetIterationsPerLayout(int)\nC++: virtual void SetIterationsPerLayout(int _arg)\n\nSet/Get the number of iterations per layout. The only use for\nthis ivar is for the application to do visualizations of the\nlayout before it's complete. The default is '100' to match the\ndefault 'MaxNumberOfIterations' Note: Changing this parameter is\njust fine :)\n"}, {"GetIterationsPerLayoutMinValue", PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayoutMinValue, METH_VARARGS, "V.GetIterationsPerLayoutMinValue() -> int\nC++: virtual int GetIterationsPerLayoutMinValue()\n\nSet/Get the number of iterations per layout. The only use for\nthis ivar is for the application to do visualizations of the\nlayout before it's complete. The default is '100' to match the\ndefault 'MaxNumberOfIterations' Note: Changing this parameter is\njust fine :)\n"}, {"GetIterationsPerLayoutMaxValue", PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayoutMaxValue, METH_VARARGS, "V.GetIterationsPerLayoutMaxValue() -> int\nC++: virtual int GetIterationsPerLayoutMaxValue()\n\nSet/Get the number of iterations per layout. The only use for\nthis ivar is for the application to do visualizations of the\nlayout before it's complete. The default is '100' to match the\ndefault 'MaxNumberOfIterations' Note: Changing this parameter is\njust fine :)\n"}, {"GetIterationsPerLayout", PyvtkCommunity2DLayoutStrategy_GetIterationsPerLayout, METH_VARARGS, "V.GetIterationsPerLayout() -> int\nC++: virtual int GetIterationsPerLayout()\n\nSet/Get the number of iterations per layout. The only use for\nthis ivar is for the application to do visualizations of the\nlayout before it's complete. The default is '100' to match the\ndefault 'MaxNumberOfIterations' Note: Changing this parameter is\njust fine :)\n"}, {"SetInitialTemperature", PyvtkCommunity2DLayoutStrategy_SetInitialTemperature, METH_VARARGS, "V.SetInitialTemperature(float)\nC++: virtual void SetInitialTemperature(float _arg)\n\nSet the initial temperature. The temperature default is '5' for\nno particular reason Note: The strong recommendation is that you\ndo not change this parameter. :)\n"}, {"GetInitialTemperatureMinValue", PyvtkCommunity2DLayoutStrategy_GetInitialTemperatureMinValue, METH_VARARGS, "V.GetInitialTemperatureMinValue() -> float\nC++: virtual float GetInitialTemperatureMinValue()\n\nSet the initial temperature. The temperature default is '5' for\nno particular reason Note: The strong recommendation is that you\ndo not change this parameter. :)\n"}, {"GetInitialTemperatureMaxValue", PyvtkCommunity2DLayoutStrategy_GetInitialTemperatureMaxValue, METH_VARARGS, "V.GetInitialTemperatureMaxValue() -> float\nC++: virtual float GetInitialTemperatureMaxValue()\n\nSet the initial temperature. The temperature default is '5' for\nno particular reason Note: The strong recommendation is that you\ndo not change this parameter. :)\n"}, {"GetInitialTemperature", PyvtkCommunity2DLayoutStrategy_GetInitialTemperature, METH_VARARGS, "V.GetInitialTemperature() -> float\nC++: virtual float GetInitialTemperature()\n\nSet the initial temperature. The temperature default is '5' for\nno particular reason Note: The strong recommendation is that you\ndo not change this parameter. :)\n"}, {"SetCoolDownRate", PyvtkCommunity2DLayoutStrategy_SetCoolDownRate, METH_VARARGS, "V.SetCoolDownRate(float)\nC++: virtual void SetCoolDownRate(double _arg)\n\nSet/Get the Cool-down rate. The higher this number is, the longer\nit will take to \"cool-down\", and thus, the more the graph will be\nmodified. The default is '10' for no particular reason. Note: The\nstrong recommendation is that you do not change this parameter.\n:)\n"}, {"GetCoolDownRateMinValue", PyvtkCommunity2DLayoutStrategy_GetCoolDownRateMinValue, METH_VARARGS, "V.GetCoolDownRateMinValue() -> float\nC++: virtual double GetCoolDownRateMinValue()\n\nSet/Get the Cool-down rate. The higher this number is, the longer\nit will take to \"cool-down\", and thus, the more the graph will be\nmodified. The default is '10' for no particular reason. Note: The\nstrong recommendation is that you do not change this parameter.\n:)\n"}, {"GetCoolDownRateMaxValue", PyvtkCommunity2DLayoutStrategy_GetCoolDownRateMaxValue, METH_VARARGS, "V.GetCoolDownRateMaxValue() -> float\nC++: virtual double GetCoolDownRateMaxValue()\n\nSet/Get the Cool-down rate. The higher this number is, the longer\nit will take to \"cool-down\", and thus, the more the graph will be\nmodified. The default is '10' for no particular reason. Note: The\nstrong recommendation is that you do not change this parameter.\n:)\n"}, {"GetCoolDownRate", PyvtkCommunity2DLayoutStrategy_GetCoolDownRate, METH_VARARGS, "V.GetCoolDownRate() -> float\nC++: virtual double GetCoolDownRate()\n\nSet/Get the Cool-down rate. The higher this number is, the longer\nit will take to \"cool-down\", and thus, the more the graph will be\nmodified. The default is '10' for no particular reason. Note: The\nstrong recommendation is that you do not change this parameter.\n:)\n"}, {"SetRestDistance", PyvtkCommunity2DLayoutStrategy_SetRestDistance, METH_VARARGS, "V.SetRestDistance(float)\nC++: virtual void SetRestDistance(float _arg)\n\nManually set the resting distance. Otherwise the distance is\ncomputed automatically.\n"}, {"GetRestDistance", PyvtkCommunity2DLayoutStrategy_GetRestDistance, METH_VARARGS, "V.GetRestDistance() -> float\nC++: virtual float GetRestDistance()\n\nManually set the resting distance. Otherwise the distance is\ncomputed automatically.\n"}, {"Initialize", PyvtkCommunity2DLayoutStrategy_Initialize, METH_VARARGS, "V.Initialize()\nC++: void Initialize() override;\n\nThis strategy sets up some data structures for faster processing\nof each Layout() call\n"}, {"Layout", PyvtkCommunity2DLayoutStrategy_Layout, METH_VARARGS, "V.Layout()\nC++: void Layout() override;\n\nThis is the layout method where the graph that was set in\nSetGraph() is laid out. The method can either entirely layout the\ngraph or iteratively lay out the graph. If you have an iterative\nlayout please implement the IsLayoutComplete() method.\n"}, {"IsLayoutComplete", PyvtkCommunity2DLayoutStrategy_IsLayoutComplete, METH_VARARGS, "V.IsLayoutComplete() -> int\nC++: int IsLayoutComplete() override;\n\nI'm an iterative layout so this method lets the caller know if\nI'm done laying out the graph\n"}, {"GetCommunityArrayName", PyvtkCommunity2DLayoutStrategy_GetCommunityArrayName, METH_VARARGS, "V.GetCommunityArrayName() -> string\nC++: virtual char *GetCommunityArrayName()\n\nGet/Set the community array name\n"}, {"SetCommunityArrayName", PyvtkCommunity2DLayoutStrategy_SetCommunityArrayName, METH_VARARGS, "V.SetCommunityArrayName(string)\nC++: virtual void SetCommunityArrayName(const char *_arg)\n\nGet/Set the community array name\n"}, {"SetCommunityStrength", PyvtkCommunity2DLayoutStrategy_SetCommunityStrength, METH_VARARGS, "V.SetCommunityStrength(float)\nC++: virtual void SetCommunityStrength(float _arg)\n\nSet the community 'strength'. The default is '1' which means\nvertices in the same community will be placed close together,\nvalues closer to .1 (minimum) will mean a layout closer to\ntraditional force directed.\n"}, {"GetCommunityStrengthMinValue", PyvtkCommunity2DLayoutStrategy_GetCommunityStrengthMinValue, METH_VARARGS, "V.GetCommunityStrengthMinValue() -> float\nC++: virtual float GetCommunityStrengthMinValue()\n\nSet the community 'strength'. The default is '1' which means\nvertices in the same community will be placed close together,\nvalues closer to .1 (minimum) will mean a layout closer to\ntraditional force directed.\n"}, {"GetCommunityStrengthMaxValue", PyvtkCommunity2DLayoutStrategy_GetCommunityStrengthMaxValue, METH_VARARGS, "V.GetCommunityStrengthMaxValue() -> float\nC++: virtual float GetCommunityStrengthMaxValue()\n\nSet the community 'strength'. The default is '1' which means\nvertices in the same community will be placed close together,\nvalues closer to .1 (minimum) will mean a layout closer to\ntraditional force directed.\n"}, {"GetCommunityStrength", PyvtkCommunity2DLayoutStrategy_GetCommunityStrength, METH_VARARGS, "V.GetCommunityStrength() -> float\nC++: virtual float GetCommunityStrength()\n\nSet the community 'strength'. The default is '1' which means\nvertices in the same community will be placed close together,\nvalues closer to .1 (minimum) will mean a layout closer to\ntraditional force directed.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkCommunity2DLayoutStrategy_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkInfovisLayoutPython.vtkCommunity2DLayoutStrategy", // 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 PyvtkCommunity2DLayoutStrategy_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 *PyvtkCommunity2DLayoutStrategy_StaticNew() { return vtkCommunity2DLayoutStrategy::New(); } PyObject *PyvtkCommunity2DLayoutStrategy_ClassNew() { PyVTKClass_Add( &PyvtkCommunity2DLayoutStrategy_Type, PyvtkCommunity2DLayoutStrategy_Methods, "vtkCommunity2DLayoutStrategy", &PyvtkCommunity2DLayoutStrategy_StaticNew); PyTypeObject *pytype = &PyvtkCommunity2DLayoutStrategy_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 *)PyvtkGraphLayoutStrategy_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkCommunity2DLayoutStrategy( PyObject *dict) { PyObject *o; o = PyvtkCommunity2DLayoutStrategy_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkCommunity2DLayoutStrategy", o) != 0) { Py_DECREF(o); } }