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_MAKEGROUP_H__
11
#define __MayaDM_MAKEGROUP_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class MakeGroup : public DependNode
22
MakeGroup():DependNode(){}
23
MakeGroup(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "makeGroup", shared, create){}
25
virtual ~MakeGroup(){}
27
void setGroupType(unsigned int gt)
30
fprintf(mFile,"\tsetAttr \".gt\" %i;\n", gt);
32
void setGroupName(int gn)
35
fprintf(mFile,"\tsetAttr \".gn\" %i;\n", gn);
37
void setElemList(const intArray& el)
39
if(el.size == 0) return;
40
fprintf(mFile,"\tsetAttr \".el\" -type \"intArray\" ");
44
void setInputComponents(const componentList& ic)
46
fprintf(mFile,"\tsetAttr \".ic\" -type \"componentList\" ");
50
void getInputGeometry()const
52
fprintf(mFile,"\"%s.ig\"",mName.c_str());
54
void getOutputGeometry()const
56
fprintf(mFile,"\"%s.og\"",mName.c_str());
58
void getGroupType()const
60
fprintf(mFile,"\"%s.gt\"",mName.c_str());
62
void getGroupName()const
64
fprintf(mFile,"\"%s.gn\"",mName.c_str());
66
void getElemList()const
68
fprintf(mFile,"\"%s.el\"",mName.c_str());
70
void getInputComponents()const
72
fprintf(mFile,"\"%s.ic\"",mName.c_str());
75
MakeGroup(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
76
:DependNode(file, name, parent, nodeType, shared, create) {}
80
#endif//__MayaDM_MAKEGROUP_H__