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  bool shouldMultiThread() { return true; }
50 
51 protected:
52  explicit GAS_CollisionDetect(const SIM_DataFactory *factory);
53  virtual ~GAS_CollisionDetect();
54 
55  void computeSopAtTimeOffset(SIM_Engine &engine,
56  SOP_Node *sop,
58  UT_DMatrix4 &xform,
59  SIM_Time timeoffset,
60  SIM_Time timestep);
61 
62  virtual bool solveGasSubclass(SIM_Engine &engine,
63  SIM_Object *obj,
64  SIM_Time time,
65  SIM_Time timestep);
66 
67 private:
68  static const SIM_DopDescription *getDopDescription();
69 
73  "GAS Collision Detect",
74  getDopDescription());
75 };
76 
77 #endif
78 
#define SIMZ_API
Definition: SIMZ_API.h:10
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:28
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:58
#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:32
#define GET_DATA_FUNC_S(DataName, FuncName)