HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_BuildRelationshipMask.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_BuildRelationshipMask.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_BuildRelationshipMask__
12 #define __GAS_BuildRelationshipMask__
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_STENCIL, StencilName);
31  GET_DATA_FUNC_S(GAS_NAME_INDEX, IndexName);
32  GET_DATA_FUNC_S("relationshipmask", RelationshipMaskName);
33  GET_DATA_FUNC_S("relationshipvel", RelationshipVelocityName);
34  GET_DATA_FUNC_S("relationship", RelationshipName);
35  GET_DATA_FUNC_I("volumetype", VolumeType);
36  GETSET_DATA_FUNCS_B("usepointvelocity", UsePointVelocity);
37  GETSET_DATA_FUNCS_B("usevolumevelocity", UseSDFVelocity);
38  GETSET_DATA_FUNCS_B("allownonsdf", AllowNonSDF);
39 
40  GET_DATA_FUNC_B("usebandwidth", UseBandwidth);
41  GET_DATA_FUNC_F("bandwidth", Bandwidth);
42  GET_DATA_FUNC_B("clamptobandwidth", ClampToBandwidth);
43 
44  GET_DATA_FUNC_F("particlebandwidth", ParticleBandwidth);
47 
48 protected:
49  explicit GAS_BuildRelationshipMask(const SIM_DataFactory *factory);
50  ~GAS_BuildRelationshipMask() override;
51 
52  /// Builds the collision mask for all collider affectors.
53  bool solveGasSubclass(SIM_Engine &engine,
54  SIM_Object *obj,
55  SIM_Time time,
56  SIM_Time timestep) override;
57 
58  void buildRelationshipMask(SIM_Object *obj,
59  SIM_ScalarField *relationshipmask,
60  SIM_VectorField *relationshipvel,
62  const SIM_ScalarField *stencil,
63  SIM_Time time,
64  fpreal velscale);
65 
66 private:
67  static const SIM_DopDescription *getDopDescription();
68 
72  "Gas BuildRelationshipMask",
73  getDopDescription());
74 };
75 
76 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GETSET_DATA_FUNCS_B(DataName, FuncName)
GT_API const UT_StringHolder time
GLuint index
Definition: glew.h:1814
#define GAS_NAME_USETIMESTEP
Definition: GAS_Utils.h:39
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
This class holds a three dimensional scalar field.
GLhandleARB obj
Definition: glew.h:6236
GLint GLfloat GLint stencil
Definition: glew.h:2167
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
#define GAS_NAME_FIELD
Definition: GAS_Utils.h:27
#define GET_DATA_FUNC_I(DataName, FuncName)
fpreal64 fpreal
Definition: SYS_Types.h:277
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
This class holds a three dimensional scalar field.
#define GAS_NAME_TIMESCALE
Definition: GAS_Utils.h:40
This class holds a three dimensional vector field.
#define GET_DATA_FUNC_S(DataName, FuncName)
#define GAS_NAME_STENCIL
Definition: GAS_Utils.h:19
#define GAS_NAME_INDEX
Definition: GAS_Utils.h:31