HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GAS_AttribSwap.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_AttribSwap.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_AttribSwap
12 #define __GAS_AttribSwap
13 
14 #include "GAS_API.h"
15 
17 #include <UT/UT_VoxelArray.h>
18 #include <GU/GU_Detail.h>
19 
20 #include <SIM/SIM_RawField.h>
21 
22 #include "GAS_SubSolver.h"
23 #include "GAS_Utils.h"
24 
25 class SIM_VectorField;
26 
27 class GU_Detail;
28 
30 {
31 public:
33 
34 protected:
35  explicit GAS_AttribSwap(const SIM_DataFactory *factory);
36  ~GAS_AttribSwap() override;
37 
38  /// AttribSwap scalar fields by moving along curvature or performing
39  /// relaxation steps.
40  bool solveGasSubclass(SIM_Engine &engine,
41  SIM_Object *obj,
42  SIM_Time time,
43  SIM_Time timestep) override;
44 
45 private:
46  bool swapAttributes(SIM_Object *obj, GU_Detail *gdp, int which);
47 
48  static const SIM_DopDescription *getDopDescription();
49 
53  "Gas Attribute Swap",
54  getDopDescription());
55 };
56 
57 #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
This class holds a three dimensional vector field.