
%MappedType @VTK_CLASS@ /AllowNone, NoRelease/
{
%TypeHeaderCode
#include "@VTK_CLASS@.h"
#include "vtkPythonUtil.h"
%End

%ConvertToTypeCode
  if(!sipIsErr)
    {
    return NULL == vtkPythonUtil::GetPointerFromObject(sipPy, "@VTK_CLASS@") ? 0 : 1;
    }

  *sipCppPtr = static_cast<@VTK_CLASS@*>(vtkPythonUtil::GetPointerFromObject(sipPy, "@VTK_CLASS@"));
  return 0;
%End

%ConvertFromTypeCode
  return vtkPythonUtil::GetObjectFromPointer(sipCpp);
%End
};
