From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNL3D_1_1CPSRibbon.html | 2338 ++++++++++++++++++++++++++ 1 file changed, 2338 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CPSRibbon.html (limited to 'docs/doxygen/nel/classNL3D_1_1CPSRibbon.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CPSRibbon.html b/docs/doxygen/nel/classNL3D_1_1CPSRibbon.html new file mode 100644 index 00000000..d9f773ec --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CPSRibbon.html @@ -0,0 +1,2338 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
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: +

+ +NL3D::CPSRibbonBase +NL3D::CPSColoredParticle +NL3D::CPSSizedParticle +NL3D::CPSMaterial +NL3D::CPSTexturedParticleNoAnim +NL3D::CPSParticle +NL3D::CPSTailParticle +NL3D::CPSLocatedBindable +NLMISC::IStreamable +NLMISC::IClassable + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Vertex buffers & their corresponding index buffers. We keep a map of pretextured vertex buffer (with or without colors).

Vb for ribbons that have the same size are shared.

typedef std::hash_map< uint,
+ CVBnPB
TVBMap
CVBnPBgetVBnPB ()
 get a vertex buffer and a primitive suited for the current ribbon. More...

uint getNumRibbonsInVB () const
 get the number of ribbons contained in a vb for a given length. (e.g the number of ribbons that can be batched). More...

TVBMap _VBMap
 untextured ribbons. More...

TVBMap _FadedVBMap
TVBMap _ColoredVBMap
TVBMap _FadedColoredVBMap
TVBMap _TexVBMap
 textured ribbons. More...

TVBMap _TexFadedVBMap
TVBMap _TexColoredVBMap
TVBMap _TexFadedColoredVBMap

Public Methods

virtual void step (TPSProcessPass pass, TAnimationTime ellapsedTime, TAnimationTime realEt)
 inherited from CPSParticle. More...

virtual bool hasTransparentFaces (void)
 return true if there are transparent faces in the object. More...

virtual bool hasOpaqueFaces (void)
 return true if there are Opaque faces in the object. More...

virtual uint32 getMaxNumFaces (void) const
 return the max number of faces needed for display. This is needed for LOD balancing. More...

void setTexture (NLMISC::CSmartPtr< ITexture > tex)
 set a texture. More...

void setTexFactor (float uFactor=1.f, float vFactor=1.f)
 Set texture factors. More...

float getUFactor (void) const
float getVFactor (void) const
ITexturegetTexture (void)
 get the texture used. More...

const ITexturegetTexture (void) const
void setShape (const NLMISC::CVector *shape, uint32 nbPointsInShape)
 ==================================================================================================================. More...

uint32 getNbVerticesInShape (void) const
 get the number of vertice in the shape used for ribbons. More...

void getShape (NLMISC::CVector *shape) const
 ==================================================================================================================. More...

Object
 CPSRibbon ()
 ctor. More...

 ~CPSRibbon ()
 dtor. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 ==================================================================================================================. More...

 NLMISC_DECLARE_CLASS (CPSRibbon)
Behaviour
virtual void setColorFading (bool onOff=true)
 (de)activate color fading when its done, colors fades to black along the ribbon. More...

virtual bool getColorFading (void) const
 Test wether color fading is activated. More...

virtual void setSystemBasis (bool yes)
 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. More...

virtual bool isInSystemBasis (void) const
 return true if the tails are in the system basis. More...


Static Public Attributes

Predefined shapes
const NLMISC::CVector Losange []
 Predefined shape : a regular losange shape. More...

const uint NbVerticesInLosange = sizeof(Losange) / sizeof(CVector)
 number of vertices in the losange. More...

const NLMISC::CVector HeightSides []
 Predefined shape : height sides. More...

const uint NbVerticesInHeightSide = sizeof(CPSRibbon::HeightSides) / sizeof(CVector)
 number of vertices in the height side (must be 8 ... :) ). More...

const NLMISC::CVector Pentagram []
 Predifined shape : pentagram. More...

const uint NbVerticesInPentagram = sizeof(CPSRibbon::Pentagram) / sizeof(CVector)
const NLMISC::CVector Triangle []
 Predifined shape : triangle. More...

const uint NbVerticesInTriangle = sizeof(CPSRibbon::Triangle) / sizeof(CVector)

Protected Methods

virtual void newElement (CPSLocated *emitterLocated, uint32 emitterIndex)
 We support Auto-LOD for ribbons, although there is a built-in LOD (that change the geometry rather than the number of ribbons) that gives better result (both can be used simultaneously). More...

virtual void deleteElement (uint32 index)
 inherited from CPSLocatedBindable. More...

virtual void resize (uint32 size)
 inherited from CPSLocatedBindable. More...

virtual CPSLocatedgetSizeOwner (void)
 From CPSSizedParticle. More...

virtual CPSLocatedgetColorOwner (void)
 From CPSColoredParticle. More...


Private Methods

virtual void updateMatAndVbForColor (void)
 update the material and the vb so that they match the color scheme. Inherited from CPSColoredParticle. More...

void displayRibbons (uint32 nbRibbons, uint32 srcStep)
 display a set of ribbons. More...

void touch ()
void updateMaterial ()
void updateTexturedMaterial ()
void updateUntexturedMaterial ()
void setupGlobalColor ()
void setupTexturedGlobalColor ()
void setupUntexturedGlobalColor ()
void setupTextureMatrix ()
uint getNumVerticesInSlice () const
 Get the number of vertices in each slices (depends on wether the ribbon is textured or not). More...


Private Attributes

CSmartPtr< ITexture_Tex
std::vector< NLMISC::CVector_Shape
float _UFactor
float _VFactor
bool _ColorFading: 1
bool _GlobalColor: 1
bool _Touch: 1
+

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] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 213 of file ps_ribbon.h. +

+Referenced by getVBnPB.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CPSRibbon::CPSRibbon  
+
+ + + + + +
+   + + +

+ctor. +

+

+Parameters:
+ + + + +
nbSegmentInTail  +the number of segment the ribbon has in its tail
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. This will be copied
nbPointsInShape  +: the number of points in the shape
+
+

+Definition at line 230 of file ps_ribbon.cpp. +

+References NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Name, NL3D::CPSRibbonBase::Linear, NbVerticesInTriangle, NL3D::CPSRibbonBase::setInterpolationMode, NL3D::CPSRibbonBase::setSegDuration, setShape, and Triangle.

+

+ + + + +
+ + + + + + + + + +
NL3D::CPSRibbon::~CPSRibbon  
+
+ + + + + +
+   + + +

+dtor. +

+ +

+Definition at line 245 of file ps_ribbon.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::deleteElement uint32   index [protected, virtual]
+
+ + + + + +
+   + + +

+inherited from CPSLocatedBindable. +

+ +

+Reimplemented from NL3D::CPSRibbonBase. +

+Definition at line 310 of file ps_ribbon.cpp. +

+References NL3D::CPSColoredParticle::deleteColorElement, NL3D::CPSSizedParticle::deleteSizeElement, and index.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
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]
+
+ + + + + +
+   + + +

+Test wether color fading is activated. +

+ +

+Implements NL3D::CPSTailParticle. +

+Definition at line 84 of file ps_ribbon.h. +

+References _ColorFading.

+

+ + + + +
+ + + + + + + + + + +
virtual CPSLocated* NL3D::CPSRibbon::getColorOwner void   [inline, protected, virtual]
+
+ + + + + +
+   + + +

+From CPSColoredParticle. +

+ +

+Implements NL3D::CPSColoredParticle. +

+Definition at line 188 of file ps_ribbon.h. +

+References NL3D::CPSLocatedBindable::_Owner, and NL3D::CPSLocatedBindable::CPSLocated.

+

+ + + + +
+ + + + + + + + + + +
uint32 NL3D::CPSRibbon::getMaxNumFaces void   const [virtual]
+
+ + + + + +
+   + + +

+return the max number of faces needed for display. This is needed for LOD balancing. +

+ +

+Implements NL3D::CPSParticle. +

+Definition at line 654 of file ps_ribbon.cpp. +

+References NL3D::CPSRibbonBase::_NbSegs, NL3D::CPSLocatedBindable::_Owner, and nlassert.

+

+ + + + +
+ + + + + + + + + + +
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]
+
+ + + + + +
+   + + +

+get the number of ribbons contained in a vb for a given length. (e.g the number of ribbons that can be batched). +

+ +

+Definition at line 781 of file ps_ribbon.cpp. +

+References NL3D::CPSRibbonBase::_UsedNbSegs, and getNumVerticesInSlice. +

+Referenced by displayRibbons, and getVBnPB.

+

+ + + + +
+ + + + + + + + + +
uint NL3D::CPSRibbon::getNumVerticesInSlice   const [inline, private]
+
+ + + + + +
+   + + +

+Get the number of vertices in each slices (depends on wether the ribbon is textured or not). +

+ +

+Definition at line 251 of file ps_ribbon.cpp. +

+References _Shape, and _Tex. +

+Referenced by getNumRibbonsInVB, and getVBnPB.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::getShape NLMISC::CVector  shape const
+
+ + + + + +
+   + + +

+==================================================================================================================. +

+

+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]
+
+ + + + + +
+   + + +

+From CPSSizedParticle. +

+ +

+Implements NL3D::CPSSizedParticle. +

+Definition at line 186 of file ps_ribbon.h. +

+References NL3D::CPSLocatedBindable::_Owner, and NL3D::CPSLocatedBindable::CPSLocated.

+

+ + + + +
+ + + + + + + + + + +
const ITexture* NL3D::CPSRibbon::getTexture void   const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Implements NL3D::CPSTexturedParticleNoAnim. +

+Definition at line 134 of file ps_ribbon.h. +

+References _Tex.

+

+ + + + +
+ + + + + + + + + + +
ITexture* NL3D::CPSRibbon::getTexture void   [inline, virtual]
+
+ + + + + +
+   + + +

+get the texture used. +

+ +

+Implements NL3D::CPSTexturedParticleNoAnim. +

+Definition at line 133 of file ps_ribbon.h. +

+References _Tex.

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CPSRibbon::getUFactor void   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 129 of file ps_ribbon.h. +

+References _UFactor.

+

+ + + + +
+ + + + + + + + + +
CPSRibbon::CVBnPB & NL3D::CPSRibbon::getVBnPB   [private]
+
+ + + + + +
+   + + +

+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]
+
+ + + + + +
+   + + +

+ +

+Definition at line 131 of file ps_ribbon.h. +

+References _VFactor.

+

+ + + + +
+ + + + + + + + + + +
bool NL3D::CPSRibbon::hasOpaqueFaces void   [virtual]
+
+ + + + + +
+   + + +

+return true if there are Opaque faces in the object. +

+ +

+Implements NL3D::CPSParticle. +

+Definition at line 648 of file ps_ribbon.cpp. +

+References hasTransparentFaces. +

+Referenced by step.

+

+ + + + +
+ + + + + + + + + + +
bool NL3D::CPSRibbon::hasTransparentFaces void   [virtual]
+
+ + + + + +
+   + + +

+return true if there are transparent faces in the object. +

+ +

+Implements NL3D::CPSParticle. +

+Definition at line 641 of file ps_ribbon.cpp. +

+References NL3D::CPSMaterial::getBlendingMode. +

+Referenced by hasOpaqueFaces, and step.

+

+ + + + +
+ + + + + + + + + + +
virtual bool NL3D::CPSRibbon::isInSystemBasis void   const [inline, virtual]
+
+ + + + + +
+   + + +

+return true if the tails are in the system basis. +

+ +

+Implements NL3D::CPSTailParticle. +

+Definition at line 96 of file ps_ribbon.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CPSRibbon::newElement CPSLocated  emitterLocated,
uint32   emitterIndex
[protected, virtual]
+
+ + + + + +
+   + + +

+We support Auto-LOD for ribbons, although there is a built-in LOD (that change the geometry rather than the number of ribbons) that gives better result (both can be used simultaneously). +

+ +

+Reimplemented from NL3D::CPSRibbonBase. +

+Definition at line 301 of file ps_ribbon.cpp. +

+References NL3D::CPSColoredParticle::newColorElement, and NL3D::CPSSizedParticle::newSizeElement.

+

+ + + + +
+ + + + + + + + + + +
NL3D::CPSRibbon::NLMISC_DECLARE_CLASS CPSRibbon  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::resize uint32   size [protected, virtual]
+
+ + + + + +
+   + + +

+inherited from CPSLocatedBindable. +

+ +

+Reimplemented from NL3D::CPSRibbonBase. +

+Definition at line 319 of file ps_ribbon.cpp. +

+References nlassert, NL3D::CPSColoredParticle::resizeColor, and NL3D::CPSSizedParticle::resizeSize.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::serial NLMISC::IStream  f throw (NLMISC::EStream) [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]
+
+ + + + + +
+   + + +

+(de)activate color fading when its done, colors fades to black along the ribbon. +

+ +

+Implements NL3D::CPSTailParticle. +

+Definition at line 76 of file ps_ribbon.h. +

+References _ColorFading, and touch.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CPSRibbon::setShape const NLMISC::CVector  shape,
uint32   nbPointsInShape
+
+ + + + + +
+   + + +

+==================================================================================================================. +

+

+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]
+
+ + + + + +
+   + + +

+Set texture factors. +

+ +

+Definition at line 122 of file ps_ribbon.h. +

+References _UFactor, _VFactor, and touch.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::setTexture NLMISC::CSmartPtr< ITexture  tex [inline, virtual]
+
+ + + + + +
+   + + +

+set a texture. +

+ +

+Implements NL3D::CPSTexturedParticleNoAnim. +

+Definition at line 120 of file ps_ribbon.h. +

+References _Tex, and touch.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::setupGlobalColor   [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1034 of file ps_ribbon.cpp. +

+References _Tex, setupTexturedGlobalColor, and setupUntexturedGlobalColor. +

+Referenced by displayRibbons.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::setupTexturedGlobalColor   [inline, private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 988 of file ps_ribbon.cpp. +

+References NL3D::CPSColoredParticle::_Color, _ColorFading, NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, and NLMISC::CRGBA::modulateFromColor. +

+Referenced by setupGlobalColor.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::setupTextureMatrix   [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1041 of file ps_ribbon.cpp. +

+References _ColorFading, NL3D::CPSColoredParticle::_ColorScheme, NL3D::CPSMaterial::_Mat, _UFactor, _VFactor, NLMISC::CVector::I, NLMISC::CVector::J, and NLMISC::CVector::K. +

+Referenced by updateMaterial.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::setupUntexturedGlobalColor   [inline, private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 950 of file ps_ribbon.cpp. +

+References NL3D::CPSColoredParticle::_Color, NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, and NLMISC::CRGBA::modulateFromColor. +

+Referenced by setupGlobalColor.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CPSRibbon::step TPSProcessPass   pass,
TAnimationTime   ellapsedTime,
TAnimationTime   realEt
[virtual]
+
+ + + + + +
+   + + +

+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]
+
+ + + + + +
+   + + +

+ +

+Definition at line 243 of file ps_ribbon.h. +

+References _Touch. +

+Referenced by displayRibbons, setColorFading, setTexFactor, setTexture, and updateMatAndVbForColor.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSRibbon::updateMatAndVbForColor void   [private, virtual]
+
+ + + + + +
+   + + +

+update the material and the vb so that they match the color scheme. Inherited from CPSColoredParticle. +

+ +

+Implements NL3D::CPSColoredParticle. +

+Definition at line 328 of file ps_ribbon.cpp. +

+References touch.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::updateMaterial   [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 933 of file ps_ribbon.cpp. +

+References _Tex, _Touch, setupTextureMatrix, updateTexturedMaterial, and updateUntexturedMaterial. +

+Referenced by displayRibbons.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::updateTexturedMaterial   [inline, private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 856 of file ps_ribbon.cpp. +

+References NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, _Tex, _Touch, NL3D::CreateGradientTexture, and NL3D::SetupModulatedStage. +

+Referenced by updateMaterial.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CPSRibbon::updateUntexturedMaterial   [inline, private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 790 of file ps_ribbon.cpp. +

+References NL3D::CPSMaterial::_Mat, NL3D::CPSLocatedBindable::_Owner, _Touch, NL3D::CreateGradientTexture, and NL3D::SetupModulatedStage. +

+Referenced by updateMaterial.

+


Member Data Documentation

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_ColoredVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 106 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
bool NL3D::CPSRibbon::_ColorFading [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 239 of file ps_ribbon.h. +

+Referenced by getColorFading, getVBnPB, setColorFading, setupTexturedGlobalColor, and setupTextureMatrix.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_FadedColoredVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 107 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_FadedVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 105 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
bool NL3D::CPSRibbon::_GlobalColor [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 240 of file ps_ribbon.h. +

+Referenced by displayRibbons.

+

+ + + + +
+ + +
std::vector<NLMISC::CVector> NL3D::CPSRibbon::_Shape [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 235 of file ps_ribbon.h. +

+Referenced by displayRibbons, getNbVerticesInShape, getNumVerticesInSlice, getShape, and getVBnPB.

+

+ + + + +
+ + +
CSmartPtr<ITexture> NL3D::CPSRibbon::_Tex [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 234 of file ps_ribbon.h. +

+Referenced by getNumVerticesInSlice, getTexture, getVBnPB, setTexture, setupGlobalColor, updateMaterial, and updateTexturedMaterial.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_TexColoredVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 111 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_TexFadedColoredVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 112 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_TexFadedVBMap [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 110 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_TexVBMap [static, private] +
+
+ + + + + +
+   + + +

+textured ribbons. +

+ +

+Definition at line 109 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
bool NL3D::CPSRibbon::_Touch [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 241 of file ps_ribbon.h. +

+Referenced by touch, updateMaterial, updateTexturedMaterial, and updateUntexturedMaterial.

+

+ + + + +
+ + +
float NL3D::CPSRibbon::_UFactor [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 236 of file ps_ribbon.h. +

+Referenced by getUFactor, setTexFactor, and setupTextureMatrix.

+

+ + + + +
+ + +
CPSRibbon::TVBMap NL3D::CPSRibbon::_VBMap [static, private] +
+
+ + + + + +
+   + + +

+untextured ribbons. +

+ +

+Definition at line 104 of file ps_ribbon.cpp. +

+Referenced by getVBnPB.

+

+ + + + +
+ + +
float NL3D::CPSRibbon::_VFactor [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 236 of file ps_ribbon.h. +

+Referenced by getVFactor, setTexFactor, and setupTextureMatrix.

+

+ + + + +
+ + +
const NLMISC::CVector NL3D::CPSRibbon::HeightSides [static] +
+
+ + + + + +
+   + + +

+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.

+

+ + + + +
+ + +
const NLMISC::CVector NL3D::CPSRibbon::Losange [static] +
+
+ + + + + +
+   + + +

+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.

+

+ + + + +
+ + +
const uint NL3D::CPSRibbon::NbVerticesInHeightSide = sizeof(CPSRibbon::HeightSides) / sizeof(CVector) [static] +
+
+ + + + + +
+   + + +

+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.

+

+ + + + +
+ + +
const uint NL3D::CPSRibbon::NbVerticesInPentagram = sizeof(CPSRibbon::Pentagram) / sizeof(CVector) [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 101 of file ps_ribbon.cpp.

+

+ + + + +
+ + +
const uint NL3D::CPSRibbon::NbVerticesInTriangle = sizeof(CPSRibbon::Triangle) / sizeof(CVector) [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file ps_ribbon.cpp. +

+Referenced by CPSRibbon.

+

+ + + + +
+ + +
const NLMISC::CVector NL3D::CPSRibbon::Pentagram [static] +
+
+ + + + + +
+   + + +

+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.

+

+ + + + +
+ + +
const NLMISC::CVector NL3D::CPSRibbon::Triangle [static] +
+
+ + + + + +
+   + + +

+Initial value:

 
+{ 
+        NLMISC::CVector(0, 1, 0),
+        NLMISC::CVector(1, -1, 0),
+        NLMISC::CVector(-1, -1, 0),                                                              
+}
Predifined shape : triangle. +

+ +

+Definition at line 61 of file ps_ribbon.cpp. +

+Referenced by CPSRibbon.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1