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_POLYPRISM_H__
11
#define __MayaDM_POLYPRISM_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMPolyPrimitive.h"
17
class PolyPrism : public PolyPrimitive
22
PolyPrism():PolyPrimitive(){}
23
PolyPrism(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:PolyPrimitive(file, name, parent, "polyPrism", shared, create){}
25
virtual ~PolyPrism(){}
27
void setLength(double l)
30
fprintf(mFile,"\tsetAttr \".l\" %f;\n", l);
32
void setSideLength(double w)
35
fprintf(mFile,"\tsetAttr \".w\" %f;\n", w);
37
void setNumderOfSides(int ns)
40
fprintf(mFile,"\tsetAttr \".ns\" %i;\n", ns);
42
void setSubdivisionsHeight(int sh)
45
fprintf(mFile,"\tsetAttr \".sh\" %i;\n", sh);
47
void setSubdivisionsCaps(int sc)
50
fprintf(mFile,"\tsetAttr \".sc\" %i;\n", sc);
52
void setTexture(unsigned int tx)
55
fprintf(mFile,"\tsetAttr \".tx\" %i;\n", tx);
57
void setCreateUVs(unsigned int cuv)
60
fprintf(mFile,"\tsetAttr \".cuv\" %i;\n", cuv);
64
fprintf(mFile,"\"%s.l\"",mName.c_str());
66
void getSideLength()const
68
fprintf(mFile,"\"%s.w\"",mName.c_str());
70
void getNumderOfSides()const
72
fprintf(mFile,"\"%s.ns\"",mName.c_str());
74
void getSubdivisionsHeight()const
76
fprintf(mFile,"\"%s.sh\"",mName.c_str());
78
void getSubdivisionsCaps()const
80
fprintf(mFile,"\"%s.sc\"",mName.c_str());
82
void getTexture()const
84
fprintf(mFile,"\"%s.tx\"",mName.c_str());
86
void getCreateUVs()const
88
fprintf(mFile,"\"%s.cuv\"",mName.c_str());
91
PolyPrism(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
92
:PolyPrimitive(file, name, parent, nodeType, shared, create) {}
96
#endif//__MayaDM_POLYPRISM_H__