add setInheritance method to api
Merge branch 'vt_api' into devel