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_SUBDLAYOUTUV_H__
11
#define __MayaDM_SUBDLAYOUTUV_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMSubdModifierUV.h"
17
class SubdLayoutUV : public SubdModifierUV
22
SubdLayoutUV():SubdModifierUV(){}
23
SubdLayoutUV(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:SubdModifierUV(file, name, parent, "subdLayoutUV", shared, create){}
25
virtual ~SubdLayoutUV(){}
27
void setSeparate(unsigned int se)
30
fprintf(mFile,"\tsetAttr \".se\" %i;\n", se);
32
void setFlipReversed(bool fr)
34
if(fr == true) return;
35
fprintf(mFile,"\tsetAttr \".fr\" %i;\n", fr);
37
void setLayout(unsigned int l)
40
fprintf(mFile,"\tsetAttr \".l\" %i;\n", l);
42
void setPercentageSpace(float ps)
45
fprintf(mFile,"\tsetAttr \".ps\" %f;\n", ps);
47
void setScale(unsigned int sc)
50
fprintf(mFile,"\tsetAttr \".sc\" %i;\n", sc);
52
void setDenseLayout(bool dl)
54
if(dl == false) return;
55
fprintf(mFile,"\tsetAttr \".dl\" %i;\n", dl);
57
void setRotateForBestFit(unsigned int rbf)
60
fprintf(mFile,"\tsetAttr \".rbf\" %i;\n", rbf);
62
void setLayoutMethod(unsigned int lm)
65
fprintf(mFile,"\tsetAttr \".lm\" %i;\n", lm);
67
void getSeparate()const
69
fprintf(mFile,"\"%s.se\"",mName.c_str());
71
void getFlipReversed()const
73
fprintf(mFile,"\"%s.fr\"",mName.c_str());
77
fprintf(mFile,"\"%s.l\"",mName.c_str());
79
void getPercentageSpace()const
81
fprintf(mFile,"\"%s.ps\"",mName.c_str());
85
fprintf(mFile,"\"%s.sc\"",mName.c_str());
87
void getDenseLayout()const
89
fprintf(mFile,"\"%s.dl\"",mName.c_str());
91
void getRotateForBestFit()const
93
fprintf(mFile,"\"%s.rbf\"",mName.c_str());
95
void getLayoutMethod()const
97
fprintf(mFile,"\"%s.lm\"",mName.c_str());
100
SubdLayoutUV(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
101
:SubdModifierUV(file, name, parent, nodeType, shared, create) {}
105
#endif//__MayaDM_SUBDLAYOUTUV_H__