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_CLOSESURFACE_H__
11
#define __MayaDM_CLOSESURFACE_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMAbstractBaseCreate.h"
17
class CloseSurface : public AbstractBaseCreate
22
CloseSurface():AbstractBaseCreate(){}
23
CloseSurface(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:AbstractBaseCreate(file, name, parent, "closeSurface", shared, create){}
25
virtual ~CloseSurface(){}
27
void setPreserveShape(unsigned int ps)
30
fprintf(mFile,"\tsetAttr \".ps\" %i;\n", ps);
32
void setBlendBias(double bb)
35
fprintf(mFile,"\tsetAttr \".bb\" %f;\n", bb);
37
void setBlendKnotInsertion(bool bki)
39
if(bki == false) return;
40
fprintf(mFile,"\tsetAttr \".bki\" %i;\n", bki);
42
void setParameter(double p)
45
fprintf(mFile,"\tsetAttr \".p\" %f;\n", p);
47
void setDirection(unsigned int d)
50
fprintf(mFile,"\tsetAttr \".d\" %i;\n", d);
52
void getInputSurface()const
54
fprintf(mFile,"\"%s.is\"",mName.c_str());
56
void getPreserveShape()const
58
fprintf(mFile,"\"%s.ps\"",mName.c_str());
60
void getBlendBias()const
62
fprintf(mFile,"\"%s.bb\"",mName.c_str());
64
void getBlendKnotInsertion()const
66
fprintf(mFile,"\"%s.bki\"",mName.c_str());
68
void getParameter()const
70
fprintf(mFile,"\"%s.p\"",mName.c_str());
72
void getDirection()const
74
fprintf(mFile,"\"%s.d\"",mName.c_str());
76
void getOutputSurface()const
78
fprintf(mFile,"\"%s.os\"",mName.c_str());
81
CloseSurface(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
82
:AbstractBaseCreate(file, name, parent, nodeType, shared, create) {}
86
#endif//__MayaDM_CLOSESURFACE_H__