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_REBUILDCURVE_H__
11
#define __MayaDM_REBUILDCURVE_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMAbstractBaseCreate.h"
17
class RebuildCurve : public AbstractBaseCreate
22
RebuildCurve():AbstractBaseCreate(){}
23
RebuildCurve(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:AbstractBaseCreate(file, name, parent, "rebuildCurve", shared, create){}
25
virtual ~RebuildCurve(){}
27
void setFitRebuild(bool fr)
29
if(fr == true) return;
30
fprintf(mFile,"\tsetAttr \".fr\" %i;\n", fr);
32
void setRebuildType(unsigned int rt)
35
fprintf(mFile,"\tsetAttr \".rt\" %i;\n", rt);
40
fprintf(mFile,"\tsetAttr \".s\" %i;\n", s);
42
void setDegree(unsigned int d)
45
fprintf(mFile,"\tsetAttr \".d\" %i;\n", d);
47
void setTolerance(double tol)
50
fprintf(mFile,"\tsetAttr \".tol\" %f;\n", tol);
52
void setEndKnots(unsigned int end)
55
fprintf(mFile,"\tsetAttr \".end\" %i;\n", end);
57
void setKeepRange(unsigned int kr)
60
fprintf(mFile,"\tsetAttr \".kr\" %i;\n", kr);
62
void setKeepEndPoints(bool kep)
64
if(kep == true) return;
65
fprintf(mFile,"\tsetAttr \".kep\" %i;\n", kep);
67
void setKeepTangents(bool kt)
69
if(kt == true) return;
70
fprintf(mFile,"\tsetAttr \".kt\" %i;\n", kt);
72
void setKeepControlPoints(bool kcp)
74
if(kcp == false) return;
75
fprintf(mFile,"\tsetAttr \".kcp\" %i;\n", kcp);
77
void setSmartSurfaceCurveRebuild(bool scr)
79
if(scr == false) return;
80
fprintf(mFile,"\tsetAttr \".scr\" %i;\n", scr);
82
void getInputCurve()const
84
fprintf(mFile,"\"%s.ic\"",mName.c_str());
86
void getMatchCurve()const
88
fprintf(mFile,"\"%s.mc\"",mName.c_str());
90
void getFitRebuild()const
92
fprintf(mFile,"\"%s.fr\"",mName.c_str());
94
void getRebuildType()const
96
fprintf(mFile,"\"%s.rt\"",mName.c_str());
100
fprintf(mFile,"\"%s.s\"",mName.c_str());
102
void getDegree()const
104
fprintf(mFile,"\"%s.d\"",mName.c_str());
106
void getTolerance()const
108
fprintf(mFile,"\"%s.tol\"",mName.c_str());
110
void getEndKnots()const
112
fprintf(mFile,"\"%s.end\"",mName.c_str());
114
void getKeepRange()const
116
fprintf(mFile,"\"%s.kr\"",mName.c_str());
118
void getKeepEndPoints()const
120
fprintf(mFile,"\"%s.kep\"",mName.c_str());
122
void getKeepTangents()const
124
fprintf(mFile,"\"%s.kt\"",mName.c_str());
126
void getOutputCurve()const
128
fprintf(mFile,"\"%s.oc\"",mName.c_str());
130
void getKeepControlPoints()const
132
fprintf(mFile,"\"%s.kcp\"",mName.c_str());
134
void getSmartSurfaceCurveRebuild()const
136
fprintf(mFile,"\"%s.scr\"",mName.c_str());
139
RebuildCurve(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
140
:AbstractBaseCreate(file, name, parent, nodeType, shared, create) {}
144
#endif//__MayaDM_REBUILDCURVE_H__