Home | nevrax.com |
|
NL3D::CPSAttribMakerMemory Class Template ReferenceThis class is an attribute maker that has memory, all what is does is to duplicate its mem when 'make' is called It own an attribute maker that tells how to produce the attribute from its emiter date, speed and so on ... More...
Inheritance diagram for NL3D::CPSAttribMakerMemory:
Detailed Descriptiontemplate<typename T>
This class is an attribute maker that has memory, all what is does is to duplicate its mem when 'make' is called It own an attribute maker that tells how to produce the attribute from its emiter date, speed and so on ...
|
|
\TODO : create a base class for CPSAttribMaker, that don't have the attributes not needed for this class ctor (note : we don't use the nbCycle field ...).
Definition at line 1330 of file ps_attrib_maker_helper.h. Referenced by NL3D::CPSAttribMakerMemory< sint32 >::CPSAttribMakerMemory. |
|
Definition at line 1381 of file ps_attrib_maker_helper.h. |
|
dtor.
Definition at line 1390 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Reimplemented from NL3D::CPSAttribMaker. Definition at line 1558 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Implements NL3D::CPSAttribMaker. Definition at line 1399 of file ps_attrib_maker_helper.h. |
|
get the default value :.
Definition at line 1356 of file ps_attrib_maker_helper.h. |
|
get the scheme used (const version).
Definition at line 1377 of file ps_attrib_maker_helper.h. |
|
get the scheme used.
Definition at line 1375 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Implements NL3D::CPSAttribMaker. Definition at line 1406 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Implements NL3D::CPSAttribMaker. Definition at line 1452 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Implements NL3D::CPSAttribMaker. Definition at line 1497 of file ps_attrib_maker_helper.h. |
|
inherited from CPSAttribMaker.
Reimplemented from NL3D::CPSAttribMaker. Definition at line 1568 of file ps_attrib_maker_helper.h. |
|
well a value may be returned without having to know the emitter (random, user param ...) but this case is really useless anyway ...
Reimplemented from NL3D::CPSAttribMaker. Definition at line 1591 of file ps_attrib_maker_helper.h. |
|
serialisation of the object. Derivers MUST call this, (if they use the attribute of this class at least).
Reimplemented from NL3D::CPSAttribMaker. Definition at line 1543 of file ps_attrib_maker_helper.h. |
|
set a default value for initialisation, otherwise it will be garbage. This is needed when new element are generated, but not from an emitter for example, when you set this scheme to a LocatedBindable that does have a least one instance in it example : CPSDot *d = new CPSDot; CPSAttribMakerMemory<RGBA> *genAttribMaker = new CPSAttribMakerMemory<RGBA>; genAttribMaker->setScheme(CPSColorBlender(CRGBA::White, CRGBA::Black) Now, if an emitter emit these particle, it'll start to emit white ones, and then black ones d->setColorScheme( genAttribMaker); now, suppose that there were several dot instanciated before the setScheme is performed : d->newElement(); no color has been memorized for this element, so when setScheme is performed, it has to generate one There are no emitter that provides it, so its taken from the default value Note : this should only be useful in an editor, that allow the user to change the scheme with a running system ... Definition at line 1353 of file ps_attrib_maker_helper.h. |
|
set the scheme used to store attribute. this MUST be called, otherwise an assertion will be thrown later It must have been allocated by new, and it will be deleted by this object Definition at line 1363 of file ps_attrib_maker_helper.h. |
|
|
this attribute maker tells us how to produce arguments from an emitter. as an example, we may want to have a gradient of color : the emitter emit green then blue particles, following a gradient. the color is produced by _Scheme and _T stores it Definition at line 1630 of file ps_attrib_maker_helper.h. Referenced by NL3D::CPSAttribMakerMemory< sint32 >::CPSAttribMakerMemory, NL3D::CPSAttribMakerMemory< sint32 >::deleteElement, NL3D::CPSAttribMakerMemory< sint32 >::getScheme, NL3D::CPSAttribMakerMemory< sint32 >::newElement, NL3D::CPSAttribMakerMemory< sint32 >::resize, NL3D::CPSAttribMakerMemory< sint32 >::serial, NL3D::CPSAttribMakerMemory< sint32 >::setScheme, and NL3D::CPSAttribMakerMemory< sint32 >::~CPSAttribMakerMemory. |
|