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_JOINTFFD_H__
11
#define __MayaDM_JOINTFFD_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMFfd.h"
17
class JointFfd : public Ffd
23
JointFfd(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:Ffd(file, name, parent, "jointFfd", shared, create){}
27
void setBaseLattice2Matrix(const matrix& b2)
29
if(b2 == identity) return;
30
fprintf(mFile,"\tsetAttr \".b2\" -type \"matrix\" ");
34
void setUseComponentCache(bool uc)
36
if(uc == true) return;
37
fprintf(mFile,"\tsetAttr \".uc\" %i;\n", uc);
39
void getBaseLattice2Matrix()const
41
fprintf(mFile,"\"%s.b2\"",mName.c_str());
43
void getGroupIdUpperBindSkin(size_t gu_i)const
45
fprintf(mFile,"\"%s.gu[%i]\"",mName.c_str(),gu_i);
47
void getGroupIdUpperBindSkin()const
50
fprintf(mFile,"\"%s.gu\"",mName.c_str());
52
void getGroupIdLowerBindSkin(size_t gl_i)const
54
fprintf(mFile,"\"%s.gl[%i]\"",mName.c_str(),gl_i);
56
void getGroupIdLowerBindSkin()const
59
fprintf(mFile,"\"%s.gl\"",mName.c_str());
61
void getUpperBindSkinNode()const
63
fprintf(mFile,"\"%s.ub\"",mName.c_str());
65
void getLowerBindSkinNode()const
67
fprintf(mFile,"\"%s.lb\"",mName.c_str());
69
void getUseComponentCache()const
71
fprintf(mFile,"\"%s.uc\"",mName.c_str());
74
JointFfd(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
75
:Ffd(file, name, parent, nodeType, shared, create) {}
79
#endif//__MayaDM_JOINTFFD_H__