# 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::CParticleSystemClipObs Class Reference

a clip observer for a particle system. More...

#include <particle_system_model.h>

Inheritance diagram for NL3D::CParticleSystemClipObs:

NL3D::CTransformClipObs NL3D::IBaseClipObs NL3D::IObs NLMISC::CRefCount List of all members.

Public Methods

void traverse (IObs *caller)
 The base doit method. More...

void insertInVisibleList ()
bool checkDestroyCondition (CParticleSystem *ps, CParticleSystemModel *m)
 traverse the sons we must do this before us, because this object may delete himself from the scene. More...


Static Public Methods

IObscreator ()

Detailed Description

a clip observer for a particle system.

Definition at line 322 of file particle_system_model.h.


Member Function Documentation

bool NL3D::CParticleSystemClipObs::checkDestroyCondition CParticleSystem   ps,
CParticleSystemModel   m
 

traverse the sons we must do this before us, because this object may delete himself from the scene.

Definition at line 748 of file particle_system_model.cpp.

References nlassert.

Referenced by traverse.

IObs* NL3D::CParticleSystemClipObs::creator   [inline, static]
 

Reimplemented from NL3D::CTransformClipObs.

Definition at line 326 of file particle_system_model.h.

References NL3D::IObs::IObs.

void NL3D::CParticleSystemClipObs::insertInVisibleList   [inline]
 

Definition at line 329 of file particle_system_model.h.

References NL3D::IBaseClipObs::AnimDetailObs, NL3D::IBaseClipObs::LoadBalancingObs, NL3D::IObs::Model, and NL3D::IObs::Trav.

Referenced by traverse.

void NL3D::CParticleSystemClipObs::traverse IObs   caller [virtual]
 

The base doit method.

The behavior is to:

  • test if HrcObs->WorldVis is visible.
  • test if the observer is clipped with clip() OR IF SKELETON MODEL, USE SKELETON MODEL clip!!
  • if visible and not clipped, set Visible=true (else false). and
  • if Visible==true, and renderable, add it to the RenderTraversal: RenderTrav->addRenderObs(RenderObs);
  • always traverseSons(), to clip the sons.

Reimplemented from NL3D::CTransformClipObs.

Definition at line 553 of file particle_system_model.cpp.

References checkDestroyCondition, NL3D::CTransformClipObs::Date, H_AUTO, NL3D::IBaseClipObs::HrcObs, insertInVisibleList, NL3D::IObs::Model, nlassert, NL3D::IObs::Trav, NL3D::IObs::traverseSons, and NL3D::IBaseClipObs::Visible.


The documentation for this class was generated from the following files: