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

« back to all changes in this revision

Viewing changes to Externals/MayaDataModel/include/MayaDMFfBlendSrfObsolete.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_FFBLENDSRFOBSOLETE_H__
 
11
#define __MayaDM_FFBLENDSRFOBSOLETE_H__
 
12
#include "MayaDMTypes.h"
 
13
#include "MayaDMConnectables.h"
 
14
#include "MayaDMAbstractBaseCreate.h"
 
15
namespace MayaDM
 
16
{
 
17
class FfBlendSrfObsolete : public AbstractBaseCreate
 
18
{
 
19
public:
 
20
public:
 
21
 
 
22
        FfBlendSrfObsolete():AbstractBaseCreate(){}
 
23
        FfBlendSrfObsolete(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
 
24
                :AbstractBaseCreate(file, name, parent, "ffBlendSrfObsolete", shared, create){}
 
25
        virtual ~FfBlendSrfObsolete(){}
 
26
 
 
27
        void setPositionTolerance(double pt)
 
28
        {
 
29
                if(pt == 0.1) return;
 
30
                fprintf(mFile,"\tsetAttr \".pt\" %f;\n", pt);
 
31
        }
 
32
        void setTangentTolerance(double tt)
 
33
        {
 
34
                if(tt == 0.1) return;
 
35
                fprintf(mFile,"\tsetAttr \".tt\" %f;\n", tt);
 
36
        }
 
37
        void setFlipLeft(bool fl)
 
38
        {
 
39
                if(fl == false) return;
 
40
                fprintf(mFile,"\tsetAttr \".fl\" %i;\n", fl);
 
41
        }
 
42
        void setFlipRight(bool fr)
 
43
        {
 
44
                if(fr == false) return;
 
45
                fprintf(mFile,"\tsetAttr \".fr\" %i;\n", fr);
 
46
        }
 
47
        void setAutoDirection(bool ad)
 
48
        {
 
49
                if(ad == true) return;
 
50
                fprintf(mFile,"\tsetAttr \".ad\" %i;\n", ad);
 
51
        }
 
52
        void setLeftParameter(double lp)
 
53
        {
 
54
                if(lp == 123456.0) return;
 
55
                fprintf(mFile,"\tsetAttr \".lp\" %f;\n", lp);
 
56
        }
 
57
        void setRightParameter(double rp)
 
58
        {
 
59
                if(rp == 123456.0) return;
 
60
                fprintf(mFile,"\tsetAttr \".rp\" %f;\n", rp);
 
61
        }
 
62
        void setMultipleKnots(bool mk)
 
63
        {
 
64
                if(mk == true) return;
 
65
                fprintf(mFile,"\tsetAttr \".mk\" %i;\n", mk);
 
66
        }
 
67
        void getLeftCurve(size_t lc_i)const
 
68
        {
 
69
                fprintf(mFile,"\"%s.lc[%i]\"",mName.c_str(),lc_i);
 
70
        }
 
71
        void getLeftCurve()const
 
72
        {
 
73
 
 
74
                fprintf(mFile,"\"%s.lc\"",mName.c_str());
 
75
        }
 
76
        void getRightCurve(size_t rc_i)const
 
77
        {
 
78
                fprintf(mFile,"\"%s.rc[%i]\"",mName.c_str(),rc_i);
 
79
        }
 
80
        void getRightCurve()const
 
81
        {
 
82
 
 
83
                fprintf(mFile,"\"%s.rc\"",mName.c_str());
 
84
        }
 
85
        void getPositionTolerance()const
 
86
        {
 
87
                fprintf(mFile,"\"%s.pt\"",mName.c_str());
 
88
        }
 
89
        void getTangentTolerance()const
 
90
        {
 
91
                fprintf(mFile,"\"%s.tt\"",mName.c_str());
 
92
        }
 
93
        void getFlipLeft()const
 
94
        {
 
95
                fprintf(mFile,"\"%s.fl\"",mName.c_str());
 
96
        }
 
97
        void getFlipRight()const
 
98
        {
 
99
                fprintf(mFile,"\"%s.fr\"",mName.c_str());
 
100
        }
 
101
        void getAutoDirection()const
 
102
        {
 
103
                fprintf(mFile,"\"%s.ad\"",mName.c_str());
 
104
        }
 
105
        void getLeftRail()const
 
106
        {
 
107
                fprintf(mFile,"\"%s.lr\"",mName.c_str());
 
108
        }
 
109
        void getRightRail()const
 
110
        {
 
111
                fprintf(mFile,"\"%s.rr\"",mName.c_str());
 
112
        }
 
113
        void getLeftParameter()const
 
114
        {
 
115
                fprintf(mFile,"\"%s.lp\"",mName.c_str());
 
116
        }
 
117
        void getRightParameter()const
 
118
        {
 
119
                fprintf(mFile,"\"%s.rp\"",mName.c_str());
 
120
        }
 
121
        void getOutputSurface()const
 
122
        {
 
123
                fprintf(mFile,"\"%s.os\"",mName.c_str());
 
124
        }
 
125
        void getMultipleKnots()const
 
126
        {
 
127
                fprintf(mFile,"\"%s.mk\"",mName.c_str());
 
128
        }
 
129
protected:
 
130
        FfBlendSrfObsolete(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
 
131
                :AbstractBaseCreate(file, name, parent, nodeType, shared, create) {}
 
132
 
 
133
};
 
134
}//namespace MayaDM
 
135
#endif//__MayaDM_FFBLENDSRFOBSOLETE_H__