Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes
ParticleSystemCuda Class Reference

List of all members.

Public Member Functions

 ParticleSystemCuda (int numParticles)
 ~ParticleSystemCuda (void)
glm::vec3 runEmitter (glm::vec3 pos)
glm::vec3 runEmitter (glm::vec3 pos, glm::vec3 vel)
void AddParticles (unsigned int &index, glm::vec3 pos, glm::vec3 vel, glm::vec3 spread, float r, int n, float lifetimeVariance)
void InitCube (glm::vec3 origin, glm::vec3 size, glm::vec3 vel, float lifetime)
void Update (float duration)
void DepthSort ()
void InitSphere (glm::vec3 origin, glm::vec3 vel, float size, float lifetime)
void InitStartPositions ()
void PrintParticles (unsigned int start, unsigned int count)
Particle * Getparticle_parameter ()
void SetIsoValue (float v)
void SetData (float *pos, float *vel, int numParticles)
void Debug ()

Public Attributes

Particle * m_particle_parameter
unsigned int m_numParticles
CudaArray< float4 > * m_Pos
CudaArray< float4 > * m_Vel
CudaArray< float > * m_Depth
CudaArray< unsigned int > * m_Index
CudaArray< float3 > * m_Force
CudaArray< float > * m_Pressure
CudaArray< float3 > * m_Viscosity
CudaArray< unsigned int > * m_CellStart
CudaArray< unsigned int > * m_CellEnd
CudaArray< unsigned int > * m_Indices2
CudaArray< unsigned int > * m_Hash
unsigned int m_emitterIndex
float3 m_sortVector
float m_time
float m_duration
cudaExtent res
CudaArray< uint > * m_initPos
CudaArray< uint > * m_initResPos
CudaArray< uint > * m_randomSequence

Constructor & Destructor Documentation

ParticleSystemCuda::ParticleSystemCuda ( int  numParticles)

Standardconstructor

Parameters:
numParticlesnumber of Particles
ParticleSystemCuda::~ParticleSystemCuda ( void  )

Standarddeconstructor


Member Function Documentation

void ParticleSystemCuda::AddParticles ( unsigned int &  index,
glm::vec3  pos,
glm::vec3  vel,
glm::vec3  spread,
float  r,
int  n,
float  lifetimeVariance 
)

Not used yet

void ParticleSystemCuda::Debug ( )

Debug Mode

void ParticleSystemCuda::DepthSort ( )

Not used yet

Particle * ParticleSystemCuda::Getparticle_parameter ( )

Not used yet

void ParticleSystemCuda::InitCube ( glm::vec3  origin,
glm::vec3  size,
glm::vec3  vel,
float  lifetime 
)

Not used yet

void ParticleSystemCuda::InitSphere ( glm::vec3  origin,
glm::vec3  vel,
float  size,
float  lifetime 
)

Not used yet

void ParticleSystemCuda::InitStartPositions ( )

This method sets the init start positions

void ParticleSystemCuda::PrintParticles ( unsigned int  start,
unsigned int  count 
)

Not used yet

glm::vec3 ParticleSystemCuda::runEmitter ( glm::vec3  pos)

Not used yet

glm::vec3 ParticleSystemCuda::runEmitter ( glm::vec3  pos,
glm::vec3  vel 
)

Not used yet

void ParticleSystemCuda::SetData ( float *  pos,
float *  vel,
int  numParticles 
)

Initialize the data

Parameters:
posposition
velvelocity
numParticlesnumber of Particles
void ParticleSystemCuda::SetIsoValue ( float  v)

Iso Value changed

Parameters:
vnew iso value
void ParticleSystemCuda::Update ( float  duration)

This method update the particle system


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