|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSRibbon Class Reference'Ribbon' particle : a shape is extruded while it follows the particle.
More...
#include <ps_ribbon.h>
Inheritance diagram for NL3D::CPSRibbon:
List of all members.
Detailed Description
'Ribbon' particle : a shape is extruded while it follows the particle.
It replaces the old ribbon version. It has more limitations : no 2d rotations and it has no propagation of size and color. It doesn't take ha much memory, and displays better (the length is not dependent on framerate as it was the case before)
Definition at line 45 of file ps_ribbon.h.
Member Typedef Documentation
typedef std::hash_map<uint, CVBnPB> NL3D::CPSRibbon::TVBMap [private]
|
|
Constructor & Destructor Documentation
NL3D::CPSRibbon::CPSRibbon |
( |
|
) |
|
|
NL3D::CPSRibbon::~CPSRibbon |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CPSRibbon::deleteElement |
( |
uint32 |
index |
) |
[protected, virtual] |
|
void NL3D::CPSRibbon::displayRibbons |
( |
uint32 |
nbRibbons, |
|
|
uint32 |
srcStep |
|
) |
[private] |
|
|
display a set of ribbons.
Definition at line 448 of file ps_ribbon.cpp.
References NL3D::CPSColoredParticle::_ColorScheme, _GlobalColor, NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, NL3D::CPSSizedParticle::_ParticleSize, _Shape, NL3D::CPSSizedParticle::_SizeScheme, NL3D::CPSRibbonBase::_UsedNbSegs, NL3D::CPSRibbonBase::_UsedSegDuration, NL3D::CPSRibbonBase::computeRibbon, NL3D::ComputeTexturedRibbonMesh, NL3D::ComputeUntexturedRibbonMesh, NL3D::CPSLocatedBindable::getDriver, getNumRibbonsInVB, getVBnPB, min, nlassert, NL3D::CPSLocatedBindable::setupDriverModelMatrix, setupGlobalColor, touch, and updateMaterial.
Referenced by step. |
virtual bool NL3D::CPSRibbon::getColorFading |
( |
void |
|
) |
const [inline, virtual] |
|
virtual CPSLocated* NL3D::CPSRibbon::getColorOwner |
( |
void |
|
) |
[inline, protected, virtual] |
|
uint32 NL3D::CPSRibbon::getMaxNumFaces |
( |
void |
|
) |
const [virtual] |
|
uint32 NL3D::CPSRibbon::getNbVerticesInShape |
( |
void |
|
) |
const [inline] |
|
|
get the number of vertice in the shape used for ribbons.
Definition at line 146 of file ps_ribbon.h.
References _Shape. |
uint NL3D::CPSRibbon::getNumRibbonsInVB |
( |
|
) |
const [private] |
|
uint NL3D::CPSRibbon::getNumVerticesInSlice |
( |
|
) |
const [inline, private] |
|
|
==================================================================================================================.
-
Parameters:
-
dest |
a table of cvector that has the right size, it will be filled with vertices |
-
See also:
-
getNbVerticesInShape()
Definition at line 1071 of file ps_ribbon.cpp.
References _Shape. |
virtual CPSLocated* NL3D::CPSRibbon::getSizeOwner |
( |
void |
|
) |
[inline, protected, virtual] |
|
const ITexture* NL3D::CPSRibbon::getTexture |
( |
void |
|
) |
const [inline, virtual] |
|
ITexture* NL3D::CPSRibbon::getTexture |
( |
void |
|
) |
[inline, virtual] |
|
float NL3D::CPSRibbon::getUFactor |
( |
void |
|
) |
const [inline] |
|
|
get a vertex buffer and a primitive suited for the current ribbon.
Definition at line 661 of file ps_ribbon.cpp.
References _ColoredVBMap, _ColorFading, NL3D::CPSColoredParticle::_ColorScheme, _FadedColoredVBMap, _FadedVBMap, _Shape, _Tex, _TexColoredVBMap, _TexFadedColoredVBMap, _TexFadedVBMap, _TexVBMap, NL3D::CPSRibbonBase::_UsedNbSegs, _VBMap, getNumRibbonsInVB, getNumVerticesInSlice, NLAISCRIPT::l, nlassert, and TVBMap.
Referenced by displayRibbons. |
float NL3D::CPSRibbon::getVFactor |
( |
void |
|
) |
const [inline] |
|
bool NL3D::CPSRibbon::hasOpaqueFaces |
( |
void |
|
) |
[virtual] |
|
bool NL3D::CPSRibbon::hasTransparentFaces |
( |
void |
|
) |
[virtual] |
|
virtual bool NL3D::CPSRibbon::isInSystemBasis |
( |
void |
|
) |
const [inline, virtual] |
|
void NL3D::CPSRibbon::newElement |
( |
CPSLocated * |
emitterLocated, |
|
|
uint32 |
emitterIndex |
|
) |
[protected, virtual] |
|
NL3D::CPSRibbon::NLMISC_DECLARE_CLASS |
( |
CPSRibbon |
|
) |
|
|
void NL3D::CPSRibbon::resize |
( |
uint32 |
size |
) |
[protected, virtual] |
|
|
==================================================================================================================.
Reimplemented from NL3D::CPSRibbonBase.
Definition at line 121 of file ps_ribbon.cpp.
References id, and nlassert. |
virtual void NL3D::CPSRibbon::setColorFading |
( |
bool |
onOff = true |
) |
[inline, virtual] |
|
|
==================================================================================================================.
-
Parameters:
-
shape |
pointer to a shape that will be extruded along the ribbon. It must have a unit size and be located in the x-y plane (z can be used for effects) . This will be copied |
nbPointsInShape |
: the number of points in the shape |
Definition at line 1063 of file ps_ribbon.cpp.
References nlassert.
Referenced by CPSRibbon. |
virtual void NL3D::CPSRibbon::setSystemBasis |
( |
bool |
yes |
) |
[inline, virtual] |
|
|
tells in which basis is the tail It requires one transform per particle if it is not the same as the located that hold that particle The default is false.
With that you can control if a rotation of the system will rotate the tail
Implements NL3D::CPSTailParticle.
Definition at line 93 of file ps_ribbon.h. |
void NL3D::CPSRibbon::setTexFactor |
( |
float |
uFactor = 1.f, |
|
|
float |
vFactor = 1.f |
|
) |
[inline] |
|
void NL3D::CPSRibbon::setupGlobalColor |
( |
|
) |
[private] |
|
void NL3D::CPSRibbon::setupTexturedGlobalColor |
( |
|
) |
[inline, private] |
|
void NL3D::CPSRibbon::setupTextureMatrix |
( |
|
) |
[private] |
|
void NL3D::CPSRibbon::setupUntexturedGlobalColor |
( |
|
) |
[inline, private] |
|
|
inherited from CPSParticle.
-
See also:
-
_PersistAfterDeath()
Reimplemented from NL3D::CPSParticle.
Definition at line 261 of file ps_ribbon.cpp.
References NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, NL3D::CPSRibbonBase::_Parametric, NL3D::CPSParticle::computeSrcStep, displayRibbons, hasOpaqueFaces, hasTransparentFaces, NL3D::PSBlendRender, NL3D::PSMotion, NL3D::PSSolidRender, NL3D::PSToolRender, step, NL3D::TAnimationTime, NL3D::TPSProcessPass, and NL3D::CPSRibbonBase::updateGlobals.
Referenced by step. |
void NL3D::CPSRibbon::touch |
( |
|
) |
[inline, private] |
|
void NL3D::CPSRibbon::updateMatAndVbForColor |
( |
void |
|
) |
[private, virtual] |
|
void NL3D::CPSRibbon::updateMaterial |
( |
|
) |
[private] |
|
void NL3D::CPSRibbon::updateTexturedMaterial |
( |
|
) |
[inline, private] |
|
void NL3D::CPSRibbon::updateUntexturedMaterial |
( |
|
) |
[inline, private] |
|
Member Data Documentation
bool NL3D::CPSRibbon::_ColorFading [private]
|
|
bool NL3D::CPSRibbon::_GlobalColor [private]
|
|
CSmartPtr<ITexture> NL3D::CPSRibbon::_Tex [private]
|
|
bool NL3D::CPSRibbon::_Touch [private]
|
|
float NL3D::CPSRibbon::_UFactor [private]
|
|
float NL3D::CPSRibbon::_VFactor [private]
|
|
|
Initial value:
{
NLMISC::CVector(-0.5f, 1, 0),
NLMISC::CVector(0.5f, 1, 0),
NLMISC::CVector(1, 0.5f, 0),
NLMISC::CVector(1, -0.5f, 0),
NLMISC::CVector(0.5f, -1, 0),
NLMISC::CVector(-0.5f, -1, 0),
NLMISC::CVector(-1, -0.5f, 0),
NLMISC::CVector(-1, 0.5f, 0)
} Predefined shape : height sides.
Definition at line 76 of file ps_ribbon.cpp. |
|
Initial value:
{
NLMISC::CVector(0, 1.f, 0),
NLMISC::CVector(1.f, 0, 0),
NLMISC::CVector(0, -1.f, 0),
NLMISC::CVector(-1.f, 0, 0)
} Predefined shape : a regular losange shape.
Definition at line 68 of file ps_ribbon.cpp. |
|
number of vertices in the height side (must be 8 ... :) ).
Definition at line 100 of file ps_ribbon.cpp. |
const uint NL3D::CPSRibbon::NbVerticesInLosange = sizeof(Losange) / sizeof(CVector) [static]
|
|
|
number of vertices in the losange.
Definition at line 99 of file ps_ribbon.cpp. |
|
Initial value:
{
NLMISC::CVector(0, 1, 0),
NLMISC::CVector(1, -1, 0),
NLMISC::CVector(-1, 0, 0),
NLMISC::CVector(1, 0, 0),
NLMISC::CVector(-1, -1, 0)
} Predifined shape : pentagram.
Definition at line 89 of file ps_ribbon.cpp. |
The documentation for this class was generated from the following files:
|
|