~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to Externals/MayaDataModel/include/MayaDMSubdivComponentId.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of MayaDataModel.
 
5
 
 
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
 
9
*/
 
10
#ifndef __MayaDM_SUBDIVCOMPONENTID_H__
 
11
#define __MayaDM_SUBDIVCOMPONENTID_H__
 
12
#include "MayaDMTypes.h"
 
13
#include "MayaDMConnectables.h"
 
14
#include "MayaDMDependNode.h"
 
15
namespace MayaDM
 
16
{
 
17
class SubdivComponentId : public DependNode
 
18
{
 
19
public:
 
20
public:
 
21
 
 
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(){}
 
26
 
 
27
        void setInBase(int ib)
 
28
        {
 
29
                if(ib == 0) return;
 
30
                fprintf(mFile,"\tsetAttr \".ib\" %i;\n", ib);
 
31
        }
 
32
        void setInEdge(int ie)
 
33
        {
 
34
                if(ie == 0) return;
 
35
                fprintf(mFile,"\tsetAttr \".ie\" %i;\n", ie);
 
36
        }
 
37
        void setInLevel(unsigned int il)
 
38
        {
 
39
                if(il == 0) return;
 
40
                fprintf(mFile,"\tsetAttr \".il\" %i;\n", il);
 
41
        }
 
42
        void setInPath(int ip)
 
43
        {
 
44
                if(ip == 0) return;
 
45
                fprintf(mFile,"\tsetAttr \".ip\" %i;\n", ip);
 
46
        }
 
47
        void setInFinal(unsigned int if_)
 
48
        {
 
49
                if(if_ == 0) return;
 
50
                fprintf(mFile,"\tsetAttr \".if\" %i;\n", if_);
 
51
        }
 
52
        void setInLeft(int ilt)
 
53
        {
 
54
                if(ilt == 0) return;
 
55
                fprintf(mFile,"\tsetAttr \".ilt\" %i;\n", ilt);
 
56
        }
 
57
        void setInRight(int ir)
 
58
        {
 
59
                if(ir == 0) return;
 
60
                fprintf(mFile,"\tsetAttr \".ir\" %i;\n", ir);
 
61
        }
 
62
        void getInBase()const
 
63
        {
 
64
                fprintf(mFile,"\"%s.ib\"",mName.c_str());
 
65
        }
 
66
        void getInEdge()const
 
67
        {
 
68
                fprintf(mFile,"\"%s.ie\"",mName.c_str());
 
69
        }
 
70
        void getInLevel()const
 
71
        {
 
72
                fprintf(mFile,"\"%s.il\"",mName.c_str());
 
73
        }
 
74
        void getInPath()const
 
75
        {
 
76
                fprintf(mFile,"\"%s.ip\"",mName.c_str());
 
77
        }
 
78
        void getInFinal()const
 
79
        {
 
80
                fprintf(mFile,"\"%s.if\"",mName.c_str());
 
81
        }
 
82
        void getOutLeft()const
 
83
        {
 
84
                fprintf(mFile,"\"%s.olt\"",mName.c_str());
 
85
        }
 
86
        void getOutRight()const
 
87
        {
 
88
                fprintf(mFile,"\"%s.or\"",mName.c_str());
 
89
        }
 
90
        void getInLeft()const
 
91
        {
 
92
                fprintf(mFile,"\"%s.ilt\"",mName.c_str());
 
93
        }
 
94
        void getInRight()const
 
95
        {
 
96
                fprintf(mFile,"\"%s.ir\"",mName.c_str());
 
97
        }
 
98
        void getOutBase()const
 
99
        {
 
100
                fprintf(mFile,"\"%s.ob\"",mName.c_str());
 
101
        }
 
102
        void getOutEdge()const
 
103
        {
 
104
                fprintf(mFile,"\"%s.oe\"",mName.c_str());
 
105
        }
 
106
        void getOutLevel()const
 
107
        {
 
108
                fprintf(mFile,"\"%s.ol\"",mName.c_str());
 
109
        }
 
110
        void getOutPath()const
 
111
        {
 
112
                fprintf(mFile,"\"%s.op\"",mName.c_str());
 
113
        }
 
114
        void getOutFinal()const
 
115
        {
 
116
                fprintf(mFile,"\"%s.of\"",mName.c_str());
 
117
        }
 
118
protected:
 
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) {}
 
121
 
 
122
};
 
123
}//namespace MayaDM
 
124
#endif//__MayaDM_SUBDIVCOMPONENTID_H__