text: /* this file has been autogenerated by vtkNodeJsWrap */
  /* editing this might proof futile */
  
  #define VTK_WRAPPING_CXX
  #define VTK_STREAMS_FWD_ONLY
  #include <nan.h>
  
  #include "vtkRenderPassWrap.h"
  #include "vtkShadowMapBakerPassWrap.h"
  #include "vtkObjectWrap.h"
  #include "vtkWindowWrap.h"
  #include "vtkLightWrap.h"
  #include "../../plus/plus.h"
  
  using namespace v8;
  
  extern Nan::Persistent<v8::Object> vtkNodeJsNoWrap;
  Nan::Persistent<v8::FunctionTemplate> VtkShadowMapBakerPassWrap::ptpl;
  
  VtkShadowMapBakerPassWrap::VtkShadowMapBakerPassWrap()
  { }
  
  VtkShadowMapBakerPassWrap::VtkShadowMapBakerPassWrap(vtkSmartPointer<vtkShadowMapBakerPass> _native)
  { native = _native; }
  
  VtkShadowMapBakerPassWrap::~VtkShadowMapBakerPassWrap()
  { }
  
  void VtkShadowMapBakerPassWrap::Init(v8::Local<v8::Object> exports)
  {
  	Nan::SetAccessor(exports, Nan::New("vtkShadowMapBakerPass").ToLocalChecked(), ConstructorGetter);
  	Nan::SetAccessor(exports, Nan::New("ShadowMapBakerPass").ToLocalChecked(), ConstructorGetter);
  }
  
  void VtkShadowMapBakerPassWrap::ConstructorGetter(
  	v8::Local<v8::String> property,
  	const Nan::PropertyCallbackInfo<v8::Value>& info)
  {
  	InitPtpl();
  	info.GetReturnValue().Set(Nan::New(ptpl)->GetFunction());
  }
  
  void VtkShadowMapBakerPassWrap::InitPtpl()
  {
  	if (!ptpl.IsEmpty()) return;
  	v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
  	VtkRenderPassWrap::InitPtpl( );
  	tpl->Inherit(Nan::New<FunctionTemplate>(VtkRenderPassWrap::ptpl));
  	tpl->SetClassName(Nan::New("VtkShadowMapBakerPassWrap").ToLocalChecked());
  	tpl->InstanceTemplate()->SetInternalFieldCount(1);
  
  	Nan::SetPrototypeMethod(tpl, "GetClassName", GetClassName);
  	Nan::SetPrototypeMethod(tpl, "getClassName", GetClassName);
  
  	Nan::SetPrototypeMethod(tpl, "GetCompositeZPass", GetCompositeZPass);
  	Nan::SetPrototypeMethod(tpl, "getCompositeZPass", GetCompositeZPass);
  
  	Nan::SetPrototypeMethod(tpl, "GetHasShadows", GetHasShadows);
  	Nan::SetPrototypeMethod(tpl, "getHasShadows", GetHasShadows);
  
  	Nan::SetPrototypeMethod(tpl, "GetNeedUpdate", GetNeedUpdate);
  	Nan::SetPrototypeMethod(tpl, "getNeedUpdate", GetNeedUpdate);
  
  	Nan::SetPrototypeMethod(tpl, "GetOpaqueSequence", GetOpaqueSequence);
  	Nan::SetPrototypeMethod(tpl, "getOpaqueSequence", GetOpaqueSequence);
  
  	Nan::SetPrototypeMethod(tpl, "GetResolution", GetResolution);
  	Nan::SetPrototypeMethod(tpl, "getResolution", GetResolution);
  
  	Nan::SetPrototypeMethod(tpl, "IsA", IsA);
  	Nan::SetPrototypeMethod(tpl, "isA", IsA);
  
  	Nan::SetPrototypeMethod(tpl, "LightCreatesShadow", LightCreatesShadow);
  	Nan::SetPrototypeMethod(tpl, "lightCreatesShadow", LightCreatesShadow);
  
  	Nan::SetPrototypeMethod(tpl, "NewInstance", NewInstance);
  	Nan::SetPrototypeMethod(tpl, "newInstance", NewInstance);
  
  	Nan::SetPrototypeMethod(tpl, "ReleaseGraphicsResources", ReleaseGraphicsResources);
  	Nan::SetPrototypeMethod(tpl, "releaseGraphicsResources", ReleaseGraphicsResources);
  
  	Nan::SetPrototypeMethod(tpl, "SafeDownCast", SafeDownCast);
  	Nan::SetPrototypeMethod(tpl, "safeDownCast", SafeDownCast);
  
  	Nan::SetPrototypeMethod(tpl, "SetCompositeZPass", SetCompositeZPass);
  	Nan::SetPrototypeMethod(tpl, "setCompositeZPass", SetCompositeZPass);
  
  	Nan::SetPrototypeMethod(tpl, "SetOpaqueSequence", SetOpaqueSequence);
  	Nan::SetPrototypeMethod(tpl, "setOpaqueSequence", SetOpaqueSequence);
  
  	Nan::SetPrototypeMethod(tpl, "SetResolution", SetResolution);
  	Nan::SetPrototypeMethod(tpl, "setResolution", SetResolution);
  
  	Nan::SetPrototypeMethod(tpl, "SetUpToDate", SetUpToDate);
  	Nan::SetPrototypeMethod(tpl, "setUpToDate", SetUpToDate);
  
  #ifdef VTK_NODE_PLUS_VTKSHADOWMAPBAKERPASSWRAP_INITPTPL
  	VTK_NODE_PLUS_VTKSHADOWMAPBAKERPASSWRAP_INITPTPL
  #endif
  	ptpl.Reset( tpl );
  }
  
  void VtkShadowMapBakerPassWrap::New(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	if(!info.IsConstructCall())
  	{
  		Nan::ThrowError("Constructor not called in a construct call.");
  		return;
  	}
  
  	if(info.Length() == 0)
  	{
  		vtkSmartPointer<vtkShadowMapBakerPass> native = vtkSmartPointer<vtkShadowMapBakerPass>::New();
  		VtkShadowMapBakerPassWrap* obj = new VtkShadowMapBakerPassWrap(native);
  		obj->Wrap(info.This());
  	}
  	else
  	{
  		if(info[0]->ToObject() != vtkNodeJsNoWrap )
  		{
  			Nan::ThrowError("Parameter Error");
  			return;
  		}
  	}
  
  	info.GetReturnValue().Set(info.This());
  }
  
  void VtkShadowMapBakerPassWrap::GetClassName(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	char const * r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetClassName();
  	info.GetReturnValue().Set(Nan::New(r).ToLocalChecked());
  }
  
  void VtkShadowMapBakerPassWrap::GetCompositeZPass(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	vtkRenderPass * r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetCompositeZPass();
  	VtkRenderPassWrap::InitPtpl();
  	v8::Local<v8::Value> argv[1] =
  		{ Nan::New(vtkNodeJsNoWrap) };
  	v8::Local<v8::Function> cons =
  		Nan::New<v8::FunctionTemplate>(VtkRenderPassWrap::ptpl)->GetFunction();
  	v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
  	VtkRenderPassWrap *w = new VtkRenderPassWrap();
  	w->native = r;
  	w->Wrap(wo);
  	info.GetReturnValue().Set(wo);
  }
  
  void VtkShadowMapBakerPassWrap::GetHasShadows(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	bool r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetHasShadows();
  	info.GetReturnValue().Set(Nan::New(r));
  }
  
  void VtkShadowMapBakerPassWrap::GetNeedUpdate(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	bool r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetNeedUpdate();
  	info.GetReturnValue().Set(Nan::New(r));
  }
  
  void VtkShadowMapBakerPassWrap::GetOpaqueSequence(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	vtkRenderPass * r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetOpaqueSequence();
  	VtkRenderPassWrap::InitPtpl();
  	v8::Local<v8::Value> argv[1] =
  		{ Nan::New(vtkNodeJsNoWrap) };
  	v8::Local<v8::Function> cons =
  		Nan::New<v8::FunctionTemplate>(VtkRenderPassWrap::ptpl)->GetFunction();
  	v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
  	VtkRenderPassWrap *w = new VtkRenderPassWrap();
  	w->native = r;
  	w->Wrap(wo);
  	info.GetReturnValue().Set(wo);
  }
  
  void VtkShadowMapBakerPassWrap::GetResolution(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	unsigned int r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->GetResolution();
  	info.GetReturnValue().Set(Nan::New(r));
  }
  
  void VtkShadowMapBakerPassWrap::IsA(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsString())
  	{
  		Nan::Utf8String a0(info[0]);
  		int r;
  		if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		r = native->IsA(
  			*a0
  		);
  		info.GetReturnValue().Set(Nan::New(r));
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::LightCreatesShadow(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkLightWrap::ptpl))->HasInstance(info[0]))
  	{
  		VtkLightWrap *a0 = ObjectWrap::Unwrap<VtkLightWrap>(info[0]->ToObject());
  		bool r;
  		if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		r = native->LightCreatesShadow(
  			(vtkLight *) a0->native.GetPointer()
  		);
  		info.GetReturnValue().Set(Nan::New(r));
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	vtkShadowMapBakerPass * r;
  	if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	r = native->NewInstance();
  	VtkShadowMapBakerPassWrap::InitPtpl();
  	v8::Local<v8::Value> argv[1] =
  		{ Nan::New(vtkNodeJsNoWrap) };
  	v8::Local<v8::Function> cons =
  		Nan::New<v8::FunctionTemplate>(VtkShadowMapBakerPassWrap::ptpl)->GetFunction();
  	v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
  	VtkShadowMapBakerPassWrap *w = new VtkShadowMapBakerPassWrap();
  	w->native = r;
  	w->Wrap(wo);
  	info.GetReturnValue().Set(wo);
  }
  
  void VtkShadowMapBakerPassWrap::ReleaseGraphicsResources(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkWindowWrap::ptpl))->HasInstance(info[0]))
  	{
  		VtkWindowWrap *a0 = ObjectWrap::Unwrap<VtkWindowWrap>(info[0]->ToObject());
  				if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		native->ReleaseGraphicsResources(
  			(vtkWindow *) a0->native.GetPointer()
  		);
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkObjectWrap::ptpl))->HasInstance(info[0]))
  	{
  		VtkObjectWrap *a0 = ObjectWrap::Unwrap<VtkObjectWrap>(info[0]->ToObject());
  		vtkShadowMapBakerPass * r;
  		if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		r = native->SafeDownCast(
  			(vtkObject *) a0->native.GetPointer()
  		);
  		VtkShadowMapBakerPassWrap::InitPtpl();
  		v8::Local<v8::Value> argv[1] =
  			{ Nan::New(vtkNodeJsNoWrap) };
  		v8::Local<v8::Function> cons =
  			Nan::New<v8::FunctionTemplate>(VtkShadowMapBakerPassWrap::ptpl)->GetFunction();
  		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
  		VtkShadowMapBakerPassWrap *w = new VtkShadowMapBakerPassWrap();
  		w->native = r;
  		w->Wrap(wo);
  		info.GetReturnValue().Set(wo);
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::SetCompositeZPass(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkRenderPassWrap::ptpl))->HasInstance(info[0]))
  	{
  		VtkRenderPassWrap *a0 = ObjectWrap::Unwrap<VtkRenderPassWrap>(info[0]->ToObject());
  				if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		native->SetCompositeZPass(
  			(vtkRenderPass *) a0->native.GetPointer()
  		);
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::SetOpaqueSequence(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkRenderPassWrap::ptpl))->HasInstance(info[0]))
  	{
  		VtkRenderPassWrap *a0 = ObjectWrap::Unwrap<VtkRenderPassWrap>(info[0]->ToObject());
  				if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		native->SetOpaqueSequence(
  			(vtkRenderPass *) a0->native.GetPointer()
  		);
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::SetResolution(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  	if(info.Length() > 0 && info[0]->IsUint32())
  	{
  				if(info.Length() != 1)
  		{
  			Nan::ThrowError("Too many parameters.");
  			return;
  		}
  		native->SetResolution(
  			info[0]->Uint32Value()
  		);
  		return;
  	}
  	Nan::ThrowError("Parameter mismatch");
  }
  
  void VtkShadowMapBakerPassWrap::SetUpToDate(const Nan::FunctionCallbackInfo<v8::Value>& info)
  {
  	VtkShadowMapBakerPassWrap *wrapper = ObjectWrap::Unwrap<VtkShadowMapBakerPassWrap>(info.Holder());
  	vtkShadowMapBakerPass *native = (vtkShadowMapBakerPass *)wrapper->native.GetPointer();
  		if(info.Length() != 0)
  	{
  		Nan::ThrowError("Too many parameters.");
  		return;
  	}
  	native->SetUpToDate();
  }
  
  