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_SUBDIVCOMPONENTID_H__
11
#define __MayaDM_SUBDIVCOMPONENTID_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class SubdivComponentId : public DependNode
22
SubdivComponentId():DependNode(){}
23
SubdivComponentId(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "subdivComponentId", shared, create){}
25
virtual ~SubdivComponentId(){}
27
void setInBase(int ib)
30
fprintf(mFile,"\tsetAttr \".ib\" %i;\n", ib);
32
void setInEdge(int ie)
35
fprintf(mFile,"\tsetAttr \".ie\" %i;\n", ie);
37
void setInLevel(unsigned int il)
40
fprintf(mFile,"\tsetAttr \".il\" %i;\n", il);
42
void setInPath(int ip)
45
fprintf(mFile,"\tsetAttr \".ip\" %i;\n", ip);
47
void setInFinal(unsigned int if_)
50
fprintf(mFile,"\tsetAttr \".if\" %i;\n", if_);
52
void setInLeft(int ilt)
55
fprintf(mFile,"\tsetAttr \".ilt\" %i;\n", ilt);
57
void setInRight(int ir)
60
fprintf(mFile,"\tsetAttr \".ir\" %i;\n", ir);
64
fprintf(mFile,"\"%s.ib\"",mName.c_str());
68
fprintf(mFile,"\"%s.ie\"",mName.c_str());
70
void getInLevel()const
72
fprintf(mFile,"\"%s.il\"",mName.c_str());
76
fprintf(mFile,"\"%s.ip\"",mName.c_str());
78
void getInFinal()const
80
fprintf(mFile,"\"%s.if\"",mName.c_str());
82
void getOutLeft()const
84
fprintf(mFile,"\"%s.olt\"",mName.c_str());
86
void getOutRight()const
88
fprintf(mFile,"\"%s.or\"",mName.c_str());
92
fprintf(mFile,"\"%s.ilt\"",mName.c_str());
94
void getInRight()const
96
fprintf(mFile,"\"%s.ir\"",mName.c_str());
98
void getOutBase()const
100
fprintf(mFile,"\"%s.ob\"",mName.c_str());
102
void getOutEdge()const
104
fprintf(mFile,"\"%s.oe\"",mName.c_str());
106
void getOutLevel()const
108
fprintf(mFile,"\"%s.ol\"",mName.c_str());
110
void getOutPath()const
112
fprintf(mFile,"\"%s.op\"",mName.c_str());
114
void getOutFinal()const
116
fprintf(mFile,"\"%s.of\"",mName.c_str());
119
SubdivComponentId(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
120
:DependNode(file, name, parent, nodeType, shared, create) {}
124
#endif//__MayaDM_SUBDIVCOMPONENTID_H__