// python wrapper for vtkOpenGLFramebufferObject // #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 "vtkOpenGLFramebufferObject.h" extern "C" { VTK_ABI_EXPORT void PyVTKAddFile_vtkOpenGLFramebufferObject(PyObject *); } extern "C" { VTK_ABI_EXPORT PyObject *PyvtkOpenGLFramebufferObject_ClassNew(); } #ifndef DECLARED_PyvtkFrameBufferObjectBase_ClassNew extern "C" { PyObject *PyvtkFrameBufferObjectBase_ClassNew(); } #define DECLARED_PyvtkFrameBufferObjectBase_ClassNew #endif static const char *PyvtkOpenGLFramebufferObject_Doc = "vtkOpenGLFramebufferObject - Internal class which encapsulates OpenGL\nFramebufferObject\n\n" "Superclass: vtkFrameBufferObjectBase\n\n" "Before delving into this class it is best to have some background in\n" "some OpenGL terms. OpenGL has a notion of a currently bound\n" "Framebuffers for drawing and reading. It can be the default\n" "framebuffer such as created with a standard window/context or it can\n" "be a user created Framebuffer objects. When draw and read commands\n" "are invoked, they apply to the current draw and/or read frambuffers.\n\n" "A framebuffer consists of color buffers and an optional depth buffer.\n" "The FramebufferObject does not hold the memory for these buffers, it\n" "just keeps track of what buffers are attached to it. The buffers\n" "themselves hold the storage for the pixels/depths.\n\n" "In the context of this discussion a buffer can be either a\n" "vtkTextureObject (both 2D or a slice of a 3D texture) or a\n" "vtkRenderbuffer. In some cases a renderbuffer may be faster or more\n" "lightweight but you cannot pass a renderbuffer into a shader for\n" "sampling in a later pass like you can a texture.\n\n" "You attach these buffers to the Framebuffer using methods such as\n" "AddColorAttachment or AddDepthAttachment In normal usage a buffer is\n" "Attached to a FramebufferObject and then some or all of the attached\n" "buffers are activated for drawing or reading.\n\n" "When you have a framebuffer bound along with some buffers attached to\n" "it you can then activate specific buffers for drawing or reading. So\n" "you have draw and read framebuffer objects (bindings) and then for\n" "the currently bound FramebufferObjects you have active draw and read\n" "buffers.\n\n" "A single FramebufferObject can be bound to both Draw and Read.\n" "Likewise a single buffer can be activated for both draw and read\n" "operations. You cannot assign and activate a TextureObject for\n" "drawing on the FO and at the same time pass it in as a Texture to the\n" "shader program. That type of operation is very common and must be\n" "done in two steps.\n" "- Render to the FO with the Texture attached as an active buffer\n" "- deactivate the texture obj and then render with the texture obj as\n" " a texture passed into the shader\n\n" "Typical use cases: The simplest example{.cpp}\n" "fbo->SetContext(renWin);\n" "fbo->SaveCurrentBindingsAndBuffers();\n" "fbo->PopulateFramebuffer(width, height);\n" "fbo->Start();\n\n" "...\n\n" "fbo->RestorePreviousBindingsAndBuffers();\n\n" "If you wish to use a texture you created\n\n" "{.cpp}\n" "fbo->SetContext(renWin);\n" "fbo->SaveCurrentBindingsAndBuffers();\n" "fbo->Bind();\n" "fbo->AddColorAttachment(0, vtkTextureObj);\n" "fbo->AddDepthAttachment(); // auto create depth buffer\n" "fbo->ActivateBuffer(0);\n" "fbo->Start();\n\n" "...\n\n" "fbo->RestorePreviousBindingsAndBuffers();\n\n" "If you will be using a FO repeatedly then it is best to create it\n" "attach the bufffers and then use as needed for example\n\n" "Typical use case:{.cpp}\n" "// setup the FBO once\n" "fbo->SetContext(renWin);\n" "fbo->SaveCurrentBindingsAndBuffers();\n" "fbo->Bind();\n" "fbo->AddColorAttachment(0, vtkTextureObj);\n" "fbo->AddDepthAttachment(); // auto create depth buffer\n" "fbo->RestorePreviousBindingsAndBuffers();\n\n" "// use it many times fbo->SaveCurrentBindingsAndBuffers();\n" "fbo->Bind(); fbo->ActivateBuffer(0); fbo->Start(); ... // render here\n" "etc fbo->RestorePreviousBindingsAndBuffers();\n\n" "If you with to only bind/attach the draw buffers or read buffers\n" "there are mode specific versions of most methods that only apply to\n" "the mode specified Draw/Read/Both. The mode argument uses OpenGL\n" "constants so this class provides convenience methods to return them\n" "named GetDrawMode() GetReadMode() and GetBothMode() so that your code\n" "does not need to be polluted with OpenGL headers/constants.\n\n" "This class replaces both vtkFrameBufferObject and\n" "vtkFrameBufferObject2 and contins methods from both of them. Most\n" "methods from FO2 should work with this class. Just rename FBO2 to FBO\n" "and make sure to Save and Restore the bindings and buffers. If you\n" "have been using the old FO class, which had comments in the header\n" "saying not to use it. Then you are in for a bit more of a conversion\n" "but generally it should still be easy. Use the code samples above (or\n" "any of the classes in OpenGL2 that currently use FBOs) to guide you.\n" "They have all been converted to this class. Where previously a\n" "DepthBuffer was autmatically created for you, you now need to do it\n" "explicitly using AddDepthAttachment().\n\n" "This class should be named vtkOpenGLFramebufferObject (FO) Note the\n" "capitalization of FramebufferObject\n\n" "@sa\n" "vtkTextureObject, vtkRenderbufferObject\n\n"; static PyObject * PyvtkOpenGLFramebufferObject_IsTypeOf(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsTypeOf"); char *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = vtkOpenGLFramebufferObject::IsTypeOf(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_IsA(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "IsA"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *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->vtkOpenGLFramebufferObject::IsA(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SafeDownCast(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "SafeDownCast"); vtkObjectBase *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkObjectBase")) { vtkOpenGLFramebufferObject *tempr = vtkOpenGLFramebufferObject::SafeDownCast(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_NewInstance(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "NewInstance"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkOpenGLFramebufferObject *tempr = (ap.IsBound() ? op->NewInstance() : op->vtkOpenGLFramebufferObject::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 * PyvtkOpenGLFramebufferObject_SetContext(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SetContext"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); vtkRenderWindow *temp0 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkRenderWindow")) { if (ap.IsBound()) { op->SetContext(temp0); } else { op->vtkOpenGLFramebufferObject::SetContext(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetContext(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetContext"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { vtkOpenGLRenderWindow *tempr = (ap.IsBound() ? op->GetContext() : op->vtkOpenGLFramebufferObject::GetContext()); if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Bind_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Bind"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->Bind(); } else { op->vtkOpenGLFramebufferObject::Bind(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Bind_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Bind"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->Bind(temp0); } else { op->vtkOpenGLFramebufferObject::Bind(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Bind(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_Bind_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_Bind_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "Bind"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_UnBind_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UnBind"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->UnBind(); } else { op->vtkOpenGLFramebufferObject::UnBind(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_UnBind_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "UnBind"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->UnBind(temp0); } else { op->vtkOpenGLFramebufferObject::UnBind(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_UnBind(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_UnBind_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_UnBind_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "UnBind"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindings_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBindings"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SaveCurrentBindings(); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBindings(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindings_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBindings"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SaveCurrentBindings(temp0); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBindings(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindings(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_SaveCurrentBindings_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_SaveCurrentBindings_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SaveCurrentBindings"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBindingsAndBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SaveCurrentBindingsAndBuffers(); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBindingsAndBuffers(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBindingsAndBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SaveCurrentBindingsAndBuffers(temp0); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBindingsAndBuffers(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SaveCurrentBindingsAndBuffers"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindings_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBindings"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->RestorePreviousBindings(); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBindings(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindings_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBindings"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RestorePreviousBindings(temp0); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBindings(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindings(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_RestorePreviousBindings_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_RestorePreviousBindings_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "RestorePreviousBindings"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBindingsAndBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->RestorePreviousBindingsAndBuffers(); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBindingsAndBuffers(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBindingsAndBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RestorePreviousBindingsAndBuffers(temp0); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBindingsAndBuffers(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "RestorePreviousBindingsAndBuffers"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBuffers_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->SaveCurrentBuffers(); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBuffers(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBuffers_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "SaveCurrentBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->SaveCurrentBuffers(temp0); } else { op->vtkOpenGLFramebufferObject::SaveCurrentBuffers(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_SaveCurrentBuffers(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_SaveCurrentBuffers_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_SaveCurrentBuffers_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "SaveCurrentBuffers"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBuffers_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->RestorePreviousBuffers(); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBuffers(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBuffers_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RestorePreviousBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RestorePreviousBuffers(temp0); } else { op->vtkOpenGLFramebufferObject::RestorePreviousBuffers(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RestorePreviousBuffers(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_RestorePreviousBuffers_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_RestorePreviousBuffers_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "RestorePreviousBuffers"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_Start(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Start"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { bool tempr = (ap.IsBound() ? op->Start(temp0, temp1) : op->vtkOpenGLFramebufferObject::Start(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_StartNonOrtho(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "StartNonOrtho"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { bool tempr = (ap.IsBound() ? op->StartNonOrtho(temp0, temp1) : op->vtkOpenGLFramebufferObject::StartNonOrtho(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_InitializeViewport(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "InitializeViewport"); int temp0; int temp1; PyObject *result = nullptr; if (ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { vtkOpenGLFramebufferObject::InitializeViewport(temp0, temp1); if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateDrawBuffers_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ActivateDrawBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ActivateDrawBuffers(temp0); } else { op->vtkOpenGLFramebufferObject::ActivateDrawBuffers(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateDrawBuffers_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ActivateDrawBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int size0 = ap.GetArgSize(0); vtkPythonArgs::Array store0(2*size0); unsigned int *temp0 = store0.Data(); unsigned int *save0 = (size0 == 0 ? nullptr : temp0 + size0); int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->ActivateDrawBuffers(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::ActivateDrawBuffers(temp0, temp1); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateDrawBuffers(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 1: return PyvtkOpenGLFramebufferObject_ActivateDrawBuffers_s1(self, args); case 2: return PyvtkOpenGLFramebufferObject_ActivateDrawBuffers_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "ActivateDrawBuffers"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateDrawBuffer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ActivateDrawBuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ActivateDrawBuffer(temp0); } else { op->vtkOpenGLFramebufferObject::ActivateDrawBuffer(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateReadBuffer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ActivateReadBuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ActivateReadBuffer(temp0); } else { op->vtkOpenGLFramebufferObject::ActivateReadBuffer(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ActivateBuffer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ActivateBuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->ActivateBuffer(temp0); } else { op->vtkOpenGLFramebufferObject::ActivateBuffer(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DeactivateDrawBuffers(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DeactivateDrawBuffers"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->DeactivateDrawBuffers(); } else { op->vtkOpenGLFramebufferObject::DeactivateDrawBuffers(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DeactivateReadBuffer(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DeactivateReadBuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->DeactivateReadBuffer(); } else { op->vtkOpenGLFramebufferObject::DeactivateReadBuffer(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RenderQuad(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RenderQuad"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int temp0; int temp1; int temp2; int temp3; vtkShaderProgram *temp4 = nullptr; vtkOpenGLVertexArrayObject *temp5 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(6) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetVTKObject(temp4, "vtkShaderProgram") && ap.GetVTKObject(temp5, "vtkOpenGLVertexArrayObject")) { if (ap.IsBound()) { op->RenderQuad(temp0, temp1, temp2, temp3, temp4, temp5); } else { op->vtkOpenGLFramebufferObject::RenderQuad(temp0, temp1, temp2, temp3, temp4, temp5); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddColorAttachment_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddColorAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; vtkTextureObject *temp2 = nullptr; unsigned int temp3 = 0; PyObject *result = nullptr; if (op && ap.CheckArgCount(3, 4) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetVTKObject(temp2, "vtkTextureObject") && (ap.NoArgsLeft() || ap.GetValue(temp3))) { if (ap.IsBound()) { op->AddColorAttachment(temp0, temp1, temp2, temp3); } else { op->vtkOpenGLFramebufferObject::AddColorAttachment(temp0, temp1, temp2, temp3); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddColorAttachment_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddColorAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; vtkRenderbuffer *temp2 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetVTKObject(temp2, "vtkRenderbuffer")) { if (ap.IsBound()) { op->AddColorAttachment(temp0, temp1, temp2); } else { op->vtkOpenGLFramebufferObject::AddColorAttachment(temp0, temp1, temp2); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkOpenGLFramebufferObject_AddColorAttachment_Methods[] = { {nullptr, PyvtkOpenGLFramebufferObject_AddColorAttachment_s1, METH_VARARGS, "@IIV|I *vtkTextureObject"}, {nullptr, PyvtkOpenGLFramebufferObject_AddColorAttachment_s2, METH_VARARGS, "@IIV *vtkRenderbuffer"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkOpenGLFramebufferObject_AddColorAttachment(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkOpenGLFramebufferObject_AddColorAttachment_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 4: return PyvtkOpenGLFramebufferObject_AddColorAttachment_s1(self, args); case 3: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "AddColorAttachment"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveColorAttachment(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveColorAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->RemoveColorAttachment(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::RemoveColorAttachment(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveColorAttachments(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveColorAttachments"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->RemoveColorAttachments(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::RemoveColorAttachments(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetNumberOfColorAttachments(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetNumberOfColorAttachments"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->GetNumberOfColorAttachments(temp0) : op->vtkOpenGLFramebufferObject::GetNumberOfColorAttachments(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddDepthAttachment_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { if (ap.IsBound()) { op->AddDepthAttachment(); } else { op->vtkOpenGLFramebufferObject::AddDepthAttachment(); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddDepthAttachment_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->AddDepthAttachment(temp0); } else { op->vtkOpenGLFramebufferObject::AddDepthAttachment(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddDepthAttachment_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; vtkTextureObject *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkTextureObject")) { if (ap.IsBound()) { op->AddDepthAttachment(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::AddDepthAttachment(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_AddDepthAttachment_s4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "AddDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; vtkRenderbuffer *temp1 = nullptr; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetVTKObject(temp1, "vtkRenderbuffer")) { if (ap.IsBound()) { op->AddDepthAttachment(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::AddDepthAttachment(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkOpenGLFramebufferObject_AddDepthAttachment_Methods[] = { {nullptr, PyvtkOpenGLFramebufferObject_AddDepthAttachment_s3, METH_VARARGS, "@IV *vtkTextureObject"}, {nullptr, PyvtkOpenGLFramebufferObject_AddDepthAttachment_s4, METH_VARARGS, "@IV *vtkRenderbuffer"}, {nullptr, nullptr, 0, nullptr} }; static PyObject * PyvtkOpenGLFramebufferObject_AddDepthAttachment(PyObject *self, PyObject *args) { PyMethodDef *methods = PyvtkOpenGLFramebufferObject_AddDepthAttachment_Methods; int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_AddDepthAttachment_s1(self, args); case 1: return PyvtkOpenGLFramebufferObject_AddDepthAttachment_s2(self, args); case 2: return vtkPythonOverload::CallMethod(methods, self, args); } vtkPythonArgs::ArgCountError(nargs, "AddDepthAttachment"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveDepthAttachment(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemoveDepthAttachment(temp0); } else { op->vtkOpenGLFramebufferObject::RemoveDepthAttachment(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_PopulateFramebuffer_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PopulateFramebuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int temp0; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { bool tempr = (ap.IsBound() ? op->PopulateFramebuffer(temp0, temp1) : op->vtkOpenGLFramebufferObject::PopulateFramebuffer(temp0, temp1)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_PopulateFramebuffer_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "PopulateFramebuffer"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); int temp0; int temp1; bool temp2 = false; int temp3; int temp4; bool temp5 = false; int temp6; int temp7; PyObject *result = nullptr; if (op && ap.CheckArgCount(8) && ap.GetValue(temp0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetValue(temp5) && ap.GetValue(temp6) && ap.GetValue(temp7)) { bool tempr = (ap.IsBound() ? op->PopulateFramebuffer(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7) : op->vtkOpenGLFramebufferObject::PopulateFramebuffer(temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_PopulateFramebuffer(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 2: return PyvtkOpenGLFramebufferObject_PopulateFramebuffer_s1(self, args); case 8: return PyvtkOpenGLFramebufferObject_PopulateFramebuffer_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "PopulateFramebuffer"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_GetMaximumNumberOfActiveTargets(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaximumNumberOfActiveTargets"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned int tempr = (ap.IsBound() ? op->GetMaximumNumberOfActiveTargets() : op->vtkOpenGLFramebufferObject::GetMaximumNumberOfActiveTargets()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetMaximumNumberOfRenderTargets(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetMaximumNumberOfRenderTargets"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { unsigned int tempr = (ap.IsBound() ? op->GetMaximumNumberOfRenderTargets() : op->vtkOpenGLFramebufferObject::GetMaximumNumberOfRenderTargets()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetLastSize_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLastSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); PyObject *result = nullptr; if (op && ap.CheckArgCount(0)) { int *tempr = (ap.IsBound() ? op->GetLastSize() : op->vtkOpenGLFramebufferObject::GetLastSize()); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetLastSize_s2(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLastSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *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->GetLastSize(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::GetLastSize(temp0, temp1); } if (!ap.ErrorOccurred()) { ap.SetArgValue(0, temp0); } if (!ap.ErrorOccurred()) { ap.SetArgValue(1, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetLastSize_s3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "GetLastSize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 2; int temp0[2]; int save0[2]; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetArray(temp0, size0)) { ap.SaveArray(temp0, save0, size0); if (ap.IsBound()) { op->GetLastSize(temp0); } else { op->vtkOpenGLFramebufferObject::GetLastSize(temp0); } if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetLastSize(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(self, args); switch(nargs) { case 0: return PyvtkOpenGLFramebufferObject_GetLastSize_s1(self, args); case 2: return PyvtkOpenGLFramebufferObject_GetLastSize_s2(self, args); case 1: return PyvtkOpenGLFramebufferObject_GetLastSize_s3(self, args); } vtkPythonArgs::ArgCountError(nargs, "GetLastSize"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_IsSupported(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "IsSupported"); vtkOpenGLRenderWindow *temp0 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(1) && ap.GetVTKObject(temp0, "vtkOpenGLRenderWindow")) { bool tempr = vtkOpenGLFramebufferObject::IsSupported(temp0); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_CheckFrameBufferStatus(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "CheckFrameBufferStatus"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { int tempr = (ap.IsBound() ? op->CheckFrameBufferStatus(temp0) : op->vtkOpenGLFramebufferObject::CheckFrameBufferStatus(temp0)); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_ReleaseGraphicsResources(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "ReleaseGraphicsResources"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *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->vtkOpenGLFramebufferObject::ReleaseGraphicsResources(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Blit(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "Blit"); const int size0 = 4; int temp0[4]; const int size1 = 4; int temp1[4]; unsigned int temp2; unsigned int temp3; PyObject *result = nullptr; if (ap.CheckArgCount(4) && ap.GetArray(temp0, size0) && ap.GetArray(temp1, size1) && ap.GetValue(temp2) && ap.GetValue(temp3)) { int tempr = vtkOpenGLFramebufferObject::Blit(temp0, temp1, temp2, temp3); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DownloadColor1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DownloadColor1"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; int temp2; PyObject *result = nullptr; if (op && ap.CheckArgCount(3) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && ap.GetValue(temp2)) { ap.SaveArray(temp0, save0, size0); vtkPixelBufferObject *tempr = (ap.IsBound() ? op->DownloadColor1(temp0, temp1, temp2) : op->vtkOpenGLFramebufferObject::DownloadColor1(temp0, temp1, temp2)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DownloadColor3(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DownloadColor3"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); vtkPixelBufferObject *tempr = (ap.IsBound() ? op->DownloadColor3(temp0, temp1) : op->vtkOpenGLFramebufferObject::DownloadColor3(temp0, temp1)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DownloadColor4(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DownloadColor4"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); vtkPixelBufferObject *tempr = (ap.IsBound() ? op->DownloadColor4(temp0, temp1) : op->vtkOpenGLFramebufferObject::DownloadColor4(temp0, temp1)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_DownloadDepth(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "DownloadDepth"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetArray(temp0, size0) && ap.GetValue(temp1)) { ap.SaveArray(temp0, save0, size0); vtkPixelBufferObject *tempr = (ap.IsBound() ? op->DownloadDepth(temp0, temp1) : op->vtkOpenGLFramebufferObject::DownloadDepth(temp0, temp1)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Download_s1(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Download"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; int temp2; int temp3; int temp4; PyObject *result = nullptr; if (op && ap.CheckArgCount(5) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4)) { ap.SaveArray(temp0, save0, size0); vtkPixelBufferObject *tempr = (ap.IsBound() ? op->Download(temp0, temp1, temp2, temp3, temp4) : op->vtkOpenGLFramebufferObject::Download(temp0, temp1, temp2, temp3, temp4)); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildVTKObject(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Download_s2(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "Download"); const int size0 = 4; int temp0[4]; int save0[4]; int temp1; int temp2; int temp3; int temp4; vtkPixelBufferObject *temp5 = nullptr; PyObject *result = nullptr; if (ap.CheckArgCount(6) && ap.GetArray(temp0, size0) && ap.GetValue(temp1) && ap.GetValue(temp2) && ap.GetValue(temp3) && ap.GetValue(temp4) && ap.GetVTKObject(temp5, "vtkPixelBufferObject")) { ap.SaveArray(temp0, save0, size0); vtkOpenGLFramebufferObject::Download(temp0, temp1, temp2, temp3, temp4, temp5); if (ap.ArrayHasChanged(temp0, save0, size0) && !ap.ErrorOccurred()) { ap.SetArray(0, temp0, size0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Download(PyObject *self, PyObject *args) { int nargs = vtkPythonArgs::GetArgCount(args); switch(nargs) { case 5: return PyvtkOpenGLFramebufferObject_Download_s1(self, args); case 6: return PyvtkOpenGLFramebufferObject_Download_s2(self, args); } vtkPythonArgs::ArgCountError(nargs, "Download"); return nullptr; } static PyObject * PyvtkOpenGLFramebufferObject_GetDrawMode(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetDrawMode"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { unsigned int tempr = vtkOpenGLFramebufferObject::GetDrawMode(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetReadMode(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetReadMode"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { unsigned int tempr = vtkOpenGLFramebufferObject::GetReadMode(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_GetBothMode(PyObject *, PyObject *args) { vtkPythonArgs ap(args, "GetBothMode"); PyObject *result = nullptr; if (ap.CheckArgCount(0)) { unsigned int tempr = vtkOpenGLFramebufferObject::GetBothMode(); if (!ap.ErrorOccurred()) { result = ap.BuildValue(tempr); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_Resize(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "Resize"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *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->Resize(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::Resize(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveTexColorAttachments(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveTexColorAttachments"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->RemoveTexColorAttachments(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::RemoveTexColorAttachments(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveTexColorAttachment(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveTexColorAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; unsigned int temp1; PyObject *result = nullptr; if (op && ap.CheckArgCount(2) && ap.GetValue(temp0) && ap.GetValue(temp1)) { if (ap.IsBound()) { op->RemoveTexColorAttachment(temp0, temp1); } else { op->vtkOpenGLFramebufferObject::RemoveTexColorAttachment(temp0, temp1); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveRenDepthAttachment(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveRenDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemoveRenDepthAttachment(temp0); } else { op->vtkOpenGLFramebufferObject::RemoveRenDepthAttachment(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyObject * PyvtkOpenGLFramebufferObject_RemoveTexDepthAttachment(PyObject *self, PyObject *args) { vtkPythonArgs ap(self, args, "RemoveTexDepthAttachment"); vtkObjectBase *vp = ap.GetSelfPointer(self, args); vtkOpenGLFramebufferObject *op = static_cast(vp); unsigned int temp0; PyObject *result = nullptr; if (op && ap.CheckArgCount(1) && ap.GetValue(temp0)) { if (ap.IsBound()) { op->RemoveTexDepthAttachment(temp0); } else { op->vtkOpenGLFramebufferObject::RemoveTexDepthAttachment(temp0); } if (!ap.ErrorOccurred()) { result = ap.BuildNone(); } } return result; } static PyMethodDef PyvtkOpenGLFramebufferObject_Methods[] = { {"IsTypeOf", PyvtkOpenGLFramebufferObject_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", PyvtkOpenGLFramebufferObject_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", PyvtkOpenGLFramebufferObject_SafeDownCast, METH_VARARGS, "V.SafeDownCast(vtkObjectBase) -> vtkOpenGLFramebufferObject\nC++: static vtkOpenGLFramebufferObject *SafeDownCast(\n vtkObjectBase *o)\n\n"}, {"NewInstance", PyvtkOpenGLFramebufferObject_NewInstance, METH_VARARGS, "V.NewInstance() -> vtkOpenGLFramebufferObject\nC++: vtkOpenGLFramebufferObject *NewInstance()\n\n"}, {"SetContext", PyvtkOpenGLFramebufferObject_SetContext, METH_VARARGS, "V.SetContext(vtkRenderWindow)\nC++: void SetContext(vtkRenderWindow *context)\n\nGet/Set the context. Context must be a vtkOpenGLRenderWindow.\nThis does not increase the reference count of the context to\navoid reference loops. SetContext() may raise an error is the\nOpenGL context does not support the required OpenGL extensions.\n"}, {"GetContext", PyvtkOpenGLFramebufferObject_GetContext, METH_VARARGS, "V.GetContext() -> vtkOpenGLRenderWindow\nC++: vtkOpenGLRenderWindow *GetContext()\n\nGet/Set the context. Context must be a vtkOpenGLRenderWindow.\nThis does not increase the reference count of the context to\navoid reference loops. SetContext() may raise an error is the\nOpenGL context does not support the required OpenGL extensions.\n"}, {"Bind", PyvtkOpenGLFramebufferObject_Bind, METH_VARARGS, "V.Bind()\nC++: void Bind()\nV.Bind(int)\nC++: void Bind(unsigned int mode)\n\nMake the draw frame buffer active.\n"}, {"UnBind", PyvtkOpenGLFramebufferObject_UnBind, METH_VARARGS, "V.UnBind()\nC++: void UnBind()\nV.UnBind(int)\nC++: void UnBind(unsigned int mode)\n\nUnbind this buffer\n"}, {"SaveCurrentBindings", PyvtkOpenGLFramebufferObject_SaveCurrentBindings, METH_VARARGS, "V.SaveCurrentBindings()\nC++: void SaveCurrentBindings()\nV.SaveCurrentBindings(int)\nC++: void SaveCurrentBindings(unsigned int mode)\n\nStore/Restore the current framebuffer bindings and buffers.\n"}, {"SaveCurrentBindingsAndBuffers", PyvtkOpenGLFramebufferObject_SaveCurrentBindingsAndBuffers, METH_VARARGS, "V.SaveCurrentBindingsAndBuffers()\nC++: void SaveCurrentBindingsAndBuffers()\nV.SaveCurrentBindingsAndBuffers(int)\nC++: void SaveCurrentBindingsAndBuffers(unsigned int mode)\n\nStore/Restore the current framebuffer bindings and buffers.\n"}, {"RestorePreviousBindings", PyvtkOpenGLFramebufferObject_RestorePreviousBindings, METH_VARARGS, "V.RestorePreviousBindings()\nC++: void RestorePreviousBindings()\nV.RestorePreviousBindings(int)\nC++: void RestorePreviousBindings(unsigned int mode)\n\nStore/Restore the current framebuffer bindings and buffers.\n"}, {"RestorePreviousBindingsAndBuffers", PyvtkOpenGLFramebufferObject_RestorePreviousBindingsAndBuffers, METH_VARARGS, "V.RestorePreviousBindingsAndBuffers()\nC++: void RestorePreviousBindingsAndBuffers()\nV.RestorePreviousBindingsAndBuffers(int)\nC++: void RestorePreviousBindingsAndBuffers(unsigned int mode)\n\nStore/Restore the current framebuffer bindings and buffers.\n"}, {"SaveCurrentBuffers", PyvtkOpenGLFramebufferObject_SaveCurrentBuffers, METH_VARARGS, "V.SaveCurrentBuffers()\nC++: void SaveCurrentBuffers()\nV.SaveCurrentBuffers(int)\nC++: void SaveCurrentBuffers(unsigned int mode)\n\nStore the current draw and read buffers. When restored only the\nbuffers matching mode are modified. GetDrawMode() -> glDrawBuffer\nGetReadMode() -> glReadBuffer GetBothMode() -> both\n"}, {"RestorePreviousBuffers", PyvtkOpenGLFramebufferObject_RestorePreviousBuffers, METH_VARARGS, "V.RestorePreviousBuffers()\nC++: void RestorePreviousBuffers()\nV.RestorePreviousBuffers(int)\nC++: void RestorePreviousBuffers(unsigned int mode)\n\nStore the current draw and read buffers. When restored only the\nbuffers matching mode are modified. GetDrawMode() -> glDrawBuffer\nGetReadMode() -> glReadBuffer GetBothMode() -> both\n"}, {"Start", PyvtkOpenGLFramebufferObject_Start, METH_VARARGS, "V.Start(int, int) -> bool\nC++: bool Start(int width, int height)\n\nUser must take care that width/height match the dimensions of the\nuser defined texture attachments. This method makes the \"active\nbuffers\" the buffers that will get drawn into by subsequent\ndrawing calls. Note that this does not clear the render buffers\ni.e. no glClear() calls are made by either of these methods. It's\nup to the caller to clear the buffers if needed.\n"}, {"StartNonOrtho", PyvtkOpenGLFramebufferObject_StartNonOrtho, METH_VARARGS, "V.StartNonOrtho(int, int) -> bool\nC++: bool StartNonOrtho(int width, int height)\n\nUser must take care that width/height match the dimensions of the\nuser defined texture attachments. This method makes the \"active\nbuffers\" the buffers that will get drawn into by subsequent\ndrawing calls. Note that this does not clear the render buffers\ni.e. no glClear() calls are made by either of these methods. It's\nup to the caller to clear the buffers if needed.\n"}, {"InitializeViewport", PyvtkOpenGLFramebufferObject_InitializeViewport, METH_VARARGS, "V.InitializeViewport(int, int)\nC++: static void InitializeViewport(int width, int height)\n\nSet up ortho viewport with scissor, lighting, blend, and depth\ndisabled. The method affects the current bound FBO. The method is\nstatic so that it may be used on the default FBO without an\ninstance. Low level api.\n"}, {"ActivateDrawBuffers", PyvtkOpenGLFramebufferObject_ActivateDrawBuffers, METH_VARARGS, "V.ActivateDrawBuffers(int)\nC++: void ActivateDrawBuffers(unsigned int n)\nV.ActivateDrawBuffers([int, ...], int)\nC++: void ActivateDrawBuffers(unsigned int *ids, int n)\n\n"}, {"ActivateDrawBuffer", PyvtkOpenGLFramebufferObject_ActivateDrawBuffer, METH_VARARGS, "V.ActivateDrawBuffer(int)\nC++: void ActivateDrawBuffer(unsigned int id)\n\n"}, {"ActivateReadBuffer", PyvtkOpenGLFramebufferObject_ActivateReadBuffer, METH_VARARGS, "V.ActivateReadBuffer(int)\nC++: void ActivateReadBuffer(unsigned int id)\n\n"}, {"ActivateBuffer", PyvtkOpenGLFramebufferObject_ActivateBuffer, METH_VARARGS, "V.ActivateBuffer(int)\nC++: void ActivateBuffer(unsigned int id)\n\n"}, {"DeactivateDrawBuffers", PyvtkOpenGLFramebufferObject_DeactivateDrawBuffers, METH_VARARGS, "V.DeactivateDrawBuffers()\nC++: void DeactivateDrawBuffers()\n\n"}, {"DeactivateReadBuffer", PyvtkOpenGLFramebufferObject_DeactivateReadBuffer, METH_VARARGS, "V.DeactivateReadBuffer()\nC++: void DeactivateReadBuffer()\n\n"}, {"RenderQuad", PyvtkOpenGLFramebufferObject_RenderQuad, METH_VARARGS, "V.RenderQuad(int, int, int, int, vtkShaderProgram,\n vtkOpenGLVertexArrayObject)\nC++: void RenderQuad(int minX, int maxX, int minY, int maxY,\n vtkShaderProgram *program, vtkOpenGLVertexArrayObject *vao)\n\nRenders a quad at the given location with pixel coordinates. This\nmethod is provided as a convenience, since we often render quads\nin a FBO.\n\\pre positive_minX: minX>=0\n\\pre increasing_x: minX<=maxX\n\\pre valid_maxX: maxX=0\n\\pre increasing_y: minY<=maxY\n\\pre valid_maxY: maxY int\nC++: int GetNumberOfColorAttachments(unsigned int mode)\n\nReturn the number of color attachments for the given mode\n"}, {"AddDepthAttachment", PyvtkOpenGLFramebufferObject_AddDepthAttachment, METH_VARARGS, "V.AddDepthAttachment()\nC++: void AddDepthAttachment()\nV.AddDepthAttachment(int)\nC++: void AddDepthAttachment(unsigned int mode)\nV.AddDepthAttachment(int, vtkTextureObject)\nC++: void AddDepthAttachment(unsigned int mode,\n vtkTextureObject *tex)\nV.AddDepthAttachment(int, vtkRenderbuffer)\nC++: void AddDepthAttachment(unsigned int mode,\n vtkRenderbuffer *tex)\n\nDirectly assign/remove a texture/renderbuffer to depth\nattachments.\n"}, {"RemoveDepthAttachment", PyvtkOpenGLFramebufferObject_RemoveDepthAttachment, METH_VARARGS, "V.RemoveDepthAttachment(int)\nC++: void RemoveDepthAttachment(unsigned int mode)\n\nDirectly assign/remove a texture/renderbuffer to depth\nattachments.\n"}, {"PopulateFramebuffer", PyvtkOpenGLFramebufferObject_PopulateFramebuffer, METH_VARARGS, "V.PopulateFramebuffer(int, int) -> bool\nC++: bool PopulateFramebuffer(int width, int height)\nV.PopulateFramebuffer(int, int, bool, int, int, bool, int, int)\n -> bool\nC++: bool PopulateFramebuffer(int width, int height,\n bool useTextures, int numberOfColorAttachments,\n int colorDataType, bool wantDepthAttachment,\n int depthBitplanes, int multisamples)\n\nConvenience method to populate a framebuffer with attachments\ncreated as well. Returns true if a complete valid Frambuffer was\ncreated\n"}, {"GetMaximumNumberOfActiveTargets", PyvtkOpenGLFramebufferObject_GetMaximumNumberOfActiveTargets, METH_VARARGS, "V.GetMaximumNumberOfActiveTargets() -> int\nC++: unsigned int GetMaximumNumberOfActiveTargets()\n\nReturns the maximum number of targets that can be rendered to at\none time. This limits the active targets set by\nSetActiveTargets(). The return value is valid only if GetContext\nis non-null.\n"}, {"GetMaximumNumberOfRenderTargets", PyvtkOpenGLFramebufferObject_GetMaximumNumberOfRenderTargets, METH_VARARGS, "V.GetMaximumNumberOfRenderTargets() -> int\nC++: unsigned int GetMaximumNumberOfRenderTargets()\n\nReturns the maximum number of render targets available. This\nlimits the available attachement points for SetColorAttachment().\nThe return value is valid only if GetContext is non-null.\n"}, {"GetLastSize", PyvtkOpenGLFramebufferObject_GetLastSize, METH_VARARGS, "V.GetLastSize() -> (int, ...)\nC++: int *GetLastSize() override;\nV.GetLastSize(int, int)\nC++: void GetLastSize(int &_arg1, int &_arg2) override;\nV.GetLastSize([int, int])\nC++: void GetLastSize(int _arg[2]) override;\n\nDimensions in pixels of the framebuffer.\n"}, {"IsSupported", PyvtkOpenGLFramebufferObject_IsSupported, METH_VARARGS, "V.IsSupported(vtkOpenGLRenderWindow) -> bool\nC++: static bool IsSupported(vtkOpenGLRenderWindow *)\n\nReturns if the context supports the required extensions.\nExtension will be loaded when the conetxt is set.\n"}, {"CheckFrameBufferStatus", PyvtkOpenGLFramebufferObject_CheckFrameBufferStatus, METH_VARARGS, "V.CheckFrameBufferStatus(int) -> int\nC++: int CheckFrameBufferStatus(unsigned int mode)\n\nValidate the current FBO configuration (attachments, formats,\netc) prints detected errors to vtkErrorMacro.\n"}, {"ReleaseGraphicsResources", PyvtkOpenGLFramebufferObject_ReleaseGraphicsResources, METH_VARARGS, "V.ReleaseGraphicsResources(vtkWindow)\nC++: virtual void ReleaseGraphicsResources(vtkWindow *win)\n\nDeactivate and UnBind\n"}, {"Blit", PyvtkOpenGLFramebufferObject_Blit, METH_VARARGS, "V.Blit((int, int, int, int), (int, int, int, int), int, int)\n -> int\nC++: static int Blit(const int srcExt[4], const int destExt[4],\n unsigned int bits, unsigned int mapping)\n\nCopy from the currently bound READ FBO to the currently bound\nDRAW FBO. The method is static so that one doesn't need to\nccreate an instance when transferring between attachments in the\ndefault FBO.\n"}, {"DownloadColor1", PyvtkOpenGLFramebufferObject_DownloadColor1, METH_VARARGS, "V.DownloadColor1([int, int, int, int], int, int)\n -> vtkPixelBufferObject\nC++: vtkPixelBufferObject *DownloadColor1(int extent[4],\n int vtkType, int channel)\n\nDownload data from the read color attachment of the currently\nbound FBO into the retruned PBO. The PBO must be free'd when you\nare finished with it. The number of components in the PBO is the\nsame as in the name of the specific download function. When\ndownloading a single color channel, the channel must be\nidentified by index, 1->red, 2->green, 3-> blue.\n"}, {"DownloadColor3", PyvtkOpenGLFramebufferObject_DownloadColor3, METH_VARARGS, "V.DownloadColor3([int, int, int, int], int)\n -> vtkPixelBufferObject\nC++: vtkPixelBufferObject *DownloadColor3(int extent[4],\n int vtkType)\n\n"}, {"DownloadColor4", PyvtkOpenGLFramebufferObject_DownloadColor4, METH_VARARGS, "V.DownloadColor4([int, int, int, int], int)\n -> vtkPixelBufferObject\nC++: vtkPixelBufferObject *DownloadColor4(int extent[4],\n int vtkType)\n\n"}, {"DownloadDepth", PyvtkOpenGLFramebufferObject_DownloadDepth, METH_VARARGS, "V.DownloadDepth([int, int, int, int], int) -> vtkPixelBufferObject\nC++: vtkPixelBufferObject *DownloadDepth(int extent[4],\n int vtkType)\n\nDownload data from the depth attachment of the currently bound\nFBO. The returned PBO must be Delete'd by the caller. The\nretruned PBO has one component.\n"}, {"Download", PyvtkOpenGLFramebufferObject_Download, METH_VARARGS, "V.Download([int, int, int, int], int, int, int, int)\n -> vtkPixelBufferObject\nC++: vtkPixelBufferObject *Download(int extent[4], int vtkType,\n int nComps, int oglType, int oglFormat)\nV.Download([int, int, int, int], int, int, int, int,\n vtkPixelBufferObject)\nC++: static void Download(int extent[4], int vtkType, int nComps,\n int oglType, int oglFormat, vtkPixelBufferObject *pbo)\n\nDownload data from the read buffer of the current FBO. These are\nlow level meothds. In the static variant a PBO must be passed in\nsince we don't have access to a context. The static method is\nprovided so that one may download from the default FBO.\n"}, {"GetDrawMode", PyvtkOpenGLFramebufferObject_GetDrawMode, METH_VARARGS, "V.GetDrawMode() -> int\nC++: static unsigned int GetDrawMode()\n\n"}, {"GetReadMode", PyvtkOpenGLFramebufferObject_GetReadMode, METH_VARARGS, "V.GetReadMode() -> int\nC++: static unsigned int GetReadMode()\n\n"}, {"GetBothMode", PyvtkOpenGLFramebufferObject_GetBothMode, METH_VARARGS, "V.GetBothMode() -> int\nC++: static unsigned int GetBothMode()\n\n"}, {"Resize", PyvtkOpenGLFramebufferObject_Resize, METH_VARARGS, "V.Resize(int, int)\nC++: void Resize(int width, int height)\n\nResize all FO attachments\n"}, {"RemoveTexColorAttachments", PyvtkOpenGLFramebufferObject_RemoveTexColorAttachments, METH_VARARGS, "V.RemoveTexColorAttachments(int, int)\nC++: void RemoveTexColorAttachments(unsigned int mode,\n unsigned int num)\n\n"}, {"RemoveTexColorAttachment", PyvtkOpenGLFramebufferObject_RemoveTexColorAttachment, METH_VARARGS, "V.RemoveTexColorAttachment(int, int)\nC++: void RemoveTexColorAttachment(unsigned int mode,\n unsigned int attId)\n\n"}, {"RemoveRenDepthAttachment", PyvtkOpenGLFramebufferObject_RemoveRenDepthAttachment, METH_VARARGS, "V.RemoveRenDepthAttachment(int)\nC++: void RemoveRenDepthAttachment(unsigned int mode)\n\n"}, {"RemoveTexDepthAttachment", PyvtkOpenGLFramebufferObject_RemoveTexDepthAttachment, METH_VARARGS, "V.RemoveTexDepthAttachment(int)\nC++: void RemoveTexDepthAttachment(unsigned int mode)\n\n"}, {nullptr, nullptr, 0, nullptr} }; static PyTypeObject PyvtkOpenGLFramebufferObject_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "vtkRenderingOpenGL2Python.vtkOpenGLFramebufferObject", // 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 PyvtkOpenGLFramebufferObject_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 *PyvtkOpenGLFramebufferObject_StaticNew() { return vtkOpenGLFramebufferObject::New(); } PyObject *PyvtkOpenGLFramebufferObject_ClassNew() { PyVTKClass_Add( &PyvtkOpenGLFramebufferObject_Type, PyvtkOpenGLFramebufferObject_Methods, "vtkOpenGLFramebufferObject", &PyvtkOpenGLFramebufferObject_StaticNew); PyTypeObject *pytype = &PyvtkOpenGLFramebufferObject_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 *)PyvtkFrameBufferObjectBase_ClassNew(); PyType_Ready(pytype); return (PyObject *)pytype; } void PyVTKAddFile_vtkOpenGLFramebufferObject( PyObject *dict) { PyObject *o; o = PyvtkOpenGLFramebufferObject_ClassNew(); if (o && PyDict_SetItemString(dict, "vtkOpenGLFramebufferObject", o) != 0) { Py_DECREF(o); } }