VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRaindropParticle.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
17 
18 namespace makVrv
19 {
23  {
24  public:
26  DtRaindropParticle(float px, float py, float pMass, double time,
27  DtGridCell grid[][GRID_DIMENSION]);
28  private:
31 
34 
37  public:
38 
40  virtual ~DtRaindropParticle();
41 
43  virtual void update(double time, double elapsedTime,
44  DtGridCell grid[][GRID_DIMENSION],
45  bool& destroyFlag);
46 
48  virtual void merge(double time,
49  DtGridCell grid[][GRID_DIMENSION]);
50 
52  virtual void computeVelocity(double time, int gridX, int gridY,
53  DtGridCell grid[][GRID_DIMENSION]);
54 
55  protected:
56  std::vector< DtVector2<short> > myCollisionsScratchPad;
57  };
58 }
std::vector< DtVector2< short > > myCollisionsScratchPad
Definition: DtRaindropParticle.h:56
Contains makVrv::DtDropParticle class.
A drop with a physical simulation of movement, merging, evaporation, etc.
Definition: DtRaindropParticle.h:22
virtual void update(double time, double elapsedTime, DtGridCell grid[][GRID_DIMENSION], bool &destroyFlag)
Update the particle.
Internal struct for one cell of our grid of glass properties.
Definition: DtGridCell.h:19
#define GRID_DIMENSION
Definition: DtWaterOnScreenDefines.h:56
Local class for a single drop particle on the screen.
Definition: DtDropParticle.h:25
Contains DLL export macros.
DtRaindropParticle & operator=(const DtRaindropParticle &)
prevent assignment
virtual ~DtRaindropParticle()
default DTOR.
Contains makVrv::DtGridCell struct.
virtual void computeVelocity(double time, int gridX, int gridY, DtGridCell grid[][GRID_DIMENSION])
Update the drop&#39;s direction and acceleration.
DtRaindropParticle()
private default constructor. not allowed.
virtual void merge(double time, DtGridCell grid[][GRID_DIMENSION])
Combine drops covered by this drop.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)