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_BIRAILSRF_H__ 11 #define __MayaDM_BIRAILSRF_H__ 12 #include "MayaDMTypes.h" 13 #include "MayaDMConnectables.h" 14 #include "MayaDMAbstractBaseCreate.h" 15 namespace MayaDM 16 { 17 class BirailSrf : public AbstractBaseCreate 18 { 19 public: 20 public: 21 BirailSrf()22 BirailSrf():AbstractBaseCreate(){} 23 BirailSrf(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true) 24 :AbstractBaseCreate(file, name, parent, "birailSrf", shared, create){} ~BirailSrf()25 virtual ~BirailSrf(){} 26 setTransformMode(unsigned int tm)27 void setTransformMode(unsigned int tm) 28 { 29 if(tm == 0) return; 30 fprintf(mFile,"\tsetAttr \".tm\" %i;\n", tm); 31 } getInputRail1()32 void getInputRail1()const 33 { 34 fprintf(mFile,"\"%s.ir1\"",mName.c_str()); 35 } getInputRail2()36 void getInputRail2()const 37 { 38 fprintf(mFile,"\"%s.ir2\"",mName.c_str()); 39 } getSweepStyle()40 void getSweepStyle()const 41 { 42 fprintf(mFile,"\"%s.ss\"",mName.c_str()); 43 } getTransformMode()44 void getTransformMode()const 45 { 46 fprintf(mFile,"\"%s.tm\"",mName.c_str()); 47 } getOutputSurface()48 void getOutputSurface()const 49 { 50 fprintf(mFile,"\"%s.os\"",mName.c_str()); 51 } 52 protected: 53 BirailSrf(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true) AbstractBaseCreate(file,name,parent,nodeType,shared,create)54 :AbstractBaseCreate(file, name, parent, nodeType, shared, create) {} 55 56 }; 57 }//namespace MayaDM 58 #endif//__MayaDM_BIRAILSRF_H__ 59