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_POLYMODIFIER_H__ 11 #define __MayaDM_POLYMODIFIER_H__ 12 #include "MayaDMTypes.h" 13 #include "MayaDMConnectables.h" 14 #include "MayaDMPolyBase.h" 15 namespace MayaDM 16 { 17 class PolyModifier : public PolyBase 18 { 19 public: 20 public: 21 PolyModifier()22 PolyModifier():PolyBase(){} 23 PolyModifier(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true) 24 :PolyBase(file, name, parent, "polyModifier", shared, create){} ~PolyModifier()25 virtual ~PolyModifier(){} 26 setUseOldPolyArchitecture(bool uopa)27 void setUseOldPolyArchitecture(bool uopa) 28 { 29 if(uopa == false) return; 30 fprintf(mFile,"\tsetAttr \".uopa\" %i;\n", uopa); 31 } setInputComponents(const componentList & ics)32 void setInputComponents(const componentList& ics) 33 { 34 fprintf(mFile,"\tsetAttr \".ics\" -type \"componentList\" "); 35 ics.write(mFile); 36 fprintf(mFile,";\n"); 37 } getInputPolymesh()38 void getInputPolymesh()const 39 { 40 fprintf(mFile,"\"%s.ip\"",mName.c_str()); 41 } getInputComponents()42 void getInputComponents()const 43 { 44 fprintf(mFile,"\"%s.ics\"",mName.c_str()); 45 } 46 protected: 47 PolyModifier(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true) PolyBase(file,name,parent,nodeType,shared,create)48 :PolyBase(file, name, parent, nodeType, shared, create) {} 49 50 }; 51 }//namespace MayaDM 52 #endif//__MayaDM_POLYMODIFIER_H__ 53