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_HWREFLECTIONMAP_H__
11
#define __MayaDM_HWREFLECTIONMAP_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class HwReflectionMap : public DependNode
22
HwReflectionMap():DependNode(){}
23
HwReflectionMap(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "hwReflectionMap", shared, create){}
25
virtual ~HwReflectionMap(){}
27
void setDecalMode(bool dm)
29
if(dm == true) return;
30
fprintf(mFile,"\tsetAttr \".dm\" %i;\n", dm);
32
void setCubeMap(bool cm)
34
if(cm == false) return;
35
fprintf(mFile,"\tsetAttr \".cm\" %i;\n", cm);
37
void setTextureHasChanged(bool thc)
39
if(thc == false) return;
40
fprintf(mFile,"\tsetAttr \".thc\" %i;\n", thc);
42
void setSphereMapTextureName(const string& smtn)
44
if(smtn == "NULL") return;
45
fprintf(mFile,"\tsetAttr \".smtn\" -type \"string\" ");
49
void setCubeFrontTextureName(const string& cftn)
51
if(cftn == "NULL") return;
52
fprintf(mFile,"\tsetAttr \".cftn\" -type \"string\" ");
56
void setCubeBackTextureName(const string& cbkn)
58
if(cbkn == "NULL") return;
59
fprintf(mFile,"\tsetAttr \".cbkn\" -type \"string\" ");
63
void setCubeTopTextureName(const string& ctpn)
65
if(ctpn == "NULL") return;
66
fprintf(mFile,"\tsetAttr \".ctpn\" -type \"string\" ");
70
void setCubeBottomTextureName(const string& cbmn)
72
if(cbmn == "NULL") return;
73
fprintf(mFile,"\tsetAttr \".cbmn\" -type \"string\" ");
77
void setCubeLeftTextureName(const string& cltn)
79
if(cltn == "NULL") return;
80
fprintf(mFile,"\tsetAttr \".cltn\" -type \"string\" ");
84
void setCubeRightTextureName(const string& crtn)
86
if(crtn == "NULL") return;
87
fprintf(mFile,"\tsetAttr \".crtn\" -type \"string\" ");
91
void getDecalMode()const
93
fprintf(mFile,"\"%s.dm\"",mName.c_str());
95
void getCubeMap()const
97
fprintf(mFile,"\"%s.cm\"",mName.c_str());
99
void getTextureHasChanged()const
101
fprintf(mFile,"\"%s.thc\"",mName.c_str());
103
void getSphereMapTextureName()const
105
fprintf(mFile,"\"%s.smtn\"",mName.c_str());
107
void getCubeFrontTextureName()const
109
fprintf(mFile,"\"%s.cftn\"",mName.c_str());
111
void getCubeBackTextureName()const
113
fprintf(mFile,"\"%s.cbkn\"",mName.c_str());
115
void getCubeTopTextureName()const
117
fprintf(mFile,"\"%s.ctpn\"",mName.c_str());
119
void getCubeBottomTextureName()const
121
fprintf(mFile,"\"%s.cbmn\"",mName.c_str());
123
void getCubeLeftTextureName()const
125
fprintf(mFile,"\"%s.cltn\"",mName.c_str());
127
void getCubeRightTextureName()const
129
fprintf(mFile,"\"%s.crtn\"",mName.c_str());
132
HwReflectionMap(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
133
:DependNode(file, name, parent, nodeType, shared, create) {}
137
#endif//__MayaDM_HWREFLECTIONMAP_H__