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_HOLDMATRIX_H__
11
#define __MayaDM_HOLDMATRIX_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class HoldMatrix : public DependNode
22
HoldMatrix():DependNode(){}
23
HoldMatrix(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "holdMatrix", shared, create){}
25
virtual ~HoldMatrix(){}
27
void setInMatrix(const matrix& i_)
29
if(i_ == identity) return;
30
fprintf(mFile,"\tsetAttr \".i\" -type \"matrix\" ");
34
void setOutMatrix(const matrix& o)
36
if(o == identity) return;
37
fprintf(mFile,"\tsetAttr \".o\" -type \"matrix\" ");
41
void getInMatrix()const
43
fprintf(mFile,"\"%s.i\"",mName.c_str());
45
void getOutMatrix()const
47
fprintf(mFile,"\"%s.o\"",mName.c_str());
50
HoldMatrix(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
51
:DependNode(file, name, parent, nodeType, shared, create) {}
55
#endif//__MayaDM_HOLDMATRIX_H__