~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to Externals/MayaDataModel/include/MayaDMParticleSamplerInfo.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of MayaDataModel.
 
5
 
 
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
 
9
*/
 
10
#ifndef __MayaDM_PARTICLESAMPLERINFO_H__
 
11
#define __MayaDM_PARTICLESAMPLERINFO_H__
 
12
#include "MayaDMTypes.h"
 
13
#include "MayaDMConnectables.h"
 
14
#include "MayaDMDependNode.h"
 
15
namespace MayaDM
 
16
{
 
17
class ParticleSamplerInfo : public DependNode
 
18
{
 
19
public:
 
20
public:
 
21
 
 
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(){}
 
26
 
 
27
        void setOutUvType(unsigned int ouvt)
 
28
        {
 
29
                if(ouvt == 0) return;
 
30
                fprintf(mFile,"\tsetAttr \".ouvt\" %i;\n", ouvt);
 
31
        }
 
32
        void setNormalizationValue(float nlv)
 
33
        {
 
34
                if(nlv == 1.0) return;
 
35
                fprintf(mFile,"\tsetAttr \".nlv\" %f;\n", nlv);
 
36
        }
 
37
        void setNormalizationMethod(unsigned int nlm)
 
38
        {
 
39
                if(nlm == 0) return;
 
40
                fprintf(mFile,"\tsetAttr \".nlm\" %i;\n", nlm);
 
41
        }
 
42
        void setInverseOutUv(bool iouv)
 
43
        {
 
44
                if(iouv == false) return;
 
45
                fprintf(mFile,"\tsetAttr \".iouv\" %i;\n", iouv);
 
46
        }
 
47
        void getParticleAttrArray()const
 
48
        {
 
49
                fprintf(mFile,"\"%s.paa\"",mName.c_str());
 
50
        }
 
51
        void getParticleOrder()const
 
52
        {
 
53
                fprintf(mFile,"\"%s.podr\"",mName.c_str());
 
54
        }
 
55
        void getObjectType()const
 
56
        {
 
57
                fprintf(mFile,"\"%s.otyp\"",mName.c_str());
 
58
        }
 
59
        void getParticleColor()const
 
60
        {
 
61
                fprintf(mFile,"\"%s.pc\"",mName.c_str());
 
62
        }
 
63
        void getParticleColorR()const
 
64
        {
 
65
                fprintf(mFile,"\"%s.pc.pcr\"",mName.c_str());
 
66
        }
 
67
        void getParticleColorG()const
 
68
        {
 
69
                fprintf(mFile,"\"%s.pc.pcg\"",mName.c_str());
 
70
        }
 
71
        void getParticleColorB()const
 
72
        {
 
73
                fprintf(mFile,"\"%s.pc.pcb\"",mName.c_str());
 
74
        }
 
75
        void getParticleTransparency()const
 
76
        {
 
77
                fprintf(mFile,"\"%s.pt\"",mName.c_str());
 
78
        }
 
79
        void getParticleTransparencyR()const
 
80
        {
 
81
                fprintf(mFile,"\"%s.pt.ptr\"",mName.c_str());
 
82
        }
 
83
        void getParticleTransparencyG()const
 
84
        {
 
85
                fprintf(mFile,"\"%s.pt.ptg\"",mName.c_str());
 
86
        }
 
87
        void getParticleTransparencyB()const
 
88
        {
 
89
                fprintf(mFile,"\"%s.pt.ptb\"",mName.c_str());
 
90
        }
 
91
        void getParticleIncandescence()const
 
92
        {
 
93
                fprintf(mFile,"\"%s.pi\"",mName.c_str());
 
94
        }
 
95
        void getParticleIncandescenceR()const
 
96
        {
 
97
                fprintf(mFile,"\"%s.pi.pir\"",mName.c_str());
 
98
        }
 
99
        void getParticleIncandescenceG()const
 
100
        {
 
101
                fprintf(mFile,"\"%s.pi.pig\"",mName.c_str());
 
102
        }
 
103
        void getParticleIncandescenceB()const
 
104
        {
 
105
                fprintf(mFile,"\"%s.pi.pib\"",mName.c_str());
 
106
        }
 
107
        void getParticleAge()const
 
108
        {
 
109
                fprintf(mFile,"\"%s.pa\"",mName.c_str());
 
110
        }
 
111
        void getParticleLifespan()const
 
112
        {
 
113
                fprintf(mFile,"\"%s.pls\"",mName.c_str());
 
114
        }
 
115
        void getOutUvCoord()const
 
116
        {
 
117
                fprintf(mFile,"\"%s.ouv\"",mName.c_str());
 
118
        }
 
119
        void getOutUCoord()const
 
120
        {
 
121
                fprintf(mFile,"\"%s.ouv.ouc\"",mName.c_str());
 
122
        }
 
123
        void getOutVCoord()const
 
124
        {
 
125
                fprintf(mFile,"\"%s.ouv.ovc\"",mName.c_str());
 
126
        }
 
127
        void getOutUvType()const
 
128
        {
 
129
                fprintf(mFile,"\"%s.ouvt\"",mName.c_str());
 
130
        }
 
131
        void getNormalizationValue()const
 
132
        {
 
133
                fprintf(mFile,"\"%s.nlv\"",mName.c_str());
 
134
        }
 
135
        void getNormalizationMethod()const
 
136
        {
 
137
                fprintf(mFile,"\"%s.nlm\"",mName.c_str());
 
138
        }
 
139
        void getInverseOutUv()const
 
140
        {
 
141
                fprintf(mFile,"\"%s.iouv\"",mName.c_str());
 
142
        }
 
143
        void getOutColor()const
 
144
        {
 
145
                fprintf(mFile,"\"%s.oc\"",mName.c_str());
 
146
        }
 
147
        void getOutColorR()const
 
148
        {
 
149
                fprintf(mFile,"\"%s.oc.ocr\"",mName.c_str());
 
150
        }
 
151
        void getOutColorG()const
 
152
        {
 
153
                fprintf(mFile,"\"%s.oc.ocg\"",mName.c_str());
 
154
        }
 
155
        void getOutColorB()const
 
156
        {
 
157
                fprintf(mFile,"\"%s.oc.ocb\"",mName.c_str());
 
158
        }
 
159
        void getOutTransparency()const
 
160
        {
 
161
                fprintf(mFile,"\"%s.ot\"",mName.c_str());
 
162
        }
 
163
        void getOutTransparencyR()const
 
164
        {
 
165
                fprintf(mFile,"\"%s.ot.otr\"",mName.c_str());
 
166
        }
 
167
        void getOutTransparencyG()const
 
168
        {
 
169
                fprintf(mFile,"\"%s.ot.otg\"",mName.c_str());
 
170
        }
 
171
        void getOutTransparencyB()const
 
172
        {
 
173
                fprintf(mFile,"\"%s.ot.otb\"",mName.c_str());
 
174
        }
 
175
        void getOutIncandescence()const
 
176
        {
 
177
                fprintf(mFile,"\"%s.oi\"",mName.c_str());
 
178
        }
 
179
        void getOutIncandescenceR()const
 
180
        {
 
181
                fprintf(mFile,"\"%s.oi.oicr\"",mName.c_str());
 
182
        }
 
183
        void getOutIncandescenceG()const
 
184
        {
 
185
                fprintf(mFile,"\"%s.oi.oicg\"",mName.c_str());
 
186
        }
 
187
        void getOutIncandescenceB()const
 
188
        {
 
189
                fprintf(mFile,"\"%s.oi.oicb\"",mName.c_str());
 
190
        }
 
191
        void getFinalLifespanPP()const
 
192
        {
 
193
                fprintf(mFile,"\"%s.flp\"",mName.c_str());
 
194
        }
 
195
        void getAgeNormalized()const
 
196
        {
 
197
                fprintf(mFile,"\"%s.anl\"",mName.c_str());
 
198
        }
 
199
        void getParticleId()const
 
200
        {
 
201
                fprintf(mFile,"\"%s.pid\"",mName.c_str());
 
202
        }
 
203
        void getAge()const
 
204
        {
 
205
                fprintf(mFile,"\"%s.ag\"",mName.c_str());
 
206
        }
 
207
        void getLifespan()const
 
208
        {
 
209
                fprintf(mFile,"\"%s.lsp\"",mName.c_str());
 
210
        }
 
211
        void getLifespanPP()const
 
212
        {
 
213
                fprintf(mFile,"\"%s.lpp\"",mName.c_str());
 
214
        }
 
215
        void getAcceleration()const
 
216
        {
 
217
                fprintf(mFile,"\"%s.acc\"",mName.c_str());
 
218
        }
 
219
        void getAccelerationX()const
 
220
        {
 
221
                fprintf(mFile,"\"%s.acc.accx\"",mName.c_str());
 
222
        }
 
223
        void getAccelerationY()const
 
224
        {
 
225
                fprintf(mFile,"\"%s.acc.accy\"",mName.c_str());
 
226
        }
 
227
        void getAccelerationZ()const
 
228
        {
 
229
                fprintf(mFile,"\"%s.acc.accz\"",mName.c_str());
 
230
        }
 
231
        void getBirthTime()const
 
232
        {
 
233
                fprintf(mFile,"\"%s.bt\"",mName.c_str());
 
234
        }
 
235
        void getForce()const
 
236
        {
 
237
                fprintf(mFile,"\"%s.frc\"",mName.c_str());
 
238
        }
 
239
        void getForceX()const
 
240
        {
 
241
                fprintf(mFile,"\"%s.frc.frx\"",mName.c_str());
 
242
        }
 
243
        void getForceY()const
 
244
        {
 
245
                fprintf(mFile,"\"%s.frc.fry\"",mName.c_str());
 
246
        }
 
247
        void getForceZ()const
 
248
        {
 
249
                fprintf(mFile,"\"%s.frc.frz\"",mName.c_str());
 
250
        }
 
251
        void getPosition()const
 
252
        {
 
253
                fprintf(mFile,"\"%s.pos\"",mName.c_str());
 
254
        }
 
255
        void getPositionX()const
 
256
        {
 
257
                fprintf(mFile,"\"%s.pos.posx\"",mName.c_str());
 
258
        }
 
259
        void getPositionY()const
 
260
        {
 
261
                fprintf(mFile,"\"%s.pos.posy\"",mName.c_str());
 
262
        }
 
263
        void getPositionZ()const
 
264
        {
 
265
                fprintf(mFile,"\"%s.pos.posz\"",mName.c_str());
 
266
        }
 
267
        void getBirthPosition()const
 
268
        {
 
269
                fprintf(mFile,"\"%s.bpos\"",mName.c_str());
 
270
        }
 
271
        void getBirthPositionX()const
 
272
        {
 
273
                fprintf(mFile,"\"%s.bpos.bpox\"",mName.c_str());
 
274
        }
 
275
        void getBirthPositionY()const
 
276
        {
 
277
                fprintf(mFile,"\"%s.bpos.bpoy\"",mName.c_str());
 
278
        }
 
279
        void getBirthPositionZ()const
 
280
        {
 
281
                fprintf(mFile,"\"%s.bpos.bpoz\"",mName.c_str());
 
282
        }
 
283
        void getBirthWorldPosition()const
 
284
        {
 
285
                fprintf(mFile,"\"%s.bwpo\"",mName.c_str());
 
286
        }
 
287
        void getBirthWorldPositionX()const
 
288
        {
 
289
                fprintf(mFile,"\"%s.bwpo.bwpx\"",mName.c_str());
 
290
        }
 
291
        void getBirthWorldPositionY()const
 
292
        {
 
293
                fprintf(mFile,"\"%s.bwpo.bwpy\"",mName.c_str());
 
294
        }
 
295
        void getBirthWorldPositionZ()const
 
296
        {
 
297
                fprintf(mFile,"\"%s.bwpo.bwpz\"",mName.c_str());
 
298
        }
 
299
        void getVelocity()const
 
300
        {
 
301
                fprintf(mFile,"\"%s.vel\"",mName.c_str());
 
302
        }
 
303
        void getVelocityX()const
 
304
        {
 
305
                fprintf(mFile,"\"%s.vel.velx\"",mName.c_str());
 
306
        }
 
307
        void getVelocityY()const
 
308
        {
 
309
                fprintf(mFile,"\"%s.vel.vely\"",mName.c_str());
 
310
        }
 
311
        void getVelocityZ()const
 
312
        {
 
313
                fprintf(mFile,"\"%s.vel.velz\"",mName.c_str());
 
314
        }
 
315
        void getWorldPosition()const
 
316
        {
 
317
                fprintf(mFile,"\"%s.wps\"",mName.c_str());
 
318
        }
 
319
        void getWorldPositionX()const
 
320
        {
 
321
                fprintf(mFile,"\"%s.wps.wpsx\"",mName.c_str());
 
322
        }
 
323
        void getWorldPositionY()const
 
324
        {
 
325
                fprintf(mFile,"\"%s.wps.wpsy\"",mName.c_str());
 
326
        }
 
327
        void getWorldPositionZ()const
 
328
        {
 
329
                fprintf(mFile,"\"%s.wps.wpsz\"",mName.c_str());
 
330
        }
 
331
        void getWorldVelocity()const
 
332
        {
 
333
                fprintf(mFile,"\"%s.wvl\"",mName.c_str());
 
334
        }
 
335
        void getWorldVelocityX()const
 
336
        {
 
337
                fprintf(mFile,"\"%s.wvl.wvlx\"",mName.c_str());
 
338
        }
 
339
        void getWorldVelocityY()const
 
340
        {
 
341
                fprintf(mFile,"\"%s.wvl.wvly\"",mName.c_str());
 
342
        }
 
343
        void getWorldVelocityZ()const
 
344
        {
 
345
                fprintf(mFile,"\"%s.wvl.wvlz\"",mName.c_str());
 
346
        }
 
347
        void getParentU()const
 
348
        {
 
349
                fprintf(mFile,"\"%s.pau\"",mName.c_str());
 
350
        }
 
351
        void getParentV()const
 
352
        {
 
353
                fprintf(mFile,"\"%s.pav\"",mName.c_str());
 
354
        }
 
355
        void getCollisionU()const
 
356
        {
 
357
                fprintf(mFile,"\"%s.clu\"",mName.c_str());
 
358
        }
 
359
        void getCollisionV()const
 
360
        {
 
361
                fprintf(mFile,"\"%s.clv\"",mName.c_str());
 
362
        }
 
363
        void getColorRed()const
 
364
        {
 
365
                fprintf(mFile,"\"%s.cr\"",mName.c_str());
 
366
        }
 
367
        void getColorGreen()const
 
368
        {
 
369
                fprintf(mFile,"\"%s.cg\"",mName.c_str());
 
370
        }
 
371
        void getColorBlue()const
 
372
        {
 
373
                fprintf(mFile,"\"%s.cb\"",mName.c_str());
 
374
        }
 
375
        void getRgbPP()const
 
376
        {
 
377
                fprintf(mFile,"\"%s.rgb\"",mName.c_str());
 
378
        }
 
379
        void getRPP()const
 
380
        {
 
381
                fprintf(mFile,"\"%s.rgb.rpp\"",mName.c_str());
 
382
        }
 
383
        void getGPP()const
 
384
        {
 
385
                fprintf(mFile,"\"%s.rgb.gpp\"",mName.c_str());
 
386
        }
 
387
        void getBPP()const
 
388
        {
 
389
                fprintf(mFile,"\"%s.rgb.bpp\"",mName.c_str());
 
390
        }
 
391
        void getIncandescencePP()const
 
392
        {
 
393
                fprintf(mFile,"\"%s.oipp\"",mName.c_str());
 
394
        }
 
395
        void getIncandescencePPR()const
 
396
        {
 
397
                fprintf(mFile,"\"%s.oipp.ippr\"",mName.c_str());
 
398
        }
 
399
        void getIncandescencePPG()const
 
400
        {
 
401
                fprintf(mFile,"\"%s.oipp.ippg\"",mName.c_str());
 
402
        }
 
403
        void getIncandescencePPB()const
 
404
        {
 
405
                fprintf(mFile,"\"%s.oipp.ippb\"",mName.c_str());
 
406
        }
 
407
        void getIncandescence()const
 
408
        {
 
409
                fprintf(mFile,"\"%s.in\"",mName.c_str());
 
410
        }
 
411
        void getIncandescenceR()const
 
412
        {
 
413
                fprintf(mFile,"\"%s.in.inr\"",mName.c_str());
 
414
        }
 
415
        void getIncandescenceG()const
 
416
        {
 
417
                fprintf(mFile,"\"%s.in.ing\"",mName.c_str());
 
418
        }
 
419
        void getIncandescenceB()const
 
420
        {
 
421
                fprintf(mFile,"\"%s.in.inb\"",mName.c_str());
 
422
        }
 
423
        void getOpacity()const
 
424
        {
 
425
                fprintf(mFile,"\"%s.op\"",mName.c_str());
 
426
        }
 
427
        void getOpacityPP()const
 
428
        {
 
429
                fprintf(mFile,"\"%s.opp\"",mName.c_str());
 
430
        }
 
431
        void getRadius()const
 
432
        {
 
433
                fprintf(mFile,"\"%s.rds\"",mName.c_str());
 
434
        }
 
435
        void getRadiusPP()const
 
436
        {
 
437
                fprintf(mFile,"\"%s.rdp\"",mName.c_str());
 
438
        }
 
439
        void getUserScalar1PP()const
 
440
        {
 
441
                fprintf(mFile,"\"%s.uds1\"",mName.c_str());
 
442
        }
 
443
        void getUserScalar2PP()const
 
444
        {
 
445
                fprintf(mFile,"\"%s.uds2\"",mName.c_str());
 
446
        }
 
447
        void getUserScalar3PP()const
 
448
        {
 
449
                fprintf(mFile,"\"%s.uds3\"",mName.c_str());
 
450
        }
 
451
        void getUserScalar4PP()const
 
452
        {
 
453
                fprintf(mFile,"\"%s.uds4\"",mName.c_str());
 
454
        }
 
455
        void getUserScalar5PP()const
 
456
        {
 
457
                fprintf(mFile,"\"%s.uds5\"",mName.c_str());
 
458
        }
 
459
        void getUserVector1PP()const
 
460
        {
 
461
                fprintf(mFile,"\"%s.udv1\"",mName.c_str());
 
462
        }
 
463
        void getUserVector1PPX()const
 
464
        {
 
465
                fprintf(mFile,"\"%s.udv1.uv1x\"",mName.c_str());
 
466
        }
 
467
        void getUserVector1PPY()const
 
468
        {
 
469
                fprintf(mFile,"\"%s.udv1.uv1y\"",mName.c_str());
 
470
        }
 
471
        void getUserVector1PPZ()const
 
472
        {
 
473
                fprintf(mFile,"\"%s.udv1.uv1z\"",mName.c_str());
 
474
        }
 
475
        void getUserVector2PP()const
 
476
        {
 
477
                fprintf(mFile,"\"%s.udv2\"",mName.c_str());
 
478
        }
 
479
        void getUserVector2PPX()const
 
480
        {
 
481
                fprintf(mFile,"\"%s.udv2.uv2x\"",mName.c_str());
 
482
        }
 
483
        void getUserVector2PPY()const
 
484
        {
 
485
                fprintf(mFile,"\"%s.udv2.uv2y\"",mName.c_str());
 
486
        }
 
487
        void getUserVector2PPZ()const
 
488
        {
 
489
                fprintf(mFile,"\"%s.udv2.uv2z\"",mName.c_str());
 
490
        }
 
491
        void getUserVector3PP()const
 
492
        {
 
493
                fprintf(mFile,"\"%s.udv3\"",mName.c_str());
 
494
        }
 
495
        void getUserVector3PPX()const
 
496
        {
 
497
                fprintf(mFile,"\"%s.udv3.uv3x\"",mName.c_str());
 
498
        }
 
499
        void getUserVector3PPY()const
 
500
        {
 
501
                fprintf(mFile,"\"%s.udv3.uv3y\"",mName.c_str());
 
502
        }
 
503
        void getUserVector3PPZ()const
 
504
        {
 
505
                fprintf(mFile,"\"%s.udv3.uv3z\"",mName.c_str());
 
506
        }
 
507
        void getUserVector4PP()const
 
508
        {
 
509
                fprintf(mFile,"\"%s.udv4\"",mName.c_str());
 
510
        }
 
511
        void getUserVector4PPX()const
 
512
        {
 
513
                fprintf(mFile,"\"%s.udv4.uv4x\"",mName.c_str());
 
514
        }
 
515
        void getUserVector4PPY()const
 
516
        {
 
517
                fprintf(mFile,"\"%s.udv4.uv4y\"",mName.c_str());
 
518
        }
 
519
        void getUserVector4PPZ()const
 
520
        {
 
521
                fprintf(mFile,"\"%s.udv4.uv4z\"",mName.c_str());
 
522
        }
 
523
        void getUserVector5PP()const
 
524
        {
 
525
                fprintf(mFile,"\"%s.udv5\"",mName.c_str());
 
526
        }
 
527
        void getUserVector5PPX()const
 
528
        {
 
529
                fprintf(mFile,"\"%s.udv5.uv5x\"",mName.c_str());
 
530
        }
 
531
        void getUserVector5PPY()const
 
532
        {
 
533
                fprintf(mFile,"\"%s.udv5.uv5y\"",mName.c_str());
 
534
        }
 
535
        void getUserVector5PPZ()const
 
536
        {
 
537
                fprintf(mFile,"\"%s.udv5.uv5z\"",mName.c_str());
 
538
        }
 
539
protected:
 
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) {}
 
542
 
 
543
};
 
544
}//namespace MayaDM
 
545
#endif//__MayaDM_PARTICLESAMPLERINFO_H__