HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_ImpactToAttributes.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_ImpactToAttributes.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_ImpactToAttributes
12 #define __GAS_ImpactToAttributes
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 
25 {
26 public:
28  GETSET_DATA_FUNCS_S("impactdata", ImpactData);
29  GETSET_DATA_FUNCS_S("attribute", Attribute);
30 
31  GET_DATA_FUNC_B("resethitnum", ResetHitNum);
32 
33  GET_DATA_FUNC_B("addhitnum", AddHitNum);
34  GET_DATA_FUNC_B("addhitpos", AddHitPos);
35  GET_DATA_FUNC_B("addhitnml", AddHitNml);
36  GET_DATA_FUNC_B("addhittime", AddHitTime);
37  GET_DATA_FUNC_B("addhitpath", AddHitPath);
38  GET_DATA_FUNC_B("addhitprim", AddHitPrim);
39  GET_DATA_FUNC_B("addhituv", AddHitUV);
40  GET_DATA_FUNC_B("addhitimpulse", AddHitImpulse);
41 
42 protected:
43  explicit GAS_ImpactToAttributes(const SIM_DataFactory *factory);
44  ~GAS_ImpactToAttributes() override;
45 
46  /// Limits scalar fields by moving along curvature or performing
47  /// relaxation steps.
48  bool solveGasSubclass(SIM_Engine &engine,
49  SIM_Object *obj,
50  SIM_Time time,
51  SIM_Time timestep) override;
52 
53  void impactToAttributes(SIM_Object *obj, GU_Detail *gdp);
54 
55 private:
56  static const SIM_DopDescription *getDopDescription();
57 
61  "Gas Impact To Attributes",
62  getDopDescription());
63 };
64 
65 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
GT_API const UT_StringHolder time
#define GAS_API
Definition: GAS_API.h:10
#define GETSET_DATA_FUNCS_S(DataName, FuncName)
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 SIM_NAME_GEOMETRY
Definition: SIM_Names.h:224
#define GET_DATA_FUNC_B(DataName, FuncName)