HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_Wavelets.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_Wavelets.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_Wavelets__
12 #define __GAS_Wavelets__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
20 #include <UT/UT_Wavelet.h>
21 
22 class SIM_RawField;
23 
25 {
26 public:
29  GET_DATA_FUNC_I("mode", Mode);
30  GET_DATA_FUNC_I("wavelet", WaveletRaw);
31  GET_DATA_FUNC_I("level", Level);
32  GET_DATA_FUNC_I("component", Component);
33  GET_DATA_FUNC_B("limitpasses", LimitPasses);
34  GET_DATA_FUNC_I("maxpasses", MaxPasses);
35 
36  enum MODE_NAMES {
41  NUM_MODES
42  };
43 
44  bool shouldMultiThread() { return true; }
45 
46 protected:
47  explicit GAS_Wavelets(const SIM_DataFactory *factory);
48  ~GAS_Wavelets() override;
49 
50  /// Applies a force to the velocity field proportional
51  /// to the vorticle values.
52  bool solveGasSubclass(SIM_Engine &engine,
53  SIM_Object *obj,
54  SIM_Time time,
55  SIM_Time timestep) override;
56  void applyWavelets(SIM_Object *obj,
57  SIM_RawField *field,
58  SIM_RawField *coeff);
59 
60  UT_Wavelet::WAVELET_NAMES getWaveletType();
61 
62 private:
63  static const SIM_DopDescription *getDopDescription();
64 
68  "Gas Wavelets",
69  getDopDescription());
70 };
71 
72 #endif
73 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:50
GT_API const UT_StringHolder time
#define GAS_API
Definition: GAS_API.h:10
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
bool shouldMultiThread()
Definition: GAS_Wavelets.h:44
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GAS_NAME_FIELDSOURCE
Definition: GAS_Utils.h:29
#define GAS_NAME_FIELDDEST
Definition: GAS_Utils.h:28
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_S(DataName, FuncName)