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_FURPOINTONSUBD_H__
11
#define __MayaDM_FURPOINTONSUBD_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class FurPointOnSubd : public DependNode
26
FurPointOnSubd():DependNode(){}
27
FurPointOnSubd(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
28
:DependNode(file, name, parent, "furPointOnSubd", shared, create){}
29
virtual ~FurPointOnSubd(){}
31
void setRelative(bool rel)
33
if(rel == true) return;
34
fprintf(mFile,"\tsetAttr \".rel\" %i;\n", rel);
36
void setUValue(double u)
39
fprintf(mFile,"\tsetAttr \".u\" %f;\n", u);
41
void setVValue(double v)
44
fprintf(mFile,"\tsetAttr \".v\" %f;\n", v);
46
void setPosition(const double3& p)
49
fprintf(mFile,"\tsetAttr \".p\" -type \"double3\" ");
53
void setPositionX(double px)
56
fprintf(mFile,"\tsetAttr \".px\" %f;\n", px);
58
void setPositionY(double py)
61
fprintf(mFile,"\tsetAttr \".py\" %f;\n", py);
63
void setPositionZ(double pz)
66
fprintf(mFile,"\tsetAttr \".pz\" %f;\n", pz);
68
void setNormal(const double3& n)
71
fprintf(mFile,"\tsetAttr \".n\" -type \"double3\" ");
75
void setNormalX(double nx)
78
fprintf(mFile,"\tsetAttr \".nx\" %f;\n", nx);
80
void setNormalY(double ny)
83
fprintf(mFile,"\tsetAttr \".ny\" %f;\n", ny);
85
void setNormalZ(double nz)
88
fprintf(mFile,"\tsetAttr \".nz\" %f;\n", nz);
92
fprintf(mFile,"\"%s.s\"",mName.c_str());
94
void getFaceFirst()const
96
fprintf(mFile,"\"%s.ff\"",mName.c_str());
98
void getFaceSecond()const
100
fprintf(mFile,"\"%s.fs\"",mName.c_str());
102
void getRelative()const
104
fprintf(mFile,"\"%s.rel\"",mName.c_str());
106
void getUValue()const
108
fprintf(mFile,"\"%s.u\"",mName.c_str());
110
void getVValue()const
112
fprintf(mFile,"\"%s.v\"",mName.c_str());
114
void getPosition()const
116
fprintf(mFile,"\"%s.p\"",mName.c_str());
118
void getPositionX()const
120
fprintf(mFile,"\"%s.px\"",mName.c_str());
122
void getPositionY()const
124
fprintf(mFile,"\"%s.py\"",mName.c_str());
126
void getPositionZ()const
128
fprintf(mFile,"\"%s.pz\"",mName.c_str());
130
void getNormal()const
132
fprintf(mFile,"\"%s.n\"",mName.c_str());
134
void getNormalX()const
136
fprintf(mFile,"\"%s.nx\"",mName.c_str());
138
void getNormalY()const
140
fprintf(mFile,"\"%s.ny\"",mName.c_str());
142
void getNormalZ()const
144
fprintf(mFile,"\"%s.nz\"",mName.c_str());
147
FurPointOnSubd(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
148
:DependNode(file, name, parent, nodeType, shared, create) {}
152
#endif//__MayaDM_FURPOINTONSUBD_H__