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_CURVEFROMSURFACEISO_H__
11
#define __MayaDM_CURVEFROMSURFACEISO_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMCurveFromSurface.h"
17
class CurveFromSurfaceIso : public CurveFromSurface
22
CurveFromSurfaceIso():CurveFromSurface(){}
23
CurveFromSurfaceIso(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:CurveFromSurface(file, name, parent, "curveFromSurfaceIso", shared, create){}
25
virtual ~CurveFromSurfaceIso(){}
27
void setIsoparmValue(double iv)
30
fprintf(mFile,"\tsetAttr \".iv\" %f;\n", iv);
32
void setIsoparmDirection(unsigned int idr)
35
fprintf(mFile,"\tsetAttr \".idr\" %i;\n", idr);
37
void setRelativeValue(bool rv)
39
if(rv == false) return;
40
fprintf(mFile,"\tsetAttr \".rv\" %i;\n", rv);
42
void getIsoparmValue()const
44
fprintf(mFile,"\"%s.iv\"",mName.c_str());
46
void getIsoparmDirection()const
48
fprintf(mFile,"\"%s.idr\"",mName.c_str());
50
void getRelativeValue()const
52
fprintf(mFile,"\"%s.rv\"",mName.c_str());
55
CurveFromSurfaceIso(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
56
:CurveFromSurface(file, name, parent, nodeType, shared, create) {}
60
#endif//__MayaDM_CURVEFROMSURFACEISO_H__