2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of MayaDataModel.
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
10
#ifndef __MayaDM_POLYNORMALIZEUV_H__
11
#define __MayaDM_POLYNORMALIZEUV_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMPolyModifierUV.h"
17
class PolyNormalizeUV : public PolyModifierUV
22
PolyNormalizeUV():PolyModifierUV(){}
23
PolyNormalizeUV(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:PolyModifierUV(file, name, parent, "polyNormalizeUV", shared, create){}
25
virtual ~PolyNormalizeUV(){}
27
void setNormalizeType(unsigned int nt)
30
fprintf(mFile,"\tsetAttr \".nt\" %i;\n", nt);
32
void setPreserveAspectRatio(bool pa)
34
if(pa == true) return;
35
fprintf(mFile,"\tsetAttr \".pa\" %i;\n", pa);
37
void getNormalizeType()const
39
fprintf(mFile,"\"%s.nt\"",mName.c_str());
41
void getPreserveAspectRatio()const
43
fprintf(mFile,"\"%s.pa\"",mName.c_str());
46
PolyNormalizeUV(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
47
:PolyModifierUV(file, name, parent, nodeType, shared, create) {}
51
#endif//__MayaDM_POLYNORMALIZEUV_H__