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_PARTICLESAMPLERINFO_H__
11
#define __MayaDM_PARTICLESAMPLERINFO_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class ParticleSamplerInfo : public DependNode
22
ParticleSamplerInfo():DependNode(){}
23
ParticleSamplerInfo(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "particleSamplerInfo", shared, create){}
25
virtual ~ParticleSamplerInfo(){}
27
void setOutUvType(unsigned int ouvt)
30
fprintf(mFile,"\tsetAttr \".ouvt\" %i;\n", ouvt);
32
void setNormalizationValue(float nlv)
34
if(nlv == 1.0) return;
35
fprintf(mFile,"\tsetAttr \".nlv\" %f;\n", nlv);
37
void setNormalizationMethod(unsigned int nlm)
40
fprintf(mFile,"\tsetAttr \".nlm\" %i;\n", nlm);
42
void setInverseOutUv(bool iouv)
44
if(iouv == false) return;
45
fprintf(mFile,"\tsetAttr \".iouv\" %i;\n", iouv);
47
void getParticleAttrArray()const
49
fprintf(mFile,"\"%s.paa\"",mName.c_str());
51
void getParticleOrder()const
53
fprintf(mFile,"\"%s.podr\"",mName.c_str());
55
void getObjectType()const
57
fprintf(mFile,"\"%s.otyp\"",mName.c_str());
59
void getParticleColor()const
61
fprintf(mFile,"\"%s.pc\"",mName.c_str());
63
void getParticleColorR()const
65
fprintf(mFile,"\"%s.pc.pcr\"",mName.c_str());
67
void getParticleColorG()const
69
fprintf(mFile,"\"%s.pc.pcg\"",mName.c_str());
71
void getParticleColorB()const
73
fprintf(mFile,"\"%s.pc.pcb\"",mName.c_str());
75
void getParticleTransparency()const
77
fprintf(mFile,"\"%s.pt\"",mName.c_str());
79
void getParticleTransparencyR()const
81
fprintf(mFile,"\"%s.pt.ptr\"",mName.c_str());
83
void getParticleTransparencyG()const
85
fprintf(mFile,"\"%s.pt.ptg\"",mName.c_str());
87
void getParticleTransparencyB()const
89
fprintf(mFile,"\"%s.pt.ptb\"",mName.c_str());
91
void getParticleIncandescence()const
93
fprintf(mFile,"\"%s.pi\"",mName.c_str());
95
void getParticleIncandescenceR()const
97
fprintf(mFile,"\"%s.pi.pir\"",mName.c_str());
99
void getParticleIncandescenceG()const
101
fprintf(mFile,"\"%s.pi.pig\"",mName.c_str());
103
void getParticleIncandescenceB()const
105
fprintf(mFile,"\"%s.pi.pib\"",mName.c_str());
107
void getParticleAge()const
109
fprintf(mFile,"\"%s.pa\"",mName.c_str());
111
void getParticleLifespan()const
113
fprintf(mFile,"\"%s.pls\"",mName.c_str());
115
void getOutUvCoord()const
117
fprintf(mFile,"\"%s.ouv\"",mName.c_str());
119
void getOutUCoord()const
121
fprintf(mFile,"\"%s.ouv.ouc\"",mName.c_str());
123
void getOutVCoord()const
125
fprintf(mFile,"\"%s.ouv.ovc\"",mName.c_str());
127
void getOutUvType()const
129
fprintf(mFile,"\"%s.ouvt\"",mName.c_str());
131
void getNormalizationValue()const
133
fprintf(mFile,"\"%s.nlv\"",mName.c_str());
135
void getNormalizationMethod()const
137
fprintf(mFile,"\"%s.nlm\"",mName.c_str());
139
void getInverseOutUv()const
141
fprintf(mFile,"\"%s.iouv\"",mName.c_str());
143
void getOutColor()const
145
fprintf(mFile,"\"%s.oc\"",mName.c_str());
147
void getOutColorR()const
149
fprintf(mFile,"\"%s.oc.ocr\"",mName.c_str());
151
void getOutColorG()const
153
fprintf(mFile,"\"%s.oc.ocg\"",mName.c_str());
155
void getOutColorB()const
157
fprintf(mFile,"\"%s.oc.ocb\"",mName.c_str());
159
void getOutTransparency()const
161
fprintf(mFile,"\"%s.ot\"",mName.c_str());
163
void getOutTransparencyR()const
165
fprintf(mFile,"\"%s.ot.otr\"",mName.c_str());
167
void getOutTransparencyG()const
169
fprintf(mFile,"\"%s.ot.otg\"",mName.c_str());
171
void getOutTransparencyB()const
173
fprintf(mFile,"\"%s.ot.otb\"",mName.c_str());
175
void getOutIncandescence()const
177
fprintf(mFile,"\"%s.oi\"",mName.c_str());
179
void getOutIncandescenceR()const
181
fprintf(mFile,"\"%s.oi.oicr\"",mName.c_str());
183
void getOutIncandescenceG()const
185
fprintf(mFile,"\"%s.oi.oicg\"",mName.c_str());
187
void getOutIncandescenceB()const
189
fprintf(mFile,"\"%s.oi.oicb\"",mName.c_str());
191
void getFinalLifespanPP()const
193
fprintf(mFile,"\"%s.flp\"",mName.c_str());
195
void getAgeNormalized()const
197
fprintf(mFile,"\"%s.anl\"",mName.c_str());
199
void getParticleId()const
201
fprintf(mFile,"\"%s.pid\"",mName.c_str());
205
fprintf(mFile,"\"%s.ag\"",mName.c_str());
207
void getLifespan()const
209
fprintf(mFile,"\"%s.lsp\"",mName.c_str());
211
void getLifespanPP()const
213
fprintf(mFile,"\"%s.lpp\"",mName.c_str());
215
void getAcceleration()const
217
fprintf(mFile,"\"%s.acc\"",mName.c_str());
219
void getAccelerationX()const
221
fprintf(mFile,"\"%s.acc.accx\"",mName.c_str());
223
void getAccelerationY()const
225
fprintf(mFile,"\"%s.acc.accy\"",mName.c_str());
227
void getAccelerationZ()const
229
fprintf(mFile,"\"%s.acc.accz\"",mName.c_str());
231
void getBirthTime()const
233
fprintf(mFile,"\"%s.bt\"",mName.c_str());
237
fprintf(mFile,"\"%s.frc\"",mName.c_str());
239
void getForceX()const
241
fprintf(mFile,"\"%s.frc.frx\"",mName.c_str());
243
void getForceY()const
245
fprintf(mFile,"\"%s.frc.fry\"",mName.c_str());
247
void getForceZ()const
249
fprintf(mFile,"\"%s.frc.frz\"",mName.c_str());
251
void getPosition()const
253
fprintf(mFile,"\"%s.pos\"",mName.c_str());
255
void getPositionX()const
257
fprintf(mFile,"\"%s.pos.posx\"",mName.c_str());
259
void getPositionY()const
261
fprintf(mFile,"\"%s.pos.posy\"",mName.c_str());
263
void getPositionZ()const
265
fprintf(mFile,"\"%s.pos.posz\"",mName.c_str());
267
void getBirthPosition()const
269
fprintf(mFile,"\"%s.bpos\"",mName.c_str());
271
void getBirthPositionX()const
273
fprintf(mFile,"\"%s.bpos.bpox\"",mName.c_str());
275
void getBirthPositionY()const
277
fprintf(mFile,"\"%s.bpos.bpoy\"",mName.c_str());
279
void getBirthPositionZ()const
281
fprintf(mFile,"\"%s.bpos.bpoz\"",mName.c_str());
283
void getBirthWorldPosition()const
285
fprintf(mFile,"\"%s.bwpo\"",mName.c_str());
287
void getBirthWorldPositionX()const
289
fprintf(mFile,"\"%s.bwpo.bwpx\"",mName.c_str());
291
void getBirthWorldPositionY()const
293
fprintf(mFile,"\"%s.bwpo.bwpy\"",mName.c_str());
295
void getBirthWorldPositionZ()const
297
fprintf(mFile,"\"%s.bwpo.bwpz\"",mName.c_str());
299
void getVelocity()const
301
fprintf(mFile,"\"%s.vel\"",mName.c_str());
303
void getVelocityX()const
305
fprintf(mFile,"\"%s.vel.velx\"",mName.c_str());
307
void getVelocityY()const
309
fprintf(mFile,"\"%s.vel.vely\"",mName.c_str());
311
void getVelocityZ()const
313
fprintf(mFile,"\"%s.vel.velz\"",mName.c_str());
315
void getWorldPosition()const
317
fprintf(mFile,"\"%s.wps\"",mName.c_str());
319
void getWorldPositionX()const
321
fprintf(mFile,"\"%s.wps.wpsx\"",mName.c_str());
323
void getWorldPositionY()const
325
fprintf(mFile,"\"%s.wps.wpsy\"",mName.c_str());
327
void getWorldPositionZ()const
329
fprintf(mFile,"\"%s.wps.wpsz\"",mName.c_str());
331
void getWorldVelocity()const
333
fprintf(mFile,"\"%s.wvl\"",mName.c_str());
335
void getWorldVelocityX()const
337
fprintf(mFile,"\"%s.wvl.wvlx\"",mName.c_str());
339
void getWorldVelocityY()const
341
fprintf(mFile,"\"%s.wvl.wvly\"",mName.c_str());
343
void getWorldVelocityZ()const
345
fprintf(mFile,"\"%s.wvl.wvlz\"",mName.c_str());
347
void getParentU()const
349
fprintf(mFile,"\"%s.pau\"",mName.c_str());
351
void getParentV()const
353
fprintf(mFile,"\"%s.pav\"",mName.c_str());
355
void getCollisionU()const
357
fprintf(mFile,"\"%s.clu\"",mName.c_str());
359
void getCollisionV()const
361
fprintf(mFile,"\"%s.clv\"",mName.c_str());
363
void getColorRed()const
365
fprintf(mFile,"\"%s.cr\"",mName.c_str());
367
void getColorGreen()const
369
fprintf(mFile,"\"%s.cg\"",mName.c_str());
371
void getColorBlue()const
373
fprintf(mFile,"\"%s.cb\"",mName.c_str());
377
fprintf(mFile,"\"%s.rgb\"",mName.c_str());
381
fprintf(mFile,"\"%s.rgb.rpp\"",mName.c_str());
385
fprintf(mFile,"\"%s.rgb.gpp\"",mName.c_str());
389
fprintf(mFile,"\"%s.rgb.bpp\"",mName.c_str());
391
void getIncandescencePP()const
393
fprintf(mFile,"\"%s.oipp\"",mName.c_str());
395
void getIncandescencePPR()const
397
fprintf(mFile,"\"%s.oipp.ippr\"",mName.c_str());
399
void getIncandescencePPG()const
401
fprintf(mFile,"\"%s.oipp.ippg\"",mName.c_str());
403
void getIncandescencePPB()const
405
fprintf(mFile,"\"%s.oipp.ippb\"",mName.c_str());
407
void getIncandescence()const
409
fprintf(mFile,"\"%s.in\"",mName.c_str());
411
void getIncandescenceR()const
413
fprintf(mFile,"\"%s.in.inr\"",mName.c_str());
415
void getIncandescenceG()const
417
fprintf(mFile,"\"%s.in.ing\"",mName.c_str());
419
void getIncandescenceB()const
421
fprintf(mFile,"\"%s.in.inb\"",mName.c_str());
423
void getOpacity()const
425
fprintf(mFile,"\"%s.op\"",mName.c_str());
427
void getOpacityPP()const
429
fprintf(mFile,"\"%s.opp\"",mName.c_str());
431
void getRadius()const
433
fprintf(mFile,"\"%s.rds\"",mName.c_str());
435
void getRadiusPP()const
437
fprintf(mFile,"\"%s.rdp\"",mName.c_str());
439
void getUserScalar1PP()const
441
fprintf(mFile,"\"%s.uds1\"",mName.c_str());
443
void getUserScalar2PP()const
445
fprintf(mFile,"\"%s.uds2\"",mName.c_str());
447
void getUserScalar3PP()const
449
fprintf(mFile,"\"%s.uds3\"",mName.c_str());
451
void getUserScalar4PP()const
453
fprintf(mFile,"\"%s.uds4\"",mName.c_str());
455
void getUserScalar5PP()const
457
fprintf(mFile,"\"%s.uds5\"",mName.c_str());
459
void getUserVector1PP()const
461
fprintf(mFile,"\"%s.udv1\"",mName.c_str());
463
void getUserVector1PPX()const
465
fprintf(mFile,"\"%s.udv1.uv1x\"",mName.c_str());
467
void getUserVector1PPY()const
469
fprintf(mFile,"\"%s.udv1.uv1y\"",mName.c_str());
471
void getUserVector1PPZ()const
473
fprintf(mFile,"\"%s.udv1.uv1z\"",mName.c_str());
475
void getUserVector2PP()const
477
fprintf(mFile,"\"%s.udv2\"",mName.c_str());
479
void getUserVector2PPX()const
481
fprintf(mFile,"\"%s.udv2.uv2x\"",mName.c_str());
483
void getUserVector2PPY()const
485
fprintf(mFile,"\"%s.udv2.uv2y\"",mName.c_str());
487
void getUserVector2PPZ()const
489
fprintf(mFile,"\"%s.udv2.uv2z\"",mName.c_str());
491
void getUserVector3PP()const
493
fprintf(mFile,"\"%s.udv3\"",mName.c_str());
495
void getUserVector3PPX()const
497
fprintf(mFile,"\"%s.udv3.uv3x\"",mName.c_str());
499
void getUserVector3PPY()const
501
fprintf(mFile,"\"%s.udv3.uv3y\"",mName.c_str());
503
void getUserVector3PPZ()const
505
fprintf(mFile,"\"%s.udv3.uv3z\"",mName.c_str());
507
void getUserVector4PP()const
509
fprintf(mFile,"\"%s.udv4\"",mName.c_str());
511
void getUserVector4PPX()const
513
fprintf(mFile,"\"%s.udv4.uv4x\"",mName.c_str());
515
void getUserVector4PPY()const
517
fprintf(mFile,"\"%s.udv4.uv4y\"",mName.c_str());
519
void getUserVector4PPZ()const
521
fprintf(mFile,"\"%s.udv4.uv4z\"",mName.c_str());
523
void getUserVector5PP()const
525
fprintf(mFile,"\"%s.udv5\"",mName.c_str());
527
void getUserVector5PPX()const
529
fprintf(mFile,"\"%s.udv5.uv5x\"",mName.c_str());
531
void getUserVector5PPY()const
533
fprintf(mFile,"\"%s.udv5.uv5y\"",mName.c_str());
535
void getUserVector5PPZ()const
537
fprintf(mFile,"\"%s.udv5.uv5z\"",mName.c_str());
540
ParticleSamplerInfo(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
541
:DependNode(file, name, parent, nodeType, shared, create) {}
545
#endif//__MayaDM_PARTICLESAMPLERINFO_H__