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_NURBSDIMSHAPE_H__
11
#define __MayaDM_NURBSDIMSHAPE_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDimensionShape.h"
17
class NurbsDimShape : public DimensionShape
22
NurbsDimShape():DimensionShape(){}
23
NurbsDimShape(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DimensionShape(file, name, parent, "nurbsDimShape", shared, create){}
25
virtual ~NurbsDimShape(){}
27
void setUParamValue(double upv)
29
if(upv == 0.0) return;
30
fprintf(mFile,"\tsetAttr \".upv\" %f;\n", upv);
32
void setVParamValue(double vpv)
34
if(vpv == 0.0) return;
35
fprintf(mFile,"\tsetAttr \".vpv\" %f;\n", vpv);
37
void getUParamValue()const
39
fprintf(mFile,"\"%s.upv\"",mName.c_str());
41
void getVParamValue()const
43
fprintf(mFile,"\"%s.vpv\"",mName.c_str());
45
void getNurbsGeometry()const
47
fprintf(mFile,"\"%s.ng\"",mName.c_str());
50
NurbsDimShape(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
51
:DimensionShape(file, name, parent, nodeType, shared, create) {}
55
#endif//__MayaDM_NURBSDIMSHAPE_H__