HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_ResizeField.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_ResizeField.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_ResizeField__
12 #define __GAS_ResizeField__
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 class SIM_RawField;
24 
26 {
27 public:
28  GET_DATA_FUNC_S("reffield", RefFieldName);
29  GET_DATA_FUNC_V3("minpad", MinPad);
30  GET_DATA_FUNC_V3("maxpad", MaxPad);
31  GET_DATA_FUNC_V3("voxelpad", VoxelPad);
32  GET_DATA_FUNC_S(GAS_NAME_FIELD, FieldName);
33  GET_DATA_FUNC_V3("size", Size);
34  GET_DATA_FUNC_V3("t", Center);
35  GET_DATA_FUNC_I("combinefixed", CombineWithFixed);
36  GET_DATA_FUNC_I("combineorig", CombineWithOrig);
37  GET_DATA_FUNC_B("keepdata", KeepData);
38  GET_DATA_FUNC_S(GAS_NAME_TRACKERADDR, TrackerAddress);
41 
42  // Reduce methods
44  {
45  COMBINE_REPLACE = 0,
48  NUM_COMBINE
49  };
50 protected:
51  explicit GAS_ResizeField(const SIM_DataFactory *factory);
52  virtual ~GAS_ResizeField();
53 
54  // Moves & resizes the field keeping all data.
55  virtual bool solveGasSubclass(SIM_Engine &engine,
56  SIM_Object *obj,
57  SIM_Time time,
58  SIM_Time timestep);
59 
60  /// Synchronizes with any distributed nodes our desired
61  /// box size, building the maximum of them all.
62  void synchronizeBoxSizes(const char *dataname,
64  UT_Vector3 &center,
65  int slice,
66  int numslices);
67 
68 private:
69  static const SIM_DopDescription *getDopDescription();
70 
74  "Gas Resize Field",
75  getDopDescription());
76 };
77 
78 #endif
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GET_DATA_FUNC_V3(DataName, FuncName)
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
3D Vector class.
GLsizeiptr size
Definition: glcorearb.h:663
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
#define GAS_NAME_FIELD
Definition: GAS_Utils.h:25
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GAS_NAME_TRACKERADDR
Definition: GAS_Utils.h:41
#define GAS_NAME_TRACKERPORT
Definition: GAS_Utils.h:42
#define GAS_NAME_JOBNAME
Definition: GAS_Utils.h:43
#define GET_DATA_FUNC_B(DataName, FuncName)
#define GET_DATA_FUNC_S(DataName, FuncName)