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_POLYFLIPEDGE_H__ 11 #define __MayaDM_POLYFLIPEDGE_H__ 12 #include "MayaDMTypes.h" 13 #include "MayaDMConnectables.h" 14 #include "MayaDMPolyModifier.h" 15 namespace MayaDM 16 { 17 class PolyFlipEdge : public PolyModifier 18 { 19 public: 20 public: 21 PolyFlipEdge()22 PolyFlipEdge():PolyModifier(){} 23 PolyFlipEdge(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true) 24 :PolyModifier(file, name, parent, "polyFlipEdge", shared, create){} ~PolyFlipEdge()25 virtual ~PolyFlipEdge(){} 26 setEdge(const componentList & e)27 void setEdge(const componentList& e) 28 { 29 fprintf(mFile,"\tsetAttr \".e\" -type \"componentList\" "); 30 e.write(mFile); 31 fprintf(mFile,";\n"); 32 } getEdge()33 void getEdge()const 34 { 35 fprintf(mFile,"\"%s.e\"",mName.c_str()); 36 } 37 protected: 38 PolyFlipEdge(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true) PolyModifier(file,name,parent,nodeType,shared,create)39 :PolyModifier(file, name, parent, nodeType, shared, create) {} 40 41 }; 42 }//namespace MayaDM 43 #endif//__MayaDM_POLYFLIPEDGE_H__ 44