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_1CPSFaceLookAt.html | 905 +++++++++++++++++++++++ 1 file changed, 905 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CPSFaceLookAt.html (limited to 'docs/doxygen/nel/classNL3D_1_1CPSFaceLookAt.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CPSFaceLookAt.html b/docs/doxygen/nel/classNL3D_1_1CPSFaceLookAt.html new file mode 100644 index 00000000..5389938f --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CPSFaceLookAt.html @@ -0,0 +1,905 @@ + + + + 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::CPSFaceLookAt Class Reference

A FaceLookAt particle These particles can have 2 different size (width and height) when activated. +More... +

+#include <ps_face_look_at.h> +

+

Inheritance diagram for NL3D::CPSFaceLookAt: +

+ +NL3D::CPSQuad +NL3D::CPSRotated2DParticle +NL3D::CPSParticle +NL3D::CPSColoredParticle +NL3D::CPSTexturedParticle +NL3D::CPSMultiTexturedParticle +NL3D::CPSSizedParticle +NL3D::CPSMaterial +NL3D::CPSLocatedBindable +NLMISC::IStreamable +NLMISC::IClassable + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CPSFaceLookAt (CSmartPtr< ITexture > tex=NULL)
 ===========================================================================================. More...

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

 NLMISC_DECLARE_CLASS (CPSFaceLookAt)
void activateMotionBlur (float coeff=1.f, float threshold=1.f)
 activate 'fake' motion blur (its done by deforming the quad) This is slower, however. More...

void setMotionBlurCoeff (float coeff)
 set the motion blur coeff (0 = none). More...

void setMotionBlurThreshold (float threshold)
 set the motion blur threshold. More...

float getMotionBlurCoeff (void) const
 return the motion blur coeff (0.f means none). More...

float getMotionBlurThreshold (void) const
 get the motion blur threshold. More...

void setIndependantSizes (bool enable=true)
 Setting this to true allows to have independant height and width for these particles. More...

bool hasIndependantSizes (void) const
 test wether independant sizes are activated. More...

CPSSizedParticlegetSecondSize (void)
 retrieve an interface to set the second size. More...

const CPSSizedParticlegetSecondSize (void) const
 retrieve an interface to set the second size const version. More...


Protected Methods

virtual void draw (bool opaque)
 ===========================================================================================. More...

void newElement (CPSLocated *emitterLocated, uint32 emitterIndex)
 ===========================================================================================. More...

void deleteElement (uint32)
 ===========================================================================================. More...

void resize (uint32)
 ===========================================================================================. More...

virtual CPSLocatedgetAngle2DOwner (void)
 deriver must return their owner there. More...


Protected Attributes

float _MotionBlurCoeff
 used for implementation only. More...

float _Threshold
NL3D::CPSFaceLookAt::CSecondSize _SecondSize
bool _IndependantSizes

Friends

class CPSFaceLookAtHelper
+

Detailed Description

+A FaceLookAt particle These particles can have 2 different size (width and height) when activated. +

+ +

+Definition at line 46 of file ps_face_look_at.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NL3D::CPSFaceLookAt::CPSFaceLookAt CSmartPtr< ITexture  tex = NULL
+
+ + + + + +
+   + + +

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

+This can't be a CTextureGrouped (for animation) animation must be set later by using setTextureScheme +

+Definition at line 538 of file ps_face_look_at.cpp. +

+References NL3D::CPSLocatedBindable::_Name, _SecondSize, and NL3D::CPSFaceLookAt::CSecondSize::Owner.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CPSFaceLookAt::activateMotionBlur float   coeff = 1.f,
float   threshold = 1.f
[inline]
+
+ + + + + +
+   + + +

+activate 'fake' motion blur (its done by deforming the quad) This is slower, however. +

+This has no effect with rotated particles.

+Parameters:
+ + + +
coeff  +a coefficient for motion blur (too high value may give unrealistic result) 0 deactivate the motion blur
threshold  +: speed will be clamped below this value
+
+

+Definition at line 66 of file ps_face_look_at.h. +

+References _MotionBlurCoeff, and _Threshold.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::deleteElement uint32   [protected, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NL3D::CPSQuad. +

+Definition at line 553 of file ps_face_look_at.cpp. +

+References NL3D::CPSRotated2DParticle::deleteAngle2DElement, and index.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::draw bool   opaque [protected, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NL3D::CPSParticle. +

+Definition at line 504 of file ps_face_look_at.cpp. +

+References NL3D::CPSLocatedBindable::_Owner, NL3D::CPSParticle::computeSrcStep, NL3D::CPSParticle::step, and NL3D::TIteratorVectStep1616.

+

+ + + + +
+ + + + + + + + + + +
virtual CPSLocated* NL3D::CPSFaceLookAt::getAngle2DOwner void   [inline, protected, virtual]
+
+ + + + + +
+   + + +

+deriver must return their owner there. +

+ +

+Implements NL3D::CPSRotated2DParticle. +

+Definition at line 126 of file ps_face_look_at.h. +

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

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CPSFaceLookAt::getMotionBlurCoeff void   const [inline]
+
+ + + + + +
+   + + +

+return the motion blur coeff (0.f means none). +

+

+See also:
+activateMotionBlur()
+

+Definition at line 83 of file ps_face_look_at.h. +

+References _MotionBlurCoeff.

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CPSFaceLookAt::getMotionBlurThreshold void   const [inline]
+
+ + + + + +
+   + + +

+get the motion blur threshold. +

+ +

+Definition at line 86 of file ps_face_look_at.h. +

+References _Threshold.

+

+ + + + +
+ + + + + + + + + + +
const CPSSizedParticle& NL3D::CPSFaceLookAt::getSecondSize void   const [inline]
+
+ + + + + +
+   + + +

+retrieve an interface to set the second size const version. +

+ +

+Definition at line 105 of file ps_face_look_at.h. +

+References _IndependantSizes, _SecondSize, NL3D::CPSSizedParticle::CPSSizedParticle, and nlassert.

+

+ + + + +
+ + + + + + + + + + +
CPSSizedParticle& NL3D::CPSFaceLookAt::getSecondSize void   [inline]
+
+ + + + + +
+   + + +

+retrieve an interface to set the second size. +

+ +

+Definition at line 98 of file ps_face_look_at.h. +

+References _IndependantSizes, _SecondSize, NL3D::CPSSizedParticle::CPSSizedParticle, and nlassert.

+

+ + + + +
+ + + + + + + + + + +
bool NL3D::CPSFaceLookAt::hasIndependantSizes void   const [inline]
+
+ + + + + +
+   + + +

+test wether independant sizes are activated. +

+ +

+Definition at line 95 of file ps_face_look_at.h. +

+References _IndependantSizes.

+

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

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

+ +

+Reimplemented from NL3D::CPSQuad. +

+Definition at line 546 of file ps_face_look_at.cpp. +

+References NL3D::CPSRotated2DParticle::newAngle2DElement.

+

+ + + + +
+ + + + + + + + + + +
NL3D::CPSFaceLookAt::NLMISC_DECLARE_CLASS CPSFaceLookAt  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::resize uint32   [protected, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NL3D::CPSQuad. +

+Definition at line 560 of file ps_face_look_at.cpp. +

+References nlassert, and NL3D::CPSRotated2DParticle::resizeAngle2D.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::serial NLMISC::IStream  f throw (NLMISC::EStream) [virtual]
+
+ + + + + +
+   + + +

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

+ +

+Reimplemented from NL3D::CPSQuad. +

+Definition at line 569 of file ps_face_look_at.cpp.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::setIndependantSizes bool   enable = true [inline]
+
+ + + + + +
+   + + +

+Setting this to true allows to have independant height and width for these particles. +

+The interface to manage the second size can be obtained from getSecondSize(), which correspond to the height of particles. The default is to not have independant sizes +

+Definition at line 92 of file ps_face_look_at.h. +

+References _IndependantSizes.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::setMotionBlurCoeff float   coeff [inline]
+
+ + + + + +
+   + + +

+set the motion blur coeff (0 = none). +

+ +

+Definition at line 73 of file ps_face_look_at.h. +

+References _MotionBlurCoeff.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CPSFaceLookAt::setMotionBlurThreshold float   threshold [inline]
+
+ + + + + +
+   + + +

+set the motion blur threshold. +

+ +

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

+References _Threshold.

+


Friends And Related Function Documentation

+

+ + + + +
+ + +
friend class CPSFaceLookAtHelper [friend] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 112 of file ps_face_look_at.h.

+


Member Data Documentation

+

+ + + + +
+ + +
bool NL3D::CPSFaceLookAt::_IndependantSizes [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 121 of file ps_face_look_at.h. +

+Referenced by getSecondSize, hasIndependantSizes, and setIndependantSizes.

+

+ + + + +
+ + +
float NL3D::CPSFaceLookAt::_MotionBlurCoeff [protected] +
+
+ + + + + +
+   + + +

+used for implementation only. +

+ +

+Definition at line 113 of file ps_face_look_at.h. +

+Referenced by activateMotionBlur, getMotionBlurCoeff, and setMotionBlurCoeff.

+

+ + + + +
+ + +
NL3D::CPSFaceLookAt::CSecondSize NL3D::CPSFaceLookAt::_SecondSize [protected] +
+
+ + + + + +
+   + + +

+ +

+Referenced by CPSFaceLookAt, and getSecondSize.

+

+ + + + +
+ + +
float NL3D::CPSFaceLookAt::_Threshold [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 114 of file ps_face_look_at.h. +

+Referenced by activateMotionBlur, getMotionBlurThreshold, and setMotionBlurThreshold.

+


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