1 /* 2 Copyright (c) 2008-2009 NetAllied Systems GmbH 3 4 This file is part of MayaDataModel. 5 6 Licensed under the MIT Open Source License, 7 for details please see LICENSE file or the website 8 http://www.opensource.org/licenses/mit-license.php 9 */ 10 #ifndef __MayaDM_CURVEFROMMESH_H__ 11 #define __MayaDM_CURVEFROMMESH_H__ 12 #include "MayaDMTypes.h" 13 #include "MayaDMConnectables.h" 14 #include "MayaDMDependNode.h" 15 namespace MayaDM 16 { 17 class CurveFromMesh : public DependNode 18 { 19 public: 20 public: 21 CurveFromMesh()22 CurveFromMesh():DependNode(){} 23 CurveFromMesh(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true) 24 :DependNode(file, name, parent, "curveFromMesh", shared, create){} ~CurveFromMesh()25 virtual ~CurveFromMesh(){} 26 getInputMesh()27 void getInputMesh()const 28 { 29 fprintf(mFile,"\"%s.im\"",mName.c_str()); 30 } getOutputCurve()31 void getOutputCurve()const 32 { 33 fprintf(mFile,"\"%s.oc\"",mName.c_str()); 34 } 35 protected: 36 CurveFromMesh(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true) DependNode(file,name,parent,nodeType,shared,create)37 :DependNode(file, name, parent, nodeType, shared, create) {} 38 39 }; 40 }//namespace MayaDM 41 #endif//__MayaDM_CURVEFROMMESH_H__ 42