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_CURVEFROMSURFACE_H__
11
#define __MayaDM_CURVEFROMSURFACE_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMCurveRange.h"
17
class CurveFromSurface : public CurveRange
22
CurveFromSurface():CurveRange(){}
23
CurveFromSurface(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:CurveRange(file, name, parent, "curveFromSurface", shared, create){}
25
virtual ~CurveFromSurface(){}
27
void setMinValue(double min)
29
if(min == 1.0) return;
30
fprintf(mFile,"\tsetAttr \".min\" %f;\n", min);
32
void setMaxValue(double max)
34
if(max == -1.0) return;
35
fprintf(mFile,"\tsetAttr \".max\" %f;\n", max);
37
void setRelative(bool r)
39
if(r == false) return;
40
fprintf(mFile,"\tsetAttr \".r\" %i;\n", r);
42
void getInputSurface()const
44
fprintf(mFile,"\"%s.is\"",mName.c_str());
46
void getMinValue()const
48
fprintf(mFile,"\"%s.min\"",mName.c_str());
50
void getMaxValue()const
52
fprintf(mFile,"\"%s.max\"",mName.c_str());
54
void getRelative()const
56
fprintf(mFile,"\"%s.r\"",mName.c_str());
58
void getOutputCurve()const
60
fprintf(mFile,"\"%s.oc\"",mName.c_str());
63
CurveFromSurface(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
64
:CurveRange(file, name, parent, nodeType, shared, create) {}
68
#endif//__MayaDM_CURVEFROMSURFACE_H__