HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_BuildCollisionMask.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_BuildCollisionMask.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_BuildCollisionMask__
12 #define __GAS_BuildCollisionMask__
13 
14 #include "GAS_API.h"
15 
17 #include <GU/GU_Detail.h>
18 
19 #include "GAS_SubSolver.h"
20 #include "GAS_Utils.h"
21 
22 class GU_Detail;
23 class SIM_VectorField;
24 class SIM_IndexField;
25 
27 {
28 public:
29  GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
30  GET_DATA_FUNC_S(GAS_NAME_COLLISION, CollisionName);
31  GET_DATA_FUNC_S(GAS_NAME_COLLISIONVELOCITY, CollisionVelocityName);
32  GET_DATA_FUNC_S(GAS_NAME_INDEX, IndexFieldName);
33  GETSET_DATA_FUNCS_B("usepointvelocity", UsePointVelocity);
34  GETSET_DATA_FUNCS_B("usevolumevelocity", UseSDFVelocity);
35  GETSET_DATA_FUNCS_B("allownonsdf", AllowNonSDF);
36 
37  GET_DATA_FUNC_B("usebandwidth", UseBandwidth);
38  GET_DATA_FUNC_F("bandwidth", Bandwidth);
39  GET_DATA_FUNC_B("clamptobandwidth", ClampToBandwidth);
40 
41  GET_DATA_FUNC_F("particlebandwidth", ParticleBandwidth);
44 protected:
45  explicit GAS_BuildCollisionMask(const SIM_DataFactory *factory);
46  virtual ~GAS_BuildCollisionMask();
47 
48  /// Builds the collision mask for all collider affectors.
49  virtual bool solveGasSubclass(SIM_Engine &engine,
50  SIM_Object *obj,
51  SIM_Time time,
52  SIM_Time timestep);
53 
54  void buildCollisionMask(SIM_Object *obj,
55  SIM_ScalarField *collisionmask,
56  SIM_VectorField *collisionvel,
58  SIM_Time time,
59  fpreal velscale);
60 
61 private:
62  static const SIM_DopDescription *getDopDescription();
63 
67  "Gas BuildCollisionMask",
68  getDopDescription());
69 };
70 
71 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GETSET_DATA_FUNCS_B(DataName, FuncName)
GT_API const UT_StringHolder time
#define GAS_NAME_USETIMESTEP
Definition: GAS_Utils.h:37
#define GAS_API
Definition: GAS_API.h:10
#define GAS_NAME_COLLISION
Definition: GAS_Utils.h:19
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
This class holds a three dimensional scalar field.
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
#define GAS_NAME_FIELD
Definition: GAS_Utils.h:25
#define GAS_NAME_COLLISIONVELOCITY
Definition: GAS_Utils.h:21
double fpreal
Definition: SYS_Types.h:270
#define GET_DATA_FUNC_B(DataName, FuncName)
GLuint index
Definition: glcorearb.h:785
#define GET_DATA_FUNC_F(DataName, FuncName)
This class holds a three dimensional scalar field.
#define GAS_NAME_TIMESCALE
Definition: GAS_Utils.h:38
This class holds a three dimensional vector field.
#define GET_DATA_FUNC_S(DataName, FuncName)
#define GAS_NAME_INDEX
Definition: GAS_Utils.h:29