/* 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 "vtkGraphLayoutViewWrap.h"
#include "vtkHierarchicalGraphViewWrap.h"
#include "vtkObjectBaseWrap.h"
#include "vtkDataRepresentationWrap.h"
#include "vtkAlgorithmOutputWrap.h"
#include "vtkDataObjectWrap.h"
#include "../../plus/plus.h"

using namespace v8;

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

VtkHierarchicalGraphViewWrap::VtkHierarchicalGraphViewWrap()
{ }

VtkHierarchicalGraphViewWrap::VtkHierarchicalGraphViewWrap(vtkSmartPointer<vtkHierarchicalGraphView> _native)
{ native = _native; }

VtkHierarchicalGraphViewWrap::~VtkHierarchicalGraphViewWrap()
{ }

void VtkHierarchicalGraphViewWrap::Init(v8::Local<v8::Object> exports)
{
	Nan::SetAccessor(exports, Nan::New("vtkHierarchicalGraphView").ToLocalChecked(), ConstructorGetter);
	Nan::SetAccessor(exports, Nan::New("HierarchicalGraphView").ToLocalChecked(), ConstructorGetter);
}

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

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

	Nan::SetPrototypeMethod(tpl, "ColorGraphEdgesByArrayOff", ColorGraphEdgesByArrayOff);
	Nan::SetPrototypeMethod(tpl, "colorGraphEdgesByArrayOff", ColorGraphEdgesByArrayOff);

	Nan::SetPrototypeMethod(tpl, "ColorGraphEdgesByArrayOn", ColorGraphEdgesByArrayOn);
	Nan::SetPrototypeMethod(tpl, "colorGraphEdgesByArrayOn", ColorGraphEdgesByArrayOn);

	Nan::SetPrototypeMethod(tpl, "GetBundlingStrength", GetBundlingStrength);
	Nan::SetPrototypeMethod(tpl, "getBundlingStrength", GetBundlingStrength);

	Nan::SetPrototypeMethod(tpl, "GetColorGraphEdgesByArray", GetColorGraphEdgesByArray);
	Nan::SetPrototypeMethod(tpl, "getColorGraphEdgesByArray", GetColorGraphEdgesByArray);

	Nan::SetPrototypeMethod(tpl, "GetGraphEdgeColorArrayName", GetGraphEdgeColorArrayName);
	Nan::SetPrototypeMethod(tpl, "getGraphEdgeColorArrayName", GetGraphEdgeColorArrayName);

	Nan::SetPrototypeMethod(tpl, "GetGraphEdgeLabelArrayName", GetGraphEdgeLabelArrayName);
	Nan::SetPrototypeMethod(tpl, "getGraphEdgeLabelArrayName", GetGraphEdgeLabelArrayName);

	Nan::SetPrototypeMethod(tpl, "GetGraphEdgeLabelFontSize", GetGraphEdgeLabelFontSize);
	Nan::SetPrototypeMethod(tpl, "getGraphEdgeLabelFontSize", GetGraphEdgeLabelFontSize);

	Nan::SetPrototypeMethod(tpl, "GetGraphEdgeLabelVisibility", GetGraphEdgeLabelVisibility);
	Nan::SetPrototypeMethod(tpl, "getGraphEdgeLabelVisibility", GetGraphEdgeLabelVisibility);

	Nan::SetPrototypeMethod(tpl, "GetGraphVisibility", GetGraphVisibility);
	Nan::SetPrototypeMethod(tpl, "getGraphVisibility", GetGraphVisibility);

	Nan::SetPrototypeMethod(tpl, "GraphEdgeLabelVisibilityOff", GraphEdgeLabelVisibilityOff);
	Nan::SetPrototypeMethod(tpl, "graphEdgeLabelVisibilityOff", GraphEdgeLabelVisibilityOff);

	Nan::SetPrototypeMethod(tpl, "GraphEdgeLabelVisibilityOn", GraphEdgeLabelVisibilityOn);
	Nan::SetPrototypeMethod(tpl, "graphEdgeLabelVisibilityOn", GraphEdgeLabelVisibilityOn);

	Nan::SetPrototypeMethod(tpl, "GraphVisibilityOff", GraphVisibilityOff);
	Nan::SetPrototypeMethod(tpl, "graphVisibilityOff", GraphVisibilityOff);

	Nan::SetPrototypeMethod(tpl, "GraphVisibilityOn", GraphVisibilityOn);
	Nan::SetPrototypeMethod(tpl, "graphVisibilityOn", GraphVisibilityOn);

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

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

	Nan::SetPrototypeMethod(tpl, "SetBundlingStrength", SetBundlingStrength);
	Nan::SetPrototypeMethod(tpl, "setBundlingStrength", SetBundlingStrength);

	Nan::SetPrototypeMethod(tpl, "SetColorGraphEdgesByArray", SetColorGraphEdgesByArray);
	Nan::SetPrototypeMethod(tpl, "setColorGraphEdgesByArray", SetColorGraphEdgesByArray);

	Nan::SetPrototypeMethod(tpl, "SetGraphEdgeColorArrayName", SetGraphEdgeColorArrayName);
	Nan::SetPrototypeMethod(tpl, "setGraphEdgeColorArrayName", SetGraphEdgeColorArrayName);

	Nan::SetPrototypeMethod(tpl, "SetGraphEdgeColorToSplineFraction", SetGraphEdgeColorToSplineFraction);
	Nan::SetPrototypeMethod(tpl, "setGraphEdgeColorToSplineFraction", SetGraphEdgeColorToSplineFraction);

	Nan::SetPrototypeMethod(tpl, "SetGraphEdgeLabelArrayName", SetGraphEdgeLabelArrayName);
	Nan::SetPrototypeMethod(tpl, "setGraphEdgeLabelArrayName", SetGraphEdgeLabelArrayName);

	Nan::SetPrototypeMethod(tpl, "SetGraphEdgeLabelFontSize", SetGraphEdgeLabelFontSize);
	Nan::SetPrototypeMethod(tpl, "setGraphEdgeLabelFontSize", SetGraphEdgeLabelFontSize);

	Nan::SetPrototypeMethod(tpl, "SetGraphEdgeLabelVisibility", SetGraphEdgeLabelVisibility);
	Nan::SetPrototypeMethod(tpl, "setGraphEdgeLabelVisibility", SetGraphEdgeLabelVisibility);

	Nan::SetPrototypeMethod(tpl, "SetGraphFromInput", SetGraphFromInput);
	Nan::SetPrototypeMethod(tpl, "setGraphFromInput", SetGraphFromInput);

	Nan::SetPrototypeMethod(tpl, "SetGraphFromInputConnection", SetGraphFromInputConnection);
	Nan::SetPrototypeMethod(tpl, "setGraphFromInputConnection", SetGraphFromInputConnection);

	Nan::SetPrototypeMethod(tpl, "SetGraphVisibility", SetGraphVisibility);
	Nan::SetPrototypeMethod(tpl, "setGraphVisibility", SetGraphVisibility);

	Nan::SetPrototypeMethod(tpl, "SetHierarchyFromInput", SetHierarchyFromInput);
	Nan::SetPrototypeMethod(tpl, "setHierarchyFromInput", SetHierarchyFromInput);

	Nan::SetPrototypeMethod(tpl, "SetHierarchyFromInputConnection", SetHierarchyFromInputConnection);
	Nan::SetPrototypeMethod(tpl, "setHierarchyFromInputConnection", SetHierarchyFromInputConnection);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void VtkHierarchicalGraphViewWrap::SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkObjectBaseWrap::ptpl))->HasInstance(info[0]))
	{
		VtkObjectBaseWrap *a0 = ObjectWrap::Unwrap<VtkObjectBaseWrap>(info[0]->ToObject());
		vtkHierarchicalGraphView * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SafeDownCast(
			(vtkObjectBase *) a0->native.GetPointer()
		);
		VtkHierarchicalGraphViewWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkHierarchicalGraphViewWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkHierarchicalGraphViewWrap *w = new VtkHierarchicalGraphViewWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

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

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

void VtkHierarchicalGraphViewWrap::SetGraphEdgeColorArrayName(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsString())
	{
		Nan::Utf8String a0(info[0]);
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetGraphEdgeColorArrayName(
			*a0
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

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

void VtkHierarchicalGraphViewWrap::SetGraphEdgeLabelArrayName(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsString())
	{
		Nan::Utf8String a0(info[0]);
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetGraphEdgeLabelArrayName(
			*a0
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

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

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

void VtkHierarchicalGraphViewWrap::SetGraphFromInput(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkDataObjectWrap::ptpl))->HasInstance(info[0]))
	{
		VtkDataObjectWrap *a0 = ObjectWrap::Unwrap<VtkDataObjectWrap>(info[0]->ToObject());
		vtkDataRepresentation * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SetGraphFromInput(
			(vtkDataObject *) a0->native.GetPointer()
		);
		VtkDataRepresentationWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkDataRepresentationWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkDataRepresentationWrap *w = new VtkDataRepresentationWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkHierarchicalGraphViewWrap::SetGraphFromInputConnection(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkAlgorithmOutputWrap::ptpl))->HasInstance(info[0]))
	{
		VtkAlgorithmOutputWrap *a0 = ObjectWrap::Unwrap<VtkAlgorithmOutputWrap>(info[0]->ToObject());
		vtkDataRepresentation * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SetGraphFromInputConnection(
			(vtkAlgorithmOutput *) a0->native.GetPointer()
		);
		VtkDataRepresentationWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkDataRepresentationWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkDataRepresentationWrap *w = new VtkDataRepresentationWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

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

void VtkHierarchicalGraphViewWrap::SetHierarchyFromInput(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkDataObjectWrap::ptpl))->HasInstance(info[0]))
	{
		VtkDataObjectWrap *a0 = ObjectWrap::Unwrap<VtkDataObjectWrap>(info[0]->ToObject());
		vtkDataRepresentation * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SetHierarchyFromInput(
			(vtkDataObject *) a0->native.GetPointer()
		);
		VtkDataRepresentationWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkDataRepresentationWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkDataRepresentationWrap *w = new VtkDataRepresentationWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkHierarchicalGraphViewWrap::SetHierarchyFromInputConnection(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkHierarchicalGraphViewWrap *wrapper = ObjectWrap::Unwrap<VtkHierarchicalGraphViewWrap>(info.Holder());
	vtkHierarchicalGraphView *native = (vtkHierarchicalGraphView *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkAlgorithmOutputWrap::ptpl))->HasInstance(info[0]))
	{
		VtkAlgorithmOutputWrap *a0 = ObjectWrap::Unwrap<VtkAlgorithmOutputWrap>(info[0]->ToObject());
		vtkDataRepresentation * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SetHierarchyFromInputConnection(
			(vtkAlgorithmOutput *) a0->native.GetPointer()
		);
		VtkDataRepresentationWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkDataRepresentationWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkDataRepresentationWrap *w = new VtkDataRepresentationWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

