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_GUIDE_H__
11
#define __MayaDM_GUIDE_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class Guide : public DependNode
22
Guide():DependNode(){}
23
Guide(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "guide", shared, create){}
27
void setJointAboveMatrix(const matrix& am)
29
if(am == identity) return;
30
fprintf(mFile,"\tsetAttr \".am\" -type \"matrix\" ");
34
void setJointXformMatrix(const matrix& jm)
36
fprintf(mFile,"\tsetAttr \".jm\" -type \"matrix\" ");
40
void setJointBelowMatrix(const matrix& bm)
42
if(bm == identity) return;
43
fprintf(mFile,"\tsetAttr \".bm\" -type \"matrix\" ");
47
void setJointGuideAxis(unsigned int ga)
50
fprintf(mFile,"\tsetAttr \".ga\" %i;\n", ga);
52
void getJointAboveMatrix()const
54
fprintf(mFile,"\"%s.am\"",mName.c_str());
56
void getJointXformMatrix()const
58
fprintf(mFile,"\"%s.jm\"",mName.c_str());
60
void getJointBelowMatrix()const
62
fprintf(mFile,"\"%s.bm\"",mName.c_str());
64
void getJointGuideAxis()const
66
fprintf(mFile,"\"%s.ga\"",mName.c_str());
68
void getBendVector()const
70
fprintf(mFile,"\"%s.bv\"",mName.c_str());
72
void getBendVectorX()const
74
fprintf(mFile,"\"%s.bv.bx\"",mName.c_str());
76
void getBendVectorY()const
78
fprintf(mFile,"\"%s.bv.by\"",mName.c_str());
80
void getBendVectorZ()const
82
fprintf(mFile,"\"%s.bv.bz\"",mName.c_str());
84
void getBendAngle()const
86
fprintf(mFile,"\"%s.ba\"",mName.c_str());
88
void getBendMagnitude()const
90
fprintf(mFile,"\"%s.mg\"",mName.c_str());
92
void getRotateX()const
94
fprintf(mFile,"\"%s.rx\"",mName.c_str());
96
void getRotateY()const
98
fprintf(mFile,"\"%s.ry\"",mName.c_str());
100
void getRotateZ()const
102
fprintf(mFile,"\"%s.rz\"",mName.c_str());
104
void getMaxXYZ()const
106
fprintf(mFile,"\"%s.ma\"",mName.c_str());
108
void getAutoGuide()const
110
fprintf(mFile,"\"%s.ag\"",mName.c_str());
113
Guide(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
114
:DependNode(file, name, parent, nodeType, shared, create) {}
118
#endif//__MayaDM_GUIDE_H__