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_DEFORMTWIST_H__
11
#define __MayaDM_DEFORMTWIST_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDeformFunc.h"
17
class DeformTwist : public DeformFunc
22
DeformTwist():DeformFunc(){}
23
DeformTwist(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DeformFunc(file, name, parent, "deformTwist", shared, create){}
25
virtual ~DeformTwist(){}
27
void setLowBound(double lb)
29
if(lb == -1.0) return;
30
fprintf(mFile,"\tsetAttr \".lb\" %f;\n", lb);
32
void setHighBound(double hb)
35
fprintf(mFile,"\tsetAttr \".hb\" %f;\n", hb);
37
void setStartAngle(double sa)
40
fprintf(mFile,"\tsetAttr \".sa\" %f;\n", sa);
42
void setEndAngle(double ea)
45
fprintf(mFile,"\tsetAttr \".ea\" %f;\n", ea);
47
void getLowBound()const
49
fprintf(mFile,"\"%s.lb\"",mName.c_str());
51
void getHighBound()const
53
fprintf(mFile,"\"%s.hb\"",mName.c_str());
55
void getStartAngle()const
57
fprintf(mFile,"\"%s.sa\"",mName.c_str());
59
void getEndAngle()const
61
fprintf(mFile,"\"%s.ea\"",mName.c_str());
64
DeformTwist(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
65
:DeformFunc(file, name, parent, nodeType, shared, create) {}
69
#endif//__MayaDM_DEFORMTWIST_H__