HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_CollisionDetect.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_CollisionDetect.h ( GAS Library, C++)
7  *
8  * COMMENTS: Detects collisions between points and objects
9  */
10 
11 #ifndef __GAS_CollsionDetect__
12 #define __GAS_CollsionDetect__
13 
14 #include "SIMZ_API.h"
15 
16 #include <GAS/GAS_SubSolver.h>
17 #include <GAS/GAS_Utils.h>
18 
20 {
21 public:
22  GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
23  GET_DATA_FUNC_S(GAS_NAME_PTGROUP, PointGroupName);
24 
25  GET_DATA_FUNC_I("collider", Collider);
26  GET_DATA_FUNC_S("relationship", RelationshipName);
27  GET_DATA_FUNC_S("colliderlabel", ColliderLabel);
28 
29  GET_DATA_FUNC_S("soppath", SopPath);
30  GET_DATA_FUNC_S("dopobjects", DopObjects);
31 
32  GET_DATA_FUNC_B("animategeo", UseDeformingGeo);
33 
34  GET_DATA_FUNC_B("resethitnum", ResetHitNum);
35 
36  GET_DATA_FUNC_B("addhitnum", AddHitNum);
37  GET_DATA_FUNC_B("addhitpos", AddHitPos);
38  GET_DATA_FUNC_B("addhitnml", AddHitNml);
39  GET_DATA_FUNC_B("addhitv", AddHitVel);
40  GET_DATA_FUNC_B("addhittime", AddHitTime);
41  GET_DATA_FUNC_B("addhitpath", AddHitPath);
42  GET_DATA_FUNC_B("addhitprim", AddHitPrim);
43  GET_DATA_FUNC_B("addhituv", AddHitUV);
44 
45  GET_DATA_FUNC_F("defaultpscale", DefaultPScale);
46  GET_DATA_FUNC_B("usepscaleforsdf", UsePScaleForSDF);
47  GET_DATA_FUNC_B("pscaleisradius", PScaleIsRadius);
48 
49  GET_DATA_FUNC_B("usecollisionignore", UseCollisionIgnore);
50 
51  bool shouldMultiThread() { return true; }
52 
53 protected:
54  explicit GAS_CollisionDetect(const SIM_DataFactory *factory);
55  ~GAS_CollisionDetect() override;
56 
57  void computeSopAtTimeOffset(SIM_Engine &engine,
58  SOP_Node *sop,
60  UT_DMatrix4 &xform,
61  SIM_Time timeoffset,
62  SIM_Time timestep);
63 
64  bool solveGasSubclass(SIM_Engine &engine,
65  SIM_Object *obj,
66  SIM_Time time,
67  SIM_Time timestep) override;
68 
69 private:
70  static const SIM_DopDescription *getDopDescription();
71 
75  "GAS Collision Detect",
76  getDopDescription());
77 };
78 
79 #endif
80 
#define SIMZ_API
Definition: SIMZ_API.h:10
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:30
GT_API const UT_StringHolder time
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:63
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
#define GAS_NAME_PTGROUP
Definition: GAS_Utils.h:34
#define GET_DATA_FUNC_S(DataName, FuncName)