// python wrapper for vtkCompassRepresentation // #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 "vtkCompassRepresentation.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkCompassRepresentation(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkCompassRepresentation_ClassNew(); } #ifndef DECLARED_PyvtkContinuousValueWidgetRepresentation_ClassNew extern "C" { PyObject *PyvtkContinuousValueWidgetRepresentation_ClassNew(); } #define DECLARED_PyvtkContinuousValueWidgetRepresentation_ClassNew #endif static const char *PyvtkCompassRepresentation_Doc = "vtkCompassRepresentation - provide a compass\n\n" "Superclass: vtkContinuousValueWidgetRepresentation\n\n" "This class is used to represent and render a compass.\n\n"; static PyTypeObject PyvtkCompassRepresentation__InteractionState_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkGeovisCorePython.vtkCompassRepresentation._InteractionState", // 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 *PyvtkCompassRepresentation__InteractionState_FromEnum(int val) { #ifdef VTK_PY3K PyObject *args = Py_BuildValue("(i)", val); PyObject *obj = PyLong_Type.tp_new(&PyvtkCompassRepresentation__InteractionState_Type, args, nullptr); Py_DECREF(args); return obj; #else PyIntObject *self = PyObject_New(PyIntObject, &PyvtkCompassRepresentation__InteractionState_Type); self->ob_ival = val; return (PyObject *)self; #endif } static PyObject * PyvtkCompassRepresentation_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkCompassRepresentation::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *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->vtkCompassRepresentation::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkCompassRepresentation *tempr = vtkCompassRepresentation::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCompassRepresentation *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkCompassRepresentation::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 * PyvtkCompassRepresentation_GetPoint1Coordinate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint1Coordinate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCoordinate *tempr = (ap.IsBound() ? op->GetPoint1Coordinate() : op->vtkCompassRepresentation::GetPoint1Coordinate()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_GetPoint2Coordinate(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetPoint2Coordinate"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkCoordinate *tempr = (ap.IsBound() ? op->GetPoint2Coordinate() : op->vtkCompassRepresentation::GetPoint2Coordinate()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_GetRingProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetRingProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetRingProperty() : op->vtkCompassRepresentation::GetRingProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_GetSelectedProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetSelectedProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkProperty2D *tempr = (ap.IsBound() ? op->GetSelectedProperty() : op->vtkCompassRepresentation::GetSelectedProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_GetLabelProperty(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLabelProperty"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkTextProperty *tempr = (ap.IsBound() ? op->GetLabelProperty() : op->vtkCompassRepresentation::GetLabelProperty()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_PlaceWidget(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PlaceWidget"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); const int size0 = 6; double temp0[6]; double save0[6]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->PlaceWidget(temp0); } else { op->vtkCompassRepresentation::PlaceWidget(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_BuildRepresentation(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "BuildRepresentation"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->BuildRepresentation(); } else { op->vtkCompassRepresentation::BuildRepresentation(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_StartWidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "StartWidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); const int size0 = 2; double temp0[2]; double save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->StartWidgetInteraction(temp0); } else { op->vtkCompassRepresentation::StartWidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_WidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "WidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); const int size0 = 2; double temp0[2]; double save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->WidgetInteraction(temp0); } else { op->vtkCompassRepresentation::WidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_TiltWidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "TiltWidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); const int size0 = 2; double temp0[2]; double save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->TiltWidgetInteraction(temp0); } else { op->vtkCompassRepresentation::TiltWidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_DistanceWidgetInteraction(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DistanceWidgetInteraction"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); const int size0 = 2; double temp0[2]; double save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->DistanceWidgetInteraction(temp0); } else { op->vtkCompassRepresentation::DistanceWidgetInteraction(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_ComputeInteractionState(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ComputeInteractionState"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); int temp0; int temp1; int temp2 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(2, 3) && ap.GetValue(temp0) && ap.GetValue(temp1) && (ap.NoArgsLeft() || ap.GetValue(temp2))) { int tempr = (ap.IsBound() ? op->ComputeInteractionState(temp0, temp1, temp2) : op->vtkCompassRepresentation::ComputeInteractionState(temp0, temp1, temp2)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_Highlight(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Highlight"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->Highlight(temp0); } else { op->vtkCompassRepresentation::Highlight(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_GetActors(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetActors"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); vtkPropCollection *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkPropCollection")) { if (ap.IsBound()) { op->GetActors(temp0); } else { op->vtkCompassRepresentation::GetActors(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_ReleaseGraphicsResources(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ReleaseGraphicsResources"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); vtkWindow *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkWindow")) { if (ap.IsBound()) { op->ReleaseGraphicsResources(temp0); } else { op->vtkCompassRepresentation::ReleaseGraphicsResources(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_RenderOverlay(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderOverlay"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { int tempr = (ap.IsBound() ? op->RenderOverlay(temp0) : op->vtkCompassRepresentation::RenderOverlay(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_RenderOpaqueGeometry(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderOpaqueGeometry"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); vtkViewport *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkViewport")) { int tempr = (ap.IsBound() ? op->RenderOpaqueGeometry(temp0) : op->vtkCompassRepresentation::RenderOpaqueGeometry(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_SetHeading(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetHeading"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetHeading(temp0); } else { op->vtkCompassRepresentation::SetHeading(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_GetHeading(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetHeading"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetHeading() : op->vtkCompassRepresentation::GetHeading()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_SetTilt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetTilt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetTilt(temp0); } else { op->vtkCompassRepresentation::SetTilt(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_GetTilt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetTilt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetTilt() : op->vtkCompassRepresentation::GetTilt()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_UpdateTilt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UpdateTilt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->UpdateTilt(temp0); } else { op->vtkCompassRepresentation::UpdateTilt(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_EndTilt(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EndTilt"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->EndTilt(); } else { op->vtkCompassRepresentation::EndTilt(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_SetDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SetDistance(temp0); } else { op->vtkCompassRepresentation::SetDistance(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_GetDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { double tempr = (ap.IsBound() ? op->GetDistance() : op->vtkCompassRepresentation::GetDistance()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkCompassRepresentation_UpdateDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UpdateDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); double temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->UpdateDistance(temp0); } else { op->vtkCompassRepresentation::UpdateDistance(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_EndDistance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "EndDistance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->EndDistance(); } else { op->vtkCompassRepresentation::EndDistance(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkCompassRepresentation_SetRenderer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetRenderer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkCompassRepresentation *op = static_cast(vp); vtkRenderer *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkRenderer")) { if (ap.IsBound()) { op->SetRenderer(temp0); } else { op->vtkCompassRepresentation::SetRenderer(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkCompassRepresentation_Methods[] = { {"IsTypeOf", PyvtkCompassRepresentation_IsTypeOf, METH_VARARGS, "V.IsTypeOf(string) -> int\nC++: static vtkTypeBool IsTypeOf(const char *type)\n\nStandard methods for the class.\n"}, {"IsA", PyvtkCompassRepresentation_IsA, METH_VARARGS, "V.IsA(string) -> int\nC++: vtkTypeBool IsA(const char *type) override;\n\nStandard methods for the class.\n"}, {"SafeDownCast", PyvtkCompassRepresentation_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkCompassRepresentation\nC++: static vtkCompassRepresentation *SafeDownCast(\n vtkObjectBase *o)\n\nStandard methods for the class.\n"}, {"NewInstance", PyvtkCompassRepresentation_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkCompassRepresentation\nC++: vtkCompassRepresentation *NewInstance()\n\nStandard methods for the class.\n"}, {"GetPoint1Coordinate", PyvtkCompassRepresentation_GetPoint1Coordinate, METH_VARARGS, "V.GetPoint1Coordinate() -> vtkCoordinate\nC++: vtkCoordinate *GetPoint1Coordinate()\n\nPosition the first end point of the slider. Note that this point\nis an instance of vtkCoordinate, meaning that Point 1 can be\nspecified in a variety of coordinate systems, and can even be\nrelative to another point. To set the point, you'll want to get\nthe Point1Coordinate and then invoke the necessary methods to put\nit into the correct coordinate system and set the correct initial\nvalue.\n"}, {"GetPoint2Coordinate", PyvtkCompassRepresentation_GetPoint2Coordinate, METH_VARARGS, "V.GetPoint2Coordinate() -> vtkCoordinate\nC++: vtkCoordinate *GetPoint2Coordinate()\n\nPosition the second end point of the slider. Note that this point\nis an instance of vtkCoordinate, meaning that Point 1 can be\nspecified in a variety of coordinate systems, and can even be\nrelative to another point. To set the point, you'll want to get\nthe Point2Coordinate and then invoke the necessary methods to put\nit into the correct coordinate system and set the correct initial\nvalue.\n"}, {"GetRingProperty", PyvtkCompassRepresentation_GetRingProperty, METH_VARARGS, "V.GetRingProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetRingProperty()\n\nGet the slider properties. The properties of the slider when\nselected and unselected can be manipulated.\n"}, {"GetSelectedProperty", PyvtkCompassRepresentation_GetSelectedProperty, METH_VARARGS, "V.GetSelectedProperty() -> vtkProperty2D\nC++: virtual vtkProperty2D *GetSelectedProperty()\n\nGet the selection property. This property is used to modify the\nappearance of selected objects (e.g., the slider).\n"}, {"GetLabelProperty", PyvtkCompassRepresentation_GetLabelProperty, METH_VARARGS, "V.GetLabelProperty() -> vtkTextProperty\nC++: virtual vtkTextProperty *GetLabelProperty()\n\nSet/Get the properties for the label and title text.\n"}, {"PlaceWidget", PyvtkCompassRepresentation_PlaceWidget, METH_VARARGS, "V.PlaceWidget([float, float, float, float, float, float])\nC++: void PlaceWidget(double bounds[6]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"BuildRepresentation", PyvtkCompassRepresentation_BuildRepresentation, METH_VARARGS, "V.BuildRepresentation()\nC++: void BuildRepresentation() override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"StartWidgetInteraction", PyvtkCompassRepresentation_StartWidgetInteraction, METH_VARARGS, "V.StartWidgetInteraction([float, float])\nC++: void StartWidgetInteraction(double eventPos[2]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"WidgetInteraction", PyvtkCompassRepresentation_WidgetInteraction, METH_VARARGS, "V.WidgetInteraction([float, float])\nC++: void WidgetInteraction(double eventPos[2]) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"TiltWidgetInteraction", PyvtkCompassRepresentation_TiltWidgetInteraction, METH_VARARGS, "V.TiltWidgetInteraction([float, float])\nC++: virtual void TiltWidgetInteraction(double eventPos[2])\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"DistanceWidgetInteraction", PyvtkCompassRepresentation_DistanceWidgetInteraction, METH_VARARGS, "V.DistanceWidgetInteraction([float, float])\nC++: virtual void DistanceWidgetInteraction(double eventPos[2])\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"ComputeInteractionState", PyvtkCompassRepresentation_ComputeInteractionState, METH_VARARGS, "V.ComputeInteractionState(int, int, int) -> int\nC++: int ComputeInteractionState(int X, int Y, int modify=0)\n override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"Highlight", PyvtkCompassRepresentation_Highlight, METH_VARARGS, "V.Highlight(int)\nC++: void Highlight(int) override;\n\nMethods to interface with the vtkSliderWidget. The PlaceWidget()\nmethod assumes that the parameter bounds[6] specifies the\nlocation in display space where the widget should be placed.\n"}, {"GetActors", PyvtkCompassRepresentation_GetActors, METH_VARARGS, "V.GetActors(vtkPropCollection)\nC++: void GetActors(vtkPropCollection *) override;\n\nMethods supporting the rendering process.\n"}, {"ReleaseGraphicsResources", PyvtkCompassRepresentation_ReleaseGraphicsResources, METH_VARARGS, "V.ReleaseGraphicsResources(vtkWindow)\nC++: void ReleaseGraphicsResources(vtkWindow *) override;\n\nMethods supporting the rendering process.\n"}, {"RenderOverlay", PyvtkCompassRepresentation_RenderOverlay, METH_VARARGS, "V.RenderOverlay(vtkViewport) -> int\nC++: int RenderOverlay(vtkViewport *) override;\n\nMethods supporting the rendering process.\n"}, {"RenderOpaqueGeometry", PyvtkCompassRepresentation_RenderOpaqueGeometry, METH_VARARGS, "V.RenderOpaqueGeometry(vtkViewport) -> int\nC++: int RenderOpaqueGeometry(vtkViewport *) override;\n\nMethods supporting the rendering process.\n"}, {"SetHeading", PyvtkCompassRepresentation_SetHeading, METH_VARARGS, "V.SetHeading(float)\nC++: virtual void SetHeading(double value)\n\n"}, {"GetHeading", PyvtkCompassRepresentation_GetHeading, METH_VARARGS, "V.GetHeading() -> float\nC++: virtual double GetHeading()\n\n"}, {"SetTilt", PyvtkCompassRepresentation_SetTilt, METH_VARARGS, "V.SetTilt(float)\nC++: virtual void SetTilt(double value)\n\n"}, {"GetTilt", PyvtkCompassRepresentation_GetTilt, METH_VARARGS, "V.GetTilt() -> float\nC++: virtual double GetTilt()\n\n"}, {"UpdateTilt", PyvtkCompassRepresentation_UpdateTilt, METH_VARARGS, "V.UpdateTilt(float)\nC++: virtual void UpdateTilt(double time)\n\n"}, {"EndTilt", PyvtkCompassRepresentation_EndTilt, METH_VARARGS, "V.EndTilt()\nC++: virtual void EndTilt()\n\n"}, {"SetDistance", PyvtkCompassRepresentation_SetDistance, METH_VARARGS, "V.SetDistance(float)\nC++: virtual void SetDistance(double value)\n\n"}, {"GetDistance", PyvtkCompassRepresentation_GetDistance, METH_VARARGS, "V.GetDistance() -> float\nC++: virtual double GetDistance()\n\n"}, {"UpdateDistance", PyvtkCompassRepresentation_UpdateDistance, METH_VARARGS, "V.UpdateDistance(float)\nC++: virtual void UpdateDistance(double time)\n\n"}, {"EndDistance", PyvtkCompassRepresentation_EndDistance, METH_VARARGS, "V.EndDistance()\nC++: virtual void EndDistance()\n\n"}, {"SetRenderer", PyvtkCompassRepresentation_SetRenderer, METH_VARARGS, "V.SetRenderer(vtkRenderer)\nC++: void SetRenderer(vtkRenderer *ren) override;\n\nSubclasses of vtkWidgetRepresentation must implement these\nmethods. This is considered the minimum API for a widget\nrepresentation.\n\nSetRenderer() - the renderer in which the representations draws\nitself. Typically the renderer is set by the associated widget.\nUse the widget's SetCurrentRenderer() method in most cases;\notherwise there is a risk of inconsistent behavior as events and\ndrawing may be performed in different viewports.\nBuildRepresentation() - update the geometry of the widget based\non its current state. WARNING: The renderer is NOT reference\ncounted by the representation, in order to avoid reference loops.\n Be sure that the representation lifetime does not extend beyond\nthe renderer lifetime.\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkCompassRepresentation_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkGeovisCorePython.vtkCompassRepresentation", // 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 PyvtkCompassRepresentation_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 *PyvtkCompassRepresentation_StaticNew() { return vtkCompassRepresentation::New(); } PyObject *PyvtkCompassRepresentation_ClassNew() { PyVTKClass_Add( &PyvtkCompassRepresentation_Type, PyvtkCompassRepresentation_Methods, "vtkCompassRepresentation", &PyvtkCompassRepresentation_StaticNew); PyTypeObject *pytype = &PyvtkCompassRepresentation_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 *)PyvtkContinuousValueWidgetRepresentation_ClassNew(); PyObject *d = pytype->tp_dict; PyObject *o; PyType_Ready(&PyvtkCompassRepresentation__InteractionState_Type); PyvtkCompassRepresentation__InteractionState_Type.tp_new = nullptr; vtkPythonUtil::AddEnumToMap(&PyvtkCompassRepresentation__InteractionState_Type); o = (PyObject *)&PyvtkCompassRepresentation__InteractionState_Type; if (PyDict_SetItemString(d, "_InteractionState", o) != 0) { Py_DECREF(o); } for (int c = 0; c < 9; c++) { typedef vtkCompassRepresentation::_InteractionState cxx_enum_type; static const struct { const char *name; cxx_enum_type value; } constants[9] = { { "Outside", vtkCompassRepresentation::Outside }, { "Inside", vtkCompassRepresentation::Inside }, { "Adjusting", vtkCompassRepresentation::Adjusting }, { "TiltDown", vtkCompassRepresentation::TiltDown }, { "TiltUp", vtkCompassRepresentation::TiltUp }, { "TiltAdjusting", vtkCompassRepresentation::TiltAdjusting }, { "DistanceOut", vtkCompassRepresentation::DistanceOut }, { "DistanceIn", vtkCompassRepresentation::DistanceIn }, { "DistanceAdjusting", vtkCompassRepresentation::DistanceAdjusting }, }; o = PyvtkCompassRepresentation__InteractionState_FromEnum(constants[c].value); if (o) { PyDict_SetItemString(d, constants[c].name, o); Py_DECREF(o); } } PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkCompassRepresentation( PyObject *dict) { PyObject *o; o = PyvtkCompassRepresentation_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkCompassRepresentation", o) != 0) { Py_DECREF(o); } }