HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
28  GET_DATA_FUNC_S("soppath", SopPath);
29  GET_DATA_FUNC_S("dopobjects", DopObjects);
30 
31  GET_DATA_FUNC_B("animategeo", UseDeformingGeo);
32 
33  GET_DATA_FUNC_B("resethitnum", ResetHitNum);
34 
35  GET_DATA_FUNC_B("addhitnum", AddHitNum);
36  GET_DATA_FUNC_B("addhitpos", AddHitPos);
37  GET_DATA_FUNC_B("addhitnml", AddHitNml);
38  GET_DATA_FUNC_B("addhitv", AddHitVel);
39  GET_DATA_FUNC_B("addhittime", AddHitTime);
40  GET_DATA_FUNC_B("addhitpath", AddHitPath);
41  GET_DATA_FUNC_B("addhitprim", AddHitPrim);
42  GET_DATA_FUNC_B("addhituv", AddHitUV);
43 
44  GET_DATA_FUNC_F("defaultpscale", DefaultPScale);
45  GET_DATA_FUNC_B("usepscaleforsdf", UsePScaleForSDF);
46  GET_DATA_FUNC_B("pscaleisradius", PScaleIsRadius);
47 
48  bool shouldMultiThread() { return true; }
49 
50 protected:
51  explicit GAS_CollisionDetect(const SIM_DataFactory *factory);
52  virtual ~GAS_CollisionDetect();
53 
54  void computeSopAtTimeOffset(SIM_Engine &engine,
55  SOP_Node *sop,
57  UT_DMatrix4 &xform,
58  SIM_Time timeoffset,
59  SIM_Time timestep);
60 
61  virtual bool solveGasSubclass(SIM_Engine &engine,
62  SIM_Object *obj,
63  SIM_Time time,
64  SIM_Time timestep);
65 
66 private:
67  static const SIM_DopDescription *getDopDescription();
68 
72  "GAS Collision Detect",
73  getDopDescription());
74 };
75 
76 #endif
77 
#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
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)