/* 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 "vtkPolyDataAlgorithmWrap.h"
#include "vtkRectilinearSynchronizedTemplatesWrap.h"
#include "vtkObjectWrap.h"
#include "vtkRectilinearGridWrap.h"
#include "../../plus/plus.h"

using namespace v8;

extern Nan::Persistent<v8::Object> vtkNodeJsNoWrap;
Nan::Persistent<v8::FunctionTemplate> VtkRectilinearSynchronizedTemplatesWrap::ptpl;

VtkRectilinearSynchronizedTemplatesWrap::VtkRectilinearSynchronizedTemplatesWrap()
{ }

VtkRectilinearSynchronizedTemplatesWrap::VtkRectilinearSynchronizedTemplatesWrap(vtkSmartPointer<vtkRectilinearSynchronizedTemplates> _native)
{ native = _native; }

VtkRectilinearSynchronizedTemplatesWrap::~VtkRectilinearSynchronizedTemplatesWrap()
{ }

void VtkRectilinearSynchronizedTemplatesWrap::Init(v8::Local<v8::Object> exports)
{
	Nan::SetAccessor(exports, Nan::New("vtkRectilinearSynchronizedTemplates").ToLocalChecked(), ConstructorGetter);
	Nan::SetAccessor(exports, Nan::New("RectilinearSynchronizedTemplates").ToLocalChecked(), ConstructorGetter);
}

void VtkRectilinearSynchronizedTemplatesWrap::ConstructorGetter(
	v8::Local<v8::String> property,
	const Nan::PropertyCallbackInfo<v8::Value>& info)
{
	InitPtpl();
	info.GetReturnValue().Set(Nan::New(ptpl)->GetFunction());
}

void VtkRectilinearSynchronizedTemplatesWrap::InitPtpl()
{
	if (!ptpl.IsEmpty()) return;
	v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
	VtkPolyDataAlgorithmWrap::InitPtpl( );
	tpl->Inherit(Nan::New<FunctionTemplate>(VtkPolyDataAlgorithmWrap::ptpl));
	tpl->SetClassName(Nan::New("VtkRectilinearSynchronizedTemplatesWrap").ToLocalChecked());
	tpl->InstanceTemplate()->SetInternalFieldCount(1);

	Nan::SetPrototypeMethod(tpl, "ComputeGradientsOff", ComputeGradientsOff);
	Nan::SetPrototypeMethod(tpl, "computeGradientsOff", ComputeGradientsOff);

	Nan::SetPrototypeMethod(tpl, "ComputeGradientsOn", ComputeGradientsOn);
	Nan::SetPrototypeMethod(tpl, "computeGradientsOn", ComputeGradientsOn);

	Nan::SetPrototypeMethod(tpl, "ComputeNormalsOff", ComputeNormalsOff);
	Nan::SetPrototypeMethod(tpl, "computeNormalsOff", ComputeNormalsOff);

	Nan::SetPrototypeMethod(tpl, "ComputeNormalsOn", ComputeNormalsOn);
	Nan::SetPrototypeMethod(tpl, "computeNormalsOn", ComputeNormalsOn);

	Nan::SetPrototypeMethod(tpl, "ComputeScalarsOff", ComputeScalarsOff);
	Nan::SetPrototypeMethod(tpl, "computeScalarsOff", ComputeScalarsOff);

	Nan::SetPrototypeMethod(tpl, "ComputeScalarsOn", ComputeScalarsOn);
	Nan::SetPrototypeMethod(tpl, "computeScalarsOn", ComputeScalarsOn);

	Nan::SetPrototypeMethod(tpl, "ComputeSpacing", ComputeSpacing);
	Nan::SetPrototypeMethod(tpl, "computeSpacing", ComputeSpacing);

	Nan::SetPrototypeMethod(tpl, "GenerateTrianglesOff", GenerateTrianglesOff);
	Nan::SetPrototypeMethod(tpl, "generateTrianglesOff", GenerateTrianglesOff);

	Nan::SetPrototypeMethod(tpl, "GenerateTrianglesOn", GenerateTrianglesOn);
	Nan::SetPrototypeMethod(tpl, "generateTrianglesOn", GenerateTrianglesOn);

	Nan::SetPrototypeMethod(tpl, "GenerateValues", GenerateValues);
	Nan::SetPrototypeMethod(tpl, "generateValues", GenerateValues);

	Nan::SetPrototypeMethod(tpl, "GetArrayComponent", GetArrayComponent);
	Nan::SetPrototypeMethod(tpl, "getArrayComponent", GetArrayComponent);

	Nan::SetPrototypeMethod(tpl, "GetClassName", GetClassName);
	Nan::SetPrototypeMethod(tpl, "getClassName", GetClassName);

	Nan::SetPrototypeMethod(tpl, "GetComputeGradients", GetComputeGradients);
	Nan::SetPrototypeMethod(tpl, "getComputeGradients", GetComputeGradients);

	Nan::SetPrototypeMethod(tpl, "GetComputeNormals", GetComputeNormals);
	Nan::SetPrototypeMethod(tpl, "getComputeNormals", GetComputeNormals);

	Nan::SetPrototypeMethod(tpl, "GetComputeScalars", GetComputeScalars);
	Nan::SetPrototypeMethod(tpl, "getComputeScalars", GetComputeScalars);

	Nan::SetPrototypeMethod(tpl, "GetGenerateTriangles", GetGenerateTriangles);
	Nan::SetPrototypeMethod(tpl, "getGenerateTriangles", GetGenerateTriangles);

	Nan::SetPrototypeMethod(tpl, "GetMTime", GetMTime);
	Nan::SetPrototypeMethod(tpl, "getMTime", GetMTime);

	Nan::SetPrototypeMethod(tpl, "GetNumberOfContours", GetNumberOfContours);
	Nan::SetPrototypeMethod(tpl, "getNumberOfContours", GetNumberOfContours);

	Nan::SetPrototypeMethod(tpl, "GetValue", GetValue);
	Nan::SetPrototypeMethod(tpl, "getValue", GetValue);

	Nan::SetPrototypeMethod(tpl, "IsA", IsA);
	Nan::SetPrototypeMethod(tpl, "isA", IsA);

	Nan::SetPrototypeMethod(tpl, "NewInstance", NewInstance);
	Nan::SetPrototypeMethod(tpl, "newInstance", NewInstance);

	Nan::SetPrototypeMethod(tpl, "SafeDownCast", SafeDownCast);
	Nan::SetPrototypeMethod(tpl, "safeDownCast", SafeDownCast);

	Nan::SetPrototypeMethod(tpl, "SetArrayComponent", SetArrayComponent);
	Nan::SetPrototypeMethod(tpl, "setArrayComponent", SetArrayComponent);

	Nan::SetPrototypeMethod(tpl, "SetComputeGradients", SetComputeGradients);
	Nan::SetPrototypeMethod(tpl, "setComputeGradients", SetComputeGradients);

	Nan::SetPrototypeMethod(tpl, "SetComputeNormals", SetComputeNormals);
	Nan::SetPrototypeMethod(tpl, "setComputeNormals", SetComputeNormals);

	Nan::SetPrototypeMethod(tpl, "SetComputeScalars", SetComputeScalars);
	Nan::SetPrototypeMethod(tpl, "setComputeScalars", SetComputeScalars);

	Nan::SetPrototypeMethod(tpl, "SetGenerateTriangles", SetGenerateTriangles);
	Nan::SetPrototypeMethod(tpl, "setGenerateTriangles", SetGenerateTriangles);

	Nan::SetPrototypeMethod(tpl, "SetNumberOfContours", SetNumberOfContours);
	Nan::SetPrototypeMethod(tpl, "setNumberOfContours", SetNumberOfContours);

	Nan::SetPrototypeMethod(tpl, "SetValue", SetValue);
	Nan::SetPrototypeMethod(tpl, "setValue", SetValue);

#ifdef VTK_NODE_PLUS_VTKRECTILINEARSYNCHRONIZEDTEMPLATESWRAP_INITPTPL
	VTK_NODE_PLUS_VTKRECTILINEARSYNCHRONIZEDTEMPLATESWRAP_INITPTPL
#endif
	ptpl.Reset( tpl );
}

void VtkRectilinearSynchronizedTemplatesWrap::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<vtkRectilinearSynchronizedTemplates> native = vtkSmartPointer<vtkRectilinearSynchronizedTemplates>::New();
		VtkRectilinearSynchronizedTemplatesWrap* obj = new VtkRectilinearSynchronizedTemplatesWrap(native);
		obj->Wrap(info.This());
	}
	else
	{
		if(info[0]->ToObject() != vtkNodeJsNoWrap )
		{
			Nan::ThrowError("Parameter Error");
			return;
		}
	}

	info.GetReturnValue().Set(info.This());
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeGradientsOff(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeGradientsOff();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeGradientsOn(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeGradientsOn();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeNormalsOff(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeNormalsOff();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeNormalsOn(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeNormalsOn();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeScalarsOff(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeScalarsOff();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeScalarsOn(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->ComputeScalarsOn();
}

void VtkRectilinearSynchronizedTemplatesWrap::ComputeSpacing(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	size_t i;
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkRectilinearGridWrap::ptpl))->HasInstance(info[0]))
	{
		VtkRectilinearGridWrap *a0 = ObjectWrap::Unwrap<VtkRectilinearGridWrap>(info[0]->ToObject());
		if(info.Length() > 1 && info[1]->IsInt32())
		{
			if(info.Length() > 2 && info[2]->IsInt32())
			{
				if(info.Length() > 3 && info[3]->IsInt32())
				{
					if(info.Length() > 4 && info[4]->IsInt32Array())
					{
						v8::Local<v8::Int32Array>a4(v8::Local<v8::Int32Array>::Cast(info[4]->ToObject()));
						if( a4->Length() < 6 )
						{
							Nan::ThrowError("Array too short.");
							return;
						}

						if(info.Length() > 5 && info[5]->IsFloat64Array())
						{
							v8::Local<v8::Float64Array>a5(v8::Local<v8::Float64Array>::Cast(info[5]->ToObject()));
							if( a5->Length() < 6 )
							{
								Nan::ThrowError("Array too short.");
								return;
							}

														if(info.Length() != 6)
							{
								Nan::ThrowError("Too many parameters.");
								return;
							}
							native->ComputeSpacing(
								(vtkRectilinearGrid *) a0->native.GetPointer(),
								info[1]->Int32Value(),
								info[2]->Int32Value(),
								info[3]->Int32Value(),
								(int *)(a4->Buffer()->GetContents().Data()),
								(double *)(a5->Buffer()->GetContents().Data())
							);
							return;
						}
						else if(info.Length() > 5 && info[5]->IsArray())
						{
							v8::Local<v8::Array>a5(v8::Local<v8::Array>::Cast(info[5]->ToObject()));
							double b5[6];
							if( a5->Length() < 6 )
							{
								Nan::ThrowError("Array too short.");
								return;
							}

							for( i = 0; i < 6; i++ )
							{
								if( !a5->Get(i)->IsNumber() )
								{
									Nan::ThrowError("Array contents invalid.");
									return;
								}
								b5[i] = a5->Get(i)->NumberValue();
							}
														if(info.Length() != 6)
							{
								Nan::ThrowError("Too many parameters.");
								return;
							}
							native->ComputeSpacing(
								(vtkRectilinearGrid *) a0->native.GetPointer(),
								info[1]->Int32Value(),
								info[2]->Int32Value(),
								info[3]->Int32Value(),
								(int *)(a4->Buffer()->GetContents().Data()),
								b5
							);
							return;
						}
					}
					else if(info.Length() > 4 && info[4]->IsArray())
					{
						v8::Local<v8::Array>a4(v8::Local<v8::Array>::Cast(info[4]->ToObject()));
						int b4[6];
						if( a4->Length() < 6 )
						{
							Nan::ThrowError("Array too short.");
							return;
						}

						for( i = 0; i < 6; i++ )
						{
							if( !a4->Get(i)->IsInt32() )
							{
								Nan::ThrowError("Array contents invalid.");
								return;
							}
							b4[i] = a4->Get(i)->Int32Value();
						}
						if(info.Length() > 5 && info[5]->IsArray())
						{
							v8::Local<v8::Array>a5(v8::Local<v8::Array>::Cast(info[5]->ToObject()));
							double b5[6];
							if( a5->Length() < 6 )
							{
								Nan::ThrowError("Array too short.");
								return;
							}

							for( i = 0; i < 6; i++ )
							{
								if( !a5->Get(i)->IsNumber() )
								{
									Nan::ThrowError("Array contents invalid.");
									return;
								}
								b5[i] = a5->Get(i)->NumberValue();
							}
														if(info.Length() != 6)
							{
								Nan::ThrowError("Too many parameters.");
								return;
							}
							native->ComputeSpacing(
								(vtkRectilinearGrid *) a0->native.GetPointer(),
								info[1]->Int32Value(),
								info[2]->Int32Value(),
								info[3]->Int32Value(),
								b4,
								b5
							);
							return;
						}
						else if(info.Length() > 5 && info[5]->IsFloat64Array())
						{
							v8::Local<v8::Float64Array>a5(v8::Local<v8::Float64Array>::Cast(info[5]->ToObject()));
							if( a5->Length() < 6 )
							{
								Nan::ThrowError("Array too short.");
								return;
							}

														if(info.Length() != 6)
							{
								Nan::ThrowError("Too many parameters.");
								return;
							}
							native->ComputeSpacing(
								(vtkRectilinearGrid *) a0->native.GetPointer(),
								info[1]->Int32Value(),
								info[2]->Int32Value(),
								info[3]->Int32Value(),
								b4,
								(double *)(a5->Buffer()->GetContents().Data())
							);
							return;
						}
					}
				}
			}
		}
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::GenerateTrianglesOff(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->GenerateTrianglesOff();
}

void VtkRectilinearSynchronizedTemplatesWrap::GenerateTrianglesOn(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
		if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	native->GenerateTrianglesOn();
}

void VtkRectilinearSynchronizedTemplatesWrap::GenerateValues(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	size_t i;
	if(info.Length() > 0 && info[0]->IsInt32())
	{
		if(info.Length() > 1 && info[1]->IsFloat64Array())
		{
			v8::Local<v8::Float64Array>a1(v8::Local<v8::Float64Array>::Cast(info[1]->ToObject()));
			if( a1->Length() < 2 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

						if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			native->GenerateValues(
				info[0]->Int32Value(),
				(double *)(a1->Buffer()->GetContents().Data())
			);
			return;
		}
		else if(info.Length() > 1 && info[1]->IsArray())
		{
			v8::Local<v8::Array>a1(v8::Local<v8::Array>::Cast(info[1]->ToObject()));
			double b1[2];
			if( a1->Length() < 2 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

			for( i = 0; i < 2; i++ )
			{
				if( !a1->Get(i)->IsNumber() )
				{
					Nan::ThrowError("Array contents invalid.");
					return;
				}
				b1[i] = a1->Get(i)->NumberValue();
			}
						if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			native->GenerateValues(
				info[0]->Int32Value(),
				b1
			);
			return;
		}
		else if(info.Length() > 1 && info[1]->IsNumber())
		{
			if(info.Length() > 2 && info[2]->IsNumber())
			{
								if(info.Length() != 3)
				{
					Nan::ThrowError("Too many parameters.");
					return;
				}
				native->GenerateValues(
					info[0]->Int32Value(),
					info[1]->NumberValue(),
					info[2]->NumberValue()
				);
				return;
			}
		}
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::GetArrayComponent(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetArrayComponent();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetClassName(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)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 VtkRectilinearSynchronizedTemplatesWrap::GetComputeGradients(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetComputeGradients();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetComputeNormals(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetComputeNormals();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetComputeScalars(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetComputeScalars();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetGenerateTriangles(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetGenerateTriangles();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetMTime(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	unsigned int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetMTime();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetNumberOfContours(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	int r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetNumberOfContours();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkRectilinearSynchronizedTemplatesWrap::GetValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
		double r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->GetValue(
			info[0]->Int32Value()
		);
		info.GetReturnValue().Set(Nan::New(r));
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::IsA(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)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 VtkRectilinearSynchronizedTemplatesWrap::NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	vtkRectilinearSynchronizedTemplates * r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->NewInstance();
	VtkRectilinearSynchronizedTemplatesWrap::InitPtpl();
	v8::Local<v8::Value> argv[1] =
		{ Nan::New(vtkNodeJsNoWrap) };
	v8::Local<v8::Function> cons =
		Nan::New<v8::FunctionTemplate>(VtkRectilinearSynchronizedTemplatesWrap::ptpl)->GetFunction();
	v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
	VtkRectilinearSynchronizedTemplatesWrap *w = new VtkRectilinearSynchronizedTemplatesWrap();
	w->native = r;
	w->Wrap(wo);
	info.GetReturnValue().Set(wo);
}

void VtkRectilinearSynchronizedTemplatesWrap::SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)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());
		vtkRectilinearSynchronizedTemplates * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SafeDownCast(
			(vtkObject *) a0->native.GetPointer()
		);
		VtkRectilinearSynchronizedTemplatesWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkRectilinearSynchronizedTemplatesWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkRectilinearSynchronizedTemplatesWrap *w = new VtkRectilinearSynchronizedTemplatesWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetArrayComponent(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetArrayComponent(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetComputeGradients(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetComputeGradients(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetComputeNormals(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetComputeNormals(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetComputeScalars(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetComputeScalars(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetGenerateTriangles(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetGenerateTriangles(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetNumberOfContours(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetNumberOfContours(
			info[0]->Int32Value()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkRectilinearSynchronizedTemplatesWrap::SetValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkRectilinearSynchronizedTemplatesWrap *wrapper = ObjectWrap::Unwrap<VtkRectilinearSynchronizedTemplatesWrap>(info.Holder());
	vtkRectilinearSynchronizedTemplates *native = (vtkRectilinearSynchronizedTemplates *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsInt32())
	{
		if(info.Length() > 1 && info[1]->IsNumber())
		{
						if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			native->SetValue(
				info[0]->Int32Value(),
				info[1]->NumberValue()
			);
			return;
		}
	}
	Nan::ThrowError("Parameter mismatch");
}

