HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_ParticleMoveToIso.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_ParticleMoveToIso.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_ParticleMoveToIso__
12 #define __GAS_ParticleMoveToIso__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
20 
21 class SIM_RawField;
22 class SIM_VectorField;
23 
25 {
26 public:
27  GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
28  GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
29 
30  GET_DATA_FUNC_I("rule", Rule);
31  GET_DATA_FUNC_F("goaliso", GoalIso);
32  GET_DATA_FUNC_F("tol", Tolerance);
33  GET_DATA_FUNC_B("usepscale", UseParticleScale);
34  GET_DATA_FUNC_B("deleteunmoveable", DeleteUnmoveable);
35  GET_DATA_FUNC_B("reflect", Reflect);
36  GET_DATA_FUNC_B("removevel", RemoveNormalVelocity);
37  GETSET_DATA_FUNCS_S("velattribute", VelAttribute);
38 
39 protected:
40  explicit GAS_ParticleMoveToIso(const SIM_DataFactory *factory);
41  ~GAS_ParticleMoveToIso() override;
42 
43  /// Moves particles to the corresponding iso contour of the field.
44  bool solveGasSubclass(SIM_Engine &engine,
45  SIM_Object *obj,
46  SIM_Time time,
47  SIM_Time timestep) override;
48 
49  void particleMoveToIso(const SIM_RawField *field,
50  GU_Detail *particles,
51  const SIM_VectorField *vel);
52 
53 
54  THREADED_METHOD7(GAS_ParticleMoveToIso, gdp->getNumPoints() > 1000,
55  moveToIsoInternal,
56  const SIM_RawField *, field,
57  GU_Detail *, gdp,
58  const GA_PointGroup *, ptgrp,
59  const GA_ROHandleF &, rad_h,
60  const GA_RWHandleV3 &, vel_h,
61  const SIM_VectorField *, vel,
62  UT_ValArray<GA_OffsetArray> *, delpts);
63  void moveToIsoInternalPartial(const SIM_RawField *field,
64  GU_Detail *gdp,
65  const GA_PointGroup *ptgrp,
66  const GA_ROHandleF &rad_h,
67  const GA_RWHandleV3 &vel_h,
68  const SIM_VectorField *vel,
70  const UT_JobInfo &info);
71 
72 private:
73  static const SIM_DopDescription *getDopDescription();
74 
78  "Gas Move To Iso",
79  getDopDescription());
80 };
81 
82 #endif
83 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
#define THREADED_METHOD7(CLASSNAME, DOMULTI, METHOD, PARMTYPE1, PARMNAME1, PARMTYPE2, PARMNAME2, PARMTYPE3, PARMNAME3, PARMTYPE4, PARMNAME4, PARMTYPE5, PARMNAME5, PARMTYPE6, PARMNAME6, PARMTYPE7, PARMNAME7)
const GA_PointGroup * ptgrp
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:30
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 GAS_NAME_FIELD
Definition: GAS_Utils.h:27
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_F(DataName, FuncName)
This class holds a three dimensional vector field.
#define GET_DATA_FUNC_S(DataName, FuncName)